PageSourceSearch

https://lemakeda.com/assets/index-BVbmgylS.js

js lemakeda.com collected 2026-10-07 03:59:08 UTC 854,182 bytes, 158 lines download raw bytes

vendor: 6,184 bytes, line 1
1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&i(d)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();function dN(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zf={exports:{}},Ll={};var gy;function fN(){if(gy)return Ll;gy=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function a(i,l,c){var d=null;if(c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),"key"in l){c={};for(var f in l)f!=="key"&&(c[f]=l[f])}else c=l;return l=c.ref,{$$typeof:n,type:i,key:d,ref:l!==void 0?l:null,props:c}}return Ll.Fragment=e,Ll.jsx=a,Ll.jsxs=a,Ll}var xy;function hN(){return xy||(xy=1,Zf.exports=fN()),Zf.exports}var r=hN(),Jf={exports:{}},ke={};var yy;function mN(){if(yy)return ke;yy=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function v(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,_={};function k(O,B,ie){this.props=O,this.context=B,this.refs=_,this.updater=ie||N}k.prototype.isReactComponent={},k.prototype.setState=function(O,B){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,B,"setState")},k.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function E(){}E.prototype=k.prototype;function C(O,B,ie){this.props=O,this.context=B,this.refs=_,this.updater=ie||N}var A=C.prototype=new E;A.constructor=C,w(A,k.prototype),A.isPureReactComponent=!0;var M=Array.isArray;function H(){}var z={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function I(O,B,ie){var le=ie.ref;return{$$typeof:n,type:O,key:B,ref:le!==void 0?le:null,props:ie}}function G(O,B){return I(O.type,B,O.props)}function ne(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function L(O){var B={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(ie){return B[ie]})}var $=/\/+/g;function se(O,B){return typeof O=="object"&&O!==null&&O.key!=null?L(""+O.key):B.toString(36)}function oe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(H,H):(O.status="pending",O.then(function(B){O.status==="pending"&&(O.status="fulfilled",O.value=B)},function(B){O.status==="pending"&&(O.status="rejected",O.reason=B)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function R(O,B,ie,le,ve){var Ce=typeof O;(Ce==="undefined"||Ce==="boolean")&&(O=null);var Oe=!1;if(O===null)Oe=!0;else switch(Ce){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(O.$$typeof){case n:case e:Oe=!0;break;case g:return Oe=O._init,R(Oe(O._payload),B,ie,le,ve)}}if(Oe)return ve=ve(O),Oe=le===""?"."+se(O,0):le,M(ve)?(ie="",Oe!=null&&(ie=Oe.replace($,"$&/")+"/"),R(ve,B,ie,"",function(He){return He})):ve!=null&&(ne(ve)&&(ve=G(ve,ie+(ve.key==null||O&&O.key===ve.key?"":(""+ve.key).replace($,"$&/")+"/")+Oe)),B.push(ve)),1;Oe=0;var ut=le===""?".":le+":";if(M(O))for(var $e=0;$e<O.length;$e++)le=O[$e],Ce=ut+se(le,$e),Oe+=R(le,B,ie,Ce,ve);else if($e=v(O),typeof $e=="function")for(O=$e.call(O),$e=0;!(le=O.next()).done;)le=le.value,Ce=ut+se(le,$e++),Oe+=R(le,B,ie,Ce,ve);else if(Ce==="object"){if(typeof O.then=="function")return R(oe(O),B,ie,le,ve);throw B=String(O),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function U(O,B,ie){if(O==null)return O;var le=[],ve=0;return R(O,le,"","",function(Ce){return B.call(ie,Ce,ve++)}),le}function W(O){if(O._status===-1){var B=O._result;B=B(),B.then(function(ie){(O._status===0||O._status===-1)&&(O._status=1,O._result=ie)},function(ie){(O._status===0||O._status===-1)&&(O._status=2,O._result=ie)}),O._status===-1&&(O._status=0,O._result=B)}if(O._status===1)return O._result.default;throw O._result}var he=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},fe={map:U,forEach:function(O,B,ie){U(O,function(){B.apply(this,arguments)},ie)},count:function(O){var B=0;return U(O,function(){B++}),B},toArray:function(O){return U(O,function(B){return B})||[]},only:function(O){if(!ne(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ke.Activity=y,ke.Children=fe,ke.Component=k,ke.Fragment=a,ke.Profiler=l,ke.PureComponent=C,ke.StrictMode=i,ke.Suspense=h,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,ke.__COMPILER_RUNTIME={__proto__:null,c:function(O){return z.H.useMemoCache(O)}}
vendor: 14,498 bytes, line 1
1,ke.cache=function(O){return function(){return O.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(O,B,ie){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var le=w({},O.props),ve=O.key;if(B!=null)for(Ce in B.key!==void 0&&(ve=""+B.key),B)!P.call(B,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&B.ref===void 0||(le[Ce]=B[Ce]);var Ce=arguments.length-2;if(Ce===1)le.children=ie;else if(1<Ce){for(var Oe=Array(Ce),ut=0;ut<Ce;ut++)Oe[ut]=arguments[ut+2];le.children=Oe}return I(O.type,ve,le)},ke.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},ke.createElement=function(O,B,ie){var le,ve={},Ce=null;if(B!=null)for(le in B.key!==void 0&&(Ce=""+B.key),B)P.call(B,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=B[le]);var Oe=arguments.length-2;if(Oe===1)ve.children=ie;else if(1<Oe){for(var ut=Array(Oe),$e=0;$e<Oe;$e++)ut[$e]=arguments[$e+2];ve.children=ut}if(O&&O.defaultProps)for(le in Oe=O.defaultProps,Oe)ve[le]===void 0&&(ve[le]=Oe[le]);return I(O,Ce,ve)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(O){return{$$typeof:f,render:O}},ke.isValidElement=ne,ke.lazy=function(O){return{$$typeof:g,_payload:{_status:-1,_result:O},_init:W}},ke.memo=function(O,B){return{$$typeof:m,type:O,compare:B===void 0?null:B}},ke.startTransition=function(O){var B=z.T,ie={};z.T=ie;try{var le=O(),ve=z.S;ve!==null&&ve(ie,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(H,he)}catch(Ce){he(Ce)}finally{B!==null&&ie.types!==null&&(B.types=ie.types),z.T=B}},ke.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},ke.use=function(O){return z.H.use(O)},ke.useActionState=function(O,B,ie){return z.H.useActionState(O,B,ie)},ke.useCallback=function(O,B){return z.H.useCallback(O,B)},ke.useContext=function(O){return z.H.useContext(O)},ke.useDebugValue=function(){},ke.useDeferredValue=function(O,B){return z.H.useDeferredValue(O,B)},ke.useEffect=function(O,B){return z.H.useEffect(O,B)},ke.useEffectEvent=function(O){return z.H.useEffectEvent(O)},ke.useId=function(){return z.H.useId()},ke.useImperativeHandle=function(O,B,ie){return z.H.useImperativeHandle(O,B,ie)},ke.useInsertionEffect=function(O,B){return z.H.useInsertionEffect(O,B)},ke.useLayoutEffect=function(O,B){return z.H.useLayoutEffect(O,B)},ke.useMemo=function(O,B){return z.H.useMemo(O,B)},ke.useOptimistic=function(O,B){return z.H.useOptimistic(O,B)},ke.useReducer=function(O,B,ie){return z.H.useReducer(O,B,ie)},ke.useRef=function(O){return z.H.useRef(O)},ke.useState=function(O){return z.H.useState(O)},ke.useSyncExternalStore=function(O,B,ie){return z.H.useSyncExternalStore(O,B,ie)},ke.useTransition=function(){return z.H.useTransition()},ke.version="19.2.4",ke}var by;function ju(){return by||(by=1,Jf.exports=mN()),Jf.exports}var S=ju();const Ee=dN(S);var Wf={exports:{}},zl={},eh={exports:{}},th={};var vy;function pN(){return vy||(vy=1,(function(n){function e(R,U){var W=R.length;R.push(U);e:for(;0<W;){var he=W-1>>>1,fe=R[he];if(0<l(fe,U))R[he]=U,R[W]=fe,W=he;else break e}}function a(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var U=R[0],W=R.pop();if(W!==U){R[0]=W;e:for(var he=0,fe=R.length,O=fe>>>1;he<O;){var B=2*(he+1)-1,ie=R[B],le=B+1,ve=R[le];if(0>l(ie,W))le<fe&&0>l(ve,ie)?(R[he]=ve,R[le]=W,he=le):(R[he]=ie,R[B]=W,he=B);else if(le<fe&&0>l(ve,W))R[he]=ve,R[le]=W,he=le;else break e}}return U}function l(R,U){var W=R.sortIndex-U.sortIndex;return W!==0?W:R.id-U.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,f=d.now();n.unstable_now=function(){return d.now()-f}}var h=[],m=[],g=1,y=null,b=3,v=!1,N=!1,w=!1,_=!1,k=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function A(R){for(var U=a(m);U!==null;){if(U.callback===null)i(m);else if(U.startTime<=R)i(m),U.sortIndex=U.expirationTime,e(h,U);else break;U=a(m)}}function M(R){if(w=!1,A(R),!N)if(a(h)!==null)N=!0,H||(H=!0,L());else{var U=a(m);U!==null&&oe(M,U.startTime-R)}}var H=!1,z=-1,P=5,I=-1;function G(){return _?!0:!(n.unstable_now()-I<P)}function ne(){if(_=!1,H){var R=n.unstable_now();I=R;var U=!0;try{e:{N=!1,w&&(w=!1,E(z),z=-1),v=!0;var W=b;try{t:{for(A(R),y=a(h);y!==null&&!(y.expirationTime>R&&G());){var he=y.callback;if(typeof he=="function"){y.callback=null,b=y.priorityLevel;var fe=he(y.expirationTime<=R);if(R=n.unstable_now(),typeof fe=="function"){y.callback=fe,A(R),U=!0;break t}y===a(h)&&i(h),A(R)}else i(h);y=a(h)}if(y!==null)U=!0;else{var O=a(m);O!==null&&oe(M,O.startTime-R),U=!1}}break e}finally{y=null,b=W,v=!1}U=void 0}}finally{U?L():H=!1}}}var L;if(typeof C=="function")L=function(){C(ne)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,se=$.port2;$.port1.onmessage=ne,L=function(){se.postMessage(null)}}else L=function(){k(ne,0)};function oe(R,U){z=k(function(){R(n.unstable_now())},U)}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(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(R){switch(b){case 1:case 2:case 3:var U=3;break;default:U=b}var W=b;b=U;try{return R()}finally{b=W}},n.unstable_requestPaint=function(){_=!0},n.unstable_runWithPriority=function(R,U){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var W=b;b=R;try{return U()}finally{b=W}},n.unstable_scheduleCallback=function(R,U,W){var he=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?he+W:he):W=he,R){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=W+fe,R={id:g++,callback:U,priorityLevel:R,startTime:W,expirationTime:fe,sortIndex:-1},W>he?(R.sortIndex=W,e(m,R),a(h)===null&&R===a(m)&&(w?(E(z),z=-1):w=!0,oe(M,W-he))):(R.sortIndex=fe,e(h,R),N||v||(N=!0,H||(H=!0,L()))),R},n.unstable_shouldYield=G,n.unstable_wrapCallback=function(R){var U=b;return function(){var W=b;b=U;try{return R.apply(this,arguments)}finally{b=W}}}})(th)),th}var jy;function gN(){return jy||(jy=1,eh.exports=pN()),eh.exports}var nh={exports:{}},Wt={};var wy;function xN(){if(wy)return Wt;wy=1;var n=ju();function e(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(e(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(h,m,g){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:h,containerInfo:m,implementation:g}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Wt.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(e(299));return c(h,m,null,g)},Wt.flushSync=function(h){var m=d.T,g=i.p;try{if(d.T=null,i.p=2,h)return h()}finally{d.T=m,i.p=g,i.d.f()}},Wt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,i.d.C(h,m))},Wt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Wt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,y=f(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?i.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:v}):g==="script"&&i.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Wt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=f(m.as,m.crossOrigin);i.d.M(h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&i.d.M(h)},Wt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,y=f(g,m.crossOrigin);i.d.L(h,g,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Wt.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=f(m.as,m.crossOrigin);i.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else i.d.m(h)},Wt.requestFormReset=function(h){i.d.r(h)},Wt.unstable_batchedUpdates=function(h,m){return h(m)},Wt.useFormState=function(h,m,g){return d.H.useFormState(h,m,g)},Wt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Wt.version="19.2.4",Wt}var Ny;function yN(){if(Ny)return nh.exports;Ny=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(),nh.exports=xN(),nh.exports}var Sy;function bN(){if(Sy)return zl;Sy=1;var n=gN(),e=ju(),a=yN();function i(t){var s="https://react.dev/errors/"+t;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)s+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var s=t,o=t;if(t.alternate)for(;s.return;)s=s.return;else{t=s;do s=t,(s.flags&4098)!==0&&(o=s.return),t=s.return;while(t)}return s.tag===3?o:null}function d(t){if(t.tag===13){var s=t.memoizedState;if(s===null&&(t=t.alternate,t!==null&&(s=t.memoizedState)),s!==null)return s.dehydrated}return null}function f(t){if(t.tag===31){var s=t.memoizedState;if(s===null&&(t=t.alternate,t!==null&&(s=t.memoizedState)),s!==null)return s.dehydrated}return null}function h(t){if(c(t)!==t)throw Error(i(188))}function m(t){var s=t.alternate;if(!s){if(s=c(t),s===null)throw Error(i(188));return s!==t?null:t}for(var o=t,u=s;;){var p=o.return;if(p===null)break;var x=p.alternate;if(x===null){if(u=p.return,u!==null){o=u;continue}break}if(p.child===x.child){for(x=p.child;x;){if(x===o)return h(p),t;if(x===u)return h(p),s;x=x.sibling}throw Error(i(188))}if(o.return!==u.return)o=p,u=x;else{for(var j=!1,T=p.child;T;){if(T===o){j=!0,o=p,u=x;break}if(T===u){j=!0,u=p,o=x;break}T=T.sibling}if(!j){for(T=x.child;T;){if(T===o){j=!0,o=x,u=p;break}if(T===u){j=!0,u=x,o=p;break}T=T.sibling}if(!j)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:s}function g(t){var s=t.tag;if(s===5||s===26||s===27||s===6)return t;for(t=t.child;t!==null;){if(s=g(t),s!==null)return s;t=t.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),C=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function L(t){return t===null||typeof t!="object"?null:(t=ne&&t[ne]||t["@@iterator"],typeof t=="function"?t:null)}var $=Symbol.for("react.client.reference");function se(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===$?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case w:return"Fragment";case k:return"Profiler";case _:return"StrictMode";case M:return"Suspense";case H:return"SuspenseList";case I:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case N:return"Portal";case C:return t.displayName||"Context";case E:return(t._context.displayName||"Context")+".Consumer";case A:var s=t.render;return t=t.displayName,t||(t=s.displayName||s.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case z:return s=t.displayName||null,s!==null?s:se(t.type)||"Memo";case P:s=t._payload,t=t._init;try{return se(t(s))}catch{}}return null}var oe=Array.isArray,R=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},he=[],fe=-1;function O(t){return{current:t}}function B(t){0>fe||(t.current=he[fe],he[fe]=null,fe--)}function ie(t,s){fe++,he[fe]=t.current,t.current=s}var le=O(null),ve=O(null),Ce=O(null),Oe=O(null);function ut(t,s){switch(ie(Ce,s),ie(ve,t),ie(le,null),s.nodeType){case 9:case 11:t=(t=s.documentElement)&&(t=t.namespaceURI)?P0(t):0;break;default:if(t=s.tagName,s=s.namespaceURI)s=P0(s),t=B0(s,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}B(le),ie(le,t)}function $e(){B(le),B(ve),B(Ce)}function He(t){t.memoizedState!==null&&ie(Oe,t);var s=le.current,o=B0(s,t.type);s!==o&&(ie(ve,t),ie(le,o))}function xe(t){ve.current===t&&(B(le),B(ve)),Oe.current===t&&(B(Oe),Ml._currentValue=W)}
vendor: 11,212 bytes, lines 1-8
1var We,Xe;function Ve(t){if(We===void 0)try{throw Error()}catch(o){var s=o.stack.trim().match(/\n( *(at )?)/);We=s&&s[1]||"",Xe=-1<o.stack.indexOf(`
2    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
3`+We+t+Xe}var re=!1;function me(t,s){if(!t||re)return"";re=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(s){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(Z){var X=Z}Reflect.construct(t,[],ae)}else{try{ae.call()}catch(Z){X=Z}t.call(ae.prototype)}}else{try{throw Error()}catch(Z){X=Z}(ae=t())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(Z){if(Z&&X&&typeof Z.stack=="string")return[Z.stack,X.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=u.DetermineComponentFrameRoot(),j=x[0],T=x[1];if(j&&T){var D=j.split(`
4`),Y=T.split(`
5`);for(p=u=0;u<D.length&&!D[u].includes("DetermineComponentFrameRoot");)u++;for(;p<Y.length&&!Y[p].includes("DetermineComponentFrameRoot");)p++;if(u===D.length||p===Y.length)for(u=D.length-1,p=Y.length-1;1<=u&&0<=p&&D[u]!==Y[p];)p--;for(;1<=u&&0<=p;u--,p--)if(D[u]!==Y[p]){if(u!==1||p!==1)do if(u--,p--,0>p||D[u]!==Y[p]){var ee=`
6`+D[u].replace(" at new "," at ");return t.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",t.displayName)),ee}while(1<=u&&0<=p);break}}}finally{re=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?Ve(o):""}function Te(t,s){switch(t.tag){case 26:case 27:case 5:return Ve(t.type);case 16:return Ve("Lazy");case 13:return t.child!==s&&s!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return me(t.type,!1);case 11:return me(t.type.render,!1);case 1:return me(t.type,!0);case 31:return Ve("Activity");default:return""}}function mt(t){try{var s="",o=null;do s+=Te(t,o),o=t,t=t.return;while(t);return s}catch(u){return`
7Error generating stack: `+u.message+`
8`+u.stack}}var fn=Object.prototype.hasOwnProperty,_n=n.unstable_scheduleCallback,q=n.unstable_cancelCallback,Q=n.unstable_shouldYield,J=n.unstable_requestPaint,ue=n.unstable_now,de=n.unstable_getCurrentPriorityLevel,ce=n.unstable_ImmediatePriority,je=n.unstable_UserBlockingPriority,Qe=n.unstable_NormalPriority,Ze=n.unstable_LowPriority,Ft=n.unstable_IdlePriority,Ds=n.log,bs=n.unstable_setDisableYieldValue,Xa=null,Gt=null;function In(t){if(typeof Ds=="function"&&bs(t),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(Xa,t)}catch{}}var rn=Math.clz32?Math.clz32:vo,bo=Math.log,Uu=Math.LN2;function vo(t){return t>>>=0,t===0?32:31-(bo(t)/Uu|0)|0}var jo=256,wo=262144,No=4194304;function Za(t){var s=t&42;if(s!==0)return s;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function So(t,s,o){var u=t.pendingLanes;if(u===0)return 0;var p=0,x=t.suspendedLanes,j=t.pingedLanes;t=t.warmLanes;var T=u&134217727;return T!==0?(u=T&~x,u!==0?p=Za(u):(j&=T,j!==0?p=Za(j):o||(o=T&~t,o!==0&&(p=Za(o))))):(T=u&~x,T!==0?p=Za(T):j!==0?p=Za(j):o||(o=u&~t,o!==0&&(p=Za(o)))),p===0?0:s!==0&&s!==p&&(s&x)===0&&(x=p&-p,o=s&-s,x>=o||x===32&&(o&4194048)!==0)?s:p}function Ir(t,s){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&s)===0}function J2(t,s){switch(t){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 vp(){var t=No;return No<<=1,(No&62914560)===0&&(No=4194304),t}function qu(t){for(var s=[],o=0;31>o;o++)s.push(t);return s}function Gr(t,s){t.pendingLanes|=s,s!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function W2(t,s,o,u,p,x){var j=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var T=t.entanglements,D=t.expirationTimes,Y=t.hiddenUpdates;for(o=j&~o;0<o;){var ee=31-rn(o),ae=1<<ee;T[ee]=0,D[ee]=-1;var X=Y[ee];if(X!==null)for(Y[ee]=null,ee=0;ee<X.length;ee++){var Z=X[ee];Z!==null&&(Z.lane&=-536870913)}o&=~ae}u!==0&&jp(t,u,0),x!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=x&~(j&~s))}function jp(t,s,o){t.pendingLanes|=s,t.suspendedLanes&=~s;var u=31-rn(s);t.entangledLanes|=s,t.entanglements[u]=t.entanglements[u]|1073741824|o&261930}function wp(t,s){var o=t.entangledLanes|=s;for(t=t.entanglements;o;){var u=31-rn(o),p=1<<u;p&s|t[u]&s&&(t[u]|=s),o&=~p}}function Np(t,s){var o=s&-s;return o=(o&42)!==0?1:Pu(o),(o&(t.suspendedLanes|s))!==0?0:o}function Pu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Bu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Sp(){var t=U.p;return t!==0?t:(t=window.event,t===void 0?32:cy(t.type))}function Cp(t,s){var o=U.p;try{return U.p=t,s()}finally{U.p=o}}var da=Math.random().toString(36).slice(2),Qt="__reactFiber$"+da,hn="__reactProps$"+da,Oi="__reactContainer$"+da,Fu="__reactEvents$"+da,ej="__reactListeners$"+da,tj="__reactHandles$"+da,_p="__reactResources$"+da,Qr="__reactMarker$"+da;function Hu(t){delete t[Qt],delete t[hn],delete t[Fu],delete t[ej],delete t[tj]}function Ri(t){var s=t[Qt];if(s)return s;for(var o=t.parentNode;o;){if(s=o[Oi]||o[Qt]){if(o=s.alternate,s.child!==null||o!==null&&o.child!==null)for(t=K0(t);t!==null;){if(o=t[Qt])return o;t=K0(t)}return s}t=o,o=t.parentNode}return null}function Di(t){if(t=t[Qt]||t[Oi]){var s=t.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return t}return null}function Kr(t){var s=t.tag;if(s===5||s===26||s===27||s===6)return t.stateNode;throw Error(i(33))}function Li(t){var s=t[_p];return s||(s=t[_p]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Ht(t){t[Qr]=!0}var Ep=new Set,kp={};function Ja(t,s){zi(t,s),zi(t+"Capture",s)}function zi(t,s){for(kp[t]=s,t=0;t<s.length;t++)Ep.add(s[t])}var nj=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]*$"),Tp={},Ap={};function sj(t){return fn.call(Ap,t)?!0:fn.call(Tp,t)?!1:nj.test(t)?Ap[t]=!0:(Tp[t]=!0,!1)}function Co(t,s,o){if(sj(s))if(o===null)t.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(s);return;case"boolean":var u=s.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(s);return}}t.setAttribute(s,""+o)}}function _o(t,s,o){if(o===null)t.removeAttribute(s);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttribute(s,""+o)}}function Ls(t,s,o,u){if(u===null)t.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(s,o,""+u)}}function Gn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Mp(t){var s=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function aj(t,s,o){var u=Object.getOwnPropertyDescriptor(t.constructor.prototype,s);if(!t.hasOwnProperty(s)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var p=u.get,x=u.set;return Object.defineProperty(t,s,{configurable:!0,get:function(){return p.call(this)},set:function(j){o=""+j,x.call(this,j)}}),Object.defineProperty(t,s,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(j){o=""+j},stopTracking:function(){t._valueTracker=null,delete t[s]}}}}function Vu(t){if(!t._valueTracker){var s=Mp(t)?"checked":"value";t._valueTracker=aj(t,s,""+t[s])}}function Op(t){if(!t)return!1;var s=t._valueTracker;if(!s)return!0;var o=s.getValue(),u="";return t&&(u=Mp(t)?t.checked?"true":"false":t.value),t=u,t!==o?(s.setValue(t),!0):!1}function Eo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ij=/[\n"\\]/g;function Qn(t){return t.replace(ij,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Iu(t,s,o,u,p,x,j,T){t.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?t.type=j:t.removeAttribute("type"),s!=null?j==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+Gn(s)):t.value!==""+Gn(s)&&(t.value=""+Gn(s)):j!=="submit"&&j!=="reset"||t.removeAttribute("value"),s!=null?Gu(t,j,Gn(s)):o!=null?Gu(t,j,Gn(o)):u!=null&&t.removeAttribute("value"),p==null&&x!=null&&(t.defaultChecked=!!x),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.name=""+Gn(T):t.removeAttribute("name")}function Rp(t,s,o,u,p,x,j,T){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(t.type=x),s!=null||o!=null){if(!(x!=="submit"&&x!=="reset"||s!=null)){Vu(t);return}o=o!=null?""+Gn(o):"",s=s!=null?""+Gn(s):o,T||s===t.value||(t.value=s),t.defaultValue=s}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=T?t.checked:!!u,t.defaultChecked=!!u,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(t.name=j),Vu(t)}function Gu(t,s,o){s==="number"&&Eo(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function Ui(t,s,o,u){if(t=t.options,s){s={};for(var p=0;p<o.length;p++)s["$"+o[p]]=!0;for(o=0;o<t.length;o++)p=s.hasOwnProperty("$"+t[o].value),t[o].selected!==p&&(t[o].selected=p),p&&u&&(t[o].defaultSelected=!0)}else{for(o=""+Gn(o),s=null,p=0;p<t.length;p++){if(t[p].value===o){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}s!==null||t[p].disabled||(s=t[p])}s!==null&&(s.selected=!0)}}
vendor: 4,574 bytes, line 8
8function Dp(t,s,o){if(s!=null&&(s=""+Gn(s),s!==t.value&&(t.value=s),o==null)){t.defaultValue!==s&&(t.defaultValue=s);return}t.defaultValue=o!=null?""+Gn(o):""}function Lp(t,s,o,u){if(s==null){if(u!=null){if(o!=null)throw Error(i(92));if(oe(u)){if(1<u.length)throw Error(i(93));u=u[0]}o=u}o==null&&(o=""),s=o}o=Gn(s),t.defaultValue=o,u=t.textContent,u===o&&u!==""&&u!==null&&(t.value=u),Vu(t)}function qi(t,s){if(s){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=s;return}}t.textContent=s}var rj=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 zp(t,s,o){var u=s.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="":u?t.setProperty(s,o):typeof o!="number"||o===0||rj.has(s)?s==="float"?t.cssFloat=o:t[s]=(""+o).trim():t[s]=o+"px"}function Up(t,s,o){if(s!=null&&typeof s!="object")throw Error(i(62));if(t=t.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||s!=null&&s.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in s)u=s[p],s.hasOwnProperty(p)&&o[p]!==u&&zp(t,p,u)}else for(var x in s)s.hasOwnProperty(x)&&zp(t,x,s[x])}function Qu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lj=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"]]),oj=/^[\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 ko(t){return oj.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function zs(){}var Ku=null;function Yu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Pi=null,Bi=null;function qp(t){var s=Di(t);if(s&&(t=s.stateNode)){var o=t[hn]||null;e:switch(t=s.stateNode,s.type){case"input":if(Iu(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),s=o.name,o.type==="radio"&&s!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Qn(""+s)+'"][type="radio"]'),s=0;s<o.length;s++){var u=o[s];if(u!==t&&u.form===t.form){var p=u[hn]||null;if(!p)throw Error(i(90));Iu(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<o.length;s++)u=o[s],u.form===t.form&&Op(u)}break e;case"textarea":Dp(t,o.value,o.defaultValue);break e;case"select":s=o.value,s!=null&&Ui(t,!!o.multiple,s,!1)}}}var $u=!1;function Pp(t,s,o){if($u)return t(s,o);$u=!0;try{var u=t(s);return u}finally{if($u=!1,(Pi!==null||Bi!==null)&&(pc(),Pi&&(s=Pi,t=Bi,Bi=Pi=null,qp(s),t)))for(s=0;s<t.length;s++)qp(t[s])}}function Yr(t,s){var o=t.stateNode;if(o===null)return null;var u=o[hn]||null;if(u===null)return null;o=u[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,s,typeof o));return o}var Us=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xu=!1;if(Us)try{var $r={};Object.defineProperty($r,"passive",{get:function(){Xu=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{Xu=!1}var fa=null,Zu=null,To=null;function Bp(){if(To)return To;var t,s=Zu,o=s.length,u,p="value"in fa?fa.value:fa.textContent,x=p.length;for(t=0;t<o&&s[t]===p[t];t++);var j=o-t;for(u=1;u<=j&&s[o-u]===p[x-u];u++);return To=p.slice(t,1<u?1-u:void 0)}function Ao(t){var s=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),32<=t||t===13?t:0}function Mo(){return!0}function Fp(){return!1}function mn(t){function s(o,u,p,x,j){this._reactName=o,this._targetInst=p,this.type=u,this.nativeEvent=x,this.target=j,this.currentTarget=null;for(var T in t)t.hasOwnProperty(T)&&(o=t[T],this[T]=o?o(x):x[T]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Mo:Fp,this.isPropagationStopped=Fp,this}return y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Mo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Mo)},persist:function(){},isPersistent:Mo}),s}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oo=mn(Wa),Xr=y({},Wa,{view:0,detail:0}),cj=mn(Xr),Ju,Wu,Zr,Ro=y({},Xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:td,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Zr&&(Zr&&t.type==="mousemove"?(Ju=t.screenX-Zr.screenX,Wu=t.screenY-Zr.screenY):Wu=Ju=0,Zr=t),Ju)},movementY:function(t){return"movementY"in t?t.movementY:Wu}}),Hp=mn(Ro),uj=y({},Ro,{dataTransfer:0}),dj=mn(uj),fj=y({},Xr,{relatedTarget:0}),ed=mn(fj),hj=y({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),mj=mn(hj),pj=y({},Wa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gj=mn(pj),xj=y({},Wa,{data:0}),Vp=mn(xj),yj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bj={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"},vj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jj(t){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(t):(t=vj[t])?!!s[t]:!1}function td(){return jj}var wj=y({},Xr,{key:function(t){if(t.key){var s=yj[t.key]||t.key;if(s!=="Unidentified")return s}
vendor: 4,492 bytes, line 8
8return t.type==="keypress"?(t=Ao(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?bj[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:td,charCode:function(t){return t.type==="keypress"?Ao(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ao(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Nj=mn(wj),Sj=y({},Ro,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ip=mn(Sj),Cj=y({},Xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:td}),_j=mn(Cj),Ej=y({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),kj=mn(Ej),Tj=y({},Ro,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Aj=mn(Tj),Mj=y({},Wa,{newState:0,oldState:0}),Oj=mn(Mj),Rj=[9,13,27,32],nd=Us&&"CompositionEvent"in window,Jr=null;Us&&"documentMode"in document&&(Jr=document.documentMode);var Dj=Us&&"TextEvent"in window&&!Jr,Gp=Us&&(!nd||Jr&&8<Jr&&11>=Jr),Qp=" ",Kp=!1;function Yp(t,s){switch(t){case"keyup":return Rj.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $p(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Fi=!1;function Lj(t,s){switch(t){case"compositionend":return $p(s);case"keypress":return s.which!==32?null:(Kp=!0,Qp);case"textInput":return t=s.data,t===Qp&&Kp?null:t;default:return null}}function zj(t,s){if(Fi)return t==="compositionend"||!nd&&Yp(t,s)?(t=Bp(),To=Zu=fa=null,Fi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Gp&&s.locale!=="ko"?null:s.data;default:return null}}var Uj={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 Xp(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s==="input"?!!Uj[t.type]:s==="textarea"}function Zp(t,s,o,u){Pi?Bi?Bi.push(u):Bi=[u]:Pi=u,s=wc(s,"onChange"),0<s.length&&(o=new Oo("onChange","change",null,o,u),t.push({event:o,listeners:s}))}var Wr=null,el=null;function qj(t){R0(t,0)}function Do(t){var s=Kr(t);if(Op(s))return t}function Jp(t,s){if(t==="change")return s}var Wp=!1;if(Us){var sd;if(Us){var ad="oninput"in document;if(!ad){var eg=document.createElement("div");eg.setAttribute("oninput","return;"),ad=typeof eg.oninput=="function"}sd=ad}else sd=!1;Wp=sd&&(!document.documentMode||9<document.documentMode)}function tg(){Wr&&(Wr.detachEvent("onpropertychange",ng),el=Wr=null)}function ng(t){if(t.propertyName==="value"&&Do(el)){var s=[];Zp(s,el,t,Yu(t)),Pp(qj,s)}}function Pj(t,s,o){t==="focusin"?(tg(),Wr=s,el=o,Wr.attachEvent("onpropertychange",ng)):t==="focusout"&&tg()}function Bj(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Do(el)}function Fj(t,s){if(t==="click")return Do(s)}function Hj(t,s){if(t==="input"||t==="change")return Do(s)}function Vj(t,s){return t===s&&(t!==0||1/t===1/s)||t!==t&&s!==s}var En=typeof Object.is=="function"?Object.is:Vj;function tl(t,s){if(En(t,s))return!0;if(typeof t!="object"||t===null||typeof s!="object"||s===null)return!1;var o=Object.keys(t),u=Object.keys(s);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var p=o[u];if(!fn.call(s,p)||!En(t[p],s[p]))return!1}return!0}function sg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ag(t,s){var o=sg(t);t=0;for(var u;o;){if(o.nodeType===3){if(u=t+o.textContent.length,t<=s&&u>=s)return{node:o,offset:s-t};t=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=sg(o)}}function ig(t,s){return t&&s?t===s?!0:t&&t.nodeType===3?!1:s&&s.nodeType===3?ig(t,s.parentNode):"contains"in t?t.contains(s):t.compareDocumentPosition?!!(t.compareDocumentPosition(s)&16):!1:!1}function rg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var s=Eo(t.document);s instanceof t.HTMLIFrameElement;){try{var o=typeof s.contentWindow.location.href=="string"}catch{o=!1}
vendor: 16,638 bytes, line 8
8if(o)t=s.contentWindow;else break;s=Eo(t.document)}return s}function id(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s&&(s==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||s==="textarea"||t.contentEditable==="true")}var Ij=Us&&"documentMode"in document&&11>=document.documentMode,Hi=null,rd=null,nl=null,ld=!1;function lg(t,s,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ld||Hi==null||Hi!==Eo(u)||(u=Hi,"selectionStart"in u&&id(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),nl&&tl(nl,u)||(nl=u,u=wc(rd,"onSelect"),0<u.length&&(s=new Oo("onSelect","select",null,s,o),t.push({event:s,listeners:u}),s.target=Hi)))}function ei(t,s){var o={};return o[t.toLowerCase()]=s.toLowerCase(),o["Webkit"+t]="webkit"+s,o["Moz"+t]="moz"+s,o}var Vi={animationend:ei("Animation","AnimationEnd"),animationiteration:ei("Animation","AnimationIteration"),animationstart:ei("Animation","AnimationStart"),transitionrun:ei("Transition","TransitionRun"),transitionstart:ei("Transition","TransitionStart"),transitioncancel:ei("Transition","TransitionCancel"),transitionend:ei("Transition","TransitionEnd")},od={},og={};Us&&(og=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function ti(t){if(od[t])return od[t];if(!Vi[t])return t;var s=Vi[t],o;for(o in s)if(s.hasOwnProperty(o)&&o in og)return od[t]=s[o];return t}var cg=ti("animationend"),ug=ti("animationiteration"),dg=ti("animationstart"),Gj=ti("transitionrun"),Qj=ti("transitionstart"),Kj=ti("transitioncancel"),fg=ti("transitionend"),hg=new Map,cd="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(" ");cd.push("scrollEnd");function fs(t,s){hg.set(t,s),Ja(s,[t])}var Lo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Kn=[],Ii=0,ud=0;function zo(){for(var t=Ii,s=ud=Ii=0;s<t;){var o=Kn[s];Kn[s++]=null;var u=Kn[s];Kn[s++]=null;var p=Kn[s];Kn[s++]=null;var x=Kn[s];if(Kn[s++]=null,u!==null&&p!==null){var j=u.pending;j===null?p.next=p:(p.next=j.next,j.next=p),u.pending=p}x!==0&&mg(o,p,x)}}function Uo(t,s,o,u){Kn[Ii++]=t,Kn[Ii++]=s,Kn[Ii++]=o,Kn[Ii++]=u,ud|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function dd(t,s,o,u){return Uo(t,s,o,u),qo(t)}function ni(t,s){return Uo(t,null,null,s),qo(t)}function mg(t,s,o){t.lanes|=o;var u=t.alternate;u!==null&&(u.lanes|=o);for(var p=!1,x=t.return;x!==null;)x.childLanes|=o,u=x.alternate,u!==null&&(u.childLanes|=o),x.tag===22&&(t=x.stateNode,t===null||t._visibility&1||(p=!0)),t=x,x=x.return;return t.tag===3?(x=t.stateNode,p&&s!==null&&(p=31-rn(o),t=x.hiddenUpdates,u=t[p],u===null?t[p]=[s]:u.push(s),s.lane=o|536870912),x):null}function qo(t){if(50<Sl)throw Sl=0,jf=null,Error(i(185));for(var s=t.return;s!==null;)t=s,s=t.return;return t.tag===3?t.stateNode:null}var Gi={};function Yj(t,s,o,u){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kn(t,s,o,u){return new Yj(t,s,o,u)}function fd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function qs(t,s){var o=t.alternate;return o===null?(o=kn(t.tag,s,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=s,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,s=t.dependencies,o.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function pg(t,s){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=s,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,s=o.dependencies,t.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),t}function Po(t,s,o,u,p,x){var j=0;if(u=t,typeof t=="function")fd(t)&&(j=1);else if(typeof t=="string")j=Ww(t,o,le.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case I:return t=kn(31,o,s,p),t.elementType=I,t.lanes=x,t;case w:return si(o.children,p,x,s);case _:j=8,p|=24;break;case k:return t=kn(12,o,s,p|2),t.elementType=k,t.lanes=x,t;case M:return t=kn(13,o,s,p),t.elementType=M,t.lanes=x,t;case H:return t=kn(19,o,s,p),t.elementType=H,t.lanes=x,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case C:j=10;break e;case E:j=9;break e;case A:j=11;break e;case z:j=14;break e;case P:j=16,u=null;break e}j=29,o=Error(i(130,t===null?"null":typeof t,"")),u=null}return s=kn(j,o,s,p),s.elementType=t,s.type=u,s.lanes=x,s}function si(t,s,o,u){return t=kn(7,t,u,s),t.lanes=o,t}function hd(t,s,o){return t=kn(6,t,null,s),t.lanes=o,t}function gg(t){var s=kn(18,null,null,0);return s.stateNode=t,s}function md(t,s,o){return s=kn(4,t.children!==null?t.children:[],t.key,s),s.lanes=o,s.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},s}var xg=new WeakMap;function Yn(t,s){if(typeof t=="object"&&t!==null){var o=xg.get(t);return o!==void 0?o:(s={value:t,source:s,stack:mt(s)},xg.set(t,s),s)}return{value:t,source:s,stack:mt(s)}}var Qi=[],Ki=0,Bo=null,sl=0,$n=[],Xn=0,ha=null,vs=1,js="";function Ps(t,s){Qi[Ki++]=sl,Qi[Ki++]=Bo,Bo=t,sl=s}function yg(t,s,o){$n[Xn++]=vs,$n[Xn++]=js,$n[Xn++]=ha,ha=t;var u=vs;t=js;var p=32-rn(u)-1;u&=~(1<<p),o+=1;var x=32-rn(s)+p;if(30<x){var j=p-p%5;x=(u&(1<<j)-1).toString(32),u>>=j,p-=j,vs=1<<32-rn(s)+p|o<<p|u,js=x+t}else vs=1<<x|o<<p|u,js=t}function pd(t){t.return!==null&&(Ps(t,1),yg(t,1,0))}function gd(t){for(;t===Bo;)Bo=Qi[--Ki],Qi[Ki]=null,sl=Qi[--Ki],Qi[Ki]=null;for(;t===ha;)ha=$n[--Xn],$n[Xn]=null,js=$n[--Xn],$n[Xn]=null,vs=$n[--Xn],$n[Xn]=null}function bg(t,s){$n[Xn++]=vs,$n[Xn++]=js,$n[Xn++]=ha,vs=s.id,js=s.overflow,ha=t}var Kt=null,dt=null,Ie=!1,ma=null,Zn=!1,xd=Error(i(519));function pa(t){var s=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw al(Yn(s,t)),xd}function vg(t){var s=t.stateNode,o=t.type,u=t.memoizedProps;switch(s[Qt]=t,s[hn]=u,o){case"dialog":Ue("cancel",s),Ue("close",s);break;case"iframe":case"object":case"embed":Ue("load",s);break;case"video":case"audio":for(o=0;o<_l.length;o++)Ue(_l[o],s);break;case"source":Ue("error",s);break;case"img":case"image":case"link":Ue("error",s),Ue("load",s);break;case"details":Ue("toggle",s);break;case"input":Ue("invalid",s),Rp(s,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ue("invalid",s);break;case"textarea":Ue("invalid",s),Lp(s,u.value,u.defaultValue,u.children)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||s.textContent===""+o||u.suppressHydrationWarning===!0||U0(s.textContent,o)?(u.popover!=null&&(Ue("beforetoggle",s),Ue("toggle",s)),u.onScroll!=null&&Ue("scroll",s),u.onScrollEnd!=null&&Ue("scrollend",s),u.onClick!=null&&(s.onclick=zs),s=!0):s=!1,s||pa(t,!0)}function jg(t){for(Kt=t.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Zn=!1;return;case 27:case 3:Zn=!0;return;default:Kt=Kt.return}}function Yi(t){if(t!==Kt)return!1;if(!Ie)return jg(t),Ie=!0,!1;var s=t.tag,o;if((o=s!==3&&s!==27)&&((o=s===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||zf(t.type,t.memoizedProps)),o=!o),o&&dt&&pa(t),jg(t),s===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));dt=Q0(t)}else if(s===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));dt=Q0(t)}else s===27?(s=dt,Ta(t.type)?(t=Ff,Ff=null,dt=t):dt=s):dt=Kt?Wn(t.stateNode.nextSibling):null;return!0}function ai(){dt=Kt=null,Ie=!1}function yd(){var t=ma;return t!==null&&(yn===null?yn=t:yn.push.apply(yn,t),ma=null),t}function al(t){ma===null?ma=[t]:ma.push(t)}var bd=O(null),ii=null,Bs=null;function ga(t,s,o){ie(bd,s._currentValue),s._currentValue=o}function Fs(t){t._currentValue=bd.current,B(bd)}function vd(t,s,o){for(;t!==null;){var u=t.alternate;if((t.childLanes&s)!==s?(t.childLanes|=s,u!==null&&(u.childLanes|=s)):u!==null&&(u.childLanes&s)!==s&&(u.childLanes|=s),t===o)break;t=t.return}}function jd(t,s,o,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var x=p.dependencies;if(x!==null){var j=p.child;x=x.firstContext;e:for(;x!==null;){var T=x;x=p;for(var D=0;D<s.length;D++)if(T.context===s[D]){x.lanes|=o,T=x.alternate,T!==null&&(T.lanes|=o),vd(x.return,o,t),u||(j=null);break e}x=T.next}}else if(p.tag===18){if(j=p.return,j===null)throw Error(i(341));j.lanes|=o,x=j.alternate,x!==null&&(x.lanes|=o),vd(j,o,t),j=null}else j=p.child;if(j!==null)j.return=p;else for(j=p;j!==null;){if(j===t){j=null;break}if(p=j.sibling,p!==null){p.return=j.return,j=p;break}j=j.return}p=j}}function $i(t,s,o,u){t=null;for(var p=s,x=!1;p!==null;){if(!x){if((p.flags&524288)!==0)x=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var j=p.alternate;if(j===null)throw Error(i(387));if(j=j.memoizedProps,j!==null){var T=p.type;En(p.pendingProps.value,j.value)||(t!==null?t.push(T):t=[T])}}else if(p===Oe.current){if(j=p.alternate,j===null)throw Error(i(387));j.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Ml):t=[Ml])}p=p.return}t!==null&&jd(s,t,o,u),s.flags|=262144}function Fo(t){for(t=t.firstContext;t!==null;){if(!En(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ri(t){ii=t,Bs=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Yt(t){return wg(ii,t)}function Ho(t,s){return ii===null&&ri(t),wg(t,s)}function wg(t,s){var o=s._currentValue;if(s={context:s,memoizedValue:o,next:null},Bs===null){if(t===null)throw Error(i(308));Bs=s,t.dependencies={lanes:0,firstContext:s},t.flags|=524288}else Bs=Bs.next=s;return o}var $j=typeof AbortController<"u"?AbortController:function(){var t=[],s=this.signal={aborted:!1,addEventListener:function(o,u){t.push(u)}};this.abort=function(){s.aborted=!0,t.forEach(function(o){return o()})}},Xj=n.unstable_scheduleCallback,Zj=n.unstable_NormalPriority,Mt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wd(){return{controller:new $j,data:new Map,refCount:0}}function il(t){t.refCount--,t.refCount===0&&Xj(Zj,function(){t.controller.abort()})}var rl=null,Nd=0,Xi=0,Zi=null;function Jj(t,s){if(rl===null){var o=rl=[];Nd=0,Xi=Ef(),Zi={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Nd++,s.then(Ng,Ng),s}function Ng(){if(--Nd===0&&rl!==null){Zi!==null&&(Zi.status="fulfilled");var t=rl;rl=null,Xi=0,Zi=null;for(var s=0;s<t.length;s++)(0,t[s])()}}function Wj(t,s){var o=[],u={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return t.then(function(){u.status="fulfilled",u.value=s;for(var p=0;p<o.length;p++)(0,o[p])(s)},function(p){for(u.status="rejected",u.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),u}var Sg=R.S;R.S=function(t,s){l0=ue(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&Jj(t,s),Sg!==null&&Sg(t,s)};var li=O(null);function Sd(){var t=li.current;return t!==null?t:lt.pooledCache}function Vo(t,s){s===null?ie(li,li.current):ie(li,s.pool)}function Cg(){var t=Sd();return t===null?null:{parent:Mt._currentValue,pool:t}}var Ji=Error(i(460)),Cd=Error(i(474)),Io=Error(i(542)),Go={then:function(){}};function _g(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Eg(t,s,o){switch(o=t[o],o===void 0?t.push(s):o!==s&&(s.then(zs,zs),s=o),s.status){case"fulfilled":return s.value;case"rejected":throw t=s.reason,Tg(t),t;default:if(typeof s.status=="string")s.then(zs,zs);else{if(t=lt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=s,t.status="pending",t.then(function(u){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=u}},function(u){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=u}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw t=s.reason,Tg(t),t}throw ci=s,Ji}}function oi(t){try{var s=t._init;return s(t._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(ci=o,Ji):o}}var ci=null;function kg(){if(ci===null)throw Error(i(459));var t=ci;return ci=null,t}function Tg(t){if(t===Ji||t===Io)throw Error(i(483))}var Wi=null,ll=0;function Qo(t){var s=ll;return ll+=1,Wi===null&&(Wi=[]),Eg(Wi,t,s)}function ol(t,s){s=s.props.ref,t.ref=s!==void 0?s:null}function Ko(t,s){throw s.$$typeof===b?Error(i(525)):(t=Object.prototype.toString.call(s),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":t)))}function Ag(t){function s(V,F){if(t){var K=V.deletions;K===null?(V.deletions=[F],V.flags|=16):K.push(F)}}function o(V,F){if(!t)return null;for(;F!==null;)s(V,F),F=F.sibling;return null}function u(V){for(var F=new Map;V!==null;)V.key!==null?F.set(V.key,V):F.set(V.index,V),V=V.sibling;return F}function p(V,F){return V=qs(V,F),V.index=0,V.sibling=null,V}function x(V,F,K){return V.index=K,t?(K=V.alternate,K!==null?(K=K.index,K<F?(V.flags|=67108866,F):K):(V.flags|=67108866,F)):(V.flags|=1048576,F)}function j(V){return t&&V.alternate===null&&(V.flags|=67108866),V}function T(V,F,K,te){return F===null||F.tag!==6?(F=hd(K,V.mode,te),F.return=V,F):(F=p(F,K),F.return=V,F)}function D(V,F,K,te){var we=K.type;return we===w?ee(V,F,K.props.children,te,K.key):F!==null&&(F.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===P&&oi(we)===F.type)?(F=p(F,K.props),ol(F,K),F.return=V,F):(F=Po(K.type,K.key,K.props,null,V.mode,te),ol(F,K),F.return=V,F)}function Y(V,F,K,te){return F===null||F.tag!==4||F.stateNode.containerInfo!==K.containerInfo||F.stateNode.implementation!==K.implementation?(F=md(K,V.mode,te),F.return=V,F):(F=p(F,K.children||[]),F.return=V,F)}function ee(V,F,K,te,we){return F===null||F.tag!==7?(F=si(K,V.mode,te,we),F.return=V,F):(F=p(F,K),F.return=V,F)}function ae(V,F,K){if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return F=hd(""+F,V.mode,K),F.return=V,F;if(typeof F=="object"&&F!==null){switch(F.$$typeof){case v:return K=Po(F.type,F.key,F.props,null,V.mode,K),ol(K,F),K.return=V,K;case N:return F=md(F,V.mode,K),F.return=V,F;case P:return F=oi(F),ae(V,F,K)}if(oe(F)||L(F))return F=si(F,V.mode,K,null),F.return=V,F;if(typeof F.then=="function")return ae(V,Qo(F),K);if(F.$$typeof===C)return ae(V,Ho(V,F),K);Ko(V,F)}return null}function X(V,F,K,te){var we=F!==null?F.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return we!==null?null:T(V,F,""+K,te);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case v:return K.key===we?D(V,F,K,te):null;case N:return K.key===we?Y(V,F,K,te):null;case P:return K=oi(K),X(V,F,K,te)}if(oe(K)||L(K))return we!==null?null:ee(V,F,K,te,null);if(typeof K.then=="function")return X(V,F,Qo(K),te);if(K.$$typeof===C)return X(V,F,Ho(V,K),te);Ko(V,K)}return null}function Z(V,F,K,te,we){if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return V=V.get(K)||null,T(F,V,""+te,we);
vendor: 5,492 bytes, line 8
8if(typeof te=="object"&&te!==null){switch(te.$$typeof){case v:return V=V.get(te.key===null?K:te.key)||null,D(F,V,te,we);case N:return V=V.get(te.key===null?K:te.key)||null,Y(F,V,te,we);case P:return te=oi(te),Z(V,F,K,te,we)}if(oe(te)||L(te))return V=V.get(K)||null,ee(F,V,te,we,null);if(typeof te.then=="function")return Z(V,F,K,Qo(te),we);if(te.$$typeof===C)return Z(V,F,K,Ho(F,te),we);Ko(F,te)}return null}function pe(V,F,K,te){for(var we=null,Ke=null,ye=F,Me=F=0,Be=null;ye!==null&&Me<K.length;Me++){ye.index>Me?(Be=ye,ye=null):Be=ye.sibling;var Ye=X(V,ye,K[Me],te);if(Ye===null){ye===null&&(ye=Be);break}t&&ye&&Ye.alternate===null&&s(V,ye),F=x(Ye,F,Me),Ke===null?we=Ye:Ke.sibling=Ye,Ke=Ye,ye=Be}if(Me===K.length)return o(V,ye),Ie&&Ps(V,Me),we;if(ye===null){for(;Me<K.length;Me++)ye=ae(V,K[Me],te),ye!==null&&(F=x(ye,F,Me),Ke===null?we=ye:Ke.sibling=ye,Ke=ye);return Ie&&Ps(V,Me),we}for(ye=u(ye);Me<K.length;Me++)Be=Z(ye,V,Me,K[Me],te),Be!==null&&(t&&Be.alternate!==null&&ye.delete(Be.key===null?Me:Be.key),F=x(Be,F,Me),Ke===null?we=Be:Ke.sibling=Be,Ke=Be);return t&&ye.forEach(function(Da){return s(V,Da)}),Ie&&Ps(V,Me),we}function Se(V,F,K,te){if(K==null)throw Error(i(151));for(var we=null,Ke=null,ye=F,Me=F=0,Be=null,Ye=K.next();ye!==null&&!Ye.done;Me++,Ye=K.next()){ye.index>Me?(Be=ye,ye=null):Be=ye.sibling;var Da=X(V,ye,Ye.value,te);if(Da===null){ye===null&&(ye=Be);break}t&&ye&&Da.alternate===null&&s(V,ye),F=x(Da,F,Me),Ke===null?we=Da:Ke.sibling=Da,Ke=Da,ye=Be}if(Ye.done)return o(V,ye),Ie&&Ps(V,Me),we;if(ye===null){for(;!Ye.done;Me++,Ye=K.next())Ye=ae(V,Ye.value,te),Ye!==null&&(F=x(Ye,F,Me),Ke===null?we=Ye:Ke.sibling=Ye,Ke=Ye);return Ie&&Ps(V,Me),we}for(ye=u(ye);!Ye.done;Me++,Ye=K.next())Ye=Z(ye,V,Me,Ye.value,te),Ye!==null&&(t&&Ye.alternate!==null&&ye.delete(Ye.key===null?Me:Ye.key),F=x(Ye,F,Me),Ke===null?we=Ye:Ke.sibling=Ye,Ke=Ye);return t&&ye.forEach(function(uN){return s(V,uN)}),Ie&&Ps(V,Me),we}function it(V,F,K,te){if(typeof K=="object"&&K!==null&&K.type===w&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case v:e:{for(var we=K.key;F!==null;){if(F.key===we){if(we=K.type,we===w){if(F.tag===7){o(V,F.sibling),te=p(F,K.props.children),te.return=V,V=te;break e}}else if(F.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===P&&oi(we)===F.type){o(V,F.sibling),te=p(F,K.props),ol(te,K),te.return=V,V=te;break e}o(V,F);break}else s(V,F);F=F.sibling}K.type===w?(te=si(K.props.children,V.mode,te,K.key),te.return=V,V=te):(te=Po(K.type,K.key,K.props,null,V.mode,te),ol(te,K),te.return=V,V=te)}return j(V);case N:e:{for(we=K.key;F!==null;){if(F.key===we)if(F.tag===4&&F.stateNode.containerInfo===K.containerInfo&&F.stateNode.implementation===K.implementation){o(V,F.sibling),te=p(F,K.children||[]),te.return=V,V=te;break e}else{o(V,F);break}else s(V,F);F=F.sibling}te=md(K,V.mode,te),te.return=V,V=te}return j(V);case P:return K=oi(K),it(V,F,K,te)}if(oe(K))return pe(V,F,K,te);if(L(K)){if(we=L(K),typeof we!="function")throw Error(i(150));return K=we.call(K),Se(V,F,K,te)}if(typeof K.then=="function")return it(V,F,Qo(K),te);if(K.$$typeof===C)return it(V,F,Ho(V,K),te);Ko(V,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,F!==null&&F.tag===6?(o(V,F.sibling),te=p(F,K),te.return=V,V=te):(o(V,F),te=hd(K,V.mode,te),te.return=V,V=te),j(V)):o(V,F)}return function(V,F,K,te){try{ll=0;var we=it(V,F,K,te);return Wi=null,we}catch(ye){if(ye===Ji||ye===Io)throw ye;var Ke=kn(29,ye,null,V.mode);return Ke.lanes=te,Ke.return=V,Ke}}}var ui=Ag(!0),Mg=Ag(!1),xa=!1;function _d(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ed(t,s){t=t.updateQueue,s.updateQueue===t&&(s.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ya(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ba(t,s,o){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Je&2)!==0){var p=u.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),u.pending=s,s=qo(t),mg(t,null,o),s}return Uo(t,u,s,o),qo(t)}function cl(t,s,o){if(s=s.updateQueue,s!==null&&(s=s.shared,(o&4194048)!==0)){var u=s.lanes;u&=t.pendingLanes,o|=u,s.lanes=o,wp(t,o)}}function kd(t,s){var o=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var p=null,x=null;if(o=o.firstBaseUpdate,o!==null){do{var j={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};x===null?p=x=j:x=x.next=j,o=o.next}while(o!==null);x===null?p=x=s:x=x.next=s}else p=x=s;o={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:x,shared:u.shared,callbacks:u.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=s:t.next=s,o.lastBaseUpdate=s}var Td=!1;function ul(){if(Td){var t=Zi;if(t!==null)throw t}}function dl(t,s,o,u){Td=!1;var p=t.updateQueue;xa=!1;var x=p.firstBaseUpdate,j=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var D=T,Y=D.next;D.next=null,j===null?x=Y:j.next=Y,j=D;var ee=t.alternate;ee!==null&&(ee=ee.updateQueue,T=ee.lastBaseUpdate,T!==j&&(T===null?ee.firstBaseUpdate=Y:T.next=Y,ee.lastBaseUpdate=D))}if(x!==null){var ae=p.baseState;j=0,ee=Y=D=null,T=x;do{var X=T.lane&-536870913,Z=X!==T.lane;if(Z?(Pe&X)===X:(u&X)===X){X!==0&&X===Xi&&(Td=!0),ee!==null&&(ee=ee.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var pe=t,Se=T;X=s;var it=o;
vendor: 10,113 bytes, line 8
8switch(Se.tag){case 1:if(pe=Se.payload,typeof pe=="function"){ae=pe.call(it,ae,X);break e}ae=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Se.payload,X=typeof pe=="function"?pe.call(it,ae,X):pe,X==null)break e;ae=y({},ae,X);break e;case 2:xa=!0}}X=T.callback,X!==null&&(t.flags|=64,Z&&(t.flags|=8192),Z=p.callbacks,Z===null?p.callbacks=[X]:Z.push(X))}else Z={lane:X,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ee===null?(Y=ee=Z,D=ae):ee=ee.next=Z,j|=X;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;Z=T,T=Z.next,Z.next=null,p.lastBaseUpdate=Z,p.shared.pending=null}}while(!0);ee===null&&(D=ae),p.baseState=D,p.firstBaseUpdate=Y,p.lastBaseUpdate=ee,x===null&&(p.shared.lanes=0),Sa|=j,t.lanes=j,t.memoizedState=ae}}function Og(t,s){if(typeof t!="function")throw Error(i(191,t));t.call(s)}function Rg(t,s){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)Og(o[t],s)}var er=O(null),Yo=O(0);function Dg(t,s){t=Xs,ie(Yo,t),ie(er,s),Xs=t|s.baseLanes}function Ad(){ie(Yo,Xs),ie(er,er.current)}function Md(){Xs=Yo.current,B(er),B(Yo)}var Tn=O(null),Jn=null;function va(t){var s=t.alternate;ie(kt,kt.current&1),ie(Tn,t),Jn===null&&(s===null||er.current!==null||s.memoizedState!==null)&&(Jn=t)}function Od(t){ie(kt,kt.current),ie(Tn,t),Jn===null&&(Jn=t)}function Lg(t){t.tag===22?(ie(kt,kt.current),ie(Tn,t),Jn===null&&(Jn=t)):ja()}function ja(){ie(kt,kt.current),ie(Tn,Tn.current)}function An(t){B(Tn),Jn===t&&(Jn=null),B(kt)}var kt=O(0);function $o(t){for(var s=t;s!==null;){if(s.tag===13){var o=s.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Pf(o)||Bf(o)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Hs=0,Ae=null,st=null,Ot=null,Xo=!1,tr=!1,di=!1,Zo=0,fl=0,nr=null,ew=0;function St(){throw Error(i(321))}function Rd(t,s){if(s===null)return!1;for(var o=0;o<s.length&&o<t.length;o++)if(!En(t[o],s[o]))return!1;return!0}function Dd(t,s,o,u,p,x){return Hs=x,Ae=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,R.H=t===null||t.memoizedState===null?yx:$d,di=!1,x=o(u,p),di=!1,tr&&(x=Ug(s,o,u,p)),zg(t),x}function zg(t){R.H=pl;var s=st!==null&&st.next!==null;if(Hs=0,Ot=st=Ae=null,Xo=!1,fl=0,nr=null,s)throw Error(i(300));t===null||Rt||(t=t.dependencies,t!==null&&Fo(t)&&(Rt=!0))}function Ug(t,s,o,u){Ae=t;var p=0;do{if(tr&&(nr=null),fl=0,tr=!1,25<=p)throw Error(i(301));if(p+=1,Ot=st=null,t.updateQueue!=null){var x=t.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}R.H=bx,x=s(o,u)}while(tr);return x}function tw(){var t=R.H,s=t.useState()[0];return s=typeof s.then=="function"?hl(s):s,t=t.useState()[0],(st!==null?st.memoizedState:null)!==t&&(Ae.flags|=1024),s}function Ld(){var t=Zo!==0;return Zo=0,t}function zd(t,s,o){s.updateQueue=t.updateQueue,s.flags&=-2053,t.lanes&=~o}function Ud(t){if(Xo){for(t=t.memoizedState;t!==null;){var s=t.queue;s!==null&&(s.pending=null),t=t.next}Xo=!1}Hs=0,Ot=st=Ae=null,tr=!1,fl=Zo=0,nr=null}function ln(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?Ae.memoizedState=Ot=t:Ot=Ot.next=t,Ot}function Tt(){if(st===null){var t=Ae.alternate;t=t!==null?t.memoizedState:null}else t=st.next;var s=Ot===null?Ae.memoizedState:Ot.next;if(s!==null)Ot=s,st=t;else{if(t===null)throw Ae.alternate===null?Error(i(467)):Error(i(310));st=t,t={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},Ot===null?Ae.memoizedState=Ot=t:Ot=Ot.next=t}return Ot}function Jo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hl(t){var s=fl;return fl+=1,nr===null&&(nr=[]),t=Eg(nr,t,s),s=Ae,(Ot===null?s.memoizedState:Ot.next)===null&&(s=s.alternate,R.H=s===null||s.memoizedState===null?yx:$d),t}function Wo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return hl(t);if(t.$$typeof===C)return Yt(t)}throw Error(i(438,String(t)))}function qd(t){var s=null,o=Ae.updateQueue;if(o!==null&&(s=o.memoCache),s==null){var u=Ae.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(s={data:u.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),o===null&&(o=Jo(),Ae.updateQueue=o),o.memoCache=s,o=s.data[s.index],o===void 0)for(o=s.data[s.index]=Array(t),u=0;u<t;u++)o[u]=G;return s.index++,o}function Vs(t,s){return typeof s=="function"?s(t):s}function ec(t){var s=Tt();return Pd(s,st,t)}function Pd(t,s,o){var u=t.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=o;var p=t.baseQueue,x=u.pending;if(x!==null){if(p!==null){var j=p.next;p.next=x.next,x.next=j}s.baseQueue=p=x,u.pending=null}if(x=t.baseState,p===null)t.memoizedState=x;else{s=p.next;var T=j=null,D=null,Y=s,ee=!1;do{var ae=Y.lane&-536870913;if(ae!==Y.lane?(Pe&ae)===ae:(Hs&ae)===ae){var X=Y.revertLane;if(X===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),ae===Xi&&(ee=!0);else if((Hs&X)===X){Y=Y.next,X===Xi&&(ee=!0);continue}else ae={lane:0,revertLane:Y.revertLane,gesture:null,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},D===null?(T=D=ae,j=x):D=D.next=ae,Ae.lanes|=X,Sa|=X;ae=Y.action,di&&o(x,ae),x=Y.hasEagerState?Y.eagerState:o(x,ae)}else X={lane:ae,revertLane:Y.revertLane,gesture:Y.gesture,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null},D===null?(T=D=X,j=x):D=D.next=X,Ae.lanes|=ae,Sa|=ae;Y=Y.next}while(Y!==null&&Y!==s);if(D===null?j=x:D.next=T,!En(x,t.memoizedState)&&(Rt=!0,ee&&(o=Zi,o!==null)))throw o;t.memoizedState=x,t.baseState=j,t.baseQueue=D,u.lastRenderedState=x}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Bd(t){var s=Tt(),o=s.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var u=o.dispatch,p=o.pending,x=s.memoizedState;if(p!==null){o.pending=null;var j=p=p.next;do x=t(x,j.action),j=j.next;while(j!==p);En(x,s.memoizedState)||(Rt=!0),s.memoizedState=x,s.baseQueue===null&&(s.baseState=x),o.lastRenderedState=x}return[x,u]}function qg(t,s,o){var u=Ae,p=Tt(),x=Ie;if(x){if(o===void 0)throw Error(i(407));o=o()}else o=s();var j=!En((st||p).memoizedState,o);if(j&&(p.memoizedState=o,Rt=!0),p=p.queue,Vd(Fg.bind(null,u,p,t),[t]),p.getSnapshot!==s||j||Ot!==null&&Ot.memoizedState.tag&1){if(u.flags|=2048,sr(9,{destroy:void 0},Bg.bind(null,u,p,o,s),null),lt===null)throw Error(i(349));x||(Hs&127)!==0||Pg(u,s,o)}return o}function Pg(t,s,o){t.flags|=16384,t={getSnapshot:s,value:o},s=Ae.updateQueue,s===null?(s=Jo(),Ae.updateQueue=s,s.stores=[t]):(o=s.stores,o===null?s.stores=[t]:o.push(t))}function Bg(t,s,o,u){s.value=o,s.getSnapshot=u,Hg(s)&&Vg(t)}function Fg(t,s,o){return o(function(){Hg(s)&&Vg(t)})}function Hg(t){var s=t.getSnapshot;t=t.value;try{var o=s();return!En(t,o)}catch{return!0}}function Vg(t){var s=ni(t,2);s!==null&&bn(s,t,2)}function Fd(t){var s=ln();if(typeof t=="function"){var o=t;if(t=o(),di){In(!0);try{o()}finally{In(!1)}}}return s.memoizedState=s.baseState=t,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:t},s}function Ig(t,s,o,u){return t.baseState=o,Pd(t,st,typeof u=="function"?u:Vs)}function nw(t,s,o,u,p){if(sc(t))throw Error(i(485));if(t=s.action,t!==null){var x={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){x.listeners.push(j)}};R.T!==null?o(!0):x.isTransition=!1,u(x),o=s.pending,o===null?(x.next=s.pending=x,Gg(s,x)):(x.next=o.next,s.pending=o.next=x)}}function Gg(t,s){var o=s.action,u=s.payload,p=t.state;if(s.isTransition){var x=R.T,j={};R.T=j;try{var T=o(p,u),D=R.S;D!==null&&D(j,T),Qg(t,s,T)}catch(Y){Hd(t,s,Y)}finally{x!==null&&j.types!==null&&(x.types=j.types),R.T=x}}else try{x=o(p,u),Qg(t,s,x)}catch(Y){Hd(t,s,Y)}}function Qg(t,s,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){Kg(t,s,u)},function(u){return Hd(t,s,u)}):Kg(t,s,o)}function Kg(t,s,o){s.status="fulfilled",s.value=o,Yg(s),t.state=o,s=t.pending,s!==null&&(o=s.next,o===s?t.pending=null:(o=o.next,s.next=o,Gg(t,o)))}function Hd(t,s,o){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do s.status="rejected",s.reason=o,Yg(s),s=s.next;while(s!==u)}t.action=null}function Yg(t){t=t.listeners;for(var s=0;s<t.length;s++)(0,t[s])()}function $g(t,s){return s}function Xg(t,s){if(Ie){var o=lt.formState;if(o!==null){e:{var u=Ae;if(Ie){if(dt){t:{for(var p=dt,x=Zn;p.nodeType!==8;){if(!x){p=null;break t}if(p=Wn(p.nextSibling),p===null){p=null;break t}}x=p.data,p=x==="F!"||x==="F"?p:null}if(p){dt=Wn(p.nextSibling),u=p.data==="F!";break e}}pa(u)}u=!1}u&&(s=o[0])}}return o=ln(),o.memoizedState=o.baseState=s,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$g,lastRenderedState:s},o.queue=u,o=px.bind(null,Ae,u),u.dispatch=o,u=Fd(!1),x=Yd.bind(null,Ae,!1,u.queue),u=ln(),p={state:s,dispatch:null,action:t,pending:null},u.queue=p,o=nw.bind(null,Ae,p,x,o),p.dispatch=o,u.memoizedState=t,[s,o,!1]}function Zg(t){var s=Tt();return Jg(s,st,t)}function Jg(t,s,o){if(s=Pd(t,s,$g)[0],t=ec(Vs)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var u=hl(s)}catch(j){throw j===Ji?Io:j}else u=s;s=Tt();var p=s.queue,x=p.dispatch;return o!==s.memoizedState&&(Ae.flags|=2048,sr(9,{destroy:void 0},sw.bind(null,p,o),null)),[u,x,t]}function sw(t,s){t.action=s}function Wg(t){var s=Tt(),o=st;if(o!==null)return Jg(s,o,t);Tt(),s=s.memoizedState,o=Tt();var u=o.queue.dispatch;return o.memoizedState=t,[s,u,!1]}function sr(t,s,o,u){return t={tag:t,create:o,deps:u,inst:s,next:null},s=Ae.updateQueue,s===null&&(s=Jo(),Ae.updateQueue=s),o=s.lastEffect,o===null?s.lastEffect=t.next=t:(u=o.next,o.next=t,t.next=u,s.lastEffect=t),t}function ex(){return Tt().memoizedState}
vendor: 5,251 bytes, line 8
8function tc(t,s,o,u){var p=ln();Ae.flags|=t,p.memoizedState=sr(1|s,{destroy:void 0},o,u===void 0?null:u)}function nc(t,s,o,u){var p=Tt();u=u===void 0?null:u;var x=p.memoizedState.inst;st!==null&&u!==null&&Rd(u,st.memoizedState.deps)?p.memoizedState=sr(s,x,o,u):(Ae.flags|=t,p.memoizedState=sr(1|s,x,o,u))}function tx(t,s){tc(8390656,8,t,s)}function Vd(t,s){nc(2048,8,t,s)}function aw(t){Ae.flags|=4;var s=Ae.updateQueue;if(s===null)s=Jo(),Ae.updateQueue=s,s.events=[t];else{var o=s.events;o===null?s.events=[t]:o.push(t)}}function nx(t){var s=Tt().memoizedState;return aw({ref:s,nextImpl:t}),function(){if((Je&2)!==0)throw Error(i(440));return s.impl.apply(void 0,arguments)}}function sx(t,s){return nc(4,2,t,s)}function ax(t,s){return nc(4,4,t,s)}function ix(t,s){if(typeof s=="function"){t=t();var o=s(t);return function(){typeof o=="function"?o():s(null)}}if(s!=null)return t=t(),s.current=t,function(){s.current=null}}function rx(t,s,o){o=o!=null?o.concat([t]):null,nc(4,4,ix.bind(null,s,t),o)}function Id(){}function lx(t,s){var o=Tt();s=s===void 0?null:s;var u=o.memoizedState;return s!==null&&Rd(s,u[1])?u[0]:(o.memoizedState=[t,s],t)}function ox(t,s){var o=Tt();s=s===void 0?null:s;var u=o.memoizedState;if(s!==null&&Rd(s,u[1]))return u[0];if(u=t(),di){In(!0);try{t()}finally{In(!1)}}return o.memoizedState=[u,s],u}function Gd(t,s,o){return o===void 0||(Hs&1073741824)!==0&&(Pe&261930)===0?t.memoizedState=s:(t.memoizedState=o,t=c0(),Ae.lanes|=t,Sa|=t,o)}function cx(t,s,o,u){return En(o,s)?o:er.current!==null?(t=Gd(t,o,u),En(t,s)||(Rt=!0),t):(Hs&42)===0||(Hs&1073741824)!==0&&(Pe&261930)===0?(Rt=!0,t.memoizedState=o):(t=c0(),Ae.lanes|=t,Sa|=t,s)}function ux(t,s,o,u,p){var x=U.p;U.p=x!==0&&8>x?x:8;var j=R.T,T={};R.T=T,Yd(t,!1,s,o);try{var D=p(),Y=R.S;if(Y!==null&&Y(T,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var ee=Wj(D,u);ml(t,s,ee,Rn(t))}else ml(t,s,u,Rn(t))}catch(ae){ml(t,s,{then:function(){},status:"rejected",reason:ae},Rn())}finally{U.p=x,j!==null&&T.types!==null&&(j.types=T.types),R.T=j}}function iw(){}function Qd(t,s,o,u){if(t.tag!==5)throw Error(i(476));var p=dx(t).queue;ux(t,p,s,W,o===null?iw:function(){return fx(t),o(u)})}function dx(t){var s=t.memoizedState;if(s!==null)return s;s={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:W},next:null};var o={};return s.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vs,lastRenderedState:o},next:null},t.memoizedState=s,t=t.alternate,t!==null&&(t.memoizedState=s),s}function fx(t){var s=dx(t);s.next===null&&(s=t.alternate.memoizedState),ml(t,s.next.queue,{},Rn())}function Kd(){return Yt(Ml)}function hx(){return Tt().memoizedState}function mx(){return Tt().memoizedState}function rw(t){for(var s=t.return;s!==null;){switch(s.tag){case 24:case 3:var o=Rn();t=ya(o);var u=ba(s,t,o);u!==null&&(bn(u,s,o),cl(u,s,o)),s={cache:wd()},t.payload=s;return}s=s.return}}function lw(t,s,o){var u=Rn();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},sc(t)?gx(s,o):(o=dd(t,s,o,u),o!==null&&(bn(o,t,u),xx(o,s,u)))}function px(t,s,o){var u=Rn();ml(t,s,o,u)}function ml(t,s,o,u){var p={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(sc(t))gx(s,p);else{var x=t.alternate;if(t.lanes===0&&(x===null||x.lanes===0)&&(x=s.lastRenderedReducer,x!==null))try{var j=s.lastRenderedState,T=x(j,o);if(p.hasEagerState=!0,p.eagerState=T,En(T,j))return Uo(t,s,p,0),lt===null&&zo(),!1}catch{}if(o=dd(t,s,p,u),o!==null)return bn(o,t,u),xx(o,s,u),!0}return!1}function Yd(t,s,o,u){if(u={lane:2,revertLane:Ef(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},sc(t)){if(s)throw Error(i(479))}else s=dd(t,o,u,2),s!==null&&bn(s,t,2)}function sc(t){var s=t.alternate;return t===Ae||s!==null&&s===Ae}function gx(t,s){tr=Xo=!0;var o=t.pending;o===null?s.next=s:(s.next=o.next,o.next=s),t.pending=s}function xx(t,s,o){if((o&4194048)!==0){var u=s.lanes;u&=t.pendingLanes,o|=u,s.lanes=o,wp(t,o)}}var pl={readContext:Yt,use:Wo,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};pl.useEffectEvent=St;var yx={readContext:Yt,use:Wo,useCallback:function(t,s){return ln().memoizedState=[t,s===void 0?null:s],t},useContext:Yt,useEffect:tx,useImperativeHandle:function(t,s,o){o=o!=null?o.concat([t]):null,tc(4194308,4,ix.bind(null,s,t),o)},useLayoutEffect:function(t,s){return tc(4194308,4,t,s)},useInsertionEffect:function(t,s){tc(4,2,t,s)},useMemo:function(t,s){var o=ln();s=s===void 0?null:s;var u=t();if(di){In(!0);try{t()}finally{In(!1)}}return o.memoizedState=[u,s],u},useReducer:function(t,s,o){var u=ln();if(o!==void 0){var p=o(s);if(di){In(!0);try{o(s)}finally{In(!1)}}}else p=s;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=lw.bind(null,Ae,t),[u.memoizedState,t]}
vendor: 4,161 bytes, line 8
8,useRef:function(t){var s=ln();return t={current:t},s.memoizedState=t},useState:function(t){t=Fd(t);var s=t.queue,o=px.bind(null,Ae,s);return s.dispatch=o,[t.memoizedState,o]},useDebugValue:Id,useDeferredValue:function(t,s){var o=ln();return Gd(o,t,s)},useTransition:function(){var t=Fd(!1);return t=ux.bind(null,Ae,t.queue,!0,!1),ln().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,s,o){var u=Ae,p=ln();if(Ie){if(o===void 0)throw Error(i(407));o=o()}else{if(o=s(),lt===null)throw Error(i(349));(Pe&127)!==0||Pg(u,s,o)}p.memoizedState=o;var x={value:o,getSnapshot:s};return p.queue=x,tx(Fg.bind(null,u,x,t),[t]),u.flags|=2048,sr(9,{destroy:void 0},Bg.bind(null,u,x,o,s),null),o},useId:function(){var t=ln(),s=lt.identifierPrefix;if(Ie){var o=js,u=vs;o=(u&~(1<<32-rn(u)-1)).toString(32)+o,s="_"+s+"R_"+o,o=Zo++,0<o&&(s+="H"+o.toString(32)),s+="_"}else o=ew++,s="_"+s+"r_"+o.toString(32)+"_";return t.memoizedState=s},useHostTransitionStatus:Kd,useFormState:Xg,useActionState:Xg,useOptimistic:function(t){var s=ln();s.memoizedState=s.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=o,s=Yd.bind(null,Ae,!0,o),o.dispatch=s,[t,s]},useMemoCache:qd,useCacheRefresh:function(){return ln().memoizedState=rw.bind(null,Ae)},useEffectEvent:function(t){var s=ln(),o={impl:t};return s.memoizedState=o,function(){if((Je&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},$d={readContext:Yt,use:Wo,useCallback:lx,useContext:Yt,useEffect:Vd,useImperativeHandle:rx,useInsertionEffect:sx,useLayoutEffect:ax,useMemo:ox,useReducer:ec,useRef:ex,useState:function(){return ec(Vs)},useDebugValue:Id,useDeferredValue:function(t,s){var o=Tt();return cx(o,st.memoizedState,t,s)},useTransition:function(){var t=ec(Vs)[0],s=Tt().memoizedState;return[typeof t=="boolean"?t:hl(t),s]},useSyncExternalStore:qg,useId:hx,useHostTransitionStatus:Kd,useFormState:Zg,useActionState:Zg,useOptimistic:function(t,s){var o=Tt();return Ig(o,st,t,s)},useMemoCache:qd,useCacheRefresh:mx};$d.useEffectEvent=nx;var bx={readContext:Yt,use:Wo,useCallback:lx,useContext:Yt,useEffect:Vd,useImperativeHandle:rx,useInsertionEffect:sx,useLayoutEffect:ax,useMemo:ox,useReducer:Bd,useRef:ex,useState:function(){return Bd(Vs)},useDebugValue:Id,useDeferredValue:function(t,s){var o=Tt();return st===null?Gd(o,t,s):cx(o,st.memoizedState,t,s)},useTransition:function(){var t=Bd(Vs)[0],s=Tt().memoizedState;return[typeof t=="boolean"?t:hl(t),s]},useSyncExternalStore:qg,useId:hx,useHostTransitionStatus:Kd,useFormState:Wg,useActionState:Wg,useOptimistic:function(t,s){var o=Tt();return st!==null?Ig(o,st,t,s):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:qd,useCacheRefresh:mx};bx.useEffectEvent=nx;function Xd(t,s,o,u){s=t.memoizedState,o=o(u,s),o=o==null?s:y({},s,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Zd={enqueueSetState:function(t,s,o){t=t._reactInternals;var u=Rn(),p=ya(u);p.payload=s,o!=null&&(p.callback=o),s=ba(t,p,u),s!==null&&(bn(s,t,u),cl(s,t,u))},enqueueReplaceState:function(t,s,o){t=t._reactInternals;var u=Rn(),p=ya(u);p.tag=1,p.payload=s,o!=null&&(p.callback=o),s=ba(t,p,u),s!==null&&(bn(s,t,u),cl(s,t,u))},enqueueForceUpdate:function(t,s){t=t._reactInternals;var o=Rn(),u=ya(o);u.tag=2,s!=null&&(u.callback=s),s=ba(t,u,o),s!==null&&(bn(s,t,o),cl(s,t,o))}};function vx(t,s,o,u,p,x,j){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,x,j):s.prototype&&s.prototype.isPureReactComponent?!tl(o,u)||!tl(p,x):!0}function jx(t,s,o,u){t=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(o,u),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(o,u),s.state!==t&&Zd.enqueueReplaceState(s,s.state,null)}function fi(t,s){var o=s;if("ref"in s){o={};for(var u in s)u!=="ref"&&(o[u]=s[u])}if(t=t.defaultProps){o===s&&(o=y({},o));for(var p in t)o[p]===void 0&&(o[p]=t[p])}return o}function wx(t){Lo(t)}function Nx(t){console.error(t)}function Sx(t){Lo(t)}function ac(t,s){try{var o=t.onUncaughtError;o(s.value,{componentStack:s.stack})}catch(u){setTimeout(function(){throw u})}}
vendor: 12,619 bytes, line 8
8function Cx(t,s,o){try{var u=t.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Jd(t,s,o){return o=ya(o),o.tag=3,o.payload={element:null},o.callback=function(){ac(t,s)},o}function _x(t){return t=ya(t),t.tag=3,t}function Ex(t,s,o,u){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var x=u.value;t.payload=function(){return p(x)},t.callback=function(){Cx(s,o,u)}}var j=o.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(t.callback=function(){Cx(s,o,u),typeof p!="function"&&(Ca===null?Ca=new Set([this]):Ca.add(this));var T=u.stack;this.componentDidCatch(u.value,{componentStack:T!==null?T:""})})}function ow(t,s,o,u,p){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(s=o.alternate,s!==null&&$i(s,o,p,!0),o=Tn.current,o!==null){switch(o.tag){case 31:case 13:return Jn===null?gc():o.alternate===null&&Ct===0&&(Ct=3),o.flags&=-257,o.flags|=65536,o.lanes=p,u===Go?o.flags|=16384:(s=o.updateQueue,s===null?o.updateQueue=new Set([u]):s.add(u),Sf(t,u,p)),!1;case 22:return o.flags|=65536,u===Go?o.flags|=16384:(s=o.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=s):(o=s.retryQueue,o===null?s.retryQueue=new Set([u]):o.add(u)),Sf(t,u,p)),!1}throw Error(i(435,o.tag))}return Sf(t,u,p),gc(),!1}if(Ie)return s=Tn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,u!==xd&&(t=Error(i(422),{cause:u}),al(Yn(t,o)))):(u!==xd&&(s=Error(i(423),{cause:u}),al(Yn(s,o))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=Yn(u,o),p=Jd(t.stateNode,u,p),kd(t,p),Ct!==4&&(Ct=2)),!1;var x=Error(i(520),{cause:u});if(x=Yn(x,o),Nl===null?Nl=[x]:Nl.push(x),Ct!==4&&(Ct=2),s===null)return!0;u=Yn(u,o),o=s;do{switch(o.tag){case 3:return o.flags|=65536,t=p&-p,o.lanes|=t,t=Jd(o.stateNode,u,t),kd(o,t),!1;case 1:if(s=o.type,x=o.stateNode,(o.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Ca===null||!Ca.has(x))))return o.flags|=65536,p&=-p,o.lanes|=p,p=_x(p),Ex(p,t,o,u),kd(o,p),!1}o=o.return}while(o!==null);return!1}var Wd=Error(i(461)),Rt=!1;function $t(t,s,o,u){s.child=t===null?Mg(s,null,o,u):ui(s,t.child,o,u)}function kx(t,s,o,u,p){o=o.render;var x=s.ref;if("ref"in u){var j={};for(var T in u)T!=="ref"&&(j[T]=u[T])}else j=u;return ri(s),u=Dd(t,s,o,j,x,p),T=Ld(),t!==null&&!Rt?(zd(t,s,p),Is(t,s,p)):(Ie&&T&&pd(s),s.flags|=1,$t(t,s,u,p),s.child)}function Tx(t,s,o,u,p){if(t===null){var x=o.type;return typeof x=="function"&&!fd(x)&&x.defaultProps===void 0&&o.compare===null?(s.tag=15,s.type=x,Ax(t,s,x,u,p)):(t=Po(o.type,null,u,s,s.mode,p),t.ref=s.ref,t.return=s,s.child=t)}if(x=t.child,!of(t,p)){var j=x.memoizedProps;if(o=o.compare,o=o!==null?o:tl,o(j,u)&&t.ref===s.ref)return Is(t,s,p)}return s.flags|=1,t=qs(x,u),t.ref=s.ref,t.return=s,s.child=t}function Ax(t,s,o,u,p){if(t!==null){var x=t.memoizedProps;if(tl(x,u)&&t.ref===s.ref)if(Rt=!1,s.pendingProps=u=x,of(t,p))(t.flags&131072)!==0&&(Rt=!0);else return s.lanes=t.lanes,Is(t,s,p)}return ef(t,s,o,u,p)}function Mx(t,s,o,u){var p=u.children,x=t!==null?t.memoizedState:null;if(t===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((s.flags&128)!==0){if(x=x!==null?x.baseLanes|o:o,t!==null){for(u=s.child=t.child,p=0;u!==null;)p=p|u.lanes|u.childLanes,u=u.sibling;u=p&~x}else u=0,s.child=null;return Ox(t,s,x,o,u)}if((o&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},t!==null&&Vo(s,x!==null?x.cachePool:null),x!==null?Dg(s,x):Ad(),Lg(s);else return u=s.lanes=536870912,Ox(t,s,x!==null?x.baseLanes|o:o,o,u)}else x!==null?(Vo(s,x.cachePool),Dg(s,x),ja(),s.memoizedState=null):(t!==null&&Vo(s,null),Ad(),ja());return $t(t,s,p,o),s.child}function gl(t,s){return t!==null&&t.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function Ox(t,s,o,u,p){var x=Sd();return x=x===null?null:{parent:Mt._currentValue,pool:x},s.memoizedState={baseLanes:o,cachePool:x},t!==null&&Vo(s,null),Ad(),Lg(s),t!==null&&$i(t,s,u,!0),s.childLanes=p,null}function ic(t,s){return s=lc({mode:s.mode,children:s.children},t.mode),s.ref=t.ref,t.child=s,s.return=t,s}function Rx(t,s,o){return ui(s,t.child,null,o),t=ic(s,s.pendingProps),t.flags|=2,An(s),s.memoizedState=null,t}function cw(t,s,o){var u=s.pendingProps,p=(s.flags&128)!==0;if(s.flags&=-129,t===null){if(Ie){if(u.mode==="hidden")return t=ic(s,u),s.lanes=536870912,gl(null,t);if(Od(s),(t=dt)?(t=G0(t,Zn),t=t!==null&&t.data==="&"?t:null,t!==null&&(s.memoizedState={dehydrated:t,treeContext:ha!==null?{id:vs,overflow:js}:null,retryLane:536870912,hydrationErrors:null},o=gg(t),o.return=s,s.child=o,Kt=s,dt=null)):t=null,t===null)throw pa(s);return s.lanes=536870912,null}return ic(s,u)}var x=t.memoizedState;if(x!==null){var j=x.dehydrated;if(Od(s),p)if(s.flags&256)s.flags&=-257,s=Rx(t,s,o);else if(s.memoizedState!==null)s.child=t.child,s.flags|=128,s=null;else throw Error(i(558));else if(Rt||$i(t,s,o,!1),p=(o&t.childLanes)!==0,Rt||p){if(u=lt,u!==null&&(j=Np(u,o),j!==0&&j!==x.retryLane))throw x.retryLane=j,ni(t,j),bn(u,t,j),Wd;gc(),s=Rx(t,s,o)}else t=x.treeContext,dt=Wn(j.nextSibling),Kt=s,Ie=!0,ma=null,Zn=!1,t!==null&&bg(s,t),s=ic(s,u),s.flags|=4096;return s}return t=qs(t.child,{mode:u.mode,children:u.children}),t.ref=s.ref,s.child=t,t.return=s,t}function rc(t,s){var o=s.ref;if(o===null)t!==null&&t.ref!==null&&(s.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(s.flags|=4194816)}}function ef(t,s,o,u,p){return ri(s),o=Dd(t,s,o,u,void 0,p),u=Ld(),t!==null&&!Rt?(zd(t,s,p),Is(t,s,p)):(Ie&&u&&pd(s),s.flags|=1,$t(t,s,o,p),s.child)}function Dx(t,s,o,u,p,x){return ri(s),s.updateQueue=null,o=Ug(s,u,o,p),zg(t),u=Ld(),t!==null&&!Rt?(zd(t,s,x),Is(t,s,x)):(Ie&&u&&pd(s),s.flags|=1,$t(t,s,o,x),s.child)}function Lx(t,s,o,u,p){if(ri(s),s.stateNode===null){var x=Gi,j=o.contextType;typeof j=="object"&&j!==null&&(x=Yt(j)),x=new o(u,x),s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Zd,s.stateNode=x,x._reactInternals=s,x=s.stateNode,x.props=u,x.state=s.memoizedState,x.refs={},_d(s),j=o.contextType,x.context=typeof j=="object"&&j!==null?Yt(j):Gi,x.state=s.memoizedState,j=o.getDerivedStateFromProps,typeof j=="function"&&(Xd(s,o,j,u),x.state=s.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(j=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),j!==x.state&&Zd.enqueueReplaceState(x,x.state,null),dl(s,u,x,p),ul(),x.state=s.memoizedState),typeof x.componentDidMount=="function"&&(s.flags|=4194308),u=!0}else if(t===null){x=s.stateNode;var T=s.memoizedProps,D=fi(o,T);x.props=D;var Y=x.context,ee=o.contextType;j=Gi,typeof ee=="object"&&ee!==null&&(j=Yt(ee));var ae=o.getDerivedStateFromProps;ee=typeof ae=="function"||typeof x.getSnapshotBeforeUpdate=="function",T=s.pendingProps!==T,ee||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(T||Y!==j)&&jx(s,x,u,j),xa=!1;var X=s.memoizedState;x.state=X,dl(s,u,x,p),ul(),Y=s.memoizedState,T||X!==Y||xa?(typeof ae=="function"&&(Xd(s,o,ae,u),Y=s.memoizedState),(D=xa||vx(s,o,D,u,X,Y,j))?(ee||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(s.flags|=4194308)):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=u,s.memoizedState=Y),x.props=u,x.state=Y,x.context=j,u=D):(typeof x.componentDidMount=="function"&&(s.flags|=4194308),u=!1)}else{x=s.stateNode,Ed(t,s),j=s.memoizedProps,ee=fi(o,j),x.props=ee,ae=s.pendingProps,X=x.context,Y=o.contextType,D=Gi,typeof Y=="object"&&Y!==null&&(D=Yt(Y)),T=o.getDerivedStateFromProps,(Y=typeof T=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(j!==ae||X!==D)&&jx(s,x,u,D),xa=!1,X=s.memoizedState,x.state=X,dl(s,u,x,p),ul();var Z=s.memoizedState;j!==ae||X!==Z||xa||t!==null&&t.dependencies!==null&&Fo(t.dependencies)?(typeof T=="function"&&(Xd(s,o,T,u),Z=s.memoizedState),(ee=xa||vx(s,o,ee,u,X,Z,D)||t!==null&&t.dependencies!==null&&Fo(t.dependencies))?(Y||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(u,Z,D),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(u,Z,D)),typeof x.componentDidUpdate=="function"&&(s.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof x.componentDidUpdate!="function"||j===t.memoizedProps&&X===t.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||j===t.memoizedProps&&X===t.memoizedState||(s.flags|=1024),s.memoizedProps=u,s.memoizedState=Z),x.props=u,x.state=Z,x.context=D,u=ee):(typeof x.componentDidUpdate!="function"||j===t.memoizedProps&&X===t.memoizedState||(s.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||j===t.memoizedProps&&X===t.memoizedState||(s.flags|=1024),u=!1)}return x=u,rc(t,s),u=(s.flags&128)!==0,x||u?(x=s.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:x.render(),s.flags|=1,t!==null&&u?(s.child=ui(s,t.child,null,p),s.child=ui(s,null,o,p)):$t(t,s,o,p),s.memoizedState=x.state,t=s.child):t=Is(t,s,p),t}function zx(t,s,o,u){return ai(),s.flags|=256,$t(t,s,o,u),s.child}var tf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nf(t){return{baseLanes:t,cachePool:Cg()}}function sf(t,s,o){return t=t!==null?t.childLanes&~o:0,s&&(t|=On),t}function Ux(t,s,o){var u=s.pendingProps,p=!1,x=(s.flags&128)!==0,j;if((j=x)||(j=t!==null&&t.memoizedState===null?!1:(kt.current&2)!==0),j&&(p=!0,s.flags&=-129),j=(s.flags&32)!==0,s.flags&=-33,t===null){if(Ie){if(p?va(s):ja(),(t=dt)?(t=G0(t,Zn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(s.memoizedState={dehydrated:t,treeContext:ha!==null?{id:vs,overflow:js}:null,retryLane:536870912,hydrationErrors:null},o=gg(t),o.return=s,s.child=o,Kt=s,dt=null)):t=null,t===null)throw pa(s);return Bf(t)?s.lanes=32:s.lanes=536870912,null}var T=u.children;return u=u.fallback,p?(ja(),p=s.mode,T=lc({mode:"hidden",children:T},p),u=si(u,p,o,null),T.return=s,u.return=s,T.sibling=u,s.child=T,u=s.child,u.memoizedState=nf(o),u.childLanes=sf(t,j,o),s.memoizedState=tf,gl(null,u)):(va(s),af(s,T))}var D=t.memoizedState;if(D!==null&&(T=D.dehydrated,T!==null)){if(x)s.flags&256?(va(s),s.flags&=-257,s=rf(t,s,o)):s.memoizedState!==null?(ja(),s.child=t.child,s.flags|=128,s=null):(ja(),T=u.fallback,p=s.mode,u=lc({mode:"visible",children:u.children},p),T=si(T,p,o,null),T.flags|=2,u.return=s,T.return=s,u.sibling=T,s.child=u,ui(s,t.child,null,o),u=s.child,u.memoizedState=nf(o),u.childLanes=sf(t,j,o),s.memoizedState=tf,s=gl(null,u));else if(va(s),Bf(T)){if(j=T.nextSibling&&T.nextSibling.dataset,j)var Y=j.dgst;j=Y,u=Error(i(419)),u.stack="",u.digest=j,al({value:u,source:null,stack:null}),s=rf(t,s,o)}else if(Rt||$i(t,s,o,!1),j=(o&t.childLanes)!==0,Rt||j){if(j=lt,j!==null&&(u=Np(j,o),u!==0&&u!==D.retryLane))throw D.retryLane=u,ni(t,u),bn(j,t,u),Wd;Pf(T)||gc(),s=rf(t,s,o)}else Pf(T)?(s.flags|=192,s.child=t.child,s=null):(t=D.treeContext,dt=Wn(T.nextSibling),Kt=s,Ie=!0,ma=null,Zn=!1,t!==null&&bg(s,t),s=af(s,u.children),s.flags|=4096);return s}return p?(ja(),T=u.fallback,p=s.mode,D=t.child,Y=D.sibling,u=qs(D,{mode:"hidden",children:u.children}),u.subtreeFlags=D.subtreeFlags&65011712,Y!==null?T=qs(Y,T):(T=si(T,p,o,null),T.flags|=2),T.return=s,u.return=s,u.sibling=T,s.child=u,gl(null,u),u=s.child,T=t.child.memoizedState,T===null?T=nf(o):(p=T.cachePool,p!==null?(D=Mt._currentValue,p=p.parent!==D?{parent:D,pool:D}:p):p=Cg(),T={baseLanes:T.baseLanes|o,cachePool:p}),u.memoizedState=T,u.childLanes=sf(t,j,o),s.memoizedState=tf,gl(t.child,u)):(va(s),o=t.child,t=o.sibling,o=qs(o,{mode:"visible",children:u.children}),o.return=s,o.sibling=null,t!==null&&(j=s.deletions,j===null?(s.deletions=[t],s.flags|=16):j.push(t)),s.child=o,s.memoizedState=null,o)}function af(t,s){return s=lc({mode:"visible",children:s},t.mode),s.return=t,t.child=s}
vendor: 2,613 bytes, line 8
8function lc(t,s){return t=kn(22,t,null,s),t.lanes=0,t}function rf(t,s,o){return ui(s,t.child,null,o),t=af(s,s.pendingProps.children),t.flags|=2,s.memoizedState=null,t}function qx(t,s,o){t.lanes|=s;var u=t.alternate;u!==null&&(u.lanes|=s),vd(t.return,s,o)}function lf(t,s,o,u,p,x){var j=t.memoizedState;j===null?t.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:p,treeForkCount:x}:(j.isBackwards=s,j.rendering=null,j.renderingStartTime=0,j.last=u,j.tail=o,j.tailMode=p,j.treeForkCount=x)}function Px(t,s,o){var u=s.pendingProps,p=u.revealOrder,x=u.tail;u=u.children;var j=kt.current,T=(j&2)!==0;if(T?(j=j&1|2,s.flags|=128):j&=1,ie(kt,j),$t(t,s,u,o),u=Ie?sl:0,!T&&t!==null&&(t.flags&128)!==0)e:for(t=s.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&qx(t,o,s);else if(t.tag===19)qx(t,o,s);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===s)break e;for(;t.sibling===null;){if(t.return===null||t.return===s)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(o=s.child,p=null;o!==null;)t=o.alternate,t!==null&&$o(t)===null&&(p=o),o=o.sibling;o=p,o===null?(p=s.child,s.child=null):(p=o.sibling,o.sibling=null),lf(s,!1,p,o,x,u);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=s.child,s.child=null;p!==null;){if(t=p.alternate,t!==null&&$o(t)===null){s.child=p;break}t=p.sibling,p.sibling=o,o=p,p=t}lf(s,!0,o,null,x,u);break;case"together":lf(s,!1,null,null,void 0,u);break;default:s.memoizedState=null}return s.child}function Is(t,s,o){if(t!==null&&(s.dependencies=t.dependencies),Sa|=s.lanes,(o&s.childLanes)===0)if(t!==null){if($i(t,s,o,!1),(o&s.childLanes)===0)return null}else return null;if(t!==null&&s.child!==t.child)throw Error(i(153));if(s.child!==null){for(t=s.child,o=qs(t,t.pendingProps),s.child=o,o.return=s;t.sibling!==null;)t=t.sibling,o=o.sibling=qs(t,t.pendingProps),o.return=s;o.sibling=null}return s.child}function of(t,s){return(t.lanes&s)!==0?!0:(t=t.dependencies,!!(t!==null&&Fo(t)))}function uw(t,s,o){switch(s.tag){case 3:ut(s,s.stateNode.containerInfo),ga(s,Mt,t.memoizedState.cache),ai();break;case 27:case 5:He(s);break;case 4:ut(s,s.stateNode.containerInfo);break;case 10:ga(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,Od(s),null;break;case 13:var u=s.memoizedState;if(u!==null)return u.dehydrated!==null?(va(s),s.flags|=128,null):(o&s.child.childLanes)!==0?Ux(t,s,o):(va(s),t=Is(t,s,o),t!==null?t.sibling:null);va(s);break;case 19:var p=(t.flags&128)!==0;if(u=(o&s.childLanes)!==0,u||($i(t,s,o,!1),u=(o&s.childLanes)!==0),p){
vendor: 2,339 bytes, line 8
8if(u)return Px(t,s,o);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),ie(kt,kt.current),u)break;return null;case 22:return s.lanes=0,Mx(t,s,o,s.pendingProps);case 24:ga(s,Mt,t.memoizedState.cache)}return Is(t,s,o)}function Bx(t,s,o){if(t!==null)if(t.memoizedProps!==s.pendingProps)Rt=!0;else{if(!of(t,o)&&(s.flags&128)===0)return Rt=!1,uw(t,s,o);Rt=(t.flags&131072)!==0}else Rt=!1,Ie&&(s.flags&1048576)!==0&&yg(s,sl,s.index);switch(s.lanes=0,s.tag){case 16:e:{var u=s.pendingProps;if(t=oi(s.elementType),s.type=t,typeof t=="function")fd(t)?(u=fi(t,u),s.tag=1,s=Lx(null,s,t,u,o)):(s.tag=0,s=ef(null,s,t,u,o));else{if(t!=null){var p=t.$$typeof;if(p===A){s.tag=11,s=kx(null,s,t,u,o);break e}else if(p===z){s.tag=14,s=Tx(null,s,t,u,o);break e}}throw s=se(t)||t,Error(i(306,s,""))}}return s;case 0:return ef(t,s,s.type,s.pendingProps,o);case 1:return u=s.type,p=fi(u,s.pendingProps),Lx(t,s,u,p,o);case 3:e:{if(ut(s,s.stateNode.containerInfo),t===null)throw Error(i(387));u=s.pendingProps;var x=s.memoizedState;p=x.element,Ed(t,s),dl(s,u,null,o);var j=s.memoizedState;if(u=j.cache,ga(s,Mt,u),u!==x.cache&&jd(s,[Mt],o,!0),ul(),u=j.element,x.isDehydrated)if(x={element:u,isDehydrated:!1,cache:j.cache},s.updateQueue.baseState=x,s.memoizedState=x,s.flags&256){s=zx(t,s,u,o);break e}else if(u!==p){p=Yn(Error(i(424)),s),al(p),s=zx(t,s,u,o);break e}else for(t=s.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,dt=Wn(t.firstChild),Kt=s,Ie=!0,ma=null,Zn=!0,o=Mg(s,null,u,o),s.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ai(),u===p){s=Is(t,s,o);break e}$t(t,s,u,o)}s=s.child}return s;case 26:return rc(t,s),t===null?(o=Z0(s.type,null,s.pendingProps,null))?s.memoizedState=o:Ie||(o=s.type,t=s.pendingProps,u=Nc(Ce.current).createElement(o),u[Qt]=s,u[hn]=t,Xt(u,o,t),Ht(u),s.stateNode=u):s.memoizedState=Z0(s.type,t.memoizedProps,s.pendingProps,t.memoizedState),null;case 27:return He(s),t===null&&Ie&&(u=s.stateNode=Y0(s.type,s.pendingProps,Ce.current),Kt=s,Zn=!0,p=dt,Ta(s.type)?(Ff=p,dt=Wn(u.firstChild)):dt=p),$t(t,s,s.pendingProps.children,o),rc(t,s),t===null&&(s.flags|=4194304),s.child;case 5:return t===null&&Ie&&((p=u=dt)&&(u=Bw(u,s.type,s.pendingProps,Zn),u!==null?(s.stateNode=u,Kt=s,dt=Wn(u.firstChild),Zn=!1,p=!0):p=!1),p||pa(s)),He(s),p=s.t
vendor: 4,400 bytes, line 8
8ype,x=s.pendingProps,j=t!==null?t.memoizedProps:null,u=x.children,zf(p,x)?u=null:j!==null&&zf(p,j)&&(s.flags|=32),s.memoizedState!==null&&(p=Dd(t,s,tw,null,null,o),Ml._currentValue=p),rc(t,s),$t(t,s,u,o),s.child;case 6:return t===null&&Ie&&((t=o=dt)&&(o=Fw(o,s.pendingProps,Zn),o!==null?(s.stateNode=o,Kt=s,dt=null,t=!0):t=!1),t||pa(s)),null;case 13:return Ux(t,s,o);case 4:return ut(s,s.stateNode.containerInfo),u=s.pendingProps,t===null?s.child=ui(s,null,u,o):$t(t,s,u,o),s.child;case 11:return kx(t,s,s.type,s.pendingProps,o);case 7:return $t(t,s,s.pendingProps,o),s.child;case 8:return $t(t,s,s.pendingProps.children,o),s.child;case 12:return $t(t,s,s.pendingProps.children,o),s.child;case 10:return u=s.pendingProps,ga(s,s.type,u.value),$t(t,s,u.children,o),s.child;case 9:return p=s.type._context,u=s.pendingProps.children,ri(s),p=Yt(p),u=u(p),s.flags|=1,$t(t,s,u,o),s.child;case 14:return Tx(t,s,s.type,s.pendingProps,o);case 15:return Ax(t,s,s.type,s.pendingProps,o);case 19:return Px(t,s,o);case 31:return cw(t,s,o);case 22:return Mx(t,s,o,s.pendingProps);case 24:return ri(s),u=Yt(Mt),t===null?(p=Sd(),p===null&&(p=lt,x=wd(),p.pooledCache=x,x.refCount++,x!==null&&(p.pooledCacheLanes|=o),p=x),s.memoizedState={parent:u,cache:p},_d(s),ga(s,Mt,p)):((t.lanes&o)!==0&&(Ed(t,s),dl(s,null,null,o),ul()),p=t.memoizedState,x=s.memoizedState,p.parent!==u?(p={parent:u,cache:u},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),ga(s,Mt,u)):(u=x.cache,ga(s,Mt,u),u!==p.cache&&jd(s,[Mt],o,!0))),$t(t,s,s.pendingProps.children,o),s.child;case 29:throw s.pendingProps}throw Error(i(156,s.tag))}function Gs(t){t.flags|=4}function cf(t,s,o,u,p){if((s=(t.mode&32)!==0)&&(s=!1),s){if(t.flags|=16777216,(p&335544128)===p)if(t.stateNode.complete)t.flags|=8192;else if(h0())t.flags|=8192;else throw ci=Go,Cd}else t.flags&=-16777217}function Fx(t,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ny(s))if(h0())t.flags|=8192;else throw ci=Go,Cd}function oc(t,s){s!==null&&(t.flags|=4),t.flags&16384&&(s=t.tag!==22?vp():536870912,t.lanes|=s,lr|=s)}function xl(t,s){if(!Ie)switch(t.tailMode){case"hidden":s=t.tail;for(var o=null;s!==null;)s.alternate!==null&&(o=s),s=s.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?s||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function ft(t){var s=t.alternate!==null&&t.alternate.child===t.child,o=0,u=0;if(s)for(var p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)o|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=o,s}function dw(t,s,o){var u=s.pendingProps;switch(gd(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(s),null;case 1:return ft(s),null;case 3:return o=s.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),s.memoizedState.cache!==u&&(s.flags|=2048),Fs(Mt),$e(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Yi(s)?Gs(s):t===null||t.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,yd())),ft(s),null;case 26:var p=s.type,x=s.memoizedState;return t===null?(Gs(s),x!==null?(ft(s),Fx(s,x)):(ft(s),cf(s,p,null,u,o))):x?x!==t.memoizedState?(Gs(s),ft(s),Fx(s,x)):(ft(s),s.flags&=-16777217):(t=t.memoizedProps,t!==u&&Gs(s),ft(s),cf(s,p,t,u,o)),null;case 27:if(xe(s),o=Ce.current,p=s.type,t!==null&&s.stateNode!=null)t.memoizedProps!==u&&Gs(s);else{if(!u){if(s.stateNode===null)throw Error(i(166));return ft(s),null}t=le.current,Yi(s)?vg(s):(t=Y0(p,u,o),s.stateNode=t,Gs(s))}return ft(s),null;case 5:if(xe(s),p=s.type,t!==null&&s.stateNode!=null)t.memoizedProps!==u&&Gs(s);else{if(!u){if(s.stateNode===null)throw Error(i(166));return ft(s),null}if(x=le.current,Yi(s))vg(s);else{var j=Nc(Ce.current);switch(x){case 1:x=j.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:x=j.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":x=j.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":x=j.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":x=j.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;
vendor: 23,632 bytes, line 8
8case"select":x=typeof u.is=="string"?j.createElement("select",{is:u.is}):j.createElement("select"),u.multiple?x.multiple=!0:u.size&&(x.size=u.size);break;default:x=typeof u.is=="string"?j.createElement(p,{is:u.is}):j.createElement(p)}}x[Qt]=s,x[hn]=u;e:for(j=s.child;j!==null;){if(j.tag===5||j.tag===6)x.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===s)break e;for(;j.sibling===null;){if(j.return===null||j.return===s)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}s.stateNode=x;e:switch(Xt(x,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Gs(s)}}return ft(s),cf(s,s.type,t===null?null:t.memoizedProps,s.pendingProps,o),null;case 6:if(t&&s.stateNode!=null)t.memoizedProps!==u&&Gs(s);else{if(typeof u!="string"&&s.stateNode===null)throw Error(i(166));if(t=Ce.current,Yi(s)){if(t=s.stateNode,o=s.memoizedProps,u=null,p=Kt,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[Qt]=s,t=!!(t.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||U0(t.nodeValue,o)),t||pa(s,!0)}else t=Nc(t).createTextNode(u),t[Qt]=s,s.stateNode=t}return ft(s),null;case 31:if(o=s.memoizedState,t===null||t.memoizedState!==null){if(u=Yi(s),o!==null){if(t===null){if(!u)throw Error(i(318));if(t=s.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(557));t[Qt]=s}else ai(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;ft(s),t=!1}else o=yd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=!0;if(!t)return s.flags&256?(An(s),s):(An(s),null);if((s.flags&128)!==0)throw Error(i(558))}return ft(s),null;case 13:if(u=s.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Yi(s),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[Qt]=s}else ai(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;ft(s),p=!1}else p=yd(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return s.flags&256?(An(s),s):(An(s),null)}return An(s),(s.flags&128)!==0?(s.lanes=o,s):(o=u!==null,t=t!==null&&t.memoizedState!==null,o&&(u=s.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),x=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(x=u.memoizedState.cachePool.pool),x!==p&&(u.flags|=2048)),o!==t&&o&&(s.child.flags|=8192),oc(s,s.updateQueue),ft(s),null);case 4:return $e(),t===null&&Mf(s.stateNode.containerInfo),ft(s),null;case 10:return Fs(s.type),ft(s),null;case 19:if(B(kt),u=s.memoizedState,u===null)return ft(s),null;if(p=(s.flags&128)!==0,x=u.rendering,x===null)if(p)xl(u,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=s.child;t!==null;){if(x=$o(t),x!==null){for(s.flags|=128,xl(u,!1),t=x.updateQueue,s.updateQueue=t,oc(s,t),s.subtreeFlags=0,t=o,o=s.child;o!==null;)pg(o,t),o=o.sibling;return ie(kt,kt.current&1|2),Ie&&Ps(s,u.treeForkCount),s.child}t=t.sibling}u.tail!==null&&ue()>hc&&(s.flags|=128,p=!0,xl(u,!1),s.lanes=4194304)}else{if(!p)if(t=$o(x),t!==null){if(s.flags|=128,p=!0,t=t.updateQueue,s.updateQueue=t,oc(s,t),xl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!x.alternate&&!Ie)return ft(s),null}else 2*ue()-u.renderingStartTime>hc&&o!==536870912&&(s.flags|=128,p=!0,xl(u,!1),s.lanes=4194304);u.isBackwards?(x.sibling=s.child,s.child=x):(t=u.last,t!==null?t.sibling=x:s.child=x,u.last=x)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=ue(),t.sibling=null,o=kt.current,ie(kt,p?o&1|2:o&1),Ie&&Ps(s,u.treeForkCount),t):(ft(s),null);case 22:case 23:return An(s),Md(),u=s.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(s.flags|=8192):u&&(s.flags|=8192),u?(o&536870912)!==0&&(s.flags&128)===0&&(ft(s),s.subtreeFlags&6&&(s.flags|=8192)):ft(s),o=s.updateQueue,o!==null&&oc(s,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),u=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),u!==o&&(s.flags|=2048),t!==null&&B(li),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),s.memoizedState.cache!==o&&(s.flags|=2048),Fs(Mt),ft(s),null;case 25:return null;case 30:return null}throw Error(i(156,s.tag))}function fw(t,s){switch(gd(s),s.tag){case 1:return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 3:return Fs(Mt),$e(),t=s.flags,(t&65536)!==0&&(t&128)===0?(s.flags=t&-65537|128,s):null;case 26:case 27:case 5:return xe(s),null;case 31:if(s.memoizedState!==null){if(An(s),s.alternate===null)throw Error(i(340));ai()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 13:if(An(s),t=s.memoizedState,t!==null&&t.dehydrated!==null){if(s.alternate===null)throw Error(i(340));ai()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 19:return B(kt),null;case 4:return $e(),null;case 10:return Fs(s.type),null;case 22:case 23:return An(s),Md(),t!==null&&B(li),t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 24:return Fs(Mt),null;case 25:return null;default:return null}}function Hx(t,s){switch(gd(s),s.tag){case 3:Fs(Mt),$e();break;case 26:case 27:case 5:xe(s);break;case 4:$e();break;case 31:s.memoizedState!==null&&An(s);break;case 13:An(s);break;case 19:B(kt);break;case 10:Fs(s.type);break;case 22:case 23:An(s),Md(),t!==null&&B(li);break;case 24:Fs(Mt)}}function yl(t,s){try{var o=s.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var p=u.next;o=p;do{if((o.tag&t)===t){u=void 0;var x=o.create,j=o.inst;u=x(),j.destroy=u}o=o.next}while(o!==p)}}catch(T){tt(s,s.return,T)}}function wa(t,s,o){try{var u=s.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var x=p.next;u=x;do{if((u.tag&t)===t){var j=u.inst,T=j.destroy;if(T!==void 0){j.destroy=void 0,p=s;var D=o,Y=T;try{Y()}catch(ee){tt(p,D,ee)}}}u=u.next}while(u!==x)}}catch(ee){tt(s,s.return,ee)}}function Vx(t){var s=t.updateQueue;if(s!==null){var o=t.stateNode;try{Rg(s,o)}catch(u){tt(t,t.return,u)}}}function Ix(t,s,o){o.props=fi(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(u){tt(t,s,u)}}function bl(t,s){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof o=="function"?t.refCleanup=o(u):o.current=u}}catch(p){tt(t,s,p)}}function ws(t,s){var o=t.ref,u=t.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(p){tt(t,s,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){tt(t,s,p)}else o.current=null}function Gx(t){var s=t.type,o=t.memoizedProps,u=t.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(p){tt(t,t.return,p)}}function uf(t,s,o){try{var u=t.stateNode;Dw(u,t.type,o,s),u[hn]=s}catch(p){tt(t,t.return,p)}}function Qx(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ta(t.type)||t.tag===4}function df(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Qx(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ta(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ff(t,s,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,s?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,s):(s=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,s.appendChild(t),o=o._reactRootContainer,o!=null||s.onclick!==null||(s.onclick=zs));else if(u!==4&&(u===27&&Ta(t.type)&&(o=t.stateNode,s=null),t=t.child,t!==null))for(ff(t,s,o),t=t.sibling;t!==null;)ff(t,s,o),t=t.sibling}function cc(t,s,o){var u=t.tag;if(u===5||u===6)t=t.stateNode,s?o.insertBefore(t,s):o.appendChild(t);else if(u!==4&&(u===27&&Ta(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(cc(t,s,o),t=t.sibling;t!==null;)cc(t,s,o),t=t.sibling}function Kx(t){var s=t.stateNode,o=t.memoizedProps;try{for(var u=t.type,p=s.attributes;p.length;)s.removeAttributeNode(p[0]);Xt(s,u,o),s[Qt]=t,s[hn]=o}catch(x){tt(t,t.return,x)}}var Qs=!1,Dt=!1,hf=!1,Yx=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function hw(t,s){if(t=t.containerInfo,Df=Ac,t=rg(t),id(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var p=u.anchorOffset,x=u.focusNode;u=u.focusOffset;try{o.nodeType,x.nodeType}catch{o=null;break e}var j=0,T=-1,D=-1,Y=0,ee=0,ae=t,X=null;t:for(;;){for(var Z;ae!==o||p!==0&&ae.nodeType!==3||(T=j+p),ae!==x||u!==0&&ae.nodeType!==3||(D=j+u),ae.nodeType===3&&(j+=ae.nodeValue.length),(Z=ae.firstChild)!==null;)X=ae,ae=Z;for(;;){if(ae===t)break t;if(X===o&&++Y===p&&(T=j),X===x&&++ee===u&&(D=j),(Z=ae.nextSibling)!==null)break;ae=X,X=ae.parentNode}ae=Z}o=T===-1||D===-1?null:{start:T,end:D}}else o=null}o=o||{start:0,end:0}}else o=null;for(Lf={focusedElem:t,selectionRange:o},Ac=!1,Vt=s;Vt!==null;)if(s=Vt,t=s.child,(s.subtreeFlags&1028)!==0&&t!==null)t.return=s,Vt=t;else for(;Vt!==null;){switch(s=Vt,x=s.alternate,t=s.flags,s.tag){case 0:if((t&4)!==0&&(t=s.updateQueue,t=t!==null?t.events:null,t!==null))for(o=0;o<t.length;o++)p=t[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&x!==null){t=void 0,o=s,p=x.memoizedProps,x=x.memoizedState,u=o.stateNode;try{var pe=fi(o.type,p);t=u.getSnapshotBeforeUpdate(pe,x),u.__reactInternalSnapshotBeforeUpdate=t}catch(Se){tt(o,o.return,Se)}}break;case 3:if((t&1024)!==0){if(t=s.stateNode.containerInfo,o=t.nodeType,o===9)qf(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":qf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=s.sibling,t!==null){t.return=s.return,Vt=t;break}Vt=s.return}}function $x(t,s,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:Ys(t,o),u&4&&yl(5,o);break;case 1:if(Ys(t,o),u&4)if(t=o.stateNode,s===null)try{t.componentDidMount()}catch(j){tt(o,o.return,j)}else{var p=fi(o.type,s.memoizedProps);s=s.memoizedState;try{t.componentDidUpdate(p,s,t.__reactInternalSnapshotBeforeUpdate)}catch(j){tt(o,o.return,j)}}u&64&&Vx(o),u&512&&bl(o,o.return);break;case 3:if(Ys(t,o),u&64&&(t=o.updateQueue,t!==null)){if(s=null,o.child!==null)switch(o.child.tag){case 27:case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}try{Rg(t,s)}catch(j){tt(o,o.return,j)}}break;case 27:s===null&&u&4&&Kx(o);case 26:case 5:Ys(t,o),s===null&&u&4&&Gx(o),u&512&&bl(o,o.return);break;case 12:Ys(t,o);break;case 31:Ys(t,o),u&4&&Jx(t,o);break;case 13:Ys(t,o),u&4&&Wx(t,o),u&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=ww.bind(null,o),Hw(t,o))));break;case 22:if(u=o.memoizedState!==null||Qs,!u){s=s!==null&&s.memoizedState!==null||Dt,p=Qs;var x=Dt;Qs=u,(Dt=s)&&!x?$s(t,o,(o.subtreeFlags&8772)!==0):Ys(t,o),Qs=p,Dt=x}break;case 30:break;default:Ys(t,o)}}function Xx(t){var s=t.alternate;s!==null&&(t.alternate=null,Xx(s)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(s=t.stateNode,s!==null&&Hu(s)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var pt=null,pn=!1;function Ks(t,s,o){for(o=o.child;o!==null;)Zx(t,s,o),o=o.sibling}function Zx(t,s,o){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Xa,o)}catch{}switch(o.tag){case 26:Dt||ws(o,s),Ks(t,s,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Dt||ws(o,s);var u=pt,p=pn;Ta(o.type)&&(pt=o.stateNode,pn=!1),Ks(t,s,o),kl(o.stateNode),pt=u,pn=p;break;case 5:Dt||ws(o,s);case 6:if(u=pt,p=pn,pt=null,Ks(t,s,o),pt=u,pn=p,pt!==null)if(pn)try{(pt.nodeType===9?pt.body:pt.nodeName==="HTML"?pt.ownerDocument.body:pt).removeChild(o.stateNode)}catch(x){tt(o,s,x)}else try{pt.removeChild(o.stateNode)}catch(x){tt(o,s,x)}break;case 18:pt!==null&&(pn?(t=pt,V0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),pr(t)):V0(pt,o.stateNode));break;case 4:u=pt,p=pn,pt=o.stateNode.containerInfo,pn=!0,Ks(t,s,o),pt=u,pn=p;break;case 0:case 11:case 14:case 15:wa(2,o,s),Dt||wa(4,o,s),Ks(t,s,o);break;case 1:Dt||(ws(o,s),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Ix(o,s,u)),Ks(t,s,o);break;case 21:Ks(t,s,o);break;case 22:Dt=(u=Dt)||o.memoizedState!==null,Ks(t,s,o),Dt=u;break;default:Ks(t,s,o)}}function Jx(t,s){if(s.memoizedState===null&&(t=s.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{pr(t)}catch(o){tt(s,s.return,o)}}}function Wx(t,s){if(s.memoizedState===null&&(t=s.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{pr(t)}catch(o){tt(s,s.return,o)}}function mw(t){switch(t.tag){case 31:case 13:case 19:var s=t.stateNode;return s===null&&(s=t.stateNode=new Yx),s;case 22:return t=t.stateNode,s=t._retryCache,s===null&&(s=t._retryCache=new Yx),s;default:throw Error(i(435,t.tag))}}function uc(t,s){var o=mw(t);s.forEach(function(u){if(!o.has(u)){o.add(u);var p=Nw.bind(null,t,u);u.then(p,p)}})}function gn(t,s){var o=s.deletions;if(o!==null)for(var u=0;u<o.length;u++){var p=o[u],x=t,j=s,T=j;e:for(;T!==null;){switch(T.tag){case 27:if(Ta(T.type)){pt=T.stateNode,pn=!1;break e}break;case 5:pt=T.stateNode,pn=!1;break e;case 3:case 4:pt=T.stateNode.containerInfo,pn=!0;break e}T=T.return}if(pt===null)throw Error(i(160));Zx(x,j,p),pt=null,pn=!1,x=p.alternate,x!==null&&(x.return=null),p.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)e0(s,t),s=s.sibling}var hs=null;function e0(t,s){var o=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:gn(s,t),xn(t),u&4&&(wa(3,t,t.return),yl(3,t),wa(5,t,t.return));break;case 1:gn(s,t),xn(t),u&512&&(Dt||o===null||ws(o,o.return)),u&64&&Qs&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var p=hs;if(gn(s,t),xn(t),u&512&&(Dt||o===null||ws(o,o.return)),u&4){var x=o!==null?o.memoizedState:null;if(u=t.memoizedState,o===null)if(u===null)if(t.stateNode===null){e:{u=t.type,o=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":x=p.getElementsByTagName("title")[0],(!x||x[Qr]||x[Qt]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=p.createElement(u),p.head.insertBefore(x,p.querySelector("head > title"))),Xt(x,u,o),x[Qt]=t,Ht(x),u=x;break e;case"link":var j=ey("link","href",p).get(u+(o.href||""));if(j){for(var T=0;T<j.length;T++)if(x=j[T],x.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&x.getAttribute("rel")===(o.rel==null?null:o.rel)&&x.getAttribute("title")===(o.title==null?null:o.title)&&x.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){j.splice(T,1);break t}}x=p.createElement(u),Xt(x,u,o),p.head.appendChild(x);break;case"meta":if(j=ey("meta","content",p).get(u+(o.content||""))){for(T=0;T<j.length;T++)if(x=j[T],x.getAttribute("content")===(o.content==null?null:""+o.content)&&x.getAttribute("name")===(o.name==null?null:o.name)&&x.getAttribute("property")===(o.property==null?null:o.property)&&x.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&x.getAttribute("charset")===(o.charSet==null?null:o.charSet)){j.splice(T,1);break t}}x=p.createElement(u),Xt(x,u,o),p.head.appendChild(x);break;default:throw Error(i(468,u))}x[Qt]=t,Ht(x),u=x}t.stateNode=u}else ty(p,t.type,t.stateNode);else t.stateNode=W0(p,u,t.memoizedProps);else x!==u?(x===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):x.count--,u===null?ty(p,t.type,t.stateNode):W0(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&uf(t,t.memoizedProps,o.memoizedProps)}break;case 27:gn(s,t),xn(t),u&512&&(Dt||o===null||ws(o,o.return)),o!==null&&u&4&&uf(t,t.memoizedProps,o.memoizedProps);break;case 5:if(gn(s,t),xn(t),u&512&&(Dt||o===null||ws(o,o.return)),t.flags&32){p=t.stateNode;try{qi(p,"")}catch(pe){tt(t,t.return,pe)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,uf(t,p,o!==null?o.memoizedProps:p)),u&1024&&(hf=!0);break;case 6:if(gn(s,t),xn(t),u&4){if(t.stateNode===null)throw Error(i(162));u=t.memoizedProps,o=t.stateNode;try{o.nodeValue=u}catch(pe){tt(t,t.return,pe)}}break;case 3:if(_c=null,p=hs,hs=Sc(s.containerInfo),gn(s,t),hs=p,xn(t),u&4&&o!==null&&o.memoizedState.isDehydrated)try{pr(s.containerInfo)}catch(pe){tt(t,t.return,pe)}hf&&(hf=!1,t0(t));break;case 4:u=hs,hs=Sc(t.stateNode.containerInfo),gn(s,t),xn(t),hs=u;break;case 12:gn(s,t),xn(t);break;case 31:gn(s,t),xn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,uc(t,u)));break;case 13:gn(s,t),xn(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(fc=ue()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,uc(t,u)));break;case 22:p=t.memoizedState!==null;var D=o!==null&&o.memoizedState!==null,Y=Qs,ee=Dt;if(Qs=Y||p,Dt=ee||D,gn(s,t),Dt=ee,Qs=Y,xn(t),u&8192)e:for(s=t.stateNode,s._visibility=p?s._visibility&-2:s._visibility|1,p&&(o===null||D||Qs||Dt||hi(t)),o=null,s=t;;){if(s.tag===5||s.tag===26){if(o===null){D=o=s;try{if(x=D.stateNode,p)j=x.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{T=D.stateNode;var ae=D.memoizedProps.style,X=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;T.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(pe){tt(D,D.return,pe)}}}else if(s.tag===6){if(o===null){D=s;try{D.stateNode.nodeValue=p?"":D.memoizedProps}catch(pe){tt(D,D.return,pe)}}}else if(s.tag===18){if(o===null){D=s;try{var Z=D.stateNode;p?I0(Z,!0):I0(D.stateNode,!1)}catch(pe){tt(D,D.return,pe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===t)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;o===s&&(o=null),s=s.return}o===s&&(o=null),s.sibling.return=s.return,s=s.sibling}u&4&&(u=t.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,uc(t,o))));break;case 19:gn(s,t),xn(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,uc(t,u)));break;case 30:break;case 21:break;default:gn(s,t),xn(t)}}function xn(t){var s=t.flags;if(s&2){try{for(var o,u=t.return;u!==null;){if(Qx(u)){o=u;break}u=u.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,x=df(t);cc(t,x,p);break;case 5:var j=o.stateNode;o.flags&32&&(qi(j,""),o.flags&=-33);var T=df(t);cc(t,T,j);break;case 3:case 4:var D=o.stateNode.containerInfo,Y=df(t);ff(t,Y,D);break;default:throw Error(i(161))}}catch(ee){tt(t,t.return,ee)}t.flags&=-3}s&4096&&(t.flags&=-4097)}function t0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var s=t;t0(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),t=t.sibling}}function Ys(t,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)$x(t,s.alternate,s),s=s.sibling}function hi(t){for(t=t.child;t!==null;){var s=t;switch(s.tag){case 0:case 11:case 14:case 15:wa(4,s,s.return),hi(s);break;case 1:ws(s,s.return);var o=s.stateNode;typeof o.componentWillUnmount=="function"&&Ix(s,s.return,o),hi(s);break;case 27:kl(s.stateNode);case 26:case 5:ws(s,s.return),hi(s);break;case 22:s.memoizedState===null&&hi(s);break;case 30:hi(s);break;default:hi(s)}t=t.sibling}}function $s(t,s,o){for(o=o&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var u=s.alternate,p=t,x=s,j=x.flags;switch(x.tag){case 0:case 11:case 15:$s(p,x,o),yl(4,x);break;case 1:if($s(p,x,o),u=x,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(Y){tt(u,u.return,Y)}if(u=x,p=u.updateQueue,p!==null){var T=u.stateNode;try{var D=p.shared.hiddenCallbacks;if(D!==null)for(p.shared.hiddenCallbacks=null,p=0;p<D.length;p++)Og(D[p],T)}catch(Y){tt(u,u.return,Y)}}o&&j&64&&Vx(x),bl(x,x.return);break;case 27:Kx(x);case 26:case 5:$s(p,x,o),o&&u===null&&j&4&&Gx(x),bl(x,x.return);break;case 12:$s(p,x,o);break;case 31:$s(p,x,o),o&&j&4&&Jx(p,x);break;case 13:$s(p,x,o),o&&j&4&&Wx(p,x);break;case 22:x.memoizedState===null&&$s(p,x,o),bl(x,x.return);break;case 30:break;default:$s(p,x,o)}s=s.sibling}}function mf(t,s){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(t=s.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&il(o))}function pf(t,s){t=null,s.alternate!==null&&(t=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==t&&(s.refCount++,t!=null&&il(t))}function ms(t,s,o,u){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)n0(t,s,o,u),s=s.sibling}function n0(t,s,o,u){var p=s.flags;switch(s.tag){case 0:case 11:case 15:ms(t,s,o,u),p&2048&&yl(9,s);break;case 1:ms(t,s,o,u);break;case 3:ms(t,s,o,u),p&2048&&(t=null,s.alternate!==null&&(t=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==t&&(s.refCount++,t!=null&&il(t)));break;case 12:if(p&2048){ms(t,s,o,u),t=s.stateNode;try{var x=s.memoizedProps,j=x.id,T=x.onPostCommit;typeof T=="function"&&T(j,s.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(D){tt(s,s.return,D)}}else ms(t,s,o,u);break;case 31:ms(t,s,o,u);break;case 13:ms(t,s,o,u);break;case 23:break;case 22:x=s.stateNode,j=s.alternate,s.memoizedState!==null?x._visibility&2?ms(t,s,o,u):vl(t,s):x._visibility&2?ms(t,s,o,u):(x._visibility|=2,ar(t,s,o,u,(s.subtreeFlags&10256)!==0||!1)),p&2048&&mf(j,s);break;case 24:ms(t,s,o,u),p&2048&&pf(s.alternate,s);break;default:ms(t,s,o,u)}}function ar(t,s,o,u,p){for(p=p&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var x=t,j=s,T=o,D=u,Y=j.flags;switch(j.tag){case 0:case 11:case 15:ar(x,j,T,D,p),yl(8,j);break;case 23:break;case 22:var ee=j.stateNode;j.memoizedState!==null?ee._visibility&2?ar(x,j,T,D,p):vl(x,j):(ee._visibility|=2,ar(x,j,T,D,p)),p&&Y&2048&&mf(j.alternate,j);break;case 24:ar(x,j,T,D,p),p&&Y&2048&&pf(j.alternate,j);break;default:ar(x,j,T,D,p)}s=s.sibling}}function vl(t,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var o=t,u=s,p=u.flags;switch(u.tag){case 22:vl(o,u),p&2048&&mf(u.alternate,u);break;case 24:vl(o,u),p&2048&&pf(u.alternate,u);break;default:vl(o,u)}s=s.sibling}}var jl=8192;function ir(t,s,o){if(t.subtreeFlags&jl)for(t=t.child;t!==null;)s0(t,s,o),t=t.sibling}function s0(t,s,o){switch(t.tag){case 26:ir(t,s,o),t.flags&jl&&t.memoizedState!==null&&eN(o,hs,t.memoizedState,t.memoizedProps);break;case 5:ir(t,s,o);break;case 3:case 4:var u=hs;hs=Sc(t.stateNode.containerInfo),ir(t,s,o),hs=u;break;case 22:t.memoizedState===null&&(u=t.alternate,u!==null&&u.memoizedState!==null?(u=jl,jl=16777216,ir(t,s,o),jl=u):ir(t,s,o));break;default:ir(t,s,o)}}function a0(t){var s=t.alternate;if(s!==null&&(t=s.child,t!==null)){s.child=null;do s=t.sibling,t.sibling=null,t=s;while(t!==null)}}function wl(t){var s=t.deletions;if((t.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var u=s[o];Vt=u,r0(u,t)}a0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)i0(t),t=t.sibling}function i0(t){switch(t.tag){case 0:case 11:case 15:wl(t),t.flags&2048&&wa(9,t,t.return);break;case 3:wl(t);break;case 12:wl(t);break;case 22:var s=t.stateNode;t.memoizedState!==null&&s._visibility&2&&(t.return===null||t.return.tag!==13)?(s._visibility&=-3,dc(t)):wl(t);break;default:wl(t)}}function dc(t){var s=t.deletions;if((t.flags&16)!==0){if(s!==null)for(var o=0;o<s.length;o++){var u=s[o];Vt=u,r0(u,t)}a0(t)}for(t=t.child;t!==null;
vendor: 4,253 bytes, line 8
8){switch(s=t,s.tag){case 0:case 11:case 15:wa(8,s,s.return),dc(s);break;case 22:o=s.stateNode,o._visibility&2&&(o._visibility&=-3,dc(s));break;default:dc(s)}t=t.sibling}}function r0(t,s){for(;Vt!==null;){var o=Vt;switch(o.tag){case 0:case 11:case 15:wa(8,o,s);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:il(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,Vt=u;else e:for(o=t;Vt!==null;){u=Vt;var p=u.sibling,x=u.return;if(Xx(u),u===o){Vt=null;break e}if(p!==null){p.return=x,Vt=p;break e}Vt=x}}}var pw={getCacheForType:function(t){var s=Yt(Mt),o=s.data.get(t);return o===void 0&&(o=t(),s.data.set(t,o)),o},cacheSignal:function(){return Yt(Mt).controller.signal}},gw=typeof WeakMap=="function"?WeakMap:Map,Je=0,lt=null,ze=null,Pe=0,et=0,Mn=null,Na=!1,rr=!1,gf=!1,Xs=0,Ct=0,Sa=0,mi=0,xf=0,On=0,lr=0,Nl=null,yn=null,yf=!1,fc=0,l0=0,hc=1/0,mc=null,Ca=null,qt=0,_a=null,or=null,Zs=0,bf=0,vf=null,o0=null,Sl=0,jf=null;function Rn(){return(Je&2)!==0&&Pe!==0?Pe&-Pe:R.T!==null?Ef():Sp()}function c0(){if(On===0)if((Pe&536870912)===0||Ie){var t=wo;wo<<=1,(wo&3932160)===0&&(wo=262144),On=t}else On=536870912;return t=Tn.current,t!==null&&(t.flags|=32),On}function bn(t,s,o){(t===lt&&(et===2||et===9)||t.cancelPendingCommit!==null)&&(cr(t,0),Ea(t,Pe,On,!1)),Gr(t,o),((Je&2)===0||t!==lt)&&(t===lt&&((Je&2)===0&&(mi|=o),Ct===4&&Ea(t,Pe,On,!1)),Ns(t))}function u0(t,s,o){if((Je&6)!==0)throw Error(i(327));var u=!o&&(s&127)===0&&(s&t.expiredLanes)===0||Ir(t,s),p=u?bw(t,s):Nf(t,s,!0),x=u;do{if(p===0){rr&&!u&&Ea(t,s,0,!1);break}else{if(o=t.current.alternate,x&&!xw(o)){p=Nf(t,s,!1),x=!1;continue}if(p===2){if(x=s,t.errorRecoveryDisabledLanes&x)var j=0;else j=t.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){s=j;e:{var T=t;p=Nl;var D=T.current.memoizedState.isDehydrated;if(D&&(cr(T,j).flags|=256),j=Nf(T,j,!1),j!==2){if(gf&&!D){T.errorRecoveryDisabledLanes|=x,mi|=x,p=4;break e}x=yn,yn=p,x!==null&&(yn===null?yn=x:yn.push.apply(yn,x))}p=j}if(x=!1,p!==2)continue}}if(p===1){cr(t,0),Ea(t,s,0,!0);break}e:{switch(u=t,x=p,x){case 0:case 1:throw Error(i(345));case 4:if((s&4194048)!==s)break;case 6:Ea(u,s,On,!Na);break e;case 2:yn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((s&62914560)===s&&(p=fc+300-ue(),10<p)){if(Ea(u,s,On,!Na),So(u,0,!0)!==0)break e;Zs=s,u.timeoutHandle=F0(d0.bind(null,u,o,yn,mc,yf,s,On,mi,lr,Na,x,"Throttled",-0,0),p);break e}d0(u,o,yn,mc,yf,s,On,mi,lr,Na,x,null,-0,0)}}break}while(!0);Ns(t)}function d0(t,s,o,u,p,x,j,T,D,Y,ee,ae,X,Z){if(t.timeoutHandle=-1,ae=s.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:zs},s0(s,x,ae);var pe=(x&62914560)===x?fc-ue():(x&4194048)===x?l0-ue():0;if(pe=tN(ae,pe),pe!==null){Zs=x,t.cancelPendingCommit=pe(b0.bind(null,t,s,x,o,u,p,j,T,D,ee,ae,null,X,Z)),Ea(t,x,j,!Y);return}}b0(t,s,x,o,u,p,j,T,D)}function xw(t){for(var s=t;;){var o=s.tag;if((o===0||o===11||o===15)&&s.flags&16384&&(o=s.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var p=o[u],x=p.getSnapshot;p=p.value;try{if(!En(x(),p))return!1}catch{return!1}}if(o=s.child,s.subtreeFlags&16384&&o!==null)o.return=s,s=o;else{if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ea(t,s,o,u){s&=~xf,s&=~mi,t.suspendedLanes|=s,t.pingedLanes&=~s,u&&(t.warmLanes|=s),u=t.expirationTimes;for(var p=s;0<p;){var x=31-rn(p),j=1<<x;u[x]=-1,p&=~j}o!==0&&jp(t,o,s)}function pc(){return(Je&6)===0?(Cl(0),!1):!0}function wf(){if(ze!==null){if(et===0)var t=ze.return;else t=ze,Bs=ii=null,Ud(t),Wi=null,ll=0,t=ze;for(;t!==null;)Hx(t.alternate,t),t=t.return;ze=null}}function cr(t,s){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,Uw(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),Zs=0,wf(),lt=t,ze=o=qs(t.current,null),Pe=s,et=0,Mn=null,Na=!1,rr=Ir(t,s),gf=!1,lr=On=xf=mi=Sa=Ct=0,yn=Nl=null,yf=!1,(s&8)!==0&&(s|=s&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=s;0<u;){var p=31-rn(u),x=1<<p;s|=t[p],u&=~x}return Xs=s,zo(),o}
vendor: 4,284 bytes, line 8
8function f0(t,s){Ae=null,R.H=pl,s===Ji||s===Io?(s=kg(),et=3):s===Cd?(s=kg(),et=4):et=s===Wd?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Mn=s,ze===null&&(Ct=1,ac(t,Yn(s,t.current)))}function h0(){var t=Tn.current;return t===null?!0:(Pe&4194048)===Pe?Jn===null:(Pe&62914560)===Pe||(Pe&536870912)!==0?t===Jn:!1}function m0(){var t=R.H;return R.H=pl,t===null?pl:t}function p0(){var t=R.A;return R.A=pw,t}function gc(){Ct=4,Na||(Pe&4194048)!==Pe&&Tn.current!==null||(rr=!0),(Sa&134217727)===0&&(mi&134217727)===0||lt===null||Ea(lt,Pe,On,!1)}function Nf(t,s,o){var u=Je;Je|=2;var p=m0(),x=p0();(lt!==t||Pe!==s)&&(mc=null,cr(t,s)),s=!1;var j=Ct;e:do try{if(et!==0&&ze!==null){var T=ze,D=Mn;switch(et){case 8:wf(),j=6;break e;case 3:case 2:case 9:case 6:Tn.current===null&&(s=!0);var Y=et;if(et=0,Mn=null,ur(t,T,D,Y),o&&rr){j=0;break e}break;default:Y=et,et=0,Mn=null,ur(t,T,D,Y)}}yw(),j=Ct;break}catch(ee){f0(t,ee)}while(!0);return s&&t.shellSuspendCounter++,Bs=ii=null,Je=u,R.H=p,R.A=x,ze===null&&(lt=null,Pe=0,zo()),j}function yw(){for(;ze!==null;)g0(ze)}function bw(t,s){var o=Je;Je|=2;var u=m0(),p=p0();lt!==t||Pe!==s?(mc=null,hc=ue()+500,cr(t,s)):rr=Ir(t,s);e:do try{if(et!==0&&ze!==null){s=ze;var x=Mn;t:switch(et){case 1:et=0,Mn=null,ur(t,s,x,1);break;case 2:case 9:if(_g(x)){et=0,Mn=null,x0(s);break}s=function(){et!==2&&et!==9||lt!==t||(et=7),Ns(t)},x.then(s,s);break e;case 3:et=7;break e;case 4:et=5;break e;case 7:_g(x)?(et=0,Mn=null,x0(s)):(et=0,Mn=null,ur(t,s,x,7));break;case 5:var j=null;switch(ze.tag){case 26:j=ze.memoizedState;case 5:case 27:var T=ze;if(j?ny(j):T.stateNode.complete){et=0,Mn=null;var D=T.sibling;if(D!==null)ze=D;else{var Y=T.return;Y!==null?(ze=Y,xc(Y)):ze=null}break t}}et=0,Mn=null,ur(t,s,x,5);break;case 6:et=0,Mn=null,ur(t,s,x,6);break;case 8:wf(),Ct=6;break e;default:throw Error(i(462))}}vw();break}catch(ee){f0(t,ee)}while(!0);return Bs=ii=null,R.H=u,R.A=p,Je=o,ze!==null?0:(lt=null,Pe=0,zo(),Ct)}function vw(){for(;ze!==null&&!Q();)g0(ze)}function g0(t){var s=Bx(t.alternate,t,Xs);t.memoizedProps=t.pendingProps,s===null?xc(t):ze=s}function x0(t){var s=t,o=s.alternate;switch(s.tag){case 15:case 0:s=Dx(o,s,s.pendingProps,s.type,void 0,Pe);break;case 11:s=Dx(o,s,s.pendingProps,s.type.render,s.ref,Pe);break;case 5:Ud(s);default:Hx(o,s),s=ze=pg(s,Xs),s=Bx(o,s,Xs)}t.memoizedProps=t.pendingProps,s===null?xc(t):ze=s}function ur(t,s,o,u){Bs=ii=null,Ud(s),Wi=null,ll=0;var p=s.return;try{if(ow(t,p,s,o,Pe)){Ct=1,ac(t,Yn(o,t.current)),ze=null;return}}catch(x){if(p!==null)throw ze=p,x;Ct=1,ac(t,Yn(o,t.current)),ze=null;return}s.flags&32768?(Ie||u===1?t=!0:rr||(Pe&536870912)!==0?t=!1:(Na=t=!0,(u===2||u===9||u===3||u===6)&&(u=Tn.current,u!==null&&u.tag===13&&(u.flags|=16384))),y0(s,t)):xc(s)}function xc(t){var s=t;do{if((s.flags&32768)!==0){y0(s,Na);return}t=s.return;var o=dw(s.alternate,s,Xs);if(o!==null){ze=o;return}if(s=s.sibling,s!==null){ze=s;return}ze=s=t}while(s!==null);Ct===0&&(Ct=5)}function y0(t,s){do{var o=fw(t.alternate,t);if(o!==null){o.flags&=32767,ze=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!s&&(t=t.sibling,t!==null)){ze=t;return}ze=t=o}while(t!==null);Ct=6,ze=null}function b0(t,s,o,u,p,x,j,T,D){t.cancelPendingCommit=null;do yc();while(qt!==0);if((Je&6)!==0)throw Error(i(327));if(s!==null){if(s===t.current)throw Error(i(177));if(x=s.lanes|s.childLanes,x|=ud,W2(t,o,x,j,T,D),t===lt&&(ze=lt=null,Pe=0),or=s,_a=t,Zs=o,bf=x,vf=p,o0=u,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Sw(Qe,function(){return S0(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||u){u=R.T,R.T=null,p=U.p,U.p=2,j=Je,Je|=4;try{hw(t,s,o)}finally{Je=j,U.p=p,R.T=u}}qt=1,v0(),j0(),w0()}}function v0(){if(qt===1){qt=0;var t=_a,s=or,o=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||o){o=R.T,R.T=null;var u=U.p;U.p=2;var p=Je;Je|=4;try{e0(s,t);var x=Lf,j=rg(t.containerInfo),T=x.focusedElem,D=x.selectionRange;if(j!==T&&T&&T.ownerDocument&&ig(T.ownerDocument.documentElement,T)){if(D!==null&&id(T)){var Y=D.start,ee=D.end;if(ee===void 0&&(ee=Y),"selectionStart"in T)T.selectionStart=Y,T.selectionEnd=Math.min(ee,T.value.length);else{var ae=T.ownerDocument||document,X=ae&&ae.defaultView||window;
vendor: 8,606 bytes, line 8
8if(X.getSelection){var Z=X.getSelection(),pe=T.textContent.length,Se=Math.min(D.start,pe),it=D.end===void 0?Se:Math.min(D.end,pe);!Z.extend&&Se>it&&(j=it,it=Se,Se=j);var V=ag(T,Se),F=ag(T,it);if(V&&F&&(Z.rangeCount!==1||Z.anchorNode!==V.node||Z.anchorOffset!==V.offset||Z.focusNode!==F.node||Z.focusOffset!==F.offset)){var K=ae.createRange();K.setStart(V.node,V.offset),Z.removeAllRanges(),Se>it?(Z.addRange(K),Z.extend(F.node,F.offset)):(K.setEnd(F.node,F.offset),Z.addRange(K))}}}}for(ae=[],Z=T;Z=Z.parentNode;)Z.nodeType===1&&ae.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ae.length;T++){var te=ae[T];te.element.scrollLeft=te.left,te.element.scrollTop=te.top}}Ac=!!Df,Lf=Df=null}finally{Je=p,U.p=u,R.T=o}}t.current=s,qt=2}}function j0(){if(qt===2){qt=0;var t=_a,s=or,o=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||o){o=R.T,R.T=null;var u=U.p;U.p=2;var p=Je;Je|=4;try{$x(t,s.alternate,s)}finally{Je=p,U.p=u,R.T=o}}qt=3}}function w0(){if(qt===4||qt===3){qt=0,J();var t=_a,s=or,o=Zs,u=o0;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?qt=5:(qt=0,or=_a=null,N0(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Ca=null),Bu(o),s=s.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Xa,s,void 0,(s.current.flags&128)===128)}catch{}if(u!==null){s=R.T,p=U.p,U.p=2,R.T=null;try{for(var x=t.onRecoverableError,j=0;j<u.length;j++){var T=u[j];x(T.value,{componentStack:T.stack})}}finally{R.T=s,U.p=p}}(Zs&3)!==0&&yc(),Ns(t),p=t.pendingLanes,(o&261930)!==0&&(p&42)!==0?t===jf?Sl++:(Sl=0,jf=t):Sl=0,Cl(0)}}function N0(t,s){(t.pooledCacheLanes&=s)===0&&(s=t.pooledCache,s!=null&&(t.pooledCache=null,il(s)))}function yc(){return v0(),j0(),w0(),S0()}function S0(){if(qt!==5)return!1;var t=_a,s=bf;bf=0;var o=Bu(Zs),u=R.T,p=U.p;try{U.p=32>o?32:o,R.T=null,o=vf,vf=null;var x=_a,j=Zs;if(qt=0,or=_a=null,Zs=0,(Je&6)!==0)throw Error(i(331));var T=Je;if(Je|=4,i0(x.current),n0(x,x.current,j,o),Je=T,Cl(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Xa,x)}catch{}return!0}finally{U.p=p,R.T=u,N0(t,s)}}function C0(t,s,o){s=Yn(o,s),s=Jd(t.stateNode,s,2),t=ba(t,s,2),t!==null&&(Gr(t,2),Ns(t))}function tt(t,s,o){if(t.tag===3)C0(t,t,o);else for(;s!==null;){if(s.tag===3){C0(s,t,o);break}else if(s.tag===1){var u=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ca===null||!Ca.has(u))){t=Yn(o,t),o=_x(2),u=ba(s,o,2),u!==null&&(Ex(o,u,s,t),Gr(u,2),Ns(u));break}}s=s.return}}function Sf(t,s,o){var u=t.pingCache;if(u===null){u=t.pingCache=new gw;var p=new Set;u.set(s,p)}else p=u.get(s),p===void 0&&(p=new Set,u.set(s,p));p.has(o)||(gf=!0,p.add(o),t=jw.bind(null,t,s,o),s.then(t,t))}function jw(t,s,o){var u=t.pingCache;u!==null&&u.delete(s),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,lt===t&&(Pe&o)===o&&(Ct===4||Ct===3&&(Pe&62914560)===Pe&&300>ue()-fc?(Je&2)===0&&cr(t,0):xf|=o,lr===Pe&&(lr=0)),Ns(t)}function _0(t,s){s===0&&(s=vp()),t=ni(t,s),t!==null&&(Gr(t,s),Ns(t))}function ww(t){var s=t.memoizedState,o=0;s!==null&&(o=s.retryLane),_0(t,o)}function Nw(t,s){var o=0;switch(t.tag){case 31:case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(o=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(s),_0(t,o)}function Sw(t,s){return _n(t,s)}var bc=null,dr=null,Cf=!1,vc=!1,_f=!1,ka=0;function Ns(t){t!==dr&&t.next===null&&(dr===null?bc=dr=t:dr=dr.next=t),vc=!0,Cf||(Cf=!0,_w())}function Cl(t,s){if(!_f&&vc){_f=!0;do for(var o=!1,u=bc;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var x=0;else{var j=u.suspendedLanes,T=u.pingedLanes;x=(1<<31-rn(42|t)+1)-1,x&=p&~(j&~T),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(o=!0,A0(u,x))}else x=Pe,x=So(u,u===lt?x:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(x&3)===0||Ir(u,x)||(o=!0,A0(u,x));u=u.next}while(o);_f=!1}}function Cw(){E0()}function E0(){vc=Cf=!1;var t=0;ka!==0&&zw()&&(t=ka);for(var s=ue(),o=null,u=bc;u!==null;){var p=u.next,x=k0(u,s);x===0?(u.next=null,o===null?bc=p:o.next=p,p===null&&(dr=o)):(o=u,(t!==0||(x&3)!==0)&&(vc=!0)),u=p}qt!==0&&qt!==5||Cl(t),ka!==0&&(ka=0)}function k0(t,s){for(var o=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,x=t.pendingLanes&-62914561;0<x;){var j=31-rn(x),T=1<<j,D=p[j];D===-1?((T&o)===0||(T&u)!==0)&&(p[j]=J2(T,s)):D<=s&&(t.expiredLanes|=T),x&=~T}if(s=lt,o=Pe,o=So(t,t===s?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,o===0||t===s&&(et===2||et===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&q(u),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||Ir(t,o)){if(s=o&-o,s===t.callbackPriority)return s;switch(u!==null&&q(u),Bu(o)){case 2:case 8:o=je;break;case 32:o=Qe;break;case 268435456:o=Ft;break;default:o=Qe}return u=T0.bind(null,t),o=_n(o,u),t.callbackPriority=s,t.callbackNode=o,s}return u!==null&&u!==null&&q(u),t.callbackPriority=2,t.callbackNode=null,2}function T0(t,s){if(qt!==0&&qt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(yc()&&t.callbackNode!==o)return null;var u=Pe;return u=So(t,t===lt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(u0(t,u,s),k0(t,ue()),t.callbackNode!=null&&t.callbackNode===o?T0.bind(null,t):null)}function A0(t,s){if(yc())return null;u0(t,s,!0)}function _w(){qw(function(){(Je&6)!==0?_n(ce,Cw):E0()})}function Ef(){if(ka===0){var t=Xi;t===0&&(t=jo,jo<<=1,(jo&261888)===0&&(jo=256)),ka=t}return ka}function M0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ko(""+t)}function O0(t,s){var o=s.ownerDocument.createElement("input");return o.name=s.name,o.value=s.value,t.id&&o.setAttribute("form",t.id),s.parentNode.insertBefore(o,s),t=new FormData(t),o.parentNode.removeChild(o),t}function Ew(t,s,o,u,p){if(s==="submit"&&o&&o.stateNode===p){var x=M0((p[hn]||null).action),j=u.submitter;j&&(s=(s=j[hn]||null)?M0(s.formAction):j.getAttribute("formAction"),s!==null&&(x=s,j=null));var T=new Oo("action","action",null,u,p);t.push({event:T,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(ka!==0){var D=j?O0(p,j):new FormData(p);Qd(o,{pending:!0,data:D,method:p.method,action:x},null,D)}}else typeof x=="function"&&(T.preventDefault(),D=j?O0(p,j):new FormData(p),Qd(o,{pending:!0,data:D,method:p.method,action:x},x,D))},currentTarget:p}]})}}for(var kf=0;kf<cd.length;kf++){var Tf=cd[kf],kw=Tf.toLowerCase(),Tw=Tf[0].toUpperCase()+Tf.slice(1);fs(kw,"on"+Tw)}fs(cg,"onAnimationEnd"),fs(ug,"onAnimationIteration"),fs(dg,"onAnimationStart"),fs("dblclick","onDoubleClick"),fs("focusin","onFocus"),fs("focusout","onBlur"),fs(Gj,"onTransitionRun"),fs(Qj,"onTransitionStart"),fs(Kj,"onTransitionCancel"),fs(fg,"onTransitionEnd"),zi("onMouseEnter",["mouseout","mouseover"]),zi("onMouseLeave",["mouseout","mouseover"]),zi("onPointerEnter",["pointerout","pointerover"]),zi("onPointerLeave",["pointerout","pointerover"]),Ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="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(" "),Aw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function R0(t,s){s=(s&4)!==0;for(var o=0;o<t.length;o++){var u=t[o],p=u.event;u=u.listeners;e:{var x=void 0;if(s)for(var j=u.length-1;0<=j;j--){var T=u[j],D=T.instance,Y=T.currentTarget;if(T=T.listener,D!==x&&p.isPropagationStopped())break e;x=T,p.currentTarget=Y;try{x(p)}catch(ee){Lo(ee)}p.currentTarget=null,x=D}else for(j=0;j<u.length;j++){if(T=u[j],D=T.instance,Y=T.currentTarget,T=T.listener,D!==x&&p.isPropagationStopped())break e;x=T,p.currentTarget=Y;try{x(p)}catch(ee){Lo(ee)}p.currentTarget=null,x=D}}}}function Ue(t,s){var o=s[Fu];o===void 0&&(o=s[Fu]=new Set);var u=t+"__bubble";o.has(u)||(D0(s,t,2,!1),o.add(u))}function Af(t,s,o){var u=0;s&&(u|=4),D0(o,t,u,s)}var jc="_reactListening"+Math.random().toString(36).slice(2);
vendor: 3,394 bytes, line 8
8function Mf(t){if(!t[jc]){t[jc]=!0,Ep.forEach(function(o){o!=="selectionchange"&&(Aw.has(o)||Af(o,!1,t),Af(o,!0,t))});var s=t.nodeType===9?t:t.ownerDocument;s===null||s[jc]||(s[jc]=!0,Af("selectionchange",!1,s))}}function D0(t,s,o,u){switch(cy(s)){case 2:var p=aN;break;case 8:p=iN;break;default:p=Qf}o=p.bind(null,s,o,t),p=void 0,!Xu||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(s,o,{capture:!0,passive:p}):t.addEventListener(s,o,!0):p!==void 0?t.addEventListener(s,o,{passive:p}):t.addEventListener(s,o,!1)}function Of(t,s,o,u,p){var x=u;if((s&1)===0&&(s&2)===0&&u!==null)e:for(;;){if(u===null)return;var j=u.tag;if(j===3||j===4){var T=u.stateNode.containerInfo;if(T===p)break;if(j===4)for(j=u.return;j!==null;){var D=j.tag;if((D===3||D===4)&&j.stateNode.containerInfo===p)return;j=j.return}for(;T!==null;){if(j=Ri(T),j===null)return;if(D=j.tag,D===5||D===6||D===26||D===27){u=x=j;continue e}T=T.parentNode}}u=u.return}Pp(function(){var Y=x,ee=Yu(o),ae=[];e:{var X=hg.get(t);if(X!==void 0){var Z=Oo,pe=t;switch(t){case"keypress":if(Ao(o)===0)break e;case"keydown":case"keyup":Z=Nj;break;case"focusin":pe="focus",Z=ed;break;case"focusout":pe="blur",Z=ed;break;case"beforeblur":case"afterblur":Z=ed;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Hp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=dj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=_j;break;case cg:case ug:case dg:Z=mj;break;case fg:Z=kj;break;case"scroll":case"scrollend":Z=cj;break;case"wheel":Z=Aj;break;case"copy":case"cut":case"paste":Z=gj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=Ip;break;case"toggle":case"beforetoggle":Z=Oj}var Se=(s&4)!==0,it=!Se&&(t==="scroll"||t==="scrollend"),V=Se?X!==null?X+"Capture":null:X;Se=[];for(var F=Y,K;F!==null;){var te=F;if(K=te.stateNode,te=te.tag,te!==5&&te!==26&&te!==27||K===null||V===null||(te=Yr(F,V),te!=null&&Se.push(El(F,te,K))),it)break;F=F.return}0<Se.length&&(X=new Z(X,pe,null,o,ee),ae.push({event:X,listeners:Se}))}}if((s&7)===0){e:{if(X=t==="mouseover"||t==="pointerover",Z=t==="mouseout"||t==="pointerout",X&&o!==Ku&&(pe=o.relatedTarget||o.fromElement)&&(Ri(pe)||pe[Oi]))break e;if((Z||X)&&(X=ee.window===ee?ee:(X=ee.ownerDocument)?X.defaultView||X.parentWindow:window,Z?(pe=o.relatedTarget||o.toElement,Z=Y,pe=pe?Ri(pe):null,pe!==null&&(it=c(pe),Se=pe.tag,pe!==it||Se!==5&&Se!==27&&Se!==6)&&(pe=null)):(Z=null,pe=Y),Z!==pe)){if(Se=Hp,te="onMouseLeave",V="onMouseEnter",F="mouse",(t==="pointerout"||t==="pointerover")&&(Se=Ip,te="onPointerLeave",V="onPointerEnter",F="pointer"),it=Z==null?X:Kr(Z),K=pe==null?X:Kr(pe),X=new Se(te,F+"leave",Z,o,ee),X.target=it,X.relatedTarget=K,te=null,Ri(ee)===Y&&(Se=new Se(V,F+"enter",pe,o,ee),Se.target=K,Se.relatedTarget=it,te=Se),it=te,Z&&pe)t:{for(Se=Mw,V=Z,F=pe,K=0,te=V;te;te=Se(te))K++;te=0;for(var we=F;we;we=Se(we))te++;for(;0<K-te;)V=Se(V),K--;for(;0<te-K;)F=Se(F),te--;for(;K--;){if(V===F||F!==null&&V===F.alternate){Se=V;break t}V=Se(V),F=Se(F)}Se=null}else Se=null;Z!==null&&L0(ae,X,Z,Se,!1),pe!==null&&it!==null&&L0(ae,it,pe,Se,!0)}}
vendor: 5,203 bytes, lines 8-9
8e:{if(X=Y?Kr(Y):window,Z=X.nodeName&&X.nodeName.toLowerCase(),Z==="select"||Z==="input"&&X.type==="file")var Ke=Jp;else if(Xp(X))if(Wp)Ke=Hj;else{Ke=Bj;var ye=Pj}else Z=X.nodeName,!Z||Z.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?Y&&Qu(Y.elementType)&&(Ke=Jp):Ke=Fj;if(Ke&&(Ke=Ke(t,Y))){Zp(ae,Ke,o,ee);break e}ye&&ye(t,X,Y),t==="focusout"&&Y&&X.type==="number"&&Y.memoizedProps.value!=null&&Gu(X,"number",X.value)}switch(ye=Y?Kr(Y):window,t){case"focusin":(Xp(ye)||ye.contentEditable==="true")&&(Hi=ye,rd=Y,nl=null);break;case"focusout":nl=rd=Hi=null;break;case"mousedown":ld=!0;break;case"contextmenu":case"mouseup":case"dragend":ld=!1,lg(ae,o,ee);break;case"selectionchange":if(Ij)break;case"keydown":case"keyup":lg(ae,o,ee)}var Me;if(nd)e:{switch(t){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Fi?Yp(t,o)&&(Be="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(Be="onCompositionStart");Be&&(Gp&&o.locale!=="ko"&&(Fi||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Fi&&(Me=Bp()):(fa=ee,Zu="value"in fa?fa.value:fa.textContent,Fi=!0)),ye=wc(Y,Be),0<ye.length&&(Be=new Vp(Be,t,null,o,ee),ae.push({event:Be,listeners:ye}),Me?Be.data=Me:(Me=$p(o),Me!==null&&(Be.data=Me)))),(Me=Dj?Lj(t,o):zj(t,o))&&(Be=wc(Y,"onBeforeInput"),0<Be.length&&(ye=new Vp("onBeforeInput","beforeinput",null,o,ee),ae.push({event:ye,listeners:Be}),ye.data=Me)),Ew(ae,t,Y,o,ee)}R0(ae,s)})}function El(t,s,o){return{instance:t,listener:s,currentTarget:o}}function wc(t,s){for(var o=s+"Capture",u=[];t!==null;){var p=t,x=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||x===null||(p=Yr(t,o),p!=null&&u.unshift(El(t,p,x)),p=Yr(t,s),p!=null&&u.push(El(t,p,x))),t.tag===3)return u;t=t.return}return[]}function Mw(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function L0(t,s,o,u,p){for(var x=s._reactName,j=[];o!==null&&o!==u;){var T=o,D=T.alternate,Y=T.stateNode;if(T=T.tag,D!==null&&D===u)break;T!==5&&T!==26&&T!==27||Y===null||(D=Y,p?(Y=Yr(o,x),Y!=null&&j.unshift(El(o,Y,D))):p||(Y=Yr(o,x),Y!=null&&j.push(El(o,Y,D)))),o=o.return}j.length!==0&&t.push({event:s,listeners:j})}var Ow=/\r\n?/g,Rw=/\u0000|\uFFFD/g;function z0(t){return(typeof t=="string"?t:""+t).replace(Ow,`
9`).replace(Rw,"")}function U0(t,s){return s=z0(s),z0(t)===s}function at(t,s,o,u,p,x){switch(o){case"children":typeof u=="string"?s==="body"||s==="textarea"&&u===""||qi(t,u):(typeof u=="number"||typeof u=="bigint")&&s!=="body"&&qi(t,""+u);break;case"className":_o(t,"class",u);break;case"tabIndex":_o(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":_o(t,o,u);break;case"style":Up(t,u,x);break;case"data":if(s!=="object"){_o(t,"data",u);break}case"src":case"href":if(u===""&&(s!=="a"||o!=="href")){t.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=ko(""+u),t.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(o,"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 x=="function"&&(o==="formAction"?(s!=="input"&&at(t,s,"name",p.name,p,null),at(t,s,"formEncType",p.formEncType,p,null),at(t,s,"formMethod",p.formMethod,p,null),at(t,s,"formTarget",p.formTarget,p,null)):(at(t,s,"encType",p.encType,p,null),at(t,s,"method",p.method,p,null),at(t,s,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(o);break}u=ko(""+u),t.setAttribute(o,u);break;case"onClick":u!=null&&(t.onclick=zs);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}o=ko(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""+u):t.removeAttribute(o);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"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":u===!0?t.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(o,u):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(o,u):t.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(o):t.setAttribute(o,u);break;case"popover":Ue("beforetoggle",t),Ue("toggle",t),Co(t,"popover",u);break;case"xlinkActuate":Ls(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ls(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ls(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ls(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ls(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ls(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ls(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ls(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ls(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Co(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=lj.get(o)||o,Co(t,o,u))}}function Rf(t,s,o,u,p,x){switch(o){case"style":Up(t,u,x);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof u=="string"?qi(t,u):(typeof u=="number"||typeof u=="bigint")&&qi(t,""+u);break;case"onScroll":u!=null&&Ue("scroll",t);break;case"onScrollEnd":u!=null&&Ue("scrollend",t);break;case"onClick":u!=null&&(t.onclick=zs);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kp.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),s=o.slice(2,p?o.length-7:void 0),x=t[hn]||null,x=x!=null?x[o]:null,typeof x=="function"&&t.removeEventListener(s,x,p),typeof u=="function")){typeof x!="function"&&x!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(s,u,p);break e}o in t?t[o]=u:u===!0?t.setAttribute(o,""):Co(t,o,u)}}}function Xt(t,s,o){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",t),Ue("load",t);var u=!1,p=!1,x;for(x in o)if(o.hasOwnProperty(x)){var j=o[x];if(j!=null)switch(x){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:at(t,s,x,j,o,null)}}p&&at(t,s,"srcSet",o.srcSet,o,null),u&&at(t,s,"src",o.src,o,null);return;case"input":Ue("invalid",t);var T=x=j=p=null,D=null,Y=null;for(u in o)if(o.hasOwnProperty(u)){var ee=o[u];if(ee!=null)switch(u){case"name":p=ee;break;case"type":j=ee;break;case"checked":D=ee;break;case"defaultChecked":Y=ee;break;case"value":x=ee;break;case"defaultValue":T=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,s));break;default:at(t,s,u,ee,o,null)}}Rp(t,x,T,D,Y,j,p,!1);return;case"select":Ue("invalid",t),u=j=x=null;for(p in o)if(o.hasOwnProperty(p)&&(T=o[p],T!=null))switch(p){case"value":x=T;break;case"defaultValue":j=T;break;case"multiple":u=T;default:at(t,s,p,T,o,null)}s=x,o=j,t.multiple=!!u,s!=null?Ui(t,!!u,s,!1):o!=null&&Ui(t,!!u,o,!0);return;case"textarea":Ue("invalid",t),x=p=u=null;for(j in o)if(o.hasOwnProperty(j)&&(T=o[j],T!=null))switch(j){case"value":u=T;break;case"defaultValue":p=T;break;case"children":x=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(i(91));break;default:at(t,s,j,T,o,null)}Lp(t,u,p,x);return;case"option":for(D in o)o.hasOwnProperty(D)&&(u=o[D],u!=null)&&(D==="selected"?t.selected=u&&typeof u!="function"&&typeof u!="symbol":at(t,s,D,u,o,null));return;case"dialog":Ue("beforetoggle",t),Ue("toggle",t),Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":Ue("load",t);break;case"video":case"audio":for(u=0;
vendor: 5,119 bytes, line 9
9u<_l.length;u++)Ue(_l[u],t);break;case"image":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"embed":case"source":case"link":Ue("error",t),Ue("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Y in o)if(o.hasOwnProperty(Y)&&(u=o[Y],u!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,s));default:at(t,s,Y,u,o,null)}return;default:if(Qu(s)){for(ee in o)o.hasOwnProperty(ee)&&(u=o[ee],u!==void 0&&Rf(t,s,ee,u,o,void 0));return}}for(T in o)o.hasOwnProperty(T)&&(u=o[T],u!=null&&at(t,s,T,u,o,null))}function Dw(t,s,o,u){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,x=null,j=null,T=null,D=null,Y=null,ee=null;for(Z in o){var ae=o[Z];if(o.hasOwnProperty(Z)&&ae!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":D=ae;default:u.hasOwnProperty(Z)||at(t,s,Z,null,u,ae)}}for(var X in u){var Z=u[X];if(ae=o[X],u.hasOwnProperty(X)&&(Z!=null||ae!=null))switch(X){case"type":x=Z;break;case"name":p=Z;break;case"checked":Y=Z;break;case"defaultChecked":ee=Z;break;case"value":j=Z;break;case"defaultValue":T=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,s));break;default:Z!==ae&&at(t,s,X,Z,u,ae)}}Iu(t,j,T,D,Y,ee,x,p);return;case"select":Z=j=T=X=null;for(x in o)if(D=o[x],o.hasOwnProperty(x)&&D!=null)switch(x){case"value":break;case"multiple":Z=D;default:u.hasOwnProperty(x)||at(t,s,x,null,u,D)}for(p in u)if(x=u[p],D=o[p],u.hasOwnProperty(p)&&(x!=null||D!=null))switch(p){case"value":X=x;break;case"defaultValue":T=x;break;case"multiple":j=x;default:x!==D&&at(t,s,p,x,u,D)}s=T,o=j,u=Z,X!=null?Ui(t,!!o,X,!1):!!u!=!!o&&(s!=null?Ui(t,!!o,s,!0):Ui(t,!!o,o?[]:"",!1));return;case"textarea":Z=X=null;for(T in o)if(p=o[T],o.hasOwnProperty(T)&&p!=null&&!u.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:at(t,s,T,null,u,p)}for(j in u)if(p=u[j],x=o[j],u.hasOwnProperty(j)&&(p!=null||x!=null))switch(j){case"value":X=p;break;case"defaultValue":Z=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==x&&at(t,s,j,p,u,x)}Dp(t,X,Z);return;case"option":for(var pe in o)X=o[pe],o.hasOwnProperty(pe)&&X!=null&&!u.hasOwnProperty(pe)&&(pe==="selected"?t.selected=!1:at(t,s,pe,null,u,X));for(D in u)X=u[D],Z=o[D],u.hasOwnProperty(D)&&X!==Z&&(X!=null||Z!=null)&&(D==="selected"?t.selected=X&&typeof X!="function"&&typeof X!="symbol":at(t,s,D,X,u,Z));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 Se in o)X=o[Se],o.hasOwnProperty(Se)&&X!=null&&!u.hasOwnProperty(Se)&&at(t,s,Se,null,u,X);for(Y in u)if(X=u[Y],Z=o[Y],u.hasOwnProperty(Y)&&X!==Z&&(X!=null||Z!=null))switch(Y){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,s));break;default:at(t,s,Y,X,u,Z)}return;default:if(Qu(s)){for(var it in o)X=o[it],o.hasOwnProperty(it)&&X!==void 0&&!u.hasOwnProperty(it)&&Rf(t,s,it,void 0,u,X);for(ee in u)X=u[ee],Z=o[ee],!u.hasOwnProperty(ee)||X===Z||X===void 0&&Z===void 0||Rf(t,s,ee,X,u,Z);return}}for(var V in o)X=o[V],o.hasOwnProperty(V)&&X!=null&&!u.hasOwnProperty(V)&&at(t,s,V,null,u,X);for(ae in u)X=u[ae],Z=o[ae],!u.hasOwnProperty(ae)||X===Z||X==null&&Z==null||at(t,s,ae,X,u,Z)}function q0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Lw(){if(typeof performance.getEntriesByType=="function"){for(var t=0,s=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var p=o[u],x=p.transferSize,j=p.initiatorType,T=p.duration;if(x&&T&&q0(j)){for(j=0,T=p.responseEnd,u+=1;u<o.length;u++){var D=o[u],Y=D.startTime;if(Y>T)break;var ee=D.transferSize,ae=D.initiatorType;ee&&q0(ae)&&(D=D.responseEnd,j+=ee*(D<T?1:(T-Y)/(D-Y)))}if(--u,s+=8*(x+j)/(p.duration/1e3),t++,10<t)break}}if(0<t)return s/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Df=null,Lf=null;function Nc(t){return t.nodeType===9?t:t.ownerDocument}function P0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function B0(t,s){if(t===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&s==="foreignObject"?0:t}function zf(t,s){return t==="textarea"||t==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Uf=null;function zw(){var t=window.event;return t&&t.type==="popstate"?t===Uf?!1:(Uf=t,!0):(Uf=null,!1)}var F0=typeof setTimeout=="function"?setTimeout:void 0,Uw=typeof clearTimeout=="function"?clearTimeout:void 0,H0=typeof Promise=="function"?Promise:void 0,qw=typeof queueMicrotask=="function"?queueMicrotask:typeof H0<"u"?function(t){return H0.resolve(null).then(t).cat
vendor: 7,018 bytes, line 9
9ch(Pw)}:F0;function Pw(t){setTimeout(function(){throw t})}function Ta(t){return t==="head"}function V0(t,s){var o=s,u=0;do{var p=o.nextSibling;if(t.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(u===0){t.removeChild(p),pr(s);return}u--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")u++;else if(o==="html")kl(t.ownerDocument.documentElement);else if(o==="head"){o=t.ownerDocument.head,kl(o);for(var x=o.firstChild;x;){var j=x.nextSibling,T=x.nodeName;x[Qr]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&x.rel.toLowerCase()==="stylesheet"||o.removeChild(x),x=j}}else o==="body"&&kl(t.ownerDocument.body);o=p}while(o);pr(s)}function I0(t,s){var o=t;t=0;do{var u=o.nextSibling;if(o.nodeType===1?s?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(s?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(t===0)break;t--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||t++;o=u}while(o)}function qf(t){var s=t.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var o=s;switch(s=s.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":qf(o),Hu(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function Bw(t,s,o,u){for(;t.nodeType===1;){var p=o;if(t.nodeName.toLowerCase()!==s.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[Qr])switch(s){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(x=t.getAttribute("rel"),x==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(x!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(x=t.getAttribute("src"),(x!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&x&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(s==="input"&&t.type==="hidden"){var x=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===x)return t}else return t;if(t=Wn(t.nextSibling),t===null)break}return null}function Fw(t,s,o){if(s==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=Wn(t.nextSibling),t===null))return null;return t}function G0(t,s){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=Wn(t.nextSibling),t===null))return null;return t}function Pf(t){return t.data==="$?"||t.data==="$~"}function Bf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Hw(t,s){var o=t.ownerDocument;if(t.data==="$~")t._reactRetry=s;else if(t.data!=="$?"||o.readyState!=="loading")s();else{var u=function(){s(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function Wn(t){for(;t!=null;t=t.nextSibling){var s=t.nodeType;if(s===1||s===3)break;if(s===8){if(s=t.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return t}var Ff=null;function Q0(t){t=t.nextSibling;for(var s=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"||o==="/&"){if(s===0)return Wn(t.nextSibling);s--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||s++}t=t.nextSibling}return null}function K0(t){t=t.previousSibling;for(var s=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(s===0)return t;s--}else o!=="/$"&&o!=="/&"||s++}t=t.previousSibling}return null}function Y0(t,s,o){switch(s=Nc(o),t){case"html":if(t=s.documentElement,!t)throw Error(i(452));return t;case"head":if(t=s.head,!t)throw Error(i(453));return t;case"body":if(t=s.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function kl(t){for(var s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Hu(t)}var es=new Map,$0=new Set;function Sc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Js=U.d;U.d={f:Vw,r:Iw,D:Gw,C:Qw,L:Kw,m:Yw,X:Xw,S:$w,M:Zw};function Vw(){var t=Js.f(),s=pc();return t||s}function Iw(t){var s=Di(t);s!==null&&s.tag===5&&s.type==="form"?fx(s):Js.r(t)}var fr=typeof document>"u"?null:document;function X0(t,s,o){var u=fr;if(u&&typeof s=="string"&&s){var p=Qn(s);p='link[rel="'+t+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),$0.has(p)||($0.add(p),t={rel:t,crossOrigin:o,href:s},u.querySelector(p)===null&&(s=u.createElement("link"),Xt(s,"link",t),Ht(s),u.head.appendChild(s)))}}function Gw(t){Js.D(t),X0("dns-prefetch",t,null)}function Qw(t,s){Js.C(t,s),X0("preconnect",t,s)}function Kw(t,s,o){Js.L(t,s,o);var u=fr;if(u&&t&&s){var p='link[rel="preload"][as="'+Qn(s)+'"]';s==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Qn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Qn(o.imageSizes)+'"]')):p+='[href="'+Qn(t)+'"]';var x=p;switch(s){case"style":x=hr(t);break;case"script":x=mr(t)}es.has(x)||(t=y({rel:"preload",href:s==="image"&&o&&o.imageSrcSet?void 0:t,as:s},o),es.set(x,t),u.querySelector(p)!==null||s==="style"&&u.querySelector(Tl(x))||s==="script"&&u.querySelector(Al(x))||(s=u.createElement("link"),Xt(s,"link",t),Ht(s),u.head.appendChild(s)))}}function Yw(t,s){Js.m(t,s);var o=fr;if(o&&t){var u=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Qn(u)+'"][href="'+Qn(t)+'"]',x=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=mr(t)}if(!es.has(x)&&(t=y({rel:"modulepreload",href:t},s),es.set(x,t),o.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Al(x)))return}u=o.createElement("link"),Xt(u,"link",t),Ht(u),o.head.appendChild(u)}}}function $w(t,s,o){Js.S(t,s,o);var u=fr;if(u&&t){var p=Li(u).hoistableStyles,x=hr(t);s=s||"default";var j=p.get(x);if(!j){var T={loading:0,preload:null};if(j=u.querySelector(Tl(x)))T.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":s},o),(o=es.get(x))&&Hf(t,o);var D=j=u.createElement("link");Ht(D),Xt(D,"link",t),D._p=new Promise(function(Y,ee){D.onload=Y,D.onerror=ee}),D.addEventListener("load",function(){T.loading|=1}),D.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Cc(j,s,u)}j={type:"stylesheet",instance:j,count:1,state:T},p.set(x,j)}}}function Xw(t,s){Js.X(t,s);var o=fr;if(o&&t){var u=Li(o).hoistableScripts,p=mr(t),x=u.get(p);x||(x=o.querySelector(Al(p)),x||(t=y({src:t,async:!0},s),(s=es.get(p))&&Vf(t,s),x=o.createElement("script"),Ht(x),Xt(x,"link",t),o.head.appendChild(x)),x={type:"script",instance:x,c
vendor: 5,173 bytes, line 9
9ount:1,state:null},u.set(p,x))}}function Zw(t,s){Js.M(t,s);var o=fr;if(o&&t){var u=Li(o).hoistableScripts,p=mr(t),x=u.get(p);x||(x=o.querySelector(Al(p)),x||(t=y({src:t,async:!0,type:"module"},s),(s=es.get(p))&&Vf(t,s),x=o.createElement("script"),Ht(x),Xt(x,"link",t),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},u.set(p,x))}}function Z0(t,s,o,u){var p=(p=Ce.current)?Sc(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(s=hr(o.href),o=Li(p).hoistableStyles,u=o.get(s),u||(u={type:"style",instance:null,count:0,state:null},o.set(s,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=hr(o.href);var x=Li(p).hoistableStyles,j=x.get(t);if(j||(p=p.ownerDocument||p,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(t,j),(x=p.querySelector(Tl(t)))&&!x._p&&(j.instance=x,j.state.loading=5),es.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},es.set(t,o),x||Jw(p,t,o,j.state))),s&&u===null)throw Error(i(528,""));return j}if(s&&u!==null)throw Error(i(529,""));return null;case"script":return s=o.async,o=o.src,typeof o=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=mr(o),o=Li(p).hoistableScripts,u=o.get(s),u||(u={type:"script",instance:null,count:0,state:null},o.set(s,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function hr(t){return'href="'+Qn(t)+'"'}function Tl(t){return'link[rel="stylesheet"]['+t+"]"}function J0(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function Jw(t,s,o,u){t.querySelector('link[rel="preload"][as="style"]['+s+"]")?u.loading=1:(s=t.createElement("link"),u.preload=s,s.addEventListener("load",function(){return u.loading|=1}),s.addEventListener("error",function(){return u.loading|=2}),Xt(s,"link",o),Ht(s),t.head.appendChild(s))}function mr(t){return'[src="'+Qn(t)+'"]'}function Al(t){return"script[async]"+t}function W0(t,s,o){if(s.count++,s.instance===null)switch(s.type){case"style":var u=t.querySelector('style[data-href~="'+Qn(o.href)+'"]');if(u)return s.instance=u,Ht(u),u;var p=y({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Ht(u),Xt(u,"style",p),Cc(u,o.precedence,t),s.instance=u;case"stylesheet":p=hr(o.href);var x=t.querySelector(Tl(p));if(x)return s.state.loading|=4,s.instance=x,Ht(x),x;u=J0(o),(p=es.get(p))&&Hf(u,p),x=(t.ownerDocument||t).createElement("link"),Ht(x);var j=x;return j._p=new Promise(function(T,D){j.onload=T,j.onerror=D}),Xt(x,"link",u),s.state.loading|=4,Cc(x,o.precedence,t),s.instance=x;case"script":return x=mr(o.src),(p=t.querySelector(Al(x)))?(s.instance=p,Ht(p),p):(u=o,(p=es.get(x))&&(u=y({},o),Vf(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),Ht(p),Xt(p,"link",u),t.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(i(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(u=s.instance,s.state.loading|=4,Cc(u,o.precedence,t));return s.instance}function Cc(t,s,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,x=p,j=0;j<u.length;j++){var T=u[j];if(T.dataset.precedence===s)x=T;else if(x!==p)break}x?x.parentNode.insertBefore(t,x.nextSibling):(s=o.nodeType===9?o.head:o,s.insertBefore(t,s.firstChild))}function Hf(t,s){t.crossOrigin==null&&(t.crossOrigin=s.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=s.referrerPolicy),t.title==null&&(t.title=s.title)}function Vf(t,s){t.crossOrigin==null&&(t.crossOrigin=s.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=s.referrerPolicy),t.integrity==null&&(t.integrity=s.integrity)}var _c=null;function ey(t,s,o){if(_c===null){var u=new Map,p=_c=new Map;p.set(o,u)}else p=_c,u=p.get(o),u||(u=new Map,p.set(o,u));if(u.has(t))return u;for(u.set(t,null),o=o.getElementsByTagName(t),p=0;p<o.length;p++){var x=o[p];if(!(x[Qr]||x[Qt]||t==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var j=x.getAttribute(s)||"";j=t+j;var T=u.get(j);T?T.push(x):u.set(j,[x])}}return u}function ty(t,s,o){t=t.ownerDocument||t,t.head.insertBefore(o,s==="title"?t.querySelector("head > title"):null)}function Ww(t,s,o){if(o===1||s.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(t=s.disabled,typeof s.precedence=="string"&&t==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function ny(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function eN(t,s,o,u){if(o.type==="stylesheet"&&(typeof u.media!="str
9ing"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=hr(u.href),x=s.querySelector(Tl(p));if(x){s=x._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(t.count++,t=Ec.bind(t),s.then(t,t)),o.state.loading|=4,o.instance=x,Ht(x);return}x=s.ownerDocument||s,u=J0(u),(p=es.get(p))&&Hf(u,p),x=x.createElement("link"),Ht(x);var j=x;j._p=new Promise(function(T,D){j.onload=T,j.onerror=D}),Xt(x,"link",u),o.instance=x}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=Ec.bind(t),s.addEventListener("load",o),s.addEventListener("error",o))}}var If=0;function tN(t,s){return t.stylesheets&&t.count===0&&Tc(t,t.stylesheets),0<t.count||0<t.imgCount?function(o){var u=setTimeout(function(){if(t.stylesheets&&Tc(t,t.stylesheets),t.unsuspend){var x=t.unsuspend;t.unsuspend=null,x()}},6e4+s);0<t.imgBytes&&If===0&&(If=62500*Lw());var p=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Tc(t,t.stylesheets),t.unsuspend)){var x=t.unsuspend;t.unsuspend=null,x()}},(t.imgBytes>If?50:800)+s);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function Ec(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var kc=null;function Tc(t,s){t.stylesheets=null,t.unsuspend!==null&&(t.count++,kc=new Map,s.forEac
vendor: 7,732 bytes, line 9
9h(nN,t),kc=null,Ec.call(t))}function nN(t,s){if(!(s.state.loading&4)){var o=kc.get(t);if(o)var u=o.get(null);else{o=new Map,kc.set(t,o);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<p.length;x++){var j=p[x];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(o.set(j.dataset.precedence,j),u=j)}u&&o.set(null,u)}p=s.instance,j=p.getAttribute("data-precedence"),x=o.get(j)||u,x===u&&o.set(null,p),o.set(j,p),this.count++,u=Ec.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),x?x.parentNode.insertBefore(p,x.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),s.state.loading|=4}}var Ml={$$typeof:C,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function sN(t,s,o,u,p,x,j,T,D){this.tag=1,this.containerInfo=t,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=qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qu(0),this.hiddenUpdates=qu(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=x,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function sy(t,s,o,u,p,x,j,T,D,Y,ee,ae){return t=new sN(t,s,o,j,D,Y,ee,ae,T),s=1,x===!0&&(s|=24),x=kn(3,null,null,s),t.current=x,x.stateNode=t,s=wd(),s.refCount++,t.pooledCache=s,s.refCount++,x.memoizedState={element:u,isDehydrated:o,cache:s},_d(x),t}function ay(t){return t?(t=Gi,t):Gi}function iy(t,s,o,u,p,x){p=ay(p),u.context===null?u.context=p:u.pendingContext=p,u=ya(s),u.payload={element:o},x=x===void 0?null:x,x!==null&&(u.callback=x),o=ba(t,u,s),o!==null&&(bn(o,t,s),cl(o,t,s))}function ry(t,s){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<s?o:s}}function Gf(t,s){ry(t,s),(t=t.alternate)&&ry(t,s)}function ly(t){if(t.tag===13||t.tag===31){var s=ni(t,67108864);s!==null&&bn(s,t,67108864),Gf(t,67108864)}}function oy(t){if(t.tag===13||t.tag===31){var s=Rn();s=Pu(s);var o=ni(t,s);o!==null&&bn(o,t,s),Gf(t,s)}}var Ac=!0;function aN(t,s,o,u){var p=R.T;R.T=null;var x=U.p;try{U.p=2,Qf(t,s,o,u)}finally{U.p=x,R.T=p}}function iN(t,s,o,u){var p=R.T;R.T=null;var x=U.p;try{U.p=8,Qf(t,s,o,u)}finally{U.p=x,R.T=p}}function Qf(t,s,o,u){if(Ac){var p=Kf(u);if(p===null)Of(t,s,u,Mc,o),uy(t,u);else if(lN(p,t,s,o,u))u.stopPropagation();else if(uy(t,u),s&4&&-1<rN.indexOf(t)){for(;p!==null;){var x=Di(p);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var j=Za(x.pendingLanes);if(j!==0){var T=x;for(T.pendingLanes|=2,T.entangledLanes|=2;j;){var D=1<<31-rn(j);T.entanglements[1]|=D,j&=~D}Ns(x),(Je&6)===0&&(hc=ue()+500,Cl(0))}}break;case 31:case 13:T=ni(x,2),T!==null&&bn(T,x,2),pc(),Gf(x,2)}if(x=Kf(u),x===null&&Of(t,s,u,Mc,o),x===p)break;p=x}p!==null&&u.stopPropagation()}else Of(t,s,u,null,o)}}function Kf(t){return t=Yu(t),Yf(t)}var Mc=null;function Yf(t){if(Mc=null,t=Ri(t),t!==null){var s=c(t);if(s===null)t=null;else{var o=s.tag;if(o===13){if(t=d(s),t!==null)return t;t=null}else if(o===31){if(t=f(s),t!==null)return t;t=null}else if(o===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;t=null}else s!==t&&(t=null)}}return Mc=t,null}function cy(t){switch(t){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(de()){case ce:return 2;case je:return 8;case Qe:case Ze:return 32;case Ft:return 268435456;default:return 32}default:return 32}}var $f=!1,Aa=null,Ma=null,Oa=null,Ol=new Map,Rl=new Map,Ra=[],rN="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 uy(t,s){switch(t){case"focusin":case"focusout":Aa=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":Oa=null;break;case"pointerover":case"pointerout":Ol.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rl.delete(s.pointerId)}}function Dl(t,s,o,u,p,x){return t===null||t.nativeEvent!==x?(t={blockedOn:s,domEventName:o,eventSystemFlags:u,nativeEvent:x,targetContainers:[p]},s!==null&&(s=Di(s),s!==null&&ly(s)),t):(t.eventSystemFlags|=u,s=t.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),t)}function lN(t,s,o,u,p){switch(s){case"focusin":return Aa=Dl(Aa,t,s,o,u,p),!0;case"dragenter":return Ma=Dl(Ma,t,s,o,u,p),!0;case"mouseover":return Oa=Dl(Oa,t,s,o,u,p),!0;case"pointerover":var x=p.pointerId;return Ol.set(x,Dl(Ol.get(x)||null,t,s,o,u,p)),!0;case"gotpointercapture":return x=p.pointerId,Rl.set(x,Dl(Rl.get(x)||null,t,s,o,u,p)),!0}return!1}function dy(t){var s=Ri(t.target);if(s!==null){var o=c(s);if(o!==null){if(s=o.tag,s===13){if(s=d(o),s!==null){t.blockedOn=s,Cp(t.priority,function(){oy(o)});return}}else if(s===31){if(s=f(o),s!==null){t.blockedOn=s,Cp(t.priority,function(){oy(o)});return}}else if(s===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Oc(t){if(t.blockedOn!==null)return!1;for(var s=t.targetContainers;0<s.length;){var o=Kf(t.nativeEvent);if(o===null){o=t.nativeEvent;var u=new o.constructor(o.type,o);Ku=u,o.target.dispatchEvent(u),Ku=null}else return s=Di(o),s!==null&&ly(s),t.blockedOn=o,!1;s.shift()}return!0}function fy(t,s,o){Oc(t)&&o.delete(s)}function oN(){$f=!1,Aa!==null&&Oc(Aa)&&(Aa=null),Ma!==null&&Oc(Ma)&&(Ma=null),Oa!==null&&Oc(Oa)&&(Oa=null),Ol.forEach(fy),Rl.forEach(fy)}function Rc(t,s){t.blockedOn===s&&(t.blockedOn=null,$f||($f=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,oN)))}var Dc=null;function hy(t){Dc!==t&&(Dc=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Dc===t&&(Dc=null);for(var s=0;s<t.length;s+=3){var o=t[s],u=t[s+1],p=t[s+2];if(typeof u!="function"){if(Yf(u||o)===null)continue;break}var x=Di(o);x!==null&&(t.splice(s,3),s-=3,Qd(x,{pending:!0,data:p,method:o.method,action:u},u,p))}}))}function pr(t){function s(D){return Rc(D,t)}Aa!==null&&Rc(Aa,t),Ma!==null&&Rc(Ma,t),Oa!==null&&Rc(Oa,t),Ol.forEach(s),Rl.forEach(s);for(var o=0;o<Ra.length;o++){var u=Ra[o];u.blockedOn===t&&(u.blockedOn=null)}for(;0<Ra.length&&(o=Ra[0],o.blockedOn===null);)dy(o),o.blockedOn===null&&Ra.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(u=0;
9u<o.length;u+=3){var p=o[u],x=o[u+1],j=p[hn]||null;if(typeof x=="function")j||hy(o);else if(j){var T=null;if(x&&x.hasAttribute("formAction")){if(p=x,j=x[hn]||null)T=j.formAction;else if(Yf(p)!==null)continue}else T=j.action;typeof T=="function"?o[u+1]=T:(o.splice(u,3),u-=3),hy(o)}}}function my(){function t(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(j){return p=j})},focusReset:"manual",scroll:"manual"})}function s(){p!==null&&(p(),p=null),u||setTimeout(o,20)}function o(){if(!u&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,p=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(o,100),function(){u=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),p!==null&&(p(),p=null)}}}function Xf(t){this._internalRoot=t}Lc.prototype.render=Xf.prototype.render=function(t){var s=this._internalRoot;if(s===null)throw Error(i(409));var o=s.current,u=Rn();iy(o,u,t,s,null,null)},Lc.prototype.unmount=Xf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var s=t.containerInfo;iy(t.current,2,null,t,null,null),pc(),s[Oi]=null}};function Lc(t){this._internalRoot=t}Lc.prototype.unstable_scheduleHydration=function(t){if(t){var s=Sp();t={blockedOn:null,target:t,priority:s};for(var o=0;o<Ra.length&&s!==0&&s<Ra[o].priority;o++);Ra.splice(o,0,t),o===0&&dy(t)}};var py=e.version;if(py!=="19.2.4")throw Error(i(527,py,"19.2.4"));U.findDOMNode=function(t){var s=t._reactInternals;if(s===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=m(s),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var cN={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zc.isDisabled&&zc.supportsFiber)try{Xa=zc.inject(cN),Gt=zc}catch{}}return zl.createRoot=function(t,s){if(!l(t))throw Error(i(299));var o=!1,u="",p=wx,x=Nx,j=Sx;return s!=null&&(s.unstable_strictMode===!0&&(o=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(j=s.onRecoverableError)),s=sy(t,1,!1,null,null,o,u,null,p,x,j,my),t[Oi]=s.current,Mf(t),new Xf(s)},zl.hydrateRoot=function(t,s,o){if(!l(t))throw Error(i(299));var u=!1,p="",x=wx,j=Nx,T=Sx,D=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(x=o.onUncaughtError),o.onCaughtError!==void 0&&(j=o.onCaughtError),o.onRecoverableError!==void 0&&(T=o.onRecoverableError),o.formState!==void 0&&(D=o.formState)),s=sy(t,1,!0,s,o??null,u,p,D,x,j,T,my),s.context=ay(null),o=s.current,u=Rn(),u=Pu(u),p=ya(u),p.callback=null,ba(o,p,u),o=u,s.current.lanes=o,Gr(s,o),Ns(s),t[Oi]=s.current,Mf(t),new Lc(s)},zl.version="19.2.4",zl}var Cy;function vN(){if(Cy)return Wf.exports;Cy=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(),Wf.exports=bN(),Wf.exports}var jN=vN();const _e=n=>typeof n=="string",Ul=()=>{let n,e;const a=new Promise((i,l)=>{n=i,e=l});return a.resolve=n,a.reject=e,a},_y=n=>n==null?"":""+n,wN=(n,e,a)=>{n.forEach(i=>{e[i]&&(a[i]=e[i])})},NN=/###/g,Ey=n=>n&&n.indexOf("###")>-1?n.replace(NN,"."):n,ky=n=>!n||_e(n),Il=(n,e,a)=>{const i=_e(e)?e.split("."):e;let l=0;for(;l<i.length-1;){if(ky(n))return{};const c=Ey(i[l]);!n[c]&&a&&(n[c]=new a),Object.prototype.hasOwnProperty.call(n,c)?n=n[c]:n={},++l}return ky(n)?{}:{obj:n,k:Ey(i[l])}},Ty=(n,e,a)=>{const{obj:i,k:l}=Il(n,e,Object);if(i!==void 0||e.length===1){i[l]=a;return}let c=e[e.length-1],d=e.slice(0,e.length-1),f=Il(n,d,Object);for(;f.obj===void 0&&d.length;)c=`${d[d.length-1]}.${c}`,d=d.slice(0,d.length-1),f=Il(n,d,Object),f?.obj&&typeof f.obj[`${f.k}.${c}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${c}`]=a},SN=(n,e,a,i)=>{const{obj:l,k:c}=Il(n,e,Object);l[c]=l[c]||[],l[c].push(a)},Jc=(n,e)=>{const{obj:a,k:i}=Il(n,e);if(a&&Object.prototype.hasOwnProperty.call(a,i))return a[i]},CN=(n,e,a)=>{const i=Jc(n,a);return i!==void 0?i:Jc(e,a)},uv=(n,e,a)=>{for(const i in e)i!=="__proto__"&&i!=="constructor"&&(i in n?_e(n[i])||n[i]instanceof String||_e(e[i])||e[i]instanceof String?a&&(n[i]=e[i]):uv(n[i],e[i],a):n[i]=e[i]);return n},pi=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var _N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const EN=n=>_e(n)?n.replace(/[&<>
9"'\/]/g,e=>_N[e]):n;class kN{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const a=this.regExpMap.get(e);if(a!==void 0)return a;const i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}}const TN=[" ",",","?","!",";"],AN=new kN(20),MN=(n,e,a)=>{e=e||"",a=a||"";const i=TN.filter(d=>e.indexOf(d)<0&&a.indexOf(d)<0);if(i.length===0)return!0;const l=AN.getRegExp(`(${i.map(d=>d==="?"?"\\?":d).join("|")})`);let c=!l.test(n);if(!c){const d=n.indexOf(a);d>0&&!l.test(n.substring(0,d))&&(c=!0)}return c},kh=(n,e,a=".")=>{if(!n)return;if(n[e])return Object.prototype.hasOwnProperty.call(n,e)?n[e]:void 0;const i=e.split(a);let l=n;for(let c=0;c<i.length;){if(!l||typeof l!="object")return;let d,f="";for(let h=c;h<i.length;++h)if(h!==c&&(f+=a),f+=i[h],d=l[f],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&h<i.length-1)continue;c+=h-c+1;break}l=d}return l},Zl=n=>n?.replace("_","-"),ON={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console?.[n]?.apply?.(console,e)}};class Wc{constructor(e,a={}){this.init(e,a)}init(e,a={}){this.prefix=a.prefix||"i18next:",this.logger=e||ON,this.options=a,this.debug=a.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,a,i,l){return l&&!this.debug?null:(_e(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[a](e))}create(e){return new Wc(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Wc(this.logger,e)}}var Es=new Wc;class wu{constructor(){this.observers={}}on(e,a){return e.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);const l=this.observers[i].get(a)||0;this.observers[i].set(a,l+1)}),this}off(e,a){if(this.observers[e]){if(!a){delete this.observers[e];return}this.observers[e].delete(a)}}emit(e,...a){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([l,c])=>{for(let d=0;d<c;d++)l(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([l,c])=>{for(let d=0;d<c;d++)l.apply(l,[e,...a])})}}class Ay extends wu{constructor(e,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const a=this.options.ns.indexOf(e);a>-1&&this.options.ns.splice(a,1)}getResource(e,a,i,l={}){const c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,d=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;e.indexOf(".")>-1?f=e.split("."):(f=[e,a],i&&(Array.isArray(i)?f.push(...i):_e(i)&&c?f.push(...i.split(c)):f.push(i)));const h=Jc(this.data,f);return!h&&!a&&!i&&e.indexOf(".")>-1&&(e=f[0],a=f[1],i=f.slice(2).join(".")),h||!d||!_e(i)?h:kh(this.data?.[e]?.[a],i,c)}addResource(e,a,i,l,c={silent:!1}){const d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let f=[e,a];i&&(f=f.concat(d?i.split(d):i)),e.indexOf(".")>-1&&(f=e.split("."),l=a,a=f[1]),this.addNamespaces(a),Ty(this.data,f,l),c.silent||this.emit("added",e,a,i,l)}addResources(e,a,i,l={silent:!1}){for(const c in i)(_e(i[c])||Array.isArray(i[c]))&&this.addResource(e,a,c,i[c],{silent:!0});l.silent||this.emit("added",e,a,i)}addResourceBundle(e,a,i,l,c,d={silent:!1,skipCopy:!1}){let f=[e,a];e.indexOf(".")>-1&&(f=e.split("."),l=i,i=a,a=f[1]),this.addNamespaces(a);let h=Jc(this.data,f)||{};d.skipCopy||(i=JSON.parse(JSON.stringify(i))),l?uv(h,i,c):h={...h,...i},Ty(this.data,f,h),d.silent||this.emit("added",e,a,i)}removeResourceBundle(e,a){this.hasResourceBundle(e,a)&&delete this.data[e][a],this.removeNamespaces(a),this.emit
9("removed",e,a)}hasResourceBundle(e,a){return this.getResource(e,a)!==void 0}getResourceBundle(e,a){return a||(a=this.options.defaultNS),this.getResource(e,a)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const a=this.getDataByLanguage(e);return!!(a&&Object.keys(a)||[]).find(l=>a[l]&&Object.keys(a[l]).length>0)}toJSON(){return this.data}}var dv={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,a,i,l){return n.forEach(c=>{e=this.processors[c]?.process(e,a,i,l)??e}),e}};const fv=Symbol("i18next/PATH_KEY");function RN(){const n=[],e=Object.create(null);let a;return e.get=(i,l)=>(a?.revoke?.(),l===fv?n:(n.push(l),a=Proxy.revocable(i,e),a.proxy)),Proxy.revocable(Object.create(null),e).proxy}function Th(n,e){const{[fv]:a}=n(RN());return a.join(e?.keySeparator??".")}const My={},sh=n=>!_e(n)&&typeof n!="boolean"&&typeof n!="number";class eu extends wu{constructor(e,a={}){super(),wN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Es.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,a={interpolation:{}}){const i={...a};if(e==null)return!1;const l=this.resolve(e,i);if(l?.res===void 0)return!1;const c=sh(l.res);return!(i.returnObjects===!1&&c)}extractFromKey(e,a){let i=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");const l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=a.ns||this.options.defaultNS||[];const d=i&&e.indexOf(i)>-1,f=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!MN(e,i,l);if(d&&!f){const h=e.match(this.interpolator.nestingRegexp);if(h&&h.length>0)return{key:e,namespaces:_e(c)?[c]:c};const m=e.split(i);(i!==l||i===l&&this.options.ns.indexOf(m[0])>-1)&&(c=m.shift()),e=m.join(l)}return{key:e,namespaces:_e(c)?[c]:c}}translate(e,a,i){let l=typeof a=="object"?{...a}:a;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof l=="object"&&(l={...l}),l||(l={}),e==null)return"";typeof e=="function"&&(e=Th(e,{...this.options,...l})),Array.isArray(e)||(e=[String(e)]);const c=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,d=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:f,namespaces:h}=this.extractFromKey(e[e.length-1],l),m=h[h.length-1];let g=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");const y=l.lng||this.language,b=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return b?c?{res:`${m}${g}${f}`,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(l)}:`${m}${g}${f}`:c?{res:f,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:m,usedParams:this.getUsedParamsDetails(l)}:f;const v=this.resolve(e,l);let N=v?.res;const w=v?.usedKey||f,_=v?.exactUsedKey||f,k=["[object Number]","[object Function]","[object RegExp]"],E=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,A=l.count!==void 0&&!_e(l.count),M=eu.hasDefaultValue(l),H=A?this.pluralResolver.getSuffix(y,l.count,l):"",z=l.ordinal&&A?this.pluralResolver.getSuffix(y,l.count,{ordinal:!1}):"",P=A&&!l.ordinal&&l.count===0,I=P&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${H}`]||l[`defaultValue${z}`]||l.defaultValue;let G=N;C&&!N&&M&&(G=I);const ne=sh(G),L=Object.prototype.toString.apply(G);if(C&&G&&ne&&k.indexOf(L)<0&&!(_e(E)&&Array.isArray(G))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const $=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,G,{...l,ns:h}):`key '${f} (${this.language})' returned an object instead of string.`;return c?(v.res=$,v.usedParams=this.getUsedParamsDetails(l),v):$}if(d){const $=Array.isArray(G),se=$?[]:{},oe=$?_:w;for(const R in G)if(Object.prototype.hasOwnProperty.call(G,R)){const U=`${oe}${d}${R}`;M&&!N?se[R]=this.translate(U,{...l,defaultValue:sh(I)?I[R]:void 0,joinArrays:!1,ns:h}):se[R]=this.translate(U,{...l,joinArrays:!1,ns:h}),se[R]===U&&(se[R]=G[R])}N=se}}else if(C&&_e(E)&&Array.isArray(N))N=N.join(E),N&&(N=this.extendTranslation(N,e,l,i));else{let $=!1,se=!1;!this.isValidLookup(N)&&M&&($=!0,N=I),this.isValidLookup(N)||(se=!0,N=f);const R=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&se?void 0:N,U=M&&I!==N&&this.options.updateMissing;
9if(se||$||U){if(this.logger.log(U?"updateKey":"missingKey",y,m,f,U?I:N),d){const O=this.resolve(f,{...l,keySeparator:!1});O&&O.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let W=[];const he=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&he&&he[0])for(let O=0;O<he.length;O++)W.push(he[O]);else this.options.saveMissingTo==="all"?W=this.languageUtils.toResolveHierarchy(l.lng||this.language):W.push(l.lng||this.language);const fe=(O,B,ie)=>{const le=M&&ie!==N?ie:R;this.options.missingKeyHandler?this.options.missingKeyHandler(O,m,B,le,U,l):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(O,m,B,le,U,l),this.emit("missingKey",O,m,B,N)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?W.forEach(O=>{const B=this.pluralResolver.getSuffixes(O,l);P&&l[`defaultValue${this.options.pluralSeparator}zero`]&&B.indexOf(`${this.options.pluralSeparator}zero`)<0&&B.push(`${this.options.pluralSeparator}zero`),B.forEach(ie=>{fe([O],f+ie,l[`defaultValue${ie}`]||I)})}):fe(W,f,I))}N=this.extendTranslation(N,e,l,v,i),se&&N===f&&this.options.appendNamespaceToMissingKey&&(N=`${m}${g}${f}`),(se||$)&&this.options.parseMissingKeyHandler&&(N=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${f}`:f,$?N:void 0,l))}return c?(v.res=N,v.usedParams=this.getUsedParamsDetails(l),v):N}extendTranslation(e,a,i,l,c){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});const h=_e(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(h){const y=e.match(this.interpolator.nestingRegexp);m=y&&y.length}let g=i.replace&&!_e(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,i.lng||this.language||l.usedLng,i),h){const y=e.match(this.interpolator.nestingRegexp),b=y&&y.length;m<b&&(i.nest=!1)}!i.lng&&l&&l.res&&(i.lng=this.language||l.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,(...y)=>c?.[0]===y[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${a[0]}`),null):this.translate(...y,a),i)),i.interpolation&&this.interpolator.reset()}const d=i.postProcess||this.options.postProcess,f=_e(d)?[d]:d;return e!=null&&f?.length&&i.applyPostProcessor!==!1&&(e=dv.handle(f,e,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,a={}){let i,l,c,d,f;return _e(e)&&(e=[e]),e.forEach(h=>{if(this.isValidLookup(i))return;const m=this.extractFromKey(h,a),g=m.key;l=g;let y=m.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const b=a.count!==void 0&&!_e(a.count),v=b&&!a.ordinal&&a.count===0,N=a.context!==void 0&&(_e(a.context)||typeof a.context=="number")&&a.context!=="",w=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);y.forEach(_=>{this.isValidLookup(i)||(f=_,!My[`${w[0]}-${_}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(f)&&(My[`${w[0]}-${_}`]=!0,this.logger.warn(`key "${l}" for languages "${w.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(k=>{if(this.isValidLookup(i))return;d=k;const E=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(E,g,k,_,a);else{let A;b&&(A=this.pluralResolver.getSuffix(k,a.count,a));const M=`${this.options.pluralSeparator}zero`,H=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(b&&(a.ordinal&&A.indexOf(H)===0&&E.push(g+A.replace(H,this.options.pluralSeparator)),E.push(g+A),v&&E.push(g+M)),N){const z=`${g}${this.options.contextSeparator||"_"}${a.context}`;E.push(z),b&&(a.ordinal&&A.indexOf(H)===0&&E.push(z+A.replace(H,this.options.pluralSeparator)),E.push(z+A),v&&E.push(z+M))}}let C;for(;C=E.pop();)this.isValidLookup(i)||(c=C,i=this.getResource(k,_,C,a))}))})}),{res:i,usedKey:l,exactUsedKey:c,usedLng:d,usedNS:f}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,a,i,l={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,a,i,l):this.resourceStore.getResource(e,a,i,l)}
vendor: 4,115 bytes, line 9
9getUsedParamsDetails(e={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!_e(e.replace);let l=i?e.replace:e;if(i&&typeof e.count<"u"&&(l.count=e.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!i){l={...l};for(const c of a)delete l[c]}return l}static hasDefaultValue(e){const a="defaultValue";for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&a===i.substring(0,a.length)&&e[i]!==void 0)return!0;return!1}}class Oy{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Es.create("languageUtils")}getScriptPartFromCode(e){if(e=Zl(e),!e||e.indexOf("-")<0)return null;const a=e.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(e){if(e=Zl(e),!e||e.indexOf("-")<0)return e;const a=e.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(e){if(_e(e)&&e.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(e)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let a;return e.forEach(i=>{if(a)return;const l=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(l))&&(a=l)}),!a&&this.options.supportedLngs&&e.forEach(i=>{if(a)return;const l=this.getScriptPartFromCode(i);if(this.isSupportedCode(l))return a=l;const c=this.getLanguagePartFromCode(i);if(this.isSupportedCode(c))return a=c;a=this.options.supportedLngs.find(d=>{if(d===c)return d;if(!(d.indexOf("-")<0&&c.indexOf("-")<0)&&(d.indexOf("-")>0&&c.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===c||d.indexOf(c)===0&&c.length>1))return d})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(e,a){if(!e)return[];if(typeof e=="function"&&(e=e(a)),_e(e)&&(e=[e]),Array.isArray(e))return e;if(!a)return e.default||[];let i=e[a];return i||(i=e[this.getScriptPartFromCode(a)]),i||(i=e[this.formatLanguageCode(a)]),i||(i=e[this.getLanguagePartFromCode(a)]),i||(i=e.default),i||[]}toResolveHierarchy(e,a){const i=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],e),l=[],c=d=>{d&&(this.isSupportedCode(d)?l.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return _e(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(e))):_e(e)&&c(this.formatLanguageCode(e)),i.forEach(d=>{l.indexOf(d)<0&&c(this.formatLanguageCode(d))}),l}}const Ry={zero:0,one:1,two:2,few:3,many:4,other:5},Dy={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class DN{constructor(e,a={}){this.languageUtils=e,this.options=a,this.logger=Es.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,a={}){const i=Zl(e==="dev"?"en":e),l=a.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:i,type:l});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let d;try{d=new Intl.PluralRules(i,{type:l})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Dy;if(!e.match(/-|_/))return Dy;const h=this.languageUtils.getLanguagePartFromCode(e);d=this.getRule(h,a)}return this.pluralRulesCache[c]=d,d}needsPlural(e,a={}){let i=this.getRule(e,a);return i||(i=this.getRule("dev",a)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,a,i={}
9){return this.getSuffixes(e,i).map(l=>`${a}${l}`)}getSuffixes(e,a={}){let i=this.getRule(e,a);return i||(i=this.getRule("dev",a)),i?i.resolvedOptions().pluralCategories.sort((l,c)=>Ry[l]-Ry[c]).map(l=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(e,a,i={}){const l=this.getRule(e,i);return l?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l.select(a)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",a,i))}}const Ly=(n,e,a,i=".",l=!0)=>{let c=CN(n,e,a);return!c&&l&&_e(a)&&(c=kh(n,a,i),c===void 0&&(c=kh(e,a,i))),c},ah=n=>n.replace(/\$/g,"$$$$");class zy{constructor(e={}){this.logger=Es.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(a=>a),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:a,escapeValue:i,useRawValueToEscape:l,prefix:c,prefixEscaped:d,suffix:f,suffixEscaped:h,formatSeparator:m,unescapeSuffix:g,unescapePrefix:y,nestingPrefix:b,nestingPrefixEscaped:v,nestingSuffix:N,nestingSuffixEscaped:w,nestingOptionsSeparator:_,maxReplaces:k,alwaysFormat:E}=e.interpolation;this.escape=a!==void 0?a:EN,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=c?pi(c):d||"{{",this.suffix=f?pi(f):h||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":y||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=b?pi(b):v||pi("$t("),this.nestingSuffix=N?pi(N):w||pi(")"),this.nestingOptionsSeparator=_||",",this.maxReplaces=k||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(a,i)=>a?.source===i?(a.lastIndex=0,a):new RegExp(i,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,a,i,l){let c,d,f;const h=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=v=>{if(v.indexOf(this.formatSeparator)<0){const k=Ly(a,h,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(k,void 0,i,{...l,...a,interpolationkey:v}):k}const N=v.split(this.formatSeparator),w=N.shift().trim(),_=N.join(this.formatSeparator).trim();return this.format(Ly(a,h,w,this.options.keySeparator,this.options.ignoreJSONStructure),_,i,{...l,...a,interpolationkey:w})};this.resetRegExp();const g=l?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>ah(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?ah(this.escape(v)):ah(v)}].forEach(v=>{for(f=0;c=v.regex.exec(e);){const N=c[1].trim();if(d=m(N),d===void 0)if(typeof g=="function"){const _=g(e,c,l);d=_e(_)?_:""}else if(l&&Object.prototype.hasOwnProperty.call(l,N))d="";else if(y){d=c[0];continue}else this.logger.warn(`missed to pass in variable ${N} for interpolating ${e}`),d="";else!_e(d)&&!this.useRawValueToEscape&&(d=_y(d));const w=v.safeValue(d);if(e=e.replace(c[0],w),y?(v.regex.lastIndex+=d.length,v.regex.lastIndex-=c[0].length):v.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),e}nest(e,a,i={}){let l,c,d;const f=(h,m)=>{const g=this.nestingOptionsSeparator;if(h.indexOf(g)<0)return h;const y=h.split(new RegExp(`${pi(g)}[ ]*{`));let b=`{${y[1]}`;h=y[0],b=this.interpolate(b,d);const v=b.match(/'/g),N=b.match(/"/g);((v?.length??0)%2===0&&!N||(N?.length??0)%2!==0)&&(b=b.replace(/'/g,'"'));try{d=JSON.parse(b),m&&(d={...m,...d})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${h}`,w),`${h}${g}${b}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,h};for(;l=this.nestingRegexp.exec(e);){let h=[];d={...i},d=d.replace&&!_e(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const m=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(m!==-1&&(h=l[1].slice(m).split(this.formatSeparator).map(g=>
vendor: 7,217 bytes, line 9
9g.trim()).filter(Boolean),l[1]=l[1].slice(0,m)),c=a(f.call(this,l[1].trim(),d),d),c&&l[0]===e&&!_e(c))return c;_e(c)||(c=_y(c)),c||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${e}`),c=""),h.length&&(c=h.reduce((g,y)=>this.format(g,y,i.lng,{...i,interpolationkey:l[1].trim()}),c.trim())),e=e.replace(l[0],c),this.regexp.lastIndex=0}return e}}const LN=n=>{let e=n.toLowerCase().trim();const a={};if(n.indexOf("(")>-1){const i=n.split("(");e=i[0].toLowerCase().trim();const l=i[1].substring(0,i[1].length-1);e==="currency"&&l.indexOf(":")<0?a.currency||(a.currency=l.trim()):e==="relativetime"&&l.indexOf(":")<0?a.range||(a.range=l.trim()):l.split(";").forEach(d=>{if(d){const[f,...h]=d.split(":"),m=h.join(":").trim().replace(/^'+|'+$/g,""),g=f.trim();a[g]||(a[g]=m),m==="false"&&(a[g]=!1),m==="true"&&(a[g]=!0),isNaN(m)||(a[g]=parseInt(m,10))}})}return{formatName:e,formatOptions:a}},Uy=n=>{const e={};return(a,i,l)=>{let c=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(c={...c,[l.interpolationkey]:void 0});const d=i+JSON.stringify(c);let f=e[d];return f||(f=n(Zl(i),l),e[d]=f),f(a)}},zN=n=>(e,a,i)=>n(Zl(a),i)(e);class UN{constructor(e={}){this.logger=Es.create("formatter"),this.options=e,this.init(e)}init(e,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const i=a.cacheInBuiltFormats?Uy:zN;this.formats={number:i((l,c)=>{const d=new Intl.NumberFormat(l,{...c});return f=>d.format(f)}),currency:i((l,c)=>{const d=new Intl.NumberFormat(l,{...c,style:"currency"});return f=>d.format(f)}),datetime:i((l,c)=>{const d=new Intl.DateTimeFormat(l,{...c});return f=>d.format(f)}),relativetime:i((l,c)=>{const d=new Intl.RelativeTimeFormat(l,{...c});return f=>d.format(f,c.range||"day")}),list:i((l,c)=>{const d=new Intl.ListFormat(l,{...c});return f=>d.format(f)})}}add(e,a){this.formats[e.toLowerCase().trim()]=a}addCached(e,a){this.formats[e.toLowerCase().trim()]=Uy(a)}format(e,a,i,l={}){const c=a.split(this.formatSeparator);if(c.length>1&&c[0].indexOf("(")>1&&c[0].indexOf(")")<0&&c.find(f=>f.indexOf(")")>-1)){const f=c.findIndex(h=>h.indexOf(")")>-1);c[0]=[c[0],...c.splice(1,f)].join(this.formatSeparator)}return c.reduce((f,h)=>{const{formatName:m,formatOptions:g}=LN(h);if(this.formats[m]){let y=f;try{const b=l?.formatParams?.[l.interpolationkey]||{},v=b.locale||b.lng||l.locale||l.lng||i;y=this.formats[m](f,v,{...g,...l,...b})}catch(b){this.logger.warn(b)}return y}else this.logger.warn(`there was no format function for ${m}`);return f},e)}}const qN=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class PN extends wu{constructor(e,a,i,l={}){super(),this.backend=e,this.store=a,this.services=i,this.languageUtils=i.languageUtils,this.options=l,this.logger=Es.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,l.backend,l)}queueLoad(e,a,i,l){const c={},d={},f={},h={};return e.forEach(m=>{let g=!0;a.forEach(y=>{const b=`${m}|${y}`;!i.reload&&this.store.hasResourceBundle(m,y)?this.state[b]=2:this.state[b]<0||(this.state[b]===1?d[b]===void 0&&(d[b]=!0):(this.state[b]=1,g=!1,d[b]===void 0&&(d[b]=!0),c[b]===void 0&&(c[b]=!0),h[y]===void 0&&(h[y]=!0)))}),g||(f[m]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(h)}}loaded(e,a,i){const l=e.split("|"),c=l[0],d=l[1];a&&this.emit("failedLoading",c,d,a),!a&&i&&this.store.addResourceBundle(c,d,i,void 0,void 0,{skipCopy:!0}),this.state[e]=a?-1:2,a&&i&&(this.state[e]=0);const f={};this.queue.forEach(h=>{SN(h.loaded,[c],d),qN(h,e),a&&h.errors.push(a),h.pendingCount===0&&!h.done&&(Object.keys(h.loaded).forEach(m=>{f[m]||(f[m]={});const g=h.loaded[m];g.length&&g.forEach(y=>{f[m][y]===void 0&&(f[m][y]=!0)})}),h.done=!0,h.errors.length?h.callback(h.errors):h.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(h=>!h.done)}read(e,a,i,l=0,c=this.retryTimeout,d){if(!e.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:a,fcName:i,tried:l,wait:c,callback:d});return}this.readingCalls++;const f=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(m&&g&&l<this.maxRetries){setTimeout(()=>{this.read.call(this,e,a,i,l+1,c*2,d)},c);return}d(m,g)},h=this.backend[i].bind(this.backend);if(h.length===2){try{const m=h(e,a);m&&typeof m.then=="function"?m.then(g=>f(null,g)).catch(f):f(null,m)}catch(m){f(m)}return}return h(e,a,f)}prepareLoading(e,a,i={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();_e(e)&&(e=this.languageUtils.toResolveHierarchy(e)),_e(a)&&(a=[a]);const c=this.queueLoad(e,a,i,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(d=>{this.loadOne(d)})}load(e,a,i){this.prepareLoading(e,a,{},i)}reload(e,a,i){this.prepareLoading(e,a,{reload:!0},i)}loadOne(e,a=""){const i=e.split("|"),l=i[0],c=i[1];this.read(l,c,"read",void 0,void 0,(d,f)=>{d&&this.logger.warn(`${a}loading namespace ${c} for language ${l} failed`,d),!d&&f&&this.logger.log(`${a}loaded namespace ${c} for language ${l}`,f),this.loaded(e,d,f)})}saveMissing(e,a,i,l,c,d={},f=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${i}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){const h={...d,isUpdate:c},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(e,a,i,l,h):g=m(e,a,i,l),g&&typeof g.then=="function"?g.then(y=>f(null,y)).catch(f):f(null,g)}catch(g){f(g)}else m(e,a,i,l,f,h)}!e||!e[0]||this.store.addResource(e[0],a,i,l)}}}const ih=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),_e(n[1])&&(e.defaultValue=n[1]),_e(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const a=n[3]||n[2];
9Object.keys(a).forEach(i=>{e[i]=a[i]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qy=n=>(_e(n.ns)&&(n.ns=[n.ns]),_e(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),_e(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs?.indexOf?.("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n),Uc=()=>{},BN=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(a=>{typeof n[a]=="function"&&(n[a]=n[a].bind(n))})},hv="__i18next_supportNoticeShown",FN=()=>typeof globalThis<"u"&&!!globalThis[hv],HN=()=>{typeof globalThis<"u"&&(globalThis[hv]=!0)},VN=n=>!!(n?.modules?.backend?.name?.indexOf("Locize")>0||n?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||n?.options?.backend?.backends&&n.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||n?.options?.backend?.projectId||n?.options?.backend?.backendOptions&&n.options.backend.backendOptions.some(e=>e?.projectId));class Gl extends wu{constructor(e={},a){if(super(),this.options=qy(e),this.services={},this.logger=Es,this.modules={external:[]},BN(this),a&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,a),this;setTimeout(()=>{this.init(e,a)},0)}}init(e={},a){this.isInitializing=!0,typeof e=="function"&&(a=e,e={}),e.defaultNS==null&&e.ns&&(_e(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=ih();this.options={...i,...this.options,...qy(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=i.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!VN(this)&&!FN()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),HN());const l=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Es.init(l(this.modules.logger),this.options):Es.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=UN;const g=new Oy(this.options);this.store=new Ay(this.options.resources,this.options);const y=this.services;y.logger=Es,y.resourceStore=this.store,y.languageUtils=g,y.pluralResolver=new DN(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(y.formatter=l(m),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new zy(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new PN(l(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(v,...N)=>{this.emit(v,...N)}),this.modules.languageDetector&&(y.languageDetector=l(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=l(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new eu(this.services,this.options),this.translator.on("*",(v,...N)=>{this.emit(v,...N)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,a||(a=Uc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...g)=>this.store[m](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...g)=>(this.store[m](...g),this)});const f=Ul(),h=()=>{const m=(g,y)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
9("initialized",this.options),f.resolve(y),a(g,y)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),f}loadResources(e,a=Uc){let i=a;const l=_e(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(l?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();const c=[],d=f=>{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(m=>{m!=="cimode"&&c.indexOf(m)<0&&c.push(m)})};l?d(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(h=>d(h)),this.options.preload?.forEach?.(f=>d(f)),this.services.backendConnector.load(c,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(f)})}else i(null)}reloadResources(e,a,i){const l=Ul();return typeof e=="function"&&(i=e,e=void 0),typeof a=="function"&&(i=a,a=void 0),e||(e=this.languages),a||(a=this.options.ns),i||(i=Uc),this.services.backendConnector.reload(e,a,c=>{l.resolve(),i(c)}),l}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&dv.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let a=0;a<this.languages.length;a++){const i=this.languages[a];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,a){this.isLanguageChangingTo=e;const i=Ul();this.emit("languageChanging",e);const l=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},c=(f,h)=>{h?this.isLanguageChangingTo===e&&(l(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,i.resolve((...m)=>this.t(...m)),a&&a(f,(...m)=>this.t(...m))},d=f=>{!e&&!f&&this.services.languageDetector&&(f=[]);const h=_e(f)?f:f&&f[0],m=this.store.hasLanguageSomeTranslations(h)?h:this.services.languageUtils.getBestMatchFromCodes(_e(f)?[f]:f);m&&(this.language||l(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector?.cacheUserLanguage?.(m)),this.loadResources(m,g=>{c(g,m)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(e),i}getFixedT(e,a,i){const l=(c,d,...f)=>{let h;typeof d!="object"?h=this.options.overloadTranslationOptionHandler([c,d].concat(f)):h={...d},h.lng=h.lng||l.lng,h.lngs=h.lngs||l.lngs,h.ns=h.ns||l.ns,h.keyPrefix!==""&&(h.keyPrefix=h.keyPrefix||i||l.keyPrefix);const m=this.options.keySeparator||".";let g;return h.keyPrefix&&Array.isArray(c)?g=c.map(y=>(typeof y=="function"&&(y=Th(y,{...this.options,...d})),`${h.keyPrefix}${m}${y}`)):(typeof c=="function"&&(c=Th(c,{...this.options,...d})),g=h.keyPrefix?`${h.keyPrefix}${m}${c}`:c),this.t(g,h)};return _e(e)?l.lng=e:l.lngs=e,l.ns=a,l.keyPrefix=i,l}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
9if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const i=a.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;const d=(f,h)=>{const m=this.services.backendConnector.state[`${f}|${h}`];return m===-1||m===0||m===2};if(a.precheck){const f=a.precheck(this,d);if(f!==void 0)return f}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(i,e)&&(!l||d(c,e)))}loadNamespaces(e,a){const i=Ul();return this.options.ns?(_e(e)&&(e=[e]),e.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{i.resolve(),a&&a(l)}),i):(a&&a(),Promise.resolve())}loadLanguages(e,a){const i=Ul();_e(e)&&(e=[e]);const l=this.options.preload||[],c=e.filter(d=>l.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return c.length?(this.options.preload=l.concat(c),this.loadResources(d=>{i.resolve(),a&&a(d)}),i):(a&&a(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const l=new Intl.Locale(e);if(l&&l.getTextInfo){const c=l.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new Oy(ih());return e.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},a){const i=new Gl(e,a);return i.createInstance=Gl.createInstance,i}cloneInstance(e={},a=Uc){const i=e.forkResourceStore;i&&delete e.forkResourceStore;const l={...this.options,...e,isClone:!0},c=new Gl(l);if((e.debug!==void 0||e.prefix!==void 0)&&(c.logger=c.logger.clone(e)),["store","services","language"].forEach(f=>{c[f]=this[f]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},i){const f=Object.keys(this.store.data).reduce((h,m)=>(h[m]={...this.store.data[m]},h[m]=Object.keys(h[m]).reduce((g,y)=>(g[y]={...h[m][y]},g),h[m]),h),{});c.store=new Ay(f,l),c.services.resourceStore=c.store}if(e.interpolation){const h={...ih().interpolation,...this.options.interpolation,...e.interpolation},m={...l,interpolation:h};c.services.interpolator=new zy(m)}return c.translator=new eu(c.services,l),c.translator.on("*",(f,...h)=>{c.emit(f,...h)}),c.init(l,a),c.translator.options=l,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const dn=Gl.createInstance();dn.createInstance;dn.dir;dn.init;dn.loadResources;dn.reloadResources;dn.use;dn.changeLanguage;dn.getFixedT;dn.t;dn.exists;dn.setDefaultNamespace;dn.hasLoadedNamespace;dn.loadNamespaces;dn.loadLanguages;const IN=(n,e,a,i)=>{const l=[a,{code:e,...i||{}}];if(n?.services?.logger?.forward)return n.services.logger.forward(l,"warn","react-i18next::",!0);_i(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),n?.services?.logger?.warn?n.services.logger.warn(...l):console?.warn&&console.warn(...l)},Py={},mv=(n,e,a,i)=>{_i(a)&&Py[a]||(_i(a)&&(Py[a]=new Date),IN(n,e,a,i))},pv=(n,e)=>()=>{if(n.isInitialized)e();else{const a=()=>{setTimeout(()=>{n.off("initialized",a)},0),e()};n.on("initialized",a)}},Ah=(n,e,a)=>{n.loadNamespaces(e,pv(n,a))},By=(n,e,a,i)=>{if(_i(a)&&(a=[a]),n.options.preload&&n.options.preload.indexOf(e)>-1)return Ah(n,a,i);a.forEach(l=>{n.options.ns.indexOf(l)<0&&n.options.ns.push(l)}),n.loadLanguages(e,pv(n,i))},GN=(n,e,a={})=>
9!e.languages||!e.languages.length?(mv(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(n,{lng:a.lng,precheck:(i,l)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!l(i.isLanguageChangingTo,n))return!1}}),_i=n=>typeof n=="string",QN=n=>typeof n=="object"&&n!==null,KN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,YN={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},$N=n=>YN[n],XN=n=>n.replace(KN,$N);let Mh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:XN,transDefaultProps:void 0};const ZN=(n={})=>{Mh={...Mh,...n}},JN=()=>Mh;let gv;const WN=n=>{gv=n},eS=()=>gv,tS={type:"3rdParty",init(n){ZN(n.options.react),WN(n)}},nS=S.createContext();class sS{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var rh={exports:{}},lh={};var Fy;function aS(){if(Fy)return lh;Fy=1;var n=ju();function e(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var a=typeof Object.is=="function"?Object.is:e,i=n.useState,l=n.useEffect,c=n.useLayoutEffect,d=n.useDebugValue;function f(y,b){var v=b(),N=i({inst:{value:v,getSnapshot:b}}),w=N[0].inst,_=N[1];return c(function(){w.value=v,w.getSnapshot=b,h(w)&&_({inst:w})},[y,v,b]),l(function(){return h(w)&&_({inst:w}),y(function(){h(w)&&_({inst:w})})},[y]),d(v),v}function h(y){var b=y.getSnapshot;y=y.value;try{var v=b();return!a(y,v)}catch{return!0}}function m(y,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:f;return lh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:g,lh}var Hy;function iS(){return Hy||(Hy=1,rh.exports=aS()),rh.exports}var rS=iS();const lS=(n,e)=>_i(e)?e:QN(e)&&_i(e.defaultValue)?e.defaultValue:Array.isArray(n)?n[n.length-1]:n,oS={t:lS,ready:!1},cS=()=>()=>{},Re=(n,e={})=>{const{i18n:a}=e,{i18n:i,defaultNS:l}=S.useContext(nS)||{},c=a||i||eS();c&&!c.reportNamespaces&&(c.reportNamespaces=new sS),c||mv(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=S.useMemo(()=>({...JN(),...c?.options?.react,...e}),[c,e]),{useSuspense:f,keyPrefix:h}=d,m=l||c?.options?.defaultNS,g=_i(m)?[m]:m||["translation"],y=S.useMemo(()=>g,g);c?.reportNamespaces?.addUsedNamespaces?.(y);const b=S.useRef(0),v=S.useCallback(I=>{if(!c)return cS;const{bindI18n:G,bindI18nStore:ne}=d,L=()=>{b.current+=1,I()};return G&&c.on(G,L),ne&&c.store.on(ne,L),()=>{G&&G.split(" ").forEach($=>c.off($,L)),ne&&ne.split(" ").forEach($=>c.store.off($,L))}},[c,d]),N=S.useRef(),w=S.useCallback(()=>{if(!c)return oS;const I=!!(c.isInitialized||c.initializedStoreOnce)&&y.every(oe=>GN(oe,c,d)),G=e.lng||c.language,ne=b.current,L=N.current;if(L&&L.ready===I&&L.lng===G&&L.keyPrefix===h&&L.revision===ne)return L;const se={t:c.getFixedT(G,d.nsMode==="fallback"?y:y[0],h),ready:I,lng:G,keyPrefix:h,revision:ne};return N.current=se,se},[c,y,h,d,e.lng]),[_,k]=S.useState(0),{t:E,ready:C}=rS.useSyncExternalStore(v,w,w);S.useEffect(()=>{if(c&&!C&&!f){const I=()=>k(G=>G+1);e.lng?By(c,e.lng,y,I):Ah(c,y,I)}},[c,e.lng,y,C,f,_]);const A=c||{},M=S.useRef(null),H=S.useRef(),z=I=>{const G=Object.getOwnPropertyDescriptors(I);G.__original&&delete G.__original;const ne=Object.create(Object.getPrototypeOf(I),G);if(!Object.prototype.hasOwnProperty.call(ne,"__original"))try{Object.defineProperty(ne,"__original",{value:I,writable:!1,enumerable:!1,configurable:!1})}catch{}return ne},P=S.useMemo(()=>{const I=A,G=I?.language;let ne=I;I&&(M.current&&M.current.__original===I?H.current!==G?(ne=z(I),M.current=ne,H.current=G):ne=M.current:(ne=z(I),M.current=ne,H.current=G));const L=[E,ne,C];return L.t=E,L.i18n=ne,L.ready=C,L},[E,A,C,A.resolvedLanguage,A.language,A.languages]);if(c&&f&&!C)throw new Promise(I=>{const G=()=>I();e.lng?By(c,e.lng,y,G):Ah(c,y,G)});return P}
vendor: 1,070 bytes, line 9
9,{slice:uS,forEach:dS}=[];function fS(n){return dS.call(uS.call(arguments,1),e=>{if(e)for(const a in e)n[a]===void 0&&(n[a]=e[a])}),n}function hS(n){return typeof n!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(a=>a.test(n))}const Vy=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,mS=function(n,e){const i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},l=encodeURIComponent(e);let c=`${n}=${l}`;if(i.maxAge>0){const d=i.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");c+=`; Max-Age=${Math.floor(d)}`}if(i.domain){if(!Vy.test(i.domain))throw new TypeError("option domain is invalid");c+=`; Domain=${i.domain}`}if(i.path){if(!Vy.test(i.path))throw new TypeError("option path is invalid");c+=`; Path=${i.path}`}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invali
9d");c+=`; Expires=${i.expires.toUTCString()}`}if(i.httpOnly&&(c+="; HttpOnly"),i.secure&&(c+="; Secure"),i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(c+="; Partitioned"),c},Iy={create(n,e,a,i){let l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};a&&(l.expires=new Date,l.expires.setTime(l.expires.getTime()+a*60*1e3)),i&&(l.domain=i),document.cookie=mS(n,e,l)},read(n){const e=`${n}=`,a=document.cookie.split(";");for(let i=0;i<a.length;i++){let l=a[i];for(;l.charAt(0)===" ";)l=l.substring(1,l.length);if(l.indexOf(e)===0)return l.substring(e.length,l.length)}return null},remove(n,e){this.create(n,"",-1,e)}};var pS={name:"cookie",lookup(n){let{lookupCookie:e}=n;if(e&&typeof document<"u")return Iy.read(e)||void 0},cacheUserLanguage(n,e){let{lookupCookie:a,cookieMinutes:i,cookieDomain:l,cookieOptions:c}=e;a&&typeof document<"u"&&Iy.create(a,n,i,l,c)}},gS={name:"querystring",lookup(n){let{lookupQuerystring:e}=n,a;if(typeof window<"u"){let{search:i}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(i=window.location.hash.substring(window.location.hash.indexOf("?")));const c=i.substring(1).split("&");for(let d=0;d<c.length;d++){const f=c[d].indexOf("=");f>0&&c[d].substring(0,f)===e&&(a=c[d].substring(f+1))}}return a}},xS={name:"hash",lookup(n){let{lookupHash:e,lookupFromHashIndex:a}=n,i;if(typeof window<"u"){const{hash:l}=window.location;if(l&&l.length>2){const c=l.substring(1);if(e){const d=c.split("&");for(let f=0;f<d.length;f++){const h=d[f].indexOf("=");h>0&&d[f].substring(0,h)===e&&(i=d[f].substring(h+1))}}if(i)return i;if(!i&&a>-1){const d=l.match(/\/([a-zA-Z-]*)/g);return Array.isArray(d)?d[typeof a=="number"?a:0]?.replace("/",""):void 0}}}return i}};let gr=null;const Gy=()=>{if(gr!==null)return gr;try{if(gr=typeof window<"u"&&window.localStorage!==null,!gr)return!1;const n="i18next.translate.boo";window.localStorage.setItem(n,"foo"),window.localStorage.removeItem(n)}catch{gr=!1}return gr};var yS={name:"localStorage",lookup(n){let{lookupLocalStorage:e}=n;if(e&&Gy())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupLocalStorage:a}=e;a&&Gy()&&window.localStorage.setItem(a,n)}};let xr=null;const Qy=()=>{if(xr!==null)return xr;try{if(xr=typeof window<"u"&&window.sessionStorage!==null,!xr)return!1;const n="i18next.translate.boo";window.sessionStorage.setItem(n,"foo"),window.sessionStorage.removeItem(n)}catch{xr=!1}return xr};var bS={name:"sessionStorage",lookup(n){let{lookupSessionStorage:e}=n;if(e&&Qy())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(n,e){let{lookupSessionStorage:a}=e;a&&Qy()&&window.sessionStorage.setItem(a,n)}},vS={name:"navigator",lookup(n){const e=[];if(typeof navigator<"u"){const{languages:a,userLanguage:i,language:l}=navigator;if(a)for(let c=0;c<a.length;c++)e.push(a[c]);i&&e.push(i),l&&e.push(l)}return e.length>0?e:void 0}},jS={name:"htmlTag",lookup(n){let{htmlTag:e}=n,a;const i=e||(typeof document<"u"?document.documentElement:null);return i&&typeof i.getAttribute=="function"&&(a=i.getAttribute("lang")),a}},wS={name:"path",lookup(n){let{lookupFromPathIndex:e}=n;if(typeof window>"u")return;const a=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(a)?a[typeof e=="number"?e:0]?.replace("/",""):void 0}},NS={name:"subdomain",lookup(n){let{lookupFromSubdomainIndex:e}=n;const a=typeof e=="number"?e+1:1,i=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(i)return i[a]}};let xv=!1;try{document.cookie,xv=!0}catch{}const yv=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];xv||yv.splice(1,1);const SS=()=>({order:yv,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:n=>n});class bv{constructor(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,a)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=fS(a,this.options||{},SS()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=l=>l.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(pS),this.addDetector(gS),this.addDetector(yS),this.addDetector(bS),this.addDetector(vS),this.addDetector(jS),this.addDetector(wS),this.addDetector(NS),this.addDetector(xS)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,a=[];return e.forEach(i=>
vendor: 4,673 bytes, line 9
9{if(this.detectors[i]){let l=this.detectors[i].lookup(this.options);l&&typeof l=="string"&&(l=[l]),l&&(a=a.concat(l))}}),a=a.filter(i=>i!=null&&!hS(i)).map(i=>this.options.convertDetectedLanguage(i)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?a:a.length>0?a[0]:null}cacheUserLanguage(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;a&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||a.forEach(i=>{this.detectors[i]&&this.detectors[i].cacheUserLanguage(e,this.options)}))}}bv.type="languageDetector";const CS={navbar:{agenda:"Agenda",leProjet:"Le projet",tremplin:"Tremplin",activites:"Activites",espacePro:"Espace pro",contact:"Contact",contactsInfos:"Contacts & infos pratiques",socialsAria:"Reseaux sociaux",searchPlaceholder:"Rechercher...",searchNoResult:"Aucun evenement trouve",soldOutLabel:"COMPLET",showEvent:"Afficher event {{index}}"},footer:{learnMore:"En savoir plus",contact:"Contact",newsletter:"S'inscrire a la newsletter",copyright:"© 2026 Le Makeda. Tous droits reserves.",leProjet:"Le projet",agenda:"Agenda",activites:"Activites",contactsInfos:"Contacts & infos pratiques",mentionsLegales:"Mentions legales",politiqueConfidentialite:"Politique de confidentialite",cgv:"CGV",feedback:"Donner votre avis",contactDev:"Un bug, un souci, une question ?",contactDevText:"Contactez le developpeur du site"},feedback:{title:"Votre avis sur le site",criteria:{mobile:"UX mobile",speed:"Rapidite",experience:"Par rapport a l'ancien site"},messagePlaceholder:"Une remarque ou suggestion ? (optionnel)",submitting:"Envoi en cours...",submit:"Envoyer mon avis",thankYou:"Merci pour votre retour !",thankYouText:"Votre avis nous aide a ameliorer le site.",close:"Fermer"},navigation:{leProjetDescription:"Notre projet associatif",agendaDescription:"Tous les evenements a venir",tremplinDescription:"Revelez les talents de demain",activitesDescription:"Diffusion, accompagnement, actions culturelles",nosThematiques:"Nos thematiques",subtitle:"Reunis sous la banniere Makeda, chaque projet defend des esthetiques et propositions artistiques precises",discoverLine1:"Decouvrez",discoverLine2Prefix:"L'",discoverLine2Suffix:"univers",discoverLine3:"Makeda"},agendaPreview:{scrollLabel:"Faire defiler",previousLabel:"Precedent",nextLabel:"Suivant",waitingList:"File d'attente",lastTickets:"Dernieres places",getTicket:"Prendre ma place",discoverAgenda:"Decouvrez l'agenda"},onTopEvent:{learnMore:"En savoir plus"},agenda:{featured:"A la une",joinWaitingList:"Rejoindre la file d'attente",lastTickets:"Dernieres places",getTicket:"Prendre ma place",reserve:"Reserver",soldOut:"Complet",filterBy:"Filtrer par",category:"Categorie",type:"Type",genre:"Genre",date:"Date",close:"Fermer",reset:"Reinitialiser",apply:"Appliquer",noEventFound:"Aucun evenement trouve",loadMore:"Voir plus",typeShotgun:"Shotgun",typeTremplin:"Tremplin",typeResidence:"Residence",typeHorsLesMurs:"Hors les murs",tonight:"Ce soir",thisWeekend:"Ce week-end",thisWeek:"Cette semaine",specificDate:"Jour precis"},eventDetail:{loading:"Chargement...",loadError:"Impossible de charger l'evenement",notFound:"Evenement introuvable",ticketing:"Billetterie",allTicketsSold:"Toutes les places sont vendues",ticketingNotAvailable:"Billetterie non disponible",reserveTicket:"Reserver ma place",ticketFallback:"Si la billetterie ne s'affiche pas, ",openOnShotgun:"ouvrir sur Shotgun",infoPratiques:"Infos pratiques",dateLabel:"Date",doorsOpen:"Ouverture des portes",schedule:"Horaires",scheduleFrom:"De {{start}}",scheduleTo:" a {{end}}",price:"Tarif",free:"Gratuit",priceFrom:"A partir de {{price}} EUR",address:"Adresse",metro:"Metro",bus:"Bus",parking:"Parking",accessibility:"Accessibilite",access:"Acces"},makeda:{heroTitle:"Notre Histoire",heroYear:"/2025",heroSubtitle:"Le Makeda",heroImageAlt:"Le public du Makeda",scrollRevealText:`Fonde en mars 2019, Le Makeda est ne de la rencontre de deux femmes passionnees : Francine Ouedraogo Bonnot et Aude Straub. Ensemble, elles ont transforme un ancien entrepot du quartier du Camas en un lieu vibrant dedie aux musiques actuelles. Le nom "Makeda" rend hommage a la legendaire reine de Saba, symbole de puissance feminine et d'ouverture culturelle. Cette reference incarne notre vision : un espace ou les cultures se rencontrent et ou la musique unit les gens. Aujourd'hui, Le Makeda accueille plus de 200 concerts par an, des artistes emergents aux tetes d'affiche internationales, dans une jauge intimiste de 270 personnes.`,scrollingLine1:"PROGRAMMATION.  PRODUCTION.  PROMO LOCALE.",scrollingLine2:"CONCERTS.  SOIREES.  SPECTACLES.  FESTIVA
9LS.",venueTitle:"Un lieu unique",venueText1:"Niche dans le quartier historique du Camas, cet espace de 400m² a ete entierement renove pour offrir une acoustique exceptionnelle et une ambiance chaleureuse.",venueText2:"Les murs de briques apparentes et le bar en bois massif creent une atmosphere authentique ou chaque concert devient une experience memorable.",teamTitle:"Notre equipe",teamText1:"Derriere Le Makeda, une equipe passionnee oeuvre chaque jour pour vous offrir des moments uniques. Techniciens son et lumiere, barmans, accueil : tous partagent la meme passion pour la musique live.",teamText2:"Ensemble, nous construisons un lieu ou artistes et public se rencontrent dans une ambiance conviviale.",teamHeroSubtitle:"Experte, passionnee et reactive, dites bonjour aux membres de notre equipe",teamHeroLine1:"Rencontrez",teamHeroLine2Prefix:"L'",teamHeroLine2Suffix:"equipe",teamHeroLine3:"Makeda",teamMembersSticky:"L'equipe Makeda",memberDirection:"Direction",memberSonLumiere:"Son & Lumiere",memberAccueilBar:"Accueil & Bar",memberEquipeTechnique:"L'equipe technique",memberEquipeBar:"L'equipe bar",featureArtisticDirection:"Direction Artistique",featureArtisticDirectionText:"Passionnee de musique sous toutes ses formes, l'equipe du Makeda opere un travail de reperage d'artistes emergent·e·s et de (co)production d'artistes au rayonnement national et international. La programmation explore de nombreux horizons musicaux et ne se restreint a aucune barriere artistique.",featureLocalPromotion:"Promotion Locale",featureLocalPromotionText:"Le Makeda soutient activement la scene locale marseillaise en offrant une vitr
9ine aux artistes du territoire. Tremplins, premieres parties, residences : chaque format est pense pour accompagner les talents emergents vers une plus grande visibilite.",productionLabel:"Presentation",productionTitle:"Production & Diffusion",stat1Number:"+200",stat1Label:"Concerts par an au coeur de Marseille.",stat1Description:"Le Makeda, une jauge intimiste de 270 personnes au quartier du Camas. Programmation eclectique melant artistes locaux, nationaux et internationaux dans une ambiance unique.",stat2Number:"+50",stat2Label:"Artistes emergents accompagnes chaque saison entre rap, electronique, pop, chanson, rock, world.",stat2Description:"Ils.elles sont passe.es par Le Makeda : Alonzo, IAM, Soprano, SCH, Jul, Keny Arkana, Chinese Man, Massilia Sound System, Piers Faccini, Deluxe, Dagoba, Soso Maness, Naps, L'Algerino, Hatik, Wejdene, Josman...",stat3Number:"+45K",stat3Label:"Spectateur·rice·s accueilli.es en 2025.",stat3Description:"Dans un lieu allant de 150 a 270 personnes : concerts, soirees DJ, showcases, tremplins, residences artistiques et evenements prives...",historiqueLabel:"Historique",orizonSudTitle:"Orizon Sud",orizonSudText:"Association marseillaise creee en 2008, Orizon Sud oeuvre dans la diffusion et la production d'artistes, ainsi que dans des actions d'accompagnement. Le projet artistique du Makeda est porte par cette structure engagee dans le developpement des musiques actuelles."},association:{heroTitle:"Association",heroYear:"/2026",heroSubtitle:"Orizon Sud",introText:"Orizon Sud oeuvre a la <1>promotion des cultures urbaines</1> et des <1>musiques actuelles</1> a Marseille. Rejoignez l'aventure en devenant benevole ou en proposant votre projet de residence artistique.",introPromotion:"promotion des cultures urbaines",introMusiques:"musiques actuelles",introSuffix:"a Marseille. Rejoignez l'aventure en devenant benevole ou en proposant votre projet de residence artistique.",volunteerTitle:"Devenir Bénélovers",volunteerSubtitle:"Rejoindre la communauté",volunteerText1:`En devenant Bénélovers, tu rejoins une communauté de bénévoles passionné·es qui font vivre les lieux de La Responsabilité des Rêves : l'Espace Julien, le Makeda, la Meson, le Théâtre de l'Œuvre, ainsi que leurs événements (Avec Le Temps, The Echo, Kiosque & Co…).
10
11🎶 Concerts, festivals, rencontres… tu es au cœur de l'aventure !
12
13Tu choisis où et quand filer un coup de main, grâce à un planning simple partagé. Un minimum d'engagement est demandé : 1-2 créneaux par trimestre, à ton rythme.
14
15🛠️ Les missions sont variées :
16• scan des billets
17• distribution de programmes / affiches
18• aide au catering
19• bar
20• vestiaire
21
22✨ En échange, tu peux assister aux concerts, profiter de tickets boissons, de temps conviviaux internes et même parfois avoir des places pour d'autres événements marseillais. C'est aussi l'occasion de découvrir l'envers du décor, rencontrer du monde et vivre la culture autrement.`,volunteerText2:"",volunteerConditions:"",volunteerCondition1:"",volunteerCondition2:"",volunteerCondition3:"",volunteerFormUrl:"https://docs.google.com/forms/d/e/1FAIpQLSe3wRtBrLgZ_ng5ZWyy8IGAV7R7NcZ-h7ANNvNuIPKsby__ug/viewform",volunteerSubmitted:"Candidature envoyee !",volunteerSubmittedText:"Merci pour votre interet. Nous reviendrons vers vous rapidement.",volunteerCta:"Devenir benevole",volunteerFormTitle:"Devenir benevole",volunteerFirstName:"Prenom *",volunteerLastName:"Nom *",volunteerAge:"Age *",volunteerEmail:"Email *",volunteerPhone:"Telephone",volunteerAdultCheck:"Je soussigne etre majeur(e) *",volunteerSubmit:"Envoyer ma candidature",residencyTitle:"Poser une residence",residencySubtitle:"Proposez votre projet artistique",residencyText1:"Le Makeda ouvre ses portes aux artistes souhaitant developper un projet artistique dans un cadre professionnel. Nos residences offrent un espace de creation equipe, un accompagnement technique et une visibilite aupres de notre public.",residencyText2:"Les residences se deroulent sur place, au coeur du Makeda, et sont ouvertes a tous les genres musicaux et disciplines artistiques liees aux cultures urbaines.",residencyInstructions:"Instructions",residencyInstruction1:"- Dossier complet : description, artistes et besoins techniques",residencyInstruction2:"- Au moins un lien d'ecoute par artiste",residencyInstruction3:"- Demandes etudiees sous 15 jours ouvrables",residencyInstruction4:"- Priorite aux cultures urbaines et musiques actuelles",residencySubmitted:"Demande envoyee !",residencySubmittedText:"Notre equipe etudiera votre dossier et vous recontactera.",residencyCta:"Deposer un dossier",residencyFormTitle:"Deposer un dossier",residencyGeneralInfo:"Infos generales",residencyEventName:"Nom de l'evenement *",residencyEventDescription:"Description de l'evenement",residencyDesiredDate:"Date souhaitee",residencyArtists:"Artiste(s)",residencyRemove:"Retirer",residencyAvatarLabel:"Photo / Avatar",residencyArtistBio:"Biographie de {{name}}",residencyEmbedLabel:"Lien embed (Ecouter)",residencyEmbedPlaceholder:"URL Spotify, YouTube, SoundCloud...",residencyMediaLinks:"Liens media",residencyArtistName:"Nom de l'artiste",residencyExtras:"Complements",residencyGenres:"Genres musicaux",residencyAddGenre:"Ajouter un genre ({{count}}/10)",residencyQuestions:"Questions particulieres",residencyProjectImage:"Image du projet",residencyProjectImageHint:"Privilegiez une image sans texte (photo, dessin, visuel)",residencyChooseImage:"Choisir une image",residencyContact:"Contact",residencyEmailPlaceholder:"Email *",residencyPhonePlaceholder:"Telephone",residencySubmit:"Envoyer ma demande"},activites:{hero:{title:"Activités"},intro:{body:`Le projet s'articule autour de trois pôles d'activités complémentaires :
23
24➔ La diffusion,
25dans et hors les murs : une programmation fédératrice, portée par la richesse, la diversité et la qualité de ses propositions. Une ligne artistique exigeante, guidée par des valeurs fortes : partage, parité, inclusion, bienveillance et mise en lumière des femmes dans la musique.
26
27➔ L'accompagnement
28des artistes et des groupes : un travail de fond autour du développement et de la structuration des projets artistiques (conseils, formations, soutien à la création). Un engagement constant aux côtés des talents émergents depuis plus de 10 ans.
29
30➔ Les actions socio-culturelles
31à destination des publics éloignés : des initiatives menées au Makeda et sur l'ensemble du territoire pour favoriser l'accès à la culture et encourager la venue de publics dits « isolés » vers le centre-ville de Marseille, notamment les jeunes.`},accompagnement:{title:"Accompagnement d'artistes",body:`Véritable défricheur de talents émergents, le Makeda s'engage à valoriser les pratiques des musicien·ne·s amateur·trice·s en voie de professionnalisation à travers un dispositif d'accompagnement artistique dédié.
32Si cet engagement s'inscrit dans la continuité de ses missions notamment via l'accueil de groupes en résidence il se renforce aujourd'hui avec la volonté affirmée de soutenir activement les acteur·trice·s du territoire et d'accompagner l'évolution de leurs projets musicaux.
33
34Convaincu que la création est indissociable de la diffusion et de la médiation, le Makeda développe un accompagnement sur mesure pour soutenir la création musicale et le développement professionnel des artistes, à chaque étape de leur parcours. Les musicien·ne·s sont ainsi accueilli·e·s en résidence pour créer, affiner leur projet scénique (scénographie, son, lumière, réalisation de clips) ou finaliser leur set.
35
36Chaque année, une dizaine de résidences sont organisées, donnant le plus souvent lieu à des restitutions publiques sous forme d'apéros-concerts, moments privilégiés de rencontre entre artistes et publics, dans une atmosphère conviviale et chaleureuse.
37L'ambition est claire : permettre aux artistes de gagner en autonomie, de structurer leur démarche et de mieux appréhender les réalités et les réseaux des musiques actuelles.`,ctaLabel:"CONTACTEZ-NOUS",ctaSubject:"accompagnement"},accompagnement2:{title:"Accompagnement personnalisé, adapté au niveau d'avancement, aux besoins et surtout aux attentes.",body:`L'accompagnement est personnalisé et ne vise en aucun cas à répondre à un cahier des charges inlassablement et aveuglément délivré. Chaque groupe ou artiste doit bénéficier d'un accompagnement adapté à son niveau d'avancement, à ses besoins et surtout à ses attentes.
38
39L'équipe du Makeda épaule à différents niveaux, qu'il s'agisse d'un support artistique et technique (composition, arrangements, mise en scène, etc.), soutien en communication (dossier de presse, biographie, identité visuelle, réseaux sociaux) ou administratif (contrats, montage d'associations, etc.).
40Le but étant d'offrir les moyens nécessaires pour développer chaque projet.`},residences:{title:"Résidences",body:`Les résidences au Makeda constituent un temps privilégié dédié à la création et à l'expérimentation artistique. Elles offrent aux musicien·ne·s un cadre professionnel pour développer leur projet, affiner leur performance scénique et travailler des aspects techniques essentiels comme le son, la lumière ou la scénographie.
41
42Pensées comme de véritables espaces de recherche et de progression, ces résidences permettent aux artistes de prendre le temps de créer, d'explorer et de structurer leur univers. Elles se concluent souvent par des restitutions publiques, sous forme d'apéros-concerts, favorisant la rencontre avec le public dans une ambiance conviviale.
43
44À travers ce dispositif, le Makeda affirme son engagement en faveur de la création et de l'accompagnement des artistes, en soutenant concrètement l'émergence et le développement de la scène musicale.`,ctaLabel:"Poser une résidence"},actions:{title:"Actions culturelles",body:`Les actions culturelles menées par le Makeda s'inscrivent dans une volonté forte de rendre la culture accessible à toutes et tous. Pensées comme des espaces de rencontre, de transmission et de découverte, elles s'adressent en priorité aux publics éloignés de l'offre culturelle, notamment les jeunes.
45
46Ateliers, initiations, temps d'échange avec des artistes, projets participatifs... ces actions se déploient au Makeda comme hors les murs, au plus près des habitants et des structures locales. Elles permettent de créer du lien, de susciter des vocations et de favoriser l'expression artistique sous toutes ses formes.
47
48À travers ces initiatives, le Makeda agit concrètement pour le "vivre ensemble", en faisant de la culture un outil d'inclusion, d'émancipation et de partage.`},ateliers:{title:"Ateliers",body:`Les ateliers proposés par le Makeda sont pensés comme des espaces de pratique, de transmission et de rencontre, ouverts à tous les publics. Encadrés par des artistes et des professionnel·le·s, ils explorent différentes disciplines liées aux musiques actuelles et aux cultures urbaines : écriture, composition, pratique scénique, techniques son... mais aussi danse.
49
50Déployés au Makeda comme en partenariat avec des structures du territoire notamment avec la Responsabilité des Rêves gestionnaire de l'Espace Julien ces ateliers favorisent la découverte, l'expression et la montée en compétences.
51
52Qu'il s'agisse de musique ou de danse, ils offrent aux participant·e·s un cadre bienveillant pour expérimenter, développer leur créativité et gagner en confiance, tout en créant du lien entre artistes, publics et acteurs culturels locaux.`},scrolling:{line1:"PROGRAMMATION. RÉSIDENCES. ACCOMPAGNEMENT.",line2:"CONCERTS. DJ SETS. SHOWCASES. ATELIERS."}},"le-projet":{hero:{title:"Le Makeda & Orizon Sud : un projet culturel commun",subtitle:""},intro:{title:"",body:`Le Makeda est une salle de spectacles de musiques actuelles emblématique de Marseille, ouverte en mars 2019 au cœur de la ville. Fondée par Francine Ouedraogo Bonnot et Aude Straub, respectivement programmatrice et administratrice, elle s'inscrit depuis Septembre 2025 dans une dynamique portée par Francine Ouedraogo Bonnot.
53
54Le lieu propose une programmation foisonnante, éclectique et accessible à tous les publics. À taille humaine (jauge de 270 personnes), le Makeda se veut un véritable espace de convergence culturelle, en lien avec les activités d'Orizon Sud, association marseillaise qui développe le projet, dans et hors les murs.
55
56Ensemble, ils défendent un projet culturel engagé à Marseille et dans sa région, avec une forte dimension sociétale : favoriser le "vivre ensemble" à travers la musique et d'autres formes d'expression artistiques. Ce projet s'articule autour de trois axes : la diffusion, l'accompagnement d'artistes et les actions socio-culturelles.
57
58Toute l'équipe fait vivre au quotidien des valeurs de mixité, de convivialité, de diversité et d'inclusion, qui guident l'ensemble de leurs actions.`},convivial:{title:"Le Makeda, un lieu convivial et engagé",body:`Lieu de vie culturel ouvert et accessible, le Makeda se distingue par une programmation riche, vivante et résolument inclusive. Concerts, DJ sets, release parties, résidences scéniques, ateliers, formations, scènes ouvertes pour tous les âges... sans oublier les expositions (plasticiens, graffeurs, calligraphes) : ici, les disciplines se croisent et les publics 
58se rencontrent.
59
60Pensé à taille humaine (270 personnes, salle et mezzanine), le lieu favorise une proximité rare entre artistes et public. Cette relation directe, soutenue par une qualité technique exigeante, donne naissance à des expériences musicales intenses, sincères et mémorables.
61
62Au Makeda comme hors les murs, la programmation revendique une ligne à la fois ouverte et exigeante, explorant toutes les esthétiques musicales. Elle mêle concerts et DJ sets, artistes émergents et confirmés, scènes locales et talents nationaux et internationaux. Avec plus de 150 dates par an, le Makeda s'impose comme un acteur incontournable, à la fois ancré dans son territoire et tourné vers les dynamiques contemporaines.`},orizonSud:{title:"Orizon Sud, un moteur culturel engagé sur son territoire",body:`Animée par une passion profonde pour l'art et la musique, Orizon Sud s'impose depuis 2008 comme un acteur de référence à Marseille. Sa mission est claire : soutenir l'émergence et le développement culturel sur le territoire, tout en favorisant le "vivre ensemble" et le décloisonnement des publics.
63
64Au cœur de son action, une conviction forte : rendre les musiques actuelles accessibles à toutes et tous, dans toute la diversité de leurs formes. À travers des actions de promotion, d'accompagnement et de transmission, l'association crée des passerelles entre artistes, publics et structures locales, participant activement à une dynamique culturelle d'intérêt général à l'échelle régionale.
65
66Orizon Sud s'appuie sur un réseau solide de professionnel·le·s du secteur artistique et culturel, de médias régionaux et de personnalités engagées, qui contribuent à faire vivre et rayonner ses projets.`},benevole:{title:"Devenir",titleBrand:"Bénélovers",body:`Rejoins l'équipe des Bénélovers :
67la communauté de bénévoles mutualisée entre l'Espace Julien, le Makeda, le Meson et le Théâtre de l'Œuvre.`,ctaLabel:"Je deviens bénélover",ctaUrl:"https://docs.google.com/forms/d/e/1FAIpQLSe3wRtBrLgZ_ng5ZWyy8IGAV7R7NcZ-h7ANNvNuIPKsby__ug/viewform"},mecenat:{title:"Devenir",titleBrand:"Mécène",body:`Soutenir Orizon Sud et le Makeda, c'est s'engager aux côtés d'un projet culturel indépendant, ancré à Marseille, qui œuvre depuis plus de 15 ans en faveur de l'accès à la culture pour toutes et tous.
68
69Dans un contexte où les acteurs culturels doivent sans cesse se réinventer, le mécénat constitue un levier essentiel pour maintenir une programmation ambitieuse, soutenir la création artistique et renforcer les actions en faveur du "vivre ensemble". Il permet à la fois de faire vivre le Makeda au quotidien avec une programmation riche, exigeante et ouverte et de développer, à travers Orizon Sud, des projets d'accompagnement d'artistes, de transmission et d'actions socio-culturelles sur le territoire.
70
71Soutenir ce projet, c'est contribuer concrètement à :
72– favoriser l'émergence artistique et la diversité des esthétiques
73– rendre la culture accessible à des publics variés, y compris les plus éloignés
74– dynamiser la scène locale tout en l'ouvrant à des artistes nationaux et internationaux
75– créer du lien social à travers la musique et les pratiques artistiques
76
77Le mécénat devient ainsi un véritable acte d'engagement, porteur de sens. Il permet aux entreprises et partenaires de s'inscrire dans une démarche responsable, en associant leur image à un projet culturel vivant, inclusif et profondément humain.
78Aux côtés d'Orizon Sud et du Makeda, chaque soutien participe à faire rayonner la culture comme un bien commun, essentiel à l'équilibre et à la vitalité du territoire.`,ctaLabel:"Je deviens mécène",note:"Votre soutien est éligible à des avantages fiscaux dans le cadre du mécénat."},partners:{title:"Partenaires",institutional:"[]",media:"[]"}},"espace-pro":{hero:{title:"Espace pro",subtitle:""},fiche:{title:"Le Makeda — Fiche technique & configuration",intro:"Le Makeda est une salle de spectacles modulable, conçue pour accueillir une grande diversité de formats live et DJ. Sa configuration en salle + mezzanine permet une lecture optimale de la scène et une circulation fluide du public comme des équipes.",outro:"Le Makeda est pensé comme un outil de travail souple et réactif, capable de s'adapter aux exigences techniques des productions tout en garantissant des conditions d'accueil optimales pour les artistes et leurs équipes.",downloadLabel:"Télécharger la fiche technique",capacite:{title:"Capacité & espace
78s",items:`Jauge totale : 270 personnes
79Répartition : fosse + mezzanine avec vue plongeante
80Scène : plateau adapté aux formats concerts et DJ sets
81Espaces annexes : loges artistes, zone technique, espace bar`},scene:{title:"Configuration scénique",items:`Plateau modulable selon les besoins (concert, DJ, format hybride)
82Accès direct pour le montage/démontage
83Possibilités d'adaptation scénographique (backline, décor léger, projections)`},son:{title:"Sonorisation",items:`Système de diffusion façade professionnel adapté à la jauge
84Retours scène (wedges) + possibilité d'in-ear selon configuration
85Régie son en façade avec console numérique
86Parc de micros et DI standards disponibles
87Accompagnement technique possible en préproduction`},lumiere:{title:"Éclairage",items:`Parc lumière complet (projecteurs traditionnels + LED)
88Pilotage via console dédiée
89Possibilités d'ambiances scéniques variées (concert, club, showcase)
90Accroche et implantation modulables selon fiche technique artiste`},video:{title:"Vidéo (selon projets)",items:`Possibilités de projection / VJing
91Accroche écran ou support visuel adaptable`},regie:{title:"Régie & exploitation",items:`Régie face avec visibilité directe sur scène
92Équipe technique expérimentée (son, lumière, accueil plateau)
93Accès fiches techniques et coordination en amont avec les productions`},residences:{title:"Résidences & captations",items:`Accueil en conditions de travail scénique réelles
94Possibilités de filage, balances longues, travail lumière
95Captation vidéo/photo possible selon configuration`}},logos:{title:"Logos vectorisés à télécharger"},privatisation:{title:"Privatiser le Makeda",body:`Au cœur de Marseille, le Makeda met à disposition un espace singulier et modulable pour accueillir vos événements professionnels et privés. Salle de concerts reconnue pour son atmosphère conviviale et immersive, le lieu offre un cadre original, propice aux expériences marquantes.
96
97Soirées d'entreprise, lancements de produits, showcases, conférences, tournages, événements hybrides ou formats sur mesure : le Makeda s'adapte à vos besoins et vous accompagne dans la conception de votre projet, de la technique à la scénographie.
98
99Avec une capacité de 270 personnes (salle et mezzanine), une proximité unique avec la scène et un équipement technique professionnel (son, lumière, vidéo), le lieu permet de créer des événements à forte valeur émotionnelle, dans un environnement à la fois chaleureux et exigeant.
100
101En lien étroit avec son équipe, chaque privatisation est pensée comme une expérience sur-mesure, intégrant vos enjeux tout en bénéficiant de l'ADN artistique et culturel du Makeda.
102
103Vous avez un projet ? Contactez-nous pour imaginer ensemble votre événement.`,ctaLabel:"Privatisation",ctaSubject:"privatisation"},documents:{title:"Documents téléchargeables"},gallery:{title:"Galerie photos",note:"Photos modifiables depuis l'admin (ajout, suppression, réorganisation)."}},tremplin:{hero:{subtitle:"Tremplin Orizon Sud"},description:{title:"Le Tremplin Orizon Sud",body:`Le Tremplin Orizon Sud est un dispositif dédié à la découverte et à la mise en lumière des talents émergents de la scène musicale. Pensé comme un véritable accélérateur, il offre aux artistes et groupes en développement l'opportunité de se produire dans des conditions professionnelles, de gagner en visibilité et de structurer leur projet.
104
105Ouvert à une diversité d'esthétiques musicales, le tremplin s'adresse aux musicien·ne·s du territoire et d'ailleurs, avec une attention particulière portée à la scène locale. Les artistes sélectionné·e·s bénéficient d'un accompagnement sur mesure : conseils artistiques, retours de professionnel·le·s, mise en réseau et accès à des temps de résidence.
106
107Au-delà de la scène, le Tremplin Orizon Sud s'inscrit dans une démarche globale de soutien à la création, en favorisant les rencontres entre artistes, publics et acteurs du secteur. Il permet aux participant·e·s de franchir une étape clé dans leur parcours, en leur donnant des outils concrets pour évoluer dans l'écosystème des musiques actuelles.
108
109Véritable tremplin au sens propre comme figuré, il incarne l'engagement d'Orizon Sud pour l'émergence artistique et le renouvellement des scènes.`},noEdition:"Aucune edition en cours",signUp:"Inscrivez-vous",laureate:"Laureat {{year}}",theWinner:"Le Laureat {{year}}",winners:"Laureats {{year}}",ranking:"Classement",nextUpdate:"Prochaine mise a jour dans {{hours}}h{{minutes}}",voteCount_one:"{{count}} vote",voteCount_other:"{{count}} votes",registrationSuccess:"Inscription confirmee ! Vous recevrez un email de confirmation.",registrationError:"Erreur lors de l'inscription",voteSuccess:"Vote enregistre !",voteError:"Erreur lors du vote",winnersTitle:"Laureats",phaseRegistration:"Inscris-toi",phaseVoting:"Vote maintenant",phaseResults:"Decouvrir les resultats",scrollingLine1:"TREMPLIN ORIZON SUD.  16EME EDITION.  TREMPLIN ORIZON SUD.",scrollingLine2:"VOTES OUVERTS.  VOTEZ PO
109UR VOTRE ARTISTE.  VOTES OUVERTS.",daysRemaining_one:"{{count}} jour restant",daysRemaining_other:"{{count}} jours restants",votesEnded:"Votes termines",noCandidates:"Aucun candidat pour le moment",searchArtist:"Rechercher un artiste...",resultCount_one:"{{count}} resultat",resultCount_other:"{{count}} resultats",noSearchResult:"Aucun artiste ne correspond a votre recherche",previous:"Precedent",next:"Suivant",backToCandidates:"Retour aux candidats",laureateLabel:"Laureat",listen:"Ecouter",socialNetworks:"Reseaux",voteFor:"Voter pour {{name}}",yourEmail:"Votre email",receiveResults:"Recevoir les resultats par email",submittingVote:"Vote en cours...",confirmVote:"Confirmer mon vote",photoLabel:"Photo",changePhoto:"Changer",artistName:"Nom d'artiste *",emailRequired:"Email *",bioPlaceholder:"Decrivez votre projet artistique...",musicLinks:"Liens musique",socialLinks:"Reseaux sociaux",submitting:"Inscription en cours...",submitRegistration:"S'inscrire au Tremplin",link:"Lien"},loadingScreen:{loading:"Chargement...",welcome:"Bienvenue"},cookies:{greeting:"Salut c'est nous...",title:"les Cookies !",message:"On a attendu d'etre surs que le contenu de ce site vous interesse avant de vous deranger, mais on aimerait bien vous accompagner pendant votre visite... C'est OK pour vous ?",accept:"C'est OK pour moi !",newsletterCta:"Restez informe de notre programmation",emailPlaceholder:"Votre email",subscribe:"S'inscrire",subscribed:"Inscription confirmee !",privacy:"Lire notre politique de confidentialite",whatWeStore:"Ce que nous stockons :",storeLang:"Votre preference de langue",storeConsent:"Votre choix concernant ce bandeau",noTracking:"Aucun traceur publicitaire, aucune donnee partagee avec des tiers."},dates:{daysSunShort:"DIM",daysMonShort:"LUN",daysTueShort:"MAR",daysWedShort:"MER",daysThuShort:"JEU",daysFriShort:"VEN",daysSatShort:"SAM"}},_S={navbar:{agenda:"Agenda",leProjet:"The project",tremplin:"Tremplin",activites:"Activities",espacePro:"Pro",contact:"Contact",contactsInfos:"Contact & info",socialsAria:"Social networks",searchPlaceholder:"Search...",searchNoResult:"No events found",soldOutLabel:"SOLD OUT",showEvent:"Show event {{index}}"},footer:{learnMore:"Learn more",contact:"Contact",newsletter:"Subscribe to the newsletter",copyright:"© 2026 Le Makeda. All rights reserved.",leProjet:"The project",agenda:"Agenda",activites:"Activities",contactsInfos:"Contact & info",mentionsLegales:"Legal notice",politiqueConfidentialite:"Privacy policy",cgv:"Terms & Conditions",feedback:"Give your feedback",contactDev:"A bug, an issue, a question?",contactDevText:"Contact the website developer"},feedback:{title:"Your feedback on the website",criteria:{mobile:"Mobile UX",speed:"Speed",experience:"Compared to the old site"},messagePlaceholder:"Any comment or suggestion? (optional)",submitting:"Sending...",submit:"Send my feedback",thankYou:"Thank you for your feedback!",thankYouText:"Your input helps us improve the website.",close:"Close"},navigation:{leProjetDescription:"Our associative project",agendaDescription:"All upcoming events",tremplinDescription:"Discover tomorrow's talents",activitesDescription:"Diffusion, support, cultural actions",nosThematiques:"Our themes",subtitle:"United under the Makeda banner, each project champions distinct aesthetics and artistic visions",discoverLine1:"Discover",discoverLine2Prefix:"The ",discoverLine2Suffix:"universe",discoverLine3:"Makeda"},agendaPreview:{scrollLabel:"Scroll",previousLabel:"Previous",nextLabel:"Next",waitingList:"Waiting list",lastTickets:"Last tickets",getTicket:"Get my ticket",discoverAgenda:"Discover the agenda"},onTopEvent:{learnMore:"Learn more"},agenda:{featured:"Featured",joinWaitingList:"Join the waiting list",lastTickets:"Last tickets",getTicket:"Get my ticket",reserve:"Book",soldOut:"Sold out",filterBy:"Filter by",category:"Category",type:"Type",genre:"Genre",date:"Date",close:"Close",reset:"Reset",apply:"Apply",noEventFound:"No events found",loadMore:"Load more",typeShotgun:"Shotgun",typeTremplin:"Tremplin",typeResidence:"Residency",typeHorsLesMurs:"Off-site",tonight:"Tonight",thisWeekend:"This weekend",thisWeek:"This week",specificDate:"Specific day"},eventDetail:{loading:"Loading...",loadError:"Unable to load event",n
109otFound:"Event not found",ticketing:"Ticketing",allTicketsSold:"All tickets are sold out",ticketingNotAvailable:"Ticketing unavailable",reserveTicket:"Book my ticket",ticketFallback:"If the ticketing doesn't load, ",openOnShotgun:"open on Shotgun",infoPratiques:"Practical info",dateLabel:"Date",doorsOpen:"Doors open",schedule:"Schedule",scheduleFrom:"From {{start}}",scheduleTo:" to {{end}}",price:"Price",free:"Free",priceFrom:"From {{price}} EUR",address:"Address",metro:"Metro",bus:"Bus",parking:"Parking",accessibility:"Accessibility",access:"Access"},makeda:{heroTitle:"Our Story",heroYear:"/2025",heroSubtitle:"Le Makeda",heroImageAlt:"The Makeda audience",scrollRevealText:'Founded in March 2019, Le Makeda was born from the meeting of two passionate women: Francine Ouedraogo Bonnot and Aude Straub. Together, they transformed a former warehouse in the Camas district into a vibrant space dedicated to contemporary music. The name "Makeda" pays tribute to the legendary Queen of Sheba, symbol of feminine power and cultural openness. This reference embodies our vision: a space where cultures meet and music unites people. Today, Le Makeda hosts over 200 concerts per year, from emerging artists to international headliners, in an intimate 270-person venue.',scrollingLine1:"PROGRAMMING.  PRODUCTION.  LOCAL PROMOTION.",scrollingLine2:"CONCERTS.  PARTIES.  SHOWS.  FESTIVA
109LS.",venueTitle:"A unique venue",venueText1:"Nestled in the historic Camas district, this 400m² space has been fully renovated to offer exceptional acoustics and a warm atmosphere.",venueText2:"The exposed brick walls and solid wood bar create an authentic atmosphere where every concert becomes a memorable experience.",teamTitle:"Our team",teamText1:"Behind Le Makeda, a passionate team works every day to bring you unique moments. Sound and lighting technicians, bartenders, front of house: all share the same passion for live music.",teamText2:"Together, we build a place where artists and audiences meet in a friendly atmosphere.",teamHeroSubtitle:"Expert, passionate and responsive — say hello to our team members",teamHeroLine1:"Meet",teamHeroLine2Prefix:"The ",teamHeroLine2Suffix:"team",teamHeroLine3:"Makeda",teamMembersSticky:"The Makeda Team",memberDirection:"Management",memberSonLumiere:"Sound & Lighting",memberAccueilBar:"Front of House & Bar",memberEquipeTechnique:"The technical team",memberEquipeBar:"The bar team",featureArtisticDirection:"Artistic Direction",featureArtisticDirectionText:"Passionate about music in all its forms, the Makeda team scouts emerging artists and (co)produces artists with national and international reach. The programming explores many musical horizons and is not restricted by any artistic barrier.",featureLocalPromotion:"Local Promotion",featureLocalPromotionText:"Le Makeda actively supports the local Marseille scene by offering a platform to artists from the region. Competitions, opening acts, residencies: each format is designed to help emerging talents gain greater visibility.",productionLabel:"Overview",productionTitle:"Production & Distribution",stat1Number:"+200",stat1Label:"Concerts per year in the heart of Marseille.",stat1Description:"Le Makeda, an intimate 270-person venue in the Camas district. Eclectic programming blending local, national and international artists in a unique atmosphere.",stat2Number:"+50",stat2Label:"Emerging artists supported each season across rap, electronic, pop, chanson, rock, world.",stat2Description:"They've performed at Le Makeda: Alonzo, IAM, Soprano, SCH, Jul, Keny Arkana, Chinese Man, Massilia Sound System, Piers Faccini, Deluxe, Dagoba, Soso Maness, Naps, L'Algerino, Hatik, Wejdene, Josman...",stat3Number:"+45K",stat3Label:"Audience members welcomed in 2025.",stat3Description:"In a venue holding 150 to 270 people: concerts, DJ nights, showcases, competitions, artistic residencies and private events...",historiqueLabel:"History",orizonSudTitle:"Orizon Sud",orizonSudText:"A Marseille-based association founded in 2008, Orizon Sud works in the distribution and production of artists, as well as support initiatives. Le Makeda's artistic project is carried by this organisation committed to developing contemporary music."},association:{heroTitle:"Association",heroYear:"/2026",heroSubtitle:"Orizon Sud",introText:"Orizon Sud works to <1>promote urban cultures</1> and <1>contemporary music</1> in Marseille. Join the adventure by becoming a volunteer or proposing your artistic residency project.",introPromotion:"promote urban cultures",introMusiques:"contemporary music",introSuffix:"in Marseille. Join the adventure by becoming a volunteer or proposing your artistic residency project.",volunteerTitle:"Become a Bénélovers",volunteerSubtitle:"Join the community",volunteerText1:`By becoming a Bénélovers, you join a community of passionate volunteers who bring La Responsabilité des Rêves venues to life: l'Espace Julien, Le Makeda, la Meson, le Théâtre de l'Œuvre, as well as their events (Avec Le Temps, The Echo, Kiosque & Co…).
110
111🎶 Concerts, festivals, meetings… you're at the heart of the adventure!
112
113You choose where and when to lend a hand thanks to a simple shared schedule. A minimum commitment is required: 1-2 slots per quarter, at your own pace.
114
115🛠️ The missions are varied:
116• ticket scanning
117• handing out programs / posters
118• catering support
119• bar
120• cloakroom
121
122✨ In exchange, you can attend concerts, enjoy drink tickets, internal friendly moments and s
122ometimes even get tickets for other Marseille events. It's also an opportunity to discover behind the scenes, meet people and experience culture differently.`,volunteerText2:"",volunteerConditions:"",volunteerCondition1:"",volunteerCondition2:"",volunteerCondition3:"",volunteerFormUrl:"https://docs.google.com/forms/d/e/1FAIpQLSe3wRtBrLgZ_ng5ZWyy8IGAV7R7NcZ-h7ANNvNuIPKsby__ug/viewform",volunteerSubmitted:"Application sent!",volunteerSubmittedText:"Thank you for your interest. We'll get back to you shortly.",volunteerCta:"Become a volunteer",volunteerFormTitle:"Become a volunteer",volunteerFirstName:"First name *",volunteerLastName:"Last name *",volunteerAge:"Age *",volunteerEmail:"Email *",volunteerPhone:"Phone",volunteerAdultCheck:"I confirm that I am 18 or older *",volunteerSubmit:"Send my application",residencyTitle:"Apply for a residency",residencySubtitle:"Propose your artistic project",residencyText1:"Le Makeda opens its doors to artists wishing to develop an artistic project in a professional setting. Our residencies offer an equipped creative space, technical support and visibility with our audience.",residencyText2:"Residencies take place on-site, in the heart of Le Makeda, and are open to all musical genres and artistic disciplines related to urban cultures.",residencyInstructions:"Instructions",residencyInstruction1:"- Complete application: description, artists and technical needs",residencyInstruction2:"- At least one listening link per artist",residencyInstruction3:"- Applications reviewed within 15 business days",residencyInstruction4:"- Priority given to urban cultures and contemporary music",residencySubmitted:"Application sent!",residencySubmittedText:"Our team will review your application and contact you.",residencyCta:"Submit an application",residencyFormTitle:"Submit an application",residencyGeneralInfo:"General information",residencyEventName:"Event name *",residencyEventDescription:"Event description",residencyDesiredDate:"Desired date",residencyArtists:"Artist(s)",residencyRemove:"Remove",residencyAvatarLabel:"Photo / Avatar",residencyArtistBio:"Biography of {{name}}",residencyEmbedLabel:"Embed link (Listen)",residencyEmbedPlaceholder:"Spotify, YouTube, SoundCloud URL...",residencyMediaLinks:"Media links",residencyArtistName:"Artist name",residencyExtras:"Additional details",residencyGenres:"Musical genres",residencyAddGenre:"Add a genre ({{count}}/10)",residencyQuestions:"Specific questions",residencyProjectImage:"Project image",residencyProjectImageHint:"Prefer an image without text (photo, drawing, visual)",residencyChooseImage:"Choose an image",residencyContact:"Contact",residencyEmailPlaceholder:"Email *",residencyPhonePlaceholder:"Phone",residencySubmit:"Send my request"},tremplin:{noEdition:"No current edition",signUp:"Sign up",laureate:"Winner {{year}}",theWinner:"The Winner {{year}}",winners:"Winners {{year}}",ranking:"Ranking",nextUpdate:"Next update in {{hours}}h{{minutes}}",voteCount_one:"{{count}} vote",voteCount_other:"{{count}} votes",registrationSuccess:"Registration confirmed! You will receive a confirmation email.",registrationError:"Registration error",voteSuccess:"Vote recorded!",voteError:"Voting error",winnersTitle:"Winners",phaseRegistration:"Sign up",phaseVoting:"Vote now",phaseResults:"Discover the results",scrollingLine1:"TREMPLIN ORIZON SUD.  16TH EDITION.  TREMPLIN ORIZON SUD.",scrollingLine2:"VOTES OPEN.  VOTE FOR YOUR ARTIST.  VOTES OPEN.",daysRemaining_one:"{{count}} day remaining",daysRemaining_other:"{{count}} days remaining",votesEnded:"Voting ended",noCandidates:"No candidates yet",searchArtist:"Search for an artist...",resultCount_one:"{{count}} result",resultCount_other:"{{count}} results",noSearchResult:"No artist matches your search",previous:"Previous",next:"Next",backToCandidates:"Back to candidates",laureateLabel:"Winner",listen:"Listen",socialNetworks:"Social media",voteFor:"Vote for {{name}}",yourEmail:"Your email",receiveResults:"Receive results by email",submittingVote:"Voting...",confirmVote:"Confirm my vote",photoLabel:"Photo",changePhoto:"Change",artistName:"Artist name *",emailRequired:"Email *",bioPlaceholder:"Describe your artistic project...",musicLinks:"Music links",socialLinks:"Social media",submitting:"Registering...",submitRegistration:"Register for the Tremplin",link:"Link"},loadingScreen:{loading:"Loading...",welcome:"Welcome"},cookies:{greeting:"Hey, it's us...",title:"the Cookies!",message:"We waited to make sure you were interested in our content before bothering you, but we'd love to accompany you during your visit... Is that OK with you?",accept:"That's OK with me!",newsletterCta:"Stay updated on our programming",emailPlaceholder:"Your email",subscribe:"Subscribe",subscribed:"Successfully subscribed!",privacy:"Read our privacy policy",whatWeStore:"What we store:",storeLang:"Your language preference",storeConsent:"Your choice regarding this banner",noTracking:"No ad trackers, no data shared with third parties."},dates:{daysSunShort:"SUN",daysMonShort:"MON",daysTueShort:"TUE",daysWedShort:"WED",daysThuShort:"THU",daysFriShort:"FRI",daysSatShort:"SAT"}};dn.use(bv).use(tS).init({resources:{fr:{translation:CS},en:{translation:_S}},fallbackLng:"fr",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],lookupLocalStorage:"makeda-lang",caches:["localStorage"]}});var Ky="popstate";function ES(n={}){function e(i,l){let{pathname:c,search:d,hash:f}=i.location;return Oh("",{pathname:c,search:d,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function a(i,l){return typeof l=="string"?l:Jl(l)}return TS(e,a,null,n)}function yt(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function ls(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function kS(){return Math.random().toString(36).substring(2,10)}function Yy(n,e){return{usr:n.state,key:n.key,idx:e}}function Oh(n,e,a=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof e=="string"?Rr(e):e,state:a,key:e&&e.key||i||kS()}}function Jl({pathname:n="/",search:e="",hash:a=""}){return e&&e!=="?"&&(n+=e.charAt(0)==="?"?e:"?"+e),a&&a!=="#"&&(n+=a.charAt(0)==="#"?a:"#"+a),n}function Rr(n){let e={};if(n){let a=n.indexOf("#");a>=0&&(e.hash=n.substring(a),n=n.substring(0,a));let i=n.indexOf("?");i>=0&&(e.search=n.substring(i),n=n.substring(0,i)),n&&(e.pathname=n)}return e}function TS(n,e,a,i={}){let{window:l=document.defaultView,v5Compat:c=!1}=i,d=l.history,f="POP",h=null,m=g();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function g(){return(d.state||{idx:null}).idx}function y(){f="POP";let _=g(),k=_==null?null:_-m;m=_,h&&h({action:f,location:w.location,delta:k})}function b(_,k){f="PUSH";let E=Oh(w.location,_,k);m=g()+1;let C=Yy(E,m),A=w.createHref(E);try{d.pushState(C,"",A)}
122catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;l.location.assign(A)}c&&h&&h({action:f,location:w.location,delta:1})}function v(_,k){f="REPLACE";let E=Oh(w.location,_,k);m=g();let C=Yy(E,m),A=w.createHref(E);d.replaceState(C,"",A),c&&h&&h({action:f,location:w.location,delta:0})}function N(_){return AS(_)}let w={get action(){return f},get location(){return n(l,d)},listen(_){if(h)throw new Error("A history only accepts one active listener");return l.addEventListener(Ky,y),h=_,()=>{l.removeEventListener(Ky,y),h=null}},createHref(_){return e(l,_)},createURL:N,encodeLocation(_){let k=N(_);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:b,replace:v,go(_){return d.go(_)}};return w}function AS(n,e=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),yt(a,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Jl(n);return i=i.replace(/ $/,"%20"),!e&&i.startsWith("//")&&(i=a+i),new URL(i,a)}function vv(n,e,a="/"){return MS(n,e,a,!1)}function MS(n,e,a,i){let l=typeof e=="string"?Rr(e):e,c=aa(l.pathname||"/",a);if(c==null)return null;let d=jv(n);OS(d);let f=null;for(let h=0;f==null&&h<d.length;++h){let m=VS(c);f=FS(d[h],m,i)}return f}function jv(n,e=[],a=[],i="",l=!1){let c=(d,f,h=l,m)=>{let g={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:f,route:d};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&h)return;yt(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let y=sa([i,g.relativePath]),b=a.concat(g);d.children&&d.children.length>0&&(yt(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),jv(d.children,e,b,y,h)),!(d.path==null&&!d.index)&&e.push({path:y,score:PS(y,d.index),routesMeta:b})};return n.forEach((d,f)=>{if(d.path===""||!d.path?.includes("?"))c(d,f);else for(let h of wv(d.path))c(d,f,!0,h)}),e}function wv(n){let e=n.split("/");if(e.length===0)return[];let[a,...i]=e,l=a.endsWith("?"),c=a.replace(/\?$/,"");if(i.length===0)return l?[c,""]:[c];let d=wv(i.join("/")),f=[];return f.push(...d.map(h=>h===""?c:[c,h].join("/"))),l&&f.push(...d),f.map(h=>n.startsWith("/")&&h===""?"/":h)}function OS(n){n.sort((e,a)=>e.score!==a.score?a.score-e.score:BS(e.routesMeta.map(i=>i.childrenIndex),a.routesMeta.map(i=>i.childrenIndex)))}var RS=/^:[\w-]+$/,DS=3,LS=2,zS=1,US=10,qS=-2,$y=n=>n==="*";function PS(n,e){let a=n.split("/"),i=a.length;return a.some($y)&&(i+=qS),e&&(i+=LS),a.filter(l=>!$y(l)).reduce((l,c)=>l+(RS.test(c)?DS:c===""?zS:US),i)}function BS(n,e){return n.length===e.length&&n.slice(0,-1).every((i,l)=>i===e[l])?n[n.length-1]-e[e.length-1]:0}function FS(n,e,a=!1){let{routesMeta:i}=n,l={},c="/",d=[];for(let f=0;f<i.length;++f){let h=i[f],m=f===i.length-1,g=c==="/"?e:e.slice(c.length)||"/",y=tu({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),b=h.route;if(!y&&m&&a&&!i[i.length-1].route.index&&(y=tu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!y)return null;
122Object.assign(l,y.params),d.push({params:l,pathname:sa([c,y.pathname]),pathnameBase:KS(sa([c,y.pathnameBase])),route:b}),y.pathnameBase!=="/"&&(c=sa([c,y.pathnameBase]))}return d}function tu(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[a,i]=HS(n.path,n.caseSensitive,n.end),l=e.match(a);if(!l)return null;let c=l[0],d=c.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:i.reduce((m,{paramName:g,isOptional:y},b)=>{if(g==="*"){let N=f[b]||"";d=c.slice(0,c.length-N.length).replace(/(.)\/+$/,"$1")}const v=f[b];return y&&!v?m[g]=void 0:m[g]=(v||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:d,pattern:n}}function HS(n,e=!1,a=!0){ls(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],l="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,h)=>(i.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),l+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?l+="\\/*$":n!==""&&n!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,e?void 0:"i"),i]}function VS(n){try{return n.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ls(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),n}}function aa(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let a=e.endsWith("/")?e.length-1:e.length,i=n.charAt(a);return i&&i!=="/"?null:n.slice(a)||"/"}var IS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function GS(n,e="/"){let{pathname:a,search:i="",hash:l=""}=typeof n=="string"?Rr(n):n,c;return a?(a=a.replace(/\/\/+/g,"/"),a.startsWith("/")?c=Xy(a.substring(1),"/"):c=Xy(a,e)):c=e,{pathname:c,search:YS(i),hash:$S(l)}}function Xy(n,e){let a=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(l=>{l===".."?a.length>1&&a.pop():l!=="."&&a.push(l)}),a.length>1?a.join("/"):"/"}function oh(n,e,a,i){return`Cannot include a '${n}' character in a manually specified \`to.${e}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function QS(n){return n.filter((e,a)=>a===0||e.route.path&&e.route.path.length>0)}function fm(n){let e=QS(n);return e.map((a,i)=>i===e.length-1?a.pathname:a.pathnameBase)}function hm(n,e,a,i=!1){let l;typeof n=="string"?l=Rr(n):(l={...n},yt(!l.pathname||!l.pathname.includes("?"),oh("?","pathname","search",l)),yt(!l.pathname||!l.pathname.includes("#"),oh("#","pathname","hash",l)),yt(!l.search||!l.search.includes("#"),oh("#","search","hash",l)));let c=n===""||l.pathname==="",d=c?"/":l.pathname,f;if(d==null)f=a;else{let y=e.length-1;if(!i&&d.startsWith("..")){let b=d.split("/");for(;b[0]==="..";)b.shift(),y-=1;l.pathname=b.join("/")}f=y>=0?e[y]:"/"}let h=GS(l,f),m=d&&d!=="/"&&d.endsWith("/"),g=(c||d===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}var sa=n=>n.join("/").replace(/\/\/+/g,"/"),KS=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),YS=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,$S=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,XS=class{constructor(n,e,a,i=!1){this.status=n,this.statusText=e||"",this.internal=i,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function ZS(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function JS(n){return n.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Nv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Sv(n,e){let a=n;if(typeof a!="string"||!IS.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let i=a,l=!1;if(Nv)try{let c=new URL(window.location.href),d=a.startsWith("//")?new URL(c.protocol+a):new URL(a),f=aa(d.pathname,e);d.origin===c.origin&&f!=null?a=f+d.search+d.hash:l=!0}catch{ls(!1,`<Link to="${a}">
122 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:l,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Cv=["POST","PUT","PATCH","DELETE"];new Set(Cv);var WS=["GET",...Cv];new Set(WS);var Dr=S.createContext(null);Dr.displayName="DataRouter";var Nu=S.createContext(null);Nu.displayName="DataRouterState";var e4=S.createContext(!1),_v=S.createContext({isTransitioning:!1});_v.displayName="ViewTransition";var t4=S.createContext(new Map);t4.displayName="Fetchers";var n4=S.createContext(null);n4.displayName="Await";var Hn=S.createContext(null);Hn.displayName="Navigation";var oo=S.createContext(null);oo.displayName="Location";var us=S.createContext({outlet:null,matches:[],isDataRoute:!1});us.displayName="Route";var mm=S.createContext(null);mm.displayName="RouteError";var Ev="REACT_ROUTER_ERROR",s4="REDIRECT",a4="ROUTE_ERROR_RESPONSE";function i4(n){if(n.startsWith(`${Ev}:${s4}:{`))try{let e=JSON.parse(n.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function r4(n){if(n.startsWith(`${Ev}:${a4}:{`))try{let e=JSON.parse(n.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new XS(e.status,e.statusText,e.data)}catch{}}function l4(n,{relative:e}={}){yt(Lr(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:i}=S.useContext(Hn),{hash:l,pathname:c,search:d}=co(n,{relative:e}),f=c;return a!=="/"&&(f=c==="/"?a:sa([a,c])),i.createHref({pathname:f,search:d,hash:l})}function Lr(){return S.useContext(oo)!=null}function Vn(){return yt(Lr(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(oo).location}var kv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tv(n){S.useContext(Hn).static||S.useLayoutEffect(n)}function zr(){let{isDataRoute:n}=S.useContext(us);return n?w4():o4()}function o4(){yt(Lr(),"useNavigate() may be used only in the context of a <Router> component.");let n=S.useContext(Dr),{basename:e,navigator:a}=S.useContext(Hn),{matches:i}=S.useContext(us),{pathname:l}=Vn(),c=JSON.stringify(fm(i)),d=S.useRef(!1);return Tv(()=>{d.current=!0}),S.useCallback((h,m={})=>{if(ls(d.current,kv),!d.current)return;if(typeof h=="number"){a.go(h);return}let g=hm(h,JSON.parse(c),l,m.relative==="path");n==null&&e!=="/"&&(g.pathname=g.pathname==="/"?e:sa([e,g.pathname])),(m.replace?a.replace:a.push)(g,m.state,m)},[e,a,c,l,n])}var c4=S.createContext(null);function u4(n){let e=S.useContext(us).outlet;return S.useMemo(()=>e&&S.createElement(c4.Provider,{value:n},e),[e,n])}function Av(){let{matches:n}=S.useContext(us),e=n[n.length-1];return e?e.params:{}}function co(n,{relative:e}={}){let{matches:a}=S.useContext(us),{pathname:i}=Vn(),l=JSON.stringify(fm(a));return S.useMemo(()=>hm(n,JSON.parse(l),i,e==="path"),[n,l,i,e])}function d4(n,e){return Mv(n,e)}function Mv(n,e,a,i,l){yt(Lr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=S.useContext(Hn),{matches:d}=S.useContext(us),f=d[d.length-1],h=f?f.params:{},m=f?f.pathname:"/",g=f?f.pathnameBase:"/",y=f&&f.route;{let E=y&&y.path||"";Rv(m,!y||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
123
124Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let b=Vn(),v;if(e){let E=typeof e=="string"?Rr(e):e;yt(g==="/"||E.pathname?.startsWith(g),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=b;let N=v.pathname||"/",w=N;if(g!=="/"){let E=g.replace(/^\//,"").split("/");w="/"+N.replace(/^\//,"").split("/").slice(E.length).join("/")}let _=vv(n,{pathname:w});ls(y||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),ls(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=g4(_&&_.map(E=>Object.assign({},E,{params:Object.assign({},h,E.params),pathname:sa([g,c.encodeLocation?c.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?g:sa([g,c.encodeLocation?c.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),d,a,i,l);return e&&k?S.createElement(oo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},k):k}function f4(){let n=j4(),e=ZS(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),a=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:c},"ErrorBoundary")," or"," ",S.createElement("code",{style:c},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application 
124Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},e),a?S.createElement("pre",{style:l},a):null,d)}var h4=S.createElement(f4,null),Ov=class extends S.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,e){return e.location!==n.location||e.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:e.error,location:e.location,revalidation:n.revalidation||e.revalidation}}componentDidCatch(n,e){this.props.onError?this.props.onError(n,e):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const a=r4(n.digest);a&&(n=a)}let e=n!==void 0?S.createElement(us.Provider,{value:this.props.routeContext},S.createElement(mm.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?S.createElement(m4,{error:n},e):e}};Ov.contextType=e4;var ch=new WeakMap;function m4({children:n,error:e}){let{basename:a}=S.useContext(Hn);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let i=i4(e.digest);if(i){let l=ch.get(e);if(l)throw l;let c=Sv(i.location,a);if(Nv&&!ch.get(e))if(c.isExternal||i.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:i.replace}));throw ch.set(e,d),d}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return n}function p4({routeContext:n,match:e,children:a}){let i=S.useContext(Dr);return i&&i.static&&i.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=e.route.id),S.createElement(us.Provider,{value:n},a)}function g4(n,e=[],a=null,i=null,l=null){if(n==null){if(!a)return null;if(a.errors)n=a.matches;else if(e.length===0&&!a.initialized&&a.matches.length>0)n=a.matches;else return null}let c=n,d=a?.errors;if(d!=null){let g=c.findIndex(y=>y.route.id&&d?.[y.route.id]!==void 0);yt(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,g+1))}let f=!1,h=-1;if(a)for(let g=0;g<c.length;g++){let y=c[g];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(h=g),y.route.id){let{loaderData:b,errors:v}=a,N=y.route.loader&&!b.hasOwnProperty(y.route.id)&&(!v||v[y.route.id]===void 0);if(y.route.lazy||N){f=!0,h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}let m=a&&i?(g,y)=>{i(g,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:JS(a.matches),errorInfo:y})}:void 0;return c.reduceRight((g,y,b)=>{let v,N=!1,w=null,_=null;a&&(v=d&&y.route.id?d[y.route.id]:void 0,w=y.route.errorElement||h4,f&&(h<0&&b===0?(Rv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,_=null):h===b&&(N=!0,_=y.route.hydrateFallbackElement||null)));let k=e.concat(c.slice(0,b+1)),E=()=>{let C;return v?C=w:N?C=_:y.route.Component?C=S.createElement(y.route.Component,null):y.route.element?C=y.route.element:C=g,S.createElement(p4,{match:y,routeContext:{outlet:g,matches:k,isDataRoute:a!=null},children:C})};return a&&(y.route.ErrorBoundary||y.route.errorElement||b===0)?S.createElement(Ov,{location:a.location,revalidation:a.revalidation,component:w,error:v,children:E(),routeContext:{outlet:null,matches:k,isDataRoute:!0},onError:m}):E()},null)}function pm(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function x4(n){let e=S.useContext(Dr);return yt(e,pm(n)),e}function y4(n){let e=S.useContext(Nu);return yt(e,pm(n)),e}function b4(n){let e=S.useContext(us);return yt(e,pm(n)),e}function gm(n){let e=b4(n),a=e.matches[e.matches.length-1];return yt(a.route.id,`${n} can only be used on routes that contain a unique "id"`),a.route.id}function v4(){return gm("useRouteId")}function j4(){let n=S.useContext(mm),e=y4("useRouteError"),a=gm("useRouteError");return n!==void 0?n:e.errors?.[a]}function w4(){let{router:n}=x4("useNavigate"),e=gm("useNavigate"),a=S.useRef(!1);return Tv(()=>{a.current=!0}),S.useCallback(async(l,c={})=>{ls(a.current,kv),a.current&&(typeof l=="number"?await n.navigate(l):await n.navigate(l,{fromRouteId:e,...c}))},[n,e])}var Zy={};function Rv(n,e,a){!e&&!Zy[n]&&(Zy[n]=!0,ls(!1,a))}S.memo(N4);function N4({routes:n,future:e,state:a,onError:i}){return Mv(n,void 0,a,i,e)}function nu({to:n,replace:e,state:a,relative:i}){yt(Lr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=S.useContext(Hn);ls(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=S.useContext(us),{pathname:d}=Vn(),f=zr(),h=hm(n,fm(c),d,i==="path"),m=JSON.stringify(h);return S.useEffect(()=>{f(JSON.parse(m),{replace:e,state:a,relative:i})},[f,m,i,e,a]),null}function S4(n){return u4(n.context)}function nt(n){yt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function C4({basename:n="/",children:e=null,location:a,navigationType:i="POP",navigator:l,static:c=!1,unstable_useTransitions:d}){yt(!Lr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=n.replace(/^\/*/,"/"),h=S.useMemo(()=>({basename:f,navigator:l,static:c,unstable_useTransitions:d,future:{}}),[f,l,c,d]);
124typeof a=="string"&&(a=Rr(a));let{pathname:m="/",search:g="",hash:y="",state:b=null,key:v="default"}=a,N=S.useMemo(()=>{let w=aa(m,f);return w==null?null:{location:{pathname:w,search:g,hash:y,state:b,key:v},navigationType:i}},[f,m,g,y,b,v,i]);return ls(N!=null,`<Router basename="${f}"> is not able to match the URL "${m}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:S.createElement(Hn.Provider,{value:h},S.createElement(oo.Provider,{children:e,value:N}))}function xm({children:n,location:e}){return d4(Rh(n),e)}function Rh(n,e=[]){let a=[];return S.Children.forEach(n,(i,l)=>{if(!S.isValidElement(i))return;let c=[...e,l];if(i.type===S.Fragment){a.push.apply(a,Rh(i.props.children,c));return}yt(i.type===nt,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let d={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(d.children=Rh(i.props.children,c)),a.push(d)}),a}var Qc="get",Kc="application/x-www-form-urlencoded";function Su(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function _4(n){return Su(n)&&n.tagName.toLowerCase()==="button"}function E4(n){return Su(n)&&n.tagName.toLowerCase()==="form"}function k4(n){return Su(n)&&n.tagName.toLowerCase()==="input"}function T4(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function A4(n,e){return n.button===0&&(!e||e==="_self")&&!T4(n)}function Dh(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((e,a)=>{let i=n[a];return e.concat(Array.isArray(i)?i.map(l=>[a,l]):[[a,i]])},[]))}function M4(n,e){let a=Dh(n);return e&&e.forEach((i,l)=>{a.has(l)||e.getAll(l).forEach(c=>{a.append(l,c)})}),a}var qc=null;function O4(){if(qc===null)try{new FormData(document.createElement("form"),0),qc=!1}catch{qc=!0}return qc}var R4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function uh(n){return n!=null&&!R4.has(n)?(ls(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Kc}"`),null):n}function D4(n,e){let a,i,l,c,d;if(E4(n)){let f=n.getAttribute("action");i=f?aa(f,e):null,a=n.getAttribute("method")||Qc,l=uh(n.getAttribute("enctype"))||Kc,c=new FormData(n)}else if(_4(n)||k4(n)&&(n.type==="submit"||n.type==="image")){let f=n.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=n.getAttribute("formaction")||f.getAttribute("action");if(i=h?aa(h,e):null,a=n.getAttribute("formmethod")||f.getAttribute("method")||Qc,l=uh(n.getAttribute("formenctype"))||uh(f.getAttribute("enctype"))||Kc,c=new FormData(f,n),!O4()){let{name:m,type:g,value:y}=n;if(g==="image"){let b=m?`${m}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else m&&c.append(m,y)}}else{if(Su(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Qc,i=null,l=Kc,d=n}return c&&l==="text/plain"&&(d=c,c=void 0),{action:i,method:a.toLowerCase(),encType:l,formData:c,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ym(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function L4(n,e,a,i){let l=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return a?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${i}`:l.pathname=`${l.pathname}.${i}`:l.pathname==="/"?l.pathname=`_root.${i}`:e&&aa(l.pathname,e)==="/"?l.pathname=`${e.replace(/\/$/,"")}/_root.${i}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${i}`,l}async function z4(n,e){if(n.id in e)return e[n.id];try{let a=await import(n.module);return e[n.id]=a,a}catch(a){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.
124isSpaMode,window.location.reload(),new Promise(()=>{})}}function U4(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function q4(n,e,a){let i=await Promise.all(n.map(async l=>{let c=e.routes[l.route.id];if(c){let d=await z4(c,a);return d.links?d.links():[]}return[]}));return H4(i.flat(1).filter(U4).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Jy(n,e,a,i,l,c){let d=(h,m)=>a[m]?h.route.id!==a[m].route.id:!0,f=(h,m)=>a[m].pathname!==h.pathname||a[m].route.path?.endsWith("*")&&a[m].params["*"]!==h.params["*"];return c==="assets"?e.filter((h,m)=>d(h,m)||f(h,m)):c==="data"?e.filter((h,m)=>{let g=i.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(d(h,m)||f(h,m))return!0;if(h.route.shouldRevalidate){let y=h.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function P4(n,e,{includeHydrateFallback:a}={}){return B4(n.map(i=>{let l=e.routes[i.route.id];if(!l)return[];let c=[l.module];return l.clientActionModule&&(c=c.concat(l.clientActionModule)),l.clientLoaderModule&&(c=c.concat(l.clientLoaderModule)),a&&l.hydrateFallbackModule&&(c=c.concat(l.hydrateFallbackModule)),l.imports&&(c=c.concat(l.imports)),c}).flat(1))}function B4(n){return[...new Set(n)]}function F4(n){let e={},a=Object.keys(n).sort();for(let i of a)e[i]=n[i];return e}function H4(n,e){let a=new Set;return new Set(e),n.reduce((i,l)=>{let c=JSON.stringify(F4(l));return a.has(c)||(a.add(c),i.push({key:c,link:l})),i},[])}function Dv(){let n=S.useContext(Dr);return ym(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function V4(){let n=S.useContext(Nu);return ym(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var bm=S.createContext(void 0);bm.displayName="FrameworkContext";function Lv(){let n=S.useContext(bm);return ym(n,"You must render this element inside a <HydratedRouter> element"),n}function I4(n,e){let a=S.useContext(bm),[i,l]=S.useState(!1),[c,d]=S.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:m,onMouseLeave:g,onTouchStart:y}=e,b=S.useRef(null);S.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let w=k=>{k.forEach(E=>{d(E.isIntersecting)})},_=new IntersectionObserver(w,{threshold:.5});return b.current&&_.observe(b.current),()=>{_.disconnect()}}},[n]),S.useEffect(()=>{if(i){let w=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(w)}}},[i]);let v=()=>{l(!0)},N=()=>{l(!1),d(!1)};return a?n!=="intent"?[c,b,{}]:[c,b,{onFocus:ql(f,v),onBlur:ql(h,N),onMouseEnter:ql(m,v),onMouseLeave:ql(g,N),onTouchStart:ql(y,v)}]:[!1,b,{}]}function ql(n,e){return a=>{n&&n(a),a.defaultPrevented||e(a)}}function G4({page:n,...e}){let{router:a}=Dv(),i=S.useMemo(()=>vv(a.routes,n,a.basename),[a.routes,n,a.basename]);return i?S.createElement(K4,{page:n,matches:i,...e}):null}function Q4(n){let{manifest:e,routeModules:a}=Lv(),[i,l]=S.useState([]);return S.useEffect(()=>{let c=!1;return q4(n,e,a).then(d=>{c||l(d)}),()=>{c=!0}},[n,e,a]),i}function K4({page:n,matches:e,...a}){let i=Vn(),{future:l,manifest:c,routeModules:d}=Lv(),{basename:f}=Dv(),{loaderData:h,matches:m}=V4(),g=S.useMemo(()=>Jy(n,e,m,c,i,"data"),[n,e,m,c,i]),y=S.useMemo(()=>Jy(n,e,m,c,i,"assets"),[n,e,m,c,i]),b=S.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let w=new Set,_=!1;if(e.forEach(E=>{let C=c.routes[E.route.id];!C||!C.hasLoader||(!g.some(A=>A.route.id===E.route.id)&&E.route.id in h&&d[E.route.id]?.shouldRevalidate||C.hasClientLoader?_=!0:w.add(E.route.id))}),w.size===0)return[];let k=L4(n,f,l.unstable_trailingSlashAwareDataRequests,"data");return _&&w.size>0&&k.searchParams.set("_routes",e.filter(E=>w.has(E.route.id)).map(E=>E.route.id).join(",")),[k.pathname+k.search]},[f,l.unstable_trailingSlashAwareDataRequests,h,i,c,g,e,n,d]),v=S.useMemo(()=>P4(y,c),[y,c]),N=Q4(y);return S.createElement(S.Fragment,null,b.map(w=>S.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...a})),v.map(w=>S.createElement("link",{key:w,rel:"modulepreload",href:w,...a})),N.map(({key:w,link:_})=>S.createElement("link",{key:w,nonce:a.nonce,..._,crossOrigin:_.crossOrigin??a.crossOrigin})))}function Y4(...n){return e=>
124{n.forEach(a=>{typeof a=="function"?a(e):a!=null&&(a.current=e)})}}var $4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$4&&(window.__reactRouterVersion="7.13.0")}catch{}function X4({basename:n,children:e,unstable_useTransitions:a,window:i}){let l=S.useRef();l.current==null&&(l.current=ES({window:i,v5Compat:!0}));let c=l.current,[d,f]=S.useState({action:c.action,location:c.location}),h=S.useCallback(m=>{a===!1?f(m):S.startTransition(()=>f(m))},[a]);return S.useLayoutEffect(()=>c.listen(h),[c,h]),S.createElement(C4,{basename:n,children:e,location:d.location,navigationType:d.action,navigator:c,unstable_useTransitions:a})}var zv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ht=S.forwardRef(function({onClick:e,discover:a="render",prefetch:i="none",relative:l,reloadDocument:c,replace:d,state:f,target:h,to:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:b,...v},N){let{basename:w,unstable_useTransitions:_}=S.useContext(Hn),k=typeof m=="string"&&zv.test(m),E=Sv(m,w);m=E.to;let C=l4(m,{relative:l}),[A,M,H]=I4(i,v),z=W4(m,{replace:d,state:f,target:h,preventScrollReset:g,relative:l,viewTransition:y,unstable_defaultShouldRevalidate:b,unstable_useTransitions:_});function P(G){e&&e(G),G.defaultPrevented||z(G)}let I=S.createElement("a",{...v,...H,href:E.absoluteURL||C,onClick:E.isExternal||c?e:P,ref:Y4(N,M),target:h,"data-discover":!k&&a==="render"?"true":void 0});return A&&!k?S.createElement(S.Fragment,null,I,S.createElement(G4,{page:C})):I});ht.displayName="Link";var Lh=S.forwardRef(function({"aria-current":e="page",caseSensitive:a=!1,className:i="",end:l=!1,style:c,to:d,viewTransition:f,children:h,...m},g){let y=co(d,{relative:m.relative}),b=Vn(),v=S.useContext(Nu),{navigator:N,basename:w}=S.useContext(Hn),_=v!=null&&a3(y)&&f===!0,k=N.encodeLocation?N.encodeLocation(y).pathname:y.pathname,E=b.pathname,C=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;a||(E=E.toLowerCase(),C=C?C.toLowerCase():null,k=k.toLowerCase()),C&&w&&(C=aa(C,w)||C);const A=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let M=E===k||!l&&E.startsWith(k)&&E.charAt(A)==="/",H=C!=null&&(C===k||!l&&C.startsWith(k)&&C.charAt(k.length)==="/"),z={isActive:M,isPending:H,isTransitioning:_},P=M?e:void 0,I;typeof i=="function"?I=i(z):I=[i,M?"active":null,H?"pending":null,_?"transitioning":null].filter(Boolean).join(" ");let G=typeof c=="function"?c(z):c;return S.createElement(ht,{...m,"aria-current":P,className:I,ref:g,style:G,to:d,viewTransition:f},typeof h=="function"?h(z):h)});Lh.displayName="NavLink";var Z4=S.forwardRef(({discover:n="render",fetcherKey:e,navigate:a,reloadDocument:i,replace:l,state:c,method:d=Qc,action:f,onSubmit:h,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:b,...v},N)=>{let{unstable_useTransitions:w}=S.useContext(Hn),_=n3(),k=s3(f,{relative:m}),E=d.toLowerCase()==="get"?"get":"post",C=typeof f=="string"&&zv.test(f),A=M=>{if(h&&h(M),M.defaultPrevented)return;M.preventDefault();let H=M.nativeEvent.submitter,z=H?.getAttribute("formmethod")||d,P=()=>_(H||M.currentTarget,{fetcherKey:e,method:z,navigate:a,replace:l,state:c,relative:m,preventScrollReset:g,viewTransition:y,unstable_defaultShouldRevalidate:b});w&&a!==!1?S.startTransition(()=>P()):P()};return S.createElement("form",{ref:N,method:E,action:k,onSubmit:i?h:A,...v,"data-discover":!C&&n==="render"?"true":void 0})});Z4.displayName="Form";function J4(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uv(n){let e=S.useContext(Dr);return yt(e,J4(n)),e}function W4(n,{target:e,replace:a,state:i,preventScrollReset:l,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:f,unstable_useTransitions:h}={}){let m=zr(),g=Vn(),y=co(n,{relative:c}
124);return S.useCallback(b=>{if(A4(b,e)){b.preventDefault();let v=a!==void 0?a:Jl(g)===Jl(y),N=()=>m(n,{replace:v,state:i,preventScrollReset:l,relative:c,viewTransition:d,unstable_defaultShouldRevalidate:f});h?S.startTransition(()=>N()):N()}},[g,m,y,a,i,e,n,l,c,d,f,h])}function qv(n){ls(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=S.useRef(Dh(n)),a=S.useRef(!1),i=Vn(),l=S.useMemo(()=>M4(i.search,a.current?null:e.current),[i.search]),c=zr(),d=S.useCallback((f,h)=>{const m=Dh(typeof f=="function"?f(new URLSearchParams(l)):f);a.current=!0,c("?"+m,h)},[c,l]);return[l,d]}var e3=0,t3=()=>`__${String(++e3)}__`;function n3(){let{router:n}=Uv("useSubmit"),{basename:e}=S.useContext(Hn),a=v4(),i=n.fetch,l=n.navigate;return S.useCallback(async(c,d={})=>{let{action:f,method:h,encType:m,formData:g,body:y}=D4(c,e);if(d.navigate===!1){let b=d.fetcherKey||t3();await i(b,a,d.action||f,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:g,body:y,formMethod:d.method||h,formEncType:d.encType||m,flushSync:d.flushSync})}else await l(d.action||f,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:g,body:y,formMethod:d.method||h,formEncType:d.encType||m,replace:d.replace,state:d.state,fromRouteId:a,flushSync:d.flushSync,viewTransition:d.viewTransition})},[i,l,e,a])}function s3(n,{relative:e}={}){let{basename:a}=S.useContext(Hn),i=S.useContext(us);yt(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),c={...co(n||".",{relative:e})},d=Vn();if(n==null){c.search=d.search;let f=new URLSearchParams(c.search),h=f.getAll("index");if(h.some(g=>g==="")){f.delete("index"),h.filter(y=>y).forEach(y=>f.append("index",y));let g=f.toString();c.search=g?`?${g}`:""}}return(!n||n===".")&&l.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:sa([a,c.pathname])),Jl(c)}function a3(n,{relative:e}={}){let a=S.useContext(_v);yt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Uv("useViewTransitionState"),l=co(n,{relative:e});if(!a.isTransitioning)return!1;let c=aa(a.currentLocation.pathname,i)||a.currentLocation.pathname,d=aa(a.nextLocation.pathname,i)||a.nextLocation.pathname;return tu(l.pathname,d)!=null||tu(l.pathname,c)!=null}var Ur=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},i3={setTimeout:(n,e)=>setTimeout(n,e),clearTimeout:n=>clearTimeout(n),setInterval:(n,e)=>setInterval(n,e),clearInterval:n=>clearInterval(n)},r3=class{#e=i3;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,e){return this.#e.setTimeout(n,e)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,e){return this.#e.setInterval(n,e)}clearInterval(n){this.#e.clearInterval(n)}},bi=new r3;function l3(n){setTimeout(n,0)}var Ei=typeof window>"u"||"Deno"in globalThis;function cn(){}function o3(n,e){return typeof n=="function"?n(e):n}function zh(n){return typeof n=="number"&&n>=0&&n!==1/0}function Pv(n,e){return Math.max(n+(e||0)-Date.now(),0)}function Ba(n,e){return typeof n=="function"?n(e):n}function as(n,e){return typeof n=="function"?n(e):n}function Wy(n,e){const{type:a="all",exact:i,fetchStatus:l,predicate:c,queryKey:d,stale:f}=n;if(d){if(i){if(e.queryHash!==vm(d,e.options))return!1}else if(!Wl(e.queryKey,d))return!1}if(a!=="all"){const h=e.isActive();if(a==="active"&&!h||a==="inactive"&&h)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||l&&l!==e.state.fetchStatus||c&&!c(e))}function eb(n,e){const{exact:a,status:i,predicate:l,mutationKey:c}=n;if(c){if(!e.options.mutationKey)return!1;if(a){if(ki(e.options.mutationKey)!==ki(c))return!1}else if(!Wl(e.options.mutationKey,c))return!1}return!(i&&e.state.status!==i||l&&!l(e))}function vm(n,e){return(e?.queryKeyHashFn||ki)(n)}function ki(n){return JSON.stringify(n,(e,a)=>Uh(a)?Object.keys(a).sort().reduce((i,l)=>(i[l]=a[l],i),{}):a)}function Wl(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?Object.keys(e).every(a=>Wl(n[a],e[a])):!1}var c3=Object.prototype.hasOwnProperty;function Bv(n,e,a=0){if(n===e)return n;if(a>500)return e;const i=tb(n)&&tb(e);if(!i&&!(Uh(n)&&Uh(e)))return e;const c=(i?n:Object.keys(n)).length,d=i?e:Object.keys(e),f=d.length,h=i?new Array(f):{};let m=0;for(let g=0;g<f;g++){const y=i?g:d[g],b=n[y],v=e[y];if(b===v){h[y]=b,(i?g<c:c3.call(n,y))&&m++;continue}if(b===null||v===null||typeof b!="object"||typeof v!="object"){h[y]=v;continue}const N=Bv(b,v,a+1);h[y]=N,N===b&&m++}return c===f&&m===c?n:h}function su(n,e){if(!e||Object.keys(n).length!==Object.keys(e).length)return!1;for(const a in n)if(n[a]!==e[a])return!1;return!0}function tb(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Uh(n){if(!nb(n))return!1;const e=n.constructor;if(e===void 0)return!0;const a=e.prototype;return!(!nb(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function nb(n){return Object.prototype.toString.call(n)==="[object Object]"}function u3(n){return new Promise(e=>{bi.setTimeout(e,n)})}function qh(n,e,a){return typeof a.structuralSharing=="function"?a.structuralSharing(n,e):a.structuralSharing!==!1?Bv(n,e):e}function d3(n,e,a=0){const i=[...n,e];return a&&i.length>a?i.slice(1):i}function f3(n,e,a=0){const i=[e,...n];return a&&i.length>a?i.slice(0,-1):i}var jm=Symbol();function Fv(n,e){return!n.queryFn&&e?.initialPromise?()=>e.initialPromise:!n.queryFn||n.queryFn===jm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function wm(n,e){return typeof n=="function"?n(...e):!!n}function h3(n,e,a){let i=!1,l;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(l??=e(),i||(i=!0,l.aborted?a():l.addEventListener("abort",a,{once:!0})),l)}),n}var m3=class extends Ur{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!Ei&&window.addEventListener){const e=()=>n();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();
vendor: 21,618 bytes, line 124
124this.listeners.forEach(e=>{e(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Nm=new m3;function Ph(){let n,e;const a=new Promise((l,c)=>{n=l,e=c});a.status="pending",a.catch(()=>{});function i(l){Object.assign(a,l),delete a.resolve,delete a.reject}return a.resolve=l=>{i({status:"fulfilled",value:l}),n(l)},a.reject=l=>{i({status:"rejected",reason:l}),e(l)},a}var p3=l3;function g3(){let n=[],e=0,a=f=>{f()},i=f=>{f()},l=p3;const c=f=>{e?n.push(f):l(()=>{a(f)})},d=()=>{const f=n;n=[],f.length&&l(()=>{i(()=>{f.forEach(h=>{a(h)})})})};return{batch:f=>{let h;e++;try{h=f()}finally{e--,e||d()}return h},batchCalls:f=>(...h)=>{c(()=>{f(...h)})},schedule:c,setNotifyFunction:f=>{a=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{l=f}}}var Bt=g3(),x3=class extends Ur{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!Ei&&window.addEventListener){const e=()=>n(!0),a=()=>n(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(a=>{a(n)}))}isOnline(){return this.#e}},au=new x3;function y3(n){return Math.min(1e3*2**n,3e4)}function Hv(n){return(n??"online")==="online"?au.isOnline():!0}var Bh=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Vv(n){let e=!1,a=0,i;const l=Ph(),c=()=>l.status!=="pending",d=w=>{if(!c()){const _=new Bh(w);b(_),n.onCancel?.(_)}},f=()=>{e=!0},h=()=>{e=!1},m=()=>Nm.isFocused()&&(n.networkMode==="always"||au.isOnline())&&n.canRun(),g=()=>Hv(n.networkMode)&&n.canRun(),y=w=>{c()||(i?.(),l.resolve(w))},b=w=>{c()||(i?.(),l.reject(w))},v=()=>new Promise(w=>{i=_=>{(c()||m())&&w(_)},n.onPause?.()}).then(()=>{i=void 0,c()||n.onContinue?.()}),N=()=>{if(c())return;let w;const _=a===0?n.initialPromise:void 0;try{w=_??n.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(y).catch(k=>{if(c())return;const E=n.retry??(Ei?0:3),C=n.retryDelay??y3,A=typeof C=="function"?C(a,k):C,M=E===!0||typeof E=="number"&&a<E||typeof E=="function"&&E(a,k);if(e||!M){b(k);return}a++,n.onFail?.(a,k),u3(A).then(()=>m()?void 0:v()).then(()=>{e?b(k):N()})})};return{promise:l,status:()=>l.status,cancel:d,continue:()=>(i?.(),l),cancelRetry:f,continueRetry:h,canStart:g,start:()=>(g()?N():v().then(N),l)}}var Iv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zh(this.gcTime)&&(this.#e=bi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ei?1/0:300*1e3))}clearGcTimeout(){this.#e&&(bi.clearTimeout(this.#e),this.#e=void 0)}},b3=class extends Iv{#e;#t;#n;#a;#s;#r;#l;constructor(n){super(),this.#l=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=ab(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=ab(this.options);e.data!==void 0&&(this.setState(sb(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,e){const a=qh(this.state.data,n,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),a}setState(n,e){this.#i({type:"setState",state:n,setStateOptions:e})}cancel(n){const e=this.#s?.promise;return this.#s?.cancel(n),e?e.then(cn).catch(cn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>as(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jm||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Ba(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Pv(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(e=>e!==n),this.observers.length||(this.#s&&(this.#l?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,e){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(n&&this.setOptions(n),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const a=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,a.signal)})},l=()=>{const f=Fv(this.options,e),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return i(g),g})();return this.#l=!1,this.options.persister?this.options.persister(f,m,this):f(m)},d=(()=>{const f={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:l};return i(f),f})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#s=Vv({initialPromise:e?.initialPromise,fn:d.fetchFn,onCancel:f=>{f instanceof Bh&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),a.abort()},onFail:(f,h)=>{this.#i({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Bh){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#i(n){const e=a=>{switch(n.type){case"failed":return{...a,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...Gv(a.data,this.options),fetchMeta:n.meta??null};case"success":const i={...a,...sb(n.data,n.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?i:void 0,i;case"error":const l=n.error;return{...a,error:l,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...n.state}}};this.state=e(this.state),Bt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function Gv(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Hv(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function sb(n,e){return{data:n,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ab(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,a=e!==void 0,i=a?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:a?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var v3=class extends Ur{constructor(n,e){super(),this.options=e,this.#e=n,this.#i=null,this.#l=Ph(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#n=void 0;#a=void 0;#s;#r;#l;#i;#p;#f;#h;#c;#u;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),ib(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fh(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fh(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const e=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof as(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),e._defaulted&&!su(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&rb(this.#t,a,this.options,e)&&this.#d(),this.updateResult(),i&&(this.#t!==a||as(this.options.enabled,this.#t)!==as(e.enabled,this.#t)||Ba(this.options.staleTime,this.#t)!==Ba(e.staleTime,this.#t))&&this.#g();const l=this.#x();i&&(this.#t!==a||as(this.options.enabled,this.#t)!==as(e.enabled,this.#t)||l!==this.#o)&&this.#y(l)}getOptimisticResult(n){const e=this.#e.getQueryCache().build(this.#e,n),a=this.createResult(e,n);return w3(this,a)&&(this.#a=a,this.#r=this.options,this.#s=this.#t.state),a}getCurrentResult(){return this.#a}trackResult(n,e){return new Proxy(n,{get:(a,i)=>(this.trackProp(i),e?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,i))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const e=this.#e.defaultQueryOptions(n),a=this.#e.getQueryCache().build(this.#e,e);return a.fetch().then(()=>this.createResult(a,e))}fetch(n){return this.#d({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#d(n){this.#w();let e=this.#t.fetch(this.options,n);return n?.throwOnError||(e=e.catch(cn)),e}#g(){this.#v();const n=Ba(this.options.staleTime,this.#t);if(Ei||this.#a.isStale||!zh(n))return;const a=Pv(this.#a.dataUpdatedAt,n)+1;this.#c=bi.setTimeout(()=>{this.#a.isStale||this.updateResult()},a)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#j(),this.#o=n,!(Ei||as(this.options.enabled,this.#t)===!1||!zh(this.#o)||this.#o===0)&&(this.#u=bi.setInterval(()=>{(this.options.refetchIntervalInBackground||Nm.isFocused())&&this.#d()},this.#o))}#b(){this.#g(),this.#y(this.#x())}#v(){this.#c&&(bi.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#u&&(bi.clearInterval(this.#u),this.#u=void 0)}createResult(n,e){const a=this.#t,i=this.options,l=this.#a,c=this.#s,d=this.#r,h=n!==a?n.state:this.#n,{state:m}=n;let g={...m},y=!1,b;if(e._optimisticResults){const P=this.hasListeners(),I=!P&&ib(n,e),G=P&&rb(n,a,e,i);(I||G)&&(g={...g,...Gv(m.data,n.options)}),e._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:v,errorUpdatedAt:N,status:w}=g;b=g.data;let _=!1;if(e.placeholderData!==void 0&&b===void 0&&w==="pending"){let P;l?.isPlaceholderData&&e.placeholderData===d?.placeholderData?(P=l.data,_=!0):P=typeof e.placeholderData=="function"?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,P!==void 0&&(w="success",b=qh(l?.data,P,e),y=!0)}if(e.select&&b!==void 0&&!_)if(l&&b===c?.data&&e.select===this.#p)b=this.#f;else try{this.#p=e.select,b=e.select(b),b=qh(l?.data,b,e),this.#f=b,this.#i=null}catch(P){this.#i=P}this.#i&&(v=this.#i,b=this.#f,N=Date.now(),w="error");const k=g.fetchStatus==="fetching",E=w==="pending",C=w==="error",A=E&&k,M=b!==void 0,z={status:w,fetchStatus:g.fetchStatus,isPending:E,isSuccess:w==="success",isError:C,isInitialLoading:A,isLoading:A,data:b,dataUpdatedAt:g.dataUpdatedAt,error:v,errorUpdatedAt:N,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>h.dataUpdateCount||g.errorUpdateCount>h.errorUpdateCount,isFetching:k,isRefetching:k&&!E,isLoadingError:C&&!M,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:C&&M,isStale:Sm(n,e),refetch:this.refetch,promise:this.#l,isEnabled:as(e.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const P=z.data!==void 0,I=z.status==="error"&&!P,G=$=>{I?$.reject(z.error):P&&$.resolve(z.data)},ne=()=>{const $=this.#l=z.promise=Ph();G($)},L=this.#l;switch(L.status){case"pending":n.queryHash===a.queryHash&&G(L);break;case"fulfilled":(I||z.data!==L.value)&&ne();break;case"rejected":(!I||z.error!==L.reason)&&ne();break}}return z}updateResult(){const n=this.#a,e=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#r=this.options,this.#s.data!==void 0&&(this.#h=this.#t),su(e,n))return;this.#a=e;const a=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.#m.size)return!0;const c=new Set(l??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const f=d;return this.#a[f]!==n[f]&&c.has(f)})};this.#N({listeners:a()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const e=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(e?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#N(n){Bt.batch(()=>{n.listeners&&this.listeners.forEach(e=>{e(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function j3(n,e){return as(e.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&e.retryOnMount===!1)}function ib(n,e){return j3(n,e)||n.state.data!==void 0&&Fh(n,e,e.refetchOnMount)}function Fh(n,e,a){if(as(e.enabled,n)!==!1&&Ba(e.staleTime,n)!=="static"){const i=typeof a=="function"?a(n):a;return i==="always"||i!==!1&&Sm(n,e)}return!1}function rb(n,e,a,i){return(n!==e||as(i.enabled,n)===!1)&&(!a.suspense||n.state.status!=="error")&&Sm(n,a)}function Sm(n,e){return as(e.enabled,n)!==!1&&n.isStaleByTime(Ba(e.staleTime,n))}function w3(n,e){return!su(n.getCurrentResult(),e)}function lb(n){return{onFetch:(e,a)=>{const i=e.options,l=e.fetchOptions?.meta?.fetchMore?.direction,c=e.state.data?.pages||[],d=e.state.data?.pageParams||[];let f={pages:[],pageParams:[]},h=0;const m=async()=>{let g=!1;const y=N=>{h3(N,()=>e.signal,()=>g=!0)},b=Fv(e.options,e.fetchOptions),v=async(N,w,_)=>{if(g)return Promise.reject();if(w==null&&N.pages.length)return Promise.resolve(N);const E=(()=>{const H={client:e.client,queryKey:e.queryKey,pageParam:w,direction:_?"backward":"forward",meta:e.options.meta};return y(H),H})(),C=await b(E),{maxPages:A}=e.options,M=_?f3:d3;return{pages:M(N.pages,C,A),pageParams:M(N.pageParams,w,A)}};if(l&&c.length){const N=l==="backward",w=N?N3:ob,_={pages:c,pageParams:d},k=w(i,_);f=await v(_,k,N)}else{const N=n??c.length;do{const w=h===0?d[0]??i.initialPageParam:ob(i,f);if(h>0&&w==null)break;f=await v(f,w),h++}while(h<N)}return f};e.options.persister?e.fetchFn=()=>e.options.persister?.(m,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},a):e.fetchFn=m}}}function ob(n,{pages:e,pageParams:a}){const i=e.length-1;return e.length>0?n.getNextPageParam(e[i],e,a[i],a):void 0}function N3(n,{pages:e,pageParams:a}){return e.length>0?n.getPreviousPageParam?.(e[0],e,a[0],a):void 0}var S3=class extends Iv{#e;#t;#n;#a;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||Qv(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(e=>e!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const e=()=>{this.#s({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=Vv({fn:()=>this.options.mutationFn?this.options.mutationFn(n,a):Promise.reject(new Error("No mutationFn found")),onFail:(c,d)=>{this.#s({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",l=!this.#a.canStart();try{if(i)e();else{this.#s({type:"pending",variables:n,isPaused:l}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,a);const d=await this.options.onMutate?.(n,a);d!==this.state.context&&this.#s({type:"pending",context:d,variables:n,isPaused:l})}const c=await this.#a.start();return await this.#n.config.onSuccess?.(c,n,this.state.context,this,a),await this.options.onSuccess?.(c,n,this.state.context,a),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,n,this.state.context,a),this.#s({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,n,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onError?.(c,n,this.state.context,a)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,c,n,this.state.context,a)}catch(d){Promise.reject(d)}throw this.#s({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#s(n){const e=a=>{switch(n.type){case"failed":return{...a,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...a,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:n.error,failureCount:a.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Bt.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function Qv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var C3=class extends Ur{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,e,a){const i=new S3({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(e),state:a});return this.add(i),i}add(n){this.#e.add(n);const e=Pc(n);if(typeof e=="string"){const a=this.#t.get(e);a?a.push(n):this.#t.set(e,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const e=Pc(n);if(typeof e=="string"){const a=this.#t.get(e);if(a)if(a.length>1){const i=a.indexOf(n);i!==-1&&a.splice(i,1)}else a[0]===n&&this.#t.delete(e)}}this.notify({type:"removed",mutation:n})}canRun(n){const e=Pc(n);if(typeof e=="string"){const i=this.#t.get(e)?.find(l=>l.state.status==="pending");return!i||i===n}else return!0}runNext(n){const e=Pc(n);return typeof e=="string"?this.#t.get(e)?.find(i=>i!==n&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Bt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const e={exact:!0,...n};return this.getAll().find(a=>eb(e,a))}findAll(n={}){return this.getAll().filter(e=>eb(n,e))}notify(n){Bt.batch(()=>{this.listeners.forEach(e=>{e(n)})})}resumePausedMutations(){const n=this.getAll().filter(e=>
124e.state.isPaused);return Bt.batch(()=>Promise.all(n.map(e=>e.continue().catch(cn))))}};function Pc(n){return n.options.scope?.id}var _3=class extends Ur{#e;#t=void 0;#n;#a;constructor(e,a){super(),this.#e=e,this.setOptions(a),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const a=this.options;this.options=this.#e.defaultMutationOptions(e),su(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&ki(a.mutationKey)!==ki(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#s(),this.#r(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(e,a){return this.#a=a,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#s(){const e=this.#n?.state??Qv();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#r(e){Bt.batch(()=>{if(this.#a&&this.hasListeners()){const a=this.#t.variables,i=this.#t.context,l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#a.onSuccess?.(e.data,a,i,l)}catch(c){Promise.reject(c)}try{this.#a.onSettled?.(e.data,null,a,i,l)}catch(c){Promise.reject(c)}}else if(e?.type==="error"){try{this.#a.onError?.(e.error,a,i,l)}catch(c){Promise.reject(c)}try{this.#a.onSettled?.(void 0,e.error,a,i,l)}catch(c){Promise.reject(c)}}}this.listeners.forEach(a=>{a(this.#t)})})}},E3=class extends Ur{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,e,a){const i=e.queryKey,l=e.queryHash??vm(i,e);let c=this.get(l);return c||(c=new b3({client:n,queryKey:i,queryHash:l,options:n.defaultQueryOptions(e),state:a,defaultOptions:n.getQueryDefaults(i)}),this.add(c)),c}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const e=this.#e.get(n.queryHash);e&&(n.destroy(),e===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Bt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const e={exact:!0,...n};return this.getAll().find(a=>Wy(e,a))}findAll(n={}){const e=this.getAll();return Object.keys(n).length>0?e.filter(a=>Wy(n,a)):e}notify(n){Bt.batch(()=>{this.listeners.forEach(e=>{e(n)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},k3=class{#e;#t;#n;#a;#s;#r;#l;#i;constructor(n={}){this.#e=n.queryCache||new E3,this.#t=n.mutationCache||new C3,this.#n=n.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#l=Nm.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=au.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const e=this.defaultQueryOptions({queryKey:n});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(n){const e=this.defaultQueryOptions(n),a=this.#e.build(this,e),i=a.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&a.isStaleByTime(Ba(e.staleTime,a))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:e,state:a})=>{const i=a.data;return[e,i]})}setQueryData(n,e,a){const i=this.defaultQueryOptions({queryKey:n}),c=this.#e.get(i.queryHash)?.state.data,d=o3(e,c);if(d!==void 0)return this.#e.build(this,i).setData(d,{...a,manual:!0})}
vendor: 4,883 bytes, line 124
124setQueriesData(n,e,a){return Bt.batch(()=>this.#e.findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,e,a)]))}getQueryState(n){const e=this.defaultQueryOptions({queryKey:n});return this.#e.get(e.queryHash)?.state}removeQueries(n){const e=this.#e;Bt.batch(()=>{e.findAll(n).forEach(a=>{e.remove(a)})})}resetQueries(n,e){const a=this.#e;return Bt.batch(()=>(a.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},e)))}cancelQueries(n,e={}){const a={revert:!0,...e},i=Bt.batch(()=>this.#e.findAll(n).map(l=>l.cancel(a)));return Promise.all(i).then(cn).catch(cn)}invalidateQueries(n,e={}){return Bt.batch(()=>(this.#e.findAll(n).forEach(a=>{a.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},e)))}refetchQueries(n,e={}){const a={...e,cancelRefetch:e.cancelRefetch??!0},i=Bt.batch(()=>this.#e.findAll(n).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let c=l.fetch(void 0,a);return a.throwOnError||(c=c.catch(cn)),l.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(cn)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const a=this.#e.build(this,e);return a.isStaleByTime(Ba(e.staleTime,a))?a.fetch(e):Promise.resolve(a.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(cn).catch(cn)}fetchInfiniteQuery(n){return n.behavior=lb(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(cn).catch(cn)}ensureInfiniteQueryData(n){return n.behavior=lb(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return au.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,e){this.#a.set(ki(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...this.#a.values()],a={};return e.forEach(i=>{Wl(n,i.queryKey)&&Object.assign(a,i.defaultOptions)}),a}setMutationDefaults(n,e){this.#s.set(ki(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...this.#s.values()],a={};return e.forEach(i=>{Wl(n,i.mutationKey)&&Object.assign(a,i.defaultOptions)}),a}defaultQueryOptions(n){if(n._defaulted)return n;const e={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=vm(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===jm&&(e.enabled=!1),e}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Kv=S.createContext(void 0),Le=n=>{const e=S.useContext(Kv);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},T3=({client:n,children:e})=>(S.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(Kv.Provider,{value:n,children:e})),Yv=S.createContext(!1),A3=()=>S.useContext(Yv);Yv.Provider;function M3(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var O3=S.createContext(M3()),R3=()=>S.useContext(O3),D3=(n,e,a)=>{const i=a?.state.error&&typeof n.throwOnError=="function"?wm(n.throwOnError,[a.state.error,a]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||i)&&(e.isReset()||(n.retryOnMount=!1))},L3=n=>{S.useEffect(()=>{n.clearReset()},[n])},z3=({result:n,errorResetBoundary:e,throwOnError:a,query:i,suspense:l})=>n.isError&&!e.isReset()&&!n.isFetching&&i&&(l&&n.data===void 0||wm(a,[n.error,i])),U3=n=>{if(n.suspense){const a=l=>l==="static"?l:Math.max(l??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...l)=>a(i(...l)):a(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},q3=(n,e)=>n.isLoading&&n.isFetching&&!e,P3=(n,e)=>n?.suspense&&e.isPending,cb=(n,e,a)=>e.fetchOptimistic(n).catch(()=>{a.clearReset()});function B3(n,e,a){const i=A3(),l=R3(),c=Le(),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const f=c.getQueryCache().get(d.queryHash);d._optimisticResults=i?"isRestoring":"optimistic",U3(d),D3(d,l,f),L3(l);const h=!c.getQueryCache().get(d.queryHash),[m]=S.useState(()=>new e(c,d)),g=m.getOptimisticResult(d),y=!i&&n.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(b=>{const v=y?m.subscribe(Bt.batchCalls(b)):cn;return m.updateResult(),v},[m,y]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),S.useEffect(()=>{m.setOptions(d)},[d,m]),P3(d,g))throw cb(d,m,l);if(z3({result:g,errorResetBoundary:l,throwOnError:d.throwOnError,query:f,suspense:d.suspense}))throw g.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,g),d.experimental_prefetchInRender&&!Ei&&q3(g,i)&&
124(h?cb(d,m,l):f?.promise)?.catch(cn).finally(()=>{m.updateResult()}),d.notifyOnChangeProps?g:m.trackResult(g)}function rt(n,e){return B3(n,v3)}function De(n,e){const a=Le(),[i]=S.useState(()=>new _3(a,n));S.useEffect(()=>{i.setOptions(n)},[i,n]);const l=S.useSyncExternalStore(S.useCallback(d=>i.subscribe(Bt.batchCalls(d)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=S.useCallback((d,f)=>{i.mutate(d,f).catch(cn)},[i]);if(l.error&&wm(i.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:c,mutateAsync:l.mutate}}const bt="https://api.lemakeda.com",ub=n=>{let e;const a=new Set,i=(m,g)=>{const y=typeof m=="function"?m(e):m;if(!Object.is(y,e)){const b=e;e=g??(typeof y!="object"||y===null)?y:Object.assign({},e,y),a.forEach(v=>v(e,b))}},l=()=>e,f={setState:i,getState:l,getInitialState:()=>h,subscribe:m=>(a.add(m),()=>a.delete(m))},h=e=n(i,l,f);return f},F3=(n=>n?ub(n):ub),H3=n=>n;function V3(n,e=H3){const a=Ee.useSyncExternalStore(n.subscribe,Ee.useCallback(()=>e(n.getState()),[n,e]),Ee.useCallback(()=>e(n.getInitialState()),[n,e]));return Ee.useDebugValue(a),a}const db=n=>{const e=F3(n),a=i=>V3(e,i);return Object.assign(a,e),a},Cm=(n=>n?db(n):db),Ia=Cm(n=>({user:null,accessToken:null,login:(e,a)=>n({user:e,accessToken:a}),setAccessToken:e=>n({accessToken:e}),logout:()=>n({user:null,accessToken:null})}));async function I3(n,e){const a=await fetch(bt+"/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:n,password:e})});if(!a.ok){const i=await a.json().catch(()=>({}));throw Object.assign(new Error(i.message||"Login failed"),{status:a.status,codeError:i.codeError})}return a.json()}async function G3(){const n=Ia.getState().accessToken;await fetch(bt+"/auth/logout",{method:"POST",headers:n?{Authorization:`Bearer ${n}`}:{},credentials:"include"}),Ia.getState().logout()}const qr="/assets/LogoWhite-BkfeCPG-.png",Q3=[{title:"Programmation",items:[{key:"events",label:"Evenements",icon:"M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z M16 3v4 M8 3v4 M4 11h16 M8 15h2v2h-2z"},{key:"tremplin",label:"Tremplin",icon:"M12 15l-2 5l9-13h-5l2-5l-9 13z"},{key:"affiche",label:"Affiche et Accueil",icon:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8 M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]},{title:"Pages du site",items:[{key:"le-projet",label:"Le projet",icon:"M14 3v4a1 1 0 0 0 1 1h4 M17 21h-10a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z M9 17h6 M9 13h6"},{key:"activites",label:"Activités",icon:"M4 4h6v6h-6z M14 4h6v6h-6z M4 14h6v6h-6z M14 14h6v6h-6z"},{key:"espace-pro",label:"Espace pro",icon:"M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2z M8 5v-2 M16 5v-2 M3 11h18"},{key:"contact",label:"Contacts",icon:"M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2z M3 7l9 6l9-6"}]},{title:"Ressources & medias",items:[{key:"documents",label:"Documents",icon:"M14 3v4a1 1 0 0 0 1 1h4 M5 4a1 1 0 0 1 1-1h8l5 5v12a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2z"},{key:"bibliotheque",label:"Bibliotheque",icon:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0 M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0 M3 6v13 M12 6v13 M21 6v13"}]},{title:"Visibilite & contacts",items:[{key:"seo",label:"SEO",icon:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0-14 0 M21 21l-6-6"},{key:"com",label:"Communication",icon:"M3 20l1.3-3.9a9 8 0 1 1 3.4 2.9l-4.7 1"}]},{title:"Configuration",items:[{key:"settings",label:"Parametres",icon:"M20 7h-9 M14 17H5 M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0-6 0 M7 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0-6 0"}]}],fb=({d:n})=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",className:"my-1.5 inline-block size-4",children:n.split(" M").map((e,a)=>r.jsx("path",{d:(a===0?"":"M")+e},a))}),K3=()=>{const n=zr(),e=async()=>{await G3(),n("/signin")};return r.jsxs("div",{className:"flex min-h-full flex-col items-start bg-black text-white is-drawer-close:w-14 is-drawer-open:w-64",children:[r.jsx("div",{className:"flex items-center px-4 py-4 is-drawer-close
124:hidden",children:r.jsx("img",{src:qr,alt:"Makeda",className:"h-8"})}),r.jsxs("ul",{className:"menu w-full grow pt-4",children:[r.jsx("li",{children:r.jsxs(Lh,{end:!0,to:"/admin",className:({isActive:a})=>"is-drawer-close:tooltip is-drawer-close:tooltip-right"+(a?" active":""),"data-tip":"Tableau de bord",children:[r.jsx(fb,{d:"M4 4h6v8h-6z M4 16h6v4h-6z M14 4h6v4h-6z M14 12h6v8h-6z"}),r.jsx("span",{className:"is-drawer-close:hidden",children:"Tableau de bord"})]})}),Q3.map(a=>r.jsxs(S.Fragment,{children:[r.jsx("li",{className:"menu-title is-drawer-close:hidden",children:a.title}),a.items.map(i=>r.jsx("li",{children:r.jsxs(Lh,{to:`/admin/${i.key}`,className:({isActive:l})=>"is-drawer-close:tooltip is-drawer-close:tooltip-right"+(l?" active":""),"data-tip":i.label,children:[r.jsx(fb,{d:i.icon}),r.jsx("span",{className:"is-drawer-close:hidden",children:i.label})]})},i.key))]},a.title))]}),r.jsx("ul",{className:"menu w-full",children:r.jsx("li",{children:r.jsxs("button",{onClick:e,className:"is-drawer-close:tooltip is-drawer-close:tooltip-right text-error","data-tip":"Deconnexion",children:[r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",className:"my-1.5 inline-block size-4",children:[r.jsx("path",{d:"M14 8v-2a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-2"}),r.jsx("path",{d:"M9 12h12l-3-3"}),r.jsx("path",{d:"M18 15l3-3"})]}),r.jsx("span",{className:"is-drawer-close:hidden",children:"Deconnexion"})]})})})]})},Y3=[{title:"Programmation",description:"Tout ce qui touche aux concerts, soirees et a la mise en avant.",cards:[{key:"events",label:"Evenements",description:"Concerts et soirees : creation, edition, archivage et synchronisation Shotgun.",icon:"M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z M16 3v4 M8 3v4 M4 11h16 M8 15h2v2h-2z"},{key:"tremplin",label:"Tremplin",description:"Editions du tremplin, candidats et votes du public.",icon:"M12 15l-2 5l9-13h-5l2-5l-9 13z"},{key:"affiche",label:"Affiche et Accueil",description:"Affiche mise en avant et images de la page d'accueil.",icon:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8 M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]},{title:"Pages du site",description:"Le contenu editorial des pages publiques.",cards:[{key:"le-projet",label:"Le projet",description:"Contenu de la page « Le projet » (Makeda, Orizon Sud, axes).",icon:"M14 3v4a1 1 0 0 0 1 1h4 M17 21h-10a2 2 0 0 1-2-2v-14a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2z M9 17h6 M9 13h6"},{key:"activites",label:"Activites",description:"Contenu de la page Activites (diffusion, accompagnement, action socio-culturelle).",icon:"M4 4h6v6h-6z M14 4h6v6h-6z M4 14h6v6h-6z M14 14h6v6h-6z"},{key:"espace-pro",label:"Espace pro",description:"Fiche technique, galerie photos, privatisation et ressources pro.",icon:"M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2z M8 5v-2 M16 5v-2 M3 11h18"},{key:"contact",label:"Contacts",description:"Adresse, acces, formulaire et photos des membres de l'equipe.",icon:"M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-14a2 2 0 0 1-2-2z M3 7l9 6l9-6"}]},{title:"Ressources & medias",description:"Fichiers a telecharger et bibliotheque d'images.",cards:[{key:"documents",label:"Documents",description:"Fichiers telechargeables : dossier presse, logos, fiche technique.",icon:"M14 3v4a1 1 0 0 0 1 1h4 M5 4a1 1 0 0 1 1-1h8l5 5v12a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2z"},{key:"bibliotheque",label:"Bibliotheque",description:"Bibliotheque d'images et visuels reutilisables sur le site.",icon:"M3 19a9 9 0 0 1 9 0a9 9 0 0 1 9 0 M3 6a9 9 0 0 1 9 0a9 9 0 0 1 9 0 M3 6v13 M12 6v13 M21 6v13"}]},{title:"Visibilite & contacts",description:"Referencement et messages recus.",cards:[{key:"seo",label:"SEO",description:"Referencement naturel : titres, descriptions et meta-donnees par page.",icon:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0-14 0 M21 21l-6-6"},{key:"com",label:"Communication",description:"Donnees recoltees via les formulaires clients (contacts, demandes).",icon:"M3 20l1.3-3.9a9 8 0 1 1 3.4 2.9l-4.7 1"}]},{title:"Configuration",description:"Reglages generaux et compte.",cards:[{key:"settings",label:"Parametres",description:"Reglages du site (ex : couleurs des boutons billetterie) et compte admin.",icon:"M20 7h-9 M14 17H5 M17 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0-6 0 M7 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0-6 0"}]}],$3=({d:n})=>r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",className:"size-6",children:n.split(" M").map((e,a)=>r.jsx("path",{d:(a===0?"":"M")+e},a))}),X3=()=>r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsxs("header",{className:"mb-10",children:[r.jsx("h1",{className:"text-3xl font-bold text-white",children:"Tableau de bord"}),r.jsx("p",{className:"text-gray-400 mt-2",children:"Choisissez un espace a gerer. Chaque carte decrit ce que vous pouvez y modifier."})]}),r.jsx("div",{className:"space-y-12",children:Y3.map(n=>r.jsxs("section",{children:[r.jsxs("div",{className:"mb-4",children:[r.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-gray-500",children:n.title}),r.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n.description})]}),r.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:n.cards.map(e=>r.jsx(ht,{to:`/admin/${e.key}`,className:"group rounded-2xl border border-gray-800 bg-gray-900 p-5 transition-colors hover:border-gray-600 hover:bg-gray-800",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"shrink-0 rounded-xl bg-gray-800 p-2.5 text-white transition-colors group-hover:bg-white group-hover:text-gray-950",children:r.jsx($3,{d:e.icon})}),r.jsxs("div",{children:[r.jsx("h3",{className:"font-semibold text-white",children:e.label}),r.jsx("p",{className:"text-sm text-gray-400 mt-1 leading-relaxed",children:e.description})]})]})},e.key))})]},n.title))})]});let dh=!1,Hh=[];
124function hb(){Hh.forEach(n=>n()),Hh=[]}async function Z3(){try{const n=await fetch(bt+"/auth/refresh",{method:"POST",credentials:"include"});if(!n.ok)return null;const e=await n.json();return Ia.getState().setAccessToken(e.access_token),e.access_token}catch{return null}}async function Ne(n,e={}){const a=Ia.getState().accessToken,i=new Headers(e.headers);a&&i.set("Authorization",`Bearer ${a}`),!i.has("Content-Type")&&!(e.body instanceof FormData)&&i.set("Content-Type","application/json");const l=await fetch(bt+n,{...e,headers:i,credentials:"include"});if(l.status===401&&a){if(dh)return new Promise((d,f)=>{Hh.push(async()=>{try{d(await Ne(n,e))}catch(h){f(h)}})});dh=!0;const c=await Z3();if(dh=!1,c)return hb(),Ne(n,e);throw hb(),Ia.getState().logout(),window.location.href="/signin",new Error("Session expired")}if(!l.ok){const c=await l.json().catch(()=>({}));throw Object.assign(new Error(c.message||l.statusText),{status:l.status,codeError:c.codeError})}if(l.status!==204)return l.json()}function J3(n){if(n){try{const e=JSON.parse(n);if(Array.isArray(e))return e.map(a=>({name:a.name??"",avatar:a.avatar??"",bio:a.bio??"",embedUrls:Array.isArray(a.embedUrls)?a.embedUrls:[],socialLinks:Array.isArray(a.socialLinks)?a.socialLinks:[]}))}catch{}return n.split(",").map(e=>e.trim()).filter(Boolean).map(e=>({name:e,avatar:"",bio:"",embedUrls:[],socialLinks:[]}))}}function Os(n){return{id:n.id,title:n.title,description:n.description??void 0,type:n.type,date:n.date.slice(0,16),endTime:n.endTime?n.endTime.slice(0,16):void 0,status:n.status,complete:n.complete,onTop:n.onTop,categoryId:n.categoryId,lieu:n.lieu??void 0,partenaire:n.partenaire??void 0,imageUrl:n.imageUrl??void 0,mobileImageUrl:n.mobileImageUrl??void 0,artists:J3(n.artist),ticketUrl:n.ticketUrl??void 0,infosPratiques:n.infosPratiques?JSON.parse(n.infosPratiques):void 0,embedUrls:n.embedUrls?JSON.parse(n.embedUrls):void 0}}async function W3(){return(await Ne("/events")).map(Os)}async function eC(n){const e=await Ne("/events",{method:"POST",body:JSON.stringify({title:n.title,type:n.type,date:n.date,endTime:n.endTime,description:n.description,categoryId:n.categoryId,lieu:n.lieu,partenaire:n.partenaire,artist:n.artists?JSON.stringify(n.artists):void 0,ticketUrl:n.ticketUrl,infosPratiques:n.infosPratiques?JSON.stringify(n.infosPratiques):void 0,embedUrls:n.embedUrls})});return Os(e)}async function tC(n,e){const a={...e};e.artists&&(a.artist=JSON.stringify(e.artists),delete a.artists),e.infosPratiques&&(a.infosPratiques=JSON.stringify(e.infosPratiques));const i=await Ne("/events/"+n,{method:"PATCH",body:JSON.stringify(a)});return Os(i)}async function nC(n){await Ne("/events/"+n,{method:"DELETE"})}async function sC(n){const e=await Ne("/events/"+n+"/advance-state",{method:"POST"});return Os(e)}async function aC(n){const e=await Ne("/events/"+n+"/revert-state",{method:"POST"});return Os(e)}async function iC(n){const e=await Ne("/events/"+n+"/publish",{method:"POST"});return Os(e)}async function rC(n,e){const a=await Ne("/events/"+n+"/toggle-flag",{method:"POST",body:JSON.stringify({field:e})});return Os(a)}async function $v(n,e){const a=new FormData;a.append("image",e);const i=await Ne("/events/"+n+"/upload-image",{method:"POST",body:a});return Os(i)}async function lC(n,e){const a=new FormData;a.append("image",e);const i=await Ne("/events/"+n+"/upload-mobile-image",{method:"POST",body:a});return Os(i)}async function oC(n,e,a){const i=new FormData;i.append("avatar",a),i.append("artistIndex",String(e));const l=await Ne("/events/"+n+"/upload-artist-avatar",{method:"POST",body:i});return Os(l)}async function cC(){return Ne("/shotgun/sync",{method:"POST"})}function _m(n){return{id:n.id,name:n.name,color:n.color}}async function uC(){return(await Ne("/categories")).map(_m)}async function dC(n){const e=await Ne("/categories",{method:"POST",body:JSON.stringify({name:n.name,color:n.color})});return _m(e)}async function fC(n,e){const a=await Ne("/categories/"+n,{method:"PATCH",body:JSON.stringify(e)});return _m(a)}async function hC(n){await Ne("/categories/"+n,{method:"DELETE"})}async function mC(n,e){return Ne(`/pages/${n}/${e}`)}async function pC(n,e,a){return Ne(`/pages/${n}/${e}`,{method:"PUT",body:JSON.stringify({content:a})})}async function gC(n,e,a){const i=new FormData;return i.append("image",a),i.append("fieldKey",e),(await Ne(`/pages/${n}/upload-image`,{method:"POST",body:i})).url}async function xC(){return Ne("/settings")}async function yC(n){return Ne("/settings",{method:"PATCH",body:JSON.stringify(n)})}async function bC(n){return Ne("/seo-rank/check",{method:"POST",body:JSON.stringify({keyword:n})})}async function vC(){try{return await Ne("/seo-rank/results")}catch{return{}}}async function jC(){await Ne("/seo-rank/results",{method:"DELETE"})}async function wC(){try{return await Ne("/seo-rank/keywords")}catch{return[]}}async function NC(n,e){return Ne("/seo-rank/keywords",{method:"POST",body:JSON.stringify({keyword:n,branded:e})})}async function SC(n){return Ne(`/seo-rank/keywords/${encodeURIComponent(n)}`,{method:"DELETE"})}async function CC(){return Ne("/tremplin/editions")}async function _C(n){return Ne("/tremplin/editions/"+n)}async function EC(n){return Ne("/tremplin/editions",{method:"POST",body:JSON.stringify(n)})}async function kC(n,e){return Ne("/tremplin/editions/"+n,{method:"PATCH",body:JSON.stringify(e)})}async function TC(n){await Ne("/tremplin/editions/"+n,{method:"DELETE"})}async function AC(n){return Ne("/tremplin/candidates/"+n+"/toggle-winner",{method:"POST"})}async function MC(n,e){const a=new FormData;return a.append("avatar",e),Ne("/tremplin/candidates/"+n+"/upload-avatar",{method:"POST",body:a})}async function OC(n,e){const a=new FormData;return a.append("image",e),Ne("/tremplin/editions/"+n+"/upload-image",{method:"POST",body:a})}async function RC(n){return Ne("/tremplin/editions/"+n+"/events")}async function DC(n,e){return Ne("/tremplin/editions/"+n+"/events",{method:"POST",body:JSON.stringify({eventId:e})})}async function LC(n,e){return Ne("/tremplin/editions/"+n+"/events/"+e,{method:"DELETE"})}async function zC(n,e,a){return Ne("/tremplin/editions/"+n+"/events/"+e,{method:"PATCH",body:JSON.stringify({voteDeadline:a})})}async function UC(n){return Ne("/tremplin/events/"+n+"/event-vote-results")}async function qC(){return Ne("/residencies")}async function PC(n){const e=await fetch(`${bt}/residencies`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!e.ok)throw new Error("Erreur soumission residence");return e.json()}async function BC(n){await Ne(`/residencies/${n}`,{method:"DELETE"})}function Em(){return rt({queryKey:["adminEvents"],queryFn:W3})}function FC(){return rt({queryKey:["adminCategories"],queryFn:uC})}function HC(n){return rt({queryKey:["adminEventDetail",n],queryFn:()=>Ne("/events/"+n+"/detail")})}function Pr(n,e="fr"){return rt({queryKey:["pageContentAdmin",n,e],queryFn:()=>mC(n,e)})}function VC(){return rt({queryKey:["siteSettingsAdmin"],queryFn:xC})}function IC(){return rt({queryKey:["seoKeywords"],queryFn:wC})}function GC(){return rt({queryKey:["seoRankings"],queryFn:vC})}function QC(){const n=Le();return De({mutationFn:async({event:e,imageFile:a})=>{const i=await eC(e);return a?$v(i.id,a):i},onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>[...a,e])}})}function KC(){const n=Le();return De({mutationFn:({id:e,fields:a})=>tC(e,a),onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function YC(){const n=Le();return De({mutationFn:nC,onSuccess:(e,a)=>{n.setQueryData(["adminEvents"],(i=[])=>i.filter(l=>l.id!==a))}})}function $C(){const n=Le();return De({mutationFn:sC,onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function XC(){const n=Le();return De({mutationFn:aC,onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function ZC(){const n=Le();return De({mutationFn:iC,onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function JC(){const n=Le();return De({mutationFn:({id:e,field:a})=>rC(e,a),onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function WC(){const n=Le();return De({mutationFn:({id:e,file:a})=>$v(e,a),onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function e_(){const n=Le();return De({mutationFn:({id:e,file:a})=>lC(e,a),onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function t_(){const n=Le();return De({mutationFn:({eventId:e,artistIndex:a,file:i})=>oC(e,a,i),onSuccess:e=>{n.setQueryData(["adminEvents"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function n_(){const n=Le();return De({mutationFn:cC,onSuccess:()=>{n.invalidateQueries({queryKey:["adminEvents"]})}})}function s_(){const n=Le();return De({mutationFn:dC,onSuccess:e=>{n.setQueryData(["adminCategories"],(a=[])=>[...a,e])}})}function a_(){const n=Le();return De({mutationFn:({id:e,fields:a})=>fC(e,a),onSuccess:e=>{n.setQueryData(["adminCategories"],(a=[])=>a.map(i=>i.id===e.id?e:i))}})}function i_(){const n=Le();return De({mutationFn:hC,onSuccess:(e,a)=>{n.setQueryData(["adminCategories"],(i=[])=>i.filter(l=>l.id!==a))}})}function Br(){const n=Le();return De({mutationFn:({slug:e,locale:a,content:i})=>pC(e,a,i),onSuccess:(e,{slug:a,locale:i})=>{n.setQueryData(["pageContentAdmin",a,i],e),n.invalidateQueries({queryKey:["pageContent",a,i]})}})}function uo(){return De({mutationFn:({slug:n,fieldKey:e,file:a})=>gC(n,e,a)})}function r_(){const n=Le();return De({mutationFn:yC,onSuccess:e=>{n.setQueryData(["siteSettingsAdmin"],e)}})}function l_(){const n=Le();return De({mutationFn:bC,onSuccess:()=>{n.invalidateQueries({queryKey:["seoRankings"]})}})}function o_(){const n=Le();return De({mutationFn:jC,onSuccess:()=>{n.setQueryData(["seoRankings"],{})}})}function c_(){const n=Le();return De({mutationFn:({keyword:e,branded:a})=>NC(e,a),onSuccess:e=>{n.setQueryData(["seoKeywords"],e)}})}
124function u_(){const n=Le();return De({mutationFn:SC,onSuccess:e=>{n.setQueryData(["seoKeywords"],e)}})}function Xv(){return rt({queryKey:["adminTremplinEditions"],queryFn:CC})}function d_(n){return rt({queryKey:["adminTremplinCurrent",n],queryFn:()=>_C(n),enabled:n!==null})}function f_(){const n=Le();return De({mutationFn:EC,onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinEditions"]})}})}function h_(){const n=Le();return De({mutationFn:({id:e,fields:a})=>kC(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinEditions"]}),n.invalidateQueries({queryKey:["adminTremplinCurrent"]})}})}function m_(){const n=Le();return De({mutationFn:TC,onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinEditions"]})}})}function p_(){const n=Le();return De({mutationFn:AC,onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinCurrent"]})}})}function g_(){const n=Le();return De({mutationFn:({candidateId:e,file:a})=>MC(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinCurrent"]})}})}function x_(){const n=Le();return De({mutationFn:({editionId:e,file:a})=>OC(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinCurrent"]}),n.invalidateQueries({queryKey:["adminTremplinEditions"]})}})}function y_(n){return rt({queryKey:["adminTremplinEvents",n],queryFn:()=>RC(n),enabled:n!==null})}function b_(){const n=Le();return De({mutationFn:({editionId:e,eventId:a})=>DC(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinEvents"]})}})}function v_(){const n=Le();return De({mutationFn:({editionId:e,eventId:a})=>LC(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinEvents"]})}})}function j_(){const n=Le();return De({mutationFn:({editionId:e,eventId:a,voteDeadline:i})=>zC(e,a,i),onSuccess:()=>{n.invalidateQueries({queryKey:["adminTremplinEvents"]})}})}function w_(n){return rt({queryKey:["eventVoteResults",n],queryFn:()=>UC(n),enabled:!!n,refetchInterval:1e4})}function N_(){return rt({queryKey:["adminResidencies"],queryFn:qC})}function S_(){const n=Le();return De({mutationFn:BC,onSuccess:(e,a)=>{n.setQueryData(["adminResidencies"],(i=[])=>i.filter(l=>l.id!==a))}})}function Fa(n){const e=new Date;return e.setHours(0,0,0,0),new Date(n)<e}function Zv(n){return Fa(n.date)?gs.past:gs[n.type]??gs.manuel}const gs={past:{label:"Passe",color:"#95A5A6",bg:"rgba(149,165,166,0.1)",icon:"horloge",canEdit:!1,canDelete:!1,canPublish:!1,canFlag:!1,creatable:!1,source:"backoffice"},shotgun:{label:"Shotgun",color:"#6C5CE7",bg:"rgba(108,92,231,0.1)",icon:"eclair",canEdit:!0,canDelete:!1,canPublish:!0,canFlag:!0,creatable:!1,source:"sync_shotgun"},manuel:{label:"Manuel",color:"#00B894",bg:"rgba(0,184,148,0.1)",icon:"maison",canEdit:!0,canDelete:!0,canPublish:!0,canFlag:!0,creatable:!0,source:"backoffice"}};function ia(n){return n?n.startsWith("http")?n:bt+n:null}function C_(n){return n?new Date(n+"T00:00:00").toLocaleDateString("fr-FR",{weekday:"long",day:"numeric",month:"long",year:"numeric"}):""}const __=({title:n,imageUrl:e,date:a,startTime:i,endTime:l,lieu:c,genres:d,readOnly:f,onChangeTitle:h,onChangeDate:m,onChangeStartTime:g,onChangeEndTime:y,onChangeLieu:b,onSelectImage:v,onSelectMobileImage:N,mobileImageUrl:w})=>{const _=S.useRef(null),k=S.useRef(null),E=ia(e);function C(A){const M=A.target.files?.[0];M&&v(M)}return r.jsxs("div",{className:"relative h-screen w-full overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:E?"url("+E+")":void 0,backgroundColor:E?void 0:"#1a1a1a"},children:r.jsx("div",{className:"absolute inset-0 bg-black/50"})}),!f&&r.jsxs(r.Fragment,{children:[r.jsx("input",{ref:_,type:"file",accept:"image/*",className:"hidden",onChange:C}),r.jsx("input",{ref:k,type:"file",accept:"image/*",className:"hidden",onChange:A=>{const M=A.target.files?.[0];M&&N&&N(M)}}),r.jsxs("div",{className:"absolute top-16 right-6 z-20 flex gap-2",children:[r.jsx("button",{type:"button",className:"px-4 py-2 rounded-lg bg-black/60 text-white text-sm font-medium hover:bg-black/80 backdrop-blur transition-colors border border-white/20",onClick:()=>_.current?.click(),children:e?"Changer l'image":"Ajouter une image"}),N&&r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("button",{type:"button",className:"px-4 py-2 rounded-lg bg-black/60 text-white text-sm font-medium hover:bg-black/80 backdrop-blur transition-colors border border-white/20",onClick:()=>k.current?.click(),children:w?"Changer image mobile":"Image mobile (portrait)"}
124),w&&r.jsx("div",{className:"w-10 h-14 rounded-lg overflow-hidden border-2 border-green-500 shadow-lg",children:r.jsx("img",{src:ia(w)??"",alt:"Mobile",className:"w-full h-full object-cover"})})]})]})]}),r.jsxs("div",{className:"relative z-10 h-full flex flex-col justify-end pb-24 px-8 md:px-16 text-white",children:[f?r.jsx("h1",{className:"font-mango text-7xl md:text-8xl lg:text-9xl font-bold mb-4",children:n}):r.jsx("input",{type:"text",value:n,onChange:A=>h(A.target.value),className:"font-mango text-7xl md:text-8xl lg:text-9xl font-bold mb-4 bg-transparent text-white border-b border-dashed border-white/30 focus:outline-none focus:border-white/60 w-full",placeholder:"Titre de l'evenement"}),d.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:d.map(A=>r.jsx("span",{className:"border border-white/60 text-white text-sm px-3 py-1 rounded-full",children:A},A))}),b&&!f?r.jsx("input",{type:"text",value:c,onChange:A=>b(A.target.value),className:"text-2xl md:text-3xl mb-2 bg-transparent text-white border-b border-dashed border-white/30 focus:outline-none focus:border-white/60 w-full max-w-xl",placeholder:"Lieu"}):c&&r.jsx("p",{className:"text-2xl md:text-3xl mb-2",children:c}),f?r.jsxs("p",{className:"text-lg mb-8 opacity-80",children:[C_(a),i&&" — "+i,l&&" a "+l]}):r.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[r.jsx("input",{type:"date",value:a,onChange:A=>m(A.target.value),className:"bg-transparent text-white text-lg opacity-80 border-b border-dashed border-white/30 focus:outline-none focus:border-white/60 [color-scheme:dark]"}),r.jsx("input",{type:"time",value:i,onChange:A=>g(A.target.value),className:"bg-transparent text-white text-lg opacity-80 border-b border-dashed border-white/30 focus:outline-none focus:border-white/60 [color-scheme:dark]"}),r.jsx("span",{className:"text-white/60",children:"a"}),r.jsx("input",{type:"time",value:l,onChange:A=>y(A.target.value),className:"bg-transparent text-white text-lg opacity-80 border-b border-dashed border-white/30 focus:outline-none focus:border-white/60 [color-scheme:dark]"})]})]})]})},E_=({description:n,readOnly:e,onChangeDescription:a})=>r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-8 md:p-10 max-h-[32rem] flex flex-col",children:[r.jsx("h2",{className:"font-mango text-white text-6xl md:text-7xl mb-6 shrink-0",children:"Description"}),r.jsx("hr",{className:"border-neutral-700 mb-6 shrink-0"}),r.jsx("div",{className:"overflow-y-auto flex-1 min-h-0",children:e?r.jsx("p",{className:"text-neutral-300 text-lg leading-relaxed whitespace-pre-line",children:n||"Aucune description"}):r.jsx("textarea",{value:n,onChange:i=>a(i.target.value),rows:12,className:"w-full h-full text-neutral-300 text-lg leading-relaxed bg-transparent border-none focus:outline-none focus:ring-0 resize-none placeholder-neutral-600",placeholder:"Description de l'evenement..."})})]});const Jv=(...n)=>n.filter((e,a,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===a).join(" ").trim();const k_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const T_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,a,i)=>i?i.toUpperCase():a.toLowerCase());const mb=n=>{const e=T_(n);return e.charAt(0).toUpperCase()+e.slice(1)};var A_={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 M_=n=>{for(const e in n)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};const O_=S.forwardRef(({color:n="currentColor",size:e=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:l="",children:c,iconNode:d,...f},h)=>S.createElement("svg",{ref:h,...A_,width:e,height:e,stroke:n,strokeWidth:i?Number(a)*24/Number(e):a,className:Jv("lucide",l),...!c&&!M_(f)&&{"aria-hidden":"true"},...f},[...d.map(([m,g])=>S.createElement(m,g)),...Array.isArray(c)?c:[c]]));const Fe=(n,e)=>{const a=S.forwardRef(({className:i,...l},c)=>S.createElement(O_,{ref:c,iconNode:e,className:Jv(`lucide-${k_(mb(n))}`,`lucide-${n}`,i),...l}));return a.displayName=mb(n),a};const R_=[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-6 1",key:"r0i19z"}],["path",{d:"m5 8 3-3 5.5 3-2.36 3.5",key:"9ptxx2"}],["path",{d:"M4.24 14.5a5 5 0 0 0 6.88 6",key:"10kmtu"}],["path",{d:"M13.76 17.5a5 5 0 0 0-6.88-6",key:"2qq6rc"}]],D_=Fe("accessibility",R_);const L_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Cu=Fe("arrow-left",L_);const z_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Wv=Fe("arrow-right",z_);const U_=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],eo=Fe("arrow-up-right",U_);const q_=[["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"}]],P_=Fe("award",q_);const B_=[["path",{d:"M8 6v6",key:"18i7km"}],["path",{d:"M15 6v6",key:"1sg6z9"}],["path",{d:"M2 12h19.6",key:"de5uta"}
124],["path",{d:"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3",key:"1wwztk"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}],["path",{d:"M9 18h5",key:"lrx6i"}],["circle",{cx:"16",cy:"18",r:"2",key:"1v4tcr"}]],e1=Fe("bus",B_);const F_=[["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"}]],km=Fe("calendar",F_);const H_=[["path",{d:"m21 8-2 2-1.5-3.7A2 2 0 0 0 15.646 5H8.4a2 2 0 0 0-1.903 1.257L5 10 3 8",key:"1imjwt"}],["path",{d:"M7 14h.01",key:"1qa3f1"}],["path",{d:"M17 14h.01",key:"7oqj8z"}],["rect",{width:"18",height:"8",x:"3",y:"10",rx:"2",key:"a7itu8"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],V_=Fe("car-front",H_);const I_=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],G_=Fe("chart-column",I_);const Q_=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],K_=Fe("check",Q_);const Y_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],t1=Fe("chevron-down",Y_);const $_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],n1=Fe("chevron-left",$_);const X_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Z_=Fe("chevron-right",X_);const J_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],iu=Fe("clock",J_);const W_=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],eE=Fe("copy",W_);const tE=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ru=Fe("download",tE);const nE=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],sE=Fe("external-link",nE);const aE=[["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"}]],Vh=Fe("globe",aE);const iE=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],s1=Fe("layout-grid",iE);const rE=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],lE=Fe("mail",rE);const oE=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],_u=Fe("map-pin",oE);const cE=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],Eu=Fe("music",cE);const uE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],dE=Fe("plus",uE);const fE=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],hE=Fe("qr-code",fE);const mE=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],pE=Fe("refresh-cw",mE);const gE=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Tm=Fe("search",gE);const xE=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],a1=Fe("share-2",xE);const yE=[["path",{d:"M12 2v13",key:"1km8f5"}],["path",{d:"m16 6-4-4-4 4",key:"13yo43"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}]],bE=Fe("share",yE);const vE=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}
124],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],jE=Fe("sliders-horizontal",vE);const wE=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],NE=Fe("star",wE);const SE=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],Yc=Fe("ticket",SE);const CE=[["path",{d:"M8 3.1V7a4 4 0 0 0 8 0V3.1",key:"1v71zp"}],["path",{d:"m9 15-1-1",key:"1yrq24"}],["path",{d:"m15 15 1-1",key:"1t0d6s"}],["path",{d:"M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z",key:"1p0hjs"}],["path",{d:"m8 19-2 3",key:"13i0xs"}],["path",{d:"m16 19 2 3",key:"xo31yx"}]],_E=Fe("train-front",CE);const EE=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],kE=Fe("trash-2",EE);const TE=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Ih=Fe("upload",TE);const AE=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],i1=Fe("user",AE);const ME=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ra=Fe("x",ME),OE=()=>r.jsx(_u,{size:22,strokeWidth:1.5}),RE=()=>r.jsx(iu,{size:22,strokeWidth:1.5}),DE=()=>r.jsx(e1,{size:22,strokeWidth:1.5}),LE=({doorsOpen:n,address:e,access:a,readOnly:i,onChangeDoorsOpen:l,onChangeAddress:c,onChangeAccess:d})=>r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-8 md:p-10",children:[r.jsx("h2",{className:"font-mango text-white text-6xl md:text-7xl mb-8",children:"Infos pratiques"}),r.jsxs("div",{className:"flex flex-col gap-5",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("span",{className:"text-neutral-400 shrink-0 mt-1",children:r.jsx(RE,{})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-neutral-500 text-sm",children:"Ouverture des portes"}),i?r.jsx("p",{className:"text-white text-xl",children:n||"—"}):r.jsx("input",{type:"text",value:n,onChange:f=>l(f.target.value),className:"w-full text-white text-xl bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-neutral-500 py-1",placeholder:"ex: 20h00"})]})]}),r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("span",{className:"text-neutral-400 shrink-0 mt-1",children:r.jsx(OE,{})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-neutral-500 text-sm",children:"Adresse"}),i?r.jsx("p",{className:"text-white text-xl",children:e||"—"}):r.jsx("input",{type:"text",value:e,onChange:f=>c(f.target.value),className:"w-full text-white text-xl bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-neutral-500 py-1",placeholder:"Adresse du lieu"})]})]})]}),r.jsx("div",{className:"mt-8 pt-6 border-t border-neutral-800",children:r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("span",{className:"text-neutral-400 shrink-0 mt-1",children:r.jsx(DE,{})}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"text-neutral-500 text-sm mb-2",children:"Acces"}),i?r.jsx("p",{className:"text-white text-base leading-relaxed whitespace-pre-line",children:a||"—"}):r.jsx("textarea",{value:a,onChange:f=>d(f.target.value),rows:4,className:"w-full text-white text-base leading-relaxed bg-transparent border border-dashed border-neutral-700 rounded-lg focus:outline-none focus:border-neutral-500 p-2 resize-none",placeholder:"Informations d'acces..."})]})]})})]}),Am=({src:n,alt:e,onSelectFile:a,onRemove:i,overlayLabel:l,className:c="w-16 h-16 rounded-full"})=>{const d=S.useRef(null);function f(){d.current?.click()}function h(m){const g=m.target.files?.[0];g&&a(g)}return r.jsxs("div",{className:"relative group shrink-0 "+c,children:[r.jsx("input",{ref:d,type:"file",accept:"image/*",className:"hidden",onChange:h}),n?r.jsx("img",{src:n,alt:e,className:"w-full h-full rounded-full object-cover cursor-pointer",onClick:f}):r.jsx("div",{className:"w-full h-full rounded-full bg-neutral-800 border-2 border-dashed border-neutral-600 flex items-center justify-center cursor-pointer hover:border-neutral-400 transition-colors",onClick:f,children:r.jsx(i1,{size:20,strokeWidth:1.5,className:"text-neutral-500"})}),l&&r.jsx("div",{className:"absolute inset-0 rounded-full bg-black/50 opacity-0 group-hover:opacity-100 flex items-center justify-center cursor-pointer transition-opacity",onClick:f,children:r.jsx("span",{className:"text-white text-xs",children:l})}),i&&n&&r.jsx("button",{type:"button",className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 text-white rounded-full flex items-center justify-center",onClick:i,children:r.jsx(ra,{size:12})})]})},zE=({artist:n,readOnly:e,onChangeArtistName:a,onChangeArtistBio:i,onChangeArtistEmbed:l,onAddArtistSocialLink:c,onRemoveArtistSocialLink:d,onRemoveArtist:f,onUploadArtistAvatar:h})=>r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-8 md:p-10 max-h-[32rem] flex flex-col",children:[r.jsxs("div",{className:"flex gap-5 items-center mb-6 shrink-0",children:[e?n.avatar&&r.jsx("img",{src:n.avatar,alt:n.name,className:"w-16 h-16 rounded-full object-cover shrink-0"}):r.jsx(Am,{src:n.avatar||null,alt:n.name,onSelectFile:h,overlayLabel:"Changer"}),r.jsx("div",{className:"flex-1 min-w-0",children:e?r.jsx("h2",{className:"font-mango text-white text-6xl md:text-7xl",children:n.name}):r.jsx("input",{type:"text",value:n.name,onChange:m=>a(m.target.value),className:"font-mango text-white text-6xl md:text-7xl bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-neutral-500 w-full",placeholder:"Nom de l'artiste"})}),!e&&r.jsx("button",{type:"button",className:"text-sm text-red-400 hover:text-red-300 px-3 py-1 rounded-lg hover:bg-red-950/50 transition-colors shrink-0",onClick:f,children:"Retirer"})]}),r.jsx("hr",{className:"border-neutral-700 mb-6 shrink-0"}),r.jsx("div",{className:"overflow-y-auto flex-1 min-h-0",children:e?n.bio&&r.jsx("p",{className:"text-neutral-300 text-lg leading-relaxed whitespace-pre-line",children:n.bio}):r.jsx("textarea",{value:n.bio,onChange:m=>i(m.target.value),rows:6,className:"w-full text-neutral-300 text-lg leading-relaxed bg-transparent border-none focus:outline-none resize-none placeholder-neutral-600",placeholder:"Biographie de "+n.name+"..."})}),!e&&r.jsxs("div",{className:"mt-6 pt-4 border-t border-neutral-800 shrink-0",children:[r.jsx("p",{className:"text-neutral-500 text-sm mb-2",children:"Lien embed (Ecouter)"}),r.jsx("input",{type:"text",value:n.embedUrls[0]??"",onChange:m=>l(m.target.value),className:"w-full text-neutral-300 bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-neutral-500 py-1 text-sm",placeholder:"URL Spotify, YouTube, SoundCloud..."})]}),(n.socialLinks.length>0||!e)&&r.jsxs("div",{className:"mt-6 pt-4 border-t border-neutral-800 shrink-0",children:[r.jsx("p",{className:"text-neutral-500 text-sm mb-3",children:"Liens media"}),n.socialLinks.map((m,g)=>r.jsx("div",{className:"flex items-center gap-2 mb-2",children:e?r.jsx("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"text-blue-400 hover:underline truncate text-sm",children:m}):r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"flex-1 text-neutral-300 text-sm truncate",children:m}),r.jsx("button",{type:"button",className:"text-red-400 hover:text-red-300 text-sm px-2",onClick:()=>d(g),children:"×"})]})},g)),!e&&r.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[r.jsx("input",{type:"text",className:"flex-1 text-neutral-300 bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-neutral-500 py-1 text-sm",placeholder:"https://instagram.com/...",onKeyDown:m=>{if(m.key==="Enter"){const g=m.target.value.trim();g&&(c(g),m.target.value="")}}}),r.jsx("button",{type:"button",className:"text-sm font-medium px-3 py-1.5 rounded-lg border border-neutral-700 text-neutral-400 hover:text-white hover:border-neutral-500 transition-colors",onClick:m=>{const g=m.target.previousElementSibling;g?.value.trim()&&(c(g.value.trim()),g.value="")},children:"+"})]})]})]});var r1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},pb=Ee.createContext&&Ee.createContext(r1),UE=["attr","size","title"];function qE(n,e){if(n==null)return{};var a=PE(n,e),i,l;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);for(l=0;l<c.length;l++)i=c[l],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(a[i]=n[i])}return a}function PE(n,e){if(n==null)return{};var a={};for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){if(e.indexOf(i)>=0)continue;a[i]=n[i]}return a}function lu(){return lu=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var a=arguments[e];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])}return n},lu.apply(this,arguments)}function gb(n,e){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),a.push.apply(a,i)}return a}function ou(n){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};
124e%2?gb(Object(a),!0).forEach(function(i){BE(n,i,a[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):gb(Object(a)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(a,i))})}return n}function BE(n,e,a){return e=FE(e),e in n?Object.defineProperty(n,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[e]=a,n}function FE(n){var e=HE(n,"string");return typeof e=="symbol"?e:e+""}function HE(n,e){if(typeof n!="object"||!n)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var i=a.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function l1(n){return n&&n.map((e,a)=>Ee.createElement(e.tag,ou({key:a},e.attr),l1(e.child)))}function sn(n){return e=>Ee.createElement(VE,lu({attr:ou({},n.attr)},e),l1(n.child))}function VE(n){var e=a=>{var{attr:i,size:l,title:c}=n,d=qE(n,UE),f=l||a.size||"1em",h;return a.className&&(h=a.className),n.className&&(h=(h?h+" ":"")+n.className),Ee.createElement("svg",lu({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,i,d,{className:h,style:ou(ou({color:n.color||a.color},a.style),n.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&Ee.createElement("title",null,c),n.children)};return pb!==void 0?Ee.createElement(pb.Consumer,null,a=>e(a)):e(r1)}function IE(n){return sn({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"},child:[]}]})(n)}function GE(n){return sn({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M451.46,244.71H576V172H451.46Zm0-173.89v72.67H576V70.82Zm0,275.06H576V273.2H451.46ZM0,447.09H124.54V374.42H0Zm150.47,0H275V374.42H150.47Zm150.52,0H425.53V374.42H301Zm150.47,0H576V374.42H451.46ZM301,345.88H425.53V273.2H301Zm-150.52,0H275V273.2H150.47Zm0-101.17H275V172H150.47Z"},child:[]}]})(n)}function QE(n){return sn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"},child:[]}]})(n)}function KE(n){return sn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(n)}function YE(n){return sn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(n)}function $E(n){return sn({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M111.4 256.3l5.8 65-5.8 68.3c-.3 2.5-2.2 4.4-4.4 4.4s-4.2-1.9-4.2-4.4l-5.6-68.3 5.6-65c0-2.2 1.9-4.2 4.2-4.2 2.2 0 4.1 2 4.4 4.2zm21.4-45.6c-2.8 0-4.7 2.2-5 5l-5 105.6 5 68.3c.3 2.8 2.2 5 5 5 2.5 0 4.7-2.2 4.7-5l5.8-68.3-5.8-105.6c0-2.8-2.2-5-4.7-5zm25.5-24.1c-3.1 0-5.3 2.2-5.6 5.3l-4.4 130 4.4 67.8c.3 3.1 2.5 5.3 5.6 5.3 2.8 0 5.3-2.2 5.3-5.3l5.3-67.8-5.3-130c0-3.1-2.5-5.3-5.3-5.3zM7.2 283.2c-1.4 0-2.2 1.1-2.5 2.5L0 321.3l4.7 35c.3 1.4 1.1 2.5 2.5 2.5s2.2-1.1 2.5-2.5l5.6-35-5.6-35.6c-.3-1.4-1.1-2.5-2.5-2.5zm23.6-21.9c-1.4 0-2.5 1.1-2.5 2.5l-6.4 57.5 6.4 56.1c0 1.7 1.1 2.8 2.5 2.8s2.5-1.1 2.8-2.5l7.2-56.4-7.2-57.5c-.3-1.4-1.4-2.5-2.8-2.5zm25.3-11.4c-1.7 0-3.1 1.4-3.3 3.3L47 321.3l5.8 65.8c.3 1.7 1.7 3.1 3.3 3.1 1.7 0 3.1-1.4 3.1-3.1l6.9-65.8-6.9-68.1c0-1.9-1.4-3.3-3.1-3.3zm25.3-2.2c-1.9 0-3.6 1.4-3.6 3.6l-5.8 70 5.8 67.8c0 2.2 1.7 3.6 3.6 3.6s3.6-1.4 3.9-3.6l6.4-67.8-6.4-70c-.3-2.2-2-3.6-3.9-3.6zm241.4-110.9c-1.1-.8-2.8-1.4-4.2-1.4-2.2 0-4.2.8-5.6 1.9-1.9 1.7-3.1 4.2-3.3 6.7v.8l-3.3 176.7 1.7 32.5 1.7 31.7c.3 4.7 4.2 8.6 8.9 8.6s8.6-3.9 8.6-8.6l3.9-64.2-3.9-177.5c-.4-3-2-5.8-4.5-7.2zm-26.7 15.3c-1.4-.8-2.8-1.4-4.4-1.4s-3.1.6-4.4 1.4c-2.2 1.4-3.6 3.9-3.6 6.7l-.3 1.7-2.8 160.8s0 .3 3.1 65.6v.3c0 1.7.6 3.3 1.7 4.7 1.7 1.9 3.9 3.1 6.4 3.1 2.2 0 4.2-1.1 5.6-2.5 1.7-1.4 2.5-3.3 2.5-5.6l.3-6.7 3.1-58.6-3.3-162.8c-.3-2.8-1.7-5.3-3.9-6.7zm-111.4 22.5c-3.1 0-5.8 2.8-5.8 6.1l-4.4 140.6 4.4 67.2c.3 3.3 2.8 5.8 5.8 5.8 3.3 0 5.8-2.5 6.1-5.8l5-67.2-5-140.6c-.2-3.3-2.7-6.1-6.1-6.1zm376.7 62.8c-10.8 0-21.1 2.2-30.6 6.1-6.4-70.8-65.8-126.4-138.3-126.4-17.8 0-35 3.3-50.3 9.4-6.1 2.2-7.8 4.4-7.8 9.2v249.7c0 5 3.9 8.6 8.6 9.2h218.3c43.3 0 78.6-35 78.6-78.3.1-43.6-35.2-78.9-78.5-78.9zm-296.7-60.3c-4.2 0-7.5 3.3-7.8 7.8l-3.3 136.7 3.3 65.6c.3 4.2 3.6 7.5 7.8 7.5 4.2 0 7.5-3.3 7.5-7.5l3.9-65.6-3.9-136.7c-.3-4.5-3.3-7.8-7.5-7.8zm-53.6-7.8c-3.3 0-6.4 3.1-6.4 6.7l-3.9 145.3 3.9 66.9c.3 3.6 3.1 6.4 6.4 6.4 3.6 0 6.4-2.8 6.7-6.4l4.4-66.9-4.4-145.3c-.3-3.6-3.1-6.7-6.7-6.7zm26.7 3.4c-3.9 0-6.9 3.1-6.9 6.9L227 321.3l3.9 66.4c.3 3.9 3.1 6.9 6.9 6.9s6.9-3.1 6.9-6.9l4.2-66.4-4.2-141.7c0-3.9-3-6.9-6.9-6.9z"},child:[]}]})(n)}function XE(n){return sn({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111.1 8 0 119.1 0 256s111.1 248 248 248 248-111.1 248-248S384.9 8 248 8zm100.7 364.9c-4.2 0-6.8-1.3-10.7-3.6-62.4-37.6-135-39.2-206.7-24.5-3.9 1-9 2.6-11.9 2.6-9.7 0-15.8-7.7-15.8-15.8 0-10.3 6.1-15.2 13.6-16.8 81.9-18.1 165.6-16.5 237 26.2 6.1 3.9 9.7 7.4 9.7 16.5s-7.1 15.4-15.2 15.4zm26.9-65.6c-5.2 0-8.7-2.3-12.3-4.2-62.5-37-155.7-51.9-238.6-29.4-4.8 1.3-7.4 2.6-11.9 2.6-10.7 0-19.4-8.7-19.4-19.4s5.2-17.8 15.5-20.7c27.8-7.8 56.2-13.6 97.8-13.6 64.9 0 127.6 16.1 177 45.5 8.1 4.8 11.3 11 11.3 19.7-.1 10.8-8.5 19.5-19.4 19.5zm31-76.2c-5.2 0-8.4-1.3-12.9-3.9-71.2-42.5-198.5-52.7-280.9-29.7-3.6 1-8.1 2.6-12.9 2.6-13.2 0-23.3-10.3-23.3-23.6 0-13.6 8.4-21.3 17.4-23.9 35.2-10.3 74.6-15.2 117.5-15.2 73 0 149.5 15.2 205.4 47.8 7.8 4.5 12.9 10.7 12.9 22.6 0 13.6-11 23.3-23.2 23.3z"},child:[]}]})(n)}function ZE(n){return sn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"},child:[]}]})(n)}function o1(n){return sn({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(n)}const Ws=352;function cu(n){if(n.includes("w.soundcloud.com/player"))return r.jsx("iframe",{src:n,title:"SoundCloud",width:"100%",height:Ws,frameBorder:"0",allow:"autoplay",loading:"lazy",className:"rounded-xl"});if(n.includes("youtube.com/embed/"))return r.jsx("iframe",{src:n,title:"YouTube",width:"100%",height:Ws,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy",className:"rounded-xl"});if(n.includes("open.spotify.com/embed/"))return r.jsx("iframe",{src:n,title:"Spotify",width:"100%",height:Ws,frameBorder:"0",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",className:"rounded-xl"});if(n.includes("bandcamp.com/EmbeddedPlayer"))return r.jsx("iframe",{src:n,title:"Bandcamp",width:"100%",height:Ws,frameBorder:"0",allow:"autoplay",loading:"lazy",className:"rounded-xl"});if(n.includes("deezer.com/plugins"))return r.jsx("iframe",{src:n,title:"Deezer",width:"100%",height:Ws,frameBorder:"0",allow:"autoplay; encrypted-media",loading:"lazy",className:"rounded-xl"});const e=n.match(/open\.spotify\.com\/(?:intl-\w+\/)?artist\/([a-zA-Z0-9]+)/);if(e)return r.jsx("iframe",{src:"https://open.spotify.com/embed/artist/"+e[1]+"?theme=0",title:"Spotify",width:"100%",height:Ws,frameBorder:"0",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",className:"rounded-xl"});const a=n.match(/(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9_-]+)/);if(a)return r.jsx("iframe",{src:"https://www.youtube.com/embed/"+a[1],title:"YouTube",width:"100%",height:Ws,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,loading:"lazy",className:"rounded-xl"});if(n.match(/youtube\.com\/(@[a-zA-Z0-9_-]+)/))return r.jsxs("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 bg-neutral-800 hover:bg-neutral-700 transition-colors rounded-xl p-4",children:[r.jsx(o1,{size:32,color:"#FF0000"}),r.jsx("span",{className:"text-white text-lg font-bold",children:"YouTube"})]});const l=n.match(/instagram\.com\/([a-zA-Z0-9_.]+)\/?$/);if(l)return r.jsx("div",{className:"rounded-xl overflow-hidden h-[352px] invert hue-rotate-180",children:r.jsx("iframe",{src:"https://www.instagram.com/"+l[1]+"/embed",title:"Instagram",width:"100%",height:"100%",frameBorder:"0",scrolling:"no",loading:"lazy"})});const c=n.match(/instagram\.com\/(p|reel)\/([a-zA-Z0-9_-]+)/);if(c)return r.jsx("div",{className:"rounded-xl overflow-hidden h-[352px] invert hue-rotate-180",children:r.jsx("iframe",{src:"https://www.instagram.com/"+c[1]+"/"+c[2]+"/embed",title:"Instagram",width:"100%",height:"100%",frameBorder:"0",scrolling:"no",loading:"lazy"})});if(n.includes("soundcloud.com/"))return r.jsx("iframe",{src:"https://w.soundcloud.com/player/?url="+encodeURIComponent(n)+"&color=%23333",title:"SoundCloud",width:"100%",height:Ws,frameBorder:"0",allow:"autoplay",loading:"lazy",className:"rounded-xl"});const d=n.match(/music\.apple\.com\/(\w+\/album\/[^?#]+)/);return d?r.jsx("iframe",{src:"https://embed.music.apple.com/"+d[1],title:"Ap
124ple Music",width:"100%",height:Ws,frameBorder:"0",allow:"autoplay; encrypted-media",loading:"lazy",className:"rounded-xl"}):r.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 bg-neutral-800 hover:bg-neutral-700 transition-colors rounded-xl p-4",children:r.jsx("span",{className:"text-white text-lg font-bold",children:"Ecouter"})})}const c1=({embedUrls:n})=>!n||n.length===0?null:r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-8 md:p-10",children:[r.jsx("h2",{className:"font-mango text-white text-6xl md:text-7xl mb-6",children:"Ecouter"}),r.jsx("hr",{className:"border-neutral-700 mb-6"}),r.jsx("div",{className:"flex flex-col gap-6",children:n.map((e,a)=>r.jsx("div",{children:cu(e)},a))})]});function u1(n){S.useEffect(()=>{if(!n)return;const e="shotgun-widget-script";if(document.getElementById(e))return;const a=document.createElement("script");return a.id=e,a.src="https://shotgun.live/widget.js",a.async=!0,document.body.appendChild(a),()=>{const i=document.getElementById(e);i&&i.remove()}},[n])}function JE(n){return n+"?embedded=1&ui=dark"}const d1=({ticketUrl:n,iframeClassName:e="w-full border-0 rounded-lg h-[800px] max-h-[calc(100vh-200px)]",iframeStyle:a,fallbackTextSize:i="text-sm"})=>{const{t:l}=Re();return r.jsxs(r.Fragment,{children:[r.jsx("iframe",{src:JE(n),title:l("eventDetail.ticketing")+" Shotgun",allow:"payment",className:e,style:a}),r.jsxs("p",{className:"text-neutral-500 "+i+" mt-4",children:[l("eventDetail.ticketFallback")," ",r.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-white underline hover:text-neutral-300",children:l("eventDetail.openOnShotgun")})]})]})},WE=({ticketUrl:n,soldOut:e,eventType:a})=>{const{t:i}=Re(),l=a==="shotgun";return u1(l&&!!n),n?r.jsx("section",{id:"event-detail-billetterie",className:"bg-black py-16 px-8 md:px-16",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"font-mango text-white text-6xl md:text-7xl mb-8",children:i("eventDetail.ticketing")}),e?r.jsx("p",{className:"text-neutral-400 text-xl italic",children:i("eventDetail.allTicketsSold")}):l?r.jsx(d1,{ticketUrl:n}):r.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-block bg-white text-black px-8 py-4 text-lg font-bold hover:bg-gray-200 transition-colors rounded-full",children:i("eventDetail.reserveTicket")})]})}):r.jsx("section",{id:"event-detail-billetterie",className:"bg-black py-16 px-8 md:px-16",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsx("h2",{className:"font-mango text-white text-6xl md:text-7xl mb-8",children:i("eventDetail.ticketing")}),r.jsx("p",{className:"text-neutral-400 text-lg",children:i("eventDetail.ticketingNotAvailable")})]})})},e5=Cm(n=>({activeFilter:"all",editingEvent:null,isCreateModalOpen:!1,isCategoryModalOpen:!1,selectedEventIds:new Set,notification:null,setActiveFilter:e=>n({activeFilter:e}),setEditingEvent:e=>n({editingEvent:e}),setIsCreateModalOpen:e=>n({isCreateModalOpen:e}),setIsCategoryModalOpen:e=>n({isCategoryModalOpen:e}),setSelectedEventIds:e=>n({selectedEventIds:e}),notify:(e,a)=>n({notification:{message:e,notificationType:a}}),dismissNotification:()=>n({notification:null}),toggleSelectEvent:e=>n(a=>{const i=new Set(a.selectedEventIds);return i.has(e)?i.delete(e):i.add(e),{selectedEventIds:i}})}));function t5(n,e){if(e==="all")return n.filter(i=>!Fa(i.date));if(e==="past")return n.filter(i=>Fa(i.date));const a=Number(e);return n.filter(i=>i.categoryId===a&&!Fa(i.date))}function ku(){const{data:n=[]}=Em(),{data:e=[]}=FC(),{activeFilter:a,setActiveFilter:i,editingEvent:l,setEditingEvent:c,isCreateModalOpen:d,setIsCreateModalOpen:f,isCategoryModalOpen:h,setIsCategoryModalOpen:m,selectedEventIds:g,setSelectedEventIds:y,notification:b,notify:v,dismissNotification:N,toggleSelectEvent:w}=e5(),_=QC(),k=KC(),E=YC(),C=$C(),A=XC(),M=ZC(),H=WC(),z=e_(),P=t_(),I=n_(),G=s_(),ne=a_(),L=i_();function $(re){l&&l.id===re.id&&c(re)}const se=re=>C.mutate(re,{onSuccess:me=>{$(me),v("Etat avance","success")},onError:()=>v("Erreur avancement etat","error")}),oe=re=>A.mutate(re,{onSuccess:me=>{$(me),v("Etat recule","success")},onError:()=>v("Erreur retour etat precedent","error")}),R=re=>M.mutate(re,{onSuccess:()=>v("Evenement publie","success"),onError:()=>v("Erreur publication","error")}),U=(re,me)=>k.mutate({id:re,fields:{categoryId:me}},{onSuccess:Te=>{$(Te),v("Categorie mise a jour","success")},onError:()=>v("Erreur assignation categorie","error")}),W=(re,me)=>k.mutate({id:re,fields:me},{onSuccess:Te=>{$(Te),v("Evenement mis a jour","success")},onError:()=>v("Erreur mise a jour","error")}),he=re=>E.mutate(re,{onSuccess:()=>
124{if(l&&l.id===re&&c(null),g.has(re)){const me=new Set(g);me.delete(re),y(me)}v("Evenement supprime","success")},onError:()=>v("Erreur suppression","error")}),fe=(re,me)=>H.mutate({id:re,file:me},{onSuccess:Te=>{$(Te),v("Image uploadee","success")},onError:()=>v("Erreur upload image","error")}),O=(re,me)=>z.mutate({id:re,file:me},{onSuccess:Te=>{$(Te),v("Image mobile uploadee","success")},onError:()=>v("Erreur upload image mobile","error")}),B=(re,me,Te)=>P.mutate({eventId:re,artistIndex:me,file:Te},{onSuccess:mt=>{$(mt),v("Avatar uploade","success")},onError:()=>v("Erreur upload avatar","error")});function ie(re,me){_.mutate({event:re,imageFile:me},{onSuccess:()=>{f(!1),v("Evenement cree","success")},onError:()=>v("Erreur creation","error")})}async function le(re){await G.mutateAsync(re),v("Categorie creee","success")}async function ve(re,me){await ne.mutateAsync({id:re,fields:me}),v("Categorie mise a jour","success")}async function Ce(re){await L.mutateAsync(re),v("Categorie supprimee","success")}function Oe(){I.mutate(void 0,{onSuccess:()=>v("Sync Shotgun terminee","success"),onError:()=>v("Erreur sync Shotgun","error")})}function ut(){const re=n.filter(Te=>Te.status==="brouillon").map(Te=>Te.id),me=re.every(Te=>g.has(Te));y(me?new Set:new Set(re))}function $e(){const re=Array.from(g);Promise.all(re.map(me=>M.mutateAsync(me))).then(()=>{y(new Set),v(`${re.length} evenement(s) publie(s)`,"success")}).catch(()=>v("Erreur publication batch","error"))}const He=S.useMemo(()=>t5(n,a),[n,a]),xe=S.useMemo(()=>He.filter(re=>re.status==="brouillon"),[He]),We=S.useMemo(()=>He.filter(re=>re.status!=="brouillon"),[He]),Xe=xe.length>0&&xe.every(re=>g.has(re.id));return{events:n,categories:e,activeFilter:a,setActiveFilter:i,editingEvent:l,setEditingEvent:c,isCreateModalOpen:d,isCategoryModalOpen:h,selectedEventIds:g,setSelectedEventIds:y,notification:b,advanceEventState:se,revertEventState:oe,publishEvent:R,assignEventCategory:U,updateEvent:W,deleteEvent:he,uploadEventImage:fe,uploadMobileImage:O,uploadArtistAvatar:B,createEvent:ie,createCategory:le,updateCategory:ve,deleteCategory:Ce,syncShotgunEvents:Oe,toggleSelectEvent:w,toggleSelectAllBrouillons:ut,publishSelectedEvents:$e,dismissNotification:N,filteredEvents:He,brouillonEvents:xe,publishedEvents:We,allBrouillonsSelected:Xe,headerActions:[{label:"Sync Shotgun",onTrigger:Oe,variant:"secondary"},{label:"Categories",onTrigger:()=>m(!0),variant:"secondary"},{label:"Creer un evenement",onTrigger:()=>f(!0),variant:"primary"}],closeCreateEventModal:()=>f(!1),closeCategoryModal:()=>m(!1)}}const n5="Le Makeda, 103 rue Ferrari, 13005 Marseille",s5=`Métro 1 – station Baille ou La Timone
125Bus : lignes 54, 72, 518
126Parking à proximité (Baille / Timone)
127Accès PMR`,a5=()=>{const{editingEvent:n,categories:e,setEditingEvent:a,updateEvent:i,assignEventCategory:l,uploadEventImage:c,uploadMobileImage:d,uploadArtistAvatar:f,deleteEvent:h}=ku(),m=n,g=Zv(m),y=g===gs.past,v=!(g.canEdit&&!y),N=(gs[m.type]??gs.manuel).canDelete;function w(){window.confirm(`Supprimer definitivement "${m.title}" ?`)&&h(m.id)}const[_,k]=S.useState(""),[E,C]=S.useState(""),[A,M]=S.useState(""),[H,z]=S.useState(""),[P,I]=S.useState(""),[G,ne]=S.useState(""),[L,$]=S.useState(""),[se,oe]=S.useState(""),[R,U]=S.useState(""),[W,he]=S.useState(""),[fe,O]=S.useState(""),[B,ie]=S.useState([]),{data:le}=HC(m.id),ve=le?.genres??[],Ce=le?[le.venueName,le.city].filter(Boolean).join(" — "):"",Oe=S.useRef(null);S.useEffect(()=>{m.id!==Oe.current&&(Oe.current=m.id,k(m.title),C(m.description??""),M(m.date.slice(0,10)),z(m.date.length>10?m.date.slice(11,16):""),I(m.endTime?m.endTime.slice(11,16):""),ne(m.lieu??""),$(m.partenaire??""),oe(m.infosPratiques?.doorsOpen??""),U(m.infosPratiques?.address||n5),he(m.infosPratiques?.access||s5),O(m.ticketUrl??""))},[m]),S.useEffect(()=>{if(!le){ie((m.artists??[]).map(re=>({...re})));return}if((!m.artists||m.artists.length===0)&&le.artists?.length>0){const re=le.artists.map(me=>({name:me.name,avatar:me.avatar??"",bio:me.bio??"",embedUrls:Array.isArray(me.embedUrls)?me.embedUrls:[],socialLinks:Array.isArray(me.socialLinks)?me.socialLinks:[]}));ie(re)}else ie((m.artists??[]).map(re=>({...re})))},[le,m.id]),S.useEffect(()=>{!m.artists||m.artists.length===0||ie(re=>{let me=!1;const Te=re.map((mt,fn)=>{const _n=m.artists?.[fn]?.avatar??"";return _n&&_n!==mt.avatar?(me=!0,{...mt,avatar:_n}):mt});return me?Te:re})},[m.artists]);const ut=m.type==="shotgun"?Ce:G||Ce;function $e(){const re=H?A+"T"+H:A;i(m.id,{title:_,description:E||void 0,date:re,endTime:P?A+"T"+P:void 0,artists:B.length>0?B:void 0,lieu:G||void 0,partenaire:L||void 0,infosPratiques:{doorsOpen:se,address:R,access:W},...m.type!=="shotgun"&&{ticketUrl:fe.trim()?fe.trim():null}})}function He(re,me,Te){ie(mt=>mt.map((fn,_n)=>_n!==re?fn:me==="embedUrls"?{...fn,embedUrls:Te.trim()?[Te.trim()]:[]}:{...fn,[me]:Te}))}function xe(re,me){ie(Te=>Te.map((mt,fn)=>fn===re?{...mt,socialLinks:[...mt.socialLinks,me]}:mt))}function We(re,me){ie(Te=>Te.map((mt,fn)=>fn===re?{...mt,socialLinks:mt.socialLinks.filter((_n,q)=>q!==me)}:mt))}function Xe(re){ie(me=>me.filter((Te,mt)=>mt!==re))}function Ve(re){ie(me=>[...me,{name:re,avatar:"",bio:"",embedUrls:[],socialLinks:[]}])}return r.jsxs("div",{className:"min-h-screen bg-black",children:[r.jsx("div",{className:"bg-gray-950 border-b border-gray-800 px-8 md:px-16 py-6",children:r.jsxs("div",{className:"max-w-7xl mx-auto flex flex-wrap items-center gap-x-6 gap-y-3",children:[r.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[r.jsx("button",{type:"button",className:"text-base text-gray-400 hover:text-white transition-colors shrink-0",onClick:()=>a(null),children:"← Evenements"}),r.jsx("span",{className:"text-base text-gray-600 shrink-0",children:"/"}),r.jsx("span",{className:"text-base font-medium text-white truncate",children:m.title})]}),!v&&r.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[r.jsx("div",{className:"flex flex-wrap items-center gap-2",children:e.map(re=>r.jsx("button",{type:"button",className:"text-sm font-medium px-4 py-2 rounded-full border transition-colors "+(m.categoryId===re.id?"text-white border-transparent":"border-gray-700 text-gray-500 hover:border-gray-500"),style:m.categoryId===re.id?{backgroundColor:re.color}:void 0,onClick:()=>l(m.id,m.categoryId===re.id?null:re.id),children:re.name},re.id))}),N&&r.jsx("button",{type:"button",className:"text-base font-medium py-2.5 px-6 rounded-lg bg-red-900/40 text-red-300 hover:bg-red-900/70 transition-colors",onClick:w,children:"Supprimer"}),r.jsx("button",{type:"button",className:"text-base font-medium py-2.5 px-8 rounded-lg bg-white text-gray-950 hover:bg-gray-200 transition-colors",onClick:$e,children:"Sauvegarder"})]})]})}),r.jsx(__,{title:_,imageUrl:m.imageUrl,date:A,startTime:H,endTime:P,lieu:ut,genres:ve,readOnly:v,onChangeTitle:k,onChangeDate:M,onChangeStartTime:z,onChangeEndTime:I,onChangeLieu:m.type!=="shotgun"&&!v?ne:void 0,onSelectImage:re=>c(m.id,re),onSelectMobileImage:re=>d(m.id,re),mobileImageUrl:m.mobileImageUrl}),r.jsx("section",{className:"bg-black py-16 px-8 md:px-16",children:r.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-10 items-start",children:[r.jsx(E_,{description:E,readOnly:v,onChangeDescription:C}
127),r.jsx(LE,{doorsOpen:se,address:R,access:W,readOnly:v,onChangeDoorsOpen:oe,onChangeAddress:U,onChangeAccess:he}),m.type!=="shotgun"&&!v?r.jsx("div",{className:"lg:col-span-2",children:r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-6 md:p-8",children:[r.jsxs("label",{className:"block text-sm font-medium text-gray-300 mb-3",children:["Lien billetterie externe ",r.jsx("span",{className:"text-gray-600",children:"(optionnel)"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("input",{type:"url",value:fe,onChange:re=>O(re.target.value),placeholder:"https://...",className:"flex-1 text-white bg-transparent border-b border-neutral-700 focus:outline-none focus:border-neutral-500 py-2"}),fe&&r.jsx("button",{type:"button",onClick:()=>O(""),className:"shrink-0 text-sm font-medium px-4 py-2 rounded-lg bg-red-900/40 text-red-300 hover:bg-red-900/70 transition-colors",children:"Supprimer"})]}),r.jsx("p",{className:"text-xs text-gray-500 mt-3",children:"Enregistrez pour appliquer. Laisser vide (ou « Supprimer ») retire le lien de billetterie."})]})}):m.ticketUrl?r.jsx("div",{className:"lg:col-span-2",children:r.jsx(WE,{ticketUrl:m.ticketUrl,soldOut:m.complete,eventType:m.type})}):null,B.map((re,me)=>r.jsxs(S.Fragment,{children:[r.jsx(zE,{artist:re,readOnly:v,onChangeArtistName:Te=>He(me,"name",Te),onChangeArtistBio:Te=>He(me,"bio",Te),onChangeArtistEmbed:Te=>He(me,"embedUrls",Te),onAddArtistSocialLink:Te=>xe(me,Te),onRemoveArtistSocialLink:Te=>We(me,Te),onRemoveArtist:()=>Xe(me),onUploadArtistAvatar:Te=>f(m.id,me,Te)}),re.embedUrls.length>0&&re.embedUrls[0]?r.jsx(c1,{embedUrls:[re.embedUrls[0]]}):r.jsx("div",{})]},me)),!v&&r.jsx(i5,{onAddArtist:Ve})]})})]})};function i5({onAddArtist:n}){const[e,a]=S.useState("");function i(){e.trim()&&(n(e.trim()),a(""))}return r.jsxs("div",{className:"bg-neutral-900 border-2 border-dashed border-neutral-700 rounded-lg p-8 md:p-10 flex flex-col items-center justify-center gap-4",children:[r.jsx("p",{className:"text-neutral-500 text-sm",children:"Ajouter un artiste"}),r.jsxs("div",{className:"flex items-center gap-2 w-full max-w-sm",children:[r.jsx("input",{type:"text",value:e,onChange:l=>a(l.target.value),onKeyDown:l=>{l.key==="Enter"&&i()},placeholder:"Nom de l'artiste",className:"flex-1 text-white bg-transparent border-b border-neutral-700 focus:outline-none focus:border-neutral-500 py-2 text-center"}),r.jsx("button",{type:"button",className:"text-sm font-medium px-4 py-2 rounded-lg border border-neutral-700 text-neutral-400 hover:text-white hover:border-neutral-500 transition-colors",onClick:i,children:"+"})]})]})}const ds=({title:n,subtitle:e,headerActions:a})=>r.jsxs("div",{className:"flex w-full items-center justify-between gap-4 mb-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:n}),r.jsx("p",{className:"text-sm text-gray-500 mt-1",children:e})]}),a&&a.length>0&&r.jsx("div",{className:"flex items-center gap-3",children:a.map(i=>r.jsx("button",{type:"button",className:"text-sm font-medium px-4 py-2 rounded-lg transition-colors "+(i.variant==="primary"?"bg-white text-gray-950 hover:bg-gray-200":"bg-gray-800 text-gray-300 hover:bg-gray-700"),onClick:i.onTrigger,children:i.label},i.label))})]}),r5=({activeFilter:n,onSelectFilter:e,categories:a})=>r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("label",{className:"text-sm text-gray-500",children:"Filtrer :"}),r.jsxs("select",{value:n,onChange:i=>e(i.target.value),className:"px-4 py-2 rounded-full text-sm font-medium bg-gray-900 border border-gray-700 text-white focus:outline-none focus:ring-2 focus:ring-white/20",children:[r.jsx("option",{value:"all",children:"Tous"}),r.jsx("option",{value:"past",children:"Passes"}),a.map(i=>r.jsx("option",{value:String(i.id),children:i.name},i.id))]})]}),l5={brouillon:{label:"Brouillon",color:"#636E72",bg:"rgba(99,110,114,0.12)"},publie:{label:"Publie",color:"#00B894",bg:"rgba(0,184,148,0.12)"},inscriptions_ouvertes:{label:"Inscriptions ouvertes",color:"#E17055",bg:"rgba(225,112,85,0.12)"},vote_en_cours:{label:"Vote en cours",color:"#6C5CE7",bg:"rgba(108,92,231,0.12)"},termine:{label:"Termine",color:"#2D3436",bg:"rgba(45,52,54,0.1)"}},o5=["brouillon","publie","termine"],c5={};function Tu(n){return c5[n]??o5}function u5(n,e){const a=Tu(n),i=a.indexOf(e);return i===-1||i>=a.length-1?null:a[i+1]}function d5(n,e){const a=Tu(n),i=a.indexOf(e);return i<=0?null:a[i-1]}function f1(n,e){return n.id in e?e[n.id].ticketStatus:n.complete?"soldOut":"available"}function h1(n,e){return n.id in e?e[n.id].ticketUrl:n.ticketUrl}const fo="UTC";function ho(n,e){return new Date(n).toLocaleDateString(e==="en"?"en-US":"fr-FR",{day:"numeric",month:"long",year:"numeric",timeZone:fo})}function f5(n,e){return new Date(n).toLocaleDateString(e==="en"?"en-US":"fr-FR",{weekday:"long",day:"numeric",month:"long",year:"numeric",timeZone:fo})}function xb(n){return new Date(n).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit",hourCycle:"h23",timeZone:fo})}function Gh(n){return new Date(n).toLocaleDateString("fr-FR",{day:"numeric",month:"short",year:"numeric",timeZone:fo})}const h5=["DIM","LUN","MAR","MER","JEU","VEN","SAM"],m5=["SUN","MON","TUE","WED","THU","FRI","SAT"];function p5(n){const e=new Date(n),a=new Intl.DateTimeFormat("en-US",{timeZone:fo,weekday:"short",day:"2-digit",month:"2-digit"}).formatToParts(e),i=c=>a.find(d=>d.type===c)?.value??"";return{weekdayIndex:{Sun:0,Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6}[i("weekday")]??0,dd:i("day"),mm:i("month")}}function m1(n,e="fr"){const{weekdayIndex:a,dd:i,mm:l}=p5(n);return(e.startsWith("en")?m5:h5)[a]+" "+i+"."+l}const yb=({event:n,isSelectable:e,isSelected:a,onToggleSelect:i})=>{const{categories:l,setEditingEvent:c,advanceEventState:d,revertEventState:f,publishEvent:h,deleteEvent:m}=ku(),g=gs[n.type]??gs.manuel,y=g.canDelete,b=()=>{window.confirm(`Supprimer definitivement "${n.title}" ?`)&&m(n.id)},v=Zv(n),N=l5[n.status],w=n.categoryId?l.find(C=>C.id===n.categoryId):null,_=v.canEdit?u5(n.type,n.status)!==null:!1,k=v.canEdit?d5(n.type,n.status)!==null:!1,E=v.canPublish&&n.status===Tu(n.type)[0];return r.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 hover:bg-white/5 transition-colors cursor-pointer",onClick:()=>c(n),children:[e&&r.jsx("input",{type:"checkbox",checked:!!a,className:"w-4 h-4 shrink-0 accent-white cursor-pointer",onClick:C=>C.stopPropagation(),onChange:()=>i?.(n.id)}),n.imageUrl?r.jsx("img",{src:ia(n.imageUrl),alt:"",className:"w-10 h-10 rounded object-cover shrink-0"}):r.jsx("span",{className:"w-10 h-10 rounded shrink-0 flex items-center justify-center text-xs font-bold text-white/30",style:{backgroundColor:g.color+"22"},children:r.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:v===gs.past?v.color:g.color}})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm font-semibold truncate "+(v===gs.past?"text-gray-600":"text-white"),children:n.title}),r.jsx("p",{className:"text-xs text-gray-500",children:Gh(n.date)})]}),v===gs.past&&r.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full shrink-0",style:{backgroundColor:v.bg,color:v.color},children:v.label}),r.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full shrink-0",style:{backgroundColor:g.bg,color:g.color},children:g.label}),N&&r.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full shrink-0",style:{backgroundColor:N.bg,color:N.color},children:N.label}),w?r.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full shrink-0 text-white",style:{backgroundColor:w.color},children:w.name}):r.jsx("span",{className:"text-xs text-gray-600 shrink-0",children:"Sans categorie"}),r.jsxs("div",{className:"flex gap-1.5 shrink-0",onClick:C=>C.stopPropagation(),children:[E&&r.jsx("button",{type:"button",className:"text-xs font-medium px-2.5 py-1 rounded-lg text-white transition-colors",style:{backgroundColor:v.color},onClick:()=>h(n.id),children:"Publier"}),k&&r.jsx("button",{type:"button",className:"text-xs font-medium px-2.5 py-1 rounded-lg bg-gray-700 text-gray-300 hover:bg-gray-600 transition-colors",onClick:()=>f(n.id),children:"Reculer"}),_&&r.jsx("button",{type:"button",className:"text-xs font-medium px-2.5 py-1 rounded-lg bg-white text-gray-950 hover:bg-gray-200 transition-colors",onClick:()=>
127d(n.id),children:"Avancer"}),y&&r.jsx("button",{type:"button",className:"text-xs font-medium px-2.5 py-1 rounded-lg bg-red-900/40 text-red-300 hover:bg-red-900/70 transition-colors",onClick:b,children:"Supprimer"})]})]})},Fr=({open:n,onCloseModal:e,maxWidth:a="max-w-lg",className:i="",backdropClassName:l="bg-black/70",panelClassName:c="bg-neutral-950 border border-neutral-800 rounded-2xl",showCloseButton:d=!0,children:f})=>n?r.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center",children:[r.jsx("div",{className:"absolute inset-0 "+l,onClick:e}),r.jsxs("div",{className:"relative w-full "+a+" mx-4 max-h-[90vh] overflow-y-auto "+c+" "+i,children:[d&&r.jsx("button",{type:"button",onClick:e,className:"absolute top-4 right-4 z-10 text-neutral-500 hover:text-white transition-colors",children:r.jsx(ra,{size:20})}),f]})]}):null,g5="manuel",x5="Le Makeda, 103 rue Ferrari, 13005 Marseille",y5=`Métro 1 – station Baille ou La Timone
128Bus : lignes 54, 72, 518
129Parking à proximité (Baille / Timone)
130Accès PMR`,bb=3,b5=({categories:n,onCreateEvent:e,onCloseModal:a})=>{const i=g5,[l,c]=S.useState(""),[d,f]=S.useState(""),[h,m]=S.useState(""),[g,y]=S.useState(""),[b,v]=S.useState(n[0]?.id??0),[N,w]=S.useState(""),[_,k]=S.useState(""),[E,C]=S.useState(""),[A,M]=S.useState(x5),[H,z]=S.useState(y5),[P,I]=S.useState(""),[G,ne]=S.useState([]),[L,$]=S.useState(""),[se,oe]=S.useState(""),[R]=S.useState([]),[U,W]=S.useState(null),[he,fe]=S.useState(null),O=S.useRef(null),[B,ie]=S.useState(1);function le(xe){const We=xe.target.files?.[0];We&&(W(We),fe(URL.createObjectURL(We)))}function ve(){L.trim()&&(ne([...G,{name:L.trim(),avatar:"",bio:"",embedUrls:[],socialLinks:[]}]),$(""))}function Ce(xe){ne(G.filter((We,Xe)=>Xe!==xe))}function Oe(xe,We){ne(G.map((Xe,Ve)=>
130Ve===xe?{...Xe,bio:We}:Xe))}function ut(){const xe=Tu(i),We={doorsOpen:E,address:A,access:H},Xe=h?d+"T"+h:d,Ve={title:l,type:i,date:Xe,categoryId:b||null,status:xe[0],complete:!1,onTop:!1,infosPratiques:We};g.trim()&&(Ve.endTime=d+"T"+g),N.trim()&&(Ve.lieu=N),_.trim()&&(Ve.partenaire=_),P.trim()&&(Ve.ticketUrl=P),G.length>0&&(Ve.artists=G),se.trim()&&(Ve.description=se),R.length>0&&(Ve.embedUrls=R),e(Ve,U??void 0)}const $e=l.trim()!==""&&d!=="",He="w-full px-3 py-2 bg-gray-900 border border-gray-700 rounded-lg text-sm text-white placeholder-gray-600 focus:outline-none focus:ring-2 focus:ring-white/20";return r.jsxs(Fr,{open:!0,onCloseModal:a,maxWidth:"max-w-md",backdropClassName:"bg-black/60 backdrop-blur-sm",panelClassName:"bg-gray-950 border border-gray-800 rounded-2xl shadow-2xl",showCloseButton:!1,className:"p-6 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h2",{className:"text-lg font-bold text-white",children:"Nouvel evenement"}),r.jsxs("span",{className:"text-xs text-gray-600",children:[B,"/",bb]})]}),r.jsx("button",{type:"button",className:"text-sm text-gray-500 hover:text-gray-300 transition-colors",onClick:a,children:"Fermer"})]}),r.jsx("div",{className:"flex gap-1.5",children:Array.from({length:bb},(xe,We)=>r.jsx("div",{className:"h-1 flex-1 rounded-full "+(B>We?"bg-white":"bg-gray-800")},We))}),B===1&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Titre"}),r.jsx("input",{type:"text",value:l,onChange:xe=>c(xe.target.value),placeholder:"Nom de l'evenement",className:He})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Date"}),r.jsx("input",{type:"date",value:d,onChange:xe=>f(xe.target.value),className:He})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Heure de debut"}),r.jsx("input",{type:"time",value:h,onChange:xe=>m(xe.target.value),className:He})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Heure de fin"}),r.jsx("input",{type:"time",value:g,onChange:xe=>y(xe.target.value),className:He})]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Categorie"}),r.jsx("select",{value:b,onChange:xe=>v(Number(xe.target.value)),className:He,children:n.map(xe=>r.jsx("option",{value:xe.id,children:xe.name},xe.id))})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("label",{className:"text-sm font-medium text-gray-400",children:["Lieu externe ",r.jsx("span",{className:"text-gray-600",children:"(optionnel)"})]}),r.jsx("input",{type:"text",value:N,onChange:xe=>w(xe.target.value),placeholder:"Nom du lieu",className:He})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("label",{className:"text-sm font-medium text-gray-400",children:["Partenaire ",r.jsx("span",{className:"text-gray-600",children:"(optionnel)"})]}),r.jsx("input",{type:"text",value:_,onChange:xe=>k(xe.target.value),placeholder:"Nom du partenaire",className:He})]}),r.jsx("div",{className:"pt-2",children:r.jsx("button",{type:"button",disabled:!$e,className:"w-full text-sm font-medium py-2.5 px-4 rounded-lg transition-colors "+($e?"bg-white text-gray-950 hover:bg-gray-200":"bg-gray-800 text-gray-600 cursor-not-allowed"),onClick:()=>ie(2),children:"Suivant"})})]}),B===2&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 px-4 py-3",children:[r.jsx("p",{className:"text-sm text-white font-medium",children:l}),r.jsxs("p",{className:"text-xs text-gray-500",children:[d,N?" — "+N:""]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Adresse"}),r.jsx("input",{type:"text",value:A,onChange:xe=>M(xe.target.value),placeholder:"Adresse du lieu",className:He})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Acces"}),r.jsx("textarea",{value:H,onChange:xe=>z(xe.target.value),rows:4,placeholder:"Indications d'acces",className:He+" resize-none"})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("label",{className:"text-sm font-medium text-gray-400",children:["Lien billetterie ",r.jsx("span",{className:"text-gray-600",children:"(optionnel)"})]}),r.jsx("input",{type:"url",value:P,onChange:xe=>I(xe.target.value),placeholder:"https://...",className:He})]}),r.jsxs("div",{className:"flex gap-3 pt-2",children:[r.jsx("button",{type:"button",className:"flex-1 text-sm font-medium py-2.5 px-4 roun
130ded-lg bg-white text-gray-950 hover:bg-gray-200 transition-colors",onClick:()=>ie(3),children:"Suivant"}),r.jsx("button",{type:"button",className:"flex-1 text-sm font-medium py-2.5 px-4 rounded-lg border border-gray-700 text-gray-400 hover:text-white hover:border-gray-500 transition-colors",onClick:()=>ie(1),children:"Retour"})]})]}),B===3&&r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 px-4 py-3",children:[r.jsx("p",{className:"text-sm text-white font-medium",children:l}),r.jsxs("p",{className:"text-xs text-gray-500",children:[d,G.length>0?" — "+G.map(xe=>xe.name).join(", "):""]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Description de l'evenement"}),r.jsx("textarea",{value:se,onChange:xe=>oe(xe.target.value),rows:3,placeholder:"Description generale de l'evenement",className:He+" resize-none"})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Artiste(s)"}),G.map((xe,We)=>r.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-3 space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-white font-medium",children:xe.name}),r.jsx("button",{type:"button",className:"text-xs text-red-400 hover:text-red-300 px-2 py-1",onClick:()=>Ce(We),children:"Retirer"})]}),r.jsx("textarea",{value:xe.bio,onChange:Xe=>Oe(We,Xe.target.value),rows:2,placeholder:"Biographie de "+xe.name,className:He+" resize-none"}),r.jsx("p",{className:"text-xs text-gray-500",children:"Lien embed (Ecouter)"}),r.jsx("input",{type:"text",value:xe.embedUrls[0]??"",onChange:Xe=>ne(G.map((Ve,re)=>re===We?{...Ve,embedUrls:Xe.target.value.trim()?[Xe.target.value.trim()]:[]}:Ve)),placeholder:"URL Spotify, YouTube, SoundCloud...",className:"text-xs "+He}),r.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"Liens media"}),xe.socialLinks.map((Xe,Ve)=>r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"flex-1 text-xs text-gray-300 bg-gray-800 border border-gray-700 rounded px-2 py-1 truncate",children:Xe}),r.jsx("button",{type:"button",className:"text-xs text-red-400 hover:text-red-300 px-1",onClick:()=>ne(G.map((re,me)=>me===We?{...re,socialLinks:re.socialLinks.filter((Te,mt)=>mt!==Ve)}:re)),children:"x"})]},Ve)),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("input",{type:"text",placeholder:"https://instagram.com/...",className:"flex-1 text-xs "+He,onKeyDown:Xe=>{if(Xe.key==="Enter"&&Xe.target.value.trim()){Xe.preventDefault();const Ve=Xe.target.value.trim();ne(G.map((re,me)=>me===We?{...re,socialLinks:[...re.socialLinks,Ve]}:re)),Xe.target.value=""}}}),r.jsx("button",{type:"button",className:"text-xs font-medium px-2 py-1 rounded border border-gray-700 text-gray-400 hover:text-white hover:border-gray-500 transition-colors",onClick:Xe=>{const Ve=Xe.target.previousElementSibling;Ve?.value.trim()&&(ne(G.map((re,me)=>me===We?{...re,socialLinks:[...re.socialLinks,Ve.value.trim()]}:re)),Ve.value="")},children:"+"})]})]},We)),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"text",value:L,onChange:xe=>$(xe.target.value),placeholder:"Nom de l'artiste",className:"flex-1 "+He,onKeyDown:xe=>{xe.key==="Enter"&&(xe.preventDefault(),ve())}}),r.jsx("button",{type:"button",className:"text-xs font-medium px-3 py-2 rounded-lg border border-gray-700 text-gray-400 hover:text-white hover:border-gray-500 transition-colors",onClick:ve,children:"+"})]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-sm font-medium text-gray-400",children:"Image"}),r.jsx("input",{ref:O,type:"file",accept:"image/*",className:"hidden",onChange:le}),he?r.jsxs("div",{className:"relative",children:[r.jsx("img",{src:he,alt:"Preview",className:"w-full h-32 object-cover rounded-lg"}),r.jsx("button",{type:"button",className:"absolute top-2 right-2 text-xs bg-black/70 text-white px-2 py-1 rounded",onClick:()=>{W(null),fe(null)},children:"Retirer"})]}):r.jsx("button",{type:"button",className:"w-full px-3 py-3 bg-gray-900 border border-gray-700 border-dashed rounded-lg text-sm text-gray-500 hover:text-gray-300 hover:border-gray-500 transition-colors",onClick:()=>O.current?.click(),children:"Choisir une image"})]}),r.jsxs("div",{className:"flex gap-3 pt-2",children:[r.jsx("button",{type:"button",className:"flex-1 text-sm font-medium py-2.5 px-4 roun
130ded-lg bg-white text-gray-950 hover:bg-gray-200 transition-colors",onClick:ut,children:"Creer"}),r.jsx("button",{type:"button",className:"flex-1 text-sm font-medium py-2.5 px-4 rounded-lg border border-gray-700 text-gray-400 hover:text-white hover:border-gray-500 transition-colors",onClick:()=>ie(2),children:"Retour"})]})]})]})},v5=({categories:n,onCloseModal:e,onCreateCategory:a,onUpdateCategory:i,onDeleteCategory:l})=>{const[c,d]=S.useState(null),[f,h]=S.useState(""),[m,g]=S.useState(""),[y,b]=S.useState(!1),[v,N]=S.useState(""),[w,_]=S.useState("#6C5CE7"),[k,E]=S.useState(null);function C(G){d(G.id),h(G.name),g(G.color),E(null)}function A(){d(null),h(""),g("")}function M(){c!==null&&i(c,{name:f,color:m}).then(()=>{d(null),h(""),g("")}).catch(G=>E(G.message))}function H(){b(!0),N(""),_("#6C5CE7"),E(null)}function z(){b(!1)}function P(){a({name:v,color:w}).then(()=>b(!1)).catch(G=>E(G.message))}function I(G){E(null),l(G).catch(ne=>E(ne.message))}return r.jsxs(Fr,{open:!0,onCloseModal:e,maxWidth:"max-w-lg",backdropClassName:"bg-black/30",panelClassName:"bg-white shadow-xl rounded-xl",showCloseButton:!1,className:"p-6 space-y-5 max-h-[80vh] flex flex-col",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h2",{className:"text-lg font-bold text-gray-900",children:"Gestion des categories"}),r.jsx("button",{type:"button",className:"text-sm text-gray-400 hover:text-gray-600 transition-colors",onClick:e,children:"Fermer"})]}),k&&r.jsx("div",{className:"text-sm text-red-600 bg-red-50 px-3 py-2 rounded-lg",children:k}),r.jsx("div",{className:"flex-1 overflow-y-auto space-y-2",children:n.map(G=>r.jsx("div",{children:c===G.id?r.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl border border-gray-300 bg-gray-50",children:[r.jsx("input",{type:"color",value:m,onChange:ne=>g(ne.target.value),className:"w-8 h-8 rounded border border-gray-300 cursor-pointer shrink-0"}),r.jsx("input",{type:"text",value:f,onChange:ne=>h(ne.target.value),className:"flex-1 px-2 py-1 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-gray-900"}),r.jsx("button",{type:"button",className:"text-xs font-medium px-3 py-1.5 rounded-lg bg-gray-900 text-white hover:bg-gray-800 transition-colors",onClick:M,children:"OK"}),r.jsx("button",{type:"button",className:"text-xs font-medium px-3 py-1.5 rounded-lg bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",onClick:A,children:"Annuler"})]}):r.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl border border-gray-200 bg-white",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("span",{className:"inline-block w-3 h-3 rounded-full shrink-0",style:{backgroundColor:G.color}}),r.jsx("span",{className:"text-sm font-medium text-gray-900",children:G.name})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("button",{type:"button",className:"text-xs font-medium px-3 py-1.5 rounded-lg bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",onClick:()=>C(G),children:"Editer"}),r.jsx("button",{type:"button",className:"text-xs font-medium px-3 py-1.5 rounded-lg bg-red-50 text-red-600 hover:bg-red-100 transition-colors",onClick:()=>I(G.id),children:"Supprimer"})]})]})},G.id))}),y?r.jsxs("div",{className:"space-y-3 border-t border-gray-200 pt-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("input",{type:"color",value:w,onChange:G=>_(G.target.value),className:"w-8 h-8 rounded border border-gray-300 cursor-pointer shrink-0"}),r.jsx("input",{type:"text",value:v,onChange:G=>N(G.target.value),placeholder:"Nom de la categorie",className:"flex-1 px-2 py-1 border border-gray-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-gray-900"})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx("button",{type:"button",className:"flex-1 text-sm font-medium py-2 px-4 rounded-lg bg-gray-900 text-white hover:bg-gray-800 transition-colors",onClick:P,children:"Creer"}),r.jsx("button",{type:"button",className:"flex-1 text-sm font-medium py-2 px-4 roun
130ded-lg bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",onClick:z,children:"Annuler"})]})]}):r.jsx("button",{type:"button",className:"w-full text-sm font-medium py-2 px-4 rounded-lg border border-dashed border-gray-300 text-gray-500 hover:border-gray-400 hover:text-gray-700 transition-colors",onClick:H,children:"+ Nouvelle categorie"})]})},os=({message:n,notificationType:e,onDismiss:a})=>{const i=S.useCallback(()=>setTimeout(a,3e3),[a]);S.useEffect(()=>{const c=i();return()=>clearTimeout(c)},[i]);const l=e==="success";return r.jsxs("div",{className:"fixed top-6 right-6 z-50 flex items-center gap-3 px-5 py-3 rounded-lg shadow-lg text-white text-sm font-medium",style:{backgroundColor:l?"#00B894":"#D63031"},children:[r.jsx("span",{children:l?"[OK]":"[Erreur]"}),r.jsx("span",{children:n}),r.jsx("button",{type:"button",className:"ml-2 opacity-70 hover:opacity-100 transition-opacity",onClick:a,children:"x"})]})},j5=()=>{const{events:n,categories:e,activeFilter:a,setActiveFilter:i,selectedEventIds:l,setSelectedEventIds:c,notification:d,headerActions:f,brouillonEvents:h,publishedEvents:m,allBrouillonsSelected:g,isCreateModalOpen:y,isCategoryModalOpen:b,toggleSelectEvent:v,toggleSelectAllBrouillons:N,publishSelectedEvents:w,createEvent:_,closeCreateEventModal:k,createCategory:E,updateCategory:C,deleteCategory:A,closeCategoryModal:M,dismissNotification:H}=ku();return r.jsxs("div",{children:[r.jsx(ds,{title:"Gestion des Evenements",subtitle:`${n.length} evenements au total`,headerActions:f}),r.jsx("div",{className:"mb-6",children:r.jsx(r5,{activeFilter:a,onSelectFilter:i,categories:e})}),l.size>0&&r.jsxs("div",{className:"flex items-center gap-4 mb-4 px-4 py-3 rounded-xl bg-white/10 text-white",children:[r.jsxs("span",{className:"text-sm font-medium",children:[l.size," selectionne(s)"]}),r.jsxs("button",{type:"button",className:"text-sm font-medium px-4 py-1.5 rounded-lg bg-white text-gray-950 hover:bg-gray-200 transition-colors",onClick:w,children:["Publier ",l.size," evenement(s)"]}),r.jsx("button",{type:"button",className:"text-sm text-gray-300 hover:text-white transition-colors ml-auto",onClick:()=>c(new Set),children:"Annuler"})]}),h.length>0&&r.jsxs("div",{className:"mb-6",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("input",{type:"checkbox",checked:g,className:"w-4 h-4 accent-white cursor-pointer",onChange:N,"aria-label":"Selectionner tous les brouillons"}),r.jsxs("h2",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wide",children:["Brouillons (",h.length,")"]})]}),r.jsx("div",{className:"rounded-xl border border-gray-800 bg-gray-900 divide-y divide-gray-800 max-h-143 overflow-y-auto",children:h.map(z=>r.jsx(yb,{event:z,isSelectable:!0,isSelected:l.has(z.id),onToggleSelect:v},z.id))})]}),m.length>0&&r.jsxs("div",{className:"mb-6",children:[r.jsxs("h2",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wide mb-2",children:["Publies (",m.length,")"]}),r.jsx("div",{className:"rounded-xl border border-gray-800 bg-gray-900 divide-y divide-gray-800 max-h-143 overflow-y-auto",children:m.map(z=>r.jsx(yb,{event:z},z.id))})]}),y&&r.jsx(b5,{categories:e,onCreateEvent:_,onCloseModal:k}),b&&r.jsx(v5,{categories:e,onCloseModal:M,onCreateCategory:E,onUpdateCategory:C,onDeleteCategory:A}),d&&r.jsx(os,{message:d.message,notificationType:d.notificationType,onDismiss:H})]})},w5=()=>{const n=ku();return r.jsx(r.Fragment,{children:n.editingEvent?r.jsxs(r.Fragment,{children:[r.jsx(a5,{}),n.notification&&r.jsx(os,{message:n.notification.message,notificationType:n.notification.notificationType,onDismiss:n.dismissNotification})]}):r.jsx(j5,{})})},N5=[{key:"onTop",title:"Accueil -- OnTop Event",description:"L'evenement OnTop est mis en avant sur la page d'accueil du site.",activeLabel:"En avant",activeColor:"#6C5CE7"},{key:"complete",title:"Marquer comme complet",description:"Flag independant du cycle de vie. Affiche un badge Complet sur le site public, quel que soit l'etat courant.",activeLabel:"Complet",activeColor:"#2D3436"}];function S5(n,e){return!!n[e]}const C5=({event:n,field:e,onToggleFlag:a,activeLabel:i,activeColor:l})=>{const c=S5(n,e);return r.jsxs("div",{className:"flex items-center justify-between py-3 px-4 roun
130ded-lg hover:bg-white/5 transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("button",{type:"button",title:`Toggle ${e}`,onClick:()=>a(n.id,e),className:"relative inline-flex h-6 w-11 items-center rounded-full transition-colors",style:{backgroundColor:c?l:"#374151"},children:r.jsx("span",{className:"inline-block h-4 w-4 rounded-full transition-transform shadow-sm",style:{backgroundColor:c?"#FFFFFF":"#6B7280",transform:c?"translateX(22px)":"translateX(4px)"}})}),r.jsx("span",{className:"text-sm text-gray-300",children:n.title})]}),c&&r.jsx("span",{className:"text-xs font-semibold px-2 py-1 rounded-full",style:{color:l,backgroundColor:l+"1A"},children:i})]})};function _5({events:n}){const e=n.filter(f=>f.status==="publie"&&!Fa(f.date)&&f.onTop),a=e.length,[i,l]=S.useState(0);S.useEffect(()=>{if(a<=1)return;const f=setInterval(()=>{l(h=>(h+1)%a)},5e3);return()=>clearInterval(f)},[a]);const c=a===0?0:i%a;if(a===0)return r.jsx("div",{className:"rounded-xl border border-dashed border-gray-700 p-6 text-center text-sm text-gray-600",children:"Aucun event OnTop — le hero ne s'affichera pas"});const d=e[c];return r.jsxs("div",{className:"relative rounded-xl overflow-hidden h-96",children:[e.map((f,h)=>{const m=ia(f.imageUrl);return r.jsx("div",{className:"absolute inset-0 transition-opacity duration-700 "+(h===c?"opacity-100":"opacity-0"),children:m?r.jsx("img",{src:m,alt:"",className:"w-full h-full object-cover"}):r.jsx("div",{className:"w-full h-full bg-gray-800"})},f.id)}),r.jsx("div",{className:"absolute inset-0 bg-black/50"}),r.jsxs("div",{className:"relative z-10 h-full flex flex-col justify-end p-8 text-white",children:[r.jsx("p",{className:"text-5xl font-bold",children:d.title}),r.jsx("p",{className:"text-base opacity-70 mt-2",children:m1(d.date)}),r.jsx("div",{className:"flex items-center gap-3 mt-4",children:r.jsx("span",{className:"text-sm bg-white text-black px-5 py-2 rounded-full font-bold",children:d.complete?"Complet":"Prendre ma place"})}),a>1&&r.jsx("div",{className:"flex items-center gap-2 mt-4",children:e.map((f,h)=>r.jsx("button",{type:"button",title:"Afficher event "+(h+1),onClick:()=>l(h),className:"w-2.5 h-2.5 rounded-full transition-colors "+(h===c?"bg-white":"bg-white/40")},h))})]})]})}function E5({events:n}){const e=n.filter(a=>a.status==="publie"&&!Fa(a.date)&&a.complete);return e.length===0?r.jsx("div",{className:"rounded-xl border border-dashed border-gray-700 p-6 text-center text-sm text-gray-600",children:"Aucun event marque complet"}):r.jsx("div",{className:"flex flex-wrap gap-2",children:e.map(a=>r.jsxs("span",{className:"text-xs bg-gray-800 text-gray-300 px-3 py-1.5 rounded-lg border border-gray-700",children:[a.title," ",r.jsx("span",{className:"text-gray-500 italic ml-1",children:"(COMPLET)"})]},a.id))})}const k5={onTop:_5,complete:E5},T5=()=>{const{data:n=[]}=Em(),e=JC();function a(i,l){e.mutate({id:i,field:l})}return r.jsxs("div",{children:[r.jsx(ds,{title:"Affiche et Accueil",subtitle:`${n.filter(i=>i.status==="publie"&&!Fa(i.date)).length} evenements configurables`}),r.jsx("div",{className:"space-y-10",children:N5.map(i=>{const l=k5[i.key];return r.jsxs("div",{className:"space-y-3",children:[r.jsx("h2",{className:"text-lg font-bold text-white",children:i.title}),r.jsx("p",{className:"text-sm text-gray-500",children:i.description}),r.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900/50 p-4",children:[r.jsx("p",{className:"text-[10px] uppercase tracking-widest text-gray-600 mb-3",children:"Apercu client"}),l&&r.jsx(l,{events:n})]}),r.jsx("div",{className:"rounded-xl border border-gray-800 bg-gray-900 divide-y divide-gray-800 max-h-91 overflow-y-auto",children:n.filter(c=>c.status==="publie"&&!Fa(c.date)).map(c=>r.jsx(C5,{event:c,field:i.key,onToggleFlag:a,activeLabel:i.activeLabel,activeColor:i.activeColor},c.id))})]},i.key)})})]})},Ts=({src:n,alt:e,iconSize:a=32,className:i="",imgClassName:l=""})=>n?r.jsx("img",{src:n,alt:e,className:"object-cover "+i+" "+l}):r.jsx("div",{className:"flex items-center justify-center text-neutral-600 "+i,children:r.jsx(i1,{size:a,strokeWidth:1.5})}),Mm="#f97316";var A5=Object.defineProperty,uu=Object.getOwnPropertySymbols,p1=Object.prototype.hasOwnProperty,g1=Object.prototype.propertyIsEnumerable,vb=(n,e,a)=>e in n?A5(n,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[e]=a,Qh=(n,e)=>{for(var a in e||(e={}))p1.call(e,a)&&vb(n,a,e[a]);if(uu)for(var a of uu(e))g1.call(e,a)&&vb(n,a,e[a]);return n},Kh=(n,e)=>{var a={};for(var i in n)p1.call(n,i)&&e.indexOf(i)<0&&(a[i]=n[i]);if(n!=null&&uu)for(var i of uu(n))e.indexOf(i)<0&&g1.call(n,i)&&(a[i]=n[i]);return a};var Ti;(n=>{const e=class qe{constructor(h,m,g,y){if(this.version=h,this.errorCorrectionLevel=m,this.modules=[],this.isFunction=[],h<qe.MIN_VERSION||h>qe.MAX_VERSION)throw new RangeError("Version value out of range");if(y<-1||y>7)throw new RangeError("Mask value out of range");this.size=h*4+17;let b=[];for(let N=0;N<this.size;N++)b.push(!1);for(let N=0;N<this.size;N++)this.modules.push(b.slice()),this.isFunction.push(b.slice());this.drawFunctionPatterns();const v=this.addEccAndInterleave(g);if(this.drawCodewords(v),y==-1){let N=1e9;for(let w=0;w<8;w++){this.applyMask(w),this.drawFormatBits(w);const _=this.getPenaltyScore();_<N&&(y=w,N=_),this.applyMask(w)}}l(0<=y&&y<=7),this.mask=y,this.applyMask(y),this.drawFormatBits(y),this.isFunction=[]}static encodeText(h,m){const g=n.QrSegment.makeSegments(h);return qe.encodeSegments(g,m)}static encodeBinary(h,m){const g=n.QrSegment.makeBytes(h);return qe.encodeSegments([g],m)}static encodeSegments(h,m,g=1,y=40,b=-1,v=!0){if(!(qe.MIN_VERSION<=g&&g<=y&&y<=qe.MAX_VERSION)||b<-1||b>7)throw new RangeError("Invalid value");let N,w;for(N=g;;N++){const C=qe.getNumDataCodewords(N,m)*8,A=d.getTotalBits(h,N);if(A<=C){w=A;break}if(N>=y)throw new RangeError("Data too long")}
130for(const C of[qe.Ecc.MEDIUM,qe.Ecc.QUARTILE,qe.Ecc.HIGH])v&&w<=qe.getNumDataCodewords(N,C)*8&&(m=C);let _=[];for(const C of h){a(C.mode.modeBits,4,_),a(C.numChars,C.mode.numCharCountBits(N),_);for(const A of C.getData())_.push(A)}l(_.length==w);const k=qe.getNumDataCodewords(N,m)*8;l(_.length<=k),a(0,Math.min(4,k-_.length),_),a(0,(8-_.length%8)%8,_),l(_.length%8==0);for(let C=236;_.length<k;C^=253)a(C,8,_);let E=[];for(;E.length*8<_.length;)E.push(0);return _.forEach((C,A)=>E[A>>>3]|=C<<7-(A&7)),new qe(N,m,E,b)}getModule(h,m){return 0<=h&&h<this.size&&0<=m&&m<this.size&&this.modules[m][h]}getModules(){return this.modules}drawFunctionPatterns(){for(let g=0;g<this.size;g++)this.setFunctionModule(6,g,g%2==0),this.setFunctionModule(g,6,g%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const h=this.getAlignmentPatternPositions(),m=h.length;for(let g=0;g<m;g++)for(let y=0;y<m;y++)g==0&&y==0||g==0&&y==m-1||g==m-1&&y==0||this.drawAlignmentPattern(h[g],h[y]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(h){const m=this.errorCorrectionLevel.formatBits<<3|h;let g=m;for(let b=0;b<10;b++)g=g<<1^(g>>>9)*1335;const y=(m<<10|g)^21522;l(y>>>15==0);for(let b=0;b<=5;b++)this.setFunctionModule(8,b,i(y,b));this.setFunctionModule(8,7,i(y,6)),this.setFunctionModule(8,8,i(y,7)),this.setFunctionModule(7,8,i(y,8));for(let b=9;b<15;b++)this.setFunctionModule(14-b,8,i(y,b));for(let b=0;b<8;b++)this.setFunctionModule(this.size-1-b,8,i(y,b));for(let b=8;b<15;b++)this.setFunctionModule(8,this.size-15+b,i(y,b));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let h=this.version;for(let g=0;g<12;g++)h=h<<1^(h>>>11)*7973;const m=this.version<<12|h;l(m>>>18==0);for(let g=0;g<18;g++){const y=i(m,g),b=this.size-11+g%3,v=Math.floor(g/3);this.setFunctionModule(b,v,y),this.setFunctionModule(v,b,y)}}drawFinderPattern(h,m){for(let g=-4;g<=4;g++)for(let y=-4;y<=4;y++){const b=Math.max(Math.abs(y),Math.abs(g)),v=h+y,N=m+g;0<=v&&v<this.size&&0<=N&&N<this.size&&this.setFunctionModule(v,N,b!=2&&b!=4)}}drawAlignmentPattern(h,m){for(let g=-2;g<=2;g++)for(let y=-2;y<=2;y++)this.setFunctionModule(h+y,m+g,Math.max(Math.abs(y),Math.abs(g))!=1)}setFunctionModule(h,m,g){this.modules[m][h]=g,this.isFunction[m][h]=!0}addEccAndInterleave(h){const m=this.version,g=this.errorCorrectionLevel;if(h.length!=qe.getNumDataCodewords(m,g))throw new RangeError("Invalid argument");const y=qe.NUM_ERROR_CORRECTION_BLOCKS[g.ordinal][m],b=qe.ECC_CODEWORDS_PER_BLOCK[g.ordinal][m],v=Math.floor(qe.getNumRawDataModules(m)/8),N=y-v%y,w=Math.floor(v/y);let _=[];const k=qe.reedSolomonComputeDivisor(b);for(let C=0,A=0;C<y;C++){let M=h.slice(A,A+w-b+(C<N?0:1));A+=M.length;const H=qe.reedSolomonComputeRemainder(M,k);C<N&&M.push(0),_.push(M.concat(H))}let E=[];for(let C=0;C<_[0].length;C++)_.forEach((A,M)=>{(C!=w-b||M>=N)&&E.push(A[C])});return l(E.length==v),E}drawCodewords(h){if(h.length!=Math.floor(qe.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let m=0;for(let g=this.size-1;g>=1;g-=2){g==6&&(g=5);for(let y=0;y<this.size;y++)for(let b=0;b<2;b++){const v=g-b,w=(g+1&2)==0?this.size-1-y:y;!this.isFunction[w][v]&&m<h.length*8&&(this.modules[w][v]=i(h[m>>>3],7-(m&7)),m++)}}l(m==h.length*8)}applyMask(h){if(h<0||h>7)throw new RangeError("Mask value out of range");for(let m=0;m<this.size;m++)for(let g=0;g<this.size;g++){let y;switch(h){case 0:y=(g+m)%2==0;break;case 1:y=m%2==0;break;case 2:y=g%3==0;break;case 3:y=(g+m)%3==0;break;case 4:y=(Math.floor(g/3)+Math.floor(m/2))%2==0;break;case 5:y=g*m%2+g*m%3==0;break;case 6:y=(g*m%2+g*m%3)%2==0;break;case 7:y=((g+m)%2+g*m%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[m][g]&&y&&(this.modules[m][g]=!this.modules[m][g])}}getPenaltyScore(){let h=0;for(let b=0;b<this.size;b++){let v=!1,N=0,w=[0,0,0,0,0,0,0];for(let _=0;_<this.size;_++)this.modules[b][_]==v?(N++,N==5?h+=qe.PENALTY_N1:N>5&&h++):(this.finderPenaltyAddHistory(N,w),v||(h+=this.finderPenaltyCountPatterns(w)*qe.PENALTY_N3),v=this.modules[b][_],N=1);h+=this.finderPenaltyTerminateAndCount(v,N,w)*qe.PENALTY_N3}for(let b=0;b<this.size;b++){let v=!1,N=0,w=[0,0,0,0,0,0,0];for(let _=0;_<this.size;_++)this.modules[_][b]==v?(N++,N==5?h+=qe.PENALTY_N1:N>5&&h++):(this.finderPenaltyAddHistory(N,w),v||(h+=this.finderPenaltyCountPatterns(w)*qe.PENALTY_N3),v=this.modules[_][b],N=1);h+=this.finderPenaltyTerminateAndCount(v,N,w)*qe.PENALTY_N3}for(let b=0;b<this.size-1;b++)for(let v=0;v<this.size-1;v++){const N=this.modules[b][v];N==this.modules[b][v+1]&&N==this.modules[b+1][v]&&N==this.modules[b+1][v+1]&&
130(h+=qe.PENALTY_N2)}let m=0;for(const b of this.modules)m=b.reduce((v,N)=>v+(N?1:0),m);const g=this.size*this.size,y=Math.ceil(Math.abs(m*20-g*10)/g)-1;return l(0<=y&&y<=9),h+=y*qe.PENALTY_N4,l(0<=h&&h<=2568888),h}getAlignmentPatternPositions(){if(this.version==1)return[];{const h=Math.floor(this.version/7)+2,m=this.version==32?26:Math.ceil((this.version*4+4)/(h*2-2))*2;let g=[6];for(let y=this.size-7;g.length<h;y-=m)g.splice(1,0,y);return g}}static getNumRawDataModules(h){if(h<qe.MIN_VERSION||h>qe.MAX_VERSION)throw new RangeError("Version number out of range");let m=(16*h+128)*h+64;if(h>=2){const g=Math.floor(h/7)+2;m-=(25*g-10)*g-55,h>=7&&(m-=36)}return l(208<=m&&m<=29648),m}static getNumDataCodewords(h,m){return Math.floor(qe.getNumRawDataModules(h)/8)-qe.ECC_CODEWORDS_PER_BLOCK[m.ordinal][h]*qe.NUM_ERROR_CORRECTION_BLOCKS[m.ordinal][h]}static reedSolomonComputeDivisor(h){if(h<1||h>255)throw new RangeError("Degree out of range");let m=[];for(let y=0;y<h-1;y++)m.push(0);m.push(1);let g=1;for(let y=0;y<h;y++){for(let b=0;b<m.length;b++)m[b]=qe.reedSolomonMultiply(m[b],g),b+1<m.length&&(m[b]^=m[b+1]);g=qe.reedSolomonMultiply(g,2)}return m}static reedSolomonComputeRemainder(h,m){let g=m.map(y=>0);for(const y of h){const b=y^g.shift();g.push(0),m.forEach((v,N)=>g[N]^=qe.reedSolomonMultiply(v,b))}return g}static reedSolomonMultiply(h,m){if(h>>>8||m>>>8)throw new RangeError("Byte out of range");let g=0;for(let y=7;y>=0;y--)g=g<<1^(g>>>7)*285,g^=(m>>>y&1)*h;return l(g>>>8==0),g}finderPenaltyCountPatterns(h){const m=h[1];l(m<=this.size*3);const g=m>0&&h[2]==m&&h[3]==m*3&&h[4]==m&&h[5]==m;return(g&&h[0]>=m*4&&h[6]>=m?1:0)+(g&&h[6]>=m*4&&h[0]>=m?1:0)}finderPenaltyTerminateAndCount(h,m,g){return h&&(this.finderPenaltyAddHistory(m,g),m=0),m+=this.size,this.finderPenaltyAddHistory(m,g),this.finderPenaltyCountPatterns(g)}finderPenaltyAddHistory(h,m){m[0]==0&&(h+=this.size),m.pop(),m.unshift(h)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],n.QrCode=e;function a(f,h,m){if(h<0||h>31||f>>>h)throw new RangeError("Value out of range");for(let g=h-1;g>=0;g--)m.push(f>>>g&1)}function i(f,h){return(f>>>h&1)!=0}function l(f){if(!f)throw new Error("Assertion error")}const c=class _t{constructor(h,m,g){if(this.mode=h,this.numChars=m,this.bitData=g,m<0)throw new RangeError("Invalid argument");this.bitData=g.slice()}static makeBytes(h){let m=[];for(const g of h)a(g,8,m);return new _t(_t.Mode.BYTE,h.length,m)}static makeNumeric(h){if(!_t.isNumeric(h))throw new RangeError("String contains non-numeric characters");let m=[];for(let g=0;g<h.length;){const y=Math.min(h.length-g,3);a(parseInt(h.substring(g,g+y),10),y*3+1,m),g+=y}return new _t(_t.Mode.NUMERIC,h.length,m)}static makeAlphanumeric(h){if(!_t.isAlphanumeric(h))throw new RangeError("String contains unencodable characters in alphanumeric mode");let m=[],g;for(g=0;g+2<=h.length;g+=2){let y=_t.ALPHANUMERIC_CHARSET.indexOf(h.charAt(g))*45;y+=_t.ALPHANUMERIC_CHARSET.indexOf(h.charAt(g+1)),a(y,11,m)}return g<h.length&&a(_t.ALPHANUMERIC_CHARSET.indexOf(h.charAt(g)),6,m),new _t(_t.Mode.ALPHANUMERIC,h.length,m)}static makeSegments(h){return h==""?[]:_t.isNumeric(h)?[_t.makeNumeric(h)]:_t.isAlphanumeric(h)?[_t.makeAlphanumeric(h)]:[_t.makeBytes(_t.toUtf8ByteArray(h))]}static makeEci(h){let m=[];
130if(h<0)throw new RangeError("ECI assignment value out of range");if(h<128)a(h,8,m);else if(h<16384)a(2,2,m),a(h,14,m);else if(h<1e6)a(6,3,m),a(h,21,m);else throw new RangeError("ECI assignment value out of range");return new _t(_t.Mode.ECI,0,m)}static isNumeric(h){return _t.NUMERIC_REGEX.test(h)}static isAlphanumeric(h){return _t.ALPHANUMERIC_REGEX.test(h)}getData(){return this.bitData.slice()}static getTotalBits(h,m){let g=0;for(const y of h){const b=y.mode.numCharCountBits(m);if(y.numChars>=1<<b)return 1/0;g+=4+b+y.bitData.length}return g}static toUtf8ByteArray(h){h=encodeURI(h);let m=[];for(let g=0;g<h.length;g++)h.charAt(g)!="%"?m.push(h.charCodeAt(g)):(m.push(parseInt(h.substring(g+1,g+3),16)),g+=2);return m}};c.NUMERIC_REGEX=/^[0-9]*$/,c.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,c.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let d=c;n.QrSegment=c})(Ti||(Ti={}));(n=>{(e=>{const a=class{constructor(l,c){this.ordinal=l,this.formatBits=c}};a.LOW=new a(0,1),a.MEDIUM=new a(1,0),a.QUARTILE=new a(2,3),a.HIGH=new a(3,2),e.Ecc=a})(n.QrCode||(n.QrCode={}))})(Ti||(Ti={}));(n=>{(e=>{const a=class{constructor(l,c){this.modeBits=l,this.numBitsCharCount=c}numCharCountBits(l){return this.numBitsCharCount[Math.floor((l+7)/17)]}};a.NUMERIC=new a(1,[10,12,14]),a.ALPHANUMERIC=new a(2,[9,11,13]),a.BYTE=new a(4,[8,16,16]),a.KANJI=new a(8,[8,10,12]),a.ECI=new a(7,[0,0,0]),e.Mode=a})(n.QrSegment||(n.QrSegment={}))})(Ti||(Ti={}));var jr=Ti;var M5={L:jr.QrCode.Ecc.LOW,M:jr.QrCode.Ecc.MEDIUM,Q:jr.QrCode.Ecc.QUARTILE,H:jr.QrCode.Ecc.HIGH},x1=128,y1="L",b1="#FFFFFF",v1="#000000",j1=!1,w1=1,O5=4,R5=0,D5=.1;function N1(n,e=0){const a=[];return n.forEach(function(i,l){let c=null;i.forEach(function(d,f){if(!d&&c!==null){a.push(`M${c+e} ${l+e}h${f-c}v1H${c+e}z`),c=null;return}if(f===i.length-1){if(!d)return;c===null?a.push(`M${f+e},${l+e} h1v1H${f+e}z`):a.push(`M${c+e},${l+e} h${f+1-c}v1H${c+e}z`);return}d&&c===null&&(c=f)})}),a.join("")}function S1(n,e){return n.slice().map((a,i)=>i<e.y||i>=e.y+e.h?a:a.map((l,c)=>c<e.x||c>=e.x+e.w?l:!1))}function L5(n,e,a,i){if(i==null)return null;const l=n.length+a*2,c=Math.floor(e*D5),d=l/e,f=(i.width||c)*d,h=(i.height||c)*d,m=i.x==null?n.length/2-f/2:i.x*d,g=i.y==null?n.length/2-h/2:i.y*d,y=i.opacity==null?1:i.opacity;let b=null;if(i.excavate){let N=Math.floor(m),w=Math.floor(g),_=Math.ceil(f+m-N),k=Math.ceil(h+g-w);b={x:N,y:w,w:_,h:k}}const v=i.crossOrigin;return{x:m,y:g,h,w:f,excavation:b,opacity:y,crossOrigin:v}}function z5(n,e){return e!=null?Math.max(Math.floor(e),0):n?O5:R5}function C1({value:n,level:e,minVersion:a,includeMargin:i,marginSize:l,imageSettings:c,size:d,boostLevel:f}){let h=Ee.useMemo(()=>{const N=(Array.isArray(n)?n:[n]).reduce((w,_)=>(w.push(...jr.QrSegment.makeSegments(_)),w),[]);return jr.QrCode.encodeSegments(N,M5[e],a,void 0,void 0,f)},[n,e,a,f]);const{cells:m,margin:g,numCells:y,calculatedImageSettings:b}=Ee.useMemo(()=>{let v=h.getModules();const N=z5(i,l),w=v.length+N*2,_=L5(v,d,N,c);return{cells:v,margin:N,numCells:w,calculatedImageSettings:_}},[h,d,c,i,l]);return{qrcode:h,margin:g,cells:m,numCells:y,calculatedImageSettings:b}}var U5=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),q5=Ee.forwardRef(function(e,a){const i=e,{value:l,size:c=x1,level:d=y1,bgColor:f=b1,fgColor:h=v1,includeMargin:m=j1,minVersion:g=w1,boostLevel:y,marginSize:b,imageSettings:v}=i,w=Kh(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:_}=w,k=Kh(w,["style"]),E=v?.src,C=Ee.useRef(null),A=Ee.useRef(null),M=Ee.useCallback(se=>{C.current=se,typeof a=="function"?a(se):a&&(a.current=se)},[a]),[H,z]=Ee.useState(!1),{margin:P,cells:I,numCells:G,calculatedImageSettings:ne}=C1({value:l,level:d,minVersion:g,boostLevel:y,includeMargin:m,marginSize:b,imageSettings:v,size:c});Ee.useEffect(()=>{if(C.current!=null){const se=C.current,oe=se.getContext("2d");if(!oe)return;let R=I;const U=A.current,W=ne!=null&&U!==null&&U.complete&&U.naturalHeight!==0&&U.naturalWidth!==0;W&&ne.excavation!=null&&(R=S1(I,ne.excavation));const he=window.devicePixelRatio||1;se.height=se.width=c*he;const fe=c/G*he;oe.scale(fe,fe),oe.fillStyle=f,oe.fillRect(0,0,G,G),oe.fillStyle=h,U5?oe.fill(new Path2D(N1(R,P))):I.forEac
130h(function(O,B){O.forEach(function(ie,le){ie&&oe.fillRect(le+P,B+P,1,1)})}),ne&&(oe.globalAlpha=ne.opacity),W&&oe.drawImage(U,ne.x+P,ne.y+P,ne.w,ne.h)}}),Ee.useEffect(()=>{z(!1)},[E]);const L=Qh({height:c,width:c},_);let $=null;return E!=null&&($=Ee.createElement("img",{src:E,key:E,style:{display:"none"},onLoad:()=>{z(!0)},ref:A,crossOrigin:ne?.crossOrigin})),Ee.createElement(Ee.Fragment,null,Ee.createElement("canvas",Qh({style:L,height:c,width:c,ref:M,role:"img"},k)),$)});q5.displayName="QRCodeCanvas";var _1=Ee.forwardRef(function(e,a){const i=e,{value:l,size:c=x1,level:d=y1,bgColor:f=b1,fgColor:h=v1,includeMargin:m=j1,minVersion:g=w1,boostLevel:y,title:b,marginSize:v,imageSettings:N}=i,w=Kh(i,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:_,cells:k,numCells:E,calculatedImageSettings:C}=C1({value:l,level:d,minVersion:g,boostLevel:y,includeMargin:m,marginSize:v,imageSettings:N,size:c});let A=k,M=null;N!=null&&C!=null&&(C.excavation!=null&&(A=S1(k,C.excavation)),M=Ee.createElement("image",{href:N.src,height:C.h,width:C.w,x:C.x+_,y:C.y+_,preserveAspectRatio:"none",opacity:C.opacity,crossOrigin:C.crossOrigin}));const H=N1(A,_);return Ee.createElement("svg",Qh({height:c,width:c,viewBox:`0 0 ${E} ${E}`,ref:a,role:"img"},w),!!b&&Ee.createElement("title",null,b),Ee.createElement("path",{fill:f,d:`M0,0 h${E}v${E}H0z`,shapeRendering:"crispEdges"}),Ee.createElement("path",{fill:h,d:H,shapeRendering:"crispEdges"}),M)});_1.displayName="QRCodeSVG";const jb=window.location.origin+"/tremplin/vote/";function P5(n){if(!n)return"";const e=new Date(n),a=i=>String(i).padStart(2,"0");return e.getFullYear()+"-"+a(e.getMonth()+1)+"-"+a(e.getDate())+"T"+a(e.getHours())+":"+a(e.getMinutes())}const B5=({events:n,allEvents:e,onLinkEvent:a,onUnlinkEvent:i,onUpdateDeadline:l,accentColor:c})=>{const[d,f]=S.useState(!1),[h,m]=S.useState(null),[g,y]=S.useState(null),b=new Set(n.map(N=>N.id)),v=e.filter(N=>!b.has(N.id));return r.jsxs("div",{className:"px-6 md:px-12 py-8",children:[r.jsxs("div",{className:"flex items-center justify-between mb-6",children:[r.jsx("h2",{className:"font-mango text-white text-3xl uppercase",children:"Soirees de vote"}),r.jsxs("button",{type:"button",onClick:()=>f(!0),className:"flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium text-black transition-colors hover:opacity-90",style:{backgroundColor:c},children:[r.jsx(dE,{size:16}),"Lier un evenement"]})]}),d&&r.jsxs("div",{className:"mb-6 rounded-xl border border-neutral-700 bg-neutral-900 p-4",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("h3",{className:"text-sm font-medium text-white",children:"Choisir un evenement"}),r.jsx("button",{type:"button",onClick:()=>f(!1),className:"text-neutral-500 hover:text-white",children:r.jsx(ra,{size:16})})]}),v.length===0?r.jsx("p",{className:"text-neutral-500 text-sm",children:"Aucun evenement disponible."}):r.jsx("div",{className:"space-y-1 max-h-60 overflow-y-auto",children:v.map(N=>r.jsxs("button",{type:"button",onClick:()=>{a(N.id),f(!1)},className:"w-full flex items-center gap-3 px-3 py-2 rounded-lg hover:bg-neutral-800 text-left transition-colors",children:[r.jsx("span",{className:"text-sm text-white",children:N.title}),r.jsx("span",{className:"text-xs text-neutral-500 ml-auto",children:new Date(N.date).toLocaleDateString("fr-FR")})]},N.id))})]}),h&&r.jsx("div",{className:"fixed inset-0 z-[100] bg-black/80 flex items-center justify-center",onClick:()=>m(null),children:r.jsxs("div",{className:"bg-white rounded-2xl p-8 text-center",onClick:N=>N.stopPropagation(),children:[r.jsx("h3",{className:"text-black font-semibold text-lg mb-1",children:n.find(N=>N.id===h)?.title}),r.jsx("p",{className:"text-neutral-500 text-sm mb-6",children:"Scannez pour voter"}),r.jsx(_1,{value:jb+h,size:280,level:"M",bgColor:"#ffffff",fgColor:"#000000"}),r.jsx("p",{className:"text-neutral-400 text-xs mt-4 break-all",children:jb+h}),r.jsx("button",{type:"button",onClick:()=>m(null),className:"mt-4 text-sm text-neutral-500 hover:text-black transition-colors",children:"Fermer"})]})}),n.length===0?r.jsx("p",{className:"text-neutral-500 text-sm text-center py-12",children:"Aucune soiree liee. Liez un evenement pour commencer."}):r.jsx("div",{className:"space-y-2",children:n.map(N=>{const w=N.voteDeadline&&new Date(N.voteDeadline)<new Date;return r.jsxs("div",{className:"px-5 py-4 rounded-xl bg-neutral-900 border border-neutral-800",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm font-semibold text-white",children:N.title}),r.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:new Date(N.date).toLocaleDateString("fr-FR",{weekday:"long",day:"numeric",month:"long",year:"numeric"})})]}),r.jsxs("button",{type:"button",onClick:()=>m(N.id),className:"flex items-center gap-1.5 text-xs font-medium px-3 py-1.5 rounded-lg bg-white/10 text-white hover:bg-white/20 transition-colors shrink-0",children:[r.jsx(hE,{size:14}),"QR Code"]}),r.jsx("span",{className:"text-xs text-neutral-400 shrink-0",children:N.status}),r.jsx("button",{type:"button",onClick:()=>i(N.id),className:"text-neutral-500 hover:text-red-400 transition-colors shrink-0",children:r.jsx(ra,{size:16})})]}),r.jsxs("div",{className:"flex items-center gap-2 mt-2 pt-2 border-t border-neutral-800",children:[r.jsx(iu,{size:12,className:w?"text-red-400":"text-neutral-500"}),r.jsx("span",{className:"text-xs "+(w?"text-red-400":"text-neutral-400"),children:N.voteDeadline?(w?"Votes fermes depuis ":"Votes ouverts jusqu'au ")+new Date(N.voteDeadline).toLocaleStr
130ing("fr-FR",{day:"numeric",month:"long",hour:"2-digit",minute:"2-digit"}):"Pas de deadline"}),r.jsx("button",{type:"button",onClick:()=>y(g===N.id?null:N.id),className:"text-xs text-neutral-500 hover:text-white ml-auto transition-colors",children:"Modifier"})]}),g===N.id&&r.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[r.jsx("input",{type:"datetime-local",defaultValue:P5(N.voteDeadline),className:"flex-1 bg-neutral-800 border border-neutral-700 rounded-lg px-3 py-1.5 text-sm text-white",onKeyDown:_=>{if(_.key==="Enter"){const k=_.target.value;k&&(l(N.id,new Date(k).toISOString()),y(null))}},id:"deadline-"+N.id}),r.jsx("button",{type:"button",onClick:()=>{const _=document.getElementById("deadline-"+N.id);_?.value&&(l(N.id,new Date(_.value).toISOString()),y(null))},className:"px-3 py-1.5 rounded-lg text-xs font-medium text-black transition-colors hover:opacity-90",style:{backgroundColor:c},children:"OK"})]})]},N.id)})})]})},F5=({events:n,accentColor:e})=>{const[a,i]=S.useState(n.length>0?n[0].id:null),{data:l=[],isLoading:c,dataUpdatedAt:d,refetch:f}=w_(a),h=l.reduce((g,y)=>g+y.votes,0),m=l.length>0?Math.max(...l.map(g=>g.votes)):0;return r.jsxs("div",{className:"px-6 md:px-12 py-8",children:[r.jsx("div",{className:"flex items-center justify-between mb-6",children:r.jsxs("h2",{className:"font-mango text-white text-3xl uppercase flex items-center gap-3",children:[r.jsx(G_,{size:24}),"Resultats des votes"]})}),n.length===0?r.jsx("p",{className:"text-neutral-500 text-sm text-center py-12",children:"Aucune soiree liee. Liez un evenement dans l'onglet Evenements."}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"flex flex-wrap gap-2 mb-8",children:n.map(g=>r.jsxs("button",{type:"button",onClick:()=>i(g.id),className:"text-sm font-medium px-4 py-2 rounded-lg transition-colors "+(a===g.id?"text-black":"bg-neutral-800 text-neutral-300 hover:bg-neutral-700"),style:a===g.id?{backgroundColor:e}:void 0,children:[g.title,r.jsx("span",{className:"ml-2 text-xs opacity-70",children:new Date(g.date).toLocaleDateString("fr-FR",{day:"numeric",month:"short"})})]},g.id))}),c?r.jsx("div",{className:"flex justify-center py-12",children:r.jsx("div",{className:"w-6 h-6 border-2 border-neutral-500 border-t-transparent rounded-full animate-spin"})}):l.length===0?r.jsx("p",{className:"text-neutral-500 text-sm text-center py-12",children:"Aucun vote pour cette soiree."}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center gap-6 mb-6",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-3xl font-bold text-white",children:h}),r.jsxs("span",{className:"text-neutral-500 text-sm",children:["vote",h!==1?"s":""]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-lg font-medium text-neutral-400",children:l.length}),r.jsxs("span",{className:"text-neutral-500 text-sm",children:["artiste",l.length!==1?"s":""]})]}),r.jsx("div",{className:"flex-1"}),r.jsxs("button",{type:"button",onClick:()=>f(),className:"flex items-center gap-1.5 text-xs text-neutral-500 hover:text-white transition-colors",children:[r.jsx(pE,{size:12}),d?"Maj "+new Date(d).toLocaleTimeString("fr-FR",{hour:"2-digit",minute:"2-digit",second:"2-digit"}):"Actualiser"]})]}),r.jsx("div",{className:"space-y-3",children:l.map((g,y)=>{const b=m>0?g.votes/m*100:0,v=y===0;return r.jsx("div",{className:"group",children:r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("span",{className:"text-neutral-500 text-sm font-medium w-6 text-right shrink-0",children:y+1}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center justify-between mb-1",children:[r.jsx("span",{className:"font-mango text-3xl uppercase truncate "+(v?"text-white":"text-neutral-300"),children:g.name}),r.jsxs("span",{className:"text-sm font-medium shrink-0 ml-3 "+(v?"text-white":"text-neutral-400"),children:[g.votes," vote",g.votes!==1?"s":""]})]}),r.jsx("div",{className:"h-2 rounded-full bg-neutral-800 overflow-hidden",children:r.jsx("div",{className:"h-full rounded-full transition-all duration-500",style:{width:b+"%",backgroundColor:v?e:"rgba(255,255,255,0.2)"}})})]})]})},g.candidateId)})}),r.jsx("p",{className:"text-neutral-600 text-xs mt-6 text-center",children:"Actualisation automatique toutes les 10 secondes"})]})]})]})}
130,H5=({candidate:n,onClose:e,onToggleWinner:a,onUploadAvatar:i,accentColor:l})=>{const c=(n.bio||"").split(`
131
132`),d=c.length>1?c[0]:null,f=c.length>1?c.slice(1).join(`
133
134`):n.bio;return r.jsxs("div",{className:"fixed inset-0 z-[100] bg-black overflow-y-auto",children:[r.jsxs("div",{className:"sticky top-0 z-10 flex items-center gap-3 px-6 py-4 bg-black/95 backdrop-blur border-b border-neutral-800",children:[r.jsxs("button",{type:"button",onClick:e,className:"flex items-center gap-2 text-neutral-400 hover:text-white transition-colors",children:[r.jsx(Cu,{size:18}),r.jsx("span",{className:"text-sm",children:"Retour"})]}),r.jsx("div",{className:"flex-1"}),r.jsxs("button",{type:"button",onClick:()=>a(n.id),className:"flex items-center gap-1.5 text-sm font-semibold px-3 py-1.5 rounded-full transition-colors "+(n.isWinner?"bg-amber-400 text-black":"bg-neutral-800 text-neutral-400 hover:bg-neutral-700"),children:[r.jsx(P_,{size:14}),n.isWinner?"Laureat":"Designer comme laureat"]})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-6 pt-8",children:r.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-start",children:[r.jsxs("label",{className:"block w-56 h-56 rounded-2xl overflow-hidden bg-neutral-900 relative cursor-pointer group shrink-0",children:[r.jsx(Ts,{src:n.avatarUrl,alt:n.name,className:"w-full h-full",iconSize:64}),r.jsx("div",{className:"absolute inset-0 bg-black/60 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:r.jsx(Ih,{size:24,className:"text-white"})}),r.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:h=>{const m=h.target.files?.[0];m&&i(n.id,m)}})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h1",{className:"font-mango text-white text-5xl md:text-6xl uppercase leading-none",children:n.name}),d&&r.jsx("span",{className:"inline-block mt-3 text-sm font-medium px-3 py-1 rounded-full",style:{backgroundColor:l+"20",color:l},children:d}),r.jsxs("div",{className:"flex items-center gap-4 mt-4",children:[!n.email.includes("@tremplin")&&r.jsxs("div",{className:"flex items-center gap-2 text-neutral-400 text-sm",children:[r.jsx(lE,{size:14}),r.jsx("a",{href:"mailto:"+n.email,className:"hover:text-white transition-colors",children:n.email})]}),r.jsxs("span",{className:"text-neutral-600 text-sm",children:[n.voteCount," vote",n.voteCount!==1?"s":""]})]}),r.jsxs("div",{className:"text-neutral-600 text-xs mt-2",children:["Inscrit le ",new Date(n.createdAt).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"})]}),f&&r.jsx("p",{className:"text-neutral-300 text-sm leading-relaxed mt-6 whitespace-pre-line",children:f})]})]})}),n.embedUrls.length>0&&r.jsxs("div",{className:"max-w-4xl mx-auto px-6 pt-10",children:[r.jsxs("h3",{className:"text-xs font-medium text-neutral-500 uppercase tracking-widest mb-4 flex items-center gap-2",children:[r.jsx(Eu,{size:12})," Musique"]}),r.jsx("div",{className:"space-y-4",children:n.embedUrls.map((h,m)=>r.jsx("div",{className:"rounded-xl overflow-hidden bg-neutral-900 border border-neutral-800",children:r.jsx("iframe",{src:h,width:"100%",height:h.includes("soundcloud")?166:h.includes("spotify")?152:200,frameBorder:"0",allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture",loading:"lazy",className:"w-full"})},m))})]}),n.socialLinks.length>0&&r.jsxs("div",{className:"max-w-4xl mx-auto px-6 pt-10",children:[r.jsxs("h3",{className:"text-xs font-medium text-neutral-500 uppercase tracking-widest mb-4 flex items-center gap-2",children:[r.jsx(Vh,{size:12})," Liens"]}),r.jsx("div",{className:"flex flex-wrap gap-2",children:n.socialLinks.map((h,m)=>{let g="Lien";return h.includes("instagram")?g="Instagram":h.includes("facebook")?g="Facebook":h.includes("youtube")?g="YouTube":h.includes("soundcloud")?g="SoundCloud":h.includes("spotify")?g="Spotify":h.includes("tiktok")?g="TikTok":h.includes("bandcamp")?g="Bandcamp":(h.includes("twitter")||h.includes("x.com"))&&(g="X"),r.jsxs("a",{href:h,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 rounded-lg bg-neutral-900 border border-neutral-800 text-sm text-neutral-300 hover:text-white hover:border-neutral-600 transition-colors",children:[r.jsx(Vh,{size:14}),g]},m)})})]}),r.jsx("div",{className:"h-16"})]})},fh={registration:{label:"Inscriptions",color:"#00B894",bg:"bg-gray-800 text-gray-300 hover:bg-gray-700"},candidates:{label:"Candidats",color:"#6C5CE7",bg:"bg-gray-800 text-gray-300 hover:bg-gray-700"},events:{label:"Evenements",color:"#FDCB6E",bg:"bg-gray-800 text-gray-300 hover:bg-gray-700"},results:{label:"Resultats",color:"#E17055",bg:"bg-gray-800 text-gray-300 hover:bg-gray-700"}};function wb(n){return n.slice(0,16)}function V5(n,e){if(!n||!e)return"closed";const a=new Date;return a>=new Date(n)&&a<=new Date(e)?"open":"closed"}const I5=({existing:n,onSaveEdition:e,onReturnToEditionList:a,onToggleCandidateWinner:i,onUploadCandidateAvatar:l,onUploadEditionImage:c,tremplinEvents:d,allEvents:f,onLinkEvent:h,onUnlinkEvent:m,onUpdateDeadline:g})=>{const y=V5(n?.registerStart??"",n?.registerEnd??""),[b,v]=S.useState("registration"),[N,w]=S.useState(n?.year??new Date().getFullYear()),[_,k]=S.useState(n?.title??"Tremplin Makeda "+new Date().getFullYear()),[E,C]=S.useState(n?.description??""),[A,M]=S.useState(n?wb(n.registerStart):""),[H,z]=S.useState(n?wb(n.registerEnd):""),[P,I]=S.useState(null),[G,ne]=S.useState(!1),[L,$]=S.useState(null),[se,oe]=S.useState(n?.accentColor??Mm),R=n?.candidates??[],U=L??n?.imageUrl??null;function W(){!_.trim()||!A||!H||e({year:N,title:_.trim(),description:E.trim()||void 0,registerStart:new Date(A).toISOString(),registerEnd:new Date(H).toISOString(),voteStart:new Date(A).toISOString(),voteEnd:new Date(H).toISOString(),accentColor:se})}const he="w-full px-2.5 py-1.5 rounded-lg bg-gray-800 border border-gray-700 text-white text-xs focus:outline-none focus:border-white transition-colors",fe=R.length>0&&r.jsx("section",{className:"px-6 md:px-12 py-8",children:r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:R.map(B=>r.jsxs("div",{className:"group cursor-pointer",onClick:()=>I(B),children:[r.jsx("div",{className:"aspect-square overflow-hidden rounded-xl bg-neutral-800 relative",children:r.jsx(Ts,{src:B.avatarUrl,alt:B.name,className:"w-full h-full",iconSize:48,imgClassName:"group-hover:scale-105 transition-transform duration-500"})}),r.jsxs("div",{className:"mt-3",children:[r.jsx("h3",{className:"font-mango text-white text-xl md:text-2xl uppercase leading-tight group-hover:opacity-80 transition-opacity",children:B.name}),B.bio&&r.jsx("p",{className:"text-neutral-500 text-sm mt-1 line-clamp-1",children:B.bio}),r.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[B.isWinner&&r.jsx("span",{className:"text-xs font-semibold px-2.5 py-1 rounded-full bg-amber-400 text-black",children:"Laureat"}),r.jsxs("span",{className:"text-neutral-500 text-sm",children:[B.voteCount," vote",B.voteCount!==1?"s":""]})]})]})]},B.id))})}),O=R.some(B=>B.isWinner)&&r.jsxs("section",{className:"px-6 md:px-12 py-16 border-t border-neutral-800",children:[r.jsx("h2",{className:"font-mango text-white text-4xl md:text-5xl uppercase text-center mb-12",children:"Laureats"}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 max-w-5xl mx-auto",children:R.filter(
134B=>B.isWinner).map(B=>r.jsxs("div",{className:"flex flex-col items-center text-center",children:[r.jsx("div",{className:"w-24 h-24 md:w-32 md:h-32 rounded-full overflow-hidden bg-neutral-800 mb-3",children:r.jsx(Ts,{src:B.avatarUrl,alt:B.name,className:"w-full h-full",iconSize:32})}),r.jsx("h3",{className:"font-mango text-white text-xl md:text-2xl uppercase",children:B.name})]},B.id))})]});return r.jsxs("div",{className:"relative bg-black min-h-screen -m-8",children:[r.jsxs("div",{className:"sticky top-0 z-50 bg-gray-950/95 backdrop-blur border-b border-gray-800 px-6 py-3 flex items-center gap-3",children:[r.jsxs("button",{type:"button",onClick:a,className:"flex items-center gap-2 text-gray-400 hover:text-white text-sm transition-colors shrink-0",children:[r.jsx(n1,{size:16}),"Retour"]}),r.jsx("div",{className:"flex items-center gap-1.5 ml-4",children:Object.keys(fh).map(B=>r.jsxs("button",{type:"button",onClick:()=>v(B),className:"text-xs font-medium px-3 py-1.5 rounded-lg transition-colors flex items-center gap-1.5 "+(b===B?"text-black":fh[B].bg),style:b===B?{backgroundColor:se}:void 0,children:[B==="registration"&&r.jsx("span",{className:"w-2 h-2 rounded-full shrink-0 "+(y==="open"?"bg-green-400":"bg-red-400")}),fh[B].label]},B))}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[r.jsx("span",{className:"text-xs text-gray-500",children:"Couleur:"}),r.jsx("input",{type:"color",value:se,onChange:B=>oe(B.target.value),className:"w-7 h-7 rounded-lg border border-gray-700 bg-transparent cursor-pointer"})]}),r.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[r.jsx("span",{className:"text-xs text-gray-500",children:"Edition:"}),r.jsx("input",{type:"number",value:N,onChange:B=>w(Number(B.target.value)),className:"w-[72px] px-2 py-1 rounded-lg bg-gray-800 border border-gray-700 text-white text-xs text-center focus:outline-none focus:border-white transition-colors"})]}),r.jsx("button",{type:"button",onClick:W,disabled:!_.trim()||!A||!H,className:"text-sm font-medium px-5 py-1.5 rounded-lg bg-white text-gray-950 hover:bg-gray-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:n?"Enregistrer":"Creer l'edition"})]}),b==="registration"&&r.jsxs(r.Fragment,{children:[r.jsxs("section",{className:"relative min-h-[70vh] flex items-center",children:[U?r.jsx("img",{src:U,alt:"",className:"absolute inset-0 w-full h-full object-cover"}):r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-neutral-900 to-neutral-800"}),r.jsx("div",{className:"absolute inset-0 bg-black/50"}),r.jsxs("label",{className:"absolute top-4 right-4 z-10 flex items-center gap-2 px-3 py-1.5 rounded-lg bg-black/60 text-white text-xs cursor-pointer hover:bg-black/80 transition-colors",children:[r.jsx(Ih,{size:14}),"Changer le fond",r.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:B=>{const ie=B.target.files?.[0];ie&&($(URL.createObjectURL(ie)),c(ie))}})]}),r.jsxs("div",{className:"relative z-[1] w-full max-w-5xl mx-auto px-6 md:px-12 py-16 grid grid-cols-1 md:grid-cols-2 gap-10 items-center",children:[r.jsx("div",{className:"flex justify-center",children:U?r.jsx("img",{src:U,alt:_,className:"max-h-[500px] rounded-xl shadow-2xl object-contain"}):r.jsxs("label",{className:"w-full aspect-[3/4] max-w-sm rounded-xl border-2 border-dashed border-neutral-600 flex flex-col items-center justify-center gap-3 text-neutral-500 cursor-pointer hover:opacity-80 transition-opacity",children:[r.jsx(Ih,{size:48,strokeWidth:1.5}),r.jsx("span",{className:"text-sm",children:"Ajouter l'affiche"}),r.jsx("input",{type:"file",accept:"image/*",className:"hidden",onChange:B=>{const ie=B.target.files?.[0];ie&&($(URL.createObjectURL(ie)),c(ie))}})]})}),r.jsxs("div",{className:"flex flex-col gap-5",children:[r.jsx("input",{type:"text",value:_,onChange:B=>k(B.target.value),placeholder:"Titre de l'edition",className:"font-mango text-3xl md:text-5xl uppercase bg-transparent border-none outline-none text-white placeholder-white/30 w-full focus:ring-2 focus:ring-white/30 rounded-lg px-3 py-2"}),r.jsx("textarea",{value:E,onChange:B=>C(B.target.value),placeholder:"Description de l'edition...",rows:5,className:"text-neutral-300 text-base leading-relaxed bg-transparent border-none outline-none w-full resize-none placeholder-neutral-600 focus:ring-2 focus:ring-white/30 rounded-lg px-3 py-2"}),r.jsxs("div",{className:"rounded-xl border border-green-500/30 bg-green-500/10 p-4",children:[r.jsxs("h4",{className:"text-sm font-medium text-green-400 mb-3 flex items-center gap-2",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-green-400"}),"Periode d'inscriptions"]}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-gray-400 text-xs mb-1",children:"Du"}),r.jsx("input",{type:"datetime-local",value:A,onChange:B=>M(B.target.value),className:he})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-gray-400 text-xs mb-1",children:"Au"}),r.jsx("input",{type:"datetime-local",value:H,onChange:B=>z(B.target.value),className:he})]})]})]}),r.jsx("button",{type:"button",onClick:()=>ne(!0),className:"w-full py-4 rounded-full text-black font-semibold text-lg text-center hover:opacity-90 transition-opacity",style:{backgroundColor:se},children:"Inscrivez-vous"})]})]})]}),O,r.jsxs(Fr,{open:G,onCloseModal:()=>ne(!1),panelClassName:"bg-neutral-900 border border-neutral-800 rounded-2xl",className:"p-8",children:[r.jsx("h2",{className:"font-mango text-white text-3xl md:text-4xl uppercase text-center mb-8",children:"Inscription"}),r.jsxs("div",{className:"flex flex-col gap-5 opacity-50 pointer-events-none",children:[r.jsxs("div",{children:[r.jsx("span",{className:"block text-neutral-400 text-sm mb-1",children:"Nom d'artiste *"}),r.jsx("div",{className:"w-full px-4 py-3 rounded-lg bg-neutral-800 border border-neutral-700 text-neutral-500 text-sm",children:"Votre nom de scene"})]}),r.jsxs("div",{children:[r.jsx("span",{className:"block text-neutral-400 text-sm mb-1",children:"Email *"}),r.jsx("div",{className:"w-full px-4 py-3 rounded-lg bg-neutral-800 border border-neutral-700 text-neutral-500 text-sm",children:"[email protected]"})]}),r.jsxs("div",{children:[r.jsx("span",{className:"block text-neutral-400 text-sm mb-1",children:"Bio"}),r.jsx("div",{className:"w-full px-4 py-3 rounded-lg bg-neutral-800 border border-neutral-700 text-neutral-500 text-sm h-20",children:"Decrivez votre projet artistique..."})]}),r.jsx("div",{className:"w-full py-4 rounded-full text-black/50 font-semibold text-lg text-center",style:{backgroundColor:se+"80"},children:"S'inscrire au Tremplin"})]}),r.jsx("p",{className:"text-center text-xs text-gray-600 mt-4",children:"Apercu du formulaire (non interactif)"})]})]}),b==="candidates"&&r.jsxs(r.Fragment,{children:[r.jsx("section",{className:"px-6 md:px-12 py-8",children:r.jsxs("div",{className:"flex items-center justify-between mb-6",children:[r.jsxs("h2",{className:"font-mango text-white text-3xl uppercase",children:[R.length," candidat",R.length!==1?"s":""," inscrit",R.length!==1?"s":""]}),r.jsxs("span",{className:"text-sm font-medium px-3 py-1 rounded-full "+(y==="open"?"bg-green-500/10 text-green-400":"bg-red-500/10 text-red-400"),children:["Inscriptions ",y==="open"?"ouvertes":"fermees"]})]})}),fe,O]}),b==="events"&&n&&r.jsx(B5,{events:d,allEvents:f,onLinkEvent:h,onUnlinkEvent:m,onUpdateDeadline:g,accentColor:se}),b==="results"&&n&&r.jsx(F5,{events:d,accentColor:se}),r.jsx("div",{className:"h-16"}),P&&r.jsx(H5,{candidate:P,onClose:()=>I(null),onToggleWinner:i,onUploadAvatar:l,accentColor:se})]})},G5={registration:{label:"Inscriptions",color:"#00B894",bg:"rgba(0,184,148,0.1)"},voting:{label:"Votes",color:"#6C5CE7",bg:"rgba(108,92,231,0.1)"},results:{label:"Resultats",color:"#E17055",bg:"rgba(225,112,85,0.1)"}},Q5=()=>{const{data:n=[]}=Xv(),[e,a]=S.useState(null),{data:i=null}=d_(e),{data:l=[]}=y_(e),{data:c=[]}=Em(),[d,f]=S.useState("list"),[h,m]=S.useState(null),g=f_(),y=h_(),b=m_(),v=p_(),N=g_(),w=x_(),_=b_(),k=v_(),E=j_();function C(U,W){m({message:U,notificationType:W})}function A(U){a(U.id),f("edit")}function M(){f("new")}function H(){f("list"),a(null)}function z(U){d==="edit"&&e?y.mutate({id:e,fields:U},{onSuccess:()=>{H(),C("Edition mise a jour","success")},onError:()=>C("Erreur mise a jour","error")}):g.mutate(U,{onSuccess:()=>{H(),C("Edition creee","success")},onError:()=>C("Erreur creation","error")})}function P(U){confirm("Supprimer l'edition "+U.title+" ?")&&b.mutate(U.id,{onSuccess:()=>C("Edition supprimee","success"),onError:()=>C("Erreur suppression","error")})}function I(U){v.mutate(U,{onSuccess:()=>C("Laureat mis a jour","success"),onError:()=>C("Erreur toggle laureat","error")})}function G(U,W){N.mutate({candidateId:U,file:W},{onSuccess:()=>C("Avatar uploade","success"),onError:()=>C("Erreur upload avatar","error")})}function ne(U){e&&w.mutate({editionId:e,file:U},{onSuccess:()=>C("Image mise a jour","success"),onError:()=>C("Erreur upload image","error")})}function L(U){e&&_.mutate({editionId:e,eventId:U},{onSuccess:()=>C("Evenement lie","success"),onError:()=>C("Erreur liaison","error")})}function $(U){e&&k.mutate({editionId:e,eventId:U},{onSuccess:()=>C("Evenement delie","success"),onError:()=>C("Erreur","error")})}function se(U,W){e&&E.mutate({editionId:e,eventId:U,voteDeadline:W},{onSuccess:()=>C("Deadline mise a jour","success"),onError:()=>C("Erreur mise a jour deadline","error")})}const oe=d==="edit"&&(i||n.find(U=>U.id===e))||null;if(d!=="list")return r.jsxs(r.Fragment,{children:[r.jsx(I5,{existing:d==="new"?null:oe?{...oe,candidates:oe.candidates??[]}:null,onSaveEdition:z,onReturnToEditionList:H,onToggleCandidateWinner:I,onUploadCandidateAvatar:G,onUploadEditionImage:ne,tremplinEvents:l,allEvents:c,onLinkEvent:L,onUnlinkEvent:$,onUpdateDeadline:se}),h&&r.jsx(os,{message:h.message,notificationType:h.notificationType,onDismiss:()=>m(null)})]});const R=[{label:"Nouvelle edition",onTrigger:M,variant:"primary"}];return r.jsxs("div",{children:[r.jsx(ds,{title:"Gestion Tremplin",subtitle:n.length+" edition"+(n.length!==1?"s":""),headerActions:R}),n.length===0?r.jsx("div",{className:"rounded-xl border border-dashed border-gray-700 p-12 text-center text-sm text-gray-600",children:"Aucune edition — creez la premiere"}):r.jsx("div",{className:"rounded-xl border border-gray-800 bg-gray-900 divide-y divide-gray-800",children:n.map(U=>{const W=G5[U.phase];return r.jsxs("div",{className:"flex items-center gap-4 px-5 py-3 hover:bg-white/5 transition-colors cursor-pointer",onClick:()=>A(U),children:[r.jsx("span",{className:"text-lg font-bold text-white shrink-0 w-14",children:U.year}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm font-semibold text-white truncate",children:U.title}),r.jsxs("p",{className:"text-xs text-gray-500",children:[Gh(U.registerStart)," — ",Gh(U.voteEnd)]})]}),r.jsxs("span",{className:"text-xs text-gray-400 shrink-0",children:[U._count?.candidates??0," candidat",(U._count?.candidates??0)!==1?"s":""]}),r.jsx("span",{className:"text-xs font-medium px-2.5 py-1 rounded-full shrink-0",style:{backgroundColor:W.bg,color:W.color},children:W.label}),r.jsx("div",{className:"flex gap-1.5 shrink-0",onClick:he=>he.stopPropagation(),children:r.jsx("button",{type:"button",onClick:()=>P(U),className:"text-xs font-medium px-2.5 py-1 rounded-lg bg-red-500/10 text-red-400 hover:bg-red-500/20 transition-colors",children:"Supprimer"})})]},U.id)})}),h&&r.jsx(os,{message:h.message,notificationType:h.notificationType,onDismiss:()=>m(null)})]})},K5=[{bgKey:"ticketAvailableColor",textKey:"ticketAvailableTextColor",label:"Disponible",description:"Prendre ma place"},{bgKey:"ticketLastTicketsColor",textKey:"ticketLastTicketsTextColor",label:"Dernieres places",description:"Dernieres places"},{bgKey:"ticketSoldOutColor",textKey:"ticketSoldOutTextColor",label:"Complet",description:"File d'attente"}],Y5={ticketAvailableColor:"#22c55e",ticketAvailableTextColor:"#000000",ticketLastTicketsColor:"#fbbf24",ticketLastTicketsTextColor:"#000000",ticketSoldOutColor:"#f43f5e",ticketSoldOutTextColor:"#ffffff"},$5=()=>{const{data:n}=VC(),e=r_(),[a,i]=S.useState(null),[l,c]=S.useState(null),d=a??(n?{ticketAvailableColor:n.ticketAvailableColor,ticketAvailableTextColor:n.ticketAvailableTextColor,ticketLastTicketsColor:n.ticketLastTicketsColor,ticketLastTicketsTextColor:n.ticketLastTicketsTextColor,ticketSoldOutColor:n.ticketSoldOutColor,ticketSoldOutTextColor:n.ticketSoldOutTextColor}:Y5);function f(){e.mutate(d,{onSuccess:()=>c({message:"Parametres enregistres",notificationType:"success"}),onError:()=>c({message:"Erreur sauvegarde",notificationType:"error"})})}function h(m,g){i(y=>({...y??d,[m]:g}))}return r.jsxs("div",{children:[r.jsx(ds,{title:"Parametres",subtitle:"Couleurs des boutons billetterie",headerActions:[{label:e.isPending?"Enregistrement...":"Enregistrer",onTrigger:f,variant:"primary"}]}),r.jsxs("div",{className:"rounded-xl border border-gray-800 bg-gray-900 p-6",children:[r.jsx("h3",{className:"text-white font-semibold text-sm mb-6",children:"Couleurs des boutons de billetterie"}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:K5.map(m=>r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsx("p",{className:"text-white text-sm font-medium",children:m.label}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("input",{type:"color",value:d[m.bgKey],onChange:g=>h(m.bgKey,g.target.value),className:"w-8 h-8 rounded-lg border border-gray-700 bg-transparent cursor-pointer shrink-0"}),r.jsx("span",{className:"text-gray-400 text-xs",children:"Fond"}),r.jsx("input",{type:"color",value:d[m.textKey],onChange:g=>h(m.textKey,g.target.value),className:"w-8 h-8 rounded-lg border border-gray-700 bg-transparent cursor-pointer shrink-0 ml-2"}),r.jsx("span",{className:"text-gray-400 text-xs",children:"Texte"})]}),r.jsx("div",{className:"flex items-center justify-center gap-2 px-4 py-2.5 rounded-full text-sm font-semibold",style:{backgroundColor:d[m.bgKey],color:d[m.textKey]},children:m.description})]},m.bgKey))})]}),l&&r.jsx(os,{message:l.message,notificationType:l.notificationType,onDismiss:()=>c(null)})]})},la="/assets/block2-CrB8EJtj.jpg",Rs="/assets/block3-BrIQdNoh.jpeg",mo="/assets/logo-orizon-sud-Ds7vWQYt.png",Zt="w-full bg-transparent border-b border-dashed border-neutral-700 focus:border-white outline-none py-3 text-white placeholder-neutral-500 transition-colors",Pl="bg-transparent border-b border-dashed border-white/30 focus:border-white/60 outline-none placeholder-white/30 transition-colors",ge="bg-transparent border-b border-dashed border-black/20 focus:border-black/40 outline-none placeholder-black/30 transition-colors",X5=({draft:n,updateFieldValue:e,renderClickableImage:a})=>{const i=l=>n[l]||"";return r.jsxs("div",{className:"bg-white text-black",children:[r.jsxs("section",{className:"pt-32 px-8 md:px-16",children:[r.jsx("h1",{className:"font-mango text-3xl md:text-5xl lg:text-6xl uppercase mb-4 leading-tight",children:r.jsx("textarea",{placeholder:"Titre hero (ex: Le Makeda & Orizon Sud : un projet culturel commun)",value:i("hero.title"),onChange:l=>e("hero.title",l.target.value),rows:2,className:"w-full resize-none "+ge})}),r.jsx("input",{type:"text",placeholder:"Sous-titre hero (optionnel)",value:i("hero.subtitle"),onChange:l=>e("hero.subtitle",l.target.value),className:"w-full text-lg md:text-xl text-neutral-500 mb-8 "+ge}),a("hero.image",Rs,"w-full h-[60vh] grayscale rounded-none mb-12")]}),r.jsxs("section",{className:"px-8 md:px-16 py-24 md:py-32 flex flex-col items-center bg-white",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest text-neutral-400 mb-6",children:"Bloc intro · animation scroll-reveal · pas d'image"}),r.jsx("input",{type:"text",placeholder:"Titre intro (laisser vide pour ne pas afficher)",value:i("intro.title"),onChange:l=>e("intro.title",l.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-10 text-center w-full max-w-4xl "+ge}),r.jsx("textarea",{placeholder:"Corps intro (texte long, plusieurs paragraphes separes par lignes vides)",value:i("intro.body"),onChange:l=>e("intro.body",l.target.value),rows:12,className:"text-base md:text-lg leading-relaxed text-justify max-w-4xl w-full resize-n
134one "+ge})]}),r.jsxs("section",{className:"bg-black text-white px-8 md:px-16 py-16 grid md:grid-cols-2 gap-8 items-center",children:[a("convivial.image",la,"w-full h-[400px] rounded-2xl overflow-hidden"),r.jsxs("div",{children:[r.jsx("input",{type:"text",placeholder:"Titre convivial",value:i("convivial.title"),onChange:l=>e("convivial.title",l.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-4 w-full text-white bg-transparent "+ge,style:{color:"white"}}),r.jsx("textarea",{placeholder:"Corps convivial",value:i("convivial.body"),onChange:l=>e("convivial.body",l.target.value),rows:8,className:"text-lg leading-relaxed text-neutral-300 w-full resize-none bg-transparent "+ge,style:{color:"#d4d4d4"}})]})]}),r.jsxs("section",{className:"bg-black text-white px-8 md:px-16 py-16 grid md:grid-cols-2 gap-8 items-center border-t border-neutral-800",children:[a("orizonSud.image",la,"w-full h-[400px] rounded-2xl overflow-hidden order-2 md:order-1"),r.jsxs("div",{className:"order-1 md:order-2",children:[r.jsxs("div",{className:"flex flex-col md:flex-row items-start md:items-center gap-4 mb-6",children:[r.jsx("img",{src:mo,alt:"Orizon Sud",className:"h-16 md:h-20 invert"}),r.jsx("input",{type:"text",placeholder:"Titre Orizon Sud",value:i("orizonSud.title"),onChange:l=>e("orizonSud.title",l.target.value),className:"font-jost font-light text-2xl md:text-4xl w-full bg-transparent text-white "+ge,style:{color:"white"}})]}),r.jsx("textarea",{placeholder:"Corps Orizon Sud",value:i("orizonSud.body"),onChange:l=>e("orizonSud.body",l.target.value),rows:8,className:"text-lg leading-relaxed w-full resize-none bg-transparent text-neutral-300 "+ge,style:{color:"#d4d4d4"}})]})]}),r.jsxs("section",{className:"bg-[#1938e6] text-white px-8 md:px-16 py-16",children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-4",children:[r.jsx("input",{type:"text",placeholder:"Titre 1 (ex: Devenir)",value:i("benevole.title"),onChange:l=>e("benevole.title",l.target.value),className:"font-jost font-light text-3xl md:text-5xl w-full bg-transparent text-white "+ge,style:{color:"white"}}),r.jsx("input",{type:"text",placeholder:"Marque (ex: Bénélovers — italique serif)",value:i("benevole.titleBrand"),onChange:l=>e("benevole.titleBrand",l.target.value),className:"italic text-3xl md:text-5xl w-full bg-transparent text-white "+ge,style:{color:"white",fontFamily:"serif"}})]}),r.jsx("textarea",{placeholder:"Corps bénévole",value:i("benevole.body"),onChange:l=>e("benevole.body",l.target.value),rows:4,className:"text-lg leading-relaxed w-full resize-none mb-4 bg-transparent text-white "+ge,style:{color:"white"}}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsx("input",{type:"text",placeholder:"Label CTA (ex: Je deviens bénévole)",value:i("benevole.ctaLabel"),onChange:l=>e("benevole.ctaLabel",l.target.value),className:"w-full bg-white text-black "+ge,style:{color:"black"}}),r.jsx("input",{type:"url",placeholder:"URL formulaire externe (Google Forms)",value:i("benevole.ctaUrl"),onChange:l=>e("benevole.ctaUrl",l.target.value),className:"w-full bg-white text-black "+ge,style:{color:"black"}})]})]}),r.jsxs("section",{className:"bg-black text-white px-8 md:px-16 py-16",children:[r.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mb-4",children:[r.jsx("input",{type:"text",placeholder:"Titre 1 (ex: Devenir)",value:i("mecenat.title"),onChange:l=>e("mecenat.title",l.target.value),className:"font-jost font-light text-3xl md:text-5xl w-full bg-transparent text-white "+ge,style:{color:"white"}}),r.jsx("input",{type:"text",placeholder:"Marque (ex: Mécène — italique serif)",value:i("mecenat.titleBrand"),onChange:l=>e("mecenat.titleBrand",l.target.value),className:"italic text-3xl md:text-5xl w-full bg-transparent text-white "+ge,style:{color:"white",fontFamily:"serif"}})]}),r.jsx("textarea",{placeholder:"Corps mécénat (texte long, plusieurs paragraphes)",value:i("mecenat.body"),onChange:l=>e("mecenat.body",l.target.value),rows:10,className:"text-lg leading-relaxed text-neutral-300 w-full resize-none mb-4 bg-transparent "+ge,style:{color:"#d4d4d4"}}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsx("input",{type:"text",placeholder:"Label CTA (ex: Je deviens mécène)",value:i("mecenat.ctaLabel"),onChange:l=>e("mecenat.ctaLabel",l.target.value),className:"w-full bg-white text-black "+ge,style:{color:"black"}}),r.jsx("input",{type:"text",placeholder:"Note (ex: avantages fiscaux du mécénat)",value:i("mecenat.note"),onChange:l=>e("mecenat.note",l.target.value),className:"w-full bg-transparent text-neutral-300 text-sm "+ge,style:{color:"#d4d4d4"}})]})]}),r.jsxs("section",{className:"bg-white text-black px-8 md:px-16 py-16",children:[r.jsx("input",{type:"text",placeholder:"Titre partenaires",value:i("partners.title"),onChange:l=>e("partners.title",l.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-8 w-full "+ge}),r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"block text-xs uppercase tracking-widest text-neutral-500 mb-2",children:["Partenaires institutionnels (JSON tableau : [",'{"name":"...","logoUrl":"...","url":"..."}',", ...])"]}),r.jsx("textarea",{placeholder:'[{"name":"Région Sud","logoUrl":"/uploads/region.png","url":"https://..."}]',value:i("partners.institutional"),onChange:l=>e("partners.institutional",l.target.value),rows:5,className:"text-sm font-mono w-full resize-none "+ge})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-500 mb-2",children:"Partenaires médias (même format JSON)"}),r.jsx("textarea",{placeholder:'[{"name":"Mouv","logoUrl":"/uploads/mouv.png","url":"https://..."}]',value:i("partners.media"),onChange:l=>e("partners.media",l.target.value),rows:5,className:"text-sm font-mono w-full resize-none "+ge})]})]})]})]})};function an(n,e){return n?n.startsWith("http")?n:bt+n:e}const Z5=["fr","en"],hh="le-projet",J5=()=>{const[n,e]=S.useState("fr"),{data:a={}}=Pr(hh,n),i=Br(),l=uo(),[c,d]=S.useState(null),[f,h]=S.useState(null),m=S.useRef({}),g=c??a,[y,b]=S.useState(n);n!==y&&(d(null),b(n));function v(k,E){d(C=>({...C??g,[k]:E}))}function N(){i.mutate({slug:hh,locale:n,content:g},{onSuccess:()=>h({message:"Contenu enregistre",notificationType:"success"}),onError:()=>h({message:"Erreur sauvegarde",notificationType:"error"})})}function w(k,E){l.mutate({slug:hh,fieldKey:k,file:E},{onSuccess:C=>v(k,C),onError:()=>h({message:"Erreur upload image",notificationType:"error"})})}function _(k,E,C){return r.jsxs("div",{className:"relative group cursor-pointer "+C,onClick:()=>m.current[k]?.click(),children:[r.jsx("input",{ref:A=>{m.current[k]=A},type:"file",accept:"image/*",className:"hidden",onChange:A=>{const M=A.target.files?.[0];M&&w(k,M)}}),r.jsx("img",{src:an(g[k],E),alt:"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:r.jsx("span",{className:"text-white text-sm font-medium",children:"Changer l'image"})})]})}return r.jsxs("div",{className:"-m-8",children:[r.jsx("div",{className:"sticky top-0 z-50 bg-gray-950/95 backdrop-blur px-8 py-4 flex items-center justify-between border-b border-gray-800",children:r.jsx(ds,{title:"Le projet",subtitle:"Contenu de la page",headerActions:[{label:i.isPending?"Enregistrement...":"Enregistrer",onTrigger:N,variant:"primary"}]})}),r.jsx("div",{className:"sticky top-[73px] z-40 bg-gray-950/95 backdrop-blur px-8 py-3 border-b border-gray-800",children:r.jsx("div",{className:"flex gap-2",children:Z5.map(k=>r.jsx("button",{type:"button",className:"px-4 py-1.5 rounded-lg text-sm font-medium transition-colors "+(n===k?"bg-white text-gray-950":"bg-gray-800 text-gray-400 hover:bg-gray-700"),onClick:()=>e(k),children:k.toUpperCase()},k))})}),r.jsx(X5,{draft:g,updateFieldValue:v,renderClickableImage:_}),f&&r.jsx(os,{message:f.message,notificationType:f.notificationType,onDismiss:()=>h(null)})]})},oa="/assets/block1-CttnRrHP.jpg",Au="/assets/block4-BDUPJ8cV.png",W5=[{key:"accompagnement",label:"Accompagnement d'artistes",fallback:oa,reverse:!1},{key:"residences",label:"Résidences",fallback:la,reverse:!0},{key:"actions",label:"Actions culturelles",fallback:Rs,reverse:!1},{key:"ateliers",label:"Ateliers",fallback:Au,reverse:!0}],ek=({draft:n,updateFieldValue:e,renderClickableImage:a})=>{const i=l=>n[l]||"";return r.jsxs("div",{className:"bg-white text-black",children:[r.jsxs("section",{className:"pt-32 px-8 md:px-16 bg-white text-black",children:[r.jsx("h1",{className:"font-mango text-5xl md:text-7xl lg:text-8xl uppercase leading-[0.9] mb-8",children:r.jsx("input",{type:"text",placeholder:"Titre hero (ex: Activités)",value:i("hero.title"),onChange:l=>e("hero.title",l.target.value),className:"w-full "+ge})}),r.jsx("textarea",{placeholder:"Intro 3 pôles (longs paragraphes avec ➔ bullets)",value:i("intro.body"),onChange:l=>e("intro.body",l.target.value),rows:8,className:"text-lg md:text-xl text-neutral-700 max-w-3xl w-full resize-none mb-12 text-ju
134stify "+ge})]}),r.jsxs("section",{className:"bg-white text-black px-8 md:px-16 py-16 grid md:grid-cols-2 gap-8 items-stretch",children:[r.jsxs("div",{children:[r.jsx("input",{type:"text",placeholder:"Titre Accompagnement d'artistes",value:i("accompagnement.title"),onChange:l=>e("accompagnement.title",l.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-4 w-full "+ge}),r.jsx("textarea",{placeholder:"Corps Accompagnement (texte long)",value:i("accompagnement.body"),onChange:l=>e("accompagnement.body",l.target.value),rows:10,className:"text-lg leading-relaxed text-neutral-700 w-full resize-none mb-4 text-justify "+ge}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsx("input",{type:"text",placeholder:"Label CTA (ex: CONTACTEZ-NOUS)",value:i("accompagnement.ctaLabel"),onChange:l=>e("accompagnement.ctaLabel",l.target.value),className:"w-full "+ge}),r.jsx("input",{type:"text",placeholder:"CTA subject (ex: accompagnement)",value:i("accompagnement.ctaSubject"),onChange:l=>e("accompagnement.ctaSubject",l.target.value),className:"w-full "+ge})]})]}),a("accompagnement.image",oa,"w-full h-[400px] md:h-[500px] rounded-2xl overflow-hidden")]}),r.jsxs("section",{className:"bg-neutral-50 text-black px-8 md:px-16 py-16 md:py-20",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest text-neutral-400 mb-4",children:"Sous-bloc Accompagnement · sans image, fond légèrement gris"}),r.jsx("input",{type:"text",placeholder:"Titre sous-bloc accompagnement",value:i("accompagnement2.title"),onChange:l=>e("accompagnement2.title",l.target.value),className:"font-mango text-2xl md:text-3xl uppercase mb-6 w-full max-w-4xl "+ge}),r.jsx("textarea",{placeholder:"Corps sous-bloc (support artistique technique, communication, administratif)",value:i("accompagnement2.body"),onChange:l=>e("accompagnement2.body",l.target.value),rows:8,className:"text-lg leading-relaxed text-neutral-700 max-w-4xl w-full resize-none text-justify "+ge})]}),W5.slice(1).map(l=>r.jsx("section",{className:"bg-white text-black px-8 md:px-16 py-16 grid md:grid-cols-2 gap-8 items-stretch",children:l.reverse?r.jsxs(r.Fragment,{children:[a(`${l.key}.image`,l.fallback,"w-full h-[400px] md:h-[500px] rounded-2xl overflow-hidden"),r.jsxs("div",{children:[r.jsx("input",{type:"text",placeholder:`Titre ${l.label}`,value:i(`${l.key}.title`),onChange:c=>e(`${l.key}.title`,c.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-4 w-full "+ge}),r.jsx("textarea",{placeholder:`Corps ${l.label}`,value:i(`${l.key}.body`),onChange:c=>e(`${l.key}.body`,c.target.value),rows:10,className:"text-lg leading-relaxed text-neutral-700 w-full resize-none mb-4 text-justify "+ge}),l.key==="residences"&&r.jsx("input",{type:"text",placeholder:"Label CTA (ex: Poser une résidence)",value:i(`${l.key}.ctaLabel`),onChange:c=>e(`${l.key}.ctaLabel`,c.target.value),className:"w-full md:w-1/2 "+ge})]})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsx("input",{type:"text",placeholder:`Titre ${l.label}`,value:i(`${l.key}.title`),onChange:c=>e(`${l.key}.title`,c.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-4 w-full "+ge}),r.jsx("textarea",{placeholder:`Corps ${l.label}`,value:i(`${l.key}.body`),onChange:c=>e(`${l.key}.body`,c.target.value),rows:10,className:"text-lg leading-relaxed text-neutral-700 w-full resize-none mb-4 text-justify "+ge})]}),a(`${l.key}.image`,l.fallback,"w-full h-[400px] md:h-[500px] rounded-2xl overflow-hidden")]})},l.key)),r.jsxs("section",{className:"bg-white text-black px-8 md:px-16 py-16 border-t border-neutral-200",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest text-neutral-400 mb-4",children:"Scrolling words · affichés en gros en bas de page"}),r.jsx("input",{type:"text",placeholder:"Ligne 1 (ex: PROGRAMMATION. RÉSIDENCES. ACCOMPAGNEMENT.)",value:i("scrolling.line1"),onChange:l=>e("scrolling.line1",l.target.value),className:"font-mango text-2xl md:text-4xl uppercase w-full mb-2 "+ge}),r.jsx("input",{type:"text",placeholder:"Ligne 2 (ex: CONCERTS. DJ SETS. SHOWCASES. ATELIERS.)",value:i("scrolling.line2"),onChange:l=>e("scrolling.line2",l.target.value),className:"font-mango text-2xl md:text-4xl uppercase w-full "+ge})]})]})},tk=["fr","en"],mh="activites",nk=()=>{const[n,e]=S.useState("fr"),{data:a={}}=Pr(mh,n),i=Br(),l=uo(),[c,d]=S.useState(null),[f,h]=S.useState(null),m=S.useRef({}),g=c??a,[y,b]=S.useState(n);n!==y&&(d(null),b(n));function v(k,E){d(C=>({...C??g,[k]:E}))}function N(){i.mutate({slug:mh,locale:n,content:g},{onSuccess:()=>h({message:"Contenu enregistre",notificationType:"success"}),onError:()=>h({message:"Erreur sauvegarde",notificationType:"error"})})}function w(k,E){l.mutate({slug:mh,fieldKey:k,file:E},{onSuccess:C=>v(k,C),onError:()=>h({message:"Erreur upload image",notificationType:"error"})})}function _(k,E,C){return r.jsxs("div",{className:"relative group cursor-pointer "+C,onClick:()=>m.current[k]?.click(),children:[r.jsx("input",{ref:A=>{m.current[k]=A},type:"file",accept:"image/*",className:"hidden",onChange:A=>{const M=A.target.files?.[0];M&&w(k,M)}}),r.jsx("img",{src:an(g[k],E),alt:"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:r.jsx("span",{className:"text-white text-sm font-medium",children:"Changer l'image"})})]})}return r.jsxs("div",{className:"-m-8",children:[r.jsx("div",{className:"sticky top-0 z-50 bg-gray-950/95 backdrop-blur px-8 py-4 flex items-center justify-between border-b border-gray-800",children:r.jsx(ds,{title:"Activités",subtitle:"Contenu de la page",headerActions:[{label:i.isPending?"Enregistrement...":"Enregistrer",onTrigger:N,variant:"primary"}]})}),r.jsx("div",{className:"sticky top-[73px] z-40 bg-gray-950/95 backdrop-blur px-8 py-3 border-b border-gray-800",children:r.jsx("div",{className:"flex gap-2",children:tk.map(k=>r.jsx("button",{type:"button",className:"px-4 py-1.5 rounded-lg text-sm font-medium transition-colors "+(n===k?"bg-white text-gray-950":"bg-gray-800 text-gray-400 hover:bg-gray-700"),onClick:()=>e(k),children:k.toUpperCase()},k))})}),r.jsx(ek,{draft:g,updateFieldValue:v,renderClickableImage:_}),f&&r.jsx(os,{message:f.message,notificationType:f.notificationType,onDismiss:()=>h(null)})]})};function sk(n){if(!n)return[];try{const e=JSON.parse(n);return Array.isArray(e)?e.map(a=>({url:a?.url??"",alt:a?.alt??""})):[]}catch{return[]}}const ak=({value:n,onChange:e,uploadImage:a,defaultImages:i,onError:l})=>{const c=sk(n),d=S.useRef(null),[f,h]=S.useState(!1),[m,g]=S.useState(!1);function y(k){e(JSON.stringify(k))}async function b(){if(!(!i||i.length===0)){g(!0);try{const k=[];for(const E of i){const A=await(await fetch(E.src)).blob(),M=new File([A],E.filename,{type:A.type||"image/jpeg"}),H=await a("gallery",M);k.push({url:H,alt:E.alt})}y(k)}catch{l?.("Erreur lors de l'import des photos par defaut")}finally{g(!1)}}}function v(k,E){const C=c.slice();C[k]={...C[k],alt:E},y(C)}function N(k){y(c.filter((E,C)=>C!==k))}function w(k,E){const C=k+E;if(C<0||C>=c.length)return;const A=c.slice();[A[k],A[C]]=[A[C],A[k]],y(A)}async function _(k){if(!(!k||k.length===0)){h(!0);try{const E=[];for(const C of Array.from(k)){const A=await a("gallery",C);E.push({url:A,alt:""})}y([...c,...E])}catch{l?.("Erreur lors de l'upload d'une photo")}finally{h(!1),d.current&&(d.current.value="")}}}return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsxs("p",{className:"text-xs uppercase tracking-widest text-neutral-500",children:[c.length," photo",c.length>
1341?"s":""," publiee",c.length>1?"s":""]}),r.jsx("button",{type:"button",disabled:f,onClick:()=>d.current?.click(),className:"px-4 py-2 rounded-lg bg-black text-white text-sm font-medium hover:bg-neutral-800 transition-colors disabled:opacity-50",children:f?"Upload en cours...":"+ Ajouter des photos"}),r.jsx("input",{ref:d,type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:k=>_(k.target.files)})]}),c.length===0&&i&&i.length>0?r.jsxs("div",{className:"rounded-2xl border border-amber-300 bg-amber-50 p-4",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3 gap-4",children:[r.jsxs("p",{className:"text-sm text-amber-800",children:["Ces ",i.length," photos sont celles affichees par defaut sur le site (elles ne sont pas encore modifiables car codees en dur). Importez-les pour pouvoir les modifier, reordonner ou supprimer."]}),r.jsx("button",{type:"button",disabled:m,onClick:b,className:"shrink-0 px-4 py-2 rounded-lg bg-amber-600 text-white text-sm font-medium hover:bg-amber-700 transition-colors disabled:opacity-50",children:m?"Import en cours...":"Importer ces photos"})]}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:i.map((k,E)=>r.jsxs("div",{className:"rounded-xl overflow-hidden border border-amber-200 bg-white",children:[r.jsx("div",{className:"aspect-[4/3] bg-neutral-200",children:r.jsx("img",{src:k.src,alt:k.alt,className:"w-full h-full object-cover"})}),r.jsx("p",{className:"text-xs text-neutral-500 p-2 truncate",children:k.alt})]},E))})]}):c.length===0?r.jsx("button",{type:"button",onClick:()=>d.current?.click(),className:"w-full border-2 border-dashed border-neutral-300 rounded-2xl py-12 text-neutral-400 hover:border-neutral-400 hover:text-neutral-500 transition-colors",children:"Aucune photo. Cliquez pour en ajouter."}):r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:c.map((k,E)=>r.jsxs("div",{className:"rounded-2xl border border-neutral-200 bg-neutral-50 overflow-hidden",children:[r.jsxs("div",{className:"relative aspect-[4/3] bg-neutral-200",children:[r.jsx("img",{src:an(k.url,""),alt:k.alt,className:"w-full h-full object-cover"}),r.jsx("button",{type:"button",onClick:()=>N(E),title:"Supprimer",className:"absolute top-2 right-2 w-7 h-7 rounded-full bg-black/70 text-white text-sm hover:bg-red-600 transition-colors flex items-center justify-center",children:"×"})]}),r.jsxs("div",{className:"p-3",children:[r.jsx("input",{type:"text",placeholder:"Texte alternatif (alt)",value:k.alt,onChange:C=>v(E,C.target.value),className:"w-full text-sm mb-2 "+ge}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex gap-1",children:[r.jsx("button",{type:"button",onClick:()=>w(E,-1),disabled:E===0,title:"Deplacer vers la gauche",className:"w-7 h-7 rounded-lg border border-neutral-300 text-neutral-600 hover:bg-neutral-200 disabled:opacity-30 transition-colors",children:"←"}),r.jsx("button",{type:"button",onClick:()=>w(E,1),disabled:E===c.length-1,title:"Deplacer vers la droite",className:"w-7 h-7 rounded-lg border border-neutral-300 text-neutral-600 hover:bg-neutral-200 disabled:opacity-30 transition-colors",children:"→"})]}),r.jsxs("span",{className:"text-xs text-neutral-400",children:["#",E+1]})]})]})]},E))})]})};async function ik(){return Ne("/documents/admin/all")}async function rk(n){return Ne("/documents",{method:"POST",body:JSON.stringify(n)})}async function lk(n,e){return Ne(`/documents/${n}`,{method:"PATCH",body:JSON.stringify(e)})}async function ok(n){return Ne(`/documents/${n}`,{method:"DELETE"})}async function ck(n,e){const a=new FormData;return a.append("file",e),(await Ne(`/documents/${n}/upload`,{method:"POST",body:a})).url}async function uk(){return Ne("/documents")}const po=["adminDocuments"];function E1(){return rt({queryKey:["publicDocuments"],queryFn:uk})}function k1(){return rt({queryKey:po,queryFn:ik})}function T1(){const n=Le();return De({mutationFn:e=>rk(e),onSuccess:()=>n.invalidateQueries({queryKey:po})})}function dk(){const n=Le();return De({mutationFn:({id:e,payload:a})=>lk(e,a),onSuccess:()=>n.invalidateQueries({queryKey:po})})}function A1(){const n=Le();return De({mutationFn:e=>ok(e),onSuccess:()=>n.invalidateQueries({queryKey:po})})}function M1(){const n=Le();return De({mutationFn:({slug:e,file:a})=>ck(e,a),onSuccess:()=>n.invalidateQueries({queryKey:po})})}const Om="/assets/departement-13-BkNcEwAy.png",Rm="/assets/prefet-region-DP5tQXEL.png",Dm="/assets/region-sud-CLlqA9n-.jpg",Lm="/assets/ville-marseille-couleur-DIidocgx.png",zm="/assets/lrdr-C0pcaF4F.png",Um="/assets/cite-metisse-CqoXfnoU.jpg",qm="/assets/la-provence-ZWv7gzOz.png",Pm="/assets/nostalgie-D-AL7N7w.png",Bm="/assets/nouvelle-vague-Bhy-bWxJ.png",Fm="/assets/nrj-B7NGVdiW.png",Hm="/assets/radio-grenouille-BWAi5yVu.png",Vm="/assets/zebuline-DRzVXouG.png",O1=[{value:"logo",label:"Logos Makeda / Orizon Sud"},{value:"partners",label:"Partenaires institutionnels"},{value:"medias",label:"Partenaires médias"}],fk=O1.map(n=>n.value),hk=[{slug:"logo-makeda",label:"Logo MAKEDA",category:"logo",src:qr},{slug:"logo-orizon-sud",label:"Logo Orizon Sud",category:"logo",src:mo}
134,{slug:"logo-departement-13",label:"Département des Bouches-du-Rhône",category:"partners",src:Om},{slug:"logo-prefet-region",label:"Préfet de Région PACA",category:"partners",src:Rm},{slug:"logo-region-sud",label:"Région Sud",category:"partners",src:Dm},{slug:"logo-ville-marseille",label:"Ville de Marseille",category:"partners",src:Lm},{slug:"logo-lrdr",label:"La Responsabilité des Rêves",category:"partners",src:zm},{slug:"logo-la-provence",label:"La Provence",category:"medias",src:qm},{slug:"logo-nrj",label:"NRJ",category:"medias",src:Fm},{slug:"logo-nostalgie",label:"Nostalgie",category:"medias",src:Pm},{slug:"logo-radio-grenouille",label:"Radio Grenouille",category:"medias",src:Hm},{slug:"logo-nouvelle-vague",label:"Nouvelle Vague",category:"medias",src:Bm},{slug:"logo-zebuline",label:"Zébuline",category:"medias",src:Vm},{slug:"logo-cite-metisse",label:"La Cité Métisse",category:"medias",src:Um}],Nb=n=>new Promise(e=>setTimeout(e,n));function mk(n){return n.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function pk(n){const e=n.match(/\.(png|jpe?g|webp|gif|svg)$/i);return e?e[1].toLowerCase():"png"}const gk=({onError:n,onSuccess:e})=>{const{data:a=[]}=k1(),i=T1(),l=M1(),c=A1(),d=S.useRef(null),f=S.useRef("logo"),[h,m]=S.useState(!1),[g,y]=S.useState(!1),b=a.filter(C=>fk.includes(C.category)),v=C=>b.filter(A=>A.category===C);function N(C){f.current=C,d.current?.click()}async function w(C,A,M,H){await i.mutateAsync({slug:C,label:A,category:M}),await l.mutateAsync({slug:C,file:H})}async function _(C){if(!C||C.length===0)return;const A=f.current;m(!0);try{for(const M of Array.from(C)){const H=mk(M.name.replace(/\.[^.]+$/,""))||"logo",z=`${A}-${H}-${Date.now().toString(36)}`,P=M.name.replace(/\.[^.]+$/,"");await w(z,P,A,M),await Nb(200)}e?.("Logo(s) ajouté(s)")}catch{n?.("Erreur lors de l'ajout du logo")}finally{m(!1),d.current&&(d.current.value="")}}async function k(C){if(window.confirm(`Supprimer le logo "${C.label}" ?`))try{await c.mutateAsync(C.id),e?.("Logo supprimé")}catch{n?.("Erreur lors de la suppression")}}async function E(){const C=new Set(a.map(M=>M.slug)),A=hk.filter(M=>!C.has(M.slug));if(A.length!==0){y(!0);try{for(const M of A){const z=await(await fetch(M.src)).blob(),P=new File([z],`${M.slug}.${pk(M.src)}`,{type:z.type||"image/png"});await w(M.slug,M.label,M.category,P),await Nb(250)}e?.("Logos par défaut importés")}catch{n?.("Erreur lors de l'import des logos par défaut (réessayez dans quelques secondes)")}finally{y(!1)}}}return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-6 gap-4",children:[r.jsx("p",{className:"text-neutral-600 max-w-2xl text-sm",children:"Logos affichés (et téléchargeables) sur la page Espace pro. Ajoutez, remplacez ou supprimez-les ici."}),b.length===0&&r.jsx("button",{type:"button",disabled:g,onClick:E,className:"shrink-0 px-4 py-2 rounded-lg bg-amber-600 text-white text-sm font-medium hover:bg-amber-700 transition-colors disabled:opacity-50",children:g?"Import en cours...":"Importer les logos par défaut"})]}),r.jsx("input",{ref:d,type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:C=>_(C.target.files)}),r.jsx("div",{className:"space-y-8",children:O1.map(({value:C,label:A})=>{const M=v(C);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("h3",{className:"text-xs uppercase tracking-widest text-neutral-500",children:A}),r.jsx("button",{type:"button",disabled:h,onClick:()=>N(C),className:"px-3 py-1.5 rounded-lg bg-black text-white text-xs font-medium hover:bg-neutral-800 transition-colors disabled:opacity-50",children:h?"...":"+ Ajouter"})]}),M.length===0?r.jsx("p",{className:"text-sm text-neutral-400 italic",children:"Aucun logo dans cette catégorie."}):r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:M.map(H=>r.jsxs("div",{className:"rounded-2xl border border-neutral-200 bg-neutral-50 overflow-hidden",children:[r.jsxs("div",{className:"relative h-24 bg-white flex items-center justify-center p-4",children:[H.fileUrl?r.jsx("img",{src:an(H.fileUrl,""),alt:H.label,className:"max-h-full max-w-full object-contain"}):r.jsx("span",{className:"text-xs text-neutral-400",children:"Aucun fichier"}),r.jsx("button",{type:"button",onClick:()=>k(H),title:"Supprimer",className:"absolute top-2 right-2 w-7 h-7 rounded-full bg-black/70 text-white text-sm hover:bg-red-600 transition-colors flex items-center justify-center",children:"×"})]}),r.jsx("p",{className:"text-xs text-neutral-600 p-2 truncate text-center",children:H.label})]},H.id))})]},C)})})]})},xk=[{src:oa,filename:"makeda-galerie-1.jpg",alt:"Le Makeda - vue salle"},{src:la,filename:"makeda-galerie-2.jpg",alt:"Le Makeda - bar"},{src:Rs,filename:"makeda-galerie-3.jpg",alt:"Le Makeda - scene"},{src:Au,filename:"makeda-galerie-4.png",alt:"Le Makeda - mezzanine"}
134],yk=[{key:"capacite",defaultLabel:"Capacité & espaces"},{key:"scene",defaultLabel:"Configuration scénique"},{key:"son",defaultLabel:"Sonorisation"},{key:"lumiere",defaultLabel:"Éclairage"},{key:"video",defaultLabel:"Vidéo (selon projets)"},{key:"regie",defaultLabel:"Régie & exploitation"},{key:"residences",defaultLabel:"Résidences & captations"}],bk=({draft:n,updateFieldValue:e,renderClickableImage:a,uploadImage:i,notifyError:l})=>{const c=d=>n[d]||"";return r.jsxs("div",{className:"bg-white text-black",children:[r.jsxs("section",{className:"pt-32 px-8 md:px-16",children:[r.jsx("h1",{className:"font-mango text-5xl md:text-7xl uppercase mb-4",children:r.jsx("input",{type:"text",placeholder:"Titre hero",value:c("hero.title"),onChange:d=>e("hero.title",d.target.value),className:"w-full "+ge})}),r.jsx("input",{type:"text",placeholder:"Sous-titre hero",value:c("hero.subtitle"),onChange:d=>e("hero.subtitle",d.target.value),className:"w-full text-neutral-500 mb-8 "+ge}),a("hero.image",Rs,"w-full h-[60vh] rounded-none mb-12")]}),r.jsxs("section",{className:"px-8 md:px-16 py-16",children:[r.jsx("input",{type:"text",placeholder:"Titre fiche technique",value:c("fiche.title"),onChange:d=>e("fiche.title",d.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-6 w-full "+ge}),r.jsx("textarea",{placeholder:"Introduction fiche technique",value:c("fiche.intro"),onChange:d=>e("fiche.intro",d.target.value),rows:3,className:"text-lg leading-relaxed w-full resize-none mb-8 "+ge}),r.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:yk.map(({key:d,defaultLabel:f})=>r.jsxs("div",{className:"rounded-2xl border border-neutral-200 p-6 bg-neutral-50",children:[r.jsx("input",{type:"text",placeholder:"Titre — "+f,value:c(`fiche.${d}.title`),onChange:h=>e(`fiche.${d}.title`,h.target.value),className:"text-xs uppercase tracking-widest text-neutral-700 font-bold mb-3 w-full "+ge}),r.jsx("textarea",{placeholder:"Items (un par ligne) — "+f,value:c(`fiche.${d}.items`),onChange:h=>e(`fiche.${d}.items`,h.target.value),rows:4,className:"w-full resize-none "+ge})]},d))}),r.jsx("textarea",{placeholder:"Conclusion fiche technique (outro)",value:c("fiche.outro"),onChange:d=>e("fiche.outro",d.target.value),rows:3,className:"text-lg leading-relaxed w-full resize-none mt-8 "+ge}),r.jsx("input",{type:"text",placeholder:"Label bouton téléchargement fiche technique (ex: Télécharger la fiche technique)",value:c("fiche.downloadLabel"),onChange:d=>e("fiche.downloadLabel",d.target.value),className:"w-full mt-4 "+ge})]}),r.jsxs("section",{className:"bg-neutral-50 text-black px-8 md:px-16 py-16",children:[r.jsx("input",{type:"text",placeholder:"Titre section logos (ex: Logos vectorisés à télécharger)",value:c("logos.title"),onChange:d=>e("logos.title",d.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-6 w-full "+ge}),r.jsx(gk,{onError:l})]}),r.jsxs("section",{className:"bg-neutral-100 text-black px-8 md:px-16 py-16",children:[r.jsx("input",{type:"text",placeholder:"Titre section documents",value:c("documents.title"),onChange:d=>e("documents.title",d.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-4 w-full "+ge}),r.jsxs("p",{className:"text-neutral-600 max-w-2xl",children:["Les documents téléchargeables (dossier presse, logos, fiche technique) sont gérés séparément depuis l'écran ",r.jsx("strong",{children:'"Documents"'})," de l'admin."]})]}),r.jsxs("section",{className:"bg-white px-8 md:px-16 py-16",children:[r.jsx("input",{type:"text",placeholder:"Titre galerie",value:c("gallery.title"),onChange:d=>e("gallery.title",d.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-8 w-full "+ge}),r.jsx(ak,{value:c("gallery.images"),onChange:d=>e("gallery.images",d),uploadImage:i,defaultImages:xk,onError:l})]}),r.jsxs("section",{className:"bg-[#1938e6] text-black px-8 md:px-16 py-16 grid md:grid-cols-2 gap-8 items-center",children:[r.jsxs("div",{children:[r.jsx("input",{type:"text",placeholder:"Titre privatisation",value:c("privatisation.title"),onChange:d=>e("privatisation.title",d.target.value),className:"font-mango text-3xl md:text-5xl uppercase mb-4 w-full "+ge}),r.jsx("textarea",{placeholder:"Corps privatisation",value:c("privatisation.body"),onChange:d=>e("privatisation.body",d.target.value),rows:5,className:"text-lg leading-relaxed w-full resize-none mb-4 "+ge}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsx("input",{type:"text",placeholder:"Label CTA",value:c("privatisation.ctaLabel"),onChange:d=>e("privatisation.ctaLabel",d.target.value),className:"w-full "+ge}),r.jsx("input",{type:"text",placeholder:"CTA subject (ex: privatisation)",value:c("privatisation.ctaSubject"),onChange:d=>e("privatisation.ctaSubject",d.target.value),className:"w-full "+ge})]})]}),a("privatisation.image",oa,"w-full h-[400px] rounded-2xl overflow-hidden")]})]})},vk=["fr","en"],Bc="espace-pro",jk=()=>{const[n,e]=S.useState("fr"),{data:a={}}=Pr(Bc,n),i=Br(),l=uo(),[c,d]=S.useState(null),[f,h]=S.useState(null),m=S.useRef({}),g=c??a,[y,b]=S.useState(n);n!==y&&(d(null),b(n));function v(C,A){d(M=>({...M??g,[C]:A}))}function N(){i.mutate({slug:Bc,locale:n,content:g},{onSuccess:()=>h({message:"Contenu enregistre",notificationType:"success"}),onError:()=>h({message:"Erreur sauvegarde",notificationType:"error"})})}function w(C,A){l.mutate({slug:Bc,fieldKey:C,file:A},{onSuccess:M=>v(C,M),onError:()=>h({message:"Erreur upload image",notificationType:"error"})})}function _(C,A){return l.mutateAsync({slug:Bc,fieldKey:C,file:A})}function k(C){h({message:C,notificationType:"error"})}function E(C,A,M){return r.jsxs("div",{className:"relative group cursor-pointer "+
134M,onClick:()=>m.current[C]?.click(),children:[r.jsx("input",{ref:H=>{m.current[C]=H},type:"file",accept:"image/*",className:"hidden",onChange:H=>{const z=H.target.files?.[0];z&&w(C,z)}}),r.jsx("img",{src:an(g[C],A),alt:"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:r.jsx("span",{className:"text-white text-sm font-medium",children:"Changer l'image"})})]})}return r.jsxs("div",{className:"-m-8",children:[r.jsx("div",{className:"sticky top-0 z-50 bg-gray-950/95 backdrop-blur px-8 py-4 flex items-center justify-between border-b border-gray-800",children:r.jsx(ds,{title:"Espace pro",subtitle:"Contenu de la page",headerActions:[{label:i.isPending?"Enregistrement...":"Enregistrer",onTrigger:N,variant:"primary"}]})}),r.jsx("div",{className:"sticky top-[73px] z-40 bg-gray-950/95 backdrop-blur px-8 py-3 border-b border-gray-800",children:r.jsx("div",{className:"flex gap-2",children:vk.map(C=>r.jsx("button",{type:"button",className:"px-4 py-1.5 rounded-lg text-sm font-medium transition-colors "+(n===C?"bg-white text-gray-950":"bg-gray-800 text-gray-400 hover:bg-gray-700"),onClick:()=>e(C),children:C.toUpperCase()},C))})}
134),r.jsx(bk,{draft:g,updateFieldValue:v,renderClickableImage:E,uploadImage:_,notifyError:k}),f&&r.jsx(os,{message:f.message,notificationType:f.notificationType,onDismiss:()=>h(null)})]})};function wk(n){if(!n)return[];try{const e=JSON.parse(n);return Array.isArray(e)?e.map(a=>({name:a?.name??"",role:a?.role??"",photoUrl:a?.photoUrl??""})):[]}catch{return[]}}const Nk=({value:n,onChange:e,uploadImage:a,onError:i})=>{const l=wk(n),c=S.useRef({}),[d,f]=S.useState(null);function h(N){e(JSON.stringify(N))}function m(N,w,_){const k=l.slice();k[N]={...k[N],[w]:_},h(k)}function g(){h([...l,{name:"",role:"",photoUrl:""}])}function y(N){h(l.filter((w,_)=>_!==N))}function b(N,w){const _=N+w;if(_<0||_>=l.length)return;const k=l.slice();[k[N],k[_]]=[k[_],k[N]],h(k)}async function v(N,w){if(w){f(N);try{const _=await a("team",w);m(N,"photoUrl",_)}catch{i?.("Erreur lors de l'upload de la photo")}finally{f(null)}}}return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsxs("p",{className:"text-xs uppercase tracking-widest text-neutral-500",children:[l.length," membre",l.length>1?"s":""]}),r.jsx("button",{type:"button",onClick:g,className:"px-4 py-2 rounded-lg bg-black text-white text-sm font-medium hover:bg-neutral-800 transition-colors",children:"+ Ajouter un membre"})]}),l.length===0?r.jsx("button",{type:"button",onClick:g,className:"w-full border-2 border-dashed border-neutral-300 rounded-2xl py-12 text-neutral-400 hover:border-neutral-400 hover:text-neutral-500 transition-colors",children:"Aucun membre. Cliquez pour en ajouter."}):r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4",children:l.map((N,w)=>r.jsxs("div",{className:"rounded-2xl border border-neutral-200 bg-white overflow-hidden",children:[r.jsxs("div",{className:"relative aspect-[3/4] bg-neutral-100 cursor-pointer group",onClick:()=>c.current[w]?.click(),children:[N.photoUrl?r.jsx("img",{src:an(N.photoUrl,""),alt:N.name,className:"w-full h-full object-cover"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-neutral-400 text-sm",children:"Ajouter une photo"}),r.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:r.jsx("span",{className:"text-white text-xs font-medium",children:d===w?"Upload...":"Changer la photo"})}),r.jsx("input",{ref:_=>{c.current[w]=_},type:"file",accept:"image/*",className:"hidden",onClick:_=>_.stopPropagation(),onChange:_=>v(w,_.target.files?.[0])}),r.jsx("button",{type:"button",onClick:_=>{_.stopPropagation(),y(w)},title:"Supprimer le membre",className:"absolute top-2 right-2 w-7 h-7 rounded-full bg-black/70 text-white text-sm hover:bg-red-600 transition-colors flex items-center justify-center",children:"×"})]}),r.jsxs("div",{className:"p-3",children:[r.jsx("input",{type:"text",placeholder:"Nom",value:N.name,onChange:_=>m(w,"name",_.target.value),className:"w-full text-sm font-medium mb-2 "+ge}),r.jsx("input",{type:"text",placeholder:"Role",value:N.role,onChange:_=>m(w,"role",_.target.value),className:"w-full text-xs text-neutral-600 mb-3 "+ge}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{className:"flex gap-1",children:[r.jsx("button",{type:"button",onClick:()=>b(w,-1),disabled:w===0,title:"Deplacer vers la gauche",className:"w-7 h-7 rounded-lg border border-neutral-300 text-neutral-600 hover:bg-neutral-200 disabled:opacity-30 transition-colors",children:"←"}),r.jsx("button",{type:"button",onClick:()=>b(w,1),disabled:w===l.length-1,title:"Deplacer vers la droite",className:"w-7 h-7 rounded-lg border border-neutral-300 text-neutral-600 hover:bg-neutral-200 disabled:opacity-30 transition-colors",children:"→"})]}),r.jsxs("span",{className:"text-xs text-neutral-400",children:["#",w+1]})]})]})]},w))})]})},Sk=[{key:"metro1",label:"Métro 1"},{key:"metro2",label:"Métro 2"},{key:"tram",label:"Tramway"},{key:"bus",label:"Bus"},{key:"parking",label:"Parking"},{key:"pmr",label:"Accès PMR"}],Ck=({draft:n,updateFieldValue:e,uploadImage:a,notifyError:i})=>{const l=c=>n[c]||"";return r.jsxs("div",{className:"bg-white text-black",children:[r.jsxs("section",{className:"pt-32 px-8 md:px-16 grid md:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"rounded-2xl border border-neutral-200 p-6 bg-neutral-50",children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-500 mb-2",children:"Adresse"}),r.jsx("input",{type:"text",placeholder:"Ligne 1 (ex: 103 rue Ferrari)",value:l("address.line1"),onChange:c=>e("address.line1",c.target.value),className:"w-full mb-2 "+ge}),r.jsx("input",{type:"text",placeholder:"Ligne 2 (ex: 13005 Marseille)",value:l("address.line2"),onChange:c=>e("address.line2",c.target.value),className:"w-full "+ge})]}),r.jsxs("div",{className:"rounded-2xl border border-neutral-200 p-6 bg-neutral-50",children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-500 mb-2",children:"Contact direct"}),r.jsx("input",{type:"tel",placeholder:"Téléphone",value:l("phone"),onChange:c=>e("phone",c.target.value),className:"w-full mb-2 "+ge}),r.jsx("input",{type:"email",placeholder:"Email",value:l("email"),onChange:c=>e("email",c.target.value),className:"w-full "+ge})]})]}),r.jsxs("section",{className:"px-8 md:px-16 py-12",children:[r.jsx("h2",{className:"font-mango text-2xl md:text-3xl uppercase mb-6",children:"Accès"}),r.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:Sk.map(({key:c,label:d})=>r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-500 mb-1",children:d}),r.jsx("input",{type:"text",placeholder:d,value:l(`access.${c}`),onChange:f=>e(`access.${c}`,f.target.value),className:"w-full "+ge})]},c))})]}),r.jsxs("section",{className:"bg-neutral-50 px-8 md:px-16 py-12",children:[r.jsx("h2",{className:"font-mango text-2xl md:text-3xl uppercase mb-4",children:"Carte Google Maps"}),r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-500 mb-2",children:"URL d'embed (depuis Google Maps → Partager → Intégrer une carte → src de l'iframe)"}),r.jsx("textarea",{placeholder:"https://www.google.com/maps/embed?pb=...",value:l("map.embedUrl"),onChange:c=>e("map.embedUrl",c.target.value),rows:3,className:"text-sm font-mono w-full resize-none "+ge}),l("map.embedUrl")&&r.jsx("div",{className:"mt-4 rounded-2xl overflow-hidden border border-neutral-200",children:r.jsx("iframe",{src:l("map.embedUrl"),title:"Carte",className:"w-full h-[300px]",style:{border:0},allowFullScreen:!0,loading:"lazy"})})]}),r.jsxs("section",{className:"px-8 md:px-16 py-12",children:[r.jsx("h2",{className:"font-mango text-2xl md:text-3xl uppercase mb-4",children:"Formulaire de contact"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsx("input",{type:"text",placeholder:"Titre du formulaire",value:l("form.title"),onChange:c=>e("form.title",c.target.value),className:"w-full "+ge}),r.jsx("input",{type:"text",placeholder:"Message de succès après envoi",value:l("form.successMessage"),onChange:c=>e("form.successMessage",c.target.value),className:"w-full "+ge})]}),r.jsxs("p",{className:"text-xs text-neutral-500 mt-4",children:["Les messages reçus arrivent dans ",r.jsx("strong",{children:"l'admin Contacts"})," (à venir) et par email."]})]}),r.jsxs("section",{className:"bg-neutral-50 px-8 md:px-16 py-12",children:[r.jsx("input",{type:"text",placeholder:"Titre équipe",value:l("team.title"),onChange:c=>e("team.title",c.target.value),className:"font-mango text-2xl md:text-3xl uppercase mb-4 w-full "+ge}),r.jsx(Nk,{value:l("team.members"),onChange:c=>e("team.members",c),uploadImage:a,onError:i}),r.jsx("p",{className:"text-xs text-neutral-500 mt-4",children:"11 membres attendus : Francine, Kevin, Pauline, Perrine, Romain, Karim, Angelo, Jolan, Axelle, Noellie, Eric."})]})]})},_k=["fr","en"],Fc="contact",Ek=()=>{const[n,e]=S.useState("fr"),{data:a={}}=Pr(Fc,n),i=Br(),l=uo(),[c,d]=S.useState(null),[f,h]=S.useState(null),m=S.useRef({}),g=c??a,[y,b]=S.useState(n);n!==y&&(d(null),b(n));function v(C,A){d(M=>({...M??g,[C]:A}))}function N(){i.mutate({slug:Fc,locale:n,content:g},{onSuccess:()=>h({message:"Contenu enregistre",notificationType:"success"}),onError:()=>h({message:"Erreur sauvegarde",notificationType:"error"})})}function w(C,A){l.mutate({slug:Fc,fieldKey:C,file:A},{onSuccess:M=>v(C,M),onError:()=>h({message:"Erreur upload image",notificationType:"error"})})}function _(C,A){return l.mutateAsync({slug:Fc,fieldKey:C,file:A})}function k(C){h({message:C,notificationType:"error"})}function E(C,A,M){return r.jsxs("div",{className:"relative group cursor-pointer "+
134M,onClick:()=>m.current[C]?.click(),children:[r.jsx("input",{ref:H=>{m.current[C]=H},type:"file",accept:"image/*",className:"hidden",onChange:H=>{const z=H.target.files?.[0];z&&w(C,z)}}),r.jsx("img",{src:an(g[C],A),alt:"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:r.jsx("span",{className:"text-white text-sm font-medium",children:"Changer l'image"})})]})}return r.jsxs("div",{className:"-m-8",children:[r.jsx("div",{className:"sticky top-0 z-50 bg-gray-950/95 backdrop-blur px-8 py-4 flex items-center justify-between border-b border-gray-800",children:r.jsx(ds,{title:"Contacts",subtitle:"Adresse, accès, formulaire, équipe",headerActions:[{label:i.isPending?"Enregistrement...":"Enregistrer",onTrigger:N,variant:"primary"}]})}),r.jsx("div",{className:"sticky top-[73px] z-40 bg-gray-950/95 backdrop-blur px-8 py-3 border-b border-gray-800",children:r.jsx("div",{className:"flex gap-2",children:_k.map(C=>r.jsx("button",{type:"button",className:"px-4 py-1.5 rounded-lg text-sm font-medium transition-colors "+(n===C?"bg-white text-gray-950":"bg-gray-800 text-gray-400 hover:bg-gray-700"),onClick:()=>e(C),children:C.toUpperCase()},C))})}),r.jsx(Ck,{draft:g,updateFieldValue:v,renderClickableImage:E,uploadImage:_,notifyError:k}),f&&r.jsx(os,{message:f.message,notificationType:f.notificationType,onDismiss:()=>h(null)})]})},Sb=[{value:"press",label:"Presse"},{value:"logo",label:"Logos"},{value:"tech",label:"Technique"},{value:"other",label:"Autre"}];function kk(n){return n?n<1024?n+" B":n<1024*1024?(n/1024).toFixed(1)+" Ko":(n/(1024*1024)).toFixed(1)+" Mo":"—"}const Tk=()=>{const{data:n=[],isLoading:e}=k1(),a=T1(),i=dk(),l=A1(),c=M1(),[d,f]=S.useState(null),[h,m]=S.useState(!1),[g,y]=S.useState({slug:"",label:"",category:"press",version:""}),b=S.useRef({});function v(E,C){f({message:E,notificationType:C})}function N(){if(!g.slug||!g.label){v("Slug et label requis","error");return}a.mutate({slug:g.slug,label:g.label,category:g.category,version:g.version||void 0},{onSuccess:()=>{v("Document créé","success"),m(!1),y({slug:"",label:"",category:"press",version:""})},onError:E=>v("Erreur : "+E.message,"error")})}function w(E,C){i.mutate({id:E.id,payload:C},{onSuccess:()=>v("Modifié","success"),onError:A=>v("Erreur : "+A.message,"error")})}function _(E){confirm(`Supprimer "${E.label}" ?`)&&l.mutate(E.id,{onSuccess:()=>v("Document supprimé","success"),onError:C=>v("Erreur : "+C.message,"error")})}function k(E,C){c.mutate({slug:E.slug,file:C},{onSuccess:()=>v("Fichier uploadé","success"),onError:A=>v("Erreur upload : "+A.message,"error")})}return r.jsxs("div",{className:"-m-8",children:[r.jsx("div",{className:"sticky top-0 z-50 bg-gray-950/95 backdrop-blur px-8 py-4 flex items-center justify-between border-b border-gray-800",children:r.jsx(ds,{title:"Documents",subtitle:`${n.length} document${n.length>1?"s":""}`,headerActions:[{label:"+ Nouveau document",onTrigger:()=>m(!0),variant:"primary"}]})}),r.jsx("div",{className:"p-8",children:e?r.jsx("p",{className:"text-neutral-500",children:"Chargement…"}):n.length===0?r.jsx("div",{className:"text-center py-16 text-neutral-500",children:r.jsx("p",{children:'Aucun document. Cliquez sur "Nouveau document" pour en créer un.'})}):r.jsx("div",{className:"overflow-x-auto rounded-2xl border border-gray-800",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{className:"bg-gray-900 text-neutral-400 uppercase text-xs",children:r.jsxs("tr",{children:[r.jsx("th",{className:"text-left px-4 py-3",children:"Slug"}),r.jsx("th",{className:"text-left px-4 py-3",children:"Label"}),r.jsx("th",{className:"text-left px-4 py-3",children:"Catégorie"}),r.jsx("th",{className:"text-left px-4 py-3",children:"Version"}),r.jsx("th",{className:"text-left px-4 py-3",children:"Fichier"}),r.jsx("th",{className:"text-left px-4 py-3",children:"Taille"}),r.jsx("th",{className:"text-left px-4 py-3",children:"Public"}),r.jsx("th",{className:"text-right px-4 py-3",children:"Actions"})]})}),r.jsx("tbody",{className:"divide-y divide-gray-800",children:n.map(E=>r.jsxs("tr",{className:"hover:bg-gray-900/50",children:[r.jsx("td",{className:"px-4 py-3 font-mono text-xs text-neutral-400",children:E.slug}),r.jsx("td",{className:"px-4 py-3",children:r.jsx("input",{type:"text",defaultValue:E.label,onBlur:C=>{C.target.value!==E.label&&w(E,{label:C.target.value})},className:"w-full "+Pl})}),r.jsx("td",{className:"px-4 py-3",children:r.jsx("select",{value:E.category,onChange:C=>w(E,{category:C.target.value}),className:"bg-gray-900 border border-gray-700 rounded px-2 py-1 text-sm",children:Sb.map(C=>r.jsx("option",{value:C.value,children:C.label},C.value))})}),r.jsx("td",{className:"px-4 py-3",children:r.jsx("input",{type:"text",defaultValue:E.version||"",placeholder:"—",onBlur:C=>{C.target.value!==(E.version||"")&&w(E,{version:C.target.value||void 0})},className:"w-20 "+Pl})}),r.jsxs("td",{className:"px-4 py-3",children:[E.fileUrl?r.jsx("a",{href:E.fileUrl,target:"_blank",rel:"noreferrer",className:"text-blue-400 hover:underline text-xs",children:"Voir"}):r.jsx("span",{className:"text-xs text-neutral-600",children:"aucun"}),r.jsx("input",{ref:C=>{b.current[E.id]=C},type:"file",className:"hidden",onChange:C=>{const A=C.target.files?.[0];A&&k(E,A)}}),r.jsx("button",{onClick:()=>b.current[E.id]?.click(),className:"ml-2 text-xs text-neutral-400 hover:text-white",children:E.fileUrl?"Remplacer":"Uploader"})]}),r.jsx("td",{className:"px-4 py-3 text-xs text-neutral-500",children:kk(E.fileSize)}),r.jsx("td",{className:"px-4 py-3",children:r.jsx("input",{type:"checkbox",checked:E.isPublic,onChange:C=>w(E,{isPublic:C.target.checked})})}),r.jsx("td",{className:"px-4 py-3 text-right",children:r.jsx("button",{onClick:()=>_(E),className:"text-red-400 hover:text-red-300 text-xs",children:"Supprimer"})})]},E.id))})]})})}),h&&r.jsx("div",{className:"fixed inset-0 z-[60] bg-black/70 flex items-center justify-center p-4",children:r.jsxs("div",{className:"bg-gray-900 rounded-2xl border border-gray-800 p-8 max-w-md w-full",children:[r.jsx("h3",{className:"font-mango text-2xl uppercase mb-6 text-white",children:"Nouveau document"}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Slug (unique)"}),r.jsx("input",{type:"text",placeholder:"ex: dossier-presse-2026",value:g.slug,onChange:E=>y(C=>({...C,slug:E.target.value})),className:"w-full "+Pl})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Label"}),r.jsx("input",{type:"text",placeholder:"Dossier de presse 2026",value:g.label,onChange:E=>y(C=>({...C,label:E.target.value})),className:"w-full "+Pl})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Catégorie"}),r.jsx("select",{value:g.category,onChange:E=>y(C=>({...C,category:E.target.value})),className:"w-full bg-gray-800 border border-gray-700 rounded px-3 py-2 text-sm",children:Sb.map(E=>r.jsx("option",{value:E.value,children:E.label},E.value))})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Version (optionnel)"}),r.jsx("input",{type:"text",placeholder:"v1.0",value:g.version,onChange:E=>y(C=>({...C,version:E.target.value})),className:"w-full "+Pl})]})]}),r.jsxs("div",{className:"flex gap-2 mt-6 justify-end",children:[r.jsx("button",{onClick:()=>m(!1),className:"px-4 py-2 text-sm text-neutral-400 hover:text-white",children:"Annuler"}),r.jsx("button",{onClick:N,disabled:a.isPending,className:"px-4 py-2 bg-white text-black rounded-lg text-sm font-medium hover:bg-neutral-200 disabled:opacity-50",children:a.isPending?"Création…":"Créer"})]})]})}),d&&r.jsx(os,{message:d.message,notificationType:d.notificationType,onDismiss:()=>f(null)})]})},Yh=[{id:"nav-001",title:"LE PROJET",descriptionKey:"navigation.leProjetDescription",icon:"✦",image:oa,url:"/le-projet"},{id:"nav-002",title:"AGENDA",descriptionKey:"navigation.agendaDescription",icon:"📅",image:la,url:"/agenda"},{id:"nav-003",title:"TREMPLIN",descriptionKey:"navigation.tremplinDescription",icon:"🚀",image:Rs,url:"/tremplin"},{id:"nav-004",title:"ACTIVITES",descriptionKey:"navigation.activitesDescription",icon:"🤝",image:oa,url:"/activites"}],Cb=["navMakeda","navAgenda","navTremplin","navAssociation"],Ak=({renderClickableImage:n})=>{const{t:e}=Re();return r.jsxs("div",{className:"bg-black min-h-screen",children:[r.jsxs("section",{className:"min-h-[70vh] flex flex-col items-center justify-center px-8 md:px-16 py-24",children:[r.jsx("p",{className:"text-neutral-500 text-xs md:text-sm tracking-[0.15em] uppercase text-center max-w-lg leading-relaxed mb-16",children:e("navigation.subtitle")}),r.jsxs("h2",{className:"font-mango text-white text-[12vw] md:text-[10vw] lg:text-[8vw] font-bold leading-[0.85] text-center uppercase",children:[r.jsx("span",{className:"block",children:e("navigation.discoverLine1")}),r.jsxs("span",{className:"block",children:[e("navigation.discoverLine2Prefix"),r.jsx("span",{className:"inline-block h-[1.1em] w-[1.1em] align-middle rounded-lg overflow-hidden relative -top-[0.05em]",children:n(Cb[0],Yh[0].image,"w-full h-full")}),e("navigation.discoverLine2Suffix")]}),r.jsx("span",{className:"block",children:e("navigation.discoverLine3")})]})]}),r.jsxs("section",{className:"px-8 md:px-16 py-16",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-2",children:[r.jsx("span",{className:"text-neutral-400 text-xs tracking-[0.2em] uppercase whitespace-nowrap font-medium",children:e("navigation.nosThematiques")}),r.jsx("div",{className:"flex-1 h-px bg-white/15"})]}),Yh.map((a,i)=>r.jsx("div",{className:"border-t border-white/10 last:border-b",children:r.jsxs("div",{className:"grid grid-cols-[1fr_1.2fr_1.5fr_auto] items-center gap-6 py-10",children:[r.jsx("h3",{className:"font-mango text-white text-5xl md:text-7xl lg:text-8xl uppercase leading-none",children:a.title}),r.jsx("div",{className:"flex justify-center",children:n(Cb[i],a.image,"w-48 h-56 md:w-56 md:h-64 roun
134ded-3xl overflow-hidden shadow-2xl")}),r.jsx("p",{className:"text-neutral-300 text-xs md:text-sm tracking-widest uppercase leading-relaxed max-w-sm",children:e(a.descriptionKey)}),r.jsx("div",{className:"w-10 h-10 md:w-12 md:h-12 rounded-full border border-white/20 flex items-center justify-center shrink-0",children:r.jsx(eo,{size:16,className:"text-neutral-400"})})]})},a.id))]})]})},Mk=()=>{const{data:n={}}=Pr("bibliotheque"),e=Br(),a=uo(),[i,l]=S.useState(null),[c,d]=S.useState(null),f=S.useRef({}),h=i??n;function m(b,v){a.mutate({slug:"bibliotheque",fieldKey:b,file:v},{onSuccess:N=>l(w=>({...w??n,[b]:N})),onError:()=>d({message:"Erreur upload image",notificationType:"error"})})}function g(){e.mutate({slug:"bibliotheque",locale:"fr",content:h},{onSuccess:()=>d({message:"Images enregistrees",notificationType:"success"}),onError:()=>d({message:"Erreur sauvegarde",notificationType:"error"})})}function y(b,v,N){return r.jsxs("div",{className:"relative group cursor-pointer "+N,onClick:()=>f.current[b]?.click(),children:[r.jsx("input",{ref:w=>{f.current[b]=w},type:"file",accept:"image/*",className:"hidden",onChange:w=>{const _=w.target.files?.[0];_&&m(b,_)}}),r.jsx("img",{src:an(h[b],v),alt:"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:r.jsx("span",{className:"text-white text-sm font-medium",children:"Changer l'image"})})]})}return r.jsxs("div",{className:"-m-8",children:[r.jsx("div",{className:"sticky top-0 z-50 bg-gray-950/95 backdrop-blur px-8 py-4 flex items-center justify-between border-b border-gray-800",children:r.jsx(ds,{title:"Bibliotheque",subtitle:"Images de la page d'accueil",headerActions:[{label:e.isPending?"Enregistrement...":"Enregistrer",onTrigger:g,variant:"primary"}]})}),r.jsx(Ak,{draft:h,renderClickableImage:y}),c&&r.jsx(os,{message:c.message,notificationType:c.notificationType,onDismiss:()=>d(null)})]})},du=[{label:"Meta title + description (toutes pages)",done:!0},{label:"Open Graph (og:title, og:description, og:image)",done:!0},{label:"Twitter Cards (summary_large_image)",done:!0},{label:"Canonical URL",done:!0},{label:"Hreflang fr/en",done:!0},{label:"Sitemap.xml",done:!0},{label:"Robots.txt",done:!0},{label:"JSON-LD MusicVenue (index.html)",done:!0},{label:"JSON-LD MusicEvent (EventDetail)",done:!0},{label:"JSON-LD ItemList (Agenda)",done:!0},{label:"Meta dynamique par evenement",done:!0},{label:"Google Search Console",done:!1},{label:"Google Analytics / GA4",done:!1},{label:"Alt text images (systematique)",done:!1}],Ok=[{type:"MusicVenue",page:"index.html",scope:"Global"},{type:"MusicEvent",page:"EventDetail",scope:"Par evenement"},{type:"ItemList",page:"Agenda",scope:"Liste evenements"}],Rk=[{label:"Google Search Console",url:"https://search.google.com/search-console"},{label:"PageSpeed Insights",url:"https://pagespeed.web.dev/analysis?url=https%3A%2F%2Flemakeda.com"},{label:"Rich Results Test",url:"https://search.google.com/test/rich-results?url=https%3A%2F%2Flemakeda.com"},{label:"Schema.org Validator",url:"https://validator.schema.org/"},{label:"sitemap.xml",url:"https://lemakeda.com/sitemap.xml"},{label:"robots.txt",url:"https://lemakeda.com/robots.txt"}],Hc=600,ph=200,ts={top:24,right:40,bottom:40,left:50};function Dk({history:n}){const a=n.map(y=>({date:new Date(y.date),position:y.position??100,absent:y.position===null})),i=Hc-ts.left-ts.right,l=ph-ts.top-ts.bottom,c=1,d=Math.max(100,...a.map(y=>y.position));function f(y){return ts.top+(y-c)/(d-c)*l}function h(y){return a.length===1?ts.left+i/2:ts.left+y/(a.length-1)*i}const m=a.map((y,b)=>`${b===0?"M":"L"} ${h(b)} ${f(y.position)}`).join(" "),g=[1,10,20,50,100].filter(y=>y<=d);return r.jsxs("div",{className:"px-2 pt-2",children:[r.jsxs("svg",{viewBox:`0 0 ${Hc} ${ph}`,className:"w-full",style:{maxHeight:220},children:[g.map(y=>r.jsxs("g",{children:[r.jsx("line",{x1:ts.left,y1:f(y),x2:Hc-ts.right,y2:f(y),stroke:"#374151",strokeDasharray:"4 4"}),r.jsx("text",{x:ts.left-8,y:f(y)+4,textAnchor:"end",fill:"#6B7280",fontSize:"11",children:y===100?"100+":`#${y}`})]},y)),r.jsx("rect",{x:ts.left,y:f(1),width:i,height:f(10)-f(1),fill:"#00B894",opacity:"0.06"}),r.jsx("text",{x:Hc-ts.right+6,y:f(5)+4,fill:"#00B894",fontSize:"9",opacity:"0.6",children:"Top 10"}),r.jsx("path",{d:m,fill:"none",stroke:"#60A5FA",strokeWidth:"2",strokeLinejoin:"round"}),a.map((y,b)=>r.jsxs("g",{children:[r.jsx("circle",{cx:h(b),cy:f(y.position),r:4,fill:y.absent?"#EF4444":y.position<=10?"#00B894":"#60A5FA",stroke:"#111827",strokeWidth:"2"}),r.jsx("text",{x:h(b),y:f(y.position)-10,textAnchor:"middle",fill:y.absent?"#EF4444":"#D1D5DB",fontSize:"10",fontWeight:"600",children:y.absent?"—":`#${y.position}`})]},b)),a.map((y,b)=>a.length>8&&b%Math.ceil(a.length/6)!==0&&b!==a.length-1?null:r.jsx("text",{x:h(b),y:ph-6,textAnchor:"middle",fill:"#6B7280",fontSize:"9",children:y.date.toLocaleDateString("fr-FR",{day:"numeric",month:"short"})},b))]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 px-2 text-xs text-gray-600",children:[r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-green-500 inline-block"}),"Top 10"]}),r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-blue-400 inline-block"}),">"," 10"]}),r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx("span",{className:"w-2 h-2 rounded-full bg-red-500 
134inline-block"}),"Absent"]}),r.jsxs("span",{className:"ml-auto",children:[n.length," verification",n.length>1?"s":""]})]})]})}function Lk({doneCount:n,scorePercent:e,setNotification:a}){const{data:i=[]}=IC(),{data:l={}}=GC(),c=l_(),d=o_(),f=c_(),h=u_(),[m,g]=S.useState(null),[y,b]=S.useState(!1),[v,N]=S.useState(null),[w,_]=S.useState(""),[k,E]=S.useState(!1);async function C(L){g(L);try{await c.mutateAsync(L)}catch{a({message:`Erreur pour "${L}"`,type:"error"})}finally{g(null)}}async function A(){b(!0);for(let L=0;L<i.length;L++){const $=i[L];L>0&&await new Promise(se=>setTimeout(se,4e3)),g($.keyword);try{await c.mutateAsync($.keyword)}catch{}}g(null),b(!1),a({message:"Verification terminee",type:"success"})}function M(){d.mutate(void 0,{onSuccess:()=>a({message:"Historique efface",type:"success"})})}function H(){const L=w.trim().toLowerCase();L&&f.mutate({keyword:L,branded:k},{onSuccess:()=>{_(""),E(!1)},onError:()=>a({message:"Erreur lors de l'ajout",type:"error"})})}function z(L){h.mutate(L,{onError:()=>a({message:"Erreur lors de la suppression",type:"error"})})}function P(L){const $=l[L]?.history;return $&&$.length>0?$[$.length-1]:null}function I(L){const $=P(L);return $?$.position===null?"Absent top 100":`#${$.position}`:"—"}function G(L){const $=P(L);return $?.date?new Date($.date).toLocaleDateString("fr-FR",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):null}function ne(L){const $=P(L);return $?$.position===null?"text-red-400":$.position<=3?"text-green-400 font-semibold":$.position<=10?"text-yellow-400 font-semibold":"text-orange-400":"text-gray-600"}return r.jsxs("div",{className:"space-y-8",children:[r.jsxs("section",{className:"bg-gray-900 border border-gray-800 rounded-xl p-6",children:[r.jsx("h2",{className:"text-white font-semibold mb-4",children:"Score SEO"}),r.jsxs("div",{className:"flex items-center gap-4 mb-4",children:[r.jsx("div",{className:"flex-1 h-3 bg-gray-800 rounded-full overflow-hidden",children:r.jsx("div",{className:"h-full rounded-full transition-all",style:{width:`${e}%`,backgroundColor:e>=80?"#00B894":e>=50?"#FDCB6E":"#D63031"}})}),r.jsxs("span",{className:"text-white font-bold text-sm whitespace-nowrap",children:[n,"/",du.length," (",e,"%)"]})]}),r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:du.map(L=>r.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[r.jsx("span",{className:L.done?"text-green-400":"text-red-400",children:L.done?"OK":"Manquant"}),r.jsx("span",{className:L.done?"text-gray-400":"text-white",children:L.label})]},L.label))})]}),r.jsxs("section",{className:"bg-gray-900 border border-gray-800 rounded-xl p-6",children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"text-white font-semibold",children:"Suivi mots-cles"}),r.jsx("p",{className:"text-xs text-gray-600 mt-1",children:"Position de lemakeda.com sur Google.fr — cliquez sur un mot-cle pour voir l'evolution"})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("button",{type:"button",onClick:M,className:"text-xs px-3 py-2 rounded-lg text-gray-600 hover:text-red-400 hover:bg-gray-800 transition-colors",children:"Effacer historique"}),r.jsx("button",{type:"button",disabled:y,onClick:A,className:"text-sm font-medium px-4 py-2 rounded-lg transition-colors "+(y?"bg-gray-800 text-gray-500 cursor-not-allowed":"bg-white text-gray-950 hover:bg-gray-200"),children:y?"Verification...":"Tout verifier"})]})]}),r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"text-left text-gray-500 border-b border-gray-800",children:[r.jsx("th",{className:"pb-2 font-medium",children:"Mot-cle"}),r.jsx("th",{className:"pb-2 font-medium",children:"Position"}),r.jsx("th",{className:"pb-2 font-medium",children:"Derniere verif."}),r.jsx("th",{className:"pb-2 font-medium",children:"Checks"}),r.jsx("th",{className:"pb-2 font-medium",children:"Type"}),r.jsx("th",{className:"pb-2 font-medium w-24"})]})}),r.jsx("tbody",{children:i.map(L=>{const $=v===L.keyword;return r.jsxs("tr",{className:"border-b border-gray-800/50 cursor-pointer transition-colors hover:bg-gray-800/30 "+($?"bg-white/5":""),onClick:()=>N($?null:L.keyword),children:[r.jsx("td",{className:"py-2.5 text-white",children:L.keyword}),r.jsx("td",{className:`py-2.5 ${ne(L.keyword)}`,children:m===L.keyword?r.jsx("span",{className:"inline-block w-4 h-4 border-2 border-gray-600 border-t-white rounded-full animate-spin"}):I(L.keyword)}),r.jsx("td",{className:"py-2.5 text-xs text-gray-600",children:G(L.keyword)||"—"}),r.jsx("td",{className:"py-2.5 text-xs text-gray-500",children:(l[L.keyword]?.history||[]).length||"—"}),r.jsx("td",{className:"py-2.5",children:r.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full "+(L.branded?"bg-green-500/10 text-green-400":"bg-gray-800 text-gray-500"),children:L.branded?"Marque":"Generique"})}),r.jsxs("td",{className:"py-2.5 text-right flex items-center justify-end gap-1",children:[r.jsx("button",{type:"button",disabled:m!==null,onClick:se=>{se.stopPropagation(),C(L.keyword)},className:"text-xs px-3 py-1 rounded-lg transition-colors "+(m!==null?"text-gray-600 cursor-not-allowed":"text-gray-400 hover:text-white hover:bg-gray-800"),children:"Verifier"}),r.jsx("button",{type:"button",onClick:se=>{se.stopPropagation(),z(L.keyword)},className:"text-xs px-2 py-1 rounded-lg text-gray-700 hover:text-red-400 transition-colors",title:"Supprimer",children:"x"})]})]},L.keyword)})})]})}),v&&(()=>{const L=l[v]?.history||[];return r.jsxs("div",{className:"mt-4 pt-4 border-t border-gray-800",children:[r.jsxs("div",{className:"flex items-center justify-between mb-2",children:[r.jsxs("h3",{className:"text-white text-sm font-medium",children:["Evolution : ",r.jsx("span",{className:"text-blue-400",children:v})]}),r.jsx("button",{type:"button",onClick:()=>N(null),className:"text-xs text-gray-600 hover:text-white transition-colors",children:"Fermer"})]}),L.length<2?r.jsx("p",{className:"text-xs text-gray-600 py-4",children:"Pas assez de donnees pour le graphique. Lancez au moins 2 verifications."}):r.jsx(Dk,{history:L})]})})(),r.jsxs("div",{className:"flex items-center gap-2 mt-4 pt-4 border-t border-gray-800",children:[r.jsx("input",{type:"text",value:w,onChange:L=>_(L.target.value),onKeyDown:L=>{L.key==="Enter"&&H()},placeholder:"Ajouter un mot-cle...",className:"flex-1 bg-transparent border border-dashed border-gray-700 focus:border-white outline-none px-3 py-2 rounded-lg text-white placeholder-gray-600 text-sm transition-colors"}),r.jsxs("label",{className:"flex items-center gap-1.5 text-xs text-gray-500 cursor-pointer whitespace-nowrap",children:[r.jsx("input",{type:"checkbox",checked:k,onChange:L=>E(L.target.checked),className:"w-3 h-3 accent-green-400"}),"Marque"]}),r.jsx("button",{type:"button",onClick:H,className:"text-sm px-4 py-2 rounded-lg bg-gray-800 text-gray-300 hover:bg-gray-700 hover:text-white transition-colors",children:"Ajouter"})]})]}),r.jsxs("section",{className:"bg-gray-900 border border-gray-800 rounded-xl p-6",children:[r.jsx("h2",{className:"text-white font-semibold mb-4",children:"Statut JSON-LD"}),r.jsx("div",{className:"space-y-3",children:Ok.map(L=>r.jsxs("div",{className:"flex items-center justify-between text-sm",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("span",{className:"text-green-400",children:"OK"}),r.jsx("span",{className:"text-white font-mono",children:L.type})]}),r.jsxs("div",{className:"flex items-center gap-3 text-gray-500",children:[r.jsx("span",{children:L.page}),r.jsx("span",{className:"text-xs bg-gray-800 px-2 py-0.5 rounded",children:L.scope})]})]},L.type))})]}),r.jsxs("section",{className:"bg-gray-900 border border-gray-800 rounded-xl p-6",children:[r.jsx("h2",{className:"text-white font-semibold mb-4",children:"Liens rapides"}),r.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:Rk.map(L=>r.jsxs("a",{href:L.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 bg-gray-800 hover:bg-gray-700 text-gray-300 hover:text-white px-4 py-3 rounded-lg text-sm transition-colors",children:[r.jsx(sE,{size:14}),L.label]},L.label))})]})]})}const zk=[{key:"home",label:"Accueil",path:"/",defaultTitle:"Salle de concerts a Marseille",defaultDescription:"Le Makeda, salle de concerts et musiques actuelles au coeur de Marseille. Plus de 200 concerts par an dans une jauge intimiste de 270 personnes."},{key:"agenda",label:"Agenda",path:"/agenda",defaultTitle:"Agenda - Concerts a Marseille",defaultDescription:"Concerts a Marseille - Retrouvez tous les evenements a venir au Makeda, salle de musiques actuelles. Rap, electronique, pop, rock, world et plus."},{key:"makeda",label:"Le projet",path:"/le-projet",defaultTitle:"Le projet",defaultDescription:"Salle de musiques actuelles a Marseille, le Makeda est un projet associatif porte par Orizon Sud, axe sur la diffusion, l'accompagnement artistique et l'action socio-culturelle."},{key:"tremplin",label:"Tremplin",path:"/tremplin",defaultTitle:"Tremplin Orizon Sud",defaultDescription:"Le Tremplin Orizon Sud au Makeda : decouvrez et votez pour les artistes emergents de la scene marseillaise. Inscriptions, votes et resultats."},{key:"association",label:"Activites",path:"/activites",defaultTitle:"Activites",defaultDescription:"Diffusion, accompagnement artistique et actions socio-culturelles : trois poles structurent les activites du Makeda et d'Orizon Sud."},{key:"espace-pro",label:"Espace pro",path:"/espace-pro",defaultTitle:"Espace pro",defaultDescription:"Fiche technique, dossier de presse, logos vectorises, galerie et privatisation. Toutes les ressources pour collaborer avec le Makeda."},{key:"contact",label:"Contact",path:"/contact",defaultTitle:"Contacts & infos pratiques",defaultDescription:"103 rue Ferrari, 13005 Marseille. Acces, telephone, mail, equipe. Toutes les infos pour nous rencontrer."}],_b="w-full bg-transparent border border-dashed border-gray-700 focus:border-white outline-none px-3 py-2 rounded-lg text-white placeholder-gray-600 text-sm transition-colors";function Uk({draft:n,updateField:e}){return r.jsxs("div",{className:"space-y-6",children:[r.jsx("p",{className:"text-sm text-gray-500",children:"Modifiez les meta title et description de chaque page. Les valeurs par defaut sont affichees en placeholder. EventDetail est dynamique (titre/description de l'evenement), pas editable ici."}),zk.map(a=>r.jsxs("div",{className:"bg-gray-900 border border-gray-800 rounded-xl p-6",children:[r.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r.jsx("h3",{className:"text-white font-semibold",children:a.label}),r.jsx("span",{className:"text-xs text-gray-600 font-mono",children:a.path})]}),r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Meta title"}),r.jsx("input",{type:"text",value:n[`${a.key}.title`]||"",placeholder:a.defaultTitle,onChange:i=>e(`${a.key}.title`,i.target.value),className:_b}),r.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:[(n[`${a.key}.title`]||a.defaultTitle).length," / 60 caracteres"]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Meta description"}),r.jsx("textarea",{value:n[`${a.key}.description`]||"",placeholder:a.defaultDescription,onChange:i=>e(`${a.key}.description`,i.target.value),rows:3,className:_b+" resize-none"}),r.jsxs("p",{className:"text-xs text-gray-600 mt-1",children:[(n[`${a.key}.description`]||a.defaultDescription).length," / 160 caracteres"]})]})]})]},a.key))]})}const qk=()=>{const[n,e]=S.useState("dashboard"),{data:a={}}=Pr("seo"),i=Br(),[l,c]=S.useState(null),[d,f]=S.useState(null),h=l??a;function m(v,N){c(w=>({...w??a,[v]:N}))}function g(){i.mutate({slug:"seo",locale:"fr",content:h},{onSuccess:v=>{c(v),f({message:"SEO sauvegarde",type:"success"})},onError:()=>f({message:"Erreur lors de la sauvegarde",type:"error"})})}const y=du.filter(v=>v.done).length,b=Math.round(y/du.length*100);return r.jsxs("div",{children:[d&&r.jsx(os,{message:d.message,notificationType:d.type,onDismiss:()=>f(null)}),r.jsx(ds,{title:"SEO",subtitle:"Referencement naturel et meta-donnees",headerActions:n==="editor"?[{label:i.isPending?"...":"Enregistrer",onTrigger:g,variant:"primary"}]:void 0}),r.jsx("div",{className:"flex gap-1 mb-8",children:["dashboard","editor"].map(v
134=>r.jsx("button",{type:"button",onClick:()=>e(v),className:"px-4 py-2 rounded-lg text-sm font-medium transition-colors "+(n===v?"bg-white text-gray-950":"text-gray-500 hover:text-white hover:bg-gray-800"),children:v==="dashboard"?"Dashboard":"Editeur meta"},v))}),n==="dashboard"?r.jsx(Lk,{doneCount:y,scorePercent:b,setNotification:f}):r.jsx(Uk,{draft:h,updateField:m})]})};async function Pk(){const n=await fetch(bt+"/shotgun/agenda");if(!n.ok)throw new Error("Erreur chargement agenda");return n.json()}async function Bk(){const n=await fetch(bt+"/shotgun/ontop");if(!n.ok)throw new Error("Erreur chargement ontop");return n.json()}async function Fk(n){const e=await fetch(bt+"/events/"+n+"/detail");if(!e.ok)throw new Error("Erreur chargement detail evenement");return e.json()}async function Hk(n=!1){const e=bt+"/events?status=publie"+(n?"&past=1":""),a=await fetch(e);if(!a.ok)throw new Error("Erreur chargement events");return a.json()}async function Vk(){const n=await fetch(bt+"/categories");if(!n.ok)throw new Error("Erreur chargement categories");return n.json()}async function Ik(){const n=await fetch(bt+"/genres");if(!n.ok)throw new Error("Erreur chargement genres");return n.json()}async function Gk(){const n=await fetch(bt+"/shotgun/ticket-status");if(!n.ok)throw new Error("Erreur chargement ticket status");return n.json()}const ps={ticketAvailableColor:"#22c55e",ticketAvailableTextColor:"#000000",ticketLastTicketsColor:"#fbbf24",ticketLastTicketsTextColor:"#000000",ticketSoldOutColor:"#f43f5e",ticketSoldOutTextColor:"#ffffff"};async function Qk(){try{const n=await fetch(bt+"/settings");if(!n.ok)return ps;const e=await n.json();return{ticketAvailableColor:e.ticketAvailableColor||ps.ticketAvailableColor,ticketAvailableTextColor:e.ticketAvailableTextColor||ps.ticketAvailableTextColor,ticketLastTicketsColor:e.ticketLastTicketsColor||ps.ticketLastTicketsColor,ticketLastTicketsTextColor:e.ticketLastTicketsTextColor||ps.ticketLastTicketsTextColor,ticketSoldOutColor:e.ticketSoldOutColor||ps.ticketSoldOutColor,ticketSoldOutTextColor:e.ticketSoldOutTextColor||ps.ticketSoldOutTextColor}}catch{return ps}}async function Kk(){const n=await fetch(bt+"/tremplin/current");if(!n.ok)throw new Error("Erreur chargement edition tremplin");return n.json()}async function Yk(n,e){const a=await fetch(bt+"/tremplin/editions/"+n+"/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){const i=await a.json().catch(()=>null);throw new Error(i?.message||"Erreur lors de l'inscription")}}async function $k(n,e){const a=await fetch(bt+"/tremplin/candidates/"+n+"/vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){const i=await a.json().catch(()=>null);throw new Error(i?.message||"Erreur lors du vote")}}async function Xk(n){const e=await fetch(bt+"/tremplin/events/"+n+"/vote-page");if(!e.ok)throw new Error("Evenement introuvable");return e.json()}async function Zk(n){const e=await fetch(bt+"/tremplin/events/"+n+"/public-results");return e.ok?e.json():null}async function Jk(n,e){const a=await fetch(bt+"/tremplin/events/"+n+"/event-vote",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!a.ok){const i=await a.json().catch(()=>null);throw new Error(i?.message||"Erreur lors du vote")}}function R1(){return rt({queryKey:["shotgunAgenda"],queryFn:Pk})}function Wk(){return rt({queryKey:["onTopEvents"],queryFn:Bk})}function eT(n){return rt({queryKey:["eventDetail",n],queryFn:()=>Fk(Number(n)),enabled:!!n})}function tT(n=!1){return rt({queryKey:["publishedEvents",n],queryFn:()=>Hk(n)})}function nT(){return rt({queryKey:["categories"],queryFn:Vk})}function Im(){return rt({queryKey:["genres"],queryFn:Ik})}function sT(){return rt({queryKey:["ticketStatusMap"],queryFn:Gk})}function D1(){return rt({queryKey:["ticketButtonColors"],queryFn:Qk,select:n=>n??ps})}function L1(){return rt({queryKey:["tremplinEdition"],queryFn:Kk})}function aT(){const n=Le();return De({mutationFn:({editionId:e,payload:a})=>Yk(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["tremplinEdition"]})}})}function iT(){const n=Le();return De({mutationFn:({candidateId:e,payload:a})=>$k(e,a),onSuccess:()=>{n.invalidateQueries({queryKey:["tremplinEdition"]})}})}function rT(){return De({mutationFn:PC})}const lT=[{key:"residences",label:"Residences"},{key:"tremplin",label:"Tremplin Artistes"}],oT=()=>{const[n,e]=S.useState("residences");return r.jsxs("div",{children:[r.jsx(ds,{title:"Communication",subtitle:"Donnees recoltees via les formulaires clients"}),r.jsx("div",{className:"flex gap-1 mb-6 bg-gray-900 rounded-lg p-1 
134w-fit",children:lT.map(a=>r.jsx("button",{type:"button",onClick:()=>e(a.key),className:"px-4 py-2 rounded-md text-sm font-medium transition-colors "+(n===a.key?"bg-white text-gray-950":"text-gray-400 hover:text-white"),children:a.label},a.key))}),n==="residences"&&r.jsx(cT,{}),n==="tremplin"&&r.jsx(uT,{})]})};function cT(){const{data:n=[],isLoading:e}=N_(),{data:a=[]}=Im(),i=S_(),[l,c]=S.useState(null),d=S.useMemo(()=>new Map(a.map(m=>[m.id,m.name])),[a]);function f(m){if(!m)return[];try{return JSON.parse(m)}catch{return[]}}function h(m){if(!m)return[];try{return JSON.parse(m)}catch{return[]}}return e?r.jsx("p",{className:"text-gray-500",children:"Chargement..."}):n.length===0?r.jsx("p",{className:"text-gray-500",children:"Aucune demande de residence pour le moment."}):r.jsxs("div",{className:"space-y-3",children:[n.map(m=>{const g=f(m.artists),y=h(m.genreIds);return r.jsxs("div",{className:"bg-gray-900 rounded-xl p-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("button",{type:"button",className:"flex-1 text-left",onClick:()=>c(l===m.id?null:m.id),children:[r.jsx("h3",{className:"text-white font-medium",children:m.eventTitle}),r.jsxs("p",{className:"text-xs text-gray-500 mt-0.5",children:[m.contactEmail," · ",new Date(m.createdAt).toLocaleDateString("fr-FR"),g.length>0&&r.jsxs("span",{children:[" · ",g.length," artiste(s)"]})]})]}),r.jsx("button",{type:"button",onClick:()=>i.mutate(m.id),className:"text-gray-600 hover:text-red-400 transition-colors ml-3",title:"Supprimer",children:r.jsx(kE,{size:16})})]}),l===m.id&&r.jsxs("div",{className:"mt-4 space-y-4 border-t border-gray-800 pt-4",children:[r.jsxs("div",{className:"space-y-2 text-sm",children:[m.description&&r.jsx("p",{className:"text-gray-400",children:m.description}),m.desiredDate&&r.jsxs("p",{className:"text-gray-500",children:["Date souhaitee : ",r.jsx("span",{className:"text-gray-300",children:new Date(m.desiredDate).toLocaleDateString("fr-FR")})]}),m.contactPhone&&r.jsxs("p",{className:"text-gray-500",children:["Telephone : ",r.jsx("span",{className:"text-gray-300",children:m.contactPhone})]}),m.questions&&r.jsxs("p",{className:"text-gray-500",children:["Questions : ",r.jsx("span",{className:"text-gray-300",children:m.questions})]})]}),y.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1.5",children:y.map(b=>r.jsx("span",{className:"px-2.5 py-1 bg-gray-800 text-gray-300 text-xs rounded-full",children:d.get(b)??`#${b}`},b))}),g.length>0&&r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{className:"text-xs uppercase tracking-wider text-gray-500",children:"Artistes"}),g.map((b,v)=>r.jsxs("div",{className:"bg-gray-800/50 rounded-lg p-4 flex gap-4",children:[r.jsx(Ts,{src:b.avatarPreview,alt:b.name,iconSize:20,className:"shrink-0 w-14 h-14 rounded-full bg-gray-700"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-white font-medium",children:b.name}),b.bio&&r.jsx("p",{className:"text-gray-400 text-sm mt-1",children:b.bio}),r.jsxs("div",{className:"flex flex-wrap gap-2 mt-2",children:[b.embedUrl&&r.jsxs("a",{href:b.embedUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-xs text-blue-400 hover:text-blue-300",children:[r.jsx(Eu,{size:12})," Ecouter"]}),b.socialLinks.map((N,w)=>r.jsxs("a",{href:N,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-xs text-blue-400 hover:text-blue-300",children:[r.jsx(Vh,{size:12})," ",new URL(N).hostname.replace("www.","")]},w))]})]})]},v))]})]})]},m.id)}),r.jsxs("p",{className:"text-xs text-gray-600",children:[n.length," demande(s)"]})]})}function uT(){const{data:n=[],isLoading:e}=Xv();return e?r.jsx("p",{className:"text-gray-500",children:"Chargement..."}):n.length===0?r.jsx("p",{className:"text-gray-500",children:"Aucune edition tremplin."}):r.jsx("div",{className:"space-y-4",children:n.map(a=>r.jsxs("div",{className:"bg-gray-900 rounded-xl p-4",children:[r.jsx("div",{className:"flex items-center justify-between mb-3",children:r.jsxs("div",{children:[r.jsxs("h3",{className:"text-white font-medium",children:[a.title," (",a.year,")"]}),r.jsxs("p",{className:"text-xs text-gray-500",children:["Phase: ",a.phase," · ",a._count?.candidates??0," candidat(s)"]})]})}),a.candidates&&a.candidates.length>0&&r.jsxs("table",{className:"w-full text-sm",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b border-gray-800 text-left text-gray-500 text-xs uppercase tracking-wider",children:[r.jsx("th",{className:"px-3 py-2",children:"Nom"}),r.jsx("th",{className:"px-3 py-2",children:"Email"}),r.jsx("th",{className:"px-3 py-2",children:"Votes"}),r.jsx("th",{className:"px-3 py-2",children:"Gagnant"}),r.jsx("th",{className:"px-3 py-2",children:"Date"})]})}),r.jsx("tbody",{children:a.candidates.map(i=>r.jsxs("tr",{className:"border-b border-gray-800/50",children:[r.jsx("td",{className:"px-3 py-2 text-white",children:i.name}),r.jsx("td",{className:"px-3 py-2 text-gray-400",children:i.email}),r.jsx("td",{className:"px-3 py-2 text-gray-400",children:i.voteCount}),r.jsx("td",{className:"px-3 py-2",children:i.isWinner?r.jsx("span",{className:"text-yellow-400 text-xs font-medium",children:"Oui"}):r.jsx("span",{className:"text-gray-600 text-xs",children:"Non"})}),r.jsx("td",{className:"px-3 py-2 text-gray-500 text-xs",children:new Date(i.createdAt).toLocaleDateString("fr-FR")})]},i.id))})]})]},a.id))})}const dT=()=>r.jsxs("div",{className:"admin-scale drawer lg:drawer-open bg-gray-950 min-h-screen",children:[r.jsx("input",{id:"admin-drawer",type:"checkbox",className:"drawer-toggle"}),r.jsxs("div",{className:"drawer-content",children:[r.jsxs("nav",{className:"navbar w-full",children:[r.jsx("label",{htmlFor:"admin-drawer","aria-label":"toggle sidebar",className:"btn btn-square btn-ghost",children:r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",strokeLinejoin:"round",strokeLinecap:"round",strokeWidth:"2",fill:"none",stroke:"currentColor",className:"size-4",children:[r.jsx("path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z"}),r.jsx("path",{d:"M9 4v16"}),r.jsx("path",{d:"M14 10l2 2l-2 2"})]})}),r.jsx("div",{className:"px-4 font-semibold",children:"Ouvrir le menu"})]}),r.jsx("main",{className:"p-8",children:r.jsxs(xm,{children:[r.jsx(nt,{path:"events",element:r.jsx(w5,{})}),r.jsx(nt,{path:"affiche",element:r.jsx(T5,{})}),r.jsx(nt,{path:"tremplin",element:r.jsx(Q5,{})}),r.jsx(nt,{path:"le-projet",element:r.jsx(J5,{})}),r.jsx(nt,{path:"activites",element:r.jsx(nk,{})}),r.jsx(nt,{path:"espace-pro",element:r.jsx(jk,{})}),r.jsx(nt,{path:"contact",element:r.jsx(Ek,{})}),r.jsx(nt,{path:"documents",element:r.jsx(Tk,{})}),r.jsx(nt,{path:"bibliotheque",element:r.jsx(Mk,{})}),r.jsx(nt,{path:"seo",element:r.jsx(qk,{})}),r.jsx(nt,{path:"com",element:r.jsx(oT,{})}),r.jsx(nt,{path:"settings",element:r.jsx($5,{})}),r.jsx(nt,{path:"",element:r.jsx(X3,{})})]})})]}
134),r.jsxs("div",{className:"drawer-side is-drawer-close:overflow-visible",children:[r.jsx("label",{htmlFor:"admin-drawer","aria-label":"close sidebar",className:"drawer-overlay"}),r.jsx(K3,{})]})]});function Gm(n,e,a){const i=S.useRef(null),l=S.useRef(n);l.current=n;const c=S.useCallback(()=>{i.current&&(clearInterval(i.current),i.current=null)},[]),d=S.useCallback(()=>{c(),!(e<=1)&&(i.current=setInterval(()=>l.current(),a))},[e,a,c]);return S.useEffect(()=>(d(),c),[d,c]),{pauseAutoplay:c,resumeAutoplay:d,resetAutoplay:d}}function fT(n,e,a){return n===e?"translate-x-0 transition-transform duration-700 ease-out":n===a?"-translate-x-full transition-transform duration-700 ease-out":"translate-x-full transition-none"}const hT=()=>{const{t:n,i18n:e}=Re(),{data:a=[]}=Wk(),[i,l]=S.useState(0),[c,d]=S.useState(null),f=S.useRef(0),h=S.useRef(null),m=S.useRef(0),g=S.useRef(0),y=S.useCallback(A=>{d(f.current),f.current=A,l(A),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>d(null),700)},[]),b=S.useCallback(()=>{const A=(f.current+1)%a.length;y(A)},[a.length,y]),{resetAutoplay:v}=Gm(b,a.length,5e3);S.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const N=()=>{y((f.current+1)%a.length),v()},w=()=>{y((f.current-1+a.length)%a.length),v()},_=A=>{y(A),v()};function k(A){m.current=A.touches[0].clientX,g.current=0}function E(A){g.current=A.touches[0].clientX-m.current}function C(){Math.abs(g.current)>50&&(g.current<0?N():w()),g.current=0}return a.length===0?null:r.jsxs("div",{className:"h-screen w-full relative overflow-hidden",onTouchStart:k,onTouchMove:E,onTouchEnd:C,children:[a.map((A,M)=>r.jsxs("div",{className:"absolute inset-0 "+fT(M,i,c),children:[r.jsxs("div",{className:"absolute inset-0",children:[A.mobileImage&&r.jsx("img",{src:ia(A.mobileImage)??"",alt:"",className:"md:hidden w-full h-full object-cover object-top"}),A.heroImage&&r.jsx("img",{src:ia(A.heroImage)??"",alt:"",className:(A.mobileImage?"hidden md:block ":"")+"w-full h-full object-cover object-top"}),r.jsx("div",{className:"absolute inset-0 bg-black/50"})]}),r.jsxs("div",{className:"relative z-10 h-full flex flex-col justify-end pb-24 px-4 sm:px-8 md:px-16 text-white",children:[r.jsx(ht,{to:"/events/"+A.id,children:r.jsx("h1",{className:"font-mango text-5xl sm:text-6xl md:text-8xl lg:text-9xl font-bold mb-4 hover:opacity-80 transition-opacity",children:A.title})}),r.jsxs("p",{className:"text-2xl md:text-3xl mb-2",children:[A.venueName,A.venueCity?" — "+A.venueCity:""]}),r.jsx("p",{className:"text-lg mb-6 opacity-80",children:ho(A.startTime,e.language)}),r.jsx("div",{className:"flex flex-wrap gap-4",children:r.jsx(ht,{to:"/events/"+A.id,className:"inline-block w-fit border-2 border-white text-white px-8 py-4 text-lg font-bold hover:bg-white/10 transition-colors rounded-full",children:n("onTopEvent.learnMore")})})]})]},A.id)),a.length>1&&r.jsx("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex gap-2 z-20",children:a.map((A,M)=>r.jsx("button",{type:"button",title:n("navbar.showEvent",{index:M+1}),onClick:()=>_(M),className:"w-3 h-3 rounded-full transition-colors "+(M===i?"bg-white":"bg-white/40")},M))})]})};function Mu(n){const e=S.useRef(null),[a,i]=S.useState(0);return S.useEffect(()=>{function l(){if(!e.current)return;const c=e.current.getBoundingClientRect();i(Math.max(0,Math.min(1,n(c,window.innerHeight))))}return window.addEventListener("scroll",l,{passive:!0}),l(),()=>window.removeEventListener("scroll",l)},[n]),[e,a]}const mT=({item:n,onHoverThematique:e,onLeaveThematique:a})=>{const{t:i}=Re(),l=S.useRef(null),[c,d]=S.useState({x:0,y:0}),[f,h]=S.useState(!1),m=S.useCallback(g=>{if(!l.current)return;const y=l.current.getBoundingClientRect(),b=y.left+y.width/2,v=y.top+y.height/2;d({x:(g.clientX-b)*.15,y:(g.clientY-v)*.4})},[]);return r.jsxs(ht,{ref:l,to:n.url,className:"group block border-t border-white/10 last:border-b",onMouseMove:m,onMouseEnter:()=>{h(!0),e()},onMouseLeave:()=>{h(!1),d({x:0,y:0}),a()},children:[r.jsxs("div",{className:"flex md:hidden items-center justify-between gap-4 py-6",children:[r.jsx("h3",{className:"font-mango text-white text-5xl uppercase leading-none group-hover:text-neutral-300 transition-colors",children:n.title}),r.jsx("div",{className:"w-10 h-10 rounded-full border border-white/20 group-hover:border-white flex items-center justify-center transition-colors shrink-0",children:r.jsx(eo,{size:16,className:"text-neutral-400 group-hover:text-white transition-colors"})})]}),r.jsxs("div",{className:"hidden md:grid grid-cols-[1fr_1.2fr_1.5fr_auto] items-center gap-6 py-10",children:[r.jsx("h3",{className:"font-mango text-white text-7xl lg:text-8xl uppercase leading-none group-hover:text-neutral-300 transition-colors",children:n.title}),r.jsx("div",{className:"flex justify-center",children:r.jsx("div",{className:"w-56 h-64 roun
134ded-3xl overflow-hidden shadow-2xl pointer-events-none",style:{opacity:f?1:0,transform:"scale("+(f?1:0)+") rotate("+(f?6:0)+"deg) translate("+c.x+"px, "+c.y+"px)",transitionProperty:"opacity, transform",transitionDuration:f?"150ms":"500ms",transitionTimingFunction:f?"ease-out":"cubic-bezier(0.34, 1.8, 0.64, 1)"},children:r.jsx("img",{src:n.image,alt:n.title,className:"w-full h-full object-cover"})})}),r.jsx("p",{className:"text-neutral-300 text-sm tracking-widest uppercase leading-relaxed max-w-sm",children:i(n.descriptionKey)}),r.jsx("div",{className:"w-12 h-12 rounded-full border border-white/20 group-hover:border-white flex items-center justify-center transition-colors shrink-0",children:r.jsx(eo,{size:16,className:"text-neutral-400 group-hover:text-white transition-colors"})})]})]})},pT=({items:n})=>{const{t:e}=Re(),a=n[0]?.image,[i,l]=S.useState(null),c=S.useCallback((y,b)=>(b*.25-y.top)/(b*.35),[]),[d,f]=Mu(c),h=f,m=f,g=f*1.1;return r.jsxs("section",{ref:d,className:"w-full bg-black",children:[r.jsxs("div",{className:"min-h-[50vh] md:min-h-screen flex flex-col items-center justify-center px-8 md:px-16 py-12 md:py-24",children:[r.jsx("p",{className:"text-neutral-500 text-xs md:text-sm tracking-[0.15em] uppercase text-center max-w-lg leading-relaxed mb-16",children:e("navigation.subtitle")}),r.jsxs("h2",{className:"font-mango text-white text-[18vw] md:text-[14vw] lg:text-[12vw] font-bold leading-[0.85] text-center uppercase",children:[r.jsx("span",{className:"block",children:e("navigation.discoverLine1")}),r.jsxs("span",{className:"block",children:[e("navigation.discoverLine2Prefix"),r.jsx("span",{className:"inline-block h-[1.1em] align-middle rounded-lg overflow-hidden relative -top-[0.05em]",style:{width:g+"em",opacity:m,transform:"scaleY("+h+")"},children:r.jsx("img",{src:a,alt:"",className:"w-full h-full object-cover"})}),e("navigation.discoverLine2Suffix")]}),r.jsx("span",{className:"block",children:e("navigation.discoverLine3")})]})]}),r.jsxs("div",{className:"relative w-full overflow-hidden",children:[n.map(y=>r.jsxs("div",{className:"absolute inset-0 transition-opacity duration-700 "+(i===y.id?"opacity-100":"opacity-0"),children:[r.jsx("img",{src:y.image,alt:"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-black/60"})]},y.id)),r.jsxs("div",{className:"relative z-10 px-8 md:px-16 py-16",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-2",children:[r.jsx("span",{className:"text-neutral-400 text-xs tracking-[0.2em] uppercase whitespace-nowrap font-medium",children:e("navigation.nosThematiques")}),r.jsx("div",{className:"flex-1 h-px bg-white/15"})]}),n.map(y=>r.jsx(mT,{item:y,onHoverThematique:()=>l(y.id),onLeaveThematique:()=>l(null)},y.id))]})]})]})};async function Qm(n,e){try{const a=await fetch(`${bt}/pages/${n}/${e}`);return a.ok?a.json():{}}catch{return{}}}function gT(){const{data:n={}}=rt({queryKey:["pageContent","bibliotheque","fr"],queryFn:()=>Qm("bibliotheque","fr")});function e(a,i){return an(n[a],i)}return{bibliothequeImages:n,resolveBibliothequeImage:e}}const Km=({status:n,ticketUrl:e,isShotgun:a,colors:i,size:l="default"})=>{const{t:c}=Re(),d=l==="large",f=d?"inline-flex items-center justify-center gap-2 font-semibold text-base px-6 py-3 rounded-full hover:opacity-90 transition-opacity min-w-[160px]":"inline-flex items-center justify-center gap-1.5 text-xs font-semibold px-3 py-1.5 rounded-full hover:opacity-90 transition-opacity min-w-[120px]",h=d?16:14;return e?n==="soldOut"?a?r.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:f,style:{backgroundColor:i.ticketSoldOutColor,color:i.ticketSoldOutTextColor},children:[c("agenda.joinWaitingList"),r.jsx(Yc,{size:h})]}):r.jsx("span",{className:"inline-flex items-center justify-center text-xs font-semibold px-3 py-1.5 rounded-full bg-neutral-800 text-neutral-500 min-w-[120px]",children:c("agenda.soldOut")}):n==="lastTickets"?r.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:f,style:{backgroundColor:i.ticketLastTicketsColor,color:i.ticketLastTicketsTextColor},children:[c("agenda.lastTickets"),r.jsx(Yc,{size:h})]}):r.jsxs("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:f,style:{backgroundColor:i.ticketAvailableColor,color:i.ticketAvailableTextColor},children:[c(a?"agenda.getTicket":"agenda.reserve"),r.jsx(Yc,{size:h})]}):n==="soldOut"?r.jsx("span",{className:"inline-flex items-center justify-center text-xs font-semibold px-3 py-1.5 rounded-full bg-neutral-800 text-neutral-500 min-w-[120px]",children:c("agenda.soldOut")}):null};function xT(n){return n.slice(0,3).map(e=>e.toUpperCase()).join(" / ")}const yT=()=>{const{t:n,i18n:e}=Re(),{data:a=[]}=R1(),{data:i=ps}=D1(),[l,c]=S.useState(0),[d,f]=S.useState(0),h=S.useRef(null),m=S.useRef(!1),g=S.useRef(0),y=S.useRef(0);function b(z){if(!h.current||h.current.children.length===0)return;const P=h.current.children[z];P&&h.current.scrollTo({left:P.offsetLeft,behavior:"smooth"})}function v(){if(!h.current||a.length===0)return 0;const z=h.current.clientWidth,P=h.current.children[0];if(!P)return 0;const G=P.offsetWidth+24,ne=Math.floor(z/G);return Math.max(0,a.length-ne)}function N(){c(z=>{const P=v();return z>=P?0:z+1})}function w(){c(z=>{const P=v();return z<=0?P:z-1})}const _=S.useCallback(()=>{N()},[]),{pauseAutoplay:k,resumeAutoplay:E}=Gm(_,a.length,2e3);S.useEffect(()=>{b(l)},[l]);
134function C(){if(!h.current)return;const{scrollLeft:z,scrollWidth:P,clientWidth:I}=h.current,G=P-I;f(G>0?z/G:0)}function A(z){h.current&&(m.current=!0,g.current=z.pageX-h.current.offsetLeft,y.current=h.current.scrollLeft,h.current.style.cursor="grabbing",k())}function M(z){if(!m.current||!h.current)return;z.preventDefault();const P=z.pageX-h.current.offsetLeft;h.current.scrollLeft=y.current-(P-g.current)}function H(){h.current&&(m.current=!1,h.current.style.cursor="grab")}return a.length===0?null:r.jsxs("section",{className:"bg-black pt-12 pb-0 px-4 sm:px-6 md:px-12",onMouseEnter:k,onMouseLeave:E,children:[r.jsxs("div",{className:"flex items-center gap-4 mb-8",children:[r.jsx("span",{className:"text-neutral-400 text-xs tracking-[0.2em] uppercase whitespace-nowrap font-medium",children:n("agendaPreview.scrollLabel")}),r.jsx("div",{className:"flex-1 h-px bg-neutral-800 relative",children:r.jsx("div",{className:"absolute top-0 left-0 h-px bg-neutral-400 transition-all duration-500",style:{width:d*100+"%"}})}),r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("button",{type:"button",onClick:w,title:n("agendaPreview.previousLabel"),className:"text-neutral-400 hover:text-white transition-colors p-1",children:r.jsx(Cu,{size:24,strokeWidth:1.5})}),r.jsx("button",{type:"button",onClick:N,title:n("agendaPreview.nextLabel"),className:"text-neutral-400 hover:text-white transition-colors p-1",children:r.jsx(Wv,{size:24,strokeWidth:1.5})})]})]}),r.jsx("div",{ref:h,onScroll:C,onMouseDown:A,onMouseMove:M,onMouseUp:H,onMouseLeave:H,className:"flex gap-6 overflow-x-auto scrollbar-hide cursor-grab select-none [scrollbar-width:none] [-ms-overflow-style:none]",children:a.map(z=>r.jsxs("div",{className:"shrink-0 w-[70%] sm:w-[45%] md:w-[calc(30%-14px)] lg:w-[calc(28.5%-14px)] flex flex-col",children:[r.jsx(ht,{to:"/events/"+z.id,className:"block group",children:r.jsx("div",{className:"aspect-4/5 overflow-hidden rounded-xl",children:z.mobileImageUrl||z.coverUrl?r.jsx("img",{src:ia(z.mobileImageUrl)??ia(z.coverUrl)??"",alt:z.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):r.jsx("div",{className:"w-full h-full bg-neutral-800"})})}),r.jsxs("div",{className:"mt-4 flex flex-col flex-1",children:[r.jsx(ht,{to:"/events/"+z.id,children:r.jsx("h3",{className:"font-mango-bold text-white text-3xl md:text-4xl uppercase leading-tight hover:opacity-80 transition-opacity",children:z.title})}),z.genres.length>0&&r.jsx("p",{className:"text-neutral-500 text-sm mt-1",children:xT(z.genres)}),r.jsx("p",{className:"text-neutral-400 text-sm mt-auto pt-3",children:ho(z.startTime,e.language)}),r.jsx("div",{className:"mt-2",children:r.jsx(Km,{status:z.ticketStatus,ticketUrl:z.url,isShotgun:!0,colors:i})})]})]},z.id))}),r.jsx("div",{className:"flex justify-center mt-6 pb-6",children:r.jsxs(ht,{to:"/agenda",className:"inline-flex items-center gap-2 bg-white text-black font-medium text-sm px-5 py-2.5 rounded-full hover:bg-neutral-200 transition-colors",children:[n("agendaPreview.discoverAgenda"),r.jsx("span",{className:"flex items-center justify-center w-6 h-6 rounded-full bg-black text-white",children:r.jsx(eo,{size:14,strokeWidth:2.5})})]})})]})},Eb="Le Makeda",z1="https://lemakeda.com",bT=z1+"/icons/icon-512x512.png";function ns(n,e,a="name"){let i=document.querySelector(`meta[${a}="${n}"]`);i||(i=document.createElement("meta"),i.setAttribute(a,n),document.head.appendChild(i)),i.setAttribute("content",e)}function vT(n,e,a){const i=`link[rel="${n}"]`;let l=document.querySelector(i);l||(l=document.createElement("link"),l.setAttribute("rel",n),document.head.appendChild(l)),l.setAttribute("href",e)}const Ya=({title:n,description:e,path:a="",image:i,type:l="website",overrides:c})=>{S.useEffect(()=>{const d=c?.title||n,f=c?.description||e,h=`${d} | ${Eb}`,m=z1+a,g=i||bT;document.title=h,ns("description",f),ns("og:title",h,"property"),ns("og:description",f,"property"),ns("og:url",m,"property"),ns("og:image",g,"property"),ns("og:type",l,"property"),ns("og:site_name",Eb,"property"),ns("og:locale","fr_FR","property"),ns("twitter:card","summary_large_image"),ns("twitter:title",h),ns("twitter:description",f),ns("twitter:image",g),vT("canonical",m)},[n,e,a,i,l,c?.title,c?.description])};function Ai(n){const{data:e={}}=rt({queryKey:["seoContent",n],queryFn:async()=>{const a=await Qm("seo","fr"),i=a[`${n}.title`],l=a[`${n}.description`];return i||l?{title:i||void 0,description:l||void 0}:{}}});return e}const jT=["navMakeda","navAgenda","navTremplin","navAssociation"],wT=()=>{const n=Ai("home");Ya({title:"Salle de concerts a Marseille",description:"Le Makeda, salle de concerts et musiques actuelles au coeur de Marseille. Plus de 200 concerts par an dans une jauge intimiste de 270 personnes.",path:"/",overrides:n});const{resolveBibliothequeImage:e}=gT(),a=S.useMemo(()=>Yh.map((i,l)=>({...i,image:e(jT[l],i.image)})),[e]);return r.jsxs("div",{children:[r.jsx(hT,{}),r.jsx(yT,{}),r.jsx(pT,{items:a})]})};function NT(n){const{i18n:e}=Re(),a=e.language.split("-")[0];return rt({queryKey:["pageContent",n,a],queryFn:()=>Qm(n,a),staleTime:6e4})}function go(n){const{t:e}=Re(),a=NT(n),i=a.data??{};return{c:c=>{if(i[c]!==void 0)return i[c];const d=`${n}.${c}`,f=e(d);return f===d?"":f},pageContent:i,query:a}}const Ou="font-mango text-4xl md:text-5xl lg:text-6xl uppercase leading-[0.95] tracking-normal",Hr="font-mango text-3xl md:text-5xl uppercase tracking-normal",ST="font-mango text-2xl md:text-4xl uppercase tracking-normal",$h="text-xs md:text-sm uppercase tracking-widest font-bold",As="text-base md:text-lg leading-relaxed whitespace-pre-line text-ju
134stify hyphens-auto",za="text-xs uppercase tracking-widest text-neutral-500",CT=({c:n,pageContent:e})=>{const a=an(e["hero.image"],Rs);return r.jsxs("section",{children:[r.jsxs("div",{className:"pt-32 px-8 md:px-16",children:[r.jsx("h1",{className:`${Ou} whitespace-pre-line`,children:n("hero.title")}),n("hero.subtitle")&&r.jsx("p",{className:"mt-6 text-lg md:text-xl text-neutral-500 max-w-2xl",children:n("hero.subtitle")})]}),r.jsx("div",{className:"px-8 md:px-16 mt-12",children:r.jsx("img",{src:a,alt:"",className:"w-full h-[60vh] object-cover grayscale"})})]})};function _T(n){const e=[],a=n.split(/(\r?\n[\r\n]*)/);for(const i of a)if(i)if(/^[\r\n]+$/.test(i))e.push({type:"break"});else for(const l of i.split(/[ \t]+/))l&&e.push({type:"word",value:l});return e}const ET=({body:n})=>{const e=S.useCallback((h,m)=>(m*.6-h.top)/h.height,[]),[a,i]=Mu(e),l=_T(n),c=l.reduce((h,m)=>h+(m.type==="word"?1:0),0),d=Math.floor(i*c*1.4);let f=0;return r.jsx("section",{ref:a,className:"bg-white text-black px-8 md:px-16 py-24 md:py-32 min-h-screen flex flex-col items-center justify-center",children:r.jsx("p",{className:"text-base md:text-xl lg:text-2xl leading-relaxed max-w-4xl text-justify hyphens-auto",children:l.map((h,m)=>{if(h.type==="break")return r.jsx("br",{},m);const g=f++,y=f===c;return r.jsxs(S.Fragment,{children:[r.jsx("span",{className:"transition-colors duration-300 "+(g<d?"text-black":"text-neutral-300"),children:h.value}),!y&&" "]},m)})})})},kT=({title:n,body:e,image:a,imageFallback:i})=>{const c=n.replace(/^le\s*makeda\s*,?\s*/i,"").trim()||n,d=an(a,i);return r.jsx("section",{className:"bg-black text-white px-8 md:px-16 py-16 md:py-24",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-12 items-stretch",children:[r.jsxs("div",{className:"flex flex-col justify-center",children:[r.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4 md:gap-6 mb-6",children:[r.jsx("img",{src:qr,alt:"Le Makeda",className:"h-12 md:h-16 shrink-0"}),r.jsx("h2",{className:"font-jost font-light tracking-tight text-2xl md:text-4xl leading-tight whitespace-pre-line",children:c})]}),r.jsx("p",{className:`${As} text-neutral-300`,children:e})]}),r.jsx("div",{className:"w-full h-full min-h-[280px] md:min-h-0 rounded-2xl overflow-hidden",children:r.jsx("img",{src:d,alt:"",className:"w-full h-full object-cover"})})]})})},TT=({title:n,body:e,image:a,imageFallback:i})=>{const c=n.replace(/^orizon\s*sud\s*,?\s*/i,"").trim()||n,d=an(a,i);return r.jsx("section",{className:"bg-black text-white px-8 md:px-16 py-16 md:py-24",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-12 items-stretch",children:[r.jsx("div",{className:"w-full h-full min-h-[280px] md:min-h-0 rounded-2xl overflow-hidden order-2 md:order-1",children:r.jsx("img",{src:d,alt:"",className:"w-full h-full object-cover"})}),r.jsxs("div",{className:"flex flex-col justify-center order-1 md:order-2",children:[r.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4 md:gap-6 mb-6",children:[r.jsx("img",{src:mo,alt:"Orizon Sud",className:"h-12 md:h-16 shrink-0 invert"}),r.jsx("h2",{className:"font-jost font-light tracking-tight text-2xl md:text-4xl leading-tight whitespace-pre-line",children:c})]}),r.jsx("p",{className:`${As} text-neutral-300`,children:e})]})]})})},U1="/assets/LogoBlack-BnWyyxZs.png",q1="/assets/espace-julien-CqMP_ohE.jpg",P1="/assets/la-meson-BBrDrVJY.jpg",B1="/assets/theatre-oeuvre-CRAGokIE.png",AT=[{name:"Le Makeda",logoUrl:U1,bg:"white"},{name:"Espace Julien",logoUrl:q1,bg:"white"},{name:"La Mesón",logoUrl:P1,bg:"white"},{name:"Théâtre de l'Œuvre",logoUrl:B1,bg:"white"}],MT=({title:n,titleBrand:e,body:a,ctaLabel:i,ctaUrl:l})=>{const d=n.replace(/\s*b[ée]n[ée]vole[s]?\s*/gi," ").replace(/\s+/g," ").trim()||"Devenir";return r.jsx("section",{className:"bg-[#1938e6] text-white px-8 md:px-16 py-16 md:py-24",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsxs("div",{className:"mb-10 md:mb-12",children:[r.jsx("p",{className:`${za} text-white/70 mb-4`,children:"Le collectif Bénélovers"}),r.jsx("div",{className:"flex flex-wrap gap-2 md:gap-3",children:AT.map(f=>r.jsx("div",{title:f.name,className:"w-20 h-14 md:w-24 md:h-16 rounded-md inline-flex items-center justify-center p-2 "+(f.bg==="white"?"bg-white":"bg-black"),children:r.jsx("img",{src:f.logoUrl,alt:f.name,className:"max-h-full max-w-full object-contain"})},f.name))})]}),r.jsxs("h2",{className:"mb-6 whitespace-pre-line leading-[0.95]",children:[r.jsx("span",{className:"font-jost font-light tracking-tight text-3xl md:text-5xl",children:d}),e&&r.jsxs(r.Fragment,{children:[" ",r.jsx("span",{className:"italic font-serif normal-case text-4xl md:text-6xl lg:text-7xl tracking-tight",children:e})]})]}),r.jsx("p",{className:`${As} mb-8`,children:a}),l&&i&&r.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"inline-block px-8 py-4 bg-black text-white font-medium rounded-lg hover:bg-neutral-800 transition-colors",children:i})]})})},OT=({title:n,titleBrand:e,body:a,ctaLabel:i,note:l})=>{const d=n.replace(/\s*m[ée]c[ée]nat\s*/gi," ").replace(/\s+/g," ").trim()||"Devenir",f=e||"Mécène";return r.jsx("section",{className:"bg-black text-white px-8 md:px-16 py-16 md:py-24",children:r.jsxs("div",{className:"max-w-3xl",children:[r.jsxs("h2",{className:"mb-6 whitespace-pre-line leading-[0.95]",children:[r.jsx("span",{className:"font-jost font-light tracking-tight text-3xl md:text-5xl",children:d}),r.jsxs(r.Fragment,{children:[" ",r.jsx("span",{className:"italic font-serif normal-case text-4xl md:text-6xl lg:text-7xl tracking-tight",children:f})]})]}),r.jsx("p",{className:`${As} mb-8 text-neutral-300`,children:a}),i&&r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4",children:[r.jsx(ht,{to:"/contact?subject=mecenat",className:"inline-block px-8 py-4 bg-white text-black font-medium rounded-lg hover:bg-neutral-200 transition-colors text-center",children:i}),l&&r.jsx("p",{className:"text-sm text-neutral-400 max-w-md",children:l})]})]})})},RT="/assets/grand-bonheur-C6R5Tfy3.png",DT="/assets/programs-CFAaXt38.png",kb=[{name:"Département des Bouches-du
134-Rhône",logoUrl:Om},{name:"La Provence",logoUrl:qm},{name:"Espace Julien",logoUrl:q1},{name:"Préfet de Région PACA",logoUrl:Rm},{name:"NRJ",logoUrl:Fm},{name:"La Mesón",logoUrl:P1},{name:"Région Sud",logoUrl:Dm},{name:"Nostalgie",logoUrl:Pm},{name:"Théâtre de l'Œuvre",logoUrl:B1},{name:"Ville de Marseille",logoUrl:Lm},{name:"Radio Grenouille",logoUrl:Hm},{name:"Grand Bonheur",logoUrl:RT},{name:"La Responsabilité des Rêves",logoUrl:zm},{name:"Nouvelle Vague",logoUrl:Bm},{name:"Programs",logoUrl:DT},{name:"Zébuline",logoUrl:Vm},{name:"La Cité Métisse",logoUrl:Um}],LT=()=>r.jsx("section",{className:"bg-white text-black py-10 md:py-12 overflow-hidden border-y border-neutral-200",children:r.jsx("div",{className:"marquee-track flex items-center gap-8 md:gap-12",children:[...kb,...kb].map((n,e)=>r.jsx("div",{title:n.name,className:"shrink-0 w-32 h-20 md:w-40 md:h-24 flex items-center justify-center",children:r.jsx("img",{src:n.logoUrl,alt:n.name,className:"max-h-full max-w-full object-contain opacity-80 hover:opacity-100 transition-opacity"})},`${n.name}-${e}`))})}),zT=()=>{const n=Ai("le-projet");Ya({title:"Le projet",description:"Salle de musiques actuelles a Marseille, le Makeda est un projet associatif porte par Orizon Sud, axe sur la diffusion, l'accompagnement artistique et l'action socio-culturelle.",path:"/le-projet",overrides:n});const{c:e,pageContent:a}=go("le-projet");return r.jsxs("div",{className:"bg-white text-black min-h-screen",children:[r.jsx(CT,{c:e,pageContent:a}),r.jsx(ET,{body:e("intro.body")}),r.jsx(LT,{}),r.jsx(kT,{title:e("convivial.title"),body:e("convivial.body"),image:a["convivial.image"]||"",imageFallback:la}),r.jsx(TT,{title:e("orizonSud.title"),body:e("orizonSud.body"),image:a["orizonSud.image"]||"",imageFallback:Rs}),r.jsx(MT,{title:e("benevole.title"),titleBrand:e("benevole.titleBrand"),body:e("benevole.body"),ctaLabel:e("benevole.ctaLabel"),ctaUrl:e("benevole.ctaUrl")}),r.jsx(OT,{title:e("mecenat.title"),titleBrand:e("mecenat.titleBrand"),body:e("mecenat.body"),ctaLabel:e("mecenat.ctaLabel"),note:e("mecenat.note")})]})},cs=Cm(n=>({edition:null,accentColor:"#FFD700",selectedCandidate:null,setEdition:e=>n({edition:e}),setAccentColor:e=>n({accentColor:e}),selectCandidate:e=>{n({selectedCandidate:e}),window.history.pushState({candidateId:e.id},""),window.scrollTo(0,0)},closeCandidate:()=>n({selectedCandidate:null})}));var xo=n=>n.type==="checkbox",vi=n=>n instanceof Date,vn=n=>n==null;const F1=n=>typeof n=="object";var Ut=n=>!vn(n)&&!Array.isArray(n)&&F1(n)&&!vi(n),UT=n=>Ut(n)&&n.target?xo(n.target)?n.target.checked:n.target.value:n,qT=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,PT=(n,e)=>n.has(qT(e)),BT=n=>{const e=n.constructor&&n.constructor.prototype;return Ut(e)&&e.hasOwnProperty("isPrototypeOf")},Ym=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Pt(n){if(n instanceof Date)return new Date(n);const e=typeof FileList<"u"&&n instanceof FileList;if(Ym&&(n instanceof Blob||e))return n;const a=Array.isArray(n);if(!a&&!(Ut(n)&&BT(n)))return n;const i=a?[]:Object.create(Object.getPrototypeOf(n));for(const l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=Pt(n[l]));return i}var Ru=n=>/^\w*$/.test(n),vt=n=>n===void 0,$m=n=>Array.isArray(n)?n.filter(Boolean):[],Xm=n=>$m(n.replace(/["|']|\]/g,"").split(/\.|\[/)),be=(n,e,a)=>{if(!e||!Ut(n))return a;const i=(Ru(e)?[e]:Xm(e)).reduce((l,c)=>vn(l)?l:l[c],n);return vt(i)||i===n?vt(n[e])?a:n[e]:i},Ss=n=>typeof n=="boolean",xs=n=>typeof n=="function",gt=(n,e,a)=>{let i=-1;const l=Ru(e)?[e]:Xm(e),c=l.length,d=c-1;for(;++i<c;){const f=l[i];let h=a;if(i!==d){const m=n[f];h=Ut(m)||Array.isArray(m)?m:isNaN(+l[i+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;n[f]=h,n=n[f]}};const Tb={BLUR:"blur",FOCUS_OUT:"focusout"},ys={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ea={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},FT=Ee.createContext(null);FT.displayName="HookFormControlContext";var HT=(n,e,a,i=!0)=>{const l={defaultValues:e._defaultValues};for(const c in n)Object.defineProperty(l,c,{get:()=>{const d=c;return e._proxyFormState[d]!==ys.all&&(e._proxyFormState[d]=!i||ys.all),n[d]}});return l};const VT=typeof window<"u"?Ee.useLayoutEffect:Ee.useEffect;var Ln=n=>typeof n=="string",IT=(n,e,a,i,l)=>Ln(n)?(i&&e.watch.add(n),be(a,n,l)):Array.isArray(n)?n.map(c=>(i&&e.watch.add(c),be(a,c))):(i&&(e.watchAll=!0),a),Xh=n=>vn(n)||!F1(n);function La(n,e,a=new WeakSet){if(Xh(n)||Xh(e))return Object.is(n,e);if(vi(n)&&vi(e))return Object.is(n.getTime(),e.getTime());const i=Object.keys(n),l=Object.keys(e);if(i.length!==l.length)return!1;if(a.has(n)||a.has(e))return!0;a.add(n),a.add(e);for(const c of i){const d=n[c];if(!l.includes(c))return!1;if(c!=="ref"){const f=e[c];if(vi(d)&&vi(f)||Ut(d)&&Ut(f)||Array.isArray(d)&&Array.isArray(f)?!La(d,f,a):!Object.is(d,f))return!1}}return!0}const GT=Ee.createContext(null);GT.displayName="HookFormContext";var QT=(n,e,a,i,l)=>e?{...a[n],types:{...a[n]&&a[n].types?a[n].types:{},[i]:l||!0}}:{},Ql=n=>Array.isArray(n)?n:[n],Ab=()=>{let n=[];return{get observers(){return n},next:l=>{for(const c of n)c.next&&c.next(l)},subscribe:l=>(n.push(l),{unsubscribe:()=>{n=n.filter(c=>c!==l)}}),unsubscribe:()=>{n=[]}}};function H1(n,e){const a={};for(const i in n)if(n.hasOwnProperty(i)){const l=n[i],c=e[i];if(l&&Ut(l)&&c){const d=H1(l,c);
134Ut(d)&&(a[i]=d)}else n[i]&&(a[i]=c)}return a}var on=n=>Ut(n)&&!Object.keys(n).length,Zm=n=>n.type==="file",fu=n=>{if(!Ym)return!1;const e=n?n.ownerDocument:0;return n instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},V1=n=>n.type==="select-multiple",Jm=n=>n.type==="radio",KT=n=>Jm(n)||xo(n),gh=n=>fu(n)&&n.isConnected;function YT(n,e){const a=e.slice(0,-1).length;let i=0;for(;i<a;)n=vt(n)?i++:n[e[i++]];return n}function $T(n){for(const e in n)if(n.hasOwnProperty(e)&&!vt(n[e]))return!1;return!0}function Lt(n,e){const a=Array.isArray(e)?e:Ru(e)?[e]:Xm(e),i=a.length===1?n:YT(n,a),l=a.length-1,c=a[l];return i&&delete i[c],l!==0&&(Ut(i)&&on(i)||Array.isArray(i)&&$T(i))&&Lt(n,a.slice(0,-1)),n}var XT=n=>{for(const e in n)if(xs(n[e]))return!0;return!1};function I1(n){return Array.isArray(n)||Ut(n)&&!XT(n)}function Zh(n,e={}){for(const a in n){const i=n[a];I1(i)?(e[a]=Array.isArray(i)?[]:{},Zh(i,e[a])):vt(i)||(e[a]=!0)}return e}function vr(n,e,a){a||(a=Zh(e));for(const i in n){const l=n[i];if(I1(l))vt(e)||Xh(a[i])?a[i]=Zh(l,Array.isArray(l)?[]:{}):vr(l,vn(e)?{}:e[i],a[i]);else{const c=e[i];a[i]=!La(l,c)}}return a}const Mb={value:!1,isValid:!1},Ob={value:!0,isValid:!0};var G1=n=>{if(Array.isArray(n)){if(n.length>1){const e=n.filter(a=>a&&a.checked&&!a.disabled).map(a=>a.value);return{value:e,isValid:!!e.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!vt(n[0].attributes.value)?vt(n[0].value)||n[0].value===""?Ob:{value:n[0].value,isValid:!0}:Ob:Mb}return Mb},Q1=(n,{valueAsNumber:e,valueAsDate:a,setValueAs:i})=>vt(n)?n:e?n===""?NaN:n&&+n:a&&Ln(n)?new Date(n):i?i(n):n;const Rb={isValid:!1,value:null};var K1=n=>Array.isArray(n)?n.reduce((e,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:e,Rb):Rb;function Db(n){const e=n.ref;return Zm(e)?e.files:Jm(e)?K1(n.refs).value:V1(e)?[...e.selectedOptions].map(({value:a})=>a):xo(e)?G1(n.refs).value:Q1(vt(e.value)?n.ref.value:e.value,n)}var ZT=(n,e,a,i)=>{const l={};for(const c of n){const d=be(e,c);d&&gt(l,c,d._f)}return{criteriaMode:a,names:[...n],fields:l,shouldUseNativeValidation:i}},hu=n=>n instanceof RegExp,Bl=n=>vt(n)?n:hu(n)?n.source:Ut(n)?hu(n.value)?n.value.source:n.value:n,Lb=n=>({isOnSubmit:!n||n===ys.onSubmit,isOnBlur:n===ys.onBlur,isOnChange:n===ys.onChange,isOnAll:n===ys.all,isOnTouch:n===ys.onTouched});const zb="AsyncFunction";var JT=n=>!!n&&!!n.validate&&!!(xs(n.validate)&&n.validate.constructor.name===zb||Ut(n.validate)&&Object.values(n.validate).find(e=>e.constructor.name===zb)),WT=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),Ub=(n,e,a)=>!a&&(e.watchAll||e.watch.has(n)||[...e.watch].some(i=>n.startsWith(i)&&/^\.\w+/.test(n.slice(i.length))));const Kl=(n,e,a,i)=>{for(const l of a||Object.keys(n)){const c=be(n,l);if(c){const{_f:d,...f}=c;if(d){if(d.refs&&d.refs[0]&&e(d.refs[0],l)&&!i)return!0;if(d.ref&&e(d.ref,d.name)&&!i)return!0;if(Kl(f,e))break}else if(Ut(f)&&Kl(f,e))break}}};function qb(n,e,a){const i=be(n,a);if(i||Ru(a))return{error:i,name:a};const l=a.split(".");for(;l.length;){const c=l.join("."),d=be(e,c),f=be(n,c);if(d&&!Array.isArray(d)&&a!==c)return{name:a};if(f&&f.type)return{name:c,error:f};if(f&&f.root&&f.root.type)return{name:`${c}.root`,error:f.root};l.pop()}return{name:a}}var e8=(n,e,a,i)=>{a(n);const{name:l,...c}=n;return on(c)||Object.keys(c).length>=Object.keys(e).length||Object.keys(c).find(d=>e[d]===(!i||ys.all))},t8=(n,e,a)=>!n||!e||n===e||Ql(n).some(i=>i&&(a?i===e:i.startsWith(e)||e.startsWith(i))),n8=(n,e,a,i,l)=>l.isOnAll?!1:!a&&l.isOnTouch?!(e||n):(a?i.isOnBlur:l.isOnBlur)?!n:(a?i.isOnChange:l.isOnChange)?n:!0,s8=(n,e)=>!$m(be(n,e)).length&&Lt(n,e),a8=(n,e,a)=>{const i=Ql(be(n,a));return gt(i,"root",e[a]),gt(n,a,i),n};function Pb(n,e,a="validate"){if(Ln(n)||Array.isArray(n)&&n.every(Ln)||Ss(n)&&!n)return{type:a,message:Ln(n)?n:"",ref:e}}var yr=n=>Ut(n)&&!hu(n)?n:{value:n,message:""},Bb=async(n,e,a,i,l,c)=>{const{ref:d,refs:f,required:h,maxLength:m,minLength:g,min:y,max:b,pattern:v,validate:N,name:w,valueAsNumber:_,mount:k}=n._f,E=be(a,w);if(!k||e.has(w))return{};const C=f?f[0]:d,A=L=>{l&&C.reportValidity&&(C.setCustomValidity(Ss(L)?"":L||""),C.reportValidity())},M={}
134,H=Jm(d),z=xo(d),P=H||z,I=(_||Zm(d))&&vt(d.value)&&vt(E)||fu(d)&&d.value===""||E===""||Array.isArray(E)&&!E.length,G=QT.bind(null,w,i,M),ne=(L,$,se,oe=ea.maxLength,R=ea.minLength)=>{const U=L?$:se;M[w]={type:L?oe:R,message:U,ref:d,...G(L?oe:R,U)}};if(c?!Array.isArray(E)||!E.length:h&&(!P&&(I||vn(E))||Ss(E)&&!E||z&&!G1(f).isValid||H&&!K1(f).isValid)){const{value:L,message:$}=Ln(h)?{value:!!h,message:h}:yr(h);if(L&&(M[w]={type:ea.required,message:$,ref:C,...G(ea.required,$)},!i))return A($),M}if(!I&&(!vn(y)||!vn(b))){let L,$;const se=yr(b),oe=yr(y);if(!vn(E)&&!isNaN(E)){const R=d.valueAsNumber||E&&+E;vn(se.value)||(L=R>se.value),vn(oe.value)||($=R<oe.value)}else{const R=d.valueAsDate||new Date(E),U=fe=>new Date(new Date().toDateString()+" "+fe),W=d.type=="time",he=d.type=="week";Ln(se.value)&&E&&(L=W?U(E)>U(se.value):he?E>se.value:R>new Date(se.value)),Ln(oe.value)&&E&&($=W?U(E)<U(oe.value):he?E<oe.value:R<new Date(oe.value))}if((L||$)&&(ne(!!L,se.message,oe.message,ea.max,ea.min),!i))return A(M[w].message),M}if((m||g)&&!I&&(Ln(E)||c&&Array.isArray(E))){const L=yr(m),$=yr(g),se=!vn(L.value)&&E.length>+L.value,oe=!vn($.value)&&E.length<+$.value;if((se||oe)&&(ne(se,L.message,$.message),!i))return A(M[w].message),M}if(v&&!I&&Ln(E)){const{value:L,message:$}=yr(v);if(hu(L)&&!E.match(L)&&(M[w]={type:ea.pattern,message:$,ref:d,...G(ea.pattern,$)},!i))return A($),M}if(N){if(xs(N)){const L=await N(E,a),$=Pb(L,C);if($&&(M[w]={...$,...G(ea.validate,$.message)},!i))return A($.message),M}else if(Ut(N)){let L={};for(const $ in N){if(!on(L)&&!i)break;const se=Pb(await N[$](E,a),C,$);se&&(L={...se,...G($,se.message)},A(se.message),i&&(M[w]=L))}if(!on(L)&&(M[w]={ref:C,...L},!i))return M}}return A(!0),M};const i8={mode:ys.onSubmit,reValidateMode:ys.onChange,shouldFocusError:!0};function r8(n={}){let e={...i8,...n},a={submitCount:0,isDirty:!1,isReady:!1,isLoading:xs(e.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1},i={},l=Ut(e.defaultValues)||Ut(e.values)?Pt(e.defaultValues||e.values)||{}:{},c=e.shouldUnregister?{}:Pt(l),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},h,m=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},y={...g};let b={...y};const v={array:Ab(),state:Ab()},N=e.criteriaMode===ys.all,w=q=>Q=>{clearTimeout(m),m=setTimeout(q,Q)},_=async q=>{if(!d.keepIsValid&&!e.disabled&&(y.isValid||b.isValid||q)){let Q;e.resolver?(Q=on((await P()).errors),k()):Q=await G(i,!0),Q!==a.isValid&&v.state.next({isValid:Q})}},k=(q,Q)=>{!e.disabled&&(y.isValidating||y.validatingFields||b.isValidating||b.validatingFields)&&((q||Array.from(f.mount)).forEach(J=>{J&&(Q?gt(a.validatingFields,J,Q):Lt(a.validatingFields,J))}),v.state.next({validatingFields:a.validatingFields,isValidating:!on(a.validatingFields)}))},E=(q,Q=[],J,ue,de=!0,ce=!0)=>{if(ue&&J&&!e.disabled){if(d.action=!0,ce&&Array.isArray(be(i,q))){const je=J(be(i,q),ue.argA,ue.argB);de&&gt(i,q,je)}if(ce&&Array.isArray(be(a.errors,q))){const je=J(be(a.errors,q),ue.argA,ue.argB);de&&gt(a.errors,q,je),s8(a.errors,q)}if((y.touchedFields||b.touchedFields)&&ce&&Array.isArray(be(a.touchedFields,q))){const je=J(be(a.touchedFields,q),ue.argA,ue.argB);de&&gt(a.touchedFields,q,je)}(y.dirtyFields||b.dirtyFields)&&(a.dirtyFields=vr(l,c)),v.state.next({name:q,isDirty:L(q,Q),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else gt(c,q,Q)},C=(q,Q)=>{gt(a.errors,q,Q),v.state.next({errors:a.errors})},A=q=>{a.errors=q,v.state.next({errors:a.errors,isValid:!1})},M=(q,Q,J,ue)=>{const de=be(i,q);if(de){const ce=be(c,q,vt(J)?be(l,q):J);vt(ce)||ue&&ue.defaultChecked||Q?gt(c,q,Q?ce:Db(de._f)):oe(q,ce),d.mount&&!d.action&&_()}},H=(q,Q,J,ue,de)=>{let ce=!1,je=!1;const Qe={name:q};if(!e.disabled){if(!J||ue){(y.isDirty||b.isDirty)&&(je=a.isDirty,a.isDirty=Qe.isDirty=L(),ce=je!==Qe.isDirty);const Ze=La(be(l,q),Q);je=!!be(a.dirtyFields,q),Ze?Lt(a.dirtyFields,q):gt(a.dirtyFields,q,!0),Qe.dirtyFields=a.dirtyFields,ce=ce||(y.dirtyFields||b.dirtyFields)&&je!==!Ze}if(J){const Ze=be(a.touchedFields,q);Ze||(gt(a.touchedFields,q,J),Qe.touchedFields=a.touchedFields,ce=ce||(y.touchedFields||b.touchedFields)&&Ze!==J)}ce&&de&&v.state.next(Qe)}return ce?Qe:{}},z=(q,Q,J,ue)=>{const de=be(a.errors,q),ce=(y.isValid||b.isValid)&&Ss(Q)&&a.isValid!==Q;if(e.delayError&&J?(h=w(()=>C(q,J)),h(e.delayError)):(clearTimeout(m),h=null,J?gt(a.errors,q,J):Lt(a.errors,q)),(J?!La(de,J):de)||!on(ue)||
134ce){const je={...ue,...ce&&Ss(Q)?{isValid:Q}:{},errors:a.errors,name:q};a={...a,...je},v.state.next(je)}},P=async q=>(k(q,!0),await e.resolver(c,e.context,ZT(q||f.mount,i,e.criteriaMode,e.shouldUseNativeValidation))),I=async q=>{const{errors:Q}=await P(q);if(k(q),q)for(const J of q){const ue=be(Q,J);ue?gt(a.errors,J,ue):Lt(a.errors,J)}else a.errors=Q;return Q},G=async(q,Q,J={valid:!0})=>{for(const ue in q){const de=q[ue];if(de){const{_f:ce,...je}=de;if(ce){const Qe=f.array.has(ce.name),Ze=de._f&&JT(de._f);Ze&&y.validatingFields&&k([ce.name],!0);const Ft=await Bb(de,f.disabled,c,N,e.shouldUseNativeValidation&&!Q,Qe);if(Ze&&y.validatingFields&&k([ce.name]),Ft[ce.name]&&(J.valid=!1,Q||n.shouldUseNativeValidation))break;!Q&&(be(Ft,ce.name)?Qe?a8(a.errors,Ft,ce.name):gt(a.errors,ce.name,Ft[ce.name]):Lt(a.errors,ce.name))}!on(je)&&await G(je,Q,J)}}return J.valid},ne=()=>{for(const q of f.unMount){const Q=be(i,q);Q&&(Q._f.refs?Q._f.refs.every(J=>!gh(J)):!gh(Q._f.ref))&&ut(q)}f.unMount=new Set},L=(q,Q)=>!e.disabled&&(q&&Q&&gt(c,q,Q),!La(O(),l)),$=(q,Q,J)=>IT(q,f,{...d.mount?c:vt(Q)?l:Ln(q)?{[q]:Q}:Q},J,Q),se=q=>$m(be(d.mount?c:l,q,e.shouldUnregister?be(l,q,[]):[])),oe=(q,Q,J={})=>{const ue=be(i,q);let de=Q;if(ue){const ce=ue._f;ce&&(!ce.disabled&&gt(c,q,Q1(Q,ce)),de=fu(ce.ref)&&vn(Q)?"":Q,V1(ce.ref)?[...ce.ref.options].forEach(je=>je.selected=de.includes(je.value)):ce.refs?xo(ce.ref)?ce.refs.forEach(je=>{(!je.defaultChecked||!je.disabled)&&(Array.isArray(de)?je.checked=!!de.find(Qe=>Qe===je.value):je.checked=de===je.value||!!de)}):ce.refs.forEach(je=>je.checked=je.value===de):Zm(ce.ref)?ce.ref.value="":(ce.ref.value=de,ce.ref.type||v.state.next({name:q,values:Pt(c)})))}(J.shouldDirty||J.shouldTouch)&&H(q,de,J.shouldTouch,J.shouldDirty,!0),J.shouldValidate&&fe(q)},R=(q,Q,J)=>{for(const ue in Q){if(!Q.hasOwnProperty(ue))return;const de=Q[ue],ce=q+"."+ue,je=be(i,ce);(f.array.has(q)||Ut(de)||je&&!je._f)&&!vi(de)?R(ce,de,J):oe(ce,de,J)}},U=(q,Q,J={})=>{const ue=be(i,q),de=f.array.has(q),ce=Pt(Q);gt(c,q,ce),de?(v.array.next({name:q,values:Pt(c)}),(y.isDirty||y.dirtyFields||b.isDirty||b.dirtyFields)&&J.shouldDirty&&v.state.next({name:q,dirtyFields:vr(l,c),isDirty:L(q,ce)})):ue&&!ue._f&&!vn(ce)?R(q,ce,J):oe(q,ce,J),Ub(q,f)?v.state.next({...a,name:q,values:Pt(c)}):v.state.next({name:d.mount?q:void 0,values:Pt(c)})},W=async q=>{d.mount=!0;const Q=q.target;let J=Q.name,ue=!0;const de=be(i,J),ce=Ze=>{ue=Number.isNaN(Ze)||vi(Ze)&&isNaN(Ze.getTime())||La(Ze,be(c,J,Ze))},je=Lb(e.mode),Qe=Lb(e.reValidateMode);if(de){let Ze,Ft;const Ds=Q.type?Db(de._f):UT(q),bs=q.type===Tb.BLUR||q.type===Tb.FOCUS_OUT,Xa=!WT(de._f)&&!e.resolver&&!be(a.errors,J)&&!de._f.deps||n8(bs,be(a.touchedFields,J),a.isSubmitted,Qe,je),Gt=Ub(J,f,bs);gt(c,J,Ds),bs?(!Q||!Q.readOnly)&&(de._f.onBlur&&de._f.onBlur(q),h&&h(0)):de._f.onChange&&de._f.onChange(q);const In=H(J,Ds,bs),rn=!on(In)||Gt;if(!bs&&v.state.next({name:J,type:q.type,values:Pt(c)}),Xa)return(y.isValid||b.isValid)&&(e.mode==="onBlur"?bs&&_():bs||_()),rn&&v.state.next({name:J,...Gt?{}:In});if(!bs&&Gt&&v.state.next({...a}),e.resolver){const{errors:bo}=await P([J]);if(k([J]),ce(Ds),ue){const Uu=qb(a.errors,i,J),vo=qb(bo,i,Uu.name||J);Ze=vo.error,J=vo.name,Ft=on(bo)}}else k([J],!0),Ze=(await Bb(de,f.disabled,c,N,e.shouldUseNativeValidation))[J],k([J]),ce(Ds),ue&&(Ze?Ft=!1:(y.isValid||b.isValid)&&(Ft=await G(i,!0)));ue&&(de._f.deps&&(!Array.isArray(de._f.deps)||de._f.deps.length>0)&&fe(de._f.deps),z(J,Ft,Ze,In))}},he=(q,Q)=>{if(be(a.errors,Q)&&q.focus)return q.focus(),1},fe=async(q,Q={})=>{let J,ue;const de=Ql(q);if(e.resolver){const ce=await I(vt(q)?q:de);J=on(ce),ue=q?!de.some(je=>be(ce,je)):J}else q?(ue=(await Promise.all(de.map(async ce=>{const je=be(i,ce);return await G(je&&je._f?{[ce]:je}:je)}))).every(Boolean),!(!ue&&!a.isValid)&&_()):ue=J=await G(i);return v.state.next({...!Ln(q)||(y.isValid||b.isValid)&&J!==a.isValid?{}:{name:q},...e.resolver||!q?{isValid:J}:{},errors:a.errors}),Q.shouldFocus&&!ue&&Kl(i,he,q?de:f.mount),ue},O=(q,Q)=>{let J={...d.mount?c:l};return Q&&(J=H1(Q.dirtyFields?a.dirtyFields:a.touchedFields,J)),vt(q)?J:Ln(q)?be(J,q):q.map(ue=>be(J,ue))},B=(q,Q)=>({invalid:!!be((Q||a).errors,q),isDirty:!!be((Q||a).dirtyFields,q),error:be((Q||a).errors,q),isValidating:!!be(a.validatingFields,q),isTouched:!!be((Q||a).touchedFields,q)}),ie=q=>{const Q=q?Ql(q):void 0;Q?.forEach(J=>Lt(a.errors,J)),Q?Q.forEach(J=>{v.state.next({name:J,errors:a.errors})}):v.state.next({errors:{}})},le=(q,Q,J)=>{const ue=(be(i,q,{_f:{}})._f||{}).ref,de=be(a.errors,q)||{},{ref:ce,message:je,type:Qe,...Ze}=de;gt(a.errors,q,{...Ze,...Q,ref:ue}),v.state.next({name:q,errors:a.errors,isValid:!1}),J&&J.shouldFocus&&ue&&ue.focus&&ue.focus()},ve=(q,Q)=>xs(q)?v.state.subscribe({next:J=>"values"in J&&q($(void 0,Q),J)}):$(q,Q,!0),Ce=q=>v.state.subscribe({next:Q=>{t8(q.name,Q.name,q.exact)&&e8(Q,q.formState||y,mt,q.reRenderRoot)&&q.callback({values:{...c},...a,...Q,defaultValues:l})}}).unsubscribe,Oe=q=>(d.mount=!0,b={...b,...q.formState},Ce({...q,formState:{...g,...q.formState}})),ut=(q,Q={})=>{for(const J of q?Ql(q):f.mount)f.mount.delete(J),f.array.delete(J),Q.keepValue||(Lt(i,J),Lt(c,J)),!Q.keepError&&Lt(a.errors,J),!Q.keepDirty&&Lt(a.dirtyFields,J),!Q.keepTouched&&Lt(a.touchedFields,J),!Q.keepIsValidating&&Lt(a.validatingFields,J),!e.shouldUnregister&&!Q.keepDefaultValue&&Lt(l,J);v.state.next({values:Pt(c)}),v.state.next({...a,...Q.keepDirty?{isDirty:L()}:{}}),!Q.keepIsValid&&_()},$e=({disabled:q,name:Q})=>{if(Ss(q)&&d.mount||q||f.disabled.has(Q)){const de=f.disabled.has(Q)!==!!q;q?f.disabled.add(Q):f.disabled.delete(Q),de&&d.mount&&!d.action&&_()}},He=(q,Q={})=>{let J=be(i,q);const ue=Ss(Q.disabled)||Ss(e.disabled);return gt(i,q,{...J||{},_f:{...J&&J._f?J._f:{ref:{name:q}},name:q,mount:!0,...Q}}),f.mount.add(q),J?$e({disabled:Ss(Q.disabled)?Q.disabled:e.disabled,name:q}):M(q,!0,Q.value),{...ue?{disabled:Q.disabled||e.disabled}:{},...e.progressive?{required:!!Q.required,min:Bl(Q.min),max:Bl(Q.max),minLength:Bl(Q.minLength),maxLength:Bl(Q.maxLength),pattern:Bl(Q.pattern)}:{},name:q,onChange:W,onBlur:W,ref:de=>{if(de){He(q,Q),J=be(i,q);const ce=vt(de.value)&&de.querySelectorAll&&de.querySelectorAll("input,select,textarea")[0]||de,je=KT(ce),Qe
vendor: 4,876 bytes, line 134
134=J._f.refs||[];if(je?Qe.find(Ze=>Ze===ce):ce===J._f.ref)return;gt(i,q,{_f:{...J._f,...je?{refs:[...Qe.filter(gh),ce,...Array.isArray(be(l,q))?[{}]:[]],ref:{type:ce.type,name:q}}:{ref:ce}}}),M(q,!1,void 0,ce)}else J=be(i,q,{}),J._f&&(J._f.mount=!1),(e.shouldUnregister||Q.shouldUnregister)&&!(PT(f.array,q)&&d.action)&&f.unMount.add(q)}}},xe=()=>e.shouldFocusError&&Kl(i,he,f.mount),We=q=>{Ss(q)&&(v.state.next({disabled:q}),Kl(i,(Q,J)=>{const ue=be(i,J);ue&&(Q.disabled=ue._f.disabled||q,Array.isArray(ue._f.refs)&&ue._f.refs.forEach(de=>{de.disabled=ue._f.disabled||q}))},0,!1))},Xe=(q,Q)=>async J=>{let ue;J&&(J.preventDefault&&J.preventDefault(),J.persist&&J.persist());let de=Pt(c);if(v.state.next({isSubmitting:!0}),e.resolver){const{errors:ce,values:je}=await P();k(),a.errors=ce,de=Pt(je)}else await G(i);if(f.disabled.size)for(const ce of f.disabled)Lt(de,ce);if(Lt(a.errors,"root"),on(a.errors)){v.state.next({errors:{}});try{await q(de,J)}catch(ce){ue=ce}}else Q&&await Q({...a.errors},J),xe(),setTimeout(xe);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:on(a.errors)&&!ue,submitCount:a.submitCount+1,errors:a.errors}),ue)throw ue},Ve=(q,Q={})=>{be(i,q)&&(vt(Q.defaultValue)?U(q,Pt(be(l,q))):(U(q,Q.defaultValue),gt(l,q,Pt(Q.defaultValue))),Q.keepTouched||Lt(a.touchedFields,q),Q.keepDirty||(Lt(a.dirtyFields,q),a.isDirty=Q.defaultValue?L(q,Pt(be(l,q))):L()),Q.keepError||(Lt(a.errors,q),y.isValid&&_()),v.state.next({...a}))},re=(q,Q={})=>{const J=q?Pt(q):l,ue=Pt(J),de=on(q),ce=de?l:ue;if(Q.keepDefaultValues||(l=J),!Q.keepValues){if(Q.keepDirtyValues){const je=new Set([...f.mount,...Object.keys(vr(l,c))]);for(const Qe of Array.from(je)){const Ze=be(a.dirtyFields,Qe),Ft=be(c,Qe),Ds=be(ce,Qe);Ze&&!vt(Ft)?gt(ce,Qe,Ft):!Ze&&!vt(Ds)&&U(Qe,Ds)}}else{if(Ym&&vt(q))for(const je of f.mount){const Qe=be(i,je);if(Qe&&Qe._f){const Ze=Array.isArray(Qe._f.refs)?Qe._f.refs[0]:Qe._f.ref;if(fu(Ze)){const Ft=Ze.closest("form");if(Ft){Ft.reset();break}}}}if(Q.keepFieldsRef)for(const je of f.mount)U(je,be(ce,je));else i={}}c=e.shouldUnregister?Q.keepDefaultValues?Pt(l):{}:Pt(ce),v.array.next({values:{...ce}}),v.state.next({values:{...ce}})}f={mount:Q.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!y.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues||!e.shouldUnregister&&!on(ce),d.watch=!!e.shouldUnregister,d.keepIsValid=!!Q.keepIsValid,d.action=!1,Q.keepErrors||(a.errors={}),v.state.next({submitCount:Q.keepSubmitCount?a.submitCount:0,isDirty:de?!1:Q.keepDirty?a.isDirty:!!(Q.keepDefaultValues&&!La(q,l)),isSubmitted:Q.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:de?{}:Q.keepDirtyValues?Q.keepDefaultValues&&c?vr(l,c):a.dirtyFields:Q.keepDefaultValues&&q?vr(l,q):Q.keepDirty?a.dirtyFields:{},touchedFields:Q.keepTouched?a.touchedFields:{},errors:Q.keepErrors?a.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:l})},me=(q,Q)=>re(xs(q)?q(c):q,{...e.resetOptions,...Q}),Te=(q,Q={})=>{const J=be(i,q),ue=J&&J._f;if(ue){const de=ue.refs?ue.refs[0]:ue.ref;de.focus&&setTimeout(()=>{de.focus(),Q.shouldSelect&&xs(de.select)&&de.select()})}},mt=q=>{a={...a,...q}},_n={control:{register:He,unregister:ut,getFieldState:B,handleSubmit:Xe,setError:le,_subscribe:Ce,_runSchema:P,_updateIsValidating:k,_focusError:xe,_getWatch:$,_getDirty:L,_setValid:_,_setFieldArray:E,_setDisabledField:$e,_setErrors:A,_getFieldArray:se,_reset:re,_resetDefaultValues:()=>xs(e.defaultValues)&&e.defaultValues().then(q=>{me(q,e.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:ne,_disableForm:We,_subjects:v,_proxyFormState:y,get _fields(){return i},get _formValues(){return c},get _state(){return d},set _state(q){d=q},get _defaultValues(){return l},get _names(){return f},set _names(q){f=q},get _formState(){return a},get _options(){return e},set _options(q){e={...e,...q}}},subscribe:Oe,trigger:fe,register:He,handleSubmit:Xe,watch:ve,setValue:U,getValues:O,reset:me,resetField:Ve,clearErrors:ie,unregister:ut,setError:le,setFocus:Te,getFieldState:B};return{..._n,formControl:_n}}function Vr(n={}){const e=Ee.useRef(void 0),a=Ee.useRef(void 0),[i,l]=Ee.useState({isDirty:!1,isValidating:!1,isLoading:xs(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:xs(n.defaultValues)?void 0:n.defaultValues});if(!e.current)if(n.formControl)e.current={...n.formControl,formState:i},n.defaultValues&&!xs(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...f}=r8(n);e.current={...f,formState:i}}const c=e.current.control;return c._options=n,VT(()=>{const d=c._subscribe({formState:c._proxyFormState,callback:()=>l({...c._formState}
134),reRenderRoot:!0});return l(f=>({...f,isReady:!0})),c._formState.isReady=!0,d},[c]),Ee.useEffect(()=>c._disableForm(n.disabled),[c,n.disabled]),Ee.useEffect(()=>{n.mode&&(c._options.mode=n.mode),n.reValidateMode&&(c._options.reValidateMode=n.reValidateMode)},[c,n.mode,n.reValidateMode]),Ee.useEffect(()=>{n.errors&&(c._setErrors(n.errors),c._focusError())},[c,n.errors]),Ee.useEffect(()=>{n.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,n.shouldUnregister]),Ee.useEffect(()=>{if(c._proxyFormState.isDirty){const d=c._getDirty();d!==i.isDirty&&c._subjects.state.next({isDirty:d})}},[c,i.isDirty]),Ee.useEffect(()=>{var d;n.values&&!La(n.values,a.current)?(c._reset(n.values,{keepFieldsRef:!0,...c._options.resetOptions}),!((d=c._options.resetOptions)===null||d===void 0)&&d.keepIsValid||c._setValid(),a.current=n.values,l(f=>({...f}))):c._resetDefaultValues()},[c,n.values]),Ee.useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),e.current.formState=Ee.useMemo(()=>HT(i,c),[c,i]),e.current}const l8=({candidateName:n,voteForCandidate:e})=>{const{t:a}=Re(),{accentColor:i}=cs(),{register:l,handleSubmit:c,formState:{isValid:d,isSubmitting:f}}=Vr({mode:"onChange",defaultValues:{voterEmail:"",wantsNotification:!1}}),h=m=>{e(m.voterEmail.trim(),m.wantsNotification)};return r.jsxs("form",{onSubmit:c(h),className:"mt-6 border-t border-neutral-800 pt-6",children:[r.jsx("h4",{className:"text-white font-semibold text-lg mb-4",children:a("tremplin.voteFor",{name:n})}),r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsxs("label",{children:[r.jsx("span",{className:"block text-neutral-400 text-sm mb-1",children:a("tremplin.yourEmail")}),r.jsx("input",{type:"email",...l("voterEmail",{required:!0}),placeholder:"[email protected]",className:"w-full px-4 py-3 rounded-lg bg-neutral-800 border border-neutral-700 text-white placeholder-neutral-500 focus:outline-none focus:border-white transition-colors"})]}),r.jsxs("label",{className:"flex items-center gap-3 text-neutral-400 text-sm cursor-pointer",children:[r.jsx("input",{type:"checkbox",...l("wantsNotification"),className:"w-4 h-4 rounded border-neutral-600 bg-neutral-800",style:{accentColor:i}}),a("tremplin.receiveResults")]}),r.jsx("button",{type:"submit",disabled:f||!d,className:"w-full py-3 rounded-full text-black font-semibold text-sm hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:i},children:a(f?"tremplin.submittingVote":"tremplin.confirmVote")})]})]})},o8=({candidate:n,showVoteForm:e,voteForCandidate:a})=>{const{t:i}=Re(),{closeCandidate:l,accentColor:c}=cs(),[d,f]=S.useState(!1),[h,m]=S.useState(!1),g=`${n.name} participe au Tremplin Orizon Sud au Makeda !`,y=`${window.location.origin}/tremplin?artist=${n.id}`;function b(){window.open(`https://wa.me/?text=${encodeURIComponent(g+`
135`+y)}`,"_blank")}function v(){window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(y)}`,"_blank")}function N(){window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(g)}&url=${encodeURIComponent(y)}`,"_blank")}async function w(){await navigator.clipboard.writeText(g+`
136`+y),f(!0),setTimeout(()=>f(!1),2e3)}return r.jsxs("div",{className:"bg-black min-h-screen pt-32 pb-16",children:[r.jsx("div",{className:"px-6 md:px-12 mb-8",children:r.jsxs("button",{type:"button",onClick:l,className:"flex items-center gap-2 text-neutral-400 hover:text-white transition-colors text-sm",children:[r.jsx(Cu,{size:20}),i("tremplin.backToCandidates")]})}),r.jsxs("div",{className:"px-6 md:px-12 max-w-4xl mx-auto",children:[r.jsxs("div",{className:"flex items-center gap-6 mb-10",children:[r.jsx(Ts,{src:n.avatarUrl,alt:n.name,iconSize:40,className:"w-24 h-24 md:w-32 md:h-32 rounded-full bg-neutral-800 shrink-0"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("h1",{className:"font-mango text-white text-5xl md:text-7xl uppercase",children:n.name}),n.isWinner&&r.jsx("span",{className:"inline-block text-xs font-semibold px-3 py-1 rounded-full bg-amber-400 text-black mt-2",children:i("tremplin.laureateLabel")})]}),r.jsxs("div",{className:"relative shrink-0",children:[r.jsx("button",{type:"button",onClick:()=>m(!h),className:"w-12 h-12 rounded-full border border-neutral-700 flex items-center justify-center hover:border-white transition-colors",style:{color:c},title:"Partager",children:r.jsx(a1,{size:20})}),h&&r.jsxs("div",{className:"absolute right-0 top-14 bg-neutral-900 border border-neutral-700 rounded-xl p-2 flex flex-col gap-1 z-50 min-w-[180px] shadow-xl",children:[r.jsxs("button",{type:"button",onClick:b,className:"flex items-center gap-3 px-4 py-3 rounded-lg text-white text-sm hover:bg-neutral-800 transition-colors",children:[r.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"
136currentColor",className:"text-green-500",children:r.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})}),"WhatsApp"]}),r.jsxs("button",{type:"button",onClick:v,className:"flex items-center gap-3 px-4 py-3 rounded-lg text-white text-sm hover:bg-neutral-800 transition-colors",children:[r.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor",className:"text-blue-500",children:r.jsx("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),"Facebook"]}),r.jsxs("button",{type:"button",onClick:N,className:"flex items-center gap-3 px-4 py-3 rounded-lg text-white text-sm hover:bg-neutral-800 transition-colors",children:[r.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"currentColor",className:"text-neutral-400",children:r.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),"X / Twitter"]}),r.jsxs("button",{type:"button",onClick:w,className:"flex items-center gap-3 px-4 py-3 rounded-lg text-white text-sm hover:bg-neutral-800 transition-colors",children:[d?r.jsx(K_,{size:18,className:"text-green-400"}):r.jsx(eE,{size:18,className:"text-neutral-400"}),d?"Copié !":"Copier le lien"]})]})]})]}),n.bio&&r.jsx("p",{className:"text-neutral-300 text-lg leading-relaxed mb-10",children:n.bio}),n.embedUrls.length>0&&r.jsxs("div",{className:"mb-10",children:[r.jsx("h2",{className:"font-mango text-white text-3xl uppercase mb-4",children:i("tremplin.listen")}),r.jsx("div",{className:"flex flex-col gap-4",children:n.embedUrls.map((_,k)=>r.jsx("div",{children:cu(_)},k))})]}),n.socialLinks.length>0&&r.jsxs("div",{className:"mb-10",children:[r.jsx("h2",{className:"font-mango text-white text-3xl uppercase mb-4",children:i("tremplin.socialNetworks")}),r.jsx("div",{className:"flex flex-col gap-4",children:n.socialLinks.map((_,k)=>r.jsx("div",{children:cu(_)},k))})]}),e&&r.jsx("div",{className:"mt-10 border-t border-neutral-800 pt-10",children:r.jsx(l8,{candidateName:n.name,voteForCandidate:a})})]})]})},c8=({onSubmitRegistration:n})=>{const{t:e}=Re(),{accentColor:a}=cs(),{register:i,handleSubmit:l,formState:{isValid:c,isSubmitting:d}}=Vr({mode:"onChange",defaultValues:{name:"",email:"",bio:""}}),[f,h]=S.useState(null),[m,g]=S.useState([]),[y,b]=S.useState([]);function v(C){h(URL.createObjectURL(C))}function N(C){C&&!m.includes(C)&&g([...m,C])}function w(C){g(m.filter((A,M)=>M!==C))}function _(C){C&&!y.includes(C)&&b([...y,C])}function k(C){b(y.filter((A,M)=>M!==C))}const E=C=>{n({name:C.name.trim(),email:C.email.trim(),bio:C.bio.trim()||void 0,embedUrls:m.length>0?m:void 0,socialLinks:y.length>0?y:void 0})};return r.jsxs("form",{onSubmit:l(E),className:"p-8 md:p-10 flex flex-col",children:[r.jsxs("div",{className:"flex gap-5 items-center mb-6",children:[r.jsx(Am,{src:f,alt:"",onSelectFile:v,overlayLabel:e("tremplin.changePhoto")}),r.jsx("div",{className:"flex-1 min-w-0",children:r.jsx("input",{type:"text",...i("name",{required:!0}),className:"font-mango text-white text-4xl md:text-5xl bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-white w-full",placeholder:e("tremplin.artistName")}
136)})]}),r.jsx("input",{type:"email",...i("email",{required:!0}),className:"w-full text-neutral-300 bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-white py-2 text-sm mb-6",placeholder:e("tremplin.emailRequired")}),r.jsx("hr",{className:"border-neutral-800 mb-6"}),r.jsx("textarea",{...i("bio"),rows:4,className:"w-full text-neutral-300 text-base leading-relaxed bg-transparent border-none focus:outline-none resize-none placeholder-neutral-600 mb-6",placeholder:e("tremplin.bioPlaceholder")}),r.jsxs("div",{className:"pt-4 border-t border-neutral-800 mb-4",children:[r.jsx("p",{className:"text-neutral-500 text-sm mb-3",children:e("tremplin.musicLinks")}),m.map((C,A)=>r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("span",{className:"flex-1 text-neutral-300 text-sm truncate",children:C}),r.jsx("button",{type:"button",className:"text-red-400 hover:text-red-300 text-sm px-2",onClick:()=>w(A),children:"x"})]},A)),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"text",className:"flex-1 text-neutral-300 bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-white py-1 text-sm",placeholder:"https://soundcloud.com/...",onKeyDown:C=>{if(C.key==="Enter"){C.preventDefault();const A=C.target.value.trim();A&&(N(A),C.target.value="")}}}),r.jsx("button",{type:"button",className:"text-sm font-medium px-3 py-1.5 rounded-lg border border-neutral-700 text-neutral-400 hover:text-white hover:border-neutral-500 transition-colors",onClick:C=>{const A=C.target.previousElementSibling;A?.value.trim()&&(N(A.value.trim()),A.value="")},children:"+"})]})]}),r.jsxs("div",{className:"pt-4 border-t border-neutral-800 mb-6",children:[r.jsx("p",{className:"text-neutral-500 text-sm mb-3",children:e("tremplin.socialLinks")}),y.map((C,A)=>r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("span",{className:"flex-1 text-neutral-300 text-sm truncate",children:C}),r.jsx("button",{type:"button",className:"text-red-400 hover:text-red-300 text-sm px-2",onClick:()=>k(A),children:"x"})]},A)),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"text",className:"flex-1 text-neutral-300 bg-transparent border-b border-dashed border-neutral-700 focus:outline-none focus:border-white py-1 text-sm",placeholder:"https://instagram.com/...",onKeyDown:C=>{if(C.key==="Enter"){C.preventDefault();const A=C.target.value.trim();A&&(_(A),C.target.value="")}}}),r.jsx("button",{type:"button",className:"text-sm font-medium px-3 py-1.5 rounded-lg border border-neutral-700 text-neutral-400 hover:text-white hover:border-neutral-500 transition-colors",onClick:C=>{const A=C.target.previousElementSibling;A?.value.trim()&&(_(A.value.trim()),A.value="")},children:"+"})]})]}),r.jsx("button",{type:"submit",disabled:d||!c,className:"w-full py-4 rounded-full text-black font-semibold text-lg hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed",style:{backgroundColor:a},children:e(d?"tremplin.submitting":"tremplin.submitRegistration")})]})};function u8(n){return[...n].sort((e,a)=>a.voteCount-e.voteCount)}function d8(n,e){return n.includes("instagram")?"Instagram":n.includes("facebook")?"Facebook":n.includes("twitter")||n.includes("x.com")?"X":n.includes("tiktok")?"TikTok":n.includes("youtube")?"YouTube":n.includes("soundcloud")?"SoundCloud":e}const Y1=({winner:n,yearLabel:e,showVoteCount:a,headingColor:i="white"})=>{const{t:l}=Re(),{accentColor:c}=cs();return r.jsxs("section",{className:"bg-neutral-950 px-6 md:px-12 py-20",children:[r.jsx("h2",{className:"font-mango text-3xl md:text-5xl uppercase text-center mb-16",style:{color:i},children:e}),r.jsxs("div",{className:"max-w-5xl mx-auto grid grid-cols-1 md:grid-cols-[1fr_minmax(0,1fr)] gap-12 items-start",children:[r.jsxs("div",{className:"flex flex-col gap-6",children:[r.jsx("h3",{className:"font-mango text-white text-3xl md:text-5xl uppercase",children:n.name}),a&&"voteCount"in n&&r.jsx("p",{className:"font-semibold text-lg",style:{color:c},children:l("tremplin.voteCount",{count:n.voteCount})}),n.bio&&r.jsx("p",{className:"text-neutral-300 text-base md:text-lg leading-relaxed",children:n.bio}),n.embedUrls.length>0&&r.jsx("div",{className:"mt-4",children:cu(n.embedUrls[0])}),n.socialLinks.length>0&&r.jsx("div",{className:"flex gap-3 mt-2",children:n.socialLinks.map((d,f)=>r.jsx("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:"text-sm underline underline-offset-2 hover:opacity-80",style:{color:c},children:d8(d,l("tremplin.link"))},f))})]}),r.jsx("div",{className:"flex justify-center md:justify-end",children:r.jsx("div",{className:"w-full max-w-sm aspect-square rounded-2xl overflow-hidden bg-neutral-800",children:r.jsx(Ts,{src:n.avatarUrl,alt:n.name,iconSize:80,className:"w-full h-full"})})})]})]})},f8=({onSubmitRegistration:n})=>{const{t:e}=Re(),{edition:a,accentColor:i}=cs(),[l,c]=S.useState(!1);return a?r.jsxs(r.Fragment,{children:[r.jsxs("section",{className:"relative min-h-screen flex items-center",children:[a.backgroundUrl?r.jsx("img",{src:a.backgroundUrl,alt:"",className:"absolute inset-0 w-full h-full object-cover"}):r.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-neutral-900 via-neutral-950 to-black"}),r.jsx("div",{className:"absolute inset-0 bg-black/40"}),r.jsxs("div",{className:"relative z-[1] w-full max-w-6xl mx-auto px-6 md:px-12 py-32 grid grid-cols-1 md:grid-cols-[minmax(0,1fr)_minmax(0,1.2fr)
136] gap-12 items-center",children:[a.imageUrl&&r.jsx("div",{className:"flex justify-center",children:r.jsx("img",{src:a.imageUrl,alt:a.title,className:"w-full max-w-sm rounded-2xl shadow-2xl object-contain"})}),r.jsxs("div",{className:"flex flex-col gap-6"+(a.imageUrl?"":" md:col-span-2 max-w-3xl mx-auto items-center text-center"),children:[r.jsx("h1",{className:"font-mango text-white text-5xl md:text-7xl lg:text-8xl uppercase leading-[0.9] drop-shadow-lg",children:a.title}),a.description&&r.jsx("div",{className:"text-white/90 text-base md:text-lg leading-relaxed whitespace-pre-line drop-shadow",children:a.description}),r.jsx("button",{type:"button",onClick:()=>c(!0),className:"w-full max-w-xs py-4 rounded-full text-black font-semibold text-lg hover:opacity-90 transition-opacity shadow-lg",style:{backgroundColor:i},children:e("tremplin.signUp")})]})]})]}),a.pastWinners.length>0&&r.jsx(Y1,{winner:a.pastWinners[0],yearLabel:e("tremplin.laureate",{year:a.pastWinners[0].edition.year}),borderPosition:"top"}),r.jsx(Fr,{open:l,onCloseModal:()=>c(!1),className:"bg-neutral-900",children:r.jsx(c8,{onSubmitRegistration:d=>{n(d),c(!1)}})})]}):null};function h8(n){const e=new Date,i=new Date(n).getTime()-e.getTime();return Math.max(0,Math.ceil(i/(1e3*60*60*24)))}const m8=({voteEnd:n}
136)=>{const{t:e}=Re(),{accentColor:a}=cs(),i=S.useCallback((f,h)=>(h-f.top)/(h+f.height),[]),[l,c]=Mu(i),d=(c-.5)*300;return r.jsxs("section",{ref:l,className:"py-24 md:py-32 overflow-hidden",children:[r.jsx("div",{className:"font-mango text-[4rem] md:text-[6rem] lg:text-[8rem] leading-[0.95] uppercase tracking-normal text-center whitespace-nowrap transition-transform duration-100 ease-out",style:{color:a,transform:"translateX("+d+"px)"},children:e("tremplin.scrollingLine1")}),r.jsx("div",{className:"font-mango text-[4rem] md:text-[6rem] lg:text-[8rem] leading-[0.95] uppercase tracking-normal text-center whitespace-nowrap transition-transform duration-100 ease-out",style:{transform:"translateX("+-d+"px)"},children:e("tremplin.scrollingLine2")}),n&&(()=>{const f=h8(n);return r.jsx("p",{className:"text-center text-neutral-400 text-base md:text-lg mt-8 tracking-wide",children:f>0?e("tremplin.daysRemaining",{count:f}):e("tremplin.votesEnded")})})()]})},p8=({candidate:n})=>{const{selectCandidate:e}=cs();return r.jsxs("button",{type:"button",onClick:()=>e(n),className:"group text-left",children:[r.jsx("div",{className:"aspect-square overflow-hidden rounded-xl bg-neutral-800",children:r.jsx(Ts,{src:n.avatarUrl,alt:n.name,iconSize:48,className:"w-full h-full",imgClassName:"group-hover:scale-105 transition-transform duration-500"})}),r.jsx("h3",{className:"font-mango text-white text-5xl md:text-6xl uppercase leading-tight mt-3 group-hover:opacity-80 transition-opacity truncate",children:n.name.length>12?n.name.slice(0,12)+"...":n.name}),n.bio&&r.jsx("p",{className:"text-neutral-500 text-sm mt-1 line-clamp-1",children:n.bio})]})},xh=16,g8=({candidates:n})=>{const{t:e}=Re(),[a,i]=S.useState(0),[l,c]=S.useState("");if(n.length===0)return r.jsx("p",{className:"text-neutral-500 text-center py-16 text-lg",children:e("tremplin.noCandidates")});const d=l.trim().toLowerCase(),f=d?n.filter(N=>N.name.toLowerCase().includes(d)):n,h=Math.ceil(f.length/xh),m=Math.min(a,Math.max(0,h-1)),g=f.slice(m*xh,(m+1)*xh);function y(N){c(N),i(0)}function b(){i(N=>Math.max(0,N-1))}function v(){i(N=>Math.min(h-1,N+1))}return r.jsxs("section",{className:"px-6 md:px-12 py-8",children:[r.jsxs("div",{className:"max-w-md mx-auto mb-8",children:[r.jsxs("div",{className:"relative",children:[r.jsx(Tm,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-neutral-500",size:18}),r.jsx("input",{type:"text",value:l,onChange:N=>y(N.target.value),placeholder:e("tremplin.searchArtist"),className:"w-full pl-10 pr-4 py-3 rounded-xl bg-neutral-900 border border-neutral-800 text-white placeholder-neutral-500 text-sm focus:outline-none focus:border-white transition-colors"}),l&&r.jsx("button",{type:"button",onClick:()=>y(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-neutral-500 hover:text-white transition-colors",children:r.jsx(ra,{size:16})})]}),d&&r.jsx("p",{className:"text-neutral-500 text-xs mt-2 text-center",children:e("tremplin.resultCount",{count:f.length})})]}),f.length===0?r.jsx("p",{className:"text-neutral-500 text-center py-12 text-base",children:e("tremplin.noSearchResult")}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:g.map(N=>r.jsx(p8,{candidate:N},N.id))}),h>1&&r.jsxs("div",{className:"flex items-center justify-center gap-4 mt-10",children:[r.jsx("button",{type:"button",onClick:b,disabled:m===0,className:"px-4 py-2 rounded-lg bg-neutral-800 text-white text-sm font-medium disabled:opacity-30 disabled:cursor-not-allowed hover:bg-neutral-700 transition-colors",children:e("tremplin.previous")}),r.jsxs("span",{className:"text-neutral-400 text-sm",children:[m+1," / ",h]}),r.jsx("button",{type:"button",onClick:v,disabled:m===h-1,className:"px-4 py-2 rounded-lg bg-neutral-800 text-white text-sm font-medium disabled:opacity-30 disabled:cursor-not-allowed hover:bg-neutral-700 transition-colors",children:e("tremplin.next")})]})]})]})},$1=({winners:n})=>{const{t:e}=Re();return n.length===0?null:r.jsxs("section",{className:"px-6 md:px-12 py-16",children:[r.jsx("h2",{className:"font-mango text-white text-4xl md:text-5xl uppercase text-center mb-12",children:e("tremplin.winnersTitle")}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 max-w-5xl mx-auto",children:n.map(a=>r.jsxs("div",{className:"flex flex-col items-center text-center",children:[r.jsx("div",{className:"w-24 h-24 md:w-32 md:h-32 rounded-full overflow-hidden bg-neutral-800 mb-3",children:r.jsx(Ts,{src:a.avatarUrl,alt:a.name,iconSize:32,className:"w-full h-full"})}),r.jsx("h3",{className:"font-mango text-white text-xl md:text-2xl uppercase",children:a.name}),r.jsx("p",{className:"text-neutral-500 text-sm",children:a.edition.title})]},a.id))})]})},x8=({candidates:n,highlightWinners:e})=>{const{t:a}=Re(),{accentColor:i,selectCandidate:l}=cs(),c=u8(n);return r.jsx("div",{className:"max-w-3xl mx-auto flex flex-col gap-2 max-h-[70vh] overflow-y-auto pr-2",style:{scrollbarWidth:"thin",scrollbarColor:"#525252 transparent"},children:c.map((d,f)=>r.jsxs("button",{type:"button",onClick:()=>l(d),className:"flex items-center gap-4 px-4 py-3 rounded-xl transition-colors "+(e&&d.isWinner?"hover:opacity-80":"hover:bg-neutral-900"),style:e&&d.isWinner?{backgroundColor:i+"1a"}:void 0,children:[r.jsx("span",{className:"text-lg font-bold w-8 text-center",style:f<3?{color:i}:{color:"#525252"},children:f+1}),r.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden bg-neutral-800 shrink-0",children:r.jsx(Ts,{src:d.avatarUrl,alt:d.name,iconSize:16,className:"w-full h-full text-neutral-700"})}),r.jsx("span",{className:"flex-1 text-left font-medium",style:e&&d.isWinner?{color:i}:{color:"white"},children:d.name}),r.jsx("span",{className:"text-sm font-semibold",style:e&&d.isWinner?{color:i}:{color:"#737373"},children:a("tremplin.voteCount",{count:d.voteCount})})]},d.id))})},y8=()=>{const{t:n}=Re(),{edition:e}=cs(),[a,i]=S.useState({hours:0,minutes:0}),l=S.useRef(null);return S.useEffect(()=>{function c(){const d=new Date,f=new Date(d);f.setHours(24,0,0,0);const h=f.getTime()-d.getTime();i({hours:Math.floor(h/(1e3*60*60)),minutes:Math.floor(h%(1e3*60*60)/(1e3*60))})}return c(),l.current=setInterval(c,6e4),()=>{l.current&&clearInterval(l.current)}},[]),e?r.jsxs("div",{className:"pt-32",children:[r.jsx(m8,{voteEnd:e.voteEnd}),r.jsxs("section",{className:"px-6 md:px-12 py-12",children:[r.jsx("h2",{className:"font-mango text-white text-3xl md:text-4xl uppercase text-center mb-4",children:n("tremplin.ranking")}),r.jsx("p",{className:"text-center text-neutral-500 text-sm mb-10",children:n("tremplin.nextUpdate",{hours:a.hours,minutes:a.minutes.toString().padStart(2,"0")})}),r.jsx(x8,{candidates:e.candidates})]}),r.jsx(g8,{candidates:e.candidates}),r.jsx($1,{winners:e.pastWinners})]}):null},b8="/assets/louis-lnr-BWFynvVx.jpg",v8="/assets/jon-onj-_7T0Rr_7.jpg",j8="/assets/liquid-jane-BbZ2cwt5.jpg",Fb={id:-2026,name:"Chamdou & Gigila (ZOON KARA)",bio:`Soul électronique
137
138ZOON KARA, c'est la rencontre de la voix soul de Chamdou et des sons électro de Gigila. Ensemble, voix, looper, piano et sampler créent une soul électronique qui se construit en live et entraîne dans un groove fiévreux.`,avatarUrl:null,embedUrls:[],socialLinks:["https://www.instagram.com/zoon_kara"],isWinner:!0,edition:{year:2026,title:"Tremplin Orizon Sud 2026"}},w8=[{id:-2025,name:"Louis Lnr",bio:null,avatarUrl:b8,embedUrls:[],socialLinks:[],isWinner:!0,edition:{year:2025,title:"Tremplin Orizon Sud 2025"}}
138,{id:-2024,name:"Jon onj",bio:null,avatarUrl:v8,embedUrls:[],socialLinks:[],isWinner:!0,edition:{year:2024,title:"Tremplin Orizon Sud 2024"}},{id:-2023,name:"Liquid Jane",bio:null,avatarUrl:j8,embedUrls:[],socialLinks:[],isWinner:!0,edition:{year:2023,title:"Tremplin Orizon Sud 2023"}}];function N8(n){const e=new Date,a=e.getFullYear()*1e4+(e.getMonth()+1)*100+e.getDate(),i=[...n];for(let l=i.length-1;l>0;l--){const c=(a*2654435761+i[l].id*40503>>>0)%(l+1);[i[l],i[c]]=[i[c],i[l]]}return i}const S8=()=>{const{edition:n,selectCandidate:e}=cs(),[a,i]=S.useState(""),l=S.useMemo(()=>{if(!n)return Fb;const h=n.candidates.find(g=>g.isWinner);if(h)return h;const m=n.candidates.find(g=>{const y=g.name.toLowerCase();return y.includes("zoon")||y.includes("kara")||y.includes("chamdou")||y.includes("gigila")});return m||Fb},[n]),c=S.useMemo(()=>n?.pastWinners&&n.pastWinners.length>0?n.pastWinners:w8,[n]),d=S.useMemo(()=>{if(!n)return[];const h=l?.name?.toLowerCase(),g=n.candidates.some(y=>y.name.toLowerCase()===h)||!l?n.candidates:[{...l,voteCount:0},...n.candidates];return N8(g)},[n,l]);if(!n)return null;const f=a.trim()?d.filter(h=>h.name.toLowerCase().includes(a.toLowerCase())||(h.bio||"").toLowerCase().includes(a.toLowerCase())):d;return r.jsxs("div",{className:"pt-32",children:[r.jsx(Y1,{winner:l,yearLabel:"Lauréat·e 2026"}),r.jsx($1,{winners:c}),r.jsxs("section",{className:"px-6 md:px-12 pb-8 max-w-xl mx-auto",children:[r.jsxs("div",{className:"relative",children:[r.jsx(Tm,{size:18,className:"absolute left-4 top-1/2 -translate-y-1/2 text-neutral-500"}),r.jsx("input",{type:"text",value:a,onChange:h=>i(h.target.value),placeholder:"Rechercher un artiste...",className:"w-full pl-11 pr-4 py-3 rounded-full bg-neutral-900 border border-neutral-800 text-white text-sm placeholder-neutral-500 focus:outline-none focus:border-neutral-600 transition-colors"})]}),r.jsxs("p",{className:"text-center mt-3 text-xs text-neutral-500",children:[f.length," candidat",f.length!==1?"s":"",a&&` pour "${a}"`]})]}),r.jsx("section",{className:"px-6 md:px-12 py-8",children:r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-6",children:f.map(h=>{const m=(h.bio||"").split(`
139
140`),g=m.length>1?m[0]:null;return r.jsxs("div",{className:"group cursor-pointer",onClick:()=>e(h),children:[r.jsx("div",{className:"aspect-square overflow-hidden rounded-xl bg-neutral-800 relative",children:r.jsx(Ts,{src:h.avatarUrl,alt:h.name,className:"w-full h-full",iconSize:48,imgClassName:"group-hover:scale-105 transition-transform duration-500"})}),r.jsxs("div",{className:"mt-3",children:[r.jsx("h3",{className:"font-mango-bold text-white text-3xl md:text-5xl uppercase leading-tight group-hover:opacity-80 transition-opacity",children:h.name}),g&&r.jsx("p",{className:"text-neutral-500 text-sm mt-1",children:g})]})]},h.id)})})})]})},C8=({subtitle:n,title:e,body:a})=>!e&&!a?null:r.jsxs("section",{className:"bg-black text-white px-6 md:px-12 py-16 md:py-20",children:[n&&r.jsx("p",{className:`${za} mb-4 text-center`,children:n}),e&&r.jsx("h2",{className:`${Hr} text-center mb-10`,children:e}),a&&r.jsx("p",{className:`${As} text-neutral-300 max-w-4xl mx-auto`,children:a})]}),_8=()=>{const n=Ai("tremplin");Ya({title:"Tremplin Orizon Sud",description:"Le Tremplin Orizon Sud au Makeda : decouvrez et votez pour les artistes emergents de la scene marseillaise. Inscriptions, votes et resultats.",path:"/tremplin",overrides:n});const{t:e}=Re(),{c:a}=go("tremplin"),{data:i=null,isLoading:l}=L1(),c=aT(),d=iT(),{selectedCandidate:f,setEdition:h,setAccentColor:m,closeCandidate:g}=cs(),[y,b]=S.useState(null),{selectCandidate:v}=cs();S.useEffect(()=>{if(i){h(i),m(i.accentColor||Mm);const k=new URLSearchParams(window.location.search).get("artist");if(k&&!f){const E=i.candidates.find(C=>C.id===Number(k));E&&v(E)}}},[i,h,m]),S.useEffect(()=>{function _(k){f&&(k.preventDefault(),g())}return window.addEventListener("popstate",_),()=>window.removeEventListener("popstate",_)},[f,g]);function N(_){i&&(b(null),c.mutate({editionId:i.id,payload:_},{onSuccess:()=>b({type:"success",message:e("tremplin.registrationSuccess")}),onError:k=>b({type:"error",message:k instanceof Error?k.message:e("tremplin.registrationError")})}))}function w(_,k){f&&(b(null),d.mutate({candidateId:f.id,payload:{voterEmail:_,wantsNotification:k}},{onSuccess:()=>{b({type:"success",message:e("tremplin.voteSuccess")}),g()},onError:E=>b({type:"error",message:E instanceof Error?E.message:e("tremplin.voteError")})}))}return l?r.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-2 border-neutral-500 border-t-transparent roun
140ded-full animate-spin"})}):i?f?r.jsx(o8,{candidate:f,showVoteForm:i.phase==="voting",voteForCandidate:w}):r.jsxs("div",{className:"bg-black min-h-screen",children:[y&&r.jsx("div",{className:"fixed top-4 left-1/2 -translate-x-1/2 z-200 px-6 py-4 rounded-lg text-sm font-medium max-w-lg w-[90%] "+(y.type==="success"?"bg-green-500/10 text-green-400 border border-green-500/20":"bg-red-500/10 text-red-400 border border-red-500/20"),children:y.message}),r.jsx(C8,{subtitle:a("hero.subtitle"),title:a("description.title"),body:a("description.body")}),i.phase==="registration"&&r.jsx(f8,{onSubmitRegistration:N}),i.phase==="voting"&&r.jsx(y8,{}),i.phase==="results"&&r.jsx(S8,{})]}):r.jsx("div",{className:"bg-black min-h-screen flex items-center justify-center",children:r.jsx("p",{className:"text-neutral-500 text-lg",children:e("tremplin.noEdition")})})},E8=["/le-projet","/activites"];function k8(n){return E8.includes(n)}const Hb=80;function Wm(){const n=Vn(),[e,a]=S.useState(null);return S.useEffect(()=>{a(null);function i(){const d=document.querySelectorAll("[data-section-theme]");if(d.length===0){a(null);return}let f=null;for(const h of d){const m=h.getBoundingClientRect();if(m.top<=Hb&&m.bottom>Hb){f=h.dataset.sectionTheme==="light";break}}a(f)}i();let l=null;function c(){l===null&&(l=window.requestAnimationFrame(()=>{i(),l=null}))}return window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c),()=>{window.removeEventListener("scroll",c),window.removeEventListener("resize",c),l!==null&&window.cancelAnimationFrame(l)}},[n.pathname]),e!==null?e:k8(n.pathname)}const X1=({sections:n,offset:e=100,extraClassName:a=""})=>{const i=Wm(),[l,c]=S.useState(n[0]?.id||"");S.useEffect(()=>{const f=new IntersectionObserver(h=>{h.forEach(m=>{m.isIntersecting&&c(m.target.id)})},{rootMargin:`-${e}px 0px -60% 0px`,threshold:0});return n.forEach(h=>{const m=document.getElementById(h.id);m&&f.observe(m)}),()=>f.disconnect()},[n,e]);const d=(f,h)=>{f.preventDefault();const m=document.getElementById(h);m&&window.scrollTo({top:m.offsetTop-e,behavior:"smooth"})};return r.jsx("nav",{className:"sticky top-16 md:top-20 z-30 backdrop-blur-xl border-b "+(i?"bg-white/70 border-neutral-200/50 shadow-sm":"bg-black/40 border-white/10")+(a?" "+a:""),children:r.jsx("ul",{className:"flex overflow-x-auto no-scrollbar px-4 md:px-8",children:n.map(f=>{const h=f.id===l,m=i?"text-black border-black":"text-white border-white",g=i?"text-neutral-500 border-transparent hover:text-black":"text-neutral-500 border-transparent hover:text-neutral-200";return r.jsx("li",{className:"flex-shrink-0",children:r.jsx("a",{href:`#${f.id}`,onClick:y=>d(y,f.id),className:"block px-4 md:px-6 py-4 text-xs md:text-sm uppercase tracking-widest transition-colors border-b-2 "+(h?m:g),children:f.label})},f.id)})})})},T8=({title:n})=>r.jsx("section",{className:"pt-32 pb-8 md:pb-12 px-8 md:px-16 bg-white text-black",children:r.jsx("h1",{className:`${Ou} whitespace-pre-line`,children:n})});function A8(n){if(!n)return{heading:"",poles:[]};const e=n.split("➔").map(c=>c.trim()).filter(Boolean);if(e.length===0)return{heading:"",poles:[]};const a=e[0].replace(/[::]\s*$/,"").trim(),l=e.slice(1).map(c=>{const d=c.indexOf(":");return d===-1?{title:c.trim(),description:""}:{title:c.slice(0,d).trim(),description:c.slice(d+1).trim()}});return{heading:a,poles:l}}const M8=({intro:n})=>{const{heading:e,poles:a}=A8(n);return a.length===0?n?r.jsx("section",{className:"bg-white text-black px-8 md:px-16 pb-12",children:r.jsx("p",{className:"text-lg md:text-xl max-w-3xl text-neutral-700 leading-relaxed whitespace-pre-line text-justify hyphens-auto",children:n})}):null:r.jsxs("section",{className:"bg-white text-black px-8 md:px-16 pb-12 md:pb-16",children:[e&&r.jsx("p",{className:"text-lg md:text-xl max-w-3xl text-neutral-700 leading-relaxed mb-10 md:mb-14",children:e}),r.jsx("div",{className:"grid md:grid-cols-3 gap-5 md:gap-6",children:a.map((i,l)=>r.jsxs("article",{className:"rounded-2xl border border-neutral-200 bg-neutral-50/50 p-6 md:p-8 flex flex-col justify-between min-h-[420px] md:min-
140h-[480px] hover:border-black hover:bg-white transition-colors",children:[r.jsx("span",{className:"font-mango text-5xl md:text-6xl text-neutral-300 leading-none",children:String(l+1).padStart(2,"0")}),r.jsxs("div",{children:[r.jsx("h3",{className:`${Hr} mb-4 leading-[0.95] text-black whitespace-pre-line`,children:i.title}),r.jsx("p",{className:"text-base leading-relaxed text-neutral-700",children:i.description})]})]},l))})]})},O8=({line1:n,line2:e})=>{const a=S.useCallback((d,f)=>(f-d.top)/(f+d.height),[]),[i,l]=Mu(a),c=(l-.5)*300;return!n&&!e?null:r.jsxs("section",{ref:i,className:"bg-white text-black py-24 md:py-32 overflow-hidden",children:[n&&r.jsx("div",{className:"font-mango text-[4rem] md:text-[6rem] lg:text-[8rem] leading-[0.95] uppercase tracking-normal text-center whitespace-nowrap transition-transform duration-100 ease-out",style:{transform:"translateX("+c+"px)"},children:n}),e&&r.jsx("div",{className:"font-mango text-[4rem] md:text-[6rem] lg:text-[8rem] leading-[0.95] uppercase tracking-normal text-center whitespace-nowrap transition-transform duration-100 ease-out",style:{transform:"translateX("+-c+"px)"},children:e})]})},Vc=({id:n,title:e,body:a,image:i,imageFallback:l,reverse:c,dark:d,cta:f})=>{const h=d?"bg-black text-white":"bg-white text-black",m=d?"text-neutral-300":"text-neutral-700",g=an(i,l),y=r.jsxs("div",{className:"flex flex-col justify-center",children:[r.jsx("h2",{className:`${Hr} mb-6 whitespace-pre-line`,children:e}),r.jsx("p",{className:`${As} ${m}`,children:a}),f&&r.jsx("div",{className:"mt-8",children:f})]}),b=r.jsx("div",{className:"w-full h-[400px] md:h-[500px] rounded-2xl overflow-hidden",children:r.jsx("img",{src:g,alt:"",className:"w-full h-full object-cover"})});return r.jsx("section",{id:n,className:`${h} px-8 md:px-16 py-16 md:py-24 scroll-mt-32`,children:r.jsx("div",{className:"grid md:grid-cols-2 gap-8 md:gap-12 items-stretch",children:c?r.jsxs(r.Fragment,{children:[b,y]}):r.jsxs(r.Fragment,{children:[y,b]})})})};function R8(){const{data:n=[]}=Im(),e=Vr({mode:"onChange",defaultValues:{eventTitle:"",eventDescription:"",eventDate:"",eventQuestions:"",eventContactEmail:"",eventContactPhone:""}}),[a,i]=S.useState([]),[l,c]=S.useState(""),[d,f]=S.useState([]),[h,m]=S.useState(null),g=S.useRef(null),[y,b]=S.useState(!1),v=S.useRef(null);S.useEffect(()=>{function E(C){v.current&&!v.current.contains(C.target)&&b(!1)}return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[]);function N(E){f(C=>C.includes(E)?C.filter(A=>A!==E):[...C,E])}function w(){l.trim()&&(i([...a,{name:l.trim(),avatarPreview:null,bio:"",embedUrl:"",socialLinks:[]}]),c(""))}function _(E,C){i(A=>A.map((M,H)=>H===E?{...M,...C}:M))}function k(E){i(C=>C.filter((A,M)=>M!==E))}return{...e,genres:n,eventArtists:a,addArtist:w,updateArtist:_,removeArtist:k,newArtistName:l,setNewArtistName:c,selectedGenreIds:d,toggleGenreSelection:N,eventImagePreview:h,setEventImagePreview:m,eventImageInputRef:g,genreDropdownOpen:y,setGenreDropdownOpen:b,genreDropdownRef:v}}const D8=({artist:n,onRemove:e,onChangeBio:a,onChangeEmbed:i,onSelectAvatar:l,onRemoveAvatar:c,onAddSocialLink:d,onRemoveSocialLink:f})=>{const{t:h}=Re();return r.jsxs("div",{className:"rounded-xl border border-neutral-800 bg-neutral-900/50 p-5 space-y-4",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-white font-medium",children:n.name}),r.jsx("button",{type:"button",className:"text-xs text-red-400 hover:text-red-300 px-2 py-1",onClick:e,children:h("association.residencyRemove")})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-neutral-500 mb-2",children:h("association.residencyAvatarLabel")}),r.jsx(Am,{src:n.avatarPreview,alt:n.name,onSelectFile:l,onRemove:c})]}),r.jsx("textarea",{value:n.bio,onChange:m=>a(m.target.value),rows:2,placeholder:h("association.residencyArtistBio",{name:n.name}),className:Zt+" resize-none text-sm"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-neutral-500 mb-1",children:h("association.residencyEmbedLabel")}),r.jsx("input",{type:"text",value:n.embedUrl,onChange:m=>i(m.target.value),placeholder:h("association.residencyEmbedPlaceholder"),className:Zt+" text-sm"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-neutral-500 mb-1",children:h("association.residencyMediaLinks")}),n.socialLinks.map((m,g)=>r.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[r.jsx("span",{className:"flex-1 text-xs text-neutral-300 bg-neutral-800 border border-neutral-700 rounded px-2 py-1 truncate",children:m}),r.jsx("button",{type:"button",className:"text-xs text-red-400 hover:text-red-300 px-1",onClick:()=>f(g),children:"x"})]},g)),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"text",placeholder:"https://instagram.com/...",className:Zt+" flex-1 text-sm",onKeyDown:m=>{if(m.key==="Enter"){m.preventDefault();const g=m.target;d(g.value),g.value=""}}}),r.jsx("button",{type:"button",className:"shrink-0 w-8 h-8 rounded-full border border-neutral-700 text-neutral-400 hover:border-white hover:text-white flex items-center justify-center transition-colors text-sm",onClick:m=>{const g=m.target.previousElementSibling;g?.value.trim()&&(d(g.value),g.value="")},children:"+"})]})]})]})},L8=({open:n,onClose:e,onSubmitted:a})=>{const{t:i}=Re(),l=R8(),c=rT(),{register:d,handleSubmit:f,formState:{isValid:h}}=l,m=g=>{c.mutate({eventTitle:g.eventTitle,description:g.eventDescription||void 0,desiredDate:g.eventDate||void 0,artists:l.eventArtists.length>0?JSON.stringify(l.eventArtists):void 0,genreIds:l.selectedGenreIds.length>0?JSON.stringify(l.selectedGenreIds):void 0,questions:g.eventQuestions||void 0,contactEmail:g.eventContactEmail,contactPhone:g.eventContactPhone||void 0},{onSuccess:()=>{a(),e()}})};return r.jsxs(Fr,{open:n,onCloseModal:e,maxWidth:"max-w-3xl",className:"p-8",children:[r.jsx("h3",{className:"font-mango text-white text-3xl uppercase mb-8",children:i("association.residencyFormTitle")}),r.jsxs("form",{onSubmit:f(m),className:"flex flex-col gap-6",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest text-neutral-500",children:i("association.residencyGeneralInfo")}),r.jsx("div",{className:"h-px bg-neutral-800"})]}),r.jsx("input",{type:"text",placeholder:i("association.residencyEventName"),...d("eventTitle",{required:!0}),className:Zt}),r.jsx("textarea",{placeholder:i("association.residencyEventDescription"),...d("eventDescription"),rows:4,className:Zt+" resize-none"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs text-neutral-500 mb-1",children:i("association.residencyDesiredDate")}),r.jsx("input",{type:"date",...d("eventDate"),className:Zt})]}),r.jsxs("div",{className:"space-y-1 pt-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest text-neutral-500",children:i("association.residencyArtists")}
140),r.jsx("div",{className:"h-px bg-neutral-800"})]}),l.eventArtists.map((g,y)=>r.jsx(D8,{artist:g,index:y,onRemove:()=>l.removeArtist(y),onChangeBio:b=>l.updateArtist(y,{bio:b}),onChangeEmbed:b=>l.updateArtist(y,{embedUrl:b}),onSelectAvatar:b=>l.updateArtist(y,{avatarPreview:URL.createObjectURL(b)}),onRemoveAvatar:()=>l.updateArtist(y,{avatarPreview:null}),onAddSocialLink:b=>{b.trim()&&l.updateArtist(y,{socialLinks:[...g.socialLinks,b.trim()]})},onRemoveSocialLink:b=>{l.updateArtist(y,{socialLinks:g.socialLinks.filter((v,N)=>N!==b)})}},y)),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("input",{type:"text",placeholder:i("association.residencyArtistName"),value:l.newArtistName,onChange:g=>l.setNewArtistName(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),l.addArtist())},className:Zt+" flex-1"}),r.jsx("button",{type:"button",onClick:l.addArtist,className:"shrink-0 w-9 h-9 rounded-full border border-neutral-700 text-neutral-400 hover:border-white hover:text-white flex items-center justify-center transition-colors",children:"+"})]}),r.jsxs("div",{className:"space-y-1 pt-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest text-neutral-500",children:i("association.residencyExtras")}),r.jsx("div",{className:"h-px bg-neutral-800"})]}),r.jsxs("div",{ref:l.genreDropdownRef,className:"relative",children:[r.jsx("p",{className:"text-xs text-neutral-500 mb-2",children:i("association.residencyGenres")}),l.selectedGenreIds.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:l.selectedGenreIds.map(g=>{const y=l.genres.find(b=>b.id===g);return y?r.jsxs("span",{className:"flex items-center gap-1.5 bg-white/10 text-white text-xs px-3 py-1.5 rounded-full border border-white/10",children:[y.name,r.jsx("button",{type:"button",onClick:()=>l.toggleGenreSelection(g),className:"text-neutral-500 hover:text-white transition-colors",children:r.jsx(ra,{size:12})})]},g):null})}),l.selectedGenreIds.length<10&&r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:()=>l.setGenreDropdownOpen(!l.genreDropdownOpen),className:"w-full flex items-center justify-between py-3 border-b border-dashed border-neutral-700 hover:border-white transition-colors",children:[r.jsx("span",{className:"text-sm text-neutral-500",children:i("association.residencyAddGenre",{count:l.selectedGenreIds.length})}),r.jsx(t1,{size:16,className:"text-neutral-500 transition-transform "+(l.genreDropdownOpen?"rotate-180":"")})]}),l.genreDropdownOpen&&r.jsx("div",{className:"absolute left-0 right-0 top-full mt-1 z-10 bg-neutral-900 border border-neutral-800 rounded-xl shadow-2xl max-h-52 overflow-y-auto",style:{scrollbarWidth:"thin",scrollbarColor:"#525252 transparent"},children:l.genres.filter(g=>!l.selectedGenreIds.includes(g.id)).map(g=>r.jsx("button",{type:"button",onClick:()=>{l.toggleGenreSelection(g.id),l.selectedGenreIds.length>=9&&l.setGenreDropdownOpen(!1)},className:"w-full text-left px-4 py-2.5 text-sm text-neutral-300 hover:bg-white/10 hover:text-white transition-colors first:rounded-t-xl last:rounded-b-xl",children:g.name},g.id))})]})]}),r.jsx("textarea",{placeholder:i("association.residencyQuestions"),...d("eventQuestions"),rows:3,className:Zt+" resize-none"}),r.jsxs("div",{children:[r.jsx("p",{className:"text-neutral-400 text-sm mb-1",children:i("association.residencyProjectImage")}),r.jsx("p",{className:"text-neutral-600 text-xs mb-2",children:i("association.residencyProjectImageHint")}),r.jsx("input",{ref:l.eventImageInputRef,type:"file",accept:"image/*",className:"hidden",onChange:g=>{const y=g.target.files?.[0];y&&l.setEventImagePreview(URL.createObjectURL(y))}}),l.eventImagePreview?r.jsxs("div",{className:"relative",children:[r.jsx("img",{src:l.eventImagePreview,alt:"Preview",className:"w-full h-40 object-cover rounded-xl"}),r.jsx("button",{type:"button",className:"absolute top-2 right-2 text-xs bg-black/70 text-white px-2 py-1 rounded",onClick:()=>l.setEventImagePreview(null),children:i("association.residencyRemove")})]}):r.jsx("button",{type:"button",className:"w-full py-4 border border-dashed border-neutral-700 rounded-xl text-sm text-neutral-500 hover:text-white hover:border-neutral-500 transition-colors",onClick:()=>l.eventImageInputRef.current?.click(),children:i("association.residencyChooseImage")})]}),r.jsxs("div",{className:"space-y-1 pt-2",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest text-neutral-500",children:i("association.residencyContact")}),r.jsx("div",{className:"h-px bg-neutral-800"})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[r.jsx("input",{type:"email",placeholder:i("association.residencyEmailPlaceholder"),...d("eventContactEmail",{required:!0}),className:Zt}),r.jsx("input",{type:"tel",placeholder:i("association.residencyPhonePlaceholder"),...d("eventContactPhone"),className:Zt})]}),r.jsx("button",{type:"submit",disabled:!h||c.isPending,className:"mt-2 w-full py-3 rounded-full font-semibold transition-opacity "+(h&&!c.isPending?"bg-white text-black hover:opacity-90":"bg-neutral-700 text-neutral-400 cursor-not-allowed"),children:c.isPending?"...":i("association.residencySubmit")})]})]})},z8=[{id:"accompagnement",label:"Accompagnement"},{id:"residences",label:"Résidences"},{id:"actions",label:"Actions culturelles"},{id:"ateliers",label:"Ateliers"}],U8=()=>{const n=Ai("activites");Ya({title:"Activités",description:"Diffusion, accompagnement artistique et actions socio-culturelles : trois pôles structurent les activités du Makeda et d'Orizon Sud.",path:"/activites",overrides:n});const{c:e,pageContent:a}=go("activites"),[i,l]=S.useState(!1),[c,d]=S.useState(!1),f=e("accompagnement.ctaSubject")||"accompagnement",h=e("accompagnement.ctaLabel")||"CONTACTEZ-NOUS",m=e("accompagnement2.title"),g=e("accompagnement2.body");return r.jsxs("div",{className:"bg-white text-black min-h-screen",children:[r.jsx(T8,{title:e("hero.title")}),r.jsx(M8,{intro:e("intro.body")}),r.jsx(X1,{sections:z8}),r.jsx(Vc,{id:"accompagnement",title:e("accompagnement.title"),body:e("accompagnement.body"),image:a["accompagnement.image"]||"",imageFallback:oa,cta:r.jsx(ht,{to:`/contact?subject=${f}`,className:"inline-block px-6 py-3 bg-black text-white font-medium rounded-lg hover:bg-neutral-800 transition-colors",children:h})}),m&&g&&r.jsx("section",{className:"bg-neutral-50 text-black px-8 md:px-16 py-16 md:py-20",children:r.jsxs("div",{className:"max-w-4xl",children:[r.jsx("h2",{className:`${$h} mb-6 leading-tight whitespace-pre-line`,children:m}),r.jsx("p",{className:`${As} text-neutral-700`,children:g})]})}),r.jsx(Vc,{id:"residences",title:e("residences.title"),body:e("residences.body"),image:a["residences.image"]||"",imageFallback:la,reverse:!0,cta:r.jsx("button",{type:"button",onClick:()=>l(!0),className:"inline-block px-6 py-3 bg-black text-white font-medium rounded-lg hover:bg-neutral-800 transition-colors",children:e("residences.ctaLabel")||"Poser une résidence"})}),r.jsx(Vc,{id:"actions",title:e("actions.title"),body:e("actions.body"),image:a["actions.image"]||"",imageFallback:Rs}
140),r.jsx(Vc,{id:"ateliers",title:e("ateliers.title"),body:e("ateliers.body"),image:a["ateliers.image"]||"",imageFallback:Au,reverse:!0}),r.jsx(O8,{line1:e("scrolling.line1"),line2:e("scrolling.line2")}),c&&r.jsxs("div",{className:"fixed bottom-8 right-8 z-50 rounded-2xl border border-green-500/30 bg-green-500/10 backdrop-blur p-6 max-w-sm",children:[r.jsx("p",{className:"text-green-200",children:"Merci, votre demande de résidence a bien été envoyée."}),r.jsx("button",{type:"button",onClick:()=>d(!1),className:"mt-2 text-xs text-green-300 underline hover:text-white",children:"Fermer"})]}),r.jsx(L8,{open:i,onClose:()=>l(!1),onSubmitted:()=>d(!0)})]})},q8=({title:n,subtitle:e,image:a})=>r.jsxs("section",{className:"relative w-full h-screen min-h-[640px] overflow-hidden",children:[r.jsx("img",{src:an(a,Rs),alt:"",className:"absolute inset-0 w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/30 via-black/10 to-black/70 pointer-events-none"}),r.jsxs("div",{className:"relative h-full flex flex-col items-center justify-center text-center px-8 md:px-16 pointer-events-none",children:[r.jsx("h1",{className:`${Ou} text-white whitespace-pre-line drop-shadow-lg`,children:n}),e&&r.jsx("p",{className:"mt-4 md:mt-6 text-lg md:text-xl text-white/80 max-w-2xl drop-shadow-md",children:e})]})]}),P8=["capacite","scene","son","lumiere","video","regie","residences"],B8="fiche-technique",F8=({c:n})=>{const{data:e=[]}=E1(),a=e.find(l=>l.slug===B8),i=n("fiche.downloadLabel")||"Télécharger la fiche technique";return r.jsxs("section",{id:"fiche-technique",className:"bg-white text-black px-8 md:px-16 py-16 md:py-24 scroll-mt-32",children:[r.jsx("h2",{className:`${$h} mb-8 whitespace-pre-line`,children:n("fiche.title")||"Fiche technique"}),n("fiche.intro")&&r.jsx("p",{className:`${As} text-neutral-700 max-w-3xl mb-12`,children:n("fiche.intro")}),r.jsx("div",{className:"max-w-4xl mb-12",children:P8.map(l=>{const c=n(`fiche.${l}.title`),d=n(`fiche.${l}.items`);if(!c)return null;const f=d.split(`
141`).map(h=>h.trim()).filter(Boolean);
141return r.jsxs("div",{tabIndex:0,className:"collapse collapse-arrow border-b border-neutral-200 rounded-none bg-transparent",children:[r.jsx("div",{className:`collapse-title ${$h} py-5 px-0 pr-10 min-h-0 text-black`,children:c}),r.jsx("div",{className:"collapse-content px-0",children:f.length>0?r.jsx("ul",{className:"space-y-2 text-neutral-700 pb-4",children:f.map((h,m)=>r.jsxs("li",{className:"flex gap-2 leading-relaxed",children:[r.jsx("span",{className:"text-neutral-400 mt-1",children:"•"}),r.jsx("span",{children:h})]},m))}):r.jsx("p",{className:"text-neutral-700 leading-relaxed pb-4",children:d})})]},l)})}),n("fiche.outro")&&r.jsx("p",{className:`${As} text-neutral-700 max-w-3xl mb-12`,children:n("fiche.outro")}),r.jsx("div",{className:"pt-4 border-t border-neutral-200",children:a?.fileUrl?r.jsxs("a",{href:a.fileUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-3 px-8 py-4 bg-black text-white font-medium rounded-full hover:bg-neutral-800 transition-colors",children:[r.jsx(ru,{className:"w-5 h-5"}),i]}):r.jsxs("span",{className:"inline-flex items-center gap-3 px-8 py-4 bg-neutral-200 text-neutral-500 font-medium rounded-full cursor-not-allowed",children:[r.jsx(ru,{className:"w-5 h-5"}),i," (à venir)"]})})]})},H8={press:"Presse",logo:"Logos",partners:"Logos partenaires institutionnels",medias:"Logos partenaires médias",tech:"Technique",other:"Autres"},Vb=["tech","press","logo","partners","medias","other"];function V8(n){return n?n<1024*1024?` (${(n/1024).toFixed(0)} Ko)`:` (${(n/(1024*1024)).toFixed(1)} Mo)`:""}const Z1=[{id:"fallback-logo-makeda",slug:"logo-makeda",label:"Logo MAKEDA",fileUrl:qr,category:"logo",mimeType:"image/png"},{id:"fallback-logo-orizon-sud",slug:"logo-orizon-sud",label:"Logo Orizon Sud",fileUrl:mo,category:"logo",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-departement",slug:"logo-departement-13",label:"Département des Bouches-du
141-Rhône",fileUrl:Om,category:"partners",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-prefet",slug:"logo-prefet-region",label:"Préfet de Région PACA",fileUrl:Rm,category:"partners",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-region-sud",slug:"logo-region-sud",label:"Région Sud",fileUrl:Dm,category:"partners",mimeType:"image/jpeg",needsWhiteBg:!0},{id:"fallback-logo-marseille",slug:"logo-ville-marseille",label:"Ville de Marseille",fileUrl:Lm,category:"partners",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-lrdr",slug:"logo-lrdr",label:"La Responsabilité des Rêves",fileUrl:zm,category:"partners",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-la-provence",slug:"logo-la-provence",label:"La Provence",fileUrl:qm,category:"medias",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-nrj",slug:"logo-nrj",label:"NRJ",fileUrl:Fm,category:"medias",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-nostalgie",slug:"logo-nostalgie",label:"Nostalgie",fileUrl:Pm,category:"medias",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-radio-grenouille",slug:"logo-radio-grenouille",label:"Radio Grenouille",fileUrl:Hm,category:"medias",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-nouvelle-vague",slug:"logo-nouvelle-vague",label:"Nouvelle Vague",fileUrl:Bm,category:"medias",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-zebuline",slug:"logo-zebuline",label:"Zébuline",fileUrl:Vm,category:"medias",mimeType:"image/png",needsWhiteBg:!0},{id:"fallback-logo-cite-metisse",slug:"logo-cite-metisse",label:"La Cité Métisse",fileUrl:Um,category:"medias",mimeType:"image/jpeg",needsWhiteBg:!0}];function I8(n){return n?!!Z1.find(a=>a.slug===n)?.needsWhiteBg:!1}const G8=({title:n})=>{const{data:e=[],isLoading:a}=E1();if(a)return null;const i=e.filter(h=>h.fileUrl!==null).map(h=>({id:h.id,slug:h.slug,label:h.label,version:h.version,mimeType:h.mimeType,fileSize:h.fileSize,fileUrl:h.fileUrl,category:h.category||"other"})),l=new Set(e.map(h=>h.slug)),c=Z1.filter(h=>!l.has(h.slug)),d=[...i,...c];if(d.length===0)return null;const f=d.reduce((h,m)=>{const g=m.category||"other";return h[g]||(h[g]=[]),h[g].push(m),h},{});return r.jsxs("section",{id:"documents",className:"bg-black text-white px-8 md:px-16 py-16 md:py-24 scroll-mt-32",children:[r.jsx("h2",{className:`${Hr} mb-12`,children:n}),r.jsx("div",{className:"space-y-10",children:Object.entries(f).sort(([h],[m])=>{const g=Vb.indexOf(h),y=Vb.indexOf(m);return(g===-1?999:g)-(y===-1?999:y)}).map(([h,m])=>{const g=h==="logo"||h==="partners"||h==="medias";return r.jsxs("div",{children:[r.jsx("h3",{className:`${za} mb-4`,children:H8[h]||h}),g?r.jsx("div",{className:"flex flex-wrap items-center gap-4 md:gap-6",children:m.map(y=>{const b=I8(y.slug);return r.jsx("a",{href:y.fileUrl,download:!0,target:"_blank",rel:"noopener noreferrer",title:`${y.label} (cliquer pour télécharger)`,className:"group inline-flex items-center justify-center "+(b?"bg-white rounded-lg px-4 py-3 hover:bg-neutral-100":"px-2 py-2 hover:opacity-100 opacity-80"),children:r.jsx("img",{src:y.fileUrl,alt:"",className:"max-h-16 md:max-h-20 max-w-[180px] object-contain transition-opacity"})},y.id)})}):r.jsx("ul",{className:"space-y-2",children:m.map(y=>r.jsx("li",{children:r.jsxs("a",{href:y.fileUrl,download:!0,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 p-4 rounded-xl bg-white/5 border border-white/10 hover:border-white hover:bg-white/10 transition-colors group",children:[r.jsx(ru,{className:"w-5 h-5 text-neutral-400 group-hover:text-white transition-colors flex-shrink-0"}),r.jsxs("div",{className:"flex-1",children:[r.jsxs("p",{className:"font-medium text-white",children:[y.label,y.version&&r.jsx("span",{className:"ml-2 text-xs text-neutral-400",children:y.version})]}),r.jsxs("p",{className:"text-xs text-neutral-400",children:[y.mimeType||"Fichier",V8(y.fileSize)]})]})]})},y.id))})]},h)})})]})},Q8=({title:n,body:e,ctaLabel:a,ctaSubject:i,image:l})=>r.jsx("section",{id:"privatisation",className:"bg-black text-white px-8 md:px-16 py-16 md:py-24 scroll-mt-32",children:r.jsxs("div",{className:"grid md:grid-cols-2 gap-8 md:gap-12 items-center",children:[r.jsxs("div",{children:[r.jsx("h2",{className:`${Hr} mb-6 whitespace-pre-line`,children:n}),r.jsx("p",{className:`${As} mb-8 text-neutral-300`,children:e}),a&&r.jsx(ht,{to:`/contact?subject=${i||"privatisation"}`,className:"inline-block px-8 py-4 bg-white text-black font-medium rounded-lg hover:bg-neutral-200 transition-colors",children:a})]}),r.jsx("div",{className:"w-full h-[400px] md:h-[500px] rounded-2xl overflow-hidden",children:r.jsx("img",{src:an(l,oa),alt:"",className:"w-full h-full object-cover"})})]})}),K8=({images:n,intervalMs:e=1e3})=>{const a=S.useRef(null),[i,l]=S.useState(0),[c,d]=S.useState(!1);S.useEffect(()=>{if(n.length<=1||c)return;const h=setInterval(()=>{l(m=>(m+1)%n.length)},e);return()=>clearInterval(h)},[n.length,e,c]),S.useEffect(()=>{const h=a.current;if(!h)return;const m=h.children[i];m&&h.scrollTo({left:m.offsetLeft,behavior:"smooth"})},[i]);const f=h=>{d(!0),l((h+n.length)%n.length)};return n.length===0?null:r.jsxs("section",{id:"galerie",className:"relative bg-black text-white w-full h-screen min-h-[640px] scroll-mt-32 overflow-hidden",onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1),children:[r.jsx("div",{ref:a,className:"carousel w-full h-full",children:n.map((h,m)=>r.jsxs("div",{className:"carousel-item relative w-full h-full",children:[r.jsx("img",{src:h.url,alt:h.alt||"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 via-trans
141parent to-black/20 pointer-events-none"})]},m))}),r.jsxs("div",{className:"absolute bottom-8 md:bottom-12 left-8 md:left-16 z-10 text-sm uppercase tracking-widest text-white/80 pointer-events-none",children:[String(i+1).padStart(2,"0")," / ",String(n.length).padStart(2,"0")]}),n.length>1&&r.jsxs("div",{className:"absolute inset-y-0 left-0 right-0 flex items-center justify-between px-4 md:px-8 z-10 pointer-events-none",children:[r.jsx("button",{type:"button",onClick:()=>f(i-1),className:"pointer-events-auto inline-flex items-center justify-center w-12 h-12 md:w-14 md:h-14 rounded-full bg-white/10 backdrop-blur-md text-white hover:bg-white/25 transition-colors","aria-label":"Image précédente",children:r.jsx(n1,{className:"w-6 h-6"})}),r.jsx("button",{type:"button",onClick:()=>f(i+1),className:"pointer-events-auto inline-flex items-center justify-center w-12 h-12 md:w-14 md:h-14 rounded-full bg-white/10 backdrop-blur-md text-white hover:bg-white/25 transition-colors","aria-label":"Image suivante",children:r.jsx(Z_,{className:"w-6 h-6"})})]}),n.length>1&&r.jsx("div",{className:"absolute bottom-8 md:bottom-12 right-8 md:right-16 z-10 flex gap-2 pointer-events-auto",children:n.map((h,m)=>r.jsx("button",{type:"button",onClick:()=>f(m),className:"w-2 h-2 rounded-full transition-all "+(m===i?"bg-white w-6":"bg-white/40 hover:bg-white/70"),"aria-label":`Aller à l'image ${m+1}`},m))})]})},Y8=[{id:"fiche-technique",label:"Fiche technique"},{id:"galerie",label:"Galerie"},{id:"privatisation",label:"Privatisation"},{id:"documents",label:"Documents"}],$8=[{url:oa,alt:"Le Makeda - vue salle"},{url:la,alt:"Le Makeda - bar"},{url:Rs,alt:"Le Makeda - scene"},{url:Au,alt:"Le Makeda - mezzanine"}];function X8(n){if(!n)return[];try{const e=JSON.parse(n);return Array.isArray(e)?e:[]}catch{return[]}}const Z8=()=>{const n=Ai("espace-pro");Ya({title:"Espace pro",description:"Fiche technique, dossier de presse, logos vectorises, galerie et privatisation. Toutes les ressources pour collaborer avec le Makeda.",path:"/espace-pro",overrides:n});const{c:e,pageContent:a}=go("espace-pro"),i=X8(e("gallery.images")),l=i.length>0?i:$8;return r.jsxs("div",{className:"bg-white text-black min-h-screen",children:[r.jsx(q8,{title:e("hero.title"),subtitle:e("hero.subtitle"),image:a["hero.image"]||""}),r.jsx(X1,{sections:Y8}),r.jsx("div",{"data-section-theme":"light",children:r.jsx(F8,{c:e})}),l.length>0&&r.jsx("div",{"data-section-theme":"dark",children:r.jsx(K8,{images:l})}),r.jsx("div",{"data-section-theme":"dark",children:r.jsx(Q8,{title:e("privatisation.title"),body:e("privatisation.body"),ctaLabel:e("privatisation.ctaLabel"),ctaSubject:e("privatisation.ctaSubject"),image:a["privatisation.image"]||""})}),r.jsx("div",{"data-section-theme":"dark",children:r.jsx(G8,{title:e("documents.title")||"Documents téléchargeables"})})]})};async function J8(n){return Ne("/contact",{method:"POST",body:JSON.stringify(n)})}function W8(){return De({mutationFn:n=>J8(n)})}const e6=[{value:"general",label:"Question générale"},{value:"mecenat",label:"Mécénat"},{value:"privatisation",label:"Privatisation"},{value:"pro",label:"Espace pro / Tech"},{value:"accompagnement",label:"Accompagnement artiste"}];function Ic(){const n=5+Math.floor(Math.random()*16),e=5+Math.floor(Math.random()*16);return{a:n,b:e,sum:n+e}}const t6=({title:n,successMessage:e,defaultSubject:a="general"})=>{const[i,l]=S.useState(()=>Ic()),{register:c,handleSubmit:d,reset:f,watch:h,formState:{errors:m,isValid:g}}=Vr({mode:"onChange",defaultValues:{firstName:"",lastName:"",email:"",phone:"",subject:a,message:"",captcha:""}}),y=W8(),[b,v]=S.useState(!1),[N,w]=S.useState(null),_=h("captcha"),k=S.useMemo(()=>_.trim()!==""&&Number(_)===i.sum,[_,i.sum]),E=C=>{if(w(null),Number(C.captcha)!==i.sum){w("Vérification anti-spam incorrecte. Recommencez svp."),l(Ic());return}const A=`${C.lastName.trim()} ${C.firstName.trim()}`.trim();y.mutate({name:A,email:C.email,phone:C.phone||void 0,subject:C.subject||void 0,message:C.message},{onSuccess:()=>{v(!0),f(),l(Ic())},onError:M=>{w(M.message||"Erreur lors de l'envoi"),l(Ic())}})};return b?r.jsxs("div",{className:"rounded-2xl border border-white/10 p-8 bg-white/5",children:[r.jsx("p",{className:"text-lg text-neutral-200",children:e||"Merci, votre message a bien été envoyé."}),r.jsx("button",{type:"button",onClick:()=>v(!1),className:"mt-4 text-sm text-neutral-400 hover:text-white underline",children:"Envoyer un autre message"})]}):r.jsxs("form",{onSubmit:d(E),className:"rounded-2xl border border-white/10 p-8 bg-white/5 space-y-4",children:[n&&r.jsx("h2",{className:`${ST} text-white mb-2`,children:n}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Nom *"}),r.jsx("input",{type:"text",...c("lastName",{required:!0,minLength:2,maxLength:60}),className:"w-full "+Zt,"aria-invalid":!!m.lastName})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Prénom *"}),r.jsx("input",{type:"text",...c("firstName",{required:!0,minLength:2,maxLength:60}),className:"w-full "+Zt,"aria-invalid":!!m.firstName})]})]}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Téléphone"}),r.jsx("input",{type:"tel",...c("phone",{maxLength:30}),className:"w-full "+Zt})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Adresse e-mail *"}),r.jsx("input",{type:"email",...c("email",{required:!0,pattern:/^[^\s@]+@[^\s@]+\.[^\s@]+$/}),className:"w-full "+Zt,"aria-invalid":!!m.email})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Motif de la demande *"}),r.jsx("select",{...c("subject",{required:!0}),className:"w-full "+Zt,children:e6.map(C=>r.jsx("option",{value:C.value,children:C.label},C.value))})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-widest text-neutral-400 mb-1",children:"Message *"}),r.jsx("textarea",{rows:6,...c("message",{required:!0,minLength:10,maxLength:5e3}),className:"w-full resize-none "+Zt,"aria-invalid":!!m.message}),m.message&&r.jsx("p",{className:"text-xs text-red-400 mt-1",children:"10 caractères minimum."})]}),r.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3",children:[r.jsxs("label",{className:"text-sm text-neutral-300 whitespace-nowrap",children:[i.a," + ",i.b," = ?"]}),r.jsx("input",{type:"number",inputMode:"numeric",...c("captcha",{required:!0}),className:"w-24 "+Zt,"aria-invalid":!k&&_!==""}),!k&&_!==""&&r.jsx("p",{className:"text-xs text-red-400",children:"Réponse incorrecte"})]}),N&&r.jsx("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 p-3 text-sm text-red-300",children:N}),r.jsx("button",{type:"submit",disabled:!g||!k||y.isPending,className:"px-6 py-3 bg-white text-black font-medium rounded-lg hover:bg-neutral-200 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:y.isPending?"Envoi…":"J'envoie"})]})},n6=({embedUrl:n,addressLine1:e,addressLine2:a})=>n?r.jsx("div",{className:"rounded-2xl overflow-hidden border border-white/10",children:r.jsx("iframe",{src:n,title:`Carte ${e} ${a}`,className:"w-full h-[400px]",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})}):null;function s6(n){if(!n)return[];try{const e=JSON.parse(n);return Array.isArray(e)?e:[]}catch{return[]}}const a6=({title:n,subtitle:e,membersJson:a,fallbackImage:i})=>{const l=s6(a);return l.length===0?null:r.jsxs("section",{className:"py-16",children:[e&&r.jsx("p",{className:`${za} mb-3`,children:e}),r.jsx("h2",{className:`${Hr} mb-10 text-white`,children:n}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6 md:gap-8",children:l.map((c,d)=>r.jsxs("div",{className:"w-full",children:[r.jsx("div",{className:"w-full aspect-[3/4] overflow-hidden bg-white/5",children:r.jsx("img",{src:an(c.photoUrl,i),alt:c.name,className:"w-full h-full object-cover grayscale hover:grayscale-0 transition-all duration-500"})}
141),r.jsx("p",{className:"text-white text-sm font-medium mt-3",children:c.name}),r.jsx("p",{className:"text-xs text-neutral-500 mt-0.5",children:c.role})]},`${c.name}-${d}`))})]})};function i6(n){return sn({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"},child:[]}]})(n)}function r6(n){return sn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(n)}function l6(n){return sn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(n)}function o6(n){return sn({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(n)}function c6(n){return sn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"},child:[]}]})(n)}function u6(n){return sn({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"},child:[]}]})(n)}const d6=[{id:"instagram",label:"Instagram",url:"https://www.instagram.com/lemakeda13/",icon:"instagram"},{id:"facebook",label:"Facebook",url:"https://www.facebook.com/lemakeda13",icon:"facebook"},{id:"tiktok",label:"TikTok",url:"https://www.tiktok.com/@lemakeda13",icon:"tiktok"},{id:"linkedin",label:"LinkedIn",url:"https://www.linkedin.com/company/le-makeda/",icon:"linkedin"},{id:"youtube",label:"YouTube",url:"https://www.youtube.com/channel/UC5wrmcjRRNZiEl8D0dW970g",icon:"youtube"},{id:"google-reviews",label:"Google Avis",url:"https://share.google/HxqDYl4vWBPH95Cmt",icon:"google-reviews"}],f6={instagram:r6,facebook:i6,tiktok:o6,linkedin:l6,youtube:u6,"google-reviews":NE},ep=({theme:n="light",size:e="md",className:a=""})=>{const i=e==="sm"?"w-8 h-8":e==="lg"?"w-12 h-12":"w-10 h-10",l=e==="sm"?14:e==="lg"?20:16,c=n==="light"?"bg-white/10 hover:bg-white/20 text-white border border-white/10":"bg-black/5 hover:bg-black/10 text-black border border-neutral-200";return r.jsx("ul",{className:"flex flex-nowrap items-center gap-2 "+a,children:d6.map(d=>{const f=f6[d.icon];return r.jsx("li",{children:r.jsx("a",{href:d.url,target:"_blank",rel:"noopener noreferrer","aria-label":d.label,title:d.label,className:`inline-flex items-center justify-center rounded-full transition-colors ${i} ${c}`,children:r.jsx(f,{size:l})})},d.id)})})},h6=[{key:"metro1",icon:"M"},{key:"metro2",icon:"M"},{key:"tram",icon:"T"},{key:"bus",icon:"B"},{key:"parking",icon:"P"},{key:"pmr",icon:"♿"}],m6=()=>{const n=Ai("contact");Ya({title:"Contacts & infos pratiques",description:"103 rue Ferrari, 13005 Marseille. Acces, telephone, mail, equipe. Toutes les infos pour nous rencontrer.",path:"/contact",overrides:n});const{c:e}=go("contact"),a=e("phone").replace(/\s/g,"");return r.jsx("main",{className:"bg-black text-white min-h-screen pt-32 pb-24 px-6 md:px-16",children:r.jsxs("div",{className:"max-w-6xl mx-auto",children:[r.jsx("h1",{className:`${Ou} mb-12`,children:"Contacts & infos pratiques"}),r.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-8",children:[r.jsxs("div",{className:"rounded-2xl border border-white/10 p-8 bg-white/5",children:[r.jsx("h2",{className:`${za} text-neutral-400 mb-3`,children:"Adresse"}),r.jsx("p",{className:"text-xl text-white",children:e("address.line1")}),r.jsx("p",{className:"text-xl text-neutral-300",children:e("address.line2")})]}),r.jsxs("div",{className:"rounded-2xl border border-white/10 p-8 bg-white/5",children:[r.jsx("h2",{className:`${za} text-neutral-400 mb-3`,children:"Contact direct"}),r.jsx("p",{className:"text-xl",children:r.jsx("a",{href:"tel:"+a,className:"text-white hover:text-neutral-300 transition-colors",children:e("phone")})}),r.jsx("p",{className:"text-xl",children:r.jsx("a",{href:"mailto:"+e("email"),className:"text-white hover:text-neutral-300 transition-colors",children:e("email")})})]})]}),r.jsxs("section",{className:"rounded-2xl border border-white/10 p-8 bg-white/5 mb-8",children:[r.jsx("h2",{className:`${za} text-neutral-400 mb-6`,children:"Réseaux sociaux"}),r.jsx(ep,{theme:"light",size:"lg"})]}),r.jsxs("section",{className:"rounded-2xl border border-white/10 p-8 bg-white/5 mb-8",children:[r.jsx("h2",{className:`${za} text-neutral-400 mb-6`,children:"Accès"}),r.jsx("ul",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-x-8 gap-y-3",children:h6.map(({key:i,icon:l})=>{const c=e(`access.${i}`);return c?r.jsxs("li",{className:"flex items-start gap-3 text-neutral-200",children:[r.jsx("span",{className:"inline-flex items-center justify-center w-7 h-7 rounded-full bg-white/10 text-xs font-bold flex-shrink-0",children:l}),r.jsx("span",{className:"leading-snug",children:c})]},i):null})})]}),r.jsx("div",{className:"mb-12",children:r.jsx(n6,{embedUrl:e("map.embedUrl"),addressLine1:e("address.line1"),addressLine2:e("address.line2")})}),r.jsx("div",{className:"mb-16",children:r.jsx(t6,{title:e("form.title")||"Une question ? Écrivez-nous.",successMessage:e("form.successMessage")})}),r.jsx(a6,{title:e("team.title")||"Rencontrez l'équipe",subtitle:e("team.subtitle"),membersJson:e("team.members"),fallbackImage:la})]})})},p6=({lightMode:n=!1})=>{const{i18n:e}=Re(),a=e.language?.startsWith("en")?"fr":"en";function i(){e.changeLanguage(a)}return r.jsx("button",{type:"button",onClick:i,className:"w-9 h-9 rounded-full text-xs font-bold uppercase tracking-wide transition-colors flex items-center justify-center shrink-0 "+(n?"border border-neutral-300 text-black hover:bg-black/5":"border border-white/20 text-white hover:bg-white/10"),children:a.toUpperCase()})};function ta(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function J1(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}var Pn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Er={duration:.5,overwrite:!1,delay:0},tp,Jt,xt,is=1e8,ct=1/is,Jh=Math.PI*2,g6=Jh/4,x6=0,W1=Math.sqrt,y6=Math.cos,b6=Math.sin,It=function(e){return typeof e=="string"},Et=function(e){return typeof e=="function"},ca=function(e){return typeof e=="number"},np=function(e){return typeof e>"u"},Ms=function(e){return typeof e=="object"},jn=function(e){return e!==!1},sp=function(){return typeof window<"u"},Gc=function(e){return Et(e)||It(e)},e2=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},nn=Array.isArray,v6=/random\([^)]+\)/g,j6=/,\s*/g,Ib=/(?:-?\.?\d|\.)+/gi,t2=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,wr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,yh=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,n2=/[+-]=-?[.\d]+/,w6=/[^,'"\[\]\s]+/gi,N6=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,wt,Cs,Wh,ap,Bn={},mu={},s2,a2=function(e){return(mu=kr(e,Bn))&&Cn},ip=function(e,a){return console.warn("Invalid property",e,"set to",a,"Missing plugin? gsap.registerPlugin()")},to=function(e,a){return!a&&console.warn(e)},i2=function(e,a){return e&&(Bn[e]=a)&&mu&&(mu[e]=a)||Bn},no=function(){return 0},S6={suppressEvents:!0,isStart:!0,kill:!1},$c={suppressEvents:!0,kill:!1},C6={suppressEvents:!0},rp={},Ha=[],em={},r2,Dn={},bh={},Gb=30,Xc=[],lp="",op=function(e){var a=e[0],i,l;if(Ms(a)||Et(a)||(e=[e]),!(i=(a._gsap||{}).harness)){for(l=Xc.length;l--&&!Xc[l].targetTest(a););i=Xc[l]}for(l=e.length;l--;)e[l]&&(e[l]._gsap||(e[l]._gsap=new A2(e[l],i)))||e.splice(l,1);return e},wi=function(e){return e._gsap||op(rs(e))[0]._gsap},l2=function(e,a,i){return(i=e[a])&&Et(i)?e[a]():np(i)&&e.getAttribute&&e.getAttribute(a)||i}
vendor: 3,255 bytes, line 141
141,wn=function(e,a){return(e=e.split(",")).forEach(a)||e},At=function(e){return Math.round(e*1e5)/1e5||0},jt=function(e){return Math.round(e*1e7)/1e7||0},Sr=function(e,a){var i=a.charAt(0),l=parseFloat(a.substr(2));return e=parseFloat(e),i==="+"?e+l:i==="-"?e-l:i==="*"?e*l:e/l},_6=function(e,a){for(var i=a.length,l=0;e.indexOf(a[l])<0&&++l<i;);return l<i},pu=function(){var e=Ha.length,a=Ha.slice(0),i,l;for(em={},Ha.length=0,i=0;i<e;i++)l=a[i],l&&l._lazy&&(l.render(l._lazy[0],l._lazy[1],!0)._lazy=0)},cp=function(e){return!!(e._initted||e._startAt||e.add)},o2=function(e,a,i,l){Ha.length&&!Jt&&pu(),e.render(a,i,!!(Jt&&a<0&&cp(e))),Ha.length&&!Jt&&pu()},c2=function(e){var a=parseFloat(e);return(a||a===0)&&(e+"").match(w6).length<2?a:It(e)?e.trim():e},u2=function(e){return e},Fn=function(e,a){for(var i in a)i in e||(e[i]=a[i]);return e},E6=function(e){return function(a,i){for(var l in i)l in a||l==="duration"&&e||l==="ease"||(a[l]=i[l])}},kr=function(e,a){for(var i in a)e[i]=a[i];return e},Qb=function n(e,a){for(var i in a)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(e[i]=Ms(a[i])?n(e[i]||(e[i]={}),a[i]):a[i]);return e},gu=function(e,a){var i={},l;for(l in e)l in a||(i[l]=e[l]);return i},Yl=function(e){var a=e.parent||wt,i=e.keyframes?E6(nn(e.keyframes)):Fn;if(jn(e.inherit))for(;a;)i(e,a.vars.defaults),a=a.parent||a._dp;return e},k6=function(e,a){for(var i=e.length,l=i===a.length;l&&i--&&e[i]===a[i];);return i<0},d2=function(e,a,i,l,c){var d=e[l],f;if(c)for(f=a[c];d&&d[c]>f;)d=d._prev;return d?(a._next=d._next,d._next=a):(a._next=e[i],e[i]=a),a._next?a._next._prev=a:e[l]=a,a._prev=d,a.parent=a._dp=e,a},Du=function(e,a,i,l){i===void 0&&(i="_first"),l===void 0&&(l="_last");var c=a._prev,d=a._next;c?c._next=d:e[i]===a&&(e[i]=d),d?d._prev=c:e[l]===a&&(e[l]=c),a._next=a._prev=a.parent=null},Ga=function(e,a){e.parent&&(!a||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Ni=function(e,a){if(e&&(!a||a._end>e._dur||a._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},T6=function(e){for(var a=e.parent;a&&a.parent;)a._dirty=1,a.totalDuration(),a=a.parent;return e},tm=function(e,a,i,l){return e._startAt&&(Jt?e._startAt.revert($c):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(a,!0,l))},A6=function n(e){return!e||e._ts&&n(e.parent)},Kb=function(e){return e._repeat?Tr(e._tTime,e=e.duration()+e._rDelay)*e:0},Tr=function(e,a){var i=Math.floor(e=jt(e/a));return e&&i===e?i-1:i},xu=function(e,a){return(e-a._start)*a._ts+(a._ts>=0?0:a._dirty?a.totalDuration():a._tDur)},Lu=function(e){return e._end=jt(e._start+(e._tDur/Math.abs(e._ts||e._rts||ct)||0))},zu=function(e,a){var i=e._dp;return i&&i.smoothChildTiming&&e._ts&&(e._start=jt(i._time-(e._ts>0?a/e._ts:((e._dirty?e.totalDuration():e._tDur)-a)/-e._ts)),Lu(e),i._dirty||Ni(i,e)),e},f2=function(e,a){var i;if((a._time||!a._dur&&a._initted||a._start<e._time&&(a._dur||!a.add))&&(i=xu(e.rawTime(),a),(!a._dur||yo(0,a.totalDuration(),i)-a._tTime>ct)&&a.render(i,!0)),Ni(e,a)._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=-ct}},_s=function(e,a,i,l){return a.parent&&Ga(a),a._start=jt((ca(i)?i:i||e!==wt?ss(e,i,a):e._time)+a._delay),a._end=jt(
vendor: 1,972 bytes, line 141
141a._start+(a.totalDuration()/Math.abs(a.timeScale())||0)),d2(e,a,"_first","_last",e._sort?"_start":0),nm(a)||(e._recent=a),l||f2(e,a),e._ts<0&&zu(e,e._tTime),e},h2=function(e,a){return(Bn.ScrollTrigger||ip("scrollTrigger",a))&&Bn.ScrollTrigger.create(a,e)},m2=function(e,a,i,l,c){if(dp(e,a,c),!e._initted)return 1;if(!i&&e._pt&&!Jt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&r2!==zn.frame)return Ha.push(e),e._lazy=[c,l],1},M6=function n(e){var a=e.parent;return a&&a._ts&&a._initted&&!a._lock&&(a.rawTime()<0||n(a))},nm=function(e){var a=e.data;return a==="isFromStart"||a==="isStart"},O6=function(e,a,i,l){var c=e.ratio,d=a<0||!a&&(!e._start&&M6(e)&&!(!e._initted&&nm(e))||(e._ts<0||e._dp._ts<0)&&!nm(e))?0:1,f=e._rDelay,h=0,m,g,y;if(f&&e._repeat&&(h=yo(0,e._tDur,a),g=Tr(h,f),e._yoyo&&g&1&&(d=1-d),g!==Tr(e._tTime,f)&&(c=1-d,e.vars.repeatRefresh&&e._initted&&e.invalidate())),d!==c||Jt||l||e._zTime===ct||!a&&e._zTime){if(!e._initted&&m2(e,a,l,i,h))return;for(y=e._zTime,e._zTime=a||(i?ct:0),i||(i=a&&!y),e.ratio=d,e._from&&(d=1-d),e._time=0,e._tTime=h,m=e._pt;m;)m.r(d,m.d),m=m._next;a<0&&tm(e,a,i,!0),e._onUpdate&&!i&&Un(e,"onUpdate"),h&&e._repeat&&!i&&e.parent&&Un(e,"onRepeat"),(a>=e._tDur||a<0)&&e.ratio===d&&(d&&Ga(e,1),!i&&!Jt&&(Un(e,d?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=a)},R6=function(e,a,i){var l;if(i>a)for(l=e._first;l&&l._start<=i;){if(l.data==="isPause"&&l._start>a)return l;l=l._next}else for(l=e._last;l&&l._start>=i;){if(l.data==="isPause"&&l._start<a)return l;l=l._prev}},Ar=function(e,a,i,l){var c=e._repeat,d=jt(a)||0,f=e._tTime/e._tDur;return f&&!l&&(e._time*=d/e._dur),e._dur=d,e._tDur=c?c<0?1e10:jt(d*(c+1)+e._rDelay*c):d,f>0&&!l&&zu(e,e._tTime=e._tDur*f),e.parent&&Lu(e),i||Ni(e.parent,e),e},Yb=function(e){return e instanceof un?Ni(e):Ar(e,e._dur)},D6={_start:0,endTime:no,totalDuration:no},ss=function n(e,a,i){var l=e.labels,c=e._recent||D6,d=e.duration()>=is?c.endTime(!1):e._dur,f,h,m;
vendor: 5,146 bytes, line 141
141return It(a)&&(isNaN(a)||a in l)?(h=a.charAt(0),m=a.substr(-1)==="%",f=a.indexOf("="),h==="<"||h===">"?(f>=0&&(a=a.replace(/=/,"")),(h==="<"?c._start:c.endTime(c._repeat>=0))+(parseFloat(a.substr(1))||0)*(m?(f<0?c:i).totalDuration()/100:1)):f<0?(a in l||(l[a]=d),l[a]):(h=parseFloat(a.charAt(f-1)+a.substr(f+1)),m&&i&&(h=h/100*(nn(i)?i[0]:i).totalDuration()),f>1?n(e,a.substr(0,f-1),i)+h:d+h)):a==null?d:+a},$l=function(e,a,i){var l=ca(a[1]),c=(l?2:1)+(e<2?0:1),d=a[c],f,h;if(l&&(d.duration=a[1]),d.parent=i,e){for(f=d,h=i;h&&!("immediateRender"in f);)f=h.vars.defaults||{},h=jn(h.vars.inherit)&&h.parent;d.immediateRender=jn(f.immediateRender),e<2?d.runBackwards=1:d.startAt=a[c-1]}return new zt(a[0],d,a[c+1])},$a=function(e,a){return e||e===0?a(e):a},yo=function(e,a,i){return i<e?e:i>a?a:i},tn=function(e,a){return!It(e)||!(a=N6.exec(e))?"":a[1]},L6=function(e,a,i){return $a(i,function(l){return yo(e,a,l)})},sm=[].slice,p2=function(e,a){return e&&Ms(e)&&"length"in e&&(!a&&!e.length||e.length-1 in e&&Ms(e[0]))&&!e.nodeType&&e!==Cs},z6=function(e,a,i){return i===void 0&&(i=[]),e.forEach(function(l){var c;return It(l)&&!a||p2(l,1)?(c=i).push.apply(c,rs(l)):i.push(l)})||i},rs=function(e,a,i){return xt&&!a&&xt.selector?xt.selector(e):It(e)&&!i&&(Wh||!Mr())?sm.call((a||ap).querySelectorAll(e),0):nn(e)?z6(e,i):p2(e)?sm.call(e,0):e?[e]:[]},am=function(e){return e=rs(e)[0]||to("Invalid scope")||{},function(a){var i=e.current||e.nativeElement||e;return rs(a,i.querySelectorAll?i:i===e?to("Invalid scope")||ap.createElement("div"):e)}},g2=function(e){return e.sort(function(){return .5-Math.random()})},x2=function(e){if(Et(e))return e;var a=Ms(e)?e:{each:e},i=Si(a.ease),l=a.from||0,c=parseFloat(a.base)||0,d={},f=l>0&&l<1,h=isNaN(l)||f,m=a.axis,g=l,y=l;return It(l)?g=y={center:.5,edges:.5,end:1}[l]||0:!f&&h&&(g=l[0],y=l[1]),function(b,v,N){var w=(N||a).length,_=d[w],k,E,C,A,M,H,z,P,I;if(!_){if(I=a.grid==="auto"?0:(a.grid||[1,is])[1],!I){for(z=-is;z<(z=N[I++].getBoundingClientRect().left)&&I<w;);I<w&&I--}for(_=d[w]=[],k=h?Math.min(I,w)*g-.5:l%I,E=I===is?0:h?w*y/I-.5:l/I|0,z=0,P=is,H=0;H<w;H++)C=H%I-k,A=E-(H/I|0),_[H]=M=m?Math.abs(m==="y"?A:C):W1(C*C+A*A),M>z&&(z=M),M<P&&(P=M);l==="random"&&g2(_),_.max=z-P,_.min=P,_.v=w=(parseFloat(a.amount)||parseFloat(a.each)*(I>w?w-1:m?m==="y"?w/I:I:Math.max(I,w/I))||0)*(l==="edges"?-1:1),_.b=w<0?c-w:c,_.u=tn(a.amount||a.each)||0,i=i&&w<0?E2(i):i}return w=(_[b]-_.min)/_.max||0,jt(_.b+(i?i(w):w)*_.v)+_.u}},im=function(e){var a=Math.pow(10,((e+"").split(".")[1]||"").length);return function(i){var l=jt(Math.round(parseFloat(i)/e)*e*a);return(l-l%1)/a+(ca(i)?0:tn(i))}},y2=function(e,a){var i=nn(e),l,c;return!i&&Ms(e)&&(l=i=e.radius||is,e.values?(e=rs(e.values),(c=!ca(e[0]))&&(l*=l)):e=im(e.increment)),$a(a,i?Et(e)?function(d){return c=e(d),Math.abs(c-d)<=l?c:d}:function(d){for(var f=parseFloat(c?d.x:d),h=parseFloat(c?d.y:0),m=is,g=0,y=e.length,b,v;y--;)c?(b=e[y].x-f,v=e[y].y-h,b=b*b+v*v):b=Math.abs(e[y]-f),b<m&&(m=b,g=y);return g=!l||m<=l?e[g]:d,c||g===d||ca(d)?g:g+tn(d)}:im(e))},b2=function(e,a,i,l){return $a(nn(e)?!a:i===!0?!!(i=0):!l,function(){return nn(e)?e[~~(Math.random()*e.length)]:(i=i||1e-5)&&(l=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((e-i/2+Math.random()*(a-e+i*.99))/i)*i*l)/l})},U6=function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return function(l){return a.reduce(function(c,d){return d(c)},l)}},q6=function(e,a){return function(i){return e(parseFloat(i))+(a||tn(i))}},P6=function(e,a,i){return j2(e,a,0,1,i)},v2=function(e,a,i){return $a(i,function(l){return e[~~a(l)]})},B6=function n(e,a,i){var l=a-e;return nn(e)?v2(e,n(0,e.length),a):$a(i,function(c){return(l+(c-e)%l)%l+e})},F6=function n(e,a,i){var l=a-e,c=l*2;return nn(e)?v2(e,n(0,e.length-1),a):$a(i,function(d){return d=(c+(d-e)%c)%c||0,e+(d>l?c-d:d)})},so=function(e){return e.replace(v6,function(a){var i=a.indexOf("[")+1,l=a.substring(i||7,i?a.indexOf("]"):a.length-1).split(j6);return b2(i?l:+l[0],i?0:+l[1],+l[2]||1e-5)})},j2=function(e,a,i,l,c){var d=a-e,f=l-i;return $a(c,function(h){return i+((h-e)/d*f||0)})},H6=function n(e,a,i,l){var c=isNaN(e+a)?0:function(v){return(1-v)*e+v*a};if(!c){var d=It(e),f={},h,m,g,y,b;if(i===!0&&(l=1)&&(i=null),d)e={p:e},a={p:a};else if(nn(e)&&!nn(a)){for(g=[],y=e.length,b=y-2,m=1;m<y;m++)g.push(n(e[m-1],e[m]));y--,c=function(N){N*=y;var w=Math.min(b,~~N);return g[w](N-w)},i=a}else l||(e=kr(nn(e)?[]:{},e));if(!g){for(h in a)up.call(f,e,h,"get",a[h]);c=function(N){return mp(N,f)||(d?e.p:e)}}}return $a(i,c)},$b=function(e,a,i){var l=e.labels,c=is,d,f,h;for(d in l)f=l[d]-a,f<0==!!i&&f&&c>(f=Math.abs(f))&&(h=d,c=f);return h},Un=function(e,a,i){var l=e.vars,c=l[a],d=xt,f=e._ctx,h,m,g;if(c)return h=l[a+"Params"],m=l.callbackScope||e,i&&Ha.length&&pu(),f&&(xt=f),g=h?c.apply(m,h):c.call(m),xt=d,g},Hl=function(e){return Ga(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Jt),e.progress()<1&&Un(e,"onInterrupt"),e},Nr,w2=[],N2=function(e){if(e)if(e=!e.name&&e.default||e,sp()||e.headless){var a=e.name,i=Et(e),l=a&&!i&&e.init?function(){this._props=[]}:e,c={init:no,render:mp,add:up,kill:aA,modifier:sA,rawVars:0}
vendor: 7,009 bytes, line 141
141,d={targetTest:0,get:0,getSetter:hp,aliases:{},register:0};if(Mr(),e!==l){if(Dn[a])return;Fn(l,Fn(gu(e,c),d)),kr(l.prototype,kr(c,gu(e,d))),Dn[l.prop=a]=l,e.targetTest&&(Xc.push(l),rp[a]=1),a=(a==="css"?"CSS":a.charAt(0).toUpperCase()+a.substr(1))+"Plugin"}i2(a,l),e.register&&e.register(Cn,l,Nn)}else w2.push(e)},ot=255,Vl={aqua:[0,ot,ot],lime:[0,ot,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ot],navy:[0,0,128],white:[ot,ot,ot],olive:[128,128,0],yellow:[ot,ot,0],orange:[ot,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ot,0,0],pink:[ot,192,203],cyan:[0,ot,ot],transparent:[ot,ot,ot,0]},vh=function(e,a,i){return e+=e<0?1:e>1?-1:0,(e*6<1?a+(i-a)*e*6:e<.5?i:e*3<2?a+(i-a)*(2/3-e)*6:a)*ot+.5|0},S2=function(e,a,i){var l=e?ca(e)?[e>>16,e>>8&ot,e&ot]:0:Vl.black,c,d,f,h,m,g,y,b,v,N;if(!l){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Vl[e])l=Vl[e];else if(e.charAt(0)==="#"){if(e.length<6&&(c=e.charAt(1),d=e.charAt(2),f=e.charAt(3),e="#"+c+c+d+d+f+f+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return l=parseInt(e.substr(1,6),16),[l>>16,l>>8&ot,l&ot,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),l=[e>>16,e>>8&ot,e&ot]}else if(e.substr(0,3)==="hsl"){if(l=N=e.match(Ib),!a)h=+l[0]%360/360,m=+l[1]/100,g=+l[2]/100,d=g<=.5?g*(m+1):g+m-g*m,c=g*2-d,l.length>3&&(l[3]*=1),l[0]=vh(h+1/3,c,d),l[1]=vh(h,c,d),l[2]=vh(h-1/3,c,d);else if(~e.indexOf("="))return l=e.match(t2),i&&l.length<4&&(l[3]=1),l}else l=e.match(Ib)||Vl.transparent;l=l.map(Number)}return a&&!N&&(c=l[0]/ot,d=l[1]/ot,f=l[2]/ot,y=Math.max(c,d,f),b=Math.min(c,d,f),g=(y+b)/2,y===b?h=m=0:(v=y-b,m=g>.5?v/(2-y-b):v/(y+b),h=y===c?(d-f)/v+(d<f?6:0):y===d?(f-c)/v+2:(c-d)/v+4,h*=60),l[0]=~~(h+.5),l[1]=~~(m*100+.5),l[2]=~~(g*100+.5)),i&&l.length<4&&(l[3]=1),l},C2=function(e){var a=[],i=[],l=-1;return e.split(Va).forEach(function(c){var d=c.match(wr)||[];a.push.apply(a,d),i.push(l+=d.length+1)}),a.c=i,a},Xb=function(e,a,i){var l="",c=(e+l).match(Va),d=a?"hsla(":"rgba(",f=0,h,m,g,y;if(!c)return e;if(c=c.map(function(b){return(b=S2(b,a,1))&&d+(a?b[0]+","+b[1]+"%,"+b[2]+"%,"+b[3]:b.join(","))+")"}),i&&(g=C2(e),h=i.c,h.join(l)!==g.c.join(l)))for(m=e.replace(Va,"1").split(wr),y=m.length-1;f<y;f++)l+=m[f]+(~h.indexOf(f)?c.shift()||d+"0,0,0,0)":(g.length?g:c.length?c:i).shift());if(!m)for(m=e.split(Va),y=m.length-1;f<y;f++)l+=m[f]+c[f];return l+m[y]},Va=(function(){var n="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in Vl)n+="|"+e+"\\b";return new RegExp(n+")","gi")})(),V6=/hsl[a]?\(/,_2=function(e){var a=e.join(" "),i;if(Va.lastIndex=0,Va.test(a))return i=V6.test(a),e[1]=Xb(e[1],i),e[0]=Xb(e[0],i,C2(e[1])),!0},ao,zn=(function(){var n=Date.now,e=500,a=33,i=n(),l=i,c=1e3/240,d=c,f=[],h,m,g,y,b,v,N=function w(_){var k=n()-l,E=_===!0,C,A,M,H;if((k>e||k<0)&&(i+=k-a),l+=k,M=l-i,C=M-d,(C>0||E)&&(H=++y.frame,b=M-y.time*1e3,y.time=M=M/1e3,d+=C+(C>=c?4:c-C),A=1),E||(h=m(w)),A)for(v=0;v<f.length;v++)f[v](M,b,H,_)};return y={time:0,frame:0,tick:function(){N(!0)},deltaRatio:function(_){return b/(1e3/(_||60))},wake:function(){s2&&(!Wh&&sp()&&(Cs=Wh=window,ap=Cs.document||{},Bn.gsap=Cn,(Cs.gsapVersions||(Cs.gsapVersions=[])).push(Cn.version),a2(mu||Cs.GreenSockGlobals||!Cs.gsap&&Cs||{}),w2.forEach(N2)),g=typeof requestAnimationFrame<"u"&&requestAnimationFrame,h&&y.sleep(),m=g||function(_){return setTimeout(_,d-y.time*1e3+1|0)},ao=1,N(2))},sleep:function(){(g?cancelAnimationFrame:clearTimeout)(h),ao=0,m=no},lagSmoothing:function(_,k){e=_||1/0,a=Math.min(k||33,e)},fps:function(_){c=1e3/(_||240),d=y.time*1e3+c},add:function(_,k,E){var C=k?function(A,M,H,z){_(A,M,H,z),y.remove(C)}:_;return y.remove(_),f[E?"unshift":"push"](C),Mr(),C},remove:function(_,k){~(k=f.indexOf(_))&&f.splice(k,1)&&v>=k&&v--},_listeners:f},y})(),Mr=function(){return!ao&&zn.wake()},Ge={},I6=/^[\d.\-M][\d.\-,\s]/,G6=/["']/g,Q6=function(e){for(var a={},i=e.substr(1,e.length-3).split(":"),l=i[0],c=1,d=i.length,f,h,m;c<d;c++)h=i[c],f=c!==d-1?h.lastIndexOf(","):h.length,m=h.substr(0,f),a[l]=isNaN(m)?m.replace(G6,"").trim():+m,l=h.substr(f+1).trim();return a},K6=function(e){var a=e.indexOf("(")+1,i=e.indexOf(")"),l=e.indexOf("(",a);return e.substring(a,~l&&l<i?e.indexOf(")",i+1):i)},Y6=function(e){var a=(e+"").split("("),i=Ge[a[0]];return i&&a.length>1&&i.config?i.config.apply(null,~e.indexOf("{")?[Q6(a[1])]:K6(e).split(",").map(c2)):Ge._CE&&I6.test(e)?Ge._CE("",e):i},E2=function(e){return function(a){return 1-e(1-a)}},k2=function n(e,a){for(var i=e._first,l;i;)i instanceof un?n(i,a):i.vars.yoyoEase&&(!i._yoyo||!i._repeat)&&i._yoyo!==a&&(i.timeline?n(i.timeline,a):(l=i._ease,i._ease=i._yEase,i._yEase=l,i._yoyo=a)),i=i._next},Si=function(e,a){return e&&(Et(e)?e:Ge[e]||Y6(e))||a},Mi=function(e,a,i,l){i===void 0&&(i=function(h){return 1-a(1-h)}),l===void 0&&(l=function(h){return h<.5?a(h*2)/2:1-a((1-h)*2)/2});var c={easeIn:a,easeOut:i,easeInOut:l},d;return wn(e,function(f){Ge[f]=Bn[f]=c,Ge[d=f.toLowerCase()]=i;for(var h in c)Ge[d+(h==="easeIn"?".in":h==="easeOut"?".out":".inOut")]=Ge[f+"."+h]=c[h]}),c},T2=function(e){return function(a){return a<.5?(1-e(1-a*2))/2:.5+e((a-.5)*2)/2}},jh=function n(e,a,i){var l=a>=1?a:1,c=(i||(e?.3:.45))/(a<1?a:1),d=c/Jh*(Math.asin(1/l)||0),f=function(g){return g===1?1:l*Math.pow(2,-10*g)*b6((g-d)*c)+1},h=e==="out"?f:e==="in"?function(m){return 1-f(1-m)}:T2(f);return c=Jh/c,h.config=function(m,g){return n(e,m,g)},h},wh=function n(e,a){a===void 0&&(a=1.70158);var i=function(d){return d?--d*d*((a+1)*d+a)+1:0},l=e==="out"?i:e==="in"?function(c){return 1-i(1-c)}:T2(i);return l.config=function(c){return n(e,c)},l};wn("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var a=e<5?e+1:e;Mi(n+",Power"+(a-1),e?function(i){return Math.pow(i,a)}:function(i){return i},function(i){return 1-Math.pow(1-i,a)},function(i){return i<.5?Math.pow(i*2,a)/2:1-Math.pow((1-i)*2,a)/2})});Ge.Linear.easeNone=Ge.none=Ge.Linear.easeIn;Mi("Elastic",jh("in"),jh("out"),jh());(function(n,e){var a=1/e,i=2*a,l=2.5*a,c=function(f){return f<a?n*f*f:f<i?n*Math.pow(f-1.5/e,2)+.75:f<l?n*(f-=2.25/e)*f+.9375:n*Math.pow(f-2.625/e,2)+.984375};Mi("Bounce",function(d){return 1-c(1-d)},c)})(7.5625,2.75);Mi("Expo",function(n){return Math.pow(2,10*(n-1))*n+n*n*n*n*n*n*(1-n)});Mi("Circ",function(n){return-(W1(1-n*n)-1)});Mi("Sine",function(n){return n===1?1:-y6(n*g6)+1});Mi("Back",wh("in"),wh("out"),wh());Ge.SteppedEase=Ge.steps=Bn.SteppedEase={config:function(e,a){e===void 0&&(e=1);var i=1/e,l=e+(a?0:1),c=a?1:0,d=1-ct;return function(f){return((l*yo(0,d,f)|0)+c)*i}}};Er.ease=Ge["quad.out"];wn("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(n){return lp+=n+","+n+"Params,"});var A2=function(e,a){this.id=x6++,e._gsap=this,this.target=e,this.harness=a,this.get=a?a.get:l2,this.set=a?a.getSetter:hp},io=(function(){function n(a){this.vars=a,this._delay=+a.delay||0,(this._repeat=a.repeat===1/0?-2:a.repeat||0)&&(this._rDelay=a.repeatDelay||0,this._yoyo=!!a.yoyo||!!a.yoyoEase),this._ts=1,Ar(this,+
vendor: 4,470 bytes, line 141
141a.duration,1,1),this.data=a.data,xt&&(this._ctx=xt,xt.data.push(this)),ao||zn.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,Ar(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(i,l){if(Mr(),!arguments.length)return this._tTime;var c=this._dp;if(c&&c.smoothChildTiming&&this._ts){for(zu(this,i),!c._dp||c.parent||f2(c,this);c&&c.parent;)c.parent._time!==c._start+(c._ts>=0?c._tTime/c._ts:(c.totalDuration()-c._tTime)/-c._ts)&&c.totalTime(c._tTime,!0),c=c.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&_s(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!l||this._initted&&Math.abs(this._zTime)===ct||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),o2(this,i,l)),this},e.time=function(i,l){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+Kb(this))%(this._dur+this._rDelay)||(i?this._dur:0),l):this._time},e.totalProgress=function(i,l){return arguments.length?this.totalTime(this.totalDuration()*i,l):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(i,l){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+Kb(this),l):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(i,l){var c=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*c,l):this._repeat?Tr(this._tTime,c)+1:1},e.timeScale=function(i,l){if(!arguments.length)return this._rts===-ct?0:this._rts;if(this._rts===i)return this;var c=this.parent&&this._ts?xu(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-ct?0:this._rts,this.totalTime(yo(-Math.abs(this._delay),this.totalDuration(),c),l!==!1),Lu(this),T6(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):(Mr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ct&&(this._tTime-=ct)))),this):this._ps},e.startTime=function(i){if(arguments.length){this._start=jt(i);var l=this.parent||this._dp;return l&&(l._sort||!this.parent)&&_s(l,this,this._start-this._delay),this}return this._start},e.endTime=function(i){return this._start+(jn(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(i){var l=this.parent||this._dp;return l?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?xu(l.rawTime(i),this):this._tTime:this._tTime},e.revert=function(i){i===void 0&&(i=C6);var l=Jt;return Jt=i,cp(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),Jt=l,this},e.globalTime=function(i){for(var l=this,c=arguments.length?i:l.rawTime();l;)c=l._start+c/(Math.abs(l._ts)||1),l=l._dp;return!this.parent&&this._sat?this._sat.globalTime(i):c},e.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,Yb(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(i){if(arguments.length){var l=this._time;return this._rDelay=i,Yb(this),l?this.time(l):this}return this._rDelay},e.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},e.seek=function(i,l){return this.totalTime(ss(this,i),jn(l))},e.restart=function(i,l){return this.play().totalTime(i?-this._delay:0,jn(l)),this._dur||(this._zTime=-ct),this},e.play=function(i,l){return i!=null&&this.seek(i,l),this.reversed(!1).paused(!1)},e.reverse=function(i,l){return i!=null&&this.seek(i||this.totalDuration(),l),this.reversed(!0).paused(!1)},e.pause=function(i,l){return i!=null&&this.seek(i,l),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?-ct:0)),this):this._rts<0}
vendor: 1,256 bytes, line 141
141,e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ct,this},e.isActive=function(){var i=this.parent||this._dp,l=this._start,c;return!!(!i||this._ts&&this._initted&&i.isActive()&&(c=i.rawTime(!0))>=l&&c<this.endTime(!0)-ct)},e.eventCallback=function(i,l,c){var d=this.vars;return arguments.length>1?(l?(d[i]=l,c&&(d[i+"Params"]=c),i==="onUpdate"&&(this._onUpdate=l)):delete d[i],this):d[i]},e.then=function(i){var l=this,c=l._prom;return new Promise(function(d){var f=Et(i)?i:u2,h=function(){var g=l.then;l.then=null,c&&c(),Et(f)&&(f=f(l))&&(f.then||f===l)&&(l.then=g),d(f),l.then=g};l._initted&&l.totalProgress()===1&&l._ts>=0||!l._tTime&&l._ts<0?h():l._prom=h})},e.kill=function(){Hl(this)},n})();Fn(io.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:-ct,_prom:0,_ps:!1,_rts:1});var un=(function(n){J1(e,n);function e(i,l){var c;return i===void 0&&(i={}),c=n.call(this,i)||this,c.labels={},c.smoothChildTiming=!!i.smoothChildTiming,c.autoRemoveChildren=!!i.autoRemoveChildren,c._sort=jn(i.sortChildren),wt&&_s(i.parent||wt,ta(c),l),i.reversed&&c.reverse(),i.paused&&c.paused(!0),i.scrollTrigger&&h2(ta(c),i.scrollTrigger),c}var a=e.prototype;
vendor: 9,087 bytes, line 141
141return a.to=function(l,c,d){return $l(0,arguments,this),this},a.from=function(l,c,d){return $l(1,arguments,this),this},a.fromTo=function(l,c,d,f){return $l(2,arguments,this),this},a.set=function(l,c,d){return c.duration=0,c.parent=this,Yl(c).repeatDelay||(c.repeat=0),c.immediateRender=!!c.immediateRender,new zt(l,c,ss(this,d),1),this},a.call=function(l,c,d){return _s(this,zt.delayedCall(0,l,c),d)},a.staggerTo=function(l,c,d,f,h,m,g){return d.duration=c,d.stagger=d.stagger||f,d.onComplete=m,d.onCompleteParams=g,d.parent=this,new zt(l,d,ss(this,h)),this},a.staggerFrom=function(l,c,d,f,h,m,g){return d.runBackwards=1,Yl(d).immediateRender=jn(d.immediateRender),this.staggerTo(l,c,d,f,h,m,g)},a.staggerFromTo=function(l,c,d,f,h,m,g,y){return f.startAt=d,Yl(f).immediateRender=jn(f.immediateRender),this.staggerTo(l,c,f,h,m,g,y)},a.render=function(l,c,d){var f=this._time,h=this._dirty?this.totalDuration():this._tDur,m=this._dur,g=l<=0?0:jt(l),y=this._zTime<0!=l<0&&(this._initted||!m),b,v,N,w,_,k,E,C,A,M,H,z;if(this!==wt&&g>h&&l>=0&&(g=h),g!==this._tTime||d||y){if(f!==this._time&&m&&(g+=this._time-f,l+=this._time-f),b=g,A=this._start,C=this._ts,k=!C,y&&(m||(f=this._zTime),(l||!c)&&(this._zTime=l)),this._repeat){if(H=this._yoyo,_=m+this._rDelay,this._repeat<-1&&l<0)return this.totalTime(_*100+l,c,d);if(b=jt(g%_),g===h?(w=this._repeat,b=m):(M=jt(g/_),w=~~M,w&&w===M&&(b=m,w--),b>m&&(b=m)),M=Tr(this._tTime,_),!f&&this._tTime&&M!==w&&this._tTime-M*_-this._dur<=0&&(M=w),H&&w&1&&(b=m-b,z=1),w!==M&&!this._lock){var P=H&&M&1,I=P===(H&&w&1);if(w<M&&(P=!P),f=P?0:g%m?m:g,this._lock=1,this.render(f||(z?0:jt(w*_)),c,!m)._lock=0,this._tTime=g,!c&&this.parent&&Un(this,"onRepeat"),this.vars.repeatRefresh&&!z&&(this.invalidate()._lock=1,M=w),f&&f!==this._time||k!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(m=this._dur,h=this._tDur,I&&(this._lock=2,f=P?m:-1e-4,this.render(f,!0),this.vars.repeatRefresh&&!z&&this.invalidate()),this._lock=0,!this._ts&&!k)return this;k2(this,z)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(E=R6(this,jt(f),jt(b)),E&&(g-=b-(b=E._start))),this._tTime=g,this._time=b,this._act=!C,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=l,f=0),!f&&g&&m&&!c&&!M&&(Un(this,"onStart"),this._tTime!==g))return this;if(b>=f&&l>=0)for(v=this._first;v;){if(N=v._next,(v._act||b>=v._start)&&v._ts&&E!==v){if(v.parent!==this)return this.render(l,c,d);if(v.render(v._ts>0?(b-v._start)*v._ts:(v._dirty?v.totalDuration():v._tDur)+(b-v._start)*v._ts,c,d),b!==this._time||!this._ts&&!k){E=0,N&&(g+=this._zTime=-ct);break}}v=N}else{v=this._last;for(var G=l<0?l:b;v;){if(N=v._prev,(v._act||G<=v._end)&&v._ts&&E!==v){if(v.parent!==this)return this.render(l,c,d);if(v.render(v._ts>0?(G-v._start)*v._ts:(v._dirty?v.totalDuration():v._tDur)+(G-v._start)*v._ts,c,d||Jt&&cp(v)),b!==this._time||!this._ts&&!k){E=0,N&&(g+=this._zTime=G?-ct:ct);break}}v=N}}if(E&&!c&&(this.pause(),E.render(b>=f?0:-ct)._zTime=b>=f?1:-1,this._ts))return this._start=A,Lu(this),this.render(l,c,d);this._onUpdate&&!c&&Un(this,"onUpdate",!0),(g===h&&this._tTime>=this.totalDuration()||!g&&f)&&(A===this._start||Math.abs(C)!==Math.abs(this._ts))&&(this._lock||((l||!m)&&(g===h&&this._ts>0||!g&&this._ts<0)&&Ga(this,1),!c&&!(l<0&&!f)&&(g||f||!h)&&(Un(this,g===h&&l>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(g<h&&this.timeScale()>0)&&this._prom())))}return this},a.add=function(l,c){var d=this;if(ca(c)||(c=ss(this,c,l)),!(l instanceof io)){if(nn(l))return l.forEach(function(f){return d.add(f,c)}),this;if(It(l))return this.addLabel(l,c);if(Et(l))l=zt.delayedCall(0,l);else return this}return this!==l?_s(this,l,c):this},a.getChildren=function(l,c,d,f){l===void 0&&(l=!0),c===void 0&&(c=!0),d===void 0&&(d=!0),f===void 0&&(f=-is);for(var h=[],m=this._first;m;)m._start>=f&&(m instanceof zt?c&&h.push(m):(d&&h.push(m),l&&h.push.apply(h,m.getChildren(!0,c,d)))),m=m._next;return h},a.getById=function(l){for(var c=this.getChildren(1,1,1),d=c.length;d--;)if(c[d].vars.id===l)return c[d]},a.remove=function(l){return It(l)?this.removeLabel(l):Et(l)?this.killTweensOf(l):(l.parent===this&&Du(this,l),l===this._recent&&(this._recent=this._last),Ni(this))},a.totalTime=function(l,c){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=jt(zn.time-(this._ts>0?l/this._ts:(this.totalDuration()-l)/-this._ts))),n.prototype.totalTime.call(this,l,c),this._forcing=0,this):this._tTime},a.addLabel=function(l,c){return this.labels[l]=ss(this,c),this},a.removeLabel=function(l){return delete this.labels[l],this},a.addPause=function(l,c,d){var f=zt.delayedCall(0,c||no,d);return f.data="isPause",this._hasPause=1,_s(this,f,ss(this,l))},a.removePause=function(l){var c=this._first;for(l=ss(this,l);c;)c._start===l&&c.data==="isPause"&&Ga(c),c=c._next},a.killTweensOf=function(l,c,d){for(var f=this.getTweensOf(l,d),h=f.length;h--;)Ua!==f[h]&&f[h].kill(l,c);return this},a.getTweensOf=function(l,c){for(var d=[],f=rs(l),h=this._first,m=ca(c),g;h;)h instanceof zt?_6(h._targets,f)&&(m?(!Ua||h._initted&&h._ts)&&h.globalTime(0)<=c&&h.globalTime(h.totalDuration())>c:!c||h.isActive())&&d.push(h):(g=h.getTweensOf(f,c)).length&&d.push.apply(d,g),h=h._next;return d},a.tweenTo=function(l,c){c=c||{};var d=this,f=ss(d,l),h=c,m=h.startAt,g=h.onStart,y=h.onStartParams,b=h.immediateRender,v,N=zt.to(d,Fn({ease:c.ease||"none",lazy:!1,immediateRender:!1,time:f,overwrite:"auto",duration:c.duration||Math.abs((f-(m&&"time"in m?m.time:d._time))/d.timeScale())||ct,onStart:function(){if(d.pause(),!v){var _=c.duration||Math.abs((f-(m&&"time"in m?m.time:d._time))/d.timeScale());N._dur!==_&&Ar(N,_,0,1).render(N._time,!0,!0),v=1}g&&g.apply(N,y||[])}},c));return b?N.render(0):N},a.tweenFromTo=function(l,c,d){return this.tweenTo(c,Fn({startAt:{time:ss(this,l)}},d))},a.recent=function(){return this._recent},a.nextLabel=function(l){return l===void 0&&(l=this._time),$b(this,ss(this,l))},a.previousLabel=function(l){return l===void 0&&(l=this._time),$b(this,ss(this,l),1)},a.currentLabel=function(l){return arguments.length?this.seek(l,!0):this.previousLabel(this._time+ct)},a.shiftChildren=function(l,c,d){d===void 0&&(d=0);var f=this._first,h=this.labels,m;for(l=jt(l);f;)f._start>=d&&(f._start+=l,f._end+=l),f=f._next;if(c)for(m in h)h[m]>=d&&(h[m]+=l);return Ni(this)},a.invalidate=function(l){var c=this._first;for(this._lock=0;c;)c.invalidate(l),c=c._next;return n.prototype.invalidate.call(this,l)},a.clear=function(l){l===void 0&&(l=!0);for(var c=this._first,d;c;)d=c._next,this.remove(c),c=d;return this._dp&&(this._time=this._tTime=this._pTime=0),l&&(this.labels={}),Ni(this)},a.totalDuration=function(l){var c=0,d=this,f=d._last,h=is,m,g,y;if(arguments.length)return d.timeScale((d._repeat<0?d.duration():d.totalDuration())/(d.reversed()?-l:l));if(d._dirty){for(y=d.parent;f;)m=f._prev,f._dirty&&f.totalDuration(),g=f._start,g>h&&d._sort&&f._ts&&!d._lock?(d._lock=1,_s(d,f,g-f._delay,1)._lock=0):h=g,g<0&&f._ts&&(c-=g,(!y&&!d._dp||y&&y.smoothChildTiming)&&(d._start+=jt(g/d._ts),d._time-=g,d._tTime-=g),d.shiftChildren(-g,!1,-1/0),h=0),f._end>c&&f._ts&&(c=f._end),f=m;Ar(d,d===wt&&d._time>c?d._time:c,1,1),d._dirty=0}return d._tDur},e.updateRoot=function(l){if(wt._ts&&(o2(wt,xu(l,wt)),r2=zn.frame),zn.frame>=Gb){Gb+=Pn.autoSleep||120;var c=wt._first;if((!c||!c._ts)&&Pn.autoSleep&&zn._listeners.length<2){for(;c&&!c._ts;)c=c._next;c||zn.sleep()}}},e})(io);Fn(un.prototype,{_lock:0,_hasPause:0,_forcing:0});var $6=function(e,a,i,l,c,d,f){var h=new Nn(this._pt,e,a,0,1,z2,null,c),m=0,g=0,y,b,v,N,w,_,k,E;for(h.b=i,h.e=l,i+="",l+="",(k=~l.indexOf("random("))&&(l=so(l)),d&&(E=[i,l],d(E,e,a),i=E[0],l=E[1]),b=i.match(yh)||[];y=yh.exec(l);)N=y[0],w=l.substring(m,y.index),v?v=(v+1)%5:w.substr(-5)==="rgba("&&(v=1),N!==b[g++]&&(_=parseFloat(b[g-1])||0,h._pt={_next:h._pt,p:w||g===1?w:",",s:_,c:N.charAt(1)==="="?Sr(_,N)-_:parseFloat(N)-_,m:v&&v<4?Math.round:0},m=yh.lastIndex);return h.c=m<l.length?l.substring(m,l.length):"",h.fp=f,(n2.test(l)||k)&&(h.e=0),this._pt=h,h},up=function(e,a,i,l,c,d,f,h,m,g){Et(l)&&(l=l(c||0,e,d));var y=e[a],b=i!=="get"?i:Et(y)?m?e[a.indexOf("set")||!Et(e["get"+a.substr(3)])?a:"get"+a.substr(3)](m):e[a]():y,v=Et(y)?m?eA:D2:fp,N;if(It(l)&&(~l.indexOf("random(")&&(l=so(l)),l.charAt(1)==="="&&(N=Sr(b,l)+(tn(b)||0),(N||N===0)&&(l=N))),!g||b!==l||rm)return!isNaN(b*l)&&l!==""?(N=new Nn(this._pt,e,a,+b||0,l-(b||0),typeof y=="boolean"?nA:L2,0,v),m&&(N.fp=m),f&&N.modifier(f,this,e),this._pt=N):(!y&&!(a in e)&&ip(a,l),$6.call(this,e,a,b,l,v,h||Pn.stringFilter,m))},X6=function(e,a,i,l,c){if(Et(e)&&(e=Xl(e,c,a,i,l)),!Ms(e)||e.style&&e.nodeType||nn(e)||e2(e))return It(e)?Xl(e,c,a,i,l):e;var d={},f;for(f in e)d[f]=Xl(e[f],c,a,i,l);return d},M2=function(e,a,i,l,c,d){var f,h,m,g;if(Dn[e]&&(f=new Dn[e]).init(c,f.rawVars?a[e]:X6(a[e],l,c,d,i),i,l,d)!==!1&&(i._pt=h=new Nn(i._pt,c,e,0,1,f.render,f,0,f.priority),i!==Nr))for(m=i._ptLookup[i._targets.indexOf(c)],g=f._props.length;g--;)m[f._props[g]]=h;return f},Ua,rm,dp=function n(e,a,i){var l=e.vars,c=l.ease,d=l.startAt,f=l.immediateRender,h=l.lazy,m=l.onUpdate,g
vendor: 5,070 bytes, line 141
141=l.runBackwards,y=l.yoyoEase,b=l.keyframes,v=l.autoRevert,N=e._dur,w=e._startAt,_=e._targets,k=e.parent,E=k&&k.data==="nested"?k.vars.targets:_,C=e._overwrite==="auto"&&!tp,A=e.timeline,M,H,z,P,I,G,ne,L,$,se,oe,R,U;if(A&&(!b||!c)&&(c="none"),e._ease=Si(c,Er.ease),e._yEase=y?E2(Si(y===!0?c:y,Er.ease)):0,y&&e._yoyo&&!e._repeat&&(y=e._yEase,e._yEase=e._ease,e._ease=y),e._from=!A&&!!l.runBackwards,!A||b&&!l.stagger){if(L=_[0]?wi(_[0]).harness:0,R=L&&l[L.prop],M=gu(l,rp),w&&(w._zTime<0&&w.progress(1),a<0&&g&&f&&!v?w.render(-1,!0):w.revert(g&&N?$c:S6),w._lazy=0),d){if(Ga(e._startAt=zt.set(_,Fn({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!w&&jn(h),startAt:null,delay:0,onUpdate:m&&function(){return Un(e,"onUpdate")},stagger:0},d))),e._startAt._dp=0,e._startAt._sat=e,a<0&&(Jt||!f&&!v)&&e._startAt.revert($c),f&&N&&a<=0&&i<=0){a&&(e._zTime=a);return}}else if(g&&N&&!w){if(a&&(f=!1),z=Fn({overwrite:!1,data:"isFromStart",lazy:f&&!w&&jn(h),immediateRender:f,stagger:0,parent:k},M),R&&(z[L.prop]=R),Ga(e._startAt=zt.set(_,z)),e._startAt._dp=0,e._startAt._sat=e,a<0&&(Jt?e._startAt.revert($c):e._startAt.render(-1,!0)),e._zTime=a,!f)n(e._startAt,ct,ct);else if(!a)return}for(e._pt=e._ptCache=0,h=N&&jn(h)||h&&!N,H=0;H<_.length;H++){if(I=_[H],ne=I._gsap||op(_)[H]._gsap,e._ptLookup[H]=se={},em[ne.id]&&Ha.length&&pu(),oe=E===_?H:E.indexOf(I),L&&($=new L).init(I,R||M,e,oe,E)!==!1&&(e._pt=P=new Nn(e._pt,I,$.name,0,1,$.render,$,0,$.priority),$._props.forEach(function(W){se[W]=P}),$.priority&&(G=1)),!L||R)for(z in M)Dn[z]&&($=M2(z,M,e,oe,I,E))?$.priority&&(G=1):se[z]=P=up.call(e,I,z,"get",M[z],oe,E,0,l.stringFilter);e._op&&e._op[H]&&e.kill(I,e._op[H]),C&&e._pt&&(Ua=e,wt.killTweensOf(I,se,e.globalTime(a)),U=!e.parent,Ua=0),e._pt&&h&&(em[ne.id]=1)}G&&U2(e),e._onInit&&e._onInit(e)}e._onUpdate=m,e._initted=(!e._op||e._pt)&&!U,b&&a<=0&&A.render(is,!0,!0)},Z6=function(e,a,i,l,c,d,f,h){var m=(e._pt&&e._ptCache||(e._ptCache={}))[a],g,y,b,v;if(!m)for(m=e._ptCache[a]=[],b=e._ptLookup,v=e._targets.length;v--;){if(g=b[v][a],g&&g.d&&g.d._pt)for(g=g.d._pt;g&&g.p!==a&&g.fp!==a;)g=g._next;if(!g)return rm=1,e.vars[a]="+=0",dp(e,f),rm=0,h?to(a+" not eligible for reset"):1;m.push(g)}for(v=m.length;v--;)y=m[v],g=y._pt||y,g.s=(l||l===0)&&!c?l:g.s+(l||0)+d*g.c,g.c=i-g.s,y.e&&(y.e=At(i)+tn(y.e)),y.b&&(y.b=g.s+tn(y.b))},J6=function(e,a){var i=e[0]?wi(e[0]).harness:0,l=i&&i.aliases,c,d,f,h;if(!l)return a;c=kr({},a);for(d in l)if(d in c)for(h=l[d].split(","),f=h.length;f--;)c[h[f]]=c[d];return c},W6=function(e,a,i,l){var c=a.ease||l||"power1.inOut",d,f;if(nn(a))f=i[e]||(i[e]=[]),a.forEach(function(h,m){return f.push({t:m/(a.length-1)*100,v:h,e:c})});else for(d in a)f=i[d]||(i[d]=[]),d==="ease"||f.push({t:parseFloat(e),v:a[d],e:c})},Xl=function(e,a,i,l,c){return Et(e)?e.call(a,i,l,c):It(e)&&~e.indexOf("random(")?so(e):e},O2=lp+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",R2={};wn(O2+",id,stagger,delay,duration,paused,scrollTrigger",function(n){return R2[n]=1});var zt=(function(n){J1(e,n);function e(i,l,c,d){var f;typeof l=="number"&&(c.duration=l,l=c,c=null),f=n.call(this,d?l:Yl(l))||this;var h=f.vars,m=h.duration,g=h.delay,y=h.immediateRender,b=h.stagger,v=h.overwrite,N=h.keyframes,w=h.defaults,_=h.scrollTrigger,k=h.yoyoEase,E=l.parent||wt,C=(nn(i)||e2(i)?ca(i[0]):"length"in l)?[i]:rs(i),A,M,H,z,P,I,G,ne;if(f._targets=C.length?op(C):to("GSAP target "+i+" not found. https://gsap.com",!Pn.nullTargetWarn)||[],f._ptLookup=[],f._overwrite=v,N||b||Gc(m)||Gc(g)){if(l=f.vars,A=f.timeline=new un({data:"nested",defaults:w||{},targets:E&&E.data==="nested"?E.vars.targets:C}),A.kill(),A.parent=A._dp=ta(f),A._start=0,b||Gc(m)||Gc(g)){if(z=C.length,G=b&&x2(b),Ms(b))for(P in b)~O2.indexOf(P)&&(ne||(ne={}),ne[P]=b[P]);for(M=0;M<z;M++)H=gu(l,R2),H.stagger=0,k&&(H.yoyoEase=k),ne&&kr(H,ne),I=C[M],H.duration=+Xl(m,ta(f),M,I,C),H.delay=(+Xl(g,ta(f),M,I,C)||0)-f._delay,!b&&z===1&&H.delay&&(f._delay=g=H.delay,f._start+=g,H.delay=0),A.to(I,H,G?G(M,I,C):0),A._ease=Ge.none;A.duration()?m=g=0:f.timeline=0}else if(N){Yl(Fn(A.vars.defaults,{ease:"none"})),A._ease=Si(N.ease||l.ease||"none");var L=0,$,se,oe;if(nn(N))N.forEach(function(R){return A.to(C,R,">")}),A.duration();else{H={};for(P in N)P==="ease"||P==="easeEach"||W6(P,N[P],H,N.easeEach);for(P in H)for($=H[P].sort(function(R,U){return R.t-U.t}),L=0,M=0;M<$.length;M++)se=$[M],oe={ease:se.e,duration:(se.t-(M?$[M-1].t:0))/100*m},oe[P]=se.v,A.to(C,oe,L),L+=oe.duration;A.duration()<m&&A.to({},{duration:m-A.duration()})}}m||f.duration(m=A.duration())}else f.timeline=0;return v===!0&&!tp&&(Ua=ta(f),wt.killTweensOf(C),Ua=0),_s(E,ta(f),c),l.reversed&&f.reverse(),l.paused&&f.paused(!0),(y||!m&&!N&&f._start===jt(E._time)&&jn(y)&&A6(ta(f))&&E.data!=="nested")&&(f._tTime=-ct,f.render(Math.max(0,-g)||0)),_&&h2(ta(f),_),f}var a=e.prototype;return a.render=function(l,c,d){var f=this._time,h=this._tDur,m=this._dur,g=l<0,y=l>h-ct&&!g?h:l<ct?0:l,b,v,N,w,_,k,E,C,A;if(!m)O6(this,l,c,d);else if(y!==this._tTime||!l||d||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==g||this._lazy){if
vendor: 25,786 bytes, line 141
141(b=y,C=this.timeline,this._repeat){if(w=m+this._rDelay,this._repeat<-1&&g)return this.totalTime(w*100+l,c,d);if(b=jt(y%w),y===h?(N=this._repeat,b=m):(_=jt(y/w),N=~~_,N&&N===_?(b=m,N--):b>m&&(b=m)),k=this._yoyo&&N&1,k&&(A=this._yEase,b=m-b),_=Tr(this._tTime,w),b===f&&!d&&this._initted&&N===_)return this._tTime=y,this;N!==_&&(C&&this._yEase&&k2(C,k),this.vars.repeatRefresh&&!k&&!this._lock&&b!==w&&this._initted&&(this._lock=d=1,this.render(jt(w*N),!0).invalidate()._lock=0))}if(!this._initted){if(m2(this,g?l:b,d,c,y))return this._tTime=0,this;if(f!==this._time&&!(d&&this.vars.repeatRefresh&&N!==_))return this;if(m!==this._dur)return this.render(l,c,d)}if(this._tTime=y,this._time=b,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=E=(A||this._ease)(b/m),this._from&&(this.ratio=E=1-E),!f&&y&&!c&&!_&&(Un(this,"onStart"),this._tTime!==y))return this;for(v=this._pt;v;)v.r(E,v.d),v=v._next;C&&C.render(l<0?l:C._dur*C._ease(b/this._dur),c,d)||this._startAt&&(this._zTime=l),this._onUpdate&&!c&&(g&&tm(this,l,c,d),Un(this,"onUpdate")),this._repeat&&N!==_&&this.vars.onRepeat&&!c&&this.parent&&Un(this,"onRepeat"),(y===this._tDur||!y)&&this._tTime===y&&(g&&!this._onUpdate&&tm(this,l,!0,!0),(l||!m)&&(y===this._tDur&&this._ts>0||!y&&this._ts<0)&&Ga(this,1),!c&&!(g&&!f)&&(y||f||k)&&(Un(this,y===h?"onComplete":"onReverseComplete",!0),this._prom&&!(y<h&&this.timeScale()>0)&&this._prom()))}return this},a.targets=function(){return this._targets},a.invalidate=function(l){return(!l||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(l),n.prototype.invalidate.call(this,l)},a.resetTo=function(l,c,d,f,h){ao||zn.wake(),this._ts||this.play();var m=Math.min(this._dur,(this._dp._time-this._start)*this._ts),g;return this._initted||dp(this,m),g=this._ease(m/this._dur),Z6(this,l,c,d,f,g,m,h)?this.resetTo(l,c,d,f,1):(zu(this,0),this.parent||d2(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},a.kill=function(l,c){if(c===void 0&&(c="all"),!l&&(!c||c==="all"))return this._lazy=this._pt=0,this.parent?Hl(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Jt),this;if(this.timeline){var d=this.timeline.totalDuration();return this.timeline.killTweensOf(l,c,Ua&&Ua.vars.overwrite!==!0)._first||Hl(this),this.parent&&d!==this.timeline.totalDuration()&&Ar(this,this._dur*this.timeline._tDur/d,0,1),this}var f=this._targets,h=l?rs(l):f,m=this._ptLookup,g=this._pt,y,b,v,N,w,_,k;if((!c||c==="all")&&k6(f,h))return c==="all"&&(this._pt=0),Hl(this);for(y=this._op=this._op||[],c!=="all"&&(It(c)&&(w={},wn(c,function(E){return w[E]=1}),c=w),c=J6(f,c)),k=f.length;k--;)if(~h.indexOf(f[k])){b=m[k],c==="all"?(y[k]=c,N=b,v={}):(v=y[k]=y[k]||{},N=c);for(w in N)_=b&&b[w],_&&((!("kill"in _.d)||_.d.kill(w)===!0)&&Du(this,_,"_pt"),delete b[w]),v!=="all"&&(v[w]=1)}return this._initted&&!this._pt&&g&&Hl(this),this},e.to=function(l,c){return new e(l,c,arguments[2])},e.from=function(l,c){return $l(1,arguments)},e.delayedCall=function(l,c,d,f){return new e(c,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:l,onComplete:c,onReverseComplete:c,onCompleteParams:d,onReverseCompleteParams:d,callbackScope:f})},e.fromTo=function(l,c,d){return $l(2,arguments)},e.set=function(l,c){return c.duration=0,c.repeatDelay||(c.repeat=0),new e(l,c)},e.killTweensOf=function(l,c,d){return wt.killTweensOf(l,c,d)},e})(io);Fn(zt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});wn("staggerTo,staggerFrom,staggerFromTo",function(n){zt[n]=function(){var e=new un,a=sm.call(arguments,0);return a.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,a)}});var fp=function(e,a,i){return e[a]=i},D2=function(e,a,i){return e[a](i)},eA=function(e,a,i,l){return e[a](l.fp,i)},tA=function(e,a,i){return e.setAttribute(a,i)},hp=function(e,a){return Et(e[a])?D2:np(e[a])&&e.setAttribute?tA:fp},L2=function(e,a){return a.set(a.t,a.p,Math.round((a.s+a.c*e)*1e6)/1e6,a)},nA=function(e,a){return a.set(a.t,a.p,!!(a.s+a.c*e),a)},z2=function(e,a){var i=a._pt,l="";if(!e&&a.b)l=a.b;else if(e===1&&a.e)l=a.e;else{for(;i;)l=i.p+(i.m?i.m(i.s+i.c*e):Math.round((i.s+i.c*e)*1e4)/1e4)+l,i=i._next;l+=a.c}a.set(a.t,a.p,l,a)},mp=function(e,a){for(var i=a._pt;i;)i.r(e,i.d),i=i._next},sA=function(e,a,i,l){for(var c=this._pt,d;c;)d=c._next,c.p===l&&c.modifier(e,a,i),c=d},aA=function(e){for(var a=this._pt,i,l;a;)l=a._next,a.p===e&&!a.op||a.op===e?Du(this,a,"_pt"):a.dep||(i=1),a=l;return!i},iA=function(e,a,i,l){l.mSet(e,a,l.m.call(l.tween,i,l.mt),l)},U2=function(e){for(var a=e._pt,i,l,c,d;a;){for(i=a._next,l=c;l&&l.pr>a.pr;)l=l._next;(a._prev=l?l._prev:d)?a._prev._next=a:c=a,(a._next=l)?l._prev=a:d=a,a=i}e._pt=c},Nn=(function(){function n(a,i,l,c,d,f,h,m,g){this.t=i,this.s=c,this.c=d,this.p=l,this.r=f||L2,this.d=h||this,this.set=m||fp,this.pr=g||0,this._next=a,a&&(a._prev=this)}var e=n.prototype;return e.modifier=function(i,l,c){this.mSet=this.mSet||this.set,this.set=iA,this.m=i,this.mt=c,this.tween=l},n})();wn(lp+"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 rp[n]=1});Bn.TweenMax=Bn.TweenLite=zt;Bn.TimelineLite=Bn.TimelineMax=un;wt=new un({sortChildren:!1,defaults:Er,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Pn.stringFilter=_2;var Ci=[],Zc={},rA=[],Zb=0,lA=0,Nh=function(e){return(Zc[e]||rA).map(function(a){return a()})},lm=function(){var e=Date.now(),a=[];e-Zb>2&&(Nh("matchMediaInit"),Ci.forEach(function(i){var l=i.queries,c=i.conditions,d,f,h,m;for(f in l)d=Cs.matchMedia(l[f]).matches,d&&(h=1),d!==c[f]&&(c[f]=d,m=1);m&&(i.revert(),h&&a.push(i))}),Nh("matchMediaRevert"),a.forEach(function(i){return i.onMatch(i,function(l){return i.add(null,l)})}),Zb=e,Nh("matchMedia"))},q2=(function(){function n(a,i){this.selector=i&&am(i),this.data=[],this._r=[],this.isReverted=!1,this.id=lA++,a&&this.add(a)}var e=n.prototype;return e.add=function(i,l,c){Et(i)&&(c=l,l=i,i=Et);var d=this,f=function(){var m=xt,g=d.selector,y;return m&&m!==d&&m.data.push(d),c&&(d.selector=am(c)),xt=d,y=l.apply(d,arguments),Et(y)&&d._r.push(y),xt=m,d.selector=g,d.isReverted=!1,y};return d.last=f,i===Et?f(d,function(h){return d.add(null,h)}):i?d[i]=f:f},e.ignore=function(i){var l=xt;xt=null,i(this),xt=l},e.getTweens=function(){var i=[];return this.data.forEach(function(l){return l instanceof n?i.push.apply(i,l.getTweens()):l instanceof zt&&!(l.parent&&l.parent.data==="nested")&&i.push(l)}),i},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(i,l){var c=this;if(i?(function(){for(var f=c.getTweens(),h=c.data.length,m;h--;)m=c.data[h],m.data==="isFlip"&&(m.revert(),m.getChildren(!0,!0,!1).forEach(function(g){return f.splice(f.indexOf(g),1)}));for(f.map(function(g){return{g:g._dur||g._delay||g._sat&&!g._sat.vars.immediateRender?g.globalTime(0):-1/0,t:g}}).sort(function(g,y){return y.g-g.g||-1/0}).forEach(function(g){return g.t.revert(i)}),h=c.data.length;h--;)m=c.data[h],m instanceof un?m.data!=="nested"&&(m.scrollTrigger&&m.scrollTrigger.revert(),m.kill()):!(m instanceof zt)&&m.revert&&m.revert(i);c._r.forEach(function(g){return g(i,c)}),c.isReverted=!0})():this.data.forEach(function(f){return f.kill&&f.kill()}),this.clear(),l)for(var d=Ci.length;d--;)Ci[d].id===this.id&&Ci.splice(d,1)},e.revert=function(i){this.kill(i||{})},n})(),oA=(function(){function n(a){this.contexts=[],this.scope=a,xt&&xt.data.push(this)}var e=n.prototype;return e.add=function(i,l,c){Ms(i)||(i={matches:i});var d=new q2(0,c||this.scope),f=d.conditions={},h,m,g;xt&&!d.selector&&(d.selector=xt.selector),this.contexts.push(d),l=d.add("onMatch",l),d.queries=i;for(m in i)m==="all"?g=1:(h=Cs.matchMedia(i[m]),h&&(Ci.indexOf(d)<0&&Ci.push(d),(f[m]=h.matches)&&(g=1),h.addListener?h.addListener(lm):h.addEventListener("change",lm)));return g&&l(d,function(y){return d.add(null,y)}),this},e.revert=function(i){this.kill(i||{})},e.kill=function(i){this.contexts.forEach(function(l){return l.kill(i,!0)})},n})(),yu={registerPlugin:function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];a.forEach(function(l){return N2(l)})},timeline:function(e){return new un(e)},getTweensOf:function(e,a){return wt.getTweensOf(e,a)},getProperty:function(e,a,i,l){It(e)&&(e=rs(e)[0]);var c=wi(e||{}).get,d=i?u2:c2;return i==="native"&&(i=""),e&&(a?d((Dn[a]&&Dn[a].get||c)(e,a,i,l)):function(f,h,m){return d((Dn[f]&&Dn[f].get||c)(e,f,h,m))})},quickSetter:function(e,a,i){if(e=rs(e),e.length>1){var l=e.map(function(g){return Cn.quickSetter(g,a,i)}),c=l.length;return function(g){for(var y=c;y--;)l[y](g)}}e=e[0]||{};var d=Dn[a],f=wi(e),h=f.harness&&(f.harness.aliases||{})[a]||a,m=d?function(g){var y=new d;Nr._pt=0,y.init(e,i?g+i:g,Nr,0,[e]),y.render(1,y),Nr._pt&&mp(1,Nr)}:f.set(e,h);return d?m:function(g){return m(e,h,i?g+i:g,f,1)}},quickTo:function(e,a,i){var l,c=Cn.to(e,Fn((l={},l[a]="+=0.1",l.paused=!0,l.stagger=0,l),i||{})),d=function(h,m,g){return c.resetTo(a,h,m,g)};return d.tween=c,d},isTweening:function(e){return wt.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Si(e.ease,Er.ease)),Qb(Er,e||{})},config:function(e){return Qb(Pn,e||{})},registerEffect:function(e){var a=e.name,i=e.effect,l=e.plugins,c=e.defaults,d=e.extendTimeline;(l||"").split(",").forEach(function(f){return f&&!Dn[f]&&!Bn[f]&&to(a+" effect requires "+f+" plugin.")}),bh[a]=function(f,h,m){return i(rs(f),Fn(h||{},c),m)},d&&(un.prototype[a]=function(f,h,m){return this.add(bh[a](f,Ms(h)?h:(m=h)&&{},this),m)})},registerEase:function(e,a){Ge[e]=Si(a)},parseEase:function(e,a){return arguments.length?Si(e,a):Ge},getById:function(e){return wt.getById(e)},exportRoot:function(e,a){e===void 0&&(e={});var i=new un(e),l,c;for(i.smoothChildTiming=jn(e.smoothChildTiming),wt.remove(i),i._dp=0,i._time=i._tTime=wt._time,l=wt._first;l;)c=l._next,(a||!(!l._dur&&l instanceof zt&&l.vars.onComplete===l._targets[0]))&&_s(i,l,l._start-l._delay),l=c;return _s(wt,i,0),i},context:function(e,a){return e?new q2(e,a):xt},matchMedia:function(e){return new oA(e)},matchMediaRefresh:function(){return Ci.forEach(function(e){var a=e.conditions,i,l;for(l in a)a[l]&&(a[l]=!1,i=1);i&&e.revert()})||lm()},addEventListener:function(e,a){var i=Zc[e]||(Zc[e]=[]);~i.indexOf(a)||i.push(a)},removeEventListener:function(e,a){var i=Zc[e],l=i&&i.indexOf(a);l>=0&&i.splice(l,1)},utils:{wrap:B6,wrapYoyo:F6,distribute:x2,random:b2,snap:y2,normalize:P6,getUnit:tn,clamp:L6,splitColor:S2,toArray:rs,selector:am,mapRange:j2,pipe:U6,unitize:q6,interpolate:H6,shuffle:g2},install:a2,effects:bh,ticker:zn,updateRoot:un.updateRoot,plugins:Dn,globalTimeline:wt,core:{PropTween:Nn,globals:i2,Tween:zt,Timeline:un,Animation:io,getCache:wi,_removeLinkedListItem:Du,reverting:function(){return Jt},context:function(e){return e&&xt&&(xt.data.push(e),e._ctx=xt),xt},suppressOverwrites:function(e){return tp=e}}};wn("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return yu[n]=zt[n]});zn.add(un.updateRoot);Nr=yu.to({},{duration:0});var cA=function(e,a){for(var i=e._pt;i&&i.p!==a&&i.op!==a&&i.fp!==a;)i=i._next;return i},uA=function(e,a){var i=e._targets,l,c,d;for(l in a)for(c=i.length;c--;)d=e._ptLookup[c][l],d&&(d=d.d)&&(d._pt&&(d=cA(d,l)),d&&d.modifier&&d.modifier(a[l],e,i[c],l))},Sh=function(e,a){return{name:e,headless:1,rawVars:1,init:function(l,c,d){d._onInit=function(f){var h,m;if(It(c)&&(h={},wn(c,function(g){return h[g]=1}),c=h),a){h={};for(m in c)h[m]=a(c[m]);c=h}uA(f,c)}}}},Cn=yu.registerPlugin({name:"attr",init:function(e,a,i,l,c){var d,f,h;this.tween=i;for(d in a)h=e.getAttribute(d)||"",f=this.add(e,"setAttribute",(h||0)+"",a[d],l,c,0,0,d),f.op=d,f.b=h,this._props.push(d)},render:function(e,a){for(var i=a._pt;i;)Jt?i.set(i.t,i.p,i.b,i):i.r(e,i.d),i=i._next}},{name:"endArray",headless:1,init:function(e,a){for(var i=a.length;i--;)this.add(e,i,e[i]||0,a[i],0,0,0,0,0,1)}},Sh("roundProps",im),Sh("modifiers"),Sh("snap",y2))||yu;zt.version=un.version=Cn.version="3.14.2";s2=1;sp()&&Mr();Ge.Power0;Ge.Power1;Ge.Power2;Ge.Power3;Ge.Power4;Ge.Linear;Ge.Quad;Ge.Cubic;Ge.Quart;Ge.Quint;Ge.Strong;Ge.Elastic;Ge.Back;Ge.SteppedEase;Ge.Bounce;Ge.Sine;Ge.Expo;Ge.Circ;var Jb,qa,Cr,pp,ji,Wb,gp,dA=function(){return typeof window<"u"},ua={},yi=180/Math.PI,_r=Math.PI/180,br=Math.atan2,ev=1e8,xp=/([A-Z])/g,fA=/(left|right|width|margin|padding|x)/i,hA=/[\s,\(]\S/,ks={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},om=function(e,a){return a.set(a.t,a.p,Math.round((a.s+a.c*e)*1e4)/1e4+a.u,a)},mA=function(e,a){return a.set(a.t,a.p,e===1?a.e:Math.round((a.s+a.c*e)*1e4)/1e4+a.u,a)},pA=function(e,a){return a.set(a.t,a.p,e?Math.round((a.s+a.c*e)*1e4)/1e4+a.u:a.b,a)},gA=function(e,a){return a.set(a.t,a.p,e===1?a.e:e?Math.round((a.s+a.c*e)*1e4)/1e4+a.u:a.b,a)},xA=function(e,a){var i=a.s+a.c*e;a.set(a.t,a.p,~~(i+(i<0?-.5:.5))+a.u,a)},P2=function(e,a){return a.set(a.t,a.p,e?a.e:a.b,a)},B2=function(e,a){return a.set(a.t,a.p,e!==1?a.b:a.e,a)},yA=function(e,a,i){return e.style[a]=i},bA=function(e,a,i){return e.style.setProperty(a,i)},vA=function(e,a,i){return e._gsap[a]=i},jA=function(e,a,i){return e._gsap.scaleX=e._gsap.scaleY=i},wA=function(e,a,i,l,c){var d=e._gsap;d.scaleX=d.scaleY=i,d.renderTransform(c,d)},NA=function(e,a,i,l,c){var d=e._gsap;d[a]=i,d.renderTransform(c,d)},Nt="transform",Sn=Nt+"Origin",SA=function n(e,a){var i=this,l=this.target,c=l.style,d=l._gsap;if(e in ua&&c){if(this.tfm=this.tfm||{},e!=="transform")e=ks[e]||e,~e.indexOf(",")?e.split(",").forEach(function(f){return i.tfm[f]=na(l,f)}):this.tfm[e]=d.x?d[e]:na(l,e),e===Sn&&(this.tfm.zOrigin=d.zOrigin);else return ks.transform.split(",").forEach(function(f){return n.call(i,f,a)});if(this.props.indexOf(Nt)>=0)return;d.svg&&(this.svgo=l.getAttribute("data-svg-origin"),this.props.push(Sn,a,"")),e=Nt}(c||a)&&this.props.push(e,a,c[e])},F2=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},CA=function(){var e=this.props,a=this.target,i=a.style,l=a._gsap,c,d;for(c=0;c<e.length;c+=3)e[c+1]?e[c+1]===2?a[e[c]](e[c+2]):a[e[c]]=e[c+2]:e[c+2]?i[e[c]]=e[c+2]:i.removeProperty(e[c].substr(0,2)==="--"?e[c]:e[c].replace(xp,"-$1").toLowerCase());if(this.tfm){for(d in this.tfm)l[d]=this.tfm[d];l.svg&&(l.renderTransform(),a.setAttribute("data-svg-origin",this.svgo||"")),c=gp(),(!c||!c.isStart)&&!i[Nt]&&(F2(i),l.zOrigin&&i[Sn]&&(i[Sn]+=" "+l.zOrigin+"px",l.zOrigin=0,l.renderTransform()),l.uncache=1)}},H2=function(e,a){var i={target:e,props:[],revert:CA,save:SA};return e._gsap||Cn.core.getCache(e),a&&e.style&&e.nodeType&&a.split(",").forEach(function(l){return i.save(l)}),i},V2,cm=function(e,a){var i=qa.createElementNS?qa.createElementNS((a||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):qa.createElement(e);return i&&i.style?i:qa.createElement(e)},qn=function n(e,a,i){var l=getComputedStyle(e);return l[a]||l.getPropertyValue(a.replace(xp,"-$1").toLowerCase())||l.getPropertyValue(a)||!i&&n(e,Or(a)||a,1)||""},tv="O,Moz,ms,Ms,Webkit".split(","),Or=function(e,a,i){var l=a||ji,c=l.style,d=5;if(e in c&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);d--&&!(tv[d]+e in c););return d<0?null:(d===3?"ms":d>=0?tv[d]:"")+e},um=function(){dA()&&window.document&&(Jb=window,qa=Jb.document,Cr=qa.documentElement,ji=cm("div")||{style:{}},cm("div"),Nt=Or(Nt),Sn=Nt+"Origin",ji.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",V2=!!Or("perspective"),gp=Cn.core.reverting,pp=1)},nv=function(e){var a=e.ownerSVGElement,i=cm("svg",a&&a.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),l=e.cloneNode(!0),c;l.style.display="block",i.appendChild(l),Cr.appendChild(i);try{c=l.getBBox()}catch{}return i.removeChild(l),Cr.removeChild(i),c},sv=function(e,a){for(var i=a.length;i--;)if(e.hasAttribute(a[i]))return e.getAttribute(a[i])},I2=function(e){var a,i;try{a=e.getBBox()}catch{a=nv(e),i=1}return a&&(a.width||a.height)||i||(a=nv(e)),a&&!a.width&&!a.x&&!a.y?{x:+sv(e,["x","cx","x1"])||0,y:+sv(e,["y","cy","y1"])||0,width:0,height:0}:a},G2=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&I2(e))},Qa=function(e,a){if(a){var i=e.style,l;a in ua&&a!==Sn&&(a=Nt),i.removeProperty?(l=a.substr(0,2),(l==="ms"||a.substr(0,6)==="webkit")&&(a="-"+a),i.removeProperty(l==="--"?a:a.replace(xp,"-$1").toLowerCase())):i.removeAttribute(a)}},Pa=function(e,a,i,l,c,d){var f=new Nn(e._pt,a,i,0,1,d?B2:P2);return e._pt=f,f.b=l,f.e=c,e._props.push(i),f},av={deg:1,rad:1,turn:1},_A={grid:1,flex:1},Ka=function n(e,a,i,l){var c=parseFloat(i)||0,d=(i+"").trim().substr((c+"").length)||"px",f=ji.style,h=fA.test(a),m=e.tagName.toLowerCase()==="svg",g=(m?"client":"offset")+(h?"Width":"Height"),y=100,b=l==="px",v=l==="%",N,w,_,k;if(l===d||!c||av[l]||av[d])return c;if(d!=="px"&&!b&&(c=n(e,a,i,"px")),k=e.getCTM&&G2(e),(v||d==="%")&&(ua[a]||~a.indexOf("adius")))return N=k?e.getBBox()[h?"width":"height"]:e[g],At(v?c/N*y:c/100*N);if(f[h?"width":"height"]=y+(b?d:l),w=l!=="rem"&&~a.indexOf("adius")||l==="em"&&e.appendChild&&!m?e:e.parentNode,k&&(w=(e.ownerSVGElement||{}).parentNode),(!w||w===qa||!w.appendChild)&&(w=qa.body),_=w._gsap,_&&v&&_.width&&h&&_.time===zn.time&&!_.uncache)return At(c/_.width*y);if(v&&(a==="height"||a==="width")){var E=e.style[a];e.style[a]=y+l,N=e[g],E?e.style[a]=E:Qa(e,a)}else(v||d==="%")&&!_A[qn(w,"display")]&&(f.position=qn(e,"position")),w===e&&(f.position="static"),w.appendChild(ji),N=ji[g],w.removeChild(ji),f.position="absolute";return h&&v&&(_=wi(w),_.time=zn.time,_.width=w[g]),At(b?N*c/y:N&&c?y/N*c:0)},na=function(e,a,i,l){var c;return pp||um(),a in ks&&a!=="transform"&&(a=ks[a],~a.indexOf(",")&&(a=a.split(",")[0])),ua[a]&&a!=="transform"?(c=lo(e,l),c=a!=="transformOrigin"?c[a]:c.svg?c.origin:vu(qn(e,Sn))+" "+c.zOrigin+"px"):(c=e.style[a],(!c||c==="auto"||l||~(c+"").indexOf("calc("))&&(c=bu[a]&&bu[a](e,a,i)||qn(e,a)||l2(e,a)||(a==="opacity"?1:0))),i&&!~(c+"").trim().indexOf(" ")?Ka(e,a,c,i)+i:c},EA=function(e,a,i,l){if(!i||i==="none"){var c=Or(a,e,1),d=c&&qn(e,c,1);d&&d!==i?(a=c,i=d):a==="borderColor"&&(i=qn(e,"borderTopColor"))}var f=new Nn(this._pt,e.style,a,0,1,z2),h=0,m=0,g,y,b,v,N,w,_,k,E,C,A,M;if(f.b=i,f.e=l,i+="",l+="",l.substring(0,6)==="var(--"&&(l=qn(e,l.substring(4,l.indexOf(")")))),l==="auto"&&(w=e.style[a],e.style[a]=l,l=qn(e,a)||l,w?e.style[a]=w:Qa(e,a)),g=[i,l],_2(g),i=g[0],l=g[1],b=i.match(wr)||[],M=l.match(wr)||[],M.length){for(;y=wr.exec(l);)_=y[0],E=l.substring(h,y.index),N?N=(N+1)%5:(E.substr(-5)==="rgba("||E.substr(-5)==="hsla(")&&(N=1),_!==(w=b[m++]||"")&&(v=parseFloat(w)||0,A=w.substr((v+"").length),_.charAt(1)==="="&&(_=Sr(v,_)+A),k=parseFloat(_),C=_.substr((k+"").length),h=wr.lastIndex-C.length,C||(C=C||Pn.units[a]||A,h===l.length&&(l+=C,f.e+=C)),A!==C&&(v=Ka(e,a,w,C)||0),f._pt={_next:f._pt,p:E||m===1?E:",",s:v,c:k-v,m:N&&N<4||a==="zIndex"?Math.round:0});f.c=h<l.length?l.substring(h,l.length):""}else f.r=a==="display"&&l==="none"?B2:P2;return n2.test(l)&&(f.e=0),this._pt=f,f},iv={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},kA=function(e){var a=e.split(" "),i=a[0],l=a[1]||"50%";return(i==="top"||i==="bottom"||l==="left"||l==="right")&&(e=i,i=l,l=e),a[0]=iv[i]||i,a[1]=iv[l]||l,a.join(" ")},TA=function(e,a){if(a.tween&&a.tween._time===a.tween._dur){var i=a.t,l=i.style,c=a.u,d=i._gsap,f,h,m;if(c==="all"||c===!0)l.cssText="",h=1;else for(c=c.split(","),m=c.length;--m>-1;)f=c[m],ua[f]&&(h=1,f=f==="transformOrigin"?Sn:Nt),Qa(i,f);h&&(Qa(i,Nt),d&&(d.svg&&i.removeAttribute("transform"),l.scale=l.rotate=l.translate="none",lo(i,1),d.uncache=1,F2(l)))}},bu={clearProps:function(e,a,i,l,c){if(c.data!=="isFromStart"){var d=e._pt=new Nn(e._pt,a,i,0,0,TA);return d.u=l,d.pr=-10,d.tween=c,e._props.push(i),1}}},ro=[1,0,0,1,0,0],Q2={},K2=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},rv=function(e){var a=qn(e,Nt);return K2(a)?ro:a.substr(7).match(t2).map(At)},yp=function(e,a){var i=e._gsap||wi(e),l=e.style,c=rv(e),d,f,h,m;return i.svg&&e.getAttribute("transform")?(h=e.transform.baseVal.consolidate().matrix,c=[h.a,h.b,h.c,h.d,h.e,h.f],c.join(",")==="1,0,0,1,0,0"?ro:c):(c===ro&&!e.offsetParent&&e!==Cr&&!i.svg&&(h=l.display,l.display="block",d=e.parentNode,(!d||!e.offsetParent&&!e.getBoundingClientRect().width)&&(m=1,f=e.nextElementSibling,Cr.appendChild(e)),c=rv(e),h?l.display=h:Qa(e,"display"),m&&(f?d.insertBefore(e,f):d?d.appendChild(e):Cr.removeChild(e))),a&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},dm=function(e,a,i,l,c,d){var f=e._gsap,h=c||yp(e,!0),m=f.xOrigin||0,g=f.yOrigin||0,y=f.xOffset||0,b=f.yOffset||0,v=h[0],N=h[1],w=h[2],_=h[3],k=h[4],E=h[5],C=a.split(" "),A=parseFloat(C[0])||0,M=parseFloat(C[1])||0,H,z,P,I;i?h!==ro&&(z=v*_-N*w)&&(P=A*(_/z)+M*(-w/z)+(w*E-_*k)/z,I=A*(-N/z)+M*(v/z)-(v*E-N*k)/z,A=P,M=I):(H=I2(e),A=H.x+(~C[0].indexOf("%")?A/100*H.width:A),M=H.y+(~(C[1]||C[0]).indexOf("%")?M/100*H.height:M)),l||l!==!1&&f.smooth?(k=A-m,E=M-g,f.xOffset=y+(k*v+E*w)-k,f.yOffset=b+(k*N+E*_)-E):f.xOffset=f.yOffset=0,f.xOrigin=A,f.yOrigin=M,f.smooth=!!l,f.origin=a,f.originIsAbsolute=!!i,e.style[Sn]="0px 0px",d&&(Pa(d,f,"xOrigin",m,A),Pa(d,f,"yOrigin",g,M),Pa(d,f,"xOffset",y,f.xOffset),Pa(d,f,"yOffset",b,f.yOffset)),e.setAttribute("data-svg-origin",A+" "+M)},lo=function(e,a){var i=e._gsap||new A2(e);if("x"in i&&!a&&!i.uncache)return i;var l=e.style,c=i.scaleX<0,d="px",f="deg",h=getComputedStyle(e),m=qn(e,Sn)||"0",g,y,b,v,N,w,_,k,E,C,A,M,H,z,P,I,G,ne,L,$,se,oe,R,U,W,he,fe,O,B,ie,le,ve;return g=y=b=w=_=k=E=C=A=0,v=N=1,i.svg=!!(e.getCTM&&G2(e)),h.translate&&((h.translate!=="none"||h.scale!=="none"||h.rotate!=="none")&&(l[Nt]=(h.translate!=="none"?"translate3d("+(h.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(h.rotate!=="none"?"rotate("+h.rotate+") ":"")+(h.scale!=="none"?"scale("+h.scale.split(" ").join(",")+") ":"")+(h[Nt]!=="none"?h[Nt]:"")),l.scale=l.rotate=l.translate="none"),z=yp(e,i.svg),i.svg&&(i.uncache?(W=e.getBBox(),m=i.xOrigin-W.x+"px "+(i.yOrigin-W.y)+"px",U=""):U=!a&&e.getAttribute("data-svg-origin"),dm(e,U||m,!!U||i.originIsAbsolute,i.smooth!==!1,z)),M=i.xOrigin||0,H=i.yOrigin||0,z!==ro&&(ne=z[0],L=z[1],$=z[2],se=z[3],g=oe=z[4],y=R=z[5],z.length===6?(v=Math.sqrt(ne*ne+L*L),N=Math.sqrt(se*se+$*$),w=ne||L?br(L,ne)*yi:0,E=$||se?br($,se)*yi+w:0,E&&(N*=Math.abs(Math.cos(E*_r))),i.svg&&(g-=M-(M*ne+H*$),y-=H-(M*L+H*se))):(ve=z[6],ie=z[7],fe=z[8],O=z[9],B=z[10],le=z[11],g=z[12],y=z[13],b=z[14],P=br(ve,B),_=P*yi,P&&(I=Math.cos(-P),G=Math.sin(-P),U=oe*I+fe*G,W=R*I+O*G,he=ve*I+B*G,fe=oe*-G+fe*I,O=R*-G+O*I,B=ve*-G+B*I,le=ie*-G+le*I,oe=U,R=W,ve=he),P=br(-$,B),k=P*yi,P&&(I=Math.cos(-P),G=Math.sin(-P),U=ne*I-fe*G,W=L*I-O*G,he=$*I-B*G,le=se*G+le*I,ne=U,L=W,$=he),P=br(L,ne),w=P*yi,P&&(I=Math.cos(P),G=Math.sin(P),U=ne*I+L*G,W=oe*I+R*G,L=L*I-ne*G,R=R*I-oe*G,ne=U,oe=W),_&&Math.abs(_)+Math.abs(w)>359.9&&(_=w=0,k=180-k),v=At(Math.sqrt(ne*ne+L*L+$*$)),N=At(Math.sqrt(R*R+ve*ve)),P=br(oe,R),E=Math.abs(P)>2e-4?P*yi:0,A=le?1/(le<0?-le:le):0),i.svg&&(U=e.getAttribute("transform"),i.forceCSS=e.setAttribute("transform","")||!K2(qn(e,Nt)),U&&e.setAttribute("transform",U))),Math.abs(E)>90&&Math.abs(E)<270&&(c?(v*=-1,E+=w<=0?180:-180,w+=w<=0?180:-180):(N*=-1,E+=E<=0?180:-180)),a=a||i.uncache,i.x=g-((i.xPercent=g&&(!a&&i.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-g)?-50:0)))?e.offsetWidth*i.xPercent/100:0)+d,i.y=y-((i.yPercent=y&&(!a&&i.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-y)?-50:0)))?e.offsetHeight*i.yPercent/100:0)+d,i.z=b+d,i.scaleX=At(v),i.scaleY=At(N),i.rotation=At(w)+f,i.rotationX=At(_)+f,i.rotationY=At(k)+f,i.skewX=E+f,i.skewY=C+f,i.transformPerspective=A+d,(i.zOrigin=parseFloat(m.split(" ")[2])||!a&&i.zOrigin||0)&&(l[Sn]=vu(m)),i.xOffset=i.yOffset=0,i.force3D=Pn.force3D,i.renderTransform=i.svg?MA:V2?Y2:AA,i.uncache=0,i},vu=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ch=function(e,a,i){var l=tn(a);return At(parseFloat(a)+parseFloat(Ka(e,"x",i+"px",l)))+l},AA=function(e,a){a.z="0px",a.rotationY=a.rotationX="0deg",a.force3D=0,Y2(e,a)},gi="0deg",Fl="0px",xi=") ",Y2=function(e,a){var i=a||this,l=i.xPercent,c=i.yPercent,d=i.x,f=i.y,h=i.z,m=i.rotation,g=i.rotationY,y=i.rotationX,b=i.skewX,v=i.skewY,N=i.scaleX,w=i.scaleY,_=i.transformPerspective,k=i.force3D,E=i.target,C=i.zOrigin,A="",M=k==="auto"&&e&&e!==1||k===!0;if(C&&(y!==gi||g!==gi)){var H=parseFloat(g)*_r,z=Math.sin(H),P=Math.cos(H),I;H=parseFloat(y)*_r,I=Math.cos(H),d=Ch(E,d,z*I*-C),f=Ch(E,f,-Math.sin(H)*-C),h=Ch(E,h,P*I*-C+C)}_!==Fl&&(A+="perspective("+_+xi),(l||c)&&(A+="translate("+l+"%, "+c+"%) "),(M||d!==Fl||f!==Fl||h!==Fl)&&(A+=h!==Fl||M?"translate3d("+d+", "+f+", "+h+") ":"translate("+d+", "+f+xi),m!==gi&&(A+="rotate("+m+xi),g!==gi&&(A+="rotateY("+g+xi),y!==gi&&(A+="rotateX("+y+xi),(b!==gi||v!==gi)&&(A+="skew("+b+", "+v+xi),(N!==1||w!==1)&&(A+="scale("+N+", "+w+xi),E.style[Nt]=A||"translate(0, 0)"},MA=function(e,a){var i=a||this,l=i.xPercent,c=i.yPercent,d=i.x,f=i.y,h=i.rotation,m=i.skewX,g=i.skewY,y=i.scaleX,b=i.scaleY,v=i.target,N=i.xOrigin,w=i.yOrigin,_=i.xOffset,k=i.yOffset,E=i.forceCSS,C=parseFloat(d),A=parseFloat(f),M,H,z,P,I;h=parseFloat(h),m=parseFloat(m),g=parseFloat(g),g&&(g=parseFloat(g),m+=g,h+=g),h||m?(h*=_r,m*=_r,M=Math.cos(h)*y,H=Math.sin(h)*y,z=Math.sin(h-m)*-b,P=Math.cos(h-m)*b,m&&(g*=_r,I=Math.tan(m-g),I=Math.sqrt(1+I*I),z*=I,P*=I,g&&(I=Math.tan(g),I=Math.sqrt(1+I*I),M*=I,H*=I)),M=At(M),H=At(H),z=At(z),P=At(P)):(M=y,P=b,H=z=0),(C&&!~(d+"").indexOf("px")||A&&!~(f+"").indexOf("px"))&&(C=Ka(v,"x",d,"px"),A=Ka(v,"y",f,"px")),(N||w||_||k)&&(C=At(C+N-(N*M+w*z)+_),A=At(A+w-(N*H+w*P)+k)),(l||c)&&(I=v.getBBox(),C=At(C+l/100*I.width),A=At(A+c/100*I.height)),I="matrix("+M+","+H+","+z+","+P+","+C+","+A+")",v.setAttribute("transform",I),E&&(v.style[Nt]=I)}
141,OA=function(e,a,i,l,c){var d=360,f=It(c),h=parseFloat(c)*(f&&~c.indexOf("rad")?yi:1),m=h-l,g=l+m+"deg",y,b;return f&&(y=c.split("_")[1],y==="short"&&(m%=d,m!==m%(d/2)&&(m+=m<0?d:-d)),y==="cw"&&m<0?m=(m+d*ev)%d-~~(m/d)*d:y==="ccw"&&m>0&&(m=(m-d*ev)%d-~~(m/d)*d)),e._pt=b=new Nn(e._pt,a,i,l,m,mA),b.e=g,b.u="deg",e._props.push(i),b},lv=function(e,a){for(var i in a)e[i]=a[i];return e},RA=function(e,a,i){var l=lv({},i._gsap),c="perspective,force3D,transformOrigin,svgOrigin",d=i.style,f,h,m,g,y,b,v,N;l.svg?(m=i.getAttribute("transform"),i.setAttribute("transform",""),d[Nt]=a,f=lo(i,1),Qa(i,Nt),i.setAttribute("transform",m)):(m=getComputedStyle(i)[Nt],d[Nt]=a,f=lo(i,1),d[Nt]=m);for(h in ua)m=l[h],g=f[h],m!==g&&c.indexOf(h)<0&&(v=tn(m),N=tn(g),y=v!==N?Ka(i,h,m,N):parseFloat(m),b=parseFloat(g),e._pt=new Nn(e._pt,f,h,y,b-y,om),e._pt.u=N||0,e._props.push(h));lv(f,l)};wn("padding,margin,Width,Radius",function(n,e){var a="Top",i="Right",l="Bottom",c="Left",d=(e<3?[a,i,l,c]:[a+c,a+i,l+i,l+c]).map(function(f){return e<2?n+f:"border"+f+n});bu[e>1?"border"+n:n]=function(f,h,m,g,y){var b,v;if(arguments.length<4)return b=d.map(function(N){return na(f,N,m)}),v=b.join(" "),v.split(b[0]).length===5?b[0]:v;b=(g+"").split(" "),v={},d.forEach(function(N,w){return v[N]=b[w]=b[w]||b[(w-1)/2|0]}),f.init(h,v,y)}});var $2={name:"css",register:um,targetTest:function(e){return e.style&&e.nodeType},init:function(e,a,i,l,c){var d=this._props,f=e.style,h=i.vars.startAt,m,g,y,b,v,N,w,_,k,E,C,A,M,H,z,P,I;pp||um(),this.styles=this.styles||H2(e),P=this.styles.props,this.tween=i;for(w in a)if(w!=="autoRound"&&(g=a[w],!(Dn[w]&&M2(w,a,i,l,e,c)))){if(v=typeof g,N=bu[w],v==="function"&&(g=g.call(i,l,e,c),v=typeof g),v==="string"&&~g.indexOf("random(")&&(g=so(g)),N)N(this,e,w,g,i)&&(z=1);else if(w.substr(0,2)==="--")m=(getComputedStyle(e).getPropertyValue(w)+"").trim(),g+="",Va.lastIndex=0,Va.test(m)||(_=tn(m),k=tn(g),k?_!==k&&(m=Ka(e,w,m,k)+k):_&&(g+=_)),this.add(f,"setProperty",m,g,l,c,0,0,w),d.push(w),P.push(w,0,f[w]);else if(v!=="undefined"){if(h&&w in h?(m=typeof h[w]=="function"?h[w].call(i,l,e,c):h[w],It(m)&&~m.indexOf("random(")&&(m=so(m)),tn(m+"")||m==="auto"||(m+=Pn.units[w]||tn(na(e,w))||""),(m+"").charAt(1)==="="&&(m=na(e,w))):m=na(e,w),b=parseFloat(m),E=v==="string"&&g.charAt(1)==="="&&g.substr(0,2),E&&(g=g.substr(2)),y=parseFloat(g),w in ks&&(w==="autoAlpha"&&(b===1&&na(e,"visibility")==="hidden"&&y&&(b=0),P.push("visibility",0,f.visibility),Pa(this,f,"visibility",b?"inherit":"hidden",y?"inherit":"hidden",!y)),w!=="scale"&&w!=="transform"&&(w=ks[w],~w.indexOf(",")&&(w=w.split(",")[0]))),C=w in ua,C){if(this.styles.save(w),I=g,v==="string"&&g.substring(0,6)==="var(--"){if(g=qn(e,g.substring(4,g.indexOf(")"))),g.substring(0,5)==="calc("){var G=e.style.perspective;e.style.perspective=g,g=qn(e,"perspective"),G?e.style.perspective=G:Qa(e,"perspective")}y=parseFloat(g)}if(A||(M=e._gsap,M.renderTransform&&!a.parseTransform||lo(e,a.parseTransform),H=a.smoothOrigin!==!1&&M.smooth,A=this._pt=new Nn(this._pt,f,Nt,0,1,M.renderTransform,M,0,-1),A.dep=1),w==="scale")this._pt=new Nn(this._pt,M,"scaleY",M.scaleY,(E?Sr(M.scaleY,E+y):y)-M.scaleY||0,om),this._pt.u=0,d.push("scaleY",w),w+="X";else if(w==="transformOrigin"){P.push(Sn,0,f[Sn]),g=kA(g),M.svg?dm(e,g,0,H,0,this):(k=parseFloat(g.split(" ")[2])||0,k!==M.zOrigin&&Pa(this,M,"zOrigin",M.zOrigin,k),Pa(this,f,w,vu(m),vu(g)));continue}else if(w==="svgOrigin"){dm(e,g,1,H,0,this);continue}else if(w in Q2){OA(this,M,w,b,E?Sr(b,E+g):g);continue}else if(w==="smoothOrigin"){Pa(this,M,"smooth",M.smooth,g);continue}else if(w==="force3D"){M[w]=g;continue}else if(w==="transform"){RA(this,g,e);continue}}else w in f||(w=Or(w)||w);if(C||(y||y===0)&&(b||b===0)&&!hA.test(g)&&w in f)_=(m+"").substr((b+"").length),y||(y=0),k=tn(g)||(w in Pn.units?Pn.units[w]:_),_!==k&&(b=Ka(e,w,m,k)),this._pt=new Nn(this._pt,C?M:f,w,b,(E?Sr(b,E+y):y)-b,!C&&(k==="px"||w==="zIndex")&&a.autoRound!==!1?xA:om),this._pt.u=k||0,C&&I!==g?(this._pt.b=m,this._pt.e=I,this._pt.r=gA):_!==k&&k!=="%"&&(this._pt.b=m,this._pt.r=pA);else if(w in f)EA.call(this,e,w,m,E?E+g:g);else if(w in e)this.add(e,w,m||e[w],E?E+g:g,l,c);else if(w!=="parseTransform"){ip(w,g);continue}C||(w in f?P.push(w,0,f[w]):typeof e[w]=="function"?P.push(w,2,e[w]()):P.push(w,1,m||e[w])),d.push(w)}}z&&U2(this)},render:function(e,a){if(a.tween._time||!gp())for(var i=a._pt;i;)i.r(e,i.d),i=i._next;else a.styles.revert()},get:na,aliases:ks,getSetter:function(e,a,i){var l=ks[a];return l&&l.indexOf(",")<0&&(a=l),a in ua&&a!==Sn&&(e._gsap.x||na(e,"x"))?i&&Wb===i?a==="scale"?jA:vA:(Wb=i||{})&&(a==="scale"?wA:NA):e.style&&!np(e.style[a])?yA:~a.indexOf("-")?bA:hp(e,a)},core:{_removeProperty:Qa,_getMatrix:yp}};Cn.utils.checkPrefix=Or;Cn.core.getStyleSaver=H2;(function(n,e,a,i){var l=wn(n+","+e+","+a,function(c){ua[c]=1});wn(e,function(c){Pn.units[c]="deg",Q2[c]=1}),ks[l[13]]=n+","+e,wn(i,function(c){var d=c.split(":");ks[d[1]]=l[d[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");wn("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Pn.units[n]="px"});Cn.registerPlugin($2);var en=Cn.registerPlugin($2)||Cn;en.core.Tween;const DA=[{id:"le-projet",labelKey:"navbar.leProjet",to:"/le-projet",slots:["header","mobile","footer"],footerLabelKey:"footer.leProjet"},{id:"agenda",labelKey:"navbar.agenda",to:"/agenda",slots:["header","mobile","footer"],footerLabelKey:"footer.agenda"},{id:"activites",labelKey:"navbar.activites",to:"/activites",slots:["header","mobile"]},{id:"espace-pro",labelKey:"navbar.espacePro",to:"/espace-pro",slots:["header","mobile"]},{id:"tremplin",labelKey:"navbar.tremplin",to:"/tremplin",slots:["header","mobile"]},{id:"contact",labelKey:"navbar.contactsInfos",to:"/contact",slots:["header","mobile","footer"],footerLabelKey:"footer.contactsInfos"}],bp=n=>DA.filter(e=>e.slots.includes(n)),LA=(n,e)=>e==="footer"&&n.footerLabelKey?n.footerLabelKey:n.labelKey;function zA(){const{t:n,i18n:e}=Re(),a=zr(),i=Vn(),l=Wm(),c=bp("mobile").map(L=>({label:n(L.labelKey),link:L.to})),[d,f]=S.useState(!1),h=S.useRef(!1);S.useEffect(()=>(d?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[d]);const m=S.useRef(null),g=S.useRef(null),y=S.useRef([]),b=S.useRef(null),v=S.useRef(null),N=S.useRef(null),w=S.useRef(null),_=S.useRef(null),k=S.useRef(null),E=S.useRef(null),C=S.useRef(!1),A=S.useRef(null);S.useEffect(()=>{h.current&&(h.current=!1,f(!1),z(),P(!1))},[i.pathname]),S.useEffect(()=>{const L=en.context(()=>{const $=m.current,se=g.current,oe=b.current,R=v.current,U=N.current;if(!$||!oe||!R||!U)return;let W=[];se&&(W=Array.from(se.querySelectorAll(".sm-prelayer"))),y.current=W,en.set([$,...W],{xPercent:100}),en.set(oe,{transformOrigin:"50% 50%",rotate:0}),en.set(R,{transformOrigin:"50% 50%",rotate:90}),en.set(U,{rotate:0,transformOrigin:"50% 50%"})});return()=>L.revert()},[]);const M=S.useCallback(()=>{const L=m.current,$=y.current;if(!L)return null;w.current?.kill(),_.current?.kill(),_.current=null,A.current?.kill();const se=Array.from(L.querySelectorAll(".sm-panel-itemLabel")),oe=Array.from(L.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item")),R=$.map(B=>({el:B,start:Number(en.getProperty(B,"xPercent"))})),U=Number(en.getProperty(L,"xPercent"));se.length&&en.set(se,{yPercent:140,rotate:10}),oe.length&&en.set(oe,{"--sm-num-opacity":0});const W=en.timeline({paused:!0});R.forEach((B,ie)=>{W.fromTo(B.el,{xPercent:B.start},{xPercent:0,duration:.5,ease:"power4.out"},ie*.07)});const fe=(R.length?(R.length-1)*.07:0)+(R.length?.08:0),O=.65;if(W.fromTo(L,{xPercent:U},{xPercent:0,duration:O,ease:"power4.out"}
141,fe),se.length){const B=fe+O*.15;W.to(se,{yPercent:0,rotate:0,duration:1,ease:"power4.out",stagger:{each:.1,from:"start"}},B),oe.length&&W.to(oe,{duration:.6,ease:"power2.out","--sm-num-opacity":1,stagger:{each:.08,from:"start"}},B+.1)}return w.current=W,W},[]),H=S.useCallback(()=>{if(C.current)return;C.current=!0,m.current?.classList.remove("invisible");const L=M();L?(L.eventCallback("onComplete",()=>{C.current=!1}),L.play(0)):C.current=!1},[M]),z=S.useCallback(()=>{w.current?.kill(),w.current=null,A.current?.kill();const L=m.current,$=y.current;L&&(_.current?.kill(),_.current=en.to([...$,L],{xPercent:100,duration:.32,ease:"power3.in",overwrite:"auto",onComplete:()=>{L.classList.add("invisible");const se=Array.from(L.querySelectorAll(".sm-panel-itemLabel"));se.length&&en.set(se,{yPercent:140,rotate:10});const oe=Array.from(L.querySelectorAll(".sm-panel-list[data-numbering] .sm-panel-item"));oe.length&&en.set(oe,{"--sm-num-opacity":0}),C.current=!1}}))},[]),P=S.useCallback(L=>{const $=b.current,se=v.current;!$||!se||(k.current?.kill(),L?k.current=en.timeline({defaults:{ease:"power4.out"}}).to($,{rotate:45,duration:.5},0).to(se,{rotate:-45,duration:.5},0):k.current=en.timeline({defaults:{ease:"power3.inOut"}}).to($,{rotate:0,duration:.35},0).to(se,{rotate:90,duration:.35},0))},[]),I=S.useCallback(()=>{const L=!h.current;h.current=L,f(L),L?H():z(),P(L)},[H,z,P]),G=S.useCallback(()=>{h.current&&(h.current=!1,f(!1),z(),P(!1))},[z,P]),ne=S.useCallback((L,$)=>{L.preventDefault(),G(),setTimeout(()=>{a($),window.scrollTo({top:0,behavior:"smooth"})},350)},[G,a]);return S.useEffect(()=>{if(!d)return;const L=$=>{m.current&&!m.current.contains($.target)&&E.current&&!E.current.contains($.target)&&G()};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[d,G]),r.jsxs(r.Fragment,{children:[r.jsx("button",{ref:E,type:"button",onClick:I,"aria-label":d?"Fermer le menu":"Ouvrir le menu","aria-expanded":d,className:"md:hidden relative inline-flex items-center gap-2 bg-transparent border-0 cursor-pointer font-medium pointer-events-auto ml-auto "+(l?"text-black":"text-white"),children:r.jsxs("span",{ref:N,className:"relative w-4 h-4 shrink-0 inline-flex items-center justify-center","aria-hidden":"true",children:[r.jsx("span",{ref:b,className:"absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-sm -translate-x-1/2 -translate-y-1/2"}),r.jsx("span",{ref:v,className:"absolute left-1/2 top-1/2 w-full h-[2px] bg-current rounded-sm -translate-x-1/2 -translate-y-1/2"})]})}),r.jsxs("div",{className:"md:hidden fixed top-0 left-0 w-screen h-screen overflow-hidden pointer-events-none z-50",children:[r.jsxs("div",{ref:g,className:"absolute top-0 right-0 bottom-0 w-full pointer-events-none","aria-hidden":"true",children:[r.jsx("div",{className:"sm-prelayer absolute top-0 right-0 h-full w-full bg-neutral-800"}),r.jsx("div",{className:"sm-prelayer absolute top-0 right-0 h-full w-full bg-neutral-900"})]}),r.jsxs("aside",{ref:m,className:`absolute top-0 right-0 h-full w-full bg-black flex flex-col pt-24 px-8 pb-8 overflow-y-auto overscroll-contain z-10 ${d?"pointer-events-auto":"pointer-events-none invisible"}`,children:[r.jsx("ul",{className:"sm-panel-list list-none m-0 p-0 flex flex-col gap-2",role:"list","data-numbering":!0,children:c.map((L,$)=>r.jsx("li",{className:"relative overflow-hidden leading-none",children:r.jsx("a",{className:"sm-panel-item relative text-white font-mango-bold text-5xl cursor-pointer leading-none tracking-tight inline-block no-underline pr-16 py-1 hover:text-neutral-400 transition-colors uppercase",href:L.link,"data-index":$+1,tabIndex:d?0:-1,onClick:se=>ne(se,L.link),children:r.jsx("span",{className:"sm-panel-itemLabel inline-block origin-bottom will-change-transform",children:L.label})})},L.label))}),r.jsxs("div",{className:"mt-auto pt-8 flex flex-col gap-6",children:[r.jsx("div",{className:"overflow-x-auto no-scrollbar -mx-2 px-2",children:r.jsx(ep,{theme:"light",size:"md"})}),r.jsx("button",{type:"button",onClick:()=>e.changeLanguage(e.language==="fr"?"en":"fr"),className:"text-xs font-medium uppercase tracking-widest text-neutral-500 hover:text-white transition bg-transparent border-0 cursor-pointer self-start",children:e.language==="fr"?"EN":"FR"})]})]}),r.jsx("style",{children:`
142.sm-panel-list[data-numbering] { counter-reset: smItem; }
143.sm-panel-list[data-numbering] .sm-panel-item::after {
144  counter-increment: smItem;
145  content: counter(smItem, decimal-leading-zero);
146  position: absolute;
147  top: 0.15em;
148  right: 1.5em;
149  font-size: 14px;
150  font-weight: 400;
151  color: #525252;
152  letter-spacing: 0;
153  pointer-events: none;
154  user-select: none;
155  opacity: var(--sm-num-opacity, 0);
156}
157        `})]})]})}const UA=({lightMode:n})=>{const{t:e}=Re(),[a,i]=S.useState(!1),l=S.useRef(null);return S.useEffect(()=>{if(!a)return;const c=f=>{l.current&&!l.current.contains(f.target)&&i(!1)},d=f=>{f.key==="Escape"&&i(!1)};return document.addEventListener("mousedown",c),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",c),document.removeEventListener("keydown",d)}},[a]),r.jsxs("div",{ref:l,className:"relative",children:[r.jsx("button",{type:"button",onClick:()=>i(c=>!c),"aria-label":e("navbar.socialsAria"),"aria-expanded":a,className:"inline-flex items-center justify-center w-9 h-9 rounded-full transition-colors "+(n?"text-black hover:bg-black/5 border border-neutral-300":"text-white hover:bg-white/10 border border-white/15"),children:r.jsx(a1,{size:16})}),a&&r.jsx("div",{role:"menu",className:"absolute right-0 top-full mt-2 rounded-2xl backdrop-blur-xl bg-neutral-900/95 border border-white/10 shadow-2xl z-50 p-3",onClick:()=>i(!1),children:r.jsx(ep,{theme:"light",size:"md"})})]})},qA=({scrolled:n})=>{const{t:e,i18n:a}=Re(),[i,l]=S.useState(""),[c,d]=S.useState(!1),{data:f=[]}=R1(),{data:h}=L1(),m=S.useRef(null),g=Vn();S.useEffect(()=>{function _(k){m.current&&!m.current.contains(k.target)&&d(!1)}return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[]);const y=Wm(),b=S.useMemo(()=>i.trim().length>=2?f.filter(_=>_.title.toLowerCase().includes(i.toLowerCase())):[],[f,i]),v=S.useMemo(()=>
157i.trim().length<2||!h?.candidates?[]:h.candidates.filter(_=>_.name.toLowerCase().includes(i.toLowerCase())).slice(0,5),[h,i]),N=b.length>0||v.length>0,w=bp("header").filter(_=>_.id!=="agenda").map(_=>({to:_.to,label:e(_.labelKey)}));return r.jsxs("header",{className:"fixed z-50 flex items-center transition-all duration-500 "+(y?"text-black ":"text-white ")+(n?y?"top-3 left-4 right-4 py-3 px-5 rounded-2xl backdrop-blur-xl bg-white/80 border border-neutral-200 shadow-lg":"top-3 left-4 right-4 py-3 px-5 rounded-2xl backdrop-blur-xl bg-white/10 border border-white/10 shadow-lg":"top-0 left-0 right-0 py-6 px-6"),children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 md:flex-none",children:[r.jsxs(ht,{to:"/",className:"shrink-0",children:[r.jsx("img",{src:y?U1:qr,alt:"Makeda",className:"hidden md:block h-8"}),r.jsx("img",{src:"/icons/icon-192x192.png",alt:"Makeda",className:"md:hidden h-8 w-8 rounded"})]}),r.jsx(ht,{to:"/agenda",className:"hidden md:inline-block text-sm font-medium px-4 py-1.5 rounded-full transition-colors "+(y?"bg-black text-white hover:bg-neutral-800":"bg-white text-black hover:bg-neutral-200"),children:e("navbar.agenda")}),r.jsxs("div",{ref:m,className:"relative min-w-0 flex-1 md:flex-none max-w-[60%] md:max-w-none",children:[r.jsxs("div",{className:"flex items-center gap-2 backdrop-blur-sm rounded-full border px-3 py-1.5 "+(y?"bg-black/5 border-neutral-300":"bg-white/10 border-white/15"),children:[r.jsx("button",{type:"button",onClick:()=>{i.trim()||d(!1)},className:"shrink-0 bg-transparent border-0 p-0 cursor-pointer",children:r.jsx(Tm,{size:16})}),r.jsx("input",{type:"text",value:i,onChange:_=>l(_.target.value),onFocus:()=>d(!0),onKeyDown:_=>{_.key==="Enter"&&!i.trim()&&(d(!1),_.target.blur())},placeholder:"Rechercher un event, artiste...",className:"bg-transparent text-sm outline-none w-full md:w-44 "+(y?"text-black placeholder-neutral-400":"text-white placeholder-white/50")})]}),c&&i.trim()&&r.jsxs("div",{className:"fixed left-4 right-4 top-16 sm:absolute sm:left-auto sm:right-0 sm:top-full sm:mt-2 sm:w-80 max-h-96 overflow-y-auto rounded-2xl backdrop-blur-xl bg-neutral-900/95 border border-white/10 shadow-2xl z-50",children:[v.length>0&&r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"px-4 pt-3 pb-1 text-xs uppercase tracking-widest text-neutral-500",children:"Artistes"}),v.map(_=>r.jsxs(ht,{to:"/tremplin?artist="+_.id,className:"flex items-center gap-3 px-4 py-3 hover:bg-white/5 transition-colors",onClick:()=>{d(!1),l("")},children:[_.avatarUrl?r.jsx("img",{src:_.avatarUrl,alt:_.name,className:"w-10 h-10 rounded-full object-cover shrink-0"}):r.jsx("div",{className:"w-10 h-10 rounded-full bg-neutral-800 shrink-0"}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("p",{className:"text-white text-sm font-medium truncate",children:_.name}),r.jsx("p",{className:"text-neutral-500 text-xs",children:"Tremplin Orizon Sud"})]})]},"artist-"+_.id))]}),b.length>0&&r.jsxs(r.Fragment,{children:[r.jsx("p",{className:"px-4 pt-3 pb-1 text-xs uppercase tracking-widest text-neutral-500",children:"Événements"}),b.map(_=>r.jsxs(ht,{to:"/events/"+_.id,className:"flex items-center gap-3 px-4 py-3 hover:bg-white/5 transition-colors",onClick:()=>{d(!1),l("")},children:[_.coverUrl?r.jsx("img",{src:_.coverUrl,alt:_.title,className:"w-10 h-10 rounded-lg object-cover shrink-0"}):r.jsx("div",{className:"w-10 h-10 rounded-lg bg-neutral-800 shrink-0"}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("p",{className:"text-white text-sm font-medium truncate",children:_.title}),r.jsxs("p",{className:"text-neutral-400 text-xs",children:[m1(_.startTime,a.language),_.genres.length>0&&r.jsx("span",{className:"ml-2 text-neutral-500",children:_.genres.slice(0,2).join(" / ")})]})]}),_.ticketStatus==="soldOut"&&r.jsx("span",{className:"ml-auto text-xs text-neutral-500 italic shrink-0",children:e("navbar.soldOutLabel")})]},_.id))]}),!N&&r.jsx("p",{className:"p-4 text-sm text-neutral-500 text-center",children:e("navbar.searchNoResult")})]})]})]}),r.jsxs("nav",{className:"hidden md:flex items-center gap-1 ml-auto",children:[w.map(_=>r.jsx(ht,{to:_.to,className:"text-sm font-medium px-4 py-1.5 rounded-full transition-colors "+(g.pathname===_.to?y?"bg-black text-white":"bg-white text-black":y?"text-neutral-500 hover:text-black hover:bg-black/5":"text-white/80 hover:text-white hover:bg-white/10"),children:_.label},_.to)),r.jsx(UA,{lightMode:y}),r.jsx(p6,{lightMode:y})]}),r.jsx(zA,{})]})}
157,PA="/assets/partenaire-departement-bouches-du-rhone-bgnoir-DUr62-N5.png",BA="/assets/partenaire-prefet-region-bgnoir-BdiQVQoR.png",FA="/assets/partenaire-region-sud-bgnoir-Df0-2OWB.png",HA="/assets/partenaire-ville-de-marseille-bgnoir-DHOlWhse.png",_h={institutionalLogos:[{src:PA,alt:"Département Bouches-du-Rhône"},{src:BA,alt:"Préfet de Région"},{src:mo,alt:"Orizon Sud"},{src:FA,alt:"Région Sud"},{src:HA,alt:"Ville de Marseille"}],newsletterUrl:"/newsletter",legalLinks:[{labelKey:"footer.mentionsLegales",url:"/mentions-legales"},{labelKey:"footer.politiqueConfidentialite",url:"/confidentialite"},{labelKey:"footer.cgv",url:"/cgv"}]},VA=["mobile","speed","experience"],IA=({onClose:n})=>{const{t:e}=Re(),[a,i]=S.useState(!1),{register:l,handleSubmit:c,setValue:d,watch:f,formState:{isValid:h,isSubmitting:m}}=Vr({mode:"onChange",defaultValues:{mobile:0,speed:0,experience:0,message:""}}),g={mobile:f("mobile"),speed:f("speed"),experience:f("experience")},y=async b=>{await new Promise(v=>setTimeout(v,800)),i(!0)};return r.jsx(Fr,{open:!0,onCloseModal:n,maxWidth:"max-w-md",backdropClassName:"bg-black/60 backdrop-blur-sm",panelClassName:"bg-neutral-900 rounded-2xl shadow-xl",showCloseButton:!1,className:"p-6",children:a?r.jsxs("div",{className:"text-center py-8 space-y-4",children:[r.jsx("p",{className:"text-2xl",children:"✓"}),r.jsx("p",{className:"text-white font-semibold",children:e("feedback.thankYou")}),r.jsx("p",{className:"text-gray-400 text-sm",children:e("feedback.thankYouText")}),r.jsx("button",{type:"button",onClick:n,className:"mt-4 px-6 py-2 bg-white text-black rounded-full text-sm font-medium hover:bg-gray-200 transition-colors",children:e("feedback.close")})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center justify-between mb-6",children:[r.jsx("h2",{className:"text-white text-lg font-bold",children:e("feedback.title")}),r.jsx("button",{type:"button",onClick:n,className:"text-gray-400 hover:text-white transition-colors text-xl leading-none",children:"×"})]}),r.jsxs("form",{onSubmit:c(y),className:"space-y-4",children:[VA.map(b=>r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-gray-300 text-sm",children:e(`feedback.criteria.${b}`)}),r.jsxs("div",{className:"flex gap-1",children:[r.jsx("input",{type:"hidden",...l(b,{min:1})}),[1,2,3,4,5].map(v=>r.jsx("button",{type:"button",onClick:()=>d(b,v,{shouldValidate:!0}),className:`text-lg transition-colors ${v<=g[b]?"text-yellow-400":"text-gray-600"} hover:text-yellow-300`,children:"★"},v))]})]},b)),r.jsx("div",{className:"pt-2",children:r.jsx("textarea",{placeholder:e("feedback.messagePlaceholder"),...l("message"),rows:3,className:"w-full bg-transparent border border-dashed border-neutral-700 rounded-lg p-3 text-white placeholder-gray-500 focus:border-white focus:outline-none transition-colors resize-none text-sm"})}),r.jsx("button",{type:"submit",disabled:!h||m,className:"w-full py-3 bg-white text-black rounded-full font-medium text-sm hover:bg-gray-200 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:e(m?"feedback.submitting":"feedback.submit")})]})]})})},GA=()=>{const{t:n}=Re(),[e,a]=S.useState(!1),[i,l]=S.useState(!1);return r.jsxs(r.Fragment,{children:[r.jsx("footer",{className:"bg-black",children:r.jsx("div",{className:"relative bg-black text-white",children:r.jsx("div",{className:"py-12 px-4 sm:py-16 sm:px-8 md:px-16",children:r.jsxs("div",{className:"max-w-7xl mx-auto",children:[r.jsxs("div",{className:"mb-16",children:[r.jsx("h3",{className:"text-lg font-bold mb-6",children:n("footer.learnMore")}),r.jsxs("ul",{className:"space-y-3",children:[bp("footer").map(c=>r.jsx("li",{children:r.jsx(ht,{to:c.to,className:"text-gray-400 hover:text-white transition-colors",children:n(LA(c,"footer"))})},c.id)),r.jsx("li",{children:r.jsx(ht,{to:_h.newsletterUrl,className:"text-gray-400 hover:text-white transition-colors",children:n("footer.newsletter")})}),r.jsx("li",{children:r.jsx("button",{onClick:()=>a(!0),className:"text-gray-400 hover:text-white transition-colors",children:n("footer.feedback")})})]})]}),r.jsx("div",{className:"flex flex-wrap justify-center items-center gap-8 md:gap-12 mb-12",children:_h.institutionalLogos.map((c,d)=>r.jsx("img",{src:c.src,alt:c.alt,className:"h-12 sm:h-16 md:h-24 max-w-[120px] sm:max-w-none w-auto object-contain"},d))}),r.jsxs("div",{className:"border-t border-gray-800 pt-8",children:[r.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 mb-8",children:[r.jsx("p",{className:"text-gray-500 text-sm",children:n("footer.copyright")}),r.jsx("div",{className:"flex gap-6",children:_h.legalLinks.map((c,d)=>r.jsx(ht,{to:c.url,className:"text-gray-500 text-sm hover:text-white transition-colors",children:n(c.labelKey)},d))})]}),r.jsx("p",{className:"text-center",children:r.jsx("a",{href:"https://clickz.fr",target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 text-xs hover:text-white transition-colors",children:"Réalisé par clickz.fr"})})]})]})})})}),e&&r.jsx(IA,{onClose:()=>a(!1)}),i&&r.jsxs("div",{className:"fixed inset-0 z-40 flex items-center justify-center",children:[r.jsx("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:()=>l(!1)}),r.jsxs("div",{className:"relative z-50 w-full max-w-sm bg-neutral-900 rounded-2xl shadow-xl p-6 mx-4 text-center space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h2",{className:"text-white text-lg font-bold",children:n("footer.contactDev")}),r.jsx("button",{type:"button",onClick:()=>l(!1),className:"text-gray-400 hover:text-white transition-colors text-xl leading-none",children:"×"})]}),r.jsx("p",{className:"text-gray-400 text-sm",children:n("footer.contactDevText")}),r.jsxs("div",{className:"flex flex-col gap-3",children:[r.jsxs("a",{href:"https://www.linkedin.com/in/joachim-duplat/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-3 w-full py-3 bg-[#0A66C2] text-white rounded-full font-medium text-sm hover:bg-[#004182] transition-colors",children:[r.jsx(YE,{className:"w-4 h-4"}),"LinkedIn"]}),r.jsxs("a",{href:"https://wa.me/33600000000",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-3 w-full py-3 bg-[#25D366] text-white rounded-full font-medium text-sm hover:bg-[#1da851] transition-colors",children:[r.jsx(ZE,{className:"w-4 h-4"}),"WhatsApp"]})]})]})]})]})};function X2(n=!1){const{data:e=[]}=tT(n),{data:a=[]}=nT(),{data:i=[]}=Im(),{data:l={}}=sT(),{data:c=ps}=D1();return{events:e,categories:a,genres:i,ticketStatusMap:l,colors:c}}const QA=8,KA=()=>{const{t:n,i18n:e}=Re(),{events:a,ticketStatusMap:i,colors:l}=X2(),[c,d]=S.useState(0),[f,h]=S.useState(0),m=S.useMemo(()=>{const A=new Date;return a.filter(M=>new Date(M.date)>=A).sort((M,H)=>new Date(M.date).getTime()-new Date(H.date).getTime()).slice(0,QA)},[a]),g=S.useCallback(A=>{d(A),h(M=>M+1)},[]),y=S.useCallback(()=>{g((c+1)%m.length)},[m.length,c,g]),b=S.useCallback(()=>{g((c-1+m.length)%m.length)},[m.length,c,g]),v=S.useCallback(()=>{d(A=>{const M=(A+1)%m.length;return h(H=>H+1),M})},[m.length]),{resetAutoplay:N}=Gm(v,m.length,5e3);function w(){y(),N()}function _(){b(),N()}if(m.length===0)return null;
157const k=m[c],E=f1(k,i),C=h1(k,i);return r.jsxs("div",{className:"overflow-hidden",children:[r.jsxs("div",{className:"flex items-center gap-4 mb-10",children:[r.jsx("span",{className:"text-neutral-400 text-xs tracking-[0.2em] uppercase whitespace-nowrap font-medium",children:n("agenda.featured")}),r.jsx("div",{className:"flex-1 h-px bg-neutral-800"}),m.length>1&&r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("button",{type:"button",onClick:_,className:"text-neutral-400 hover:text-white transition-colors p-1",children:r.jsx(Cu,{size:20,strokeWidth:1.5})}),r.jsx("button",{type:"button",onClick:w,className:"text-neutral-400 hover:text-white transition-colors p-1",children:r.jsx(Wv,{size:20,strokeWidth:1.5})})]})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-[2fr_3fr] gap-8 md:gap-12 items-center animate-slide-in-right",children:[r.jsx(ht,{to:"/events/"+k.id,className:"block group",children:r.jsx("div",{className:"aspect-[4/3] overflow-hidden rounded-2xl bg-neutral-900",children:k.imageUrl?r.jsx("img",{src:k.imageUrl,alt:k.title,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):r.jsx("div",{className:"w-full h-full bg-neutral-800"})})}),r.jsxs("div",{className:"flex flex-col justify-center",children:[r.jsx(ht,{to:"/events/"+k.id,children:r.jsx("h2",{className:"font-mango text-white text-7xl md:text-8xl lg:text-9xl uppercase leading-[0.9] hover:opacity-80 transition-opacity",children:k.title})}),r.jsxs("p",{className:"text-white text-xl md:text-2xl mt-6",children:[k.lieu,k.city&&r.jsxs("span",{className:"text-neutral-400",children:[" | ",k.city]})]}),r.jsx("p",{className:"text-neutral-400 text-lg mt-2",children:ho(k.date,e.language)}),C&&r.jsx("div",{className:"mt-8",children:r.jsx(Km,{status:E,ticketUrl:C,isShotgun:k.type==="shotgun",colors:l,size:"large"})})]})]},f)]})},YA=({activeFilterCount:n,onOpenFilterModal:e,showPast:a,onTogglePast:i})=>{const{t:l}=Re();return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"flex justify-center mb-6",children:r.jsxs("div",{className:"inline-flex rounded-full bg-neutral-900 p-1 border border-neutral-800",children:[r.jsx("button",{type:"button",onClick:()=>i(!1),className:"px-5 py-2 rounded-full text-sm font-medium transition-colors "+(a?"text-neutral-400 hover:text-white":"bg-white text-black"),"aria-pressed":!a,children:"À venir"}),r.jsx("button",{type:"button",onClick:()=>i(!0),className:"px-5 py-2 rounded-full text-sm font-medium transition-colors "+(a?"bg-white text-black":"text-neutral-400 hover:text-white"),"aria-pressed":a,children:"Archives"})]})}),r.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3 mb-12",children:[r.jsxs("button",{type:"button",onClick:()=>e(),className:"flex items-center gap-2 px-5 py-2.5 rounded-full text-sm font-medium transition-colors "+(n>0?"bg-white text-black":"bg-neutral-800 text-neutral-300 hover:bg-neutral-700"),children:[r.jsx(jE,{size:16}),l("agenda.filterBy"),n>0&&r.jsx("span",{className:"bg-black text-white text-xs font-bold rounded-full w-5 h-5 flex items-center justify-center",children:n})]}),r.jsxs("button",{type:"button",onClick:()=>e("categorie"),className:"flex items-center gap-2 px-5 py-2.5 rounded-full bg-neutral-800 text-neutral-300 hover:bg-neutral-700 text-sm font-medium transition-colors",children:[l("agenda.category"),r.jsx(s1,{size:18,strokeWidth:1.5})]}),r.jsxs("button",{type:"button",onClick:()=>e("genre"),className:"flex items-center gap-2 px-5 py-2.5 rounded-full bg-neutral-800 text-neutral-300 hover:bg-neutral-700 text-sm font-medium transition-colors",children:[l("agenda.genre"),r.jsx(Eu,{size:18,strokeWidth:1.5})]}),r.jsxs("button",{type:"button",onClick:()=>e("date"),className:"flex items-center gap-2 px-5 py-2.5 rounded-full bg-neutral-800 text-neutral-300 hover:bg-neutral-700 text-sm font-medium transition-colors",children:[l("agenda.date"),r.jsx(km,{size:18,strokeWidth:1.5})]})]})]})};function $A(n,e){const[a,i]=n.split("-"),c=new Date(parseInt(a),parseInt(i)-1).toLocaleDateString(e==="en"?"en-US":"fr-FR",{month:"long",year:"numeric"});return c.charAt(0).toUpperCase()+c.slice(1)}
157const XA=[{key:"categorie",label:"agenda.category",icon:r.jsx(s1,{size:18,strokeWidth:1.5})},{key:"genre",label:"agenda.genre",icon:r.jsx(Eu,{size:18,strokeWidth:1.5})},{key:"date",label:"agenda.date",icon:r.jsx(km,{size:18,strokeWidth:1.5})}],ZA=({open:n,onCloseFilterModal:e,categories:a,genres:i,availableMonths:l,lang:c,accentColor:d,accentTextColor:f,initialFilters:h,onApplyFilters:m,onResetFilters:g,initialTab:y})=>{const{t:b}=Re(),v=S.useRef(null),[N,w]=S.useState(y),[_,k]=S.useState(h.categoryId),[E,C]=S.useState(h.genre),[A,M]=S.useState(h.month);if(S.useEffect(()=>{n&&(k(h.categoryId),C(h.genre),M(h.month),w(y))},[n,h,y]),S.useEffect(()=>{function P(I){v.current&&!v.current.contains(I.target)&&e()}return n&&document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[n,e]),!n)return null;function H(){m({categoryId:_,genre:E,month:A})}function z(){k(null),C(null),M(null),g()}return r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",children:r.jsx("div",{ref:v,className:"bg-neutral-900 border border-neutral-800 rounded-none sm:rounded-2xl w-full h-full sm:h-auto sm:max-w-2xl sm:mx-4 overflow-hidden",children:r.jsxs("div",{className:"flex flex-col sm:flex-row min-h-full sm:min-h-95",children:[r.jsx("div",{className:"w-full sm:w-48 border-b sm:border-b-0 sm:border-r border-neutral-800 py-4 sm:py-6 px-4 flex sm:flex-col gap-1 overflow-x-auto",children:XA.map(P=>r.jsxs("button",{type:"button",onClick:()=>w(P.key),className:"flex items-center gap-3 px-3 py-2.5 rounded-lg text-left text-sm font-medium transition-colors "+(N===P.key?"text-white bg-neutral-800":"text-neutral-400 hover:text-white hover:bg-neutral-800/50"),children:[P.icon,b(P.label)]},P.key))}),r.jsxs("div",{className:"flex-1 py-6 px-6 flex flex-col",children:[r.jsx("div",{className:"flex justify-end mb-4",children:r.jsx("button",{type:"button",title:b("agenda.close"),onClick:e,className:"text-neutral-400 hover:text-white transition-colors",children:r.jsx(ra,{size:20})})}),r.jsxs("div",{className:"flex-1 overflow-y-auto",children:[N==="categorie"&&r.jsx("div",{className:"flex flex-wrap gap-2",children:a.map(P=>r.jsx("button",{type:"button",onClick:()=>k(_===P.id?null:P.id),className:"px-4 py-2 rounded-full text-sm transition-colors border "+(_===P.id?"bg-white text-black border-white font-medium":"text-neutral-300 border-neutral-700 hover:border-white hover:text-white"),children:P.name},P.id))}),N==="genre"&&r.jsx("div",{className:"flex flex-wrap gap-2",children:i.map(P=>r.jsx("button",{type:"button",onClick:()=>C(E===P.name?null:P.name),className:"px-4 py-2 rounded-full text-sm transition-colors border "+(E===P.name?"bg-white text-black border-white font-medium":"text-neutral-300 border-neutral-700 hover:border-white hover:text-white"),children:P.name},P.id))}),N==="date"&&r.jsxs("div",{className:"flex flex-col gap-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-xs uppercase tracking-wider text-neutral-500 mb-2",children:b("agenda.specificDate")}),r.jsx("input",{type:"date",value:/^\d{4}-\d{2}-\d{2}$/.test(A??"")?A:"",onChange:P=>M(P.target.value||null),className:"bg-neutral-800 border border-neutral-700 rounded-lg px-4 py-2 text-sm text-white focus:border-white outline-none"})]}),r.jsxs("div",{className:"flex flex-wrap gap-2",children:[[{key:"ce-soir",label:b("agenda.tonight")},{key:"ce-week-end",label:b("agenda.thisWeekend")},{key:"cette-semaine",label:b("agenda.thisWeek")}].map(P=>r.jsx("button",{type:"button",onClick:()=>M(A===P.key?null:P.key),className:"px-4 py-2 rounded-full text-sm font-medium transition-colors border "+(A===P.key?"bg-white text-black border-white":"text-neutral-300 border-neutral-700 hover:border-white hover:text-white"),children:P.label},P.key)),l.map(P=>r.jsx("button",{type:"button",onClick:()=>M(A===P?null:P),className:"px-4 py-2 rounded-full text-sm transition-colors border "+(A===P?"bg-white text-black border-white font-medium":"text-neutral-300 border-neutral-700 hover:border-white hover:text-white"),children:$A(P,c)},P))]})]})]}),r.jsxs("div",{className:"flex items-center justify-end gap-4 pt-6 border-t border-neutral-800 mt-4",children:[r.jsx("button",{type:"button",onClick:z,className:"text-neutral-400 hover:text-white text-sm font-medium transition-colors",children:b("agenda.reset")}),r.jsx("button",{type:"button",onClick:H,className:"text-sm font-semibold px-6 py-2.5 rounded-full hover:opacity-90 transition-opacity",style:{backgroundColor:d,c
157olor:f},children:b("agenda.apply")})]})]})]})})})},JA=({event:n,ticketStatus:e,ticketUrl:a,colors:i,lang:l})=>{const c=n.type==="shotgun",d=new Date(n.date)<new Date;return r.jsxs("div",{className:"flex flex-col",children:[r.jsxs(ht,{to:"/events/"+n.id,className:"block group relative",children:[r.jsx("div",{className:"aspect-4/5 overflow-hidden rounded-xl",children:n.mobileImageUrl||n.imageUrl?r.jsx("img",{src:ia(n.mobileImageUrl)??n.imageUrl??"",alt:n.title,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):r.jsx("div",{className:"w-full h-full bg-neutral-800"})}),r.jsx("div",{className:"absolute bottom-4 right-4 w-10 h-10 rounded-full bg-white/20 backdrop-blur-sm flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:r.jsx(eo,{size:16,color:"white"})})]}),r.jsxs("div",{className:"mt-4 flex flex-col flex-1",children:[r.jsx(ht,{to:"/events/"+n.id,children:r.jsx("h3",{className:"font-mango-bold text-white text-3xl md:text-4xl uppercase leading-tight hover:opacity-80 transition-opacity",children:n.title})}),r.jsxs("p",{className:"text-neutral-500 text-sm mt-1",children:[n.lieu,n.city&&" | "+n.city]}),r.jsx("p",{className:"text-neutral-400 text-sm mt-1",children:ho(n.date,l)}),n.genres.length>0&&r.jsx("div",{className:"flex flex-wrap gap-1.5 mt-2",children:n.genres.map(f=>r.jsx("span",{className:"text-[11px] font-medium px-2.5 py-1 rounded-full bg-neutral-800 text-neutral-400",children:f},f))}),!d&&r.jsx("div",{className:"mt-auto pt-3",children:r.jsx(Km,{status:e,ticketUrl:a,isShotgun:c,colors:i})})]})]})},Eh=8;function WA(n){const e=new Set;for(const a of n){const i=new Date(a.date),l=i.getUTCFullYear()+"-"+String(i.getUTCMonth()+1).padStart(2,"0");e.add(l)}return Array.from(e).sort()}const eM=()=>{const{t:n,i18n:e}=Re(),[a,i]=qv(),l=a.get("past")==="1",{events:c,categories:d,genres:f,ticketStatusMap:h,colors:m}=X2(l),[g,y]=S.useState(Eh),b=S.useCallback(U=>{i(W=>{const he=new URLSearchParams(W);return U?he.set("past","1"):he.delete("past"),he})},[i]),[v,N]=S.useState(null),[w,_]=S.useState(null),[k,E]=S.useState(null),[C,A]=S.useState(!1),[M,H]=S.useState("categorie"),z=S.useMemo(()=>WA(c),[c]),P=S.useMemo(()=>c.filter(U=>{if(v!==null&&U.category?.id!==v||w!==null&&!U.genres.includes(w))return!1;if(k!==null){const W=new Date(U.date),he=new Date;if(k==="ce-soir"){if(W.toDateString()!==he.toDateString())return!1}else if(k==="ce-week-end"){const fe=he.getDay(),O=new Date(he);O.setDate(he.getDate()+(fe<=5?5-fe:0)),O.setHours(0,0,0,0);const B=new Date(O);if(B.setDate(O.getDate()+2),B.setHours(23,59,59,999),W<O||W>B)return!1}else if(k==="cette-semaine"){const fe=new Date(he);fe.setDate(he.getDate()-he.getDay()+1),fe.setHours(0,0,0,0);const O=new Date(fe);if(O.setDate(fe.getDate()+6),O.setHours(23,59,59,999),W<fe||W>O)return!1}else if(/^\d{4}-\d{2}-\d{2}$/.test(k)){const fe=new Date(U.date);if(fe.getUTCFullYear()+"-"+String(fe.getUTCMonth()+1).padStart(2,"0")+"-"+String(fe.getUTCDate()).padStart(2,"0")!==k)return!1}else{const fe=new Date(U.date);if(fe.getUTCFullYear()+"-"+String(fe.getUTCMonth()+1).padStart(2,"0")!==k)return!1}}return!0}),[c,v,w,k]);S.useEffect(()=>{y(Eh)},[v,w,k,l]),S.useEffect(()=>{if(l||c.length===0)return;const U=new Date,W=c.filter(O=>new Date(O.date)>=U).slice(0,30);if(W.length===0)return;const he={"@context":"https://schema.org","@type":"ItemList",name:"Concerts a venir au Makeda - Marseille",numberOfItems:W.length,itemListElement:W.map((O,B)=>({"@type":"ListItem",position:B+1,item:{"@type":"MusicEvent",name:O.title,startDate:O.date,url:"https://lemakeda.com/events/"+O.id,...O.imageUrl&&{image:O.imageUrl},location:{"@type":"MusicVenue",name:O.lieu||"Le Makeda",address:{"@type":"PostalAddress",addressLocality:O.city||"Marseille",addressCountry:"FR"}}}}))},fe=document.createElement("script");return fe.type="application/ld+json",fe.id="agenda-jsonld",fe.textContent=JSON.stringify(he),document.getElementById("agenda-jsonld")?.remove(),document.head.appendChild(fe),()=>{document.getElementById("agenda-jsonld")?.remove()}},[c,l]);const I=P.slice(0,g),G=g<P.length;function ne(){y(U=>U+Eh)}const L=(v!==null?1:0)+(w!==null?1:0)+(k!==null?1:0);function $(U){H(U??"categorie"),A(!0)}const se=S.useCallback(()=>{A(!1)},[]),oe=S.useCallback(U=>{N(U.categoryId),_(U.genre),E(U.month),A(!1)},[]),R=S.useCallback(()=>{N(null),_(null),E(null),A(!1)},[]);return r.jsxs("div",{className:"mt-24",children:[r.jsx(YA,{activeFilterCount:L,onOpenFilterModal:$,showPast:l,onTogglePast:b}),r.jsx(ZA,{open:C,onCloseFilterModal:se,categories:d,genres:f,availableMonths:z,lang:e.language,accentColor:m.ticketAvailableColor,accentTextColor:m.ticketAvailableTextColor,initialFilters:{categoryId:v,genre:w,month:k},onApplyFilters:oe,onResetFilters:R,initialTab:M}),P.length===0?r.jsx("p",{className:"text-neutral-500 text-center py-16 text-lg",children:n("agenda.noEventFound")}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:I.map(U=>r.jsx(JA,{event:U,ticketStatus:f1(U,h),ticketUrl:h1(U,h),colors:m,lang:e.language},U.id))}),G&&r.jsx("div",{className:"flex justify-center mt-12",children:r.jsxs("button",{type:"button",onClick:ne,className:"inline-flex items-center gap-3 bg-white text-black font-medium text-lg px-8 py-4 rounded-full hover:bg-neutral-200 transition-colors",children:[n("agenda.loadM
157ore"),r.jsx("span",{className:"flex items-center justify-center w-8 h-8 rounded-full bg-black text-white",children:r.jsx(t1,{size:16,strokeWidth:2.5})})]})})]})]})},tM=()=>{const{i18n:n}=Re(),[e]=qv(),a=e.get("past")==="1",i=Ai("agenda"),l=S.useMemo(()=>{const c=new Date,d=c.toLocaleDateString(n.language==="en"?"en-US":"fr-FR",{month:"long"}),f=c.getFullYear();return n.language==="en"?`Concerts in Marseille ${d} ${f} - Discover all upcoming events at Le Makeda, live music venue. Rap, electronic, pop, rock, world music and more.`:`Concerts a Marseille ${d} ${f} - Retrouvez tous les evenements a venir au Makeda, salle de musiques actuelles. Rap, electronique, pop, rock, world et plus.`},[n.language]);return Ya({title:"Agenda - Concerts a Marseille",description:l,path:"/agenda",overrides:i}),r.jsxs("div",{className:"bg-black min-h-screen pt-32 px-4 sm:px-8 md:px-16 pb-24",children:[r.jsx("h1",{className:"font-mango text-white text-[16vw] sm:text-[20vw] md:text-[16vw] lg:text-[14vw] uppercase leading-[0.85] min-h-[1em] mb-16",children:a?"Archives":"Agenda"}),!a&&r.jsx(KA,{}),r.jsx(eM,{})]})};function nM(){const n=document.getElementById("event-detail-billetterie");n&&n.scrollIntoView({behavior:"smooth"})}const sM=({event:n})=>{const{t:e,i18n:a}=Re(),i=n.type==="shotgun",l=n.title,c=[n.venueName,n.city].filter(Boolean).join(" -- ");return r.jsxs("div",{className:"relative h-screen w-full overflow-hidden",children:[r.jsx("div",{className:"absolute inset-0 bg-cover bg-center",style:{backgroundImage:n.imageUrl?"url("+n.imageUrl+")":void 0},children:r.jsx("div",{className:"absolute inset-0 bg-black/50"})}),r.jsxs("div",{className:"relative z-10 h-full flex flex-col justify-end pb-24 px-4 sm:px-8 md:px-16 text-white",children:[r.jsx("h1",{className:"font-mango text-5xl sm:text-6xl md:text-7xl lg:text-8xl xl:text-9xl font-bold mb-4",children:l}),!i&&n.artists.length>0&&r.jsx("p",{className:"text-2xl md:text-3xl mb-4 opacity-90",children:n.artists.map(d=>d.name).join(", ")}),n.genres.length>0&&r.jsx("div",{className:"flex flex-wrap gap-2 mb-4",children:n.genres.map(d=>r.jsx("span",{className:"border border-white/60 text-white text-sm px-3 py-1 rounded-full",children:d},d))}),c&&r.jsx("p",{className:"text-2xl md:text-3xl mb-2",children:c}),r.jsx("p",{className:"text-lg mb-8 opacity-80",children:f5(n.startTime,a.language)}),r.jsx("div",{className:"flex flex-wrap gap-4",children:n.ticketUrl&&r.jsx("button",{type:"button",onClick:nM,className:"inline-block bg-white text-black px-8 py-4 text-lg font-bold hover:bg-gray-200 transition-colors rounded-full",children:e("eventDetail.ticketing")})})]})]})},aM=({description:n})=>n?r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-8 md:p-10 max-h-[36rem] flex flex-col",children:[r.jsx("h2",{className:"font-mango text-white text-6xl md:text-7xl mb-6 shrink-0",children:"Description"}),r.jsx("hr",{className:"border-neutral-700 mb-6 shrink-0"}),r.jsx("div",{className:"overflow-y-auto flex-1 min-h-0",children:r.jsx("p",{className:"text-neutral-300 text-lg leading-relaxed whitespace-pre-line",children:n})})]}):null,iM=({ticketUrl:n,soldOut:e,eventType:a})=>{const{t:i}=Re(),l=a==="shotgun";return u1(l),r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-8 md:p-10",children:[r.jsx("h2",{className:"font-mango text-white text-4xl sm:text-5xl md:text-6xl lg:text-7xl mb-6",children:i("eventDetail.ticketing")}),r.jsx("hr",{className:"border-neutral-700 mb-6"}),e?r.jsx("p",{className:"text-neutral-400 text-lg italic",children:i("eventDetail.allTicketsSold")}):l?r.jsx(d1,{ticketUrl:n,iframeClassName:"w-full border-0 rounded-lg",iframeStyle:{height:"min(352px, 60vh)"},fallbackTextSize:"text-xs"}):r.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"inline-block bg-white text-black px-6 py-3 text-base font-bold hover:bg-gray-200 transition-colors rounded-full",children:i("eventDetail.reserveTicket")})]})};function rM(n,e){if(n.length===0)return"";const a=n.filter(c=>c.price>0).map(c=>c.price);if(a.length===0)return e("eventDetail.free");const i=Math.min(...a),l=Number.isInteger(i)?String(i):i.toFixed(2).replace(".",",");return e("eventDetail.priceFrom",{price:l})}function lM(n,e){const a=[],i=n.split(`
158`).map(l=>
158l.trim()).filter(Boolean);for(const l of i){const c=l.toLowerCase();c.startsWith("métro")||c.startsWith("metro")?a.push({icon:r.jsx(_E,{size:22}),label:e("eventDetail.metro"),value:l}):c.startsWith("bus")?a.push({icon:r.jsx(e1,{size:22}),label:e("eventDetail.bus"),value:l}):c.startsWith("parking")?a.push({icon:r.jsx(V_,{size:22}),label:e("eventDetail.parking"),value:l}):c.includes("pmr")||c.includes("handicap")||c.includes("accessib")?a.push({icon:r.jsx(D_,{size:22}),label:e("eventDetail.accessibility"),value:l}):a.push({icon:r.jsx(_u,{size:22}),label:e("eventDetail.access"),value:l})}return a}const oM=({event:n})=>{const{t:e,i18n:a}=Re(),i=xb(n.startTime),l=n.endTime?xb(n.endTime):null,c=e("eventDetail.scheduleFrom",{start:i})+(l?" "+e("eventDetail.scheduleTo",{end:l}):""),d=n.price?n.price:n.deals.length>0?rM(n.deals,e):null,f=[];f.push({icon:r.jsx(km,{size:22}),label:e("eventDetail.dateLabel"),value:ho(n.startTime,a.language)}),n.infosPratiques.doorsOpen?f.push({icon:r.jsx(iu,{size:22}),label:e("eventDetail.doorsOpen"),value:n.infosPratiques.doorsOpen}):f.push({icon:r.jsx(iu,{size:22}),label:e("eventDetail.schedule"),value:c}),d&&f.push({icon:r.jsx(Yc,{size:22}),label:e("eventDetail.price"),value:d}),n.infosPratiques.address&&f.push({icon:r.jsx(_u,{size:22}),label:e("eventDetail.address"),value:n.infosPratiques.address});const h=n.infosPratiques.access?lM(n.infosPratiques.access,e):[];return r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-8 md:p-10",children:[r.jsx("h2",{className:"font-mango text-white text-4xl sm:text-5xl md:text-6xl lg:text-7xl mb-8",children:e("eventDetail.infoPratiques")}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[r.jsx("div",{className:"flex flex-col gap-5",children:f.map((m,g)=>r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("span",{className:"text-neutral-400 shrink-0 mt-1",children:m.icon}),r.jsxs("div",{children:[r.jsx("p",{className:"text-neutral-500 text-sm",children:m.label}),r.jsx("p",{className:"text-white text-xl whitespace-pre-line",children:m.value})]})]},g))}),h.length>0&&r.jsx("div",{className:"flex flex-col gap-5",children:h.map((m,g)=>r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("span",{className:"text-neutral-400 shrink-0 mt-1",children:m.icon}),r.jsxs("div",{children:[r.jsx("p",{className:"text-neutral-500 text-sm",children:m.label}),r.jsx("p",{className:"text-white text-xl",children:m.value})]})]},g))})]}),n.legalMentions&&r.jsx("div",{className:"mt-6 pt-6 border-t border-neutral-800",children:r.jsx("p",{className:"text-neutral-400 text-sm leading-relaxed whitespace-pre-line",children:n.legalMentions})})]})};function Z2(n){return sn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"},child:[]},{tag:"path",attr:{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"},child:[]}]})(n)}function cM(n){return n.includes("facebook.com")?"facebook":n.includes("instagram.com")?"instagram":n.includes("twitter.com")||n.includes("x.com")?"x":n.includes("open.spotify.com")?"spotify":n.includes("music.apple.com")?"applemusic":n.includes("deezer.com")?"deezer":n.includes("youtube.com")||n.includes("youtu.be")?"youtube":n.includes("soundcloud.com")?"soundcloud":"link"}const uM={facebook:QE,instagram:KE,x:c6,spotify:XE,applemusic:IE,deezer:GE,youtube:o1,soundcloud:$E,link:Z2};function dM({url:n}){const e=cM(n),a=uM[e]||Z2;return r.jsx(a,{size:24})}function fM(n){S.useEffect(()=>{if(!n)return;const e=n.deals.length>0?Math.min(...n.deals.map(l=>l.price)):null,a={"@context":"https://schema.org","@type":"MusicEvent",name:n.title,startDate:n.startTime,...n.endTime&&{endDate:n.endTime},...n.description&&{description:n.description.slice(0,300)},...n.imageUrl&&{image:n.imageUrl},eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",location:{"@type":"MusicVenue",name:n.venueName||"Le Makeda",address:{"@type":"PostalAddress",streetAddress:n.address||"",addressLocality:n.city||"Marseille",postalCode:n.zipCode||"",addressCountry:"FR"},...n.geolocation?.latitude&&n.geolocation?.longitude&&{geo:{"@type":"GeoCoordinates",latitude:n.geolocation.latitude,longitude:n.geolocation.longitude}}}
158,performer:n.artists.map(l=>({"@type":"MusicGroup",name:l.name})),organizer:{"@type":"Organization",name:"Le Makeda",url:"https://lemakeda.com"}};n.ticketUrl&&!n.soldOut?a.offers={"@type":"Offer",url:n.ticketUrl,availability:"https://schema.org/InStock",...e!==null&&{price:e,priceCurrency:"EUR"}}:n.soldOut&&(a.offers={"@type":"Offer",availability:"https://schema.org/SoldOut",...e!==null&&{price:e,priceCurrency:"EUR"}});const i=document.createElement("script");return i.type="application/ld+json",i.id="event-jsonld",i.textContent=JSON.stringify(a),document.getElementById("event-jsonld")?.remove(),document.head.appendChild(i),()=>{document.getElementById("event-jsonld")?.remove()}},[n])}const hM=()=>{const{t:n}=Re(),{id:e}=Av(),{data:a,isLoading:i,error:l}=eT(e);return Ya({title:a?.title||"Evenement",description:a?.description?.slice(0,160)||"Decouvrez cet evenement au Makeda, salle de concerts a Marseille.",path:`/events/${e}`,image:a?.imageUrl??void 0,type:"event"}),fM(a??null),i?r.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:r.jsx("p",{className:"text-neutral-400 text-lg",children:n("eventDetail.loading")})}):l||!a?r.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:r.jsx("p",{className:"text-neutral-400 text-lg",children:n(l?"eventDetail.loadError":"eventDetail.notFound")})}):r.jsxs("div",{className:"bg-black",children:[r.jsx(sM,{event:a}),r.jsx("section",{className:"py-16 px-4 sm:px-8 md:px-16",children:r.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-10 items-start",children:[r.jsx(aM,{description:a.description}),a.ticketUrl?r.jsx("div",{id:"event-detail-billetterie",children:r.jsx(iM,{ticketUrl:a.ticketUrl,soldOut:a.soldOut,eventType:a.type})}):r.jsx("div",{}),r.jsx("div",{className:"lg:col-span-2",children:r.jsx(oM,{event:a})}),[...a.artists].sort((c,d)=>{const f=c.embedUrls&&c.embedUrls.length>0&&c.embedUrls[0],h=d.embedUrls&&d.embedUrls.length>0&&d.embedUrls[0];return f&&!h?-1:!f&&h?1:0}).map(c=>{const d=c.embedUrls&&c.embedUrls.length>0&&c.embedUrls[0];return r.jsxs(S.Fragment,{children:[r.jsxs("div",{className:"bg-neutral-900 border border-neutral-800 rounded-lg p-6 sm:p-8 md:p-10 max-h-[70vh] sm:max-h-128 flex flex-col",children:[r.jsxs("div",{className:"flex gap-5 items-center mb-6 shrink-0",children:[c.avatar&&r.jsx("img",{src:c.avatar,alt:c.name,className:"w-16 h-16 rounded-full object-cover shrink-0"}),r.jsx("h2",{className:"font-mango text-white text-4xl sm:text-5xl md:text-6xl lg:text-7xl",children:c.name})]}),r.jsx("hr",{className:"border-neutral-700 mb-6 shrink-0"}),r.jsx("div",{className:"overflow-y-auto flex-1 min-h-0",children:c.bio&&r.jsx("p",{className:"text-neutral-300 text-lg leading-relaxed whitespace-pre-line",children:c.bio})}),c.socialLinks&&c.socialLinks.length>0&&r.jsx("div",{className:"flex gap-4 mt-6 shrink-0",children:c.socialLinks.map((f,h)=>r.jsx("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"text-neutral-400 hover:text-white transition-colors",children:r.jsx(dM,{url:f})},h))})]}),d?r.jsx(c1,{embedUrls:[c.embedUrls[0]]}):r.jsx("div",{})]},c.name)})]})})]})},mM=()=>{const{pathname:n}=Vn();return S.useEffect(()=>{window.scrollTo(0,0)},[n]),null},pM=()=>{const{t:n}=Re(),[e,a]=S.useState(0),[i,l]=S.useState("loading");return S.useEffect(()=>{const c=Date.now(),d=1800;function f(){const m=Date.now()-c,g=Math.min(1,m/d),y=1-Math.pow(1-g,3);a(y*100),g<1&&requestAnimationFrame(f)}requestAnimationFrame(f);function h(){const m=Date.now()-c,g=Math.max(0,d-m);setTimeout(()=>{a(100),setTimeout(()=>l("bienvenue"),400),setTimeout(()=>l("fadeout"),1800),setTimeout(()=>l("done"),2400)},g)}if(document.readyState==="complete")h();else return window.addEventListener("load",h),()=>window.removeEventListener("load",h)},[]),i==="done"?null:r.jsx("div",{className:"fixed inset-0 z-[100] bg-black flex items-center justify-center transition-transform duration-700 ease-in-out "+(i==="fadeout"?"-translate-y-full":"translate-y-0"),children:r.jsxs("div",{className:"flex flex-col items-center",children:[r.jsx("img",{src:qr,alt:"Makeda",className:"h-12 mb-6"}),r.jsxs("div",{className:"h-6 relative",children:[r.jsx("span",{className:"text-white/50 text-xs uppercase tracking-[0.3em] transition-all duration-500 absolute left-1/2 -translate-x-1/2 whitespace-nowrap "+(i==="loading"?"opacity-100 translate-y-0":"opacity-0 -translate-y-4"),children:n("loadingScreen.loading")}),r.jsx("span",{className:"text-white/50 text-xs uppercase tracking-[0.3em] transition-all duration-500 absolute left-1/2 -translate-x-1/2 whitespace-nowrap "+(i==="bienvenue"||i==="fadeout"?"opacity-100 translate-y-0":"opacity-0 translate-y-4"),children:n("loadingScreen.welcome")})]}),r.jsx("div",{className:"w-48 h-[2px] bg-white/10 rounded-full overflow-hidden mt-6",children:r.jsx("div",{className:"h-full bg-green-500 transition-all duration-200 ease-out",style:{width:e+"%"}})})]})})},gM=()=>{const[n,e]=S.useState(!1);return S.useEffect(()=>{const a=()=>{e(window.scrollY>50)};return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)},[]),r.jsxs(r.Fragment,{children:[r.jsx(pM,{}),r.jsx(mM,{}),r.jsx(qA,{scrolled:n}),r.jsxs(xm,{children:[r.jsx(nt,{path:"/",element:r.jsx(wT,{})}),r.jsx(nt,{path:"/agenda",element:r.jsx(tM,{})}),r.jsx(nt,{path:"/events/:id",element:r.jsx(hM,{})}),r.jsx(nt,{path:"/tremplin",element:r.jsx(_8,{})}),r.jsx(nt,{path:"/le-projet",element:r.jsx(zT,{})}),r.jsx(nt,{path:"/activites",element:r.jsx(U8,{})}),r.jsx(nt,{path:"/espace-pro",element:r.jsx(Z8,{})}),r.jsx(nt,{path:"/contact",element:r.jsx(m6,{})}),r.jsx(nt,{path:"/le-makeda",element:r.jsx(nu,{to:"/le-projet",replace:!0})}),r.jsx(nt,{path:"/association",element:r.jsx(nu,{to:"/activites",replace:!0})})]}),r.jsx(GA,{})]})},ov="makeda-cookies-accepted",xM=()=>{const{t:n}=Re(),[e,a]=S.useState(!1),[i,l]=S.useState(!1),{register:c,handleSubmit:d,formState:{isValid:f}}=Vr({mode:"onChange",defaultValues:{email:""}});S.useEffect(()=>{if(!localStorage.getItem(ov)){const g=setTimeout(()=>a(!0),1e4);return()=>clearTimeout(g)}},[]);const h=()=>{localStorage.setItem(ov,"true"),a(!1)},m=async g=>{await new Promise(y=>setTimeout(y,500)),l(!0)};return r.jsx("div",{className:"fixed bottom-6 left-6 z-50 w-[90vw] max-w-sm transition-all duration-500 ease-out "+(e?"translate-y-0 opacity-100":"translate-y-8 opacity-0 pointer-events-none"),children:r.jsxs("div",{className:"bg-white rounded-3xl shadow-2xl overflow-hidden",children:[r.jsx("div",{className:"absolute top-0 right-0 w-24 h-24 bg-[#0008FF] rounded-full blur-3xl op
158acity-15 -translate-y-1/2 translate-x-1/2"}),r.jsxs("div",{className:"relative p-5 space-y-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-gray-500 text-xs",children:n("cookies.greeting")}),r.jsx("h2",{className:"text-[#0008FF] text-xl font-bold mt-0.5",children:n("cookies.title")})]}),r.jsx("p",{className:"text-gray-600 text-xs leading-relaxed",children:n("cookies.message")}),r.jsxs("div",{className:"bg-gray-50 rounded-xl p-4 space-y-2",children:[r.jsx("p",{className:"text-gray-700 text-sm font-semibold",children:n("cookies.whatWeStore")}),r.jsxs("ul",{className:"text-gray-600 text-sm leading-relaxed space-y-1",children:[r.jsx("li",{children:n("cookies.storeLang")}),r.jsx("li",{children:n("cookies.storeConsent")})]}),r.jsx("p",{className:"text-gray-500 text-sm italic pt-1",children:n("cookies.noTracking")})]}),i?r.jsx("div",{className:"bg-gray-50 rounded-xl p-3",children:r.jsx("p",{className:"text-[#0008FF] text-xs text-center font-medium",children:n("cookies.subscribed")})}):r.jsxs("div",{className:"bg-gray-50 rounded-xl p-3 space-y-2",children:[r.jsx("p",{className:"text-gray-700 text-xs font-medium",children:n("cookies.newsletterCta")}),r.jsxs("form",{onSubmit:d(m),className:"flex gap-2",children:[r.jsx("input",{type:"email",placeholder:n("cookies.emailPlaceholder"),...c("email",{required:!0}),className:"flex-1 min-w-0 bg-white border border-gray-300 rounded-full px-3 py-2 text-gray-900 text-xs placeholder-gray-400 focus:border-[#0008FF] focus:outline-none transition-colors"}),r.jsx("button",{type:"submit",disabled:!f,className:"px-4 py-2 bg-[#0008FF] text-white rounded-full text-xs font-semibold hover:bg-[#0006CC] transition-colors shrink-0 disabled:opacity-50",children:n("cookies.subscribe")})]})]}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("button",{type:"button",onClick:h,className:"w-full py-2.5 bg-[#0008FF] text-white rounded-full text-sm font-semibold hover:bg-[#0006CC] transition-colors",children:n("cookies.accept")}),r.jsx("div",{className:"flex justify-center",children:r.jsx(ht,{to:"/confidentialite",onClick:h,className:"text-gray-400 text-[10px] hover:text-[#0008FF] transition-colors underline",children:n("cookies.privacy")})})]})]})]})})},cv="makeda-install-dismissed";function yM(){const[n,e]=S.useState(!1),[a,i]=S.useState("prompt"),l=S.useRef(null);S.useEffect(()=>{if(window.matchMedia("(display-mode: standalone)").matches||navigator.standalone)return;const f=localStorage.getItem(cv);if(f&&Date.now()-Number(f)<10080*60*1e3)return;const h=navigator.userAgent,m=/iPad|iPhone|iPod/.test(h)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,g=/Chrome/.test(h)&&!/Edge/.test(h);if(m){i("ios");const N=setTimeout(()=>e(!0),3e3);return()=>clearTimeout(N)}let y=!1;function b(N){N.preventDefault(),l.current=N,y=!0,i("prompt"),setTimeout(()=>e(!0),3e3)}window.addEventListener("beforeinstallprompt",b);const v=setTimeout(()=>{!y&&g&&(i("chrome"),e(!0))},4e3);return()=>{window.removeEventListener("beforeinstallprompt",b),clearTimeout(v)}},[]);function c(){e(!1),localStorage.setItem(cv,String(Date.now()))}async function d(){if(l.current){await l.current.prompt();const{outcome:f}=await l.current.userChoice;f==="accepted"&&e(!1),l.current=null}}return n?r.jsx("div",{className:"fixed bottom-4 left-4 right-4 z-50 md:left-auto md:right-4 md:max-w-sm animate-slide-up",children:r.jsxs("div",{className:"bg-neutral-900 border border-neutral-700 rounded-2xl p-4 shadow-2xl flex items-start gap-3",children:[r.jsx("img",{src:"/icons/icon-192x192.png",alt:"Makeda",className:"w-10 h-10 rounded-lg shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-white text-sm font-medium",children:"Installer Le Makeda"}),a==="ios"?r.jsxs("div",{className:"text-neutral-400 text-xs mt-1 space-y-1",children:[r.jsxs("p",{children:["1. Appuie sur ",r.jsx("span",{className:"inline-block align-middle",children:r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"inline text-blue-400",children:[r.jsx("path",{d:"M4 12v8a2 2 0 002 2h12a2 2 0 002-2v-8"}),r.jsx("polyline",{points:"16 6 12 2 8 6"}),r.jsx("line",{x1:"12",y1:"2",x2:"12",y2:"15"})]})})]}),r.jsxs("p",{children:["2. Fais défiler et appuie sur ",r.jsx("strong",{className:"text-white",children:"Plus"})]}),r.jsxs("p",{children:["3. Appuie sur ",r.jsx("strong",{className:"text-white",children:"+ Sur l'écran d'accueil"})]})]}):a==="chrome"?r.jsxs("div",{className:"text-neutral-400 text-xs mt-1 space-y-1",children:[r.jsxs("p",{children:["1. Appuie sur ",r.jsx("strong",{className:"text-white",children:"⋮"})," (menu)"]}),r.jsxs("p",{children:["2. Appuie sur ",r.jsx("strong",{className:"text-white",children:"Installer l'application"})," ou ",r.jsx("strong",{className:"text-white",children:"Ajouter à l'écran d'accueil"})]})]}):r.jsx("button",{type:"button",onClick:d,className:"mt-2 text-xs font-medium px-4 py-1.5 rounded-full bg-white text-black hover:bg-neutral-200 transition-colors",children:"Installer"})]}),r.jsx("button",{type:"button",onClick:c,className:"text-neutral-500 hover:text-white shrink-0",children:r.jsx(ra,{size:16})})]})}):null}const bM=()=>{const[n,e]=S.useState(""),[a,i]=S.useState(""),[l,c]=S.useState(""),[d,f]=S.useState(!1),h=zr(),m=Ia(y=>y.login),g=async y=>{y.preventDefault(),c(""),f(!0);try{const b=await I3(n,a);m(b.user,b.access_token),h("/admin")}catch(b){b.message==="Bad credentials"?c("Email ou mot de passe incorrect"):c("Erreur de connexion")}finally{f(!1)}};return r.jsx("div",{className:"min-h-screen bg-gray-950 flex items-center justify-center px-4",children:r.jsxs("div",{className:"w-full max-w-sm",children:[r.jsx("h1",{className:"text-2xl font-bold text-white text-center mb-8",children:"Makeda Admin"}),r.jsxs("form",{onSubmit:g,className:"space-y-4",children:[l&&r.jsx("div",{className:"text-sm text-red-400 bg-red-500/10 border border-red-500/20 rounded-lg px-4 py-3",children:l}),r.jsxs("div",{children:[r.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-400 mb-1",children:"Email"}),r.jsx("input",{id:"email",type:"email",required:!0,autoFocus:!0,value:n,onChange:y=>e(y.target.value),className:"w-full rounded-lg border border-gray-700 bg-gray-900 px-4 py-2.5 text-white placeholder-gray-500 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500",placeholder:"[email protected]"})]}),r.jsxs("div",{children:[r.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-gray-400 mb-1",children:"Mot de passe"}),r.jsx("input",{id:"password",type:"password",required:!0,value:a,onChange:y=>i(y.target.value),className:"w-full rounded-lg border border-gray-700 bg-gray-900 px-4 py-2.5 text-white placeholder-gray-500 focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500"})]}),r.jsx("button",{type:"submit",disabled:d,className:"w-full rounded-lg bg-indigo-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-indigo-500 disabled:opacity-50 transition-colors",children:d?"Connexion...":"Se connecter"})]})]})})};function vM(){const n="makeda_device_id";let e=localStorage.getItem(n);return e||(e=crypto.randomUUID(),localStorage.setItem(n,e)),e}const jM=43.2927,wM=5.3842,NM=200;function SM(n,e,a,i){const c=m=>m*Math.PI/180,d=c(a-n),f=c(i-e),h=Math.sin(d/2)**2+Math.cos(c(n))*Math.cos(c(a))*Math.sin(f/2)**2;return 6371e3*2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h))}const CM=()=>{const{eventId:n}
158=Av(),e=Number(n),{data:a,isLoading:i}=rt({queryKey:["eventVotePage",e],queryFn:()=>Xk(e),enabled:!!n&&!isNaN(e),staleTime:6e4,retry:2}),l=a?.voteDeadline?new Date(a.voteDeadline)<new Date:!1,{data:c}=rt({queryKey:["eventPublicResults",e],queryFn:()=>Zk(e),enabled:l,staleTime:6e4}),[d,f]=S.useState([]),[h,m]=S.useState(null),[g,y]=S.useState("pending"),[b,v]=S.useState(!1),[N,w]=S.useState(null),[_,k]=S.useState([]),[E,C]=S.useState(null),[A,M]=S.useState(!1),H=De({mutationFn:R=>Jk(e,{artistName:R,deviceId:vM(),lat:N.lat,lng:N.lng})});S.useEffect(()=>{function R(U){U.preventDefault(),C(U)}return window.addEventListener("beforeinstallprompt",R),()=>window.removeEventListener("beforeinstallprompt",R)},[]),S.useEffect(()=>{if(n){const R=localStorage.getItem("makeda_votes_"+n);R&&k(JSON.parse(R))}},[n]);function z(){if(!navigator.geolocation){y("unavailable");return}y("pending"),navigator.geolocation.getCurrentPosition(R=>{const{latitude:U,longitude:W}=R.coords;w({lat:U,lng:W}),y("granted");const he=SM(U,W,jM,wM);v(he<=NM)},()=>y("denied"),{enableHighAccuracy:!0,timeout:1e4})}S.useEffect(()=>{z()},[]);function P(R){_.includes(R)||f(U=>U.includes(R)?U.filter(W=>W!==R):U.length<2?[...U,R]:U)}async function I(){if(!N||!n||H.isPending||d.length===0)return;m(null);const R=[..._];for(const U of d)try{await H.mutateAsync(U),R.push(U)}catch(W){m({type:"error",message:W.message||"Erreur lors du vote"})}k(R),f([]),localStorage.setItem("makeda_votes_"+n,JSON.stringify(R)),(!h||h.type!=="error")&&m({type:"success",message:"Votes enregistres ! Merci."})}async function G(){E&&(E.prompt(),await E.userChoice,C(null))}if(i)return r.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-2 border-neutral-500 border-t-transparent rounded-full animate-spin"})});if(!a)return r.jsx("div",{className:"min-h-screen bg-black flex items-center justify-center",children:r.jsx("p",{className:"text-neutral-500",children:"Evenement introuvable"})});const ne=a.accentColor||Mm,L=window.matchMedia("(display-mode: standalone)").matches,$=/iPad|iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,se=!L&&(E||$),oe=H.isPending;return r.jsx("div",{className:"min-h-screen bg-black px-4 py-6 flex flex-col items-center justify-center",children:r.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[A&&r.jsxs("div",{className:"mb-4 px-4 py-3 rounded-xl bg-white/10 border border-white/10 text-center relative",children:[r.jsx("button",{type:"button",onClick:()=>M(!1),className:"absolute top-2 right-2 text-neutral-500 hover:text-white",children:r.jsx(ra,{size:14})}),r.jsx("p",{className:"text-white text-sm font-medium mb-1",children:"Ajouter a l'ecran d'accueil"}),r.jsxs("p",{className:"text-neutral-400 text-xs",children:["Appuyez sur ",r.jsx(bE,{size:12,className:"inline -mt-0.5"}),` puis "Sur l'ecran d'accueil"`]})]}),!l&&r.jsxs("div",{className:"flex items-center justify-center gap-3 mb-6",children:[se&&!L&&r.jsxs("button",{type:"button",onClick:E?G:()=>M(!0),className:"flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-white text-xs font-medium hover:bg-white/20 transition-colors",children:[r.jsx(ru,{size:14}),"Installer l'app"]}),r.jsxs("button",{type:"button",onClick:z,className:"flex items-center gap-2 px-5 py-3 rounded-full text-sm font-medium transition-colors "+(g==="granted"&&b?"bg-green-500/10 text-green-400":g==="granted"&&!b?"bg-orange-500/10 text-orange-400":g==="denied"?"bg-red-500/10 text-red-400 hover:bg-red-500/20":"bg-neutral-800 text-neutral-400 hover:bg-neutral-700"),children:[r.jsx(_u,{size:14}),g==="granted"&&b&&"Sur place",g==="granted"&&!b&&"Trop loin du Makeda",g==="denied"&&"Activer la localisation",g==="pending"&&"Localisation...",g==="unavailable"&&"GPS indisponible"]})]}),r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("p",{className:"text-xs uppercase tracking-widest mb-2",style:{color:ne},children:new Date(a.date).toLocaleDateString("fr-FR",{weekday:"long",day:"numeric",month:"long"})}),r.jsx("h1",{className:"font-mango text-white text-4xl uppercase leading-tight",children:a.title})]}),l&&c&&r.jsxs(r.Fragment,{children:[c.semiFinalists.length>0&&r.jsxs("div",{className:"mb-8",children:[r.jsx("h2",{className:"font-mango text-3xl uppercase text-center mb-4",style:{color:ne},children:"Les demi-finalistes"}),r.jsx("div",{className:"grid grid-cols-2 gap-3",children:c.semiFinalists.map(R=>r.jsxs("div",{className:"rounded-xl border-2 p-4 text-center",style:{borderColor:ne,backgroundColor:ne+"10"},children:[R.avatarUrl?r.jsx("img",{src:R.avatarUrl,alt:R.name,className:"w-20 h-20 rounded-full object-cover mx-auto mb-3"}):r.jsx("div",{className:"w-20 h-20 rounded-full bg-neutral-800 mx-auto mb-3 flex items-center justify-center text-2xl text-neutral-500",children:R.name.charAt(0).toUpperCase()}),r.jsx("p",{className:"font-mango text-white text-xl uppercase",children:R.name}),r.jsxs("p",{className:"text-xs mt-1",style:{color:ne},children:[R.votes," vote",R.votes>1?"s":""]})]},R.candidateId))})]}),c.others.length>0&&r.jsxs("div",{className:"mb-6",children:[r.jsx("h3",{className:"text-neutral-500 text-sm uppercase tracking-widest text-center mb-4",children:"Tous les participants"}),r.jsx("div",{className:"grid grid-cols-3 gap-2",children:c.others.map(R=>r.jsxs("div",{className:"rounded-xl border border-neutral-800 bg-neutral-900 p-3 text-center",children:[R.avatarUrl?r.jsx("img",{src:R.avatarUrl,alt:R.name,className:"w-14 h-14 roun
158ded-full object-cover mx-auto mb-2"}):r.jsx("div",{className:"w-14 h-14 rounded-full bg-neutral-800 mx-auto mb-2 flex items-center justify-center text-lg text-neutral-600",children:R.name.charAt(0).toUpperCase()}),r.jsx("p",{className:"font-mango text-white text-sm uppercase truncate",children:R.name}),r.jsxs("p",{className:"text-xs text-neutral-500 mt-0.5",children:[R.votes," vote",R.votes>1?"s":""]})]},R.candidateId))})]})]}),l&&!c&&r.jsxs("div",{className:"mb-6 px-4 py-6 rounded-lg text-center bg-neutral-900 border border-neutral-800",children:[r.jsx("p",{className:"text-neutral-400 font-semibold",children:"Votes termines"}),r.jsx("p",{className:"text-neutral-600 text-sm mt-1",children:"Chargement des resultats..."})]}),h&&!l&&r.jsx("div",{className:"mb-6 px-4 py-3 rounded-lg text-sm text-center "+(h.type==="success"?"bg-green-500/10 text-green-400 border border-green-500/20":"bg-red-500/10 text-red-400 border border-red-500/20"),children:h.message}),l?null:_.length>=2?r.jsxs("div",{className:"text-center py-12",children:[r.jsx("p",{className:"text-2xl mb-2",children:"✓"}),r.jsx("p",{className:"text-white font-semibold text-lg",children:"Merci pour vos votes !"}),r.jsx("p",{className:"text-neutral-500 text-sm mt-2",children:_.join(" & ")})]}):r.jsxs(r.Fragment,{children:[r.jsxs("p",{className:"text-neutral-500 text-sm text-center mb-1",children:["Selectionnez ",2-_.length," artiste",2-_.length>1?"s":""]}),r.jsxs("p",{className:"text-neutral-600 text-xs text-center mb-6",children:[d.length,"/2 selectionne",d.length>1?"s":""]}),r.jsx("div",{className:"space-y-2 mb-6",children:a.artists.map(R=>{const U=_.includes(R.name),W=d.includes(R.name),he=!U&&(W||d.length<2);return r.jsxs("button",{type:"button",onClick:()=>P(R.name),disabled:!he||g!=="granted"||!b,className:"w-full flex items-center gap-4 px-4 py-4 rounded-xl border transition-colors text-left "+(U?"border-green-500/30 bg-green-500/10":W?"border-white bg-white/10":he?"border-neutral-800 bg-neutral-900 hover:bg-neutral-800":"border-neutral-800 bg-neutral-900 opacity-40"),children:[R.avatar&&r.jsx("img",{src:R.avatar,alt:R.name,className:"w-14 h-14 rounded-xl object-cover shrink-0"}),r.jsx("span",{className:"font-mango text-white text-4xl uppercase flex-1",children:R.name}),U&&r.jsx("span",{className:"text-xs font-medium px-2.5 py-1 rounded-full bg-green-500/20 text-green-400 shrink-0",children:"Vote"}),W&&!U&&r.jsx("span",{className:"text-xs font-medium px-2.5 py-1 rounded-full shrink-0",style:{backgroundColor:ne,color:"#000"},children:"✓"})]},R.name)})}),r.jsx("button",{type:"button",onClick:I,disabled:d.length===0||g!=="granted"||!b||oe,className:"w-full py-4 rounded-full text-black font-semibold text-lg hover:opacity-90 transition-opacity disabled:opacity-40 disabled:cursor-not-allowed",style:{backgroundColor:ne},children:oe?"Vote en cours...":"Confirmer"+(d.length>0?" ("+d.length+")":"")})]})]})})},_M=({allowedRoles:n})=>{const{user:e,accessToken:a}=Ia();return!a||!e?r.jsx(nu,{to:"/signin",replace:!0}):n&&!n.includes(e.role)?r.jsx(nu,{to:"/",replace:!0}):r.jsx(S4,{})};function EM(){const[n,e]=S.useState(!1),{login:a,accessToken:i}=Ia();return S.useEffect(()=>{if(i){e(!0);return}fetch(bt+"/auth/refresh",{method:"POST",credentials:"include"}).then(async l=>{if(l.ok){const c=await l.json(),d=await fetch(bt+"/auth/me",{headers:{Authorization:`Bearer ${c.access_token}`}});if(d.ok){const f=await d.json();a(f,c.access_token)}}}).catch(()=>{}).finally(()=>e(!0))},[]),n}const kM=new k3({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),TM=()=>EM()?r.jsxs(xm,{children:[r.jsx(nt,{path:"/signin",element:r.jsx(bM,{})}),r.jsx(nt,{path:"/tremplin/vote/:eventId",element:r.jsx(CM,{})}),r.jsx(nt,{element:r.jsx(_M,{allowedRoles:["admin"]}),children:r.jsx(nt,{path:"/admin/*",element:r.jsx(dT,{})})}),r.jsx(nt,{path:"/*",element:r.jsx(gM,{})})]}):null,AM=()=>r.jsx(T3,{client:kM,children:r.jsxs(X4,{children:[r.jsx(xM,{}),r.jsx(yM,{}),r.jsx(TM,{})]})});jN.createRoot(document.getElementById("root")).render(r.jsx(S.StrictMode,{children:r.jsx(AM,{})}));

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.