PageSourceSearch

http://samps.uz/assets/index-CHA0S0G4.js

js samps.uz collected 2026-09-24 11:49:23 UTC 969,351 bytes, 37 lines download raw bytes

1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=M(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(ee(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function te(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var N=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},P={map:te,forEach:function(e,t,n){te(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=P,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,N)}catch(e){N(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()}
1,e.version=`19.2.8`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()}
vendor: 11,613 bytes, lines 1-8
1,e.version=`19.2.8`})),h=o(((e,t)=>{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)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function ee(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var M=Symbol.for(`react.client.reference`);function te(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===M?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?te(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}var ne=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ie=[],ae=-1;function oe(e){return{current:e}}function se(e){0>ae||(e.current=ie[ae],ie[ae]=null,ae--)}function ce(e,t){ae++,ie[ae]=e.current,e.current=t}var le=oe(null),ue=oe(null),de=oe(null),fe=oe(null);function pe(e,t){switch(ce(de,t),ce(ue,e),ce(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}se(le),ce(le,e)}function me(){se(le),se(ue),se(de)}function he(e){e.memoizedState!==null&&ce(fe,e);var t=le.current,n=Wd(t,e.type);t!==n&&(ce(ue,e),ce(le,n))}function ge(e){ue.current===e&&(se(le),se(ue)),fe.current===e&&(se(fe),ep._currentValue=re)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1<e.stack.indexOf(`
2    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3`+_e+e+ve}var be=!1;function xe(e,t){if(!e||be)return``;be=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4`),l=s.split(`
5`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7Error generating stack: `+e.message+`
8`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,Ne=t.unstable_NormalPriority,Pe=t.unstable_LowPriority,Fe=t.unstable_IdlePriority,Ie=t.log,Le=t.unstable_setDisableYieldValue,Re=null,ze=null;function Be(e){if(typeof Ie==`function`&&Le(e),ze&&typeof ze.setStrictMode==`function`)try{ze.setStrictMode(Re,e)}catch{}}var Ve=Math.clz32?Math.clz32:We,He=Math.log,Ue=Math.LN2;function We(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ge=256,Ke=262144,qe=4194304;function Je(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Qe(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function et(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ve(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&nt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function nt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function rt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function it(e,t){var n=t&-t;return n=n&42?1:at(n),(n&(e.suspendedLanes|t))===0?n:0}function at(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ot(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function st(){var e=P.p;return e===0?(e=window.event,e===void 0?32:gp(e.type)):e}function ct(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var lt=Math.random().toString(36).slice(2),ut=`__reactFiber$`+lt,dt=`__reactProps$`+lt,ft=`__reactContainer$`+lt,pt=`__reactEvents$`+lt,mt=`__reactListeners$`+lt,ht=`__reactHandles$`+lt,gt=`__reactResources$`+lt,_t=`__reactMarker$`+lt;function vt(e){delete e[ut],delete e[dt],delete e[pt],delete e[mt],delete e[ht]}function yt(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ft]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pf(e);e!==null;){if(n=e[ut])return n;e=pf(e)}return t}e=n,n=e.parentNode}return null}function bt(e){if(e=e[ut]||e[ft]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function xt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function St(e){var t=e[gt];return t||=e[gt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ct(e){e[_t]=!0}var wt=new Set,Tt={};function Et(e,t){Dt(e,t),Dt(e+`Capture`,t)}function Dt(e,t){for(Tt[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Ot=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
8037D\\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]*$`),kt={},At={};function jt(e){return we.call(At,e)?!0:we.call(kt,e)?!1:Ot.test(e)?At[e]=!0:(kt[e]=!0,!1)}function Mt(e,t,n){if(jt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Nt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Pt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Ft(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function It(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Lt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rt(e){if(!e._valueTracker){var t=It(e)?`checked`:`value`;e._valueTracker=Lt(e,t,``+e[t])}}function zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=It(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Bt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Vt=/[\n"\\]/g;function Ht(e){return e.replace(Vt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Ut(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ft(t)):e.value!==``+Ft(t)&&(e.value=``+Ft(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Gt(e,o,Ft(n)):Gt(e,o,Ft(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ft(s):e.removeAttribute(`name`)}function Wt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Rt(e);return}n=n==null?``:``+Ft(n),t=t==null?n:``+Ft(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Rt(e)}function Gt(e,t,n){t===`number`&&Bt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Kt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ft(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function qt(e,t,n){if(t!=null&&(t=``+Ft(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ft(n)}function Jt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ne(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 157,949 bytes, lines 8-9
8n=Ft(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Rt(e)}function Yt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xt=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 Zt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Xt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Zt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Zt(e,o,t[o])}function $t(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var en=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-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`]]),tn=/^[\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 nn(e){return tn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function rn(){}var an=null;function on(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,cn=null;function ln(e){var t=bt(e);if(t&&(e=t.stateNode)){var n=e[dt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Ut(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ht(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[dt]||null;if(!a)throw Error(i(90));Ut(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&zt(r)}break a;case`textarea`:qt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Kt(e,!!n.multiple,t,!1)}}}var un=!1;function dn(e,t,n){if(un)return e(t,n);un=!0;try{return e(t)}finally{if(un=!1,(sn!==null||cn!==null)&&(xu(),sn&&(t=sn,e=cn,cn=sn=null,ln(t),e)))for(t=0;t<e.length;t++)ln(e[t])}}function fn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[dt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var pn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),mn=!1;if(pn)try{var hn={};Object.defineProperty(hn,"passive",{get:function(){mn=!0}}),window.addEventListener(`test`,hn,hn),window.removeEventListener(`test`,hn,hn)}catch{mn=!1}var gn=null,_n=null,vn=null;function yn(){if(vn)return vn;var e,t=_n,n=t.length,r,i=`value`in gn?gn.value:gn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return vn=i.slice(e,1<r?1-r:void 0)}function bn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function xn(){return!0}function Sn(){return!1}function Cn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?xn:Sn,this.isPropagationStopped=Sn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=xn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=xn)},persist:function(){},isPersistent:xn}),t}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tn=Cn(wn),En=m({},wn,{view:0,detail:0}),Dn=Cn(En),On,kn,An,jn=m({},En,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==An&&(An&&e.type===`mousemove`?(On=e.screenX-An.screenX,kn=e.screenY-An.screenY):kn=On=0,An=e),On)},movementY:function(e){return`movementY`in e?e.movementY:kn}}),Mn=Cn(jn),Nn=Cn(m({},jn,{dataTransfer:0})),Pn=Cn(m({},En,{relatedTarget:0})),Fn=Cn(m({},wn,{animationName:0,elapsedTime:0,pseudoElement:0})),In=Cn(m({},wn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Ln=Cn(m({},wn,{data:0})),Rn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},zn={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`},Bn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Vn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bn[e])?!!t[e]:!1}function Hn(){return Vn}var Un=Cn(m({},En,{key:function(e){if(e.key){var t=Rn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=bn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hn,charCode:function(e){return e.type===`keypress`?bn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?bn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Wn=Cn(m({},jn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),F=Cn(m({},En,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hn})),Gn=Cn(m({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Kn=Cn(m({},jn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),qn=Cn(m({},wn,{newState:0,oldState:0})),Jn=[9,13,27,32],Yn=pn&&`CompositionEvent`in window,Xn=null;pn&&`documentMode`in document&&(Xn=document.documentMode);var Zn=pn&&`TextEvent`in window&&!Xn,Qn=pn&&(!Yn||Xn&&8<Xn&&11>=Xn),$n=` `,er=!1;function tr(e,t){switch(e){case`keyup`:return Jn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function nr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var rr=!1;function ir(e,t){switch(e){case`compositionend`:return nr(t);case`keypress`:return t.which===32?(er=!0,$n):null;case`textInput`:return e=t.data,e===$n&&er?null:e;default:return null}}function ar(e,t){if(rr)return e===`compositionend`||!Yn&&tr(e,t)?(e=yn(),vn=_n=gn=null,rr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Qn&&t.locale!==`ko`?null:t.data;default:return null}}var or={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 sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!or[e.type]:t===`textarea`}function cr(e,t,n,r){sn?cn?cn.push(r):cn=[r]:sn=r,t=Dd(t,`onChange`),0<t.length&&(n=new Tn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var lr=null,ur=null;function dr(e){bd(e,0)}function fr(e){if(zt(xt(e)))return e}function pr(e,t){if(e===`change`)return t}var mr=!1;if(pn){var hr;if(pn){var gr=`oninput`in document;if(!gr){var _r=document.createElement(`div`);_r.setAttribute(`oninput`,`return;`),gr=typeof _r.oninput==`function`}hr=gr}else hr=!1;mr=hr&&(!document.documentMode||9<document.documentMode)}function vr(){lr&&(lr.detachEvent(`onpropertychange`,yr),ur=lr=null)}function yr(e){if(e.propertyName===`value`&&fr(ur)){var t=[];cr(t,ur,e,on(e)),dn(dr,t)}}function br(e,t,n){e===`focusin`?(vr(),lr=t,ur=n,lr.attachEvent(`onpropertychange`,yr)):e===`focusout`&&vr()}function xr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return fr(ur)}function Sr(e,t){if(e===`click`)return fr(t)}function Cr(e,t){if(e===`input`||e===`change`)return fr(t)}function wr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Tr=typeof Object.is==`function`?Object.is:wr;function Er(e,t){if(Tr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!we.call(t,i)||!Tr(e[i],t[i]))return!1}return!0}function Dr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Or(e,t){var n=Dr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Bt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=pn&&`documentMode`in document&&11>=document.documentMode,I=null,Nr=null,Pr=null,Fr=!1;function Ir(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fr||I==null||I!==Bt(r)||(r=I,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pr&&Er(Pr,r)||(Pr=r,r=Dd(Nr,`onSelect`),0<r.length&&(t=new Tn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=I)))}function Lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Rr={animationend:Lr(`Animation`,`AnimationEnd`),animationiteration:Lr(`Animation`,`AnimationIteration`),animationstart:Lr(`Animation`,`AnimationStart`),transitionrun:Lr(`Transition`,`TransitionRun`),transitionstart:Lr(`Transition`,`TransitionStart`),transitioncancel:Lr(`Transition`,`TransitionCancel`),transitionend:Lr(`Transition`,`TransitionEnd`)},zr={},Br={};pn&&(Br=document.createElement(`div`).style,`AnimationEvent`in window||(delete Rr.animationend.animation,delete Rr.animationiteration.animation,delete Rr.animationstart.animation),`TransitionEvent`in window||delete Rr.transitionend.transition);function Vr(e){if(zr[e])return zr[e];if(!Rr[e])return e;var t=Rr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Br)return zr[e]=t[n];return e}var Hr=Vr(`animationend`),Ur=Vr(`animationiteration`),Wr=Vr(`animationstart`),Gr=Vr(`transitionrun`),Kr=Vr(`transitionstart`),qr=Vr(`transitioncancel`),Jr=Vr(`transitionend`),Yr=new Map,Xr=`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(` `);Xr.push(`scrollEnd`);function Zr(e,t){Yr.set(e,t),Et(t,[e])}var Qr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},$r=[],ei=0,ti=0;function ni(){for(var e=ei,t=ti=ei=0;t<e;){var n=$r[t];$r[t++]=null;var r=$r[t];$r[t++]=null;var i=$r[t];$r[t++]=null;var a=$r[t];if($r[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&oi(n,i,a)}}function ri(e,t,n,r){$r[ei++]=e,$r[ei++]=t,$r[ei++]=n,$r[ei++]=r,ti|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ii(e,t,n,r){return ri(e,t,n,r),si(e)}function ai(e,t){return ri(e,null,null,t),si(e)}function oi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ve(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function si(e){if(50<fu)throw fu=0,pu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ci={};function li(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ui(e,t,n,r){return new li(e,t,n,r)}function di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fi(e,t){var n=e.alternate;return n===null?(n=ui(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function pi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)di(e)&&(s=1);else if(typeof e==`string`)s=Gf(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ui(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return hi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ui(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ui(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ui(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ui(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function hi(e,t,n,r){return e=ui(7,e,r,t),e.lanes=n,e}function gi(e,t,n){return e=ui(6,e,null,t),e.lanes=n,e}function _i(e){var t=ui(18,null,null,0);return t.stateNode=e,t}function vi(e,t,n){return t=ui(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var yi=new WeakMap;function bi(e,t){if(typeof e==`object`&&e){var n=yi.get(e);return n===void 0?(t={value:e,source:t,stack:Ce(t)},yi.set(e,t),t):n}return{value:e,source:t,stack:Ce(t)}}var xi=[],Si=0,Ci=null,wi=0,Ti=[],Ei=0,Di=null,Oi=1,ki=``;function Ai(e,t){xi[Si++]=wi,xi[Si++]=Ci,Ci=e,wi=t}function ji(e,t,n){Ti[Ei++]=Oi,Ti[Ei++]=ki,Ti[Ei++]=Di,Di=e;var r=Oi;e=ki;var i=32-Ve(r)-1;r&=~(1<<i),n+=1;var a=32-Ve(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Oi=1<<32-Ve(t)+i|n<<i|r,ki=a+e}else Oi=1<<a|n<<i|r,ki=e}function Mi(e){e.return!==null&&(Ai(e,1),ji(e,1,0))}function Ni(e){for(;e===Ci;)Ci=xi[--Si],xi[Si]=null,wi=xi[--Si],xi[Si]=null;for(;e===Di;)Di=Ti[--Ei],Ti[Ei]=null,ki=Ti[--Ei],Ti[Ei]=null,Oi=Ti[--Ei],Ti[Ei]=null}function Pi(e,t){Ti[Ei++]=Oi,Ti[Ei++]=ki,Ti[Ei++]=Di,Oi=t.id,ki=t.overflow,Di=e}var Fi=null,Ii=null,L=!1,Li=null,Ri=!1,zi=Error(i(519));function Bi(e){throw Ki(bi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),zi}function Vi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ut]=e,t[dt]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)Z(vd[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),Wt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),Jt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||Bi(e,!0)}function Hi(e){for(Fi=e.return;Fi;)switch(Fi.tag){case 5:case 31:case 13:Ri=!1;return;case 27:case 3:Ri=!0;return;default:Fi=Fi.return}}function Ui(e){if(e!==Fi)return!1;if(!L)return Hi(e),L=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Gd(e.type,e.memoizedProps)),n=!n),n&&Ii&&Bi(e),Hi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ii=ff(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ii=ff(e)}else t===27?(t=Ii,$d(e.type)?(e=df,df=null,Ii=e):Ii=t):Ii=Fi?uf(e.stateNode.nextSibling):null;return!0}function Wi(){Ii=Fi=null,L=!1}function Gi(){var e=Li;return e!==null&&(Ql===null?Ql=e:Ql.push.apply(Ql,e),Li=null),e}function Ki(e){Li===null?Li=[e]:Li.push(e)}var qi=oe(null),Ji=null,Yi=null;function Xi(e,t,n){ce(qi,t._currentValue),t._currentValue=n}function Zi(e){e._currentValue=qi.current,se(qi)}function Qi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function $i(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Qi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Qi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ea(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Tr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ep]:e.push(ep))}a=a.return}e!==null&&$i(t,e,n,r),t.flags|=262144}function ta(e){for(e=e.firstContext;e!==null;){if(!Tr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function na(e){Ji=e,Yi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ra(e){return aa(Ji,e)}function ia(e,t){return Ji===null&&na(e),aa(e,t)}function aa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Yi===null){if(e===null)throw Error(i(308));Yi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Yi=Yi.next=t;return n}var R=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},oa=t.unstable_scheduleCallback,sa=t.unstable_NormalPriority,ca={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function la(){return{controller:new R,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&oa(sa,function(){e.controller.abort()})}var da=null,fa=0,pa=0,ma=null;function ha(e,t){if(da===null){var n=da=[];fa=0,pa=fd(),ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return fa++,t.then(ga,ga),t}function ga(){if(--fa===0&&da!==null){ma!==null&&(ma.status=`fulfilled`);var e=da;da=null,pa=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _a(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var va=N.S;N.S=function(e,t){tu=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&ha(e,t),va!==null&&va(e,t)};var ya=oe(null);function ba(){var e=ya.current;return e===null?K.pooledCache:e}function xa(e,t){t===null?ce(ya,ya.current):ce(ya,t.pool)}function Sa(){var e=ba();return e===null?null:{parent:ca._currentValue,pool:e}}var Ca=Error(i(460)),wa=Error(i(474)),Ta=Error(i(542)),Ea={then:function(){}};function Da(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Oa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(rn,rn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e;default:if(typeof t.status==`string`)t.then(rn,rn);else{if(e=K,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e}throw Aa=t,Ca}}function ka(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Aa=e,Ca):e}}var Aa=null;function ja(){if(Aa===null)throw Error(i(459));var e=Aa;return Aa=null,e}function Ma(e){if(e===Ca||e===Ta)throw Error(i(483))}var z=null,Na=0;function Pa(e){var t=Na;return Na+=1,z===null&&(z=[]),Oa(z,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=fi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&ka(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=mi(n.type,n.key,n.props,null,e.mode,r),Fa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=vi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=hi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=gi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=mi(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case v:return t=vi(t,e.mode,n),t.return=e,t;case O:return t=ka(t),f(e,t,n)}if(ne(t)||ee(t))return t=hi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===C)return f(e,ia(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ka(n),p(e,t,n,r)}if(ne(n)||ee(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===C)return p(e,t,ia(e,n),r);Ia(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ka(r),m(e,t,n,r,i)}if(ne(r)||ee(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Pa(r),i);if(r.$$typeof===C)return m(e,t,n,ia(t,r),i);Ia(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),L&&Ai(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return L&&Ai(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),L&&Ai(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),L&&Ai(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return L&&Ai(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),L&&Ai(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ka(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=hi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=mi(o.type,o.key,o.props,null,e.mode,c),Fa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=vi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ka(o),b(e,r,o,c)}if(ne(o))return h(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Pa(o),c);if(o.$$typeof===C)return b(e,r,ia(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=gi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return z=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=ui(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=si(e),oi(e,null,n),t}return ri(e,r,t,n),si(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rt(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=ma;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(J&f)===f:(r&f)===f){f!==0&&f===pa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ba=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Kl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=oe(null),$a=oe(0);function eo(e,t){e=Wl,ce($a,e),ce(Qa,t),Wl=e|t.baseLanes}function to(){ce($a,Wl),ce(Qa,Qa.current)}function no(){Wl=$a.current,se(Qa),se($a)}var ro=oe(null),io=null;function ao(e){var t=e.alternate;ce(uo,uo.current&1),ce(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){ce(uo,uo.current),ce(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(ce(uo,uo.current),ce(ro,e),io===null&&(io=e)):co(e)}function co(){ce(uo,uo.current),ce(ro,ro.current)}function lo(e){se(ro),io===e&&(io=null),se(uo)}var uo=oe(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sf(n)||cf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,B=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return po=a,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?zs:Bs,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){N.H=Rs;var t=mo!==null&&mo.next!==null;if(po=0,ho=mo=B=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||rc||(e=e.dependencies,e!==null&&ta(e)&&(rc=!0))}function Do(e,t,n,r){B=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=Vs,o=t(n,r)}while(_o);return o}function Oo(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(B.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}po=0,ho=mo=B=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?B.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=B.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?B.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw B.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?B.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Oa(xo,e,t),t=B,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?zs:Bs),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===C)return ra(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=B.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=B.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),B.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),mo,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(J&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===pa&&(d=!0);else if((po&p)===p){u=u.next,p===pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,B.lanes|=p,Kl|=p;f=u.action,vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,B.lanes|=f,Kl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Tr(o,e.memoizedState)&&(rc=!0,d&&(n=ma,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Tr(o,t.memoizedState)||(rc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ho(e,t,n){var r=B,a=No(),o=L;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Tr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,rc=!0),a=a.queue,ps(Go.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,a,n,t),null),K===null)throw Error(i(349));o||po&127||Uo(r,t,n)}return n}function Uo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t=Po(),B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wo(e,t,n,r){t.value=n,t.getSnapshot=r,Ko(t)&&qo(e)}function Go(e,t,n){return n(function(){Ko(t)&&qo(e)})}function Ko(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tr(e,n)}catch{return!0}}function qo(e){var t=ai(e,2);t!==null&&gu(t,e,2)}function Jo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Yo(e,t,n,r){return e.baseState=n,Bo(e,mo,typeof r==`function`?r:Ro)}function Xo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};N.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Zo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Zo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=N.T,o={};N.T=o;try{var s=n(i,r),c=N.S;c!==null&&c(o,s),Qo(e,t,s)}catch(n){es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),Qo(e,t,a)}catch(n){es(e,t,n)}}function Qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){$o(e,t,n)},function(n){return es(e,t,n)}):$o(e,t,n)}function $o(e,t,n){t.status=`fulfilled`,t.value=n,ts(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Zo(e,n)))}function es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ts(t),t=t.next;while(t!==r)}e.action=null}function ts(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ns(e,t){return t}function rs(e,t){if(L){var n=K.formState;if(n!==null){a:{var r=B;if(L){if(Ii){b:{for(var i=Ii,a=Ri;i.nodeType!==8;){if(!a){i=null;break b}if(i=uf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ii=uf(i.nextSibling),r=i.data===`F!`;break a}}Bi(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:t},n.queue=r,n=Ns.bind(null,B,r),r.dispatch=n,r=Jo(!1),a=Fs.bind(null,B,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Xo.bind(null,B,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function is(e){return as(No(),mo,e)}function as(e,t,n){if(t=Bo(e,t,ns)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Ca?Ta:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(B.flags|=2048,cs(9,{destroy:void 0},os.bind(null,i,n),null)),[r,a,e]}function os(e,t){e.action=t}function ss(e){var t=No(),n=mo;if(n!==null)return as(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function cs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=B.updateQueue,t===null&&(t=Po(),B.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ls(){return No().memoizedState}function us(e,t,n,r){var i=Mo();B.flags|=e,i.memoizedState=cs(1|t,{destroy:void 0},n,r===void 0?null:r)}function ds(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=cs(t,a,n,r):(B.flags|=e,i.memoizedState=cs(1|t,a,n,r))}function fs(e,t){us(8390656,8,e,t)}function ps(e,t){ds(2048,8,e,t)}function ms(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=Po(),B.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function hs(e){var t=No().memoizedState;return ms({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function gs(e,t){return ds(4,2,e,t)}function _s(e,t){return ds(4,4,e,t)}function vs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ys(e,t,n){n=n==null?null:n.concat([e]),ds(4,4,vs.bind(null,t,e),n)}function bs(){}function xs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ss(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r}function Cs(e,t,n){return n===void 0||po&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=hu(),B.lanes|=e,Kl|=e,n)}function ws(e,t,n,r){return Tr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(J&261930)?(rc=!0,e.memoizedState=n):(e=hu(),B.lanes|=e,Kl|=e,t):(e=Cs(e,n,r),Tr(e,t)||(rc=!0),e)}function Ts(e,t,n,r,i){var a=P.p;P.p=a!==0&&8>a?a:8;var o=N.T,s={};N.T=s,Fs(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,_a(c,r),mu(e)):Ps(e,t,r,mu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},mu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function Es(){}function Ds(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Os(e).queue;Ts(e,a,t,re,n===null?Es:function(){return ks(e),n(r)})}function Os(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ks(e){var t=Os(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},mu())}function V(){return ra(ep)}function As(){return No().memoizedState}function js(){return No().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=mu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(gu(r,t,n),Ga(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function H(e,t,n){var r=mu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?U(t,n):(n=ii(e,t,n,r),n!==null&&(gu(n,e,r),Ls(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,mu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))U(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Tr(s,o))return ri(e,t,i,0),K===null&&ni(),!1}catch{}if(n=ii(e,t,i,r),n!==null)return gu(n,e,r),Ls(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ii(e,n,r,2),t!==null&&gu(t,e,2)}function Is(e){var t=e.alternate;return e===B||t!==null&&t===B}function U(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rt(e,n)}}var Rs={readContext:ra,use:Io,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};Rs.useEffectEvent=Co;var zs={readContext:ra,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:ra,useEffect:fs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),us(4194308,4,vs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return us(4194308,4,e,t)},useInsertionEffect:function(e,t){us(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=H.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Jo(e);var t=e.queue,n=Ns.bind(null,B,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bs,useDeferredValue:function(e,t){return Cs(Mo(),e,t)},useTransition:function(){var e=Jo(!1);return e=Ts.bind(null,B,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=B,a=Mo();if(L){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||Uo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,fs(Go.bind(null,r,o,e),[e]),r.flags|=2048,cs(9,{destroy:void 0},Wo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=K.identifierPrefix;if(L){var n=ki,r=Oi;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:V,useFormState:rs,useActionState:rs,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,B,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=Ms.bind(null,B)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Bs={readContext:ra,use:Io,useCallback:xs,useContext:ra,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:zo,useRef:ls,useState:function(){return zo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){return ws(No(),mo.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:As,useHostTransitionStatus:V,useFormState:is,useActionState:is,useOptimistic:function(e,t){return Yo(No(),mo,e,t)},useMemoCache:Lo,useCacheRefresh:js};Bs.useEffectEvent=hs;var Vs={readContext:ra,use:Io,useCallback:xs,useContext:ra,useEffect:ps,useImperativeHandle:ys,useInsertionEffect:gs,useLayoutEffect:_s,useMemo:Ss,useReducer:Vo,useRef:ls,useState:function(){return Vo(Ro)},useDebugValue:bs,useDeferredValue:function(e,t){var n=No();return mo===null?Cs(n,e,t):ws(n,mo.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Ho,useId:As,useHostTransitionStatus:V,useFormState:ss,useActionState:ss,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):Yo(n,mo,e,t)},useMemoCache:Lo,useCacheRefresh:js};Vs.useEffectEvent=hs;function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(gu(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=mu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(gu(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=mu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(gu(t,e,n),Ga(t,e,n))}};function Ws(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Er(n,r)||!Er(i,a):!0}function Gs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Ks(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qs(e){Qr(e)}function Js(e){console.error(e)}function Ys(e){Qr(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function $s(e){return e=Ua(e),e.tag=3,e}function ec(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(iu===null?iu=new Set([this]):iu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function tc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ea(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?Ou():n.alternate===null&&Gl===0&&(Gl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,a)),!1;case 22:return n.flags|=65536,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ku(e,r,a)),!1}throw Error(i(435,n.tag))}return Ku(e,r,a),Ou(),!1}if(L)return t=ro.current,t===null?(r!==zi&&(t=Error(i(423),{cause:r}),Ki(bi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=bi(r,n),a=Qs(e.stateNode,r,a),Ka(e,a),Gl!==4&&(Gl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==zi&&(e=Error(i(422),{cause:r}),Ki(bi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=bi(o,n),Zl===null?Zl=[o]:Zl.push(o),Gl!==4&&(Gl=2),t===null)return!0;r=bi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,r,e),Ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(iu===null||!iu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$s(a),ec(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var nc=Error(i(461)),rc=!1;function ic(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function ac(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return na(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!rc?(Ao(e,t,i),kc(e,t,i)):(L&&s&&Mi(t),t.flags|=1,ic(e,t,r,i),t.child)}function oc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,sc(e,t,a,r,i)):(e=mi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Er:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=fi(a,r),e.ref=t.ref,e.return=t,t.child=e}function sc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Er(a,r)&&e.ref===t.ref)if(rc=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(rc=!0);else return t.lanes=e.lanes,kc(e,t,i)}return hc(e,t,n,r,i)}function cc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return uc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xa(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,uc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&xa(t,null),to(),co(t)):(xa(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return ic(e,t,i,n),t.child}function lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function uc(e,t,n,r,i){var a=ba();return a=a===null?null:{parent:ca._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&xa(t,null),to(),so(t),e!==null&&ea(e,t,r,!0),t.childLanes=i,null}function dc(e,t){return t=wc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fc(e,t,n){return Ra(t,e.child,null,n),e=dc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function pc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(L){if(r.mode===`hidden`)return e=dc(t,r),t.lanes=536870912,lc(null,e);if(oo(t),(e=Ii)?(e=of(e,Ri),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Di===null?null:{id:Oi,overflow:ki},retryLane:536870912,hydrationErrors:null},n=_i(e),n.return=t,t.child=n,Fi=t,Ii=null)):e=null,e===null)throw Bi(t);return t.lanes=536870912,null}return dc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a)if(t.flags&256)t.flags&=-257,t=fc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(rc||ea(e,t,n,!1),a=(n&e.childLanes)!==0,rc||a){if(r=K,r!==null&&(s=it(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ai(e,s),gu(r,e,s),nc;Ou(),t=fc(e,t,n)}else e=o.treeContext,Ii=uf(s.nextSibling),Fi=t,L=!0,Li=null,Ri=!1,e!==null&&Pi(t,e),t=dc(t,r),t.flags|=4096;return t}return e=fi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hc(e,t,n,r,i){return na(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!rc?(Ao(e,t,i),kc(e,t,i)):(L&&r&&Mi(t),t.flags|=1,ic(e,t,n,i),t.child)}function gc(e,t,n,r,i,a){return na(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!rc?(Ao(e,t,a),kc(e,t,a)):(L&&r&&Mi(t),t.flags|=1,ic(e,t,n,a),t.child)}function _c(e,t,n,r,i){if(na(t),t.stateNode===null){var a=ci,o=n.contextType;typeof o==`object`&&o&&(a=ra(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Us,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?ra(o):ci,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Hs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Us.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ks(n,s);a.props=c;var l=a.context,u=n.contextType;o=ci,typeof u==`object`&&u&&(o=ra(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Gs(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Hs(t,n,d,r),l=t.memoizedState),(c=Ba||Ws(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),o=t.memoizedProps,u=Ks(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ci,typeof l==`object`&&l&&(c=ra(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Gs(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&ta(e.dependencies)?(typeof s==`function`&&(Hs(t,n,s,r),p=t.memoizedState),(u=Ba||Ws(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ta(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,mc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):ic(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function vc(e,t,n,r){return Wi(),t.flags|=256,ic(e,t,n,r),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bc(e){return{baseLanes:e,cachePool:Sa()}}function xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Yl),e}function Sc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(uo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(L){if(a?ao(t):co(t),(e=Ii)?(e=of(e,Ri),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Di===null?null:{id:Oi,overflow:ki},retryLane:536870912,hydrationErrors:null},n=_i(e),n.return=t,t.child=n,Fi=t,Ii=null)):e=null,e===null)throw Bi(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=wc({mode:`hidden`,children:c},a),r=hi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(null,r)):(ao(t),Cc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Tc(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=wc({mode:`visible`,children:r.children},a),c=hi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=bc(n),r.childLanes=xc(e,s,n),t.memoizedState=yc,t=lc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),cf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ki({value:r,source:null,stack:null}),t=Tc(e,t,n)}else if(rc||ea(e,t,n,!1),s=(n&e.childLanes)!==0,rc||s){if(s=K,s!==null&&(r=it(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ai(e,r),gu(s,e,r),nc;sf(c)||Ou(),t=Tc(e,t,n)}else sf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ii=uf(c.nextSibling),Fi=t,L=!0,Li=null,Ri=!1,e!==null&&Pi(t,e),t=Cc(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=fi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=hi(c,a,n,null),c.flags|=2):c=fi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,lc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=bc(n):(a=c.cachePool,a===null?a=Sa():(l=ca._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=xc(e,s,n),t.memoizedState=yc,lc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=fi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Cc(e,t){return t=wc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function wc(e,t){return e=ui(22,e,null,t),e.lanes=0,e}function Tc(e,t,n){return Ra(t,e.child,null,n),e=Cc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ec(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qi(e.return,t,n)}function Dc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Oc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,ce(uo,o),ic(e,t,r,n),r=L?wi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ec(e,n,t);else if(e.tag===19)Ec(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Dc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Dc(t,!0,n,null,a,r);break;case`together`:Dc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=fi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ta(e)))}function jc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Xi(t,ca,e.memoizedState.cache),Wi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Xi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=kc(e,t,n),e===null?null:e.sibling):Sc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Oc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ce(uo,uo.current),r)break;return null;case 22:return t.lanes=0,cc(e,t,n,t.pendingProps);case 24:Xi(t,ca,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)rc=!0;else{if(!Ac(e,n)&&!(t.flags&128))return rc=!1,jc(e,t,n);rc=!!(e.flags&131072)}else rc=!1,L&&t.flags&1048576&&ji(t,wi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e==`function`)di(e)?(r=Ks(e,r),t.tag=1,t=_c(null,t,e,r,n)):(t.tag=0,t=hc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=ac(null,t,e,r,n);break a}if(a===D){t.tag=14,t=oc(null,t,e,r,n);break a}}throw t=te(e)||e,Error(i(306,t,``))}}return t;case 0:return hc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ks(r,t.pendingProps),_c(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Xi(t,ca,r),r!==o.cache&&$i(t,[ca],n,!0),Ja(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=vc(e,t,r,n);break a}else if(r!==a){a=bi(Error(i(424)),t),Ki(a),t=vc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ii=uf(e.firstChild),Fi=t,L=!0,Li=null,Ri=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Wi(),r===a){t=kc(e,t,n);break a}ic(e,t,r,n)}t=t.child}return t;case 26:return mc(e,t),e===null?(n=jf(t.type,null,t.pendingProps,null))?t.memoizedState=n:L||(n=t.type,e=t.pendingProps,r=Hd(de.current).createElement(n),r[ut]=t,r[dt]=e,Id(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=jf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&L&&(r=t.stateNode=mf(t.type,t.pendingProps,de.current),Fi=t,Ri=!0,a=Ii,$d(t.type)?(df=a,Ii=uf(r.firstChild)):Ii=a),ic(e,t,t.pendingProps.children,n),mc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&L&&((a=r=Ii)&&(r=rf(r,t.type,t.pendingProps,Ri),r===null?a=!1:(t.stateNode=r,Fi=t,Ii=uf(r.firstChild),Ri=!1,a=!0)),a||Bi(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Gd(a,o)?r=null:s!==null&&Gd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),ep._currentValue=a),mc(e,t),ic(e,t,r,n),t.child;case 6:return e===null&&L&&((e=n=Ii)&&(n=af(n,t.pendingProps,Ri),n===null?e=!1:(t.stateNode=n,Fi=t,Ii=null,e=!0)),e||Bi(t)),null;case 13:return Sc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):ic(e,t,r,n),t.child;case 11:return ac(e,t,t.type,t.pendingProps,n);case 7:return ic(e,t,t.pendingProps,n),t.child;case 8:return ic(e,t,t.pendingProps.children,n),t.child;case 12:return ic(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Xi(t,t.type,r.value),ic(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,na(t),a=ra(a),r=r(a),t.flags|=1,ic(e,t,r,n),t.child;case 14:return oc(e,t,t.type,t.pendingProps,n);case 15:return sc(e,t,t.type,t.pendingProps,n);case 19:return Oc(e,t,n);case 31:return pc(e,t,n);case 22:return cc(e,t,n,t.pendingProps);case 24:return na(t),r=ra(ca),e===null?(a=ba(),a===null&&(a=K,o=la(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Xi(t,ca,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Xi(t,ca,r),r!==a.cache&&$i(t,[ca],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Xi(t,ca,r))),ic(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Nc(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Tu())e.flags|=8192;else throw Aa=Ea,wa}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Kf(t))if(Tu())e.flags|=8192;else throw Aa=Ea,wa}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Qe(),e.lanes|=t,Xl|=t)}function Lc(e,t){if(!L)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(Ni(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Zi(ca),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ui(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gi())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nc(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(Nc(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&Nc(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(ge(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=le.current,Ui(t)?Vi(t,e):(e=mf(a,r,n),t.stateNode=e,Nc(t))}return Rc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=le.current,Ui(t))Vi(t,o);else{var s=Hd(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ut]=t,o[dt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,Ui(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Fi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Bi(t,!0)}else e=Hd(e).createTextNode(r),e[ut]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ui(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ut]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ui(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ut]=t}else Wi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Gi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),Rc(t),null);case 4:return me(),e===null&&Cd(t.stateNode.containerInfo),Rc(t),null;case 10:return Zi(t.type),Rc(t),null;case 19:if(se(uo),r=t.memoizedState,r===null)return Rc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Lc(r,!1);else{if(Gl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)pi(n,e),n=n.sibling;return ce(uo,uo.current&1|2),L&&Ai(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>nu&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}else{if(!a)if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!L)return Rc(t),null}else 2*ke()-r.renderingStartTime>nu&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=uo.current,ce(uo,a?n&1|2:n&1),L&&Ai(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&se(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Zi(ca),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(Ni(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zi(ca),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Wi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(uo),null;case 4:return me(),null;case 10:return Zi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&se(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Zi(ca),null;case 25:return null;default:return null}}function Vc(e,t){switch(Ni(t),t.tag){case 3:Zi(ca),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:se(uo);break;case 10:Zi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&se(ya);break;case 24:Zi(ca)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Gu(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Gu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Gu(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Gu(e,e.return,t)}}}function Gc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Gu(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Gu(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Gu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Gu(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Gu(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[dt]=t}catch(t){Gu(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=rn));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[ut]=e,t[dt]=n}catch(t){Gu(e,e.return,t)}}var tl=!1,nl=!1,W=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,Bd=lp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ks(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Gu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,il=e;break}il=t.return}}function ol(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Hc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Gu(n,n.return,e)}else{var i=Ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Gu(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){Gu(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:bl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&G(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),lf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?Sl(e,n,!!(n.subtreeFlags&8772)):bl(e,n),tl=i,nl=a}break;case 30:break;default:bl(e,n)}}function sl(e){var t=e.alternate;t!==null&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var cl=null,ll=!1;function ul(e,t,n){for(n=n.child;n!==null;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(ze&&typeof ze.onCommitFiberUnmount==`function`)try{ze.onCommitFiberUnmount(Re,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=cl,i=ll;$d(n.type)&&(cl=n.stateNode,ll=!1),ul(e,t,n),hf(n.stateNode),cl=r,ll=i;break;case 5:nl||qc(n,t);case 6:if(r=cl,i=ll,cl=null,ul(e,t,n),cl=r,ll=i,cl!==null)if(ll)try{(cl.nodeType===9?cl.body:cl.nodeName===`HTML`?cl.ownerDocument.body:cl).removeChild(n.stateNode)}catch(e){Gu(n,t,e)}else try{cl.removeChild(n.stateNode)}catch(e){Gu(n,t,e)}break;case 18:cl!==null&&(ll?(e=cl,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Fp(e)):ef(cl,n.stateNode));break;case 4:r=cl,i=ll,cl=n.stateNode.containerInfo,ll=!0,ul(e,t,n),cl=r,ll=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),ul(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,ul(e,t,n),nl=r;break;default:ul(e,t,n)}}function G(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fp(e)}catch(e){Gu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fp(e)}catch(e){Gu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){cl=c.stateNode,ll=!1;break a}break;case 5:cl=c.stateNode,ll=!1;break a;case 3:case 4:cl=c.stateNode.containerInfo,ll=!0;break a}c=c.return}if(cl===null)throw Error(i(160));dl(o,s,a),cl=null,ll=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[_t]||o[ut]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Id(o,r,n),o[ut]=e,Ct(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Uf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ut]=e,Ct(o),r=o}e.stateNode=r}else Wf(a,e.type,e.stateNode);else e.stateNode=Rf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Wf(a,e.type,e.stateNode):Rf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Yt(a,``)}catch(t){Gu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(W=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Gu(e,e.return,t)}}break;case 3:if(Hf=null,a=gl,gl=vf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fp(t.containerInfo)}catch(t){Gu(e,e.return,t)}W&&(W=!1,yl(e));break;case 4:r=gl,gl=vf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(eu=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,hl(t,e),nl=d,tl=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Gu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Gu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?tf(m,!0):tf(l.stateNode,!1)}catch(e){Gu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Yt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Gu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ol(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),xl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),xl(t);break;case 27:hf(t.stateNode);case 26:case 5:qc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Hc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Gu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){Gu(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&G(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Kc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ua(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Gu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&qf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=vf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;il!==null;){var n=il;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ua(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,il=r;else a:for(n=e;il!==null;){r=il;var i=r.sibling,a=r.return;if(sl(r),r===n){il=null;break a}if(i!==null){i.return=a,il=i;break a}il=a}}}var Ll={getCacheForType:function(e){var t=ra(ca),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ra(ca).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,K=null,q=null,J=0,Y=0,Bl=null,Vl=!1,Hl=!1,Ul=!1,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=0,Zl=null,Ql=null,$l=!1,eu=0,tu=0,nu=1/0,ru=null,iu=null,au=0,ou=null,su=null,cu=0,lu=0,uu=null,du=null,fu=0,pu=null;function mu(){return zl&2&&J!==0?J&-J:N.T===null?st():fd()}function hu(){if(Yl===0)if(!(J&536870912)||L){var e=Ke;Ke<<=1,!(Ke&3932160)&&(Ke=262144),Yl=e}else Yl=536870912;return e=ro.current,e!==null&&(e.flags|=32),Yl}function gu(e,t,n){(e===K&&(Y===2||Y===9)||e.cancelPendingCommit!==null)&&(Cu(e,0),bu(e,J,Yl,!1)),et(e,n),(!(zl&2)||e!==K)&&(e===K&&(!(zl&2)&&(ql|=n),Gl===4&&bu(e,J,Yl,!1)),id(e))}function _u(e,t,n){if(zl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Xe(e,t),a=r?ju(e,t):ku(e,t,!0),o=r;do{if(a===0){Hl&&!r&&bu(e,t,0,!1);break}if(n=e.current.alternate,o&&!yu(n)){a=ku(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Zl;var l=c.current.memoizedState.isDehydrated;if(l&&(Cu(c,s).flags|=256),s=ku(c,s,!1),s!==2){if(Ul&&!l){c.errorRecoveryDisabledLanes|=o,ql|=o,a=4;break a}o=Ql,Ql=a,o!==null&&(Ql===null?Ql=o:Ql.push.apply(Ql,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Cu(e,0),bu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:bu(r,t,Yl,!Vl);break a;case 2:Ql=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=eu+300-ke(),10<a)){if(bu(r,t,Yl,!Vl),Ye(r,0,!0)!==0)break a;cu=t,r.timeoutHandle=Jd(vu.bind(null,r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,`Throttled`,-0,0),a);break a}vu(r,n,Ql,ru,$l,t,Yl,ql,Xl,Vl,o,null,-0,0)}break}while(1);id(e)}function vu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},jl(t,a,d);var m=(a&62914560)===a?eu-ke():(a&4194048)===a?tu-ke():0;if(m=Yf(d,m),m!==null){cu=a,e.cancelPendingCommit=m(Ru.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),bu(e,a,o,!l);return}}Ru(e,t,a,n,r,i,o,s,c)}function yu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Tr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function bu(e,t,n,r){t&=~Jl,t&=~ql,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ve(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&nt(e,n,t)}function xu(){return zl&6?!0:(ad(0,!1),!1)}function Su(){if(q!==null){if(Y===0)var e=q.return;else e=q,Yi=Ji=null,jo(e),z=null,Na=0,e=q;for(;e!==null;)Vc(e.alternate,e),e=e.return;q=null}}function Cu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Yd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),cu=0,Su(),K=e,q=n=fi(e.current,null),J=t,Y=0,Bl=null,Vl=!1,Hl=Xe(e,t),Ul=!1,Xl=Yl=Jl=ql=Kl=Gl=0,Ql=Zl=null,$l=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ve(r),a=1<<i;t|=e[i],r&=~a}return Wl=t,ni(),n}function wu(e,t){B=null,N.H=Rs,t===Ca||t===Ta?(t=ja(),Y=3):t===wa?(t=ja(),Y=4):Y=t===nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Bl=t,q===null&&(Gl=1,Xs(e,bi(t,e.current)))}function Tu(){var e=ro.current;return e===null?!0:(J&4194048)===J?io===null:(J&62914560)===J||J&536870912?e===io:!1}function Eu(){var e=N.H;return N.H=Rs,e===null?Rs:e}function Du(){var e=N.A;return N.A=Ll,e}function Ou(){Gl=4,Vl||(J&4194048)!==J&&ro.current!==null||(Hl=!0),!(Kl&134217727)&&!(ql&134217727)||K===null||bu(K,J,Yl,!1)}function ku(e,t,n){var r=zl;zl|=2;var i=Eu(),a=Du();(K!==e||J!==t)&&(ru=null,Cu(e,t)),t=!1;var o=Gl;a:do try{if(Y!==0&&q!==null){var s=q,c=Bl;switch(Y){case 8:Su(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=Y;if(Y=0,Bl=null,Fu(e,s,c,l),n&&Hl){o=0;break a}break;default:l=Y,Y=0,Bl=null,Fu(e,s,c,l)}}Au(),o=Gl;break}catch(t){wu(e,t)}while(1);return t&&e.shellSuspendCounter++,Yi=Ji=null,zl=r,N.H=i,N.A=a,q===null&&(K=null,J=0,ni()),o}function Au(){for(;q!==null;)Nu(q)}function ju(e,t){var n=zl;zl|=2;var r=Eu(),a=Du();K!==e||J!==t?(ru=null,nu=ke()+500,Cu(e,t)):Hl=Xe(e,t);a:do try{if(Y!==0&&q!==null){t=q;var o=Bl;b:switch(Y){case 1:Y=0,Bl=null,Fu(e,t,o,1);break;case 2:case 9:if(Da(o)){Y=0,Bl=null,Pu(t);break}t=function(){Y!==2&&Y!==9||K!==e||(Y=7),id(e)},o.then(t,t);break a;case 3:Y=7;break a;case 4:Y=5;break a;case 7:Da(o)?(Y=0,Bl=null,Pu(t)):(Y=0,Bl=null,Fu(e,t,o,7));break;case 5:var s=null;switch(q.tag){case 26:s=q.memoizedState;case 5:case 27:var c=q;if(s?Kf(s):c.stateNode.complete){Y=0,Bl=null;var l=c.sibling;if(l!==null)q=l;else{var u=c.return;u===null?q=null:(q=u,Iu(u))}break b}}Y=0,Bl=null,Fu(e,t,o,5);break;case 6:Y=0,Bl=null,Fu(e,t,o,6);break;case 8:Su(),Gl=6;break a;default:throw Error(i(462))}}Mu();break}catch(t){wu(e,t)}while(1);return Yi=Ji=null,N.H=r,N.A=a,zl=n,q===null?(K=null,J=0,ni(),Gl):0}function Mu(){for(;q!==null&&!De();)Nu(q)}function Nu(e){var t=Mc(e.alternate,e,Wl);e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Pu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=gc(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=gc(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:jo(t);default:Vc(n,t),t=q=pi(t,Wl),t=Mc(n,t,Wl)}e.memoizedProps=e.pendingProps,t===null?Iu(e):q=t}function Fu(e,t,n,r){Yi=Ji=null,jo(t),z=null,Na=0;var i=t.return;try{if(tc(e,i,t,n,J)){Gl=1,Xs(e,bi(n,e.current)),q=null;return}}catch(t){if(i!==null)throw q=i,t;Gl=1,Xs(e,bi(n,e.current)),q=null;return}t.flags&32768?(L||r===1?e=!0:Hl||J&536870912?e=!1:(Vl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Lu(t,e)):Iu(t)}function Iu(e){var t=e;do{if(t.flags&32768){Lu(t,Vl);return}e=t.return;var n=zc(t.alternate,t,Wl);if(n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);Gl===0&&(Gl=5)}function Lu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,q=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){q=e;return}q=e=n}while(e!==null);Gl=6,q=null}function Ru(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(au!==0);if(zl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ti,tt(e,n,o,s,c,l),e===K&&(q=K=null,J=0),su=t,ou=e,cu=n,lu=o,uu=a,du=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(Ne,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=N.T,N.T=null,a=P.p,P.p=2,s=zl,zl|=4;try{al(e,t,n)}finally{zl=s,P.p=a,N.T=r}}au=1,X(),zu(),Bu()}}function X(){if(au===1){au=0;var e=ou,t=su,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=zl;zl|=4;try{_l(t,e);var a=Vd,o=Ar(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&kr(s.ownerDocument.documentElement,s)){if(c!==null&&jr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}lp=!!Bd,Vd=Bd=null}finally{zl=i,P.p=r,N.T=n}}e.current=t,au=2}}function zu(){if(au===2){au=0;var e=ou,t=su,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=zl;zl|=4;try{ol(e,t.alternate,t)}finally{zl=i,P.p=r,N.T=n}}au=3}}function Bu(){if(au===4||au===3){au=0,Oe();var e=ou,t=su,n=cu,r=du;t.subtreeFlags&10256||t.flags&10256?au=5:(au=0,su=ou=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(iu=null),ot(n),t=t.stateNode,ze&&typeof ze.onCommitFiberRoot==`function`)try{ze.onCommitFiberRoot(Re,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=N.T,i=P.p,P.p=2,N.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{N.T=t,P.p=i}}cu&3&&Hu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===pu?fu++:(fu=0,pu=e):fu=0,ad(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function Hu(){return X(),zu(),Bu(),Uu()}function Uu(){if(au!==5)return!1;var e=ou,t=lu;lu=0;var n=ot(cu),r=N.T,a=P.p;try{P.p=32>n?32:n,N.T=null,n=uu,uu=null;var o=ou,s=cu;if(au=0,su=ou=null,cu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ad(0,!1),ze&&typeof ze.onPostCommitFiberRoot==`function`)try{ze.onPostCommitFiberRoot(Re,o)}catch{}return!0}finally{P.p=a,N.T=r,Vu(e,t)}}function Wu(e,t,n){t=bi(n,t),t=Qs(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(et(e,2),id(e))}function Gu(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(iu===null||!iu.has(r))){e=bi(n,e),n=$s(2),r=Wa(t,n,2),r!==null&&(ec(n,r,t,e),et(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Ul=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(Gl===4||Gl===3&&(J&62914560)===J&&300>ke()-eu?!(zl&2)&&Cu(e,0):Jl|=n,Xl===J&&(Xl=0)),id(e)}function Ju(e,t){t===0&&(t=Qe()),e=ai(e,t),e!==null&&(et(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return Te(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=J,a=Ye(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&qd()&&(e=rd);for(var t=ke(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}au!==0&&au!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ve(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=K,n=J,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Y===2||Y===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),ot(n)){case 2:case 8:n=Me;break;case 32:n=Ne;break;case 268435456:n=Fe;break;default:n=Ne}return r=ld.bind(null,e),n=Te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(au!==0&&au!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=J;return r=Ye(e,e===K?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(_u(e,r,t),cd(e,ke()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Hu())return null;_u(e,t,!0)}function dd(){Zd(function(){zl&6?Te(je,od):sd()})}function fd(){if(rd===0){var e=pa;e===0&&(e=Ge,Ge<<=1,!(Ge&261888)&&(Ge=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:nn(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[dt]||null).action),o=r.submitter;o&&(t=(t=o[dt]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Tn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);Ds(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),Ds(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Xr.length;gd++){var _d=Xr[gd];Zr(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Zr(Hr,`onAnimationEnd`),Zr(Ur,`onAnimationIteration`),Zr(Wr,`onAnimationStart`),Zr(`dblclick`,`onDoubleClick`),Zr(`focusin`,`onFocus`),Zr(`focusout`,`onBlur`),Zr(Gr,`onTransitionRun`),Zr(Kr,`onTransitionStart`),Zr(qr,`onTransitionCancel`),Zr(Jr,`onTransitionEnd`),Dt(`onMouseEnter`,[`mouseout`,`mouseover`]),Dt(`onMouseLeave`,[`mouseout`,`mouseover`]),Dt(`onPointerEnter`,[`pointerout`,`pointerover`]),Dt(`onPointerLeave`,[`pointerout`,`pointerover`]),Et(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Et(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Et(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Et(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Et(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`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(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Qr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Qr(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[pt];n===void 0&&(n=t[pt]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,wt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(gp(t)){case 2:var i=up;break;case 8:i=dp;break;default:i=fp}n=i.bind(null,t,n,e),i=void 0,!mn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=yt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}dn(function(){var r=a,i=on(n),s=[];a:{var c=Yr.get(e);if(c!==void 0){var l=Tn,u=e;switch(e){case`keypress`:if(bn(n)===0)break a;case`keydown`:case`keyup`:l=Un;break;case`focusin`:u=`focus`,l=Pn;break;case`focusout`:u=`blur`,l=Pn;break;case`beforeblur`:case`afterblur`:l=Pn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Mn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Nn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=F;break;case Hr:case Ur:case Wr:l=Fn;break;case Jr:l=Gn;break;case`scroll`:case`scrollend`:l=Dn;break;case`wheel`:l=Kn;break;case`copy`:case`cut`:case`paste`:l=In;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Wn;break;case`toggle`:case`beforetoggle`:l=qn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=fn(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==an&&(u=n.relatedTarget||n.fromElement)&&(yt(u)||u[ft]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?yt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Mn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Wn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:xt(l),h=u==null?c:xt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,yt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(s,c,l,d,!1),u!==null&&f!==null&&kd(s,f,u,d,!0)}}a:{if(c=r?xt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=pr;else if(sr(c))if(mr)v=Cr;else{v=xr;var y=br}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&$t(r.elementType)&&(v=pr):v=Sr;if(v&&=v(e,r)){cr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Gt(c,`number`,c.value)}switch(y=r?xt(r):window,e){case`focusin`:(sr(y)||y.contentEditable===`true`)&&(I=y,Nr=r,Pr=null);break;case`focusout`:Pr=Nr=I=null;break;case`mousedown`:Fr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Fr=!1,Ir(s,n,i);break;case`selectionchange`:if(Mr)break;case`keydown`:case`keyup`:Ir(s,n,i)}var b;if(Yn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else rr?tr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Qn&&n.locale!==`ko`&&(rr||x!==`onCompositionStart`?x===`onCompositionEnd`&&rr&&(b=yn()):(gn=i,_n=`value`in gn?gn.value:gn.textContent,rr=!0)),y=Dd(r,x),0<y.length&&(x=new Ln(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=nr(n),b!==null&&(x.data=b)))),(b=Zn?ir(e,n):ar(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new Ln(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),hd(s,e,r,n,i)}bd(s,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=fn(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=fn(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=fn(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=fn(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,`
9`).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Pd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Yt(e,``+r);break;case`className`:Nt(e,`class`,r);break;case`tabIndex`:Nt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Nt(e,n,r);break;case`style`:Qt(e,r,o);break;case`data`:if(t!==`object`){Nt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Pd(e,t,`name`,a.name,a,null),Pd(e,t,`formEncType`,a.formEncType,a,null),Pd(e,t,`formMethod`,a.formMethod,a,null),Pd(e,t,`formTarget`,a.formTarget,a,null)):(Pd(e,t,`encType`,a.encType,a,null),Pd(e,t,`method`,a.method,a,null),Pd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=nn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=nn(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Z(`beforetoggle`,e),Z(`toggle`,e),Mt(e,`popover`,r);break;case`xlinkActuate`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Pt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Pt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Mt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=en.get(n)||n,Mt(e,n,r))}}function Fd(e,t,n,r,a,o){switch(n){case`style`:Qt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Yt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Yt(e,``+r);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=rn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Tt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[dt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Mt(e,n,r)}}}function Id(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Pd(e,t,o,s,n,null)}}a&&Pd(e,t,`srcSet`,n.srcSet,n,null),r&&Pd(e,t,`src`,n.src,n,null);return;case`input`:Z(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Pd(e,t,r,d,n,null)}}Wt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Pd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Kt(e,!!r,n,!0):Kt(e,!!r,t,!1);return;case`textarea`:for(s in Z(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Pd(e,t,s,c,n,null)}Jt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Pd(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)Z(vd[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Pd(e,t,u,r,n,null)}return;default:if($t(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Pd(e,t,c,r,n,null))}function Ld(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Pd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Pd(e,t,p,m,r,f)}}Ut(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Pd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Pd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Kt(e,!!n,n?[]:``,!1):Kt(e,!!n,t,!0)):Kt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Pd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Pd(e,t,s,a,r,o)}qt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Pd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Pd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Pd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Pd(e,t,u,p,r,m)}return;default:if($t(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Pd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Pd(e,t,f,p,r,m)}function Rd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function zd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Rd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Gd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e!==Kd&&(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Fp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)hf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,hf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[_t]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&hf(e.ownerDocument.body);n=i}while(n);Fp(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),vt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[_t])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=uf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=uf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=uf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var df=null;function ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return uf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function hf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vt(e)}var gf=new Map,_f=new Set;function vf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yf=P.d;P.d={f:bf,r:xf,D:wf,C:Tf,L:Ef,m:Df,X:kf,S:Of,M:Af};function bf(){var e=yf.f(),t=xu();return e||t}function xf(e){var t=bt(e);t!==null&&t.tag===5&&t.type===`form`?ks(t):yf.r(e)}var Sf=typeof document>`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=Ht(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ht(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ht(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ht(n.imageSizes)+`"]`)):i+=`[href="`+Ht(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),Ct(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ht(r)+`"][href="`+Ht(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),Ct(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=St(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);Ct(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=St(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),Ct(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=St(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),Ct(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var a=(a=de.current)?vf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=St(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=St(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=St(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Mf(e){return`href="`+Ht(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),Ct(t),e.head.appendChild(t))}function If(e){return`[src="`+Ht(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ht(n.href)+`"]`);if(r)return t.instance=r,Ct(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ct(r),Id(r,`style`,a),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Mf(n.href);var o=e.querySelector(Nf(a));if(o)return t.state.loading|=4,t.instance=o,Ct(o),o;r=Pf(n),(a=gf.get(a))&&Bf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ct(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(a=e.querySelector(Lf(o)))?(t.instance=a,Ct(a),a):(r=n,(a=gf.get(o))&&(r=m({},n),Vf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ct(a),Id(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Hf=null;function Uf(e,t,n){if(Hf===null){var r=new Map,i=Hf=new Map;i.set(n,r)}else i=Hf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[_t]||a[ut]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Wf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ct(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),Ct(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Xf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ep={$$typeof:C,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function tp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function np(e,t,n,r,i,a,o,s,c,l,u,d){return e=new tp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ui(3,null,null,t),e.current=a,a.stateNode=e,t=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function rp(e){return e?(e=ci,e):ci}function ip(e,t,n,r,i,a){i=rp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(gu(n,e,t),Ga(n,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function op(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function sp(e){if(e.tag===13||e.tag===31){var t=ai(e,67108864);t!==null&&gu(t,e,67108864),op(e,67108864)}}function cp(e){if(e.tag===13||e.tag===31){var t=mu();t=at(t);var n=ai(e,t);n!==null&&gu(n,e,t),op(e,t)}}var lp=!0;function up(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,fp(e,t,n,r)}finally{P.p=a,N.T=i}}function dp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,fp(e,t,n,r)}finally{P.p=a,N.T=i}}function fp(e,t,n,r){if(lp){var i=pp(r);if(i===null)Td(e,t,r,mp,n),Tp(e,r);else if(Dp(i,e,t,n,r))r.stopPropagation();else if(Tp(e,r),t&4&&-1<wp.indexOf(e)){for(;i!==null;){var a=bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ve(o);s.entanglements[1]|=c,o&=~c}id(a),!(zl&6)&&(nu=ke()+500,ad(0,!1))}}break;case 31:case 13:s=ai(a,2),s!==null&&gu(s,a,2),xu(),op(a,2)}if(a=pp(r),a===null&&Td(e,t,r,mp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function pp(e){return e=on(e),hp(e)}var mp=null;function hp(e){if(mp=null,e=yt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return mp=e,null}function gp(e){switch(e){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(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var _p=!1,vp=null,yp=null,bp=null,xp=new Map,Sp=new Map,Cp=[],wp=`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 Tp(e,t){switch(e){case`focusin`:case`focusout`:vp=null;break;case`dragenter`:case`dragleave`:yp=null;break;case`mouseover`:case`mouseout`:bp=null;break;case`pointerover`:case`pointerout`:xp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Sp.delete(t.pointerId)}}function Ep(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=bt(t),t!==null&&sp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dp(e,t,n,r,i){switch(t){case`focusin`:return vp=Ep(vp,e,t,n,r,i),!0;case`dragenter`:return yp=Ep(yp,e,t,n,r,i),!0;case`mouseover`:return bp=Ep(bp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return xp.set(a,Ep(xp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Sp.set(a,Ep(Sp.get(a)||null,e,t,n,r,i)),!0}return!1}function Op(e){var t=yt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ct(e.priority,function(){cp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ct(e.priority,function(){cp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);an=r,n.target.dispatchEvent(r),an=null}else return t=bt(n),t!==null&&sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){kp(e)&&n.delete(t)}function jp(){_p=!1,vp!==null&&kp(vp)&&(vp=null),yp!==null&&kp(yp)&&(yp=null),bp!==null&&kp(bp)&&(bp=null),xp.forEach(Ap),Sp.forEach(Ap)}function Mp(e,n){e.blockedOn===n&&(e.blockedOn=null,_p||(_p=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jp)))}var Np=null;function Pp(e){Np!==e&&(Np=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Np===e&&(Np=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(hp(r||n)===null)continue;break}var a=bt(n);a!==null&&(e.splice(t,3),t-=3,Ds(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Fp(e){function t(t){return Mp(t,e)}vp!==null&&Mp(vp,e),yp!==null&&Mp(yp,e),bp!==null&&Mp(bp,e),xp.forEach(t),Sp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&(n=Cp[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&Cp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[dt]||null;if(typeof a==`function`)o||Pp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[dt]||null)s=o.formAction;else if(hp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Pp(n)}}}function Ip(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Lp(e){this._internalRoot=e}Rp.prototype.render=Lp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ip(n,mu(),e,t,null,null)},Rp.prototype.unmount=Lp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;
9ip(e.current,2,null,e,null,null),xu(),t[ft]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=st();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&t!==0&&t<Cp[n].priority;n++);Cp.splice(n,0,e),n===0&&Op(e)}};var zp=n.version;if(zp!==`19.2.8`)throw Error(i(527,zp,`19.2.8`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Bp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{Re=Vp.inject(Bp),ze=Vp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=qs,s=Js,c=Ys;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=np(e,1,!1,null,null,n,r,null,o,s,c,Ip),e[ft]=t.current,Cd(e),new Lp(t)}})),_=o(((e,t)=>{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)}}n(),t.exports=g()})),v=o(((e,t)=>{var n=typeof Element<`u`,r=typeof Map==`function`,i=typeof Set==`function`,a=typeof ArrayBuffer==`function`&&!!ArrayBuffer.isView;function o(e,t){if(e===t)return!0;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(e.constructor!==t.constructor)return!1;var s,c,l;if(Array.isArray(e)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(!o(e[c],t[c]))return!1;return!0}var u;if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;for(u=e.entries();!(c=u.next()).done;)if(!o(c.value[1],t.get(c.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(u=e.entries();!(c=u.next()).done;)if(!t.has(c.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(s=e.length,s!=t.length)return!1;for(c=s;c--!==0;)if(e[c]!==t[c])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf==`function`&&typeof t.valueOf==`function`)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString==`function`&&typeof t.toString==`function`)return e.toString()===t.toString();if(l=Object.keys(e),s=l.length,s!==Object.keys(t).length)return!1;for(c=s;c--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[c]))return!1;if(n&&e instanceof Element)return!1;for(c=s;c--!==0;)if(!((l[c]===`_owner`||l[c]===`__v`||l[c]===`__o`)&&e.$$typeof)&&!o(e[l[c]],t[l[c]]))return!1;return!0}return e!==e&&t!==t}t.exports=function(e,t){try{return o(e,t)}catch(e){if((e.message||``).match(/stack|recursion/i))return console.warn(`react-fast-compare cannot handle circular refs`),!1;throw e}}})),y=o(((e,t)=>{t.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(t===void 0)c=Error(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var l=[n,r,i,a,o,s],u=0;c=Error(t.replace(/%s/g,function(){return l[u++]})),c.name=`Invariant Violation`}throw c.framesToPop=1,c}}})),b=o(((e,t)=>{t.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),c=0;c<a.length;c++){var l=a[c];if(!s(l))return!1;var u=e[l],d=t[l];if(i=n?n.call(r,u,d,l):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}})),x=_(),S=l(d()),C=l(v()),w=l(y()),T=l(b()),E=(e=>(e.BASE=`base`,e.BODY=`body`,e.HEAD=`head`,e.HTML=`html`,e.LINK=`link`,e.META=`meta`,e.NOSCRIPT=`noscript`,e.SCRIPT=`script`,e.STYLE=`style`,e.TITLE=`title`,e.FRAGMENT=`Symbol(react.fragment)`,e))(E||{}),D={link:{rel:[`amphtml`,`canonical`,`alternate`]},script:{type:[`application/ld+json`]}
9,meta:{charset:``,name:[`generator`,`robots`,`description`],property:[`og:type`,`og:title`,`og:url`,`og:image`,`og:image:alt`,`og:description`,`twitter:url`,`twitter:title`,`twitter:description`,`twitter:image`,`twitter:image:alt`,`twitter:card`,`twitter:site`]}},O=Object.values(E),k={accesskey:`accessKey`,charset:`charSet`,class:`className`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,"http-equiv":`httpEquiv`,itemprop:`itemProp`,tabindex:`tabIndex`},A=Object.entries(k).reduce((e,[t,n])=>(e[n]=t,e),{}),j=`data-rh`,ee={DEFAULT_TITLE:`defaultTitle`,DEFER:`defer`,ENCODE_SPECIAL_CHARACTERS:`encodeSpecialCharacters`,ON_CHANGE_CLIENT_STATE:`onChangeClientState`,TITLE_TEMPLATE:`titleTemplate`,PRIORITIZE_SEO_TAGS:`prioritizeSeoTags`},M=(e,t)=>{for(let n=e.length-1;n>=0;--n){let r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},te=e=>{let t=M(e,`title`),n=M(e,ee.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join(``)),n&&t)return n.replace(/%s/g,()=>t);let r=M(e,ee.DEFAULT_TITLE);return t||r||void 0},ne=e=>M(e,ee.ON_CHANGE_CLIENT_STATE)||(()=>{}),N=(e,t)=>t.filter(t=>t[e]!==void 0).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),P=(e,t)=>t.filter(e=>e.base!==void 0).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){let r=Object.keys(n);for(let i=0;i<r.length;i+=1){let a=r[i].toLowerCase();if(e.indexOf(a)!==-1&&n[a])return t.concat(n)}}return t},[]),re=e=>console&&typeof console.warn==`function`&&console.warn(e),ie=(e,t,n)=>{let r={};return n.filter(t=>Array.isArray(t[e])?!0:(t[e]!==void 0&&re(`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`),!1)).map(t=>t[e]).reverse().reduce((e,n)=>{let i={};n.filter(e=>{let n,a=Object.keys(e);for(let r=0;r<a.length;r+=1){let i=a[r],o=i.toLowerCase();t.indexOf(o)!==-1&&(n!==`rel`||e[n].toLowerCase()!==`canonical`)&&(o!==`rel`||e[o].toLowerCase()!==`stylesheet`)&&(n=o),t.indexOf(i)!==-1&&(i===`innerHTML`||i===`cssText`||i===`itemprop`)&&(n=i)}if(!n||!e[n])return!1;let o=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][o]&&(i[n][o]=!0,!0)}).reverse().forEach(t=>e.push(t));let a=Object.keys(i);for(let e=0;e<a.length;e+=1){let t=a[e],n={...r[t],...i[t]};r[t]=n}return e},[]).reverse()},ae=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},oe=e=>({baseTag:P([`href`],e),bodyAttributes:N(`bodyAttributes`,e),defer:M(e,ee.DEFER),encode:M(e,ee.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:N(`htmlAttributes`,e),linkTags:ie(`link`,[`rel`,`href`],e),metaTags:ie(`meta`,[`name`,`charset`,`http-equiv`,`property`,`itemprop`],e),noscriptTags:ie(`noscript`,[`innerHTML`],e),onChangeClientState:ne(e),scriptTags:ie(`script`,[`src`,`innerHTML`],e),styleTags:ie(`style`,[`cssText`],e),title:te(e),titleAttributes:N(`titleAttributes`,e),prioritizeSeoTags:ae(e,ee.PRIORITIZE_SEO_TAGS)}),se=e=>Array.isArray(e)?e.join(``):e,ce=(e,t)=>{let n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},le=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(ce(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},ue=(e,t)=>({...e,[t]:void 0}),de=[`noscript`,`script`,`style`],fe=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#x27;`),pe=e=>Object.keys(e).reduce((t,n)=>{let r=e[n]===void 0?`${n}`:`${n}="${e[n]}"`;return t?`${t} ${r}`:r},``),me=(e,t,n,r)=>{let i=pe(n),a=se(t);return i?`<${e} ${j}="true" ${i}>${fe(a,r)}</${e}>`:`<${e} ${j}="true">${fe(a,r)}</${e}>`},he=(e,t,n=!0)=>t.reduce((t,r)=>{let i=r,a=Object.keys(i).filter(e=>e!==`innerHTML`&&e!==`cssText`).reduce((e,t)=>{let r=i[t]===void 0?t:`${t}="${fe(i[t],n)}"`;return e?`${e} ${r}`:r},``),o=i.innerHTML||i.cssText||``;return`${t}<${e} ${j}="true" ${a}${de.indexOf(e)===-1?`/>`:`>${o}</${e}>`}`},``),ge=(e,t={})=>Object.keys(e).reduce((t,n)=>{let r=k[n];return t[r||n]=e[n],t},t),_e=(e,t,n)=>{let r=ge(n,{key:t,[j]:!0});return[S.createElement(`title`,r,t)]},ve=(e,t)=>t.map((t,n)=>{let r={key:n,[j]:!0};
9return Object.keys(t).forEach(e=>{let n=k[e]||e;if(n===`innerHTML`||n===`cssText`){let e=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:e}}else r[n]=t[e]}),S.createElement(e,r)}),ye=(e,t,n=!0)=>{switch(e){case`title`:return{toComponent:()=>_e(e,t.title,t.titleAttributes),toString:()=>me(e,t.title,t.titleAttributes,n)};case`bodyAttributes`:case`htmlAttributes`:return{toComponent:()=>ge(t),toString:()=>pe(t)};default:return{toComponent:()=>ve(e,t),toString:()=>he(e,t,n)}}},be=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{let i=le(e,D.meta),a=le(t,D.link),o=le(n,D.script);return{priorityMethods:{toComponent:()=>[...ve(`meta`,i.priority),...ve(`link`,a.priority),...ve(`script`,o.priority)],toString:()=>`${ye(`meta`,i.priority,r)} ${ye(`link`,a.priority,r)} ${ye(`script`,o.priority,r)}`},metaTags:i.default,linkTags:a.default,scriptTags:o.default}},xe=e=>{let{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:a,styleTags:o,title:s=``,titleAttributes:c,prioritizeSeoTags:l}=e,{linkTags:u,metaTags:d,scriptTags:f}=e,p={toComponent:()=>[],toString:()=>``};return l&&({priorityMethods:p,linkTags:u,metaTags:d,scriptTags:f}=be(e)),{priority:p,base:ye(`base`,t,r),bodyAttributes:ye(`bodyAttributes`,n,r),htmlAttributes:ye(`htmlAttributes`,i,r),link:ye(`link`,u,r),meta:ye(`meta`,d,r),noscript:ye(`noscript`,a,r),script:ye(`script`,f,r),style:ye(`style`,o,r),title:ye(`title`,{title:s,titleAttributes:c},r)}},Se=[],Ce=!!(typeof window<`u`&&window.document&&window.document.createElement),we=class{instances=[];canUseDOM=Ce;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Se:this.instances,add:e=>{(this.canUseDOM?Se:this.instances).push(e)},remove:e=>{let t=(this.canUseDOM?Se:this.instances).indexOf(e);(this.canUseDOM?Se:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=xe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:``,titleAttributes:{}}))}},Te=parseInt(`19.2.8`.split(`.`)[0],10)>=19,Ee=S.createContext({}),De=class e extends S.Component{static canUseDOM=Ce;helmetData;constructor(t){super(t),this.helmetData=Te?null:new we(this.props.context||{},e.canUseDOM)}render(){return Te?S.createElement(S.Fragment,null,this.props.children):S.createElement(Ee.Provider,{value:this.helmetData.value},this.props.children)}},Oe=(e,t)=>{let n=document.head||document.querySelector(`head`),r=n.querySelectorAll(`${e}[${j}]`),i=[].slice.call(r),a=[],o;return t&&t.length&&t.forEach(t=>{let n=document.createElement(e);for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e))if(e===`innerHTML`)n.innerHTML=t.innerHTML;else if(e===`cssText`){let e=t.cssText;n.appendChild(document.createTextNode(e))}else{let r=e,i=t[r]===void 0?``:t[r];n.setAttribute(e,i)}n.setAttribute(j,`true`),i.some((e,t)=>(o=t,n.isEqualNode(e)))?i.splice(o,1):a.push(n)}
9),i.forEach(e=>e.parentNode?.removeChild(e)),a.forEach(e=>n.appendChild(e)),{oldTags:i,newTags:a}},ke=(e,t)=>{let n=document.getElementsByTagName(e)[0];if(!n)return;let r=n.getAttribute(j),i=r?r.split(`,`):[],a=[...i],o=Object.keys(t);for(let e of o){let r=t[e]||``;n.getAttribute(e)!==r&&n.setAttribute(e,r),i.indexOf(e)===-1&&i.push(e);let o=a.indexOf(e);o!==-1&&a.splice(o,1)}for(let e=a.length-1;e>=0;--e)n.removeAttribute(a[e]);i.length===a.length?n.removeAttribute(j):n.getAttribute(j)!==o.join(`,`)&&n.setAttribute(j,o.join(`,`))},Ae=(e,t)=>{e!==void 0&&document.title!==e&&(document.title=se(e)),ke(`title`,t)},je=(e,t)=>{let{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:a,metaTags:o,noscriptTags:s,onChangeClientState:c,scriptTags:l,styleTags:u,title:d,titleAttributes:f}=e;ke(`body`,r),ke(`html`,i),Ae(d,f);let p={baseTag:Oe(`base`,n),linkTags:Oe(`link`,a),metaTags:Oe(`meta`,o),noscriptTags:Oe(`noscript`,s),scriptTags:Oe(`script`,l),styleTags:Oe(`style`,u)},m={},h={};Object.keys(p).forEach(e=>{let{newTags:t,oldTags:n}=p[e];t.length&&(m[e]=t),n.length&&(h[e]=p[e].oldTags)}),t&&t(),c(e,m,h)},Me=null,Ne=e=>{Me&&cancelAnimationFrame(Me),e.defer?Me=requestAnimationFrame(()=>{je(e,()=>{Me=null})}):(je(e),Me=null)},Pe=class extends S.Component{rendered=!1;shouldComponentUpdate(e){return!(0,T.default)(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){let{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){let{helmetInstances:e,setHelmet:t}=this.props.context,n=null,r=oe(e.get().map(e=>{let{context:t,...n}=e.props;return n}));De.canUseDOM?Ne(r):xe&&(n=xe(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;let{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},Fe=[],Ie=e=>{let t={};for(let n of Object.keys(e))t[A[n]||n]=e[n];return t},Le=e=>{let t={};for(let n of Object.keys(e)){let r=k[n];t[r||n]=e[n]}return t},Re=(e,t)=>{if(!Ce)return;let n=document.getElementsByTagName(e)[0];if(!n)return;let r=`data-rh-managed`,i=n.getAttribute(r),a=i?i.split(`,`):[],o=Object.keys(t);for(let e of a)o.includes(e)||n.removeAttribute(e);for(let e of o){let r=t[e];r==null||r===!1?n.removeAttribute(e):r===!0?n.setAttribute(e,``):n.setAttribute(e,String(r))}o.length>0?n.setAttribute(r,o.join(`,`)):n.removeAttribute(r)},ze=()=>{let e={},t={};for(let n of Fe){let{htmlAttributes:r,bodyAttributes:i}=n.props;r&&Object.assign(e,Ie(r)),i&&Object.assign(t,Ie(i))}Re(`html`,e),Re(`body`,t)},Be=class extends S.Component{componentDidMount(){Fe.push(this),ze()}componentDidUpdate(){ze()}componentWillUnmount(){let e=Fe.indexOf(this);e!==-1&&Fe.splice(e,1),ze()}resolveTitle(){let{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(``):e):e||n||void 0}renderTitle(){let e=this.resolveTitle();if(e===void 0)return null;let t=this.props.titleAttributes||{};return S.createElement(`title`,Le(t),e)}renderBase(){let{base:e}=this.props;return e?S.createElement(`base`,Le(e)):null}renderMeta(){let{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>S.createElement(`meta`,{key:t,...Le(e)}))}renderLink(){let{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>S.createElement(`link`,{key:t,...Le(e)}))}renderScript(){let{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{innerHTML:n,...r}=e,i=Le(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),S.createElement(`script`,{key:t,...i})})}renderStyle(){let{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{cssText:n,...r}=e,i=Le(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),S.createElement(`style`,{key:t,...i})})}renderNoscript(){let{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((e,t)=>{let{innerHTML:n,...r}=e,i=Le(r);return n&&(i.dangerouslySetInnerHTML={__html:n}),S.createElement(`noscript`,{key:t,...i})})}render(){return S.createElement(S.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Ve=class extends S.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!(0,C.default)(ue(this.props,`helmetData`),ue(e,`helmetData`))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case`script`:case`noscript`:return{innerHTML:t};case`style`:return{cssText:t};default:throw Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case`title`:return{...t,[e.type]:r,titleAttributes:{...n}};case`body`:return{...t,bodyAttributes:{...n}};case`html`:return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}
9warnOnInvalidChildren(e,t){return(0,w.default)(O.some(t=>e.type===t),typeof e.type==`function`?`You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.`:`Only elements types ${O.join(`, `)} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),(0,w.default)(!t||typeof t==`string`||Array.isArray(t)&&!t.some(e=>typeof e!=`string`),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return S.Children.forEach(e,e=>{if(!e||!e.props)return;let{children:r,...i}=e.props,a=Object.keys(i).reduce((e,t)=>(e[A[t]||t]=i[t],e),{}),{type:o}=e;switch(typeof o==`symbol`?o=o.toString():this.warnOnInvalidChildren(e,r),o){case`Symbol(react.fragment)`:t=this.mapChildrenToProps(r,t);break;case`link`:case`meta`:case`noscript`:case`script`:case`style`:n=this.flattenArrayTypeChildren(e,n,a,r);break;default:t=this.mapObjectTypeChildren(e,t,a,r)}}),this.mapArrayTypeChildrenToProps(n,t)}render(){let{children:e,...t}=this.props,n={...t},{helmetData:r}=t;return e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof we)&&(r=new we(r.context,!0),delete n.helmetData),Te?S.createElement(Be,{...n}):r?S.createElement(Pe,{...n,context:r.value}):S.createElement(Ee.Consumer,null,e=>S.createElement(Pe,{...n,context:e}))}},He=`modulepreload`,Ue=function(e){return`/`+e},We={},Ge=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ue(t,n),t=s(t),t in We)return;We[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:He,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ke=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,qe=/^[\\/]{2}/;function Je(e,t){return t+e.replace(/\\/g,`/`)}var Ye=`popstate`;function Xe(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function Ze(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return nt(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:rt(t)}return at(t,n,null,e)}function Qe(e,t){if(e===!1||e==null)throw Error(t)}function $e(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function et(){return Math.random().toString(36).substring(2,10)}function tt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function nt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?it(t):t,state:n,key:t&&t.key||r||et(),mask:i}}function rt({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function it(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function at(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=Xe(e)?e:nt(h.location,e,t);n&&n(r,e),l=u()+1;let d=tt(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=Xe(e)?e:nt(h.location,e,t);n&&n(r,e),l=u();let i=tt(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ot(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(Ye,d),c=e,()=>{i.removeEventListener(Ye,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ot(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),Qe(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:rt(t);return i=i.replace(/ $/,`%20`),!n&&qe.test(i)&&(i=r+i),new URL(i,r)}function st(e,t,n=`/`){return ct(e,t,n,!1)}function ct(e,t,n,r,i){let a=Dt((typeof t==`string`?it(t):t).pathname||`/`,n);if(a==null)return null;
9let o=i??lt(e),s=null,c=Et(a);for(let e=0;s==null&&e<o.length;++e)s=St(o[e],c,r);return s}function lt(e){let t=ut(e);return ft(t),t}function ut(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;Qe(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ft([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(Qe(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ut(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:bt(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Tt(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of dt(e.path))a(e,t,!0,n)}),t}function dt(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=dt(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function ft(e){e.sort((e,t)=>e.score===t.score?xt(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var pt=/^:[\w-]+$/,mt=3,ht=2,gt=1,_t=10,vt=-2,yt=e=>e===`*`;function bt(e,t){let n=e.split(`/`),r=n.length;return n.some(yt)&&(r+=vt),t&&(r+=ht),n.filter(e=>!yt(e)).reduce((e,t)=>e+(pt.test(t)?mt:t===``?gt:_t),r)}function xt(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function St(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?wt(u,l,s.matcher,s.compiledParams):Ct(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Ct({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;
9Object.assign(i,d.params),o.push({params:i,pathname:Ft([a,d.pathname]),pathnameBase:Lt(Ft([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ft([a,d.pathnameBase]))}return o}function Ct(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Tt(e.path,e.caseSensitive,e.end);return wt(e,t,n,r)}function wt(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Tt(e,t=!1,n=!0){$e(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Et(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return $e(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Dt(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Ot(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?it(e):e,a;return n?(n=Pt(n),a=n.startsWith(`/`)?kt(n.substring(1),`/`):kt(n,t)):a=t,{pathname:a,search:Rt(r),hash:zt(i)}}function kt(e,t){let n=It(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function At(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jt(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Mt(e){let t=jt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Nt(e,t,n,r=!1){let i;typeof e==`string`?i=it(e):(i={...e},Qe(!i.pathname||!i.pathname.includes(`?`),At(`?`,`pathname`,`search`,i)),Qe(!i.pathname||!i.pathname.includes(`#`),At(`#`,`pathname`,`hash`,i)),Qe(!i.search||!i.search.includes(`#`),At(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Ot(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Pt=e=>e.replace(/[\\/]{2,}/g,`/`),Ft=e=>Pt(e.join(`/`)),It=e=>e.replace(/\/+$/,``),Lt=e=>It(e).replace(/^\/*/,`/`),Rt=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,zt=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Bt=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Vt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ht(e){return Ft(e.map(e=>e.route.path).filter(Boolean))||`/`}var Ut=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Wt(e,t){let n=e;if(typeof n!=`string`||!Ke.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Ut)try{let e=new URL(window.location.href),r=qe.test(n)?new URL(Je(n,e.protocol)):new URL(n),a=Dt(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{$e(!1,`<Link to="${n}">
9 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Gt=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Gt);var Kt=[`GET`,...Gt];new Set(Kt);var qt=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function Jt(e){try{return qt.includes(new URL(e).protocol)}catch{return!1}}var Yt=S.createContext(null);Yt.displayName=`DataRouter`;var Xt=S.createContext(null);Xt.displayName=`DataRouterState`;var Zt=S.createContext(!1);function Qt(){return S.useContext(Zt)}var $t=S.createContext({isTransitioning:!1});$t.displayName=`ViewTransition`;var en=S.createContext(new Map);en.displayName=`Fetchers`;var tn=S.createContext(null);tn.displayName=`Await`;var nn=S.createContext(null);nn.displayName=`Navigation`;var rn=S.createContext(null);rn.displayName=`Location`;var an=S.createContext({outlet:null,matches:[],isDataRoute:!1});an.displayName=`Route`;var on=S.createContext(null);on.displayName=`RouteError`;var sn=`REACT_ROUTER_ERROR`,cn=`REDIRECT`,ln=`ROUTE_ERROR_RESPONSE`;function un(e){if(e.startsWith(`${sn}:${cn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function dn(e){if(e.startsWith(`${sn}:${ln}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Bt(t.status,t.statusText,t.data)}catch{}}function fn(e,{relative:t}={}){Qe(pn(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=S.useContext(nn),{hash:i,pathname:a,search:o}=Sn(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ft([n,a])),r.createHref({pathname:s,search:o,hash:i})}function pn(){return S.useContext(rn)!=null}function mn(){return Qe(pn(),`useLocation() may be used only in the context of a <Router> component.`),S.useContext(rn).location}var hn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function gn(e){S.useContext(nn).static||S.useLayoutEffect(e)}function _n(){let{isDataRoute:e}=S.useContext(an);return e?zn():vn()}function vn(){Qe(pn(),`useNavigate() may be used only in the context of a <Router> component.`);let e=S.useContext(Yt),{basename:t,navigator:n}=S.useContext(nn),{matches:r}=S.useContext(an),{pathname:i}=mn(),a=JSON.stringify(Mt(r)),o=S.useRef(!1);return gn(()=>{o.current=!0}),S.useCallback((r,s={})=>{if($e(o.current,hn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Nt(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ft([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var yn=S.createContext(null);function bn(e){let t=S.useContext(an).outlet;return S.useMemo(()=>t&&S.createElement(yn.Provider,{value:e},t),[t,e])}function xn(){let{matches:e}=S.useContext(an);return e[e.length-1]?.params??{}}function Sn(e,{relative:t}={}){let{matches:n}=S.useContext(an),{pathname:r}=mn(),i=JSON.stringify(Mt(n));return S.useMemo(()=>Nt(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Cn(e,t){return wn(e,t)}function wn(e,t,n){Qe(pn(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=S.useContext(nn),{matches:i}=S.useContext(an),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Vn(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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.
10
11Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=mn(),d;if(t){let e=typeof t==`string`?it(t):t;Qe(c===`/`||e.pathname?.startsWith(c),`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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):st(e,{pathname:p});$e(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),$e(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 h=jn(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ft([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ft([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?S.createElement(rn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Tn(){let e=Rn(),t=Vt(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=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:a},`ErrorBoundary`),` or`,` `,S.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application 
11Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:i},n):null,o)}var En=S.createElement(Tn,null),Dn=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=dn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(an.Provider,{value:this.props.routeContext},S.createElement(on.Provider,{value:e,children:this.props.component}));return this.context?S.createElement(kn,{error:e},t):t}};Dn.contextType=Zt;var On=new WeakMap;function kn({children:e,error:t}){let{basename:n}=S.useContext(nn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=un(t.digest);if(e){let r=On.get(t);if(r)throw r;let i=Wt(e.location,n),a=i.absoluteURL||i.to;if(Jt(a))throw Error(`Invalid redirect location`);if(Ut&&!On.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw On.set(t,n),n}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function An({routeContext:e,match:t,children:n}){let r=S.useContext(Yt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(an.Provider,{value:e},n)}function jn(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);Qe(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ht(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||En,o&&(s<0&&c===0?(Vn(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?S.createElement(n.route.Component,null):n.route.element?n.route.element:e,S.createElement(An,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?S.createElement(Dn,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Mn(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nn(e){let t=S.useContext(Yt);return Qe(t,Mn(e)),t}function Pn(e){let t=S.useContext(Xt);return Qe(t,Mn(e)),t}function Fn(e){let t=S.useContext(an);return Qe(t,Mn(e)),t}function In(e){let t=Fn(e),n=t.matches[t.matches.length-1];return Qe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ln(){return In(`useRouteId`)}function Rn(){let e=S.useContext(on),t=Pn(`useRouteError`),n=In(`useRouteError`);return e===void 0?t.errors?.[n]:e}function zn(){let{router:e}=Nn(`useNavigate`),t=In(`useNavigate`),n=S.useRef(!1);return gn(()=>{n.current=!0}),S.useCallback(async(r,i={})=>{$e(n.current,hn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Bn={};function Vn(e,t,n){!t&&!Bn[e]&&(Bn[e]=!0,$e(!1,n))}S.memo(Hn);function Hn({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return wn(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Un({to:e,replace:t,state:n,relative:r}){Qe(pn(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=S.useContext(nn);$e(!i,`<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:a}=S.useContext(an),{pathname:o}=mn(),s=_n(),c=Nt(e,Mt(a),o,r===`path`),l=JSON.stringify(c);return S.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function Wn(e){return bn(e.context)}function F(e){Qe(!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 Gn({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){Qe(!pn(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=S.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=it(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=S.useMemo(()=>{let e=Dt(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);
11return $e(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:S.createElement(nn.Provider,{value:c},S.createElement(rn.Provider,{children:t,value:h}))}function Kn({children:e,location:t}){return Cn(qn(e),t)}S.Component;function qn(e,t=[]){let n=[];return S.Children.forEach(e,(e,r)=>{if(!S.isValidElement(e))return;let i=[...t,r];if(e.type===S.Fragment){n.push.apply(n,qn(e.props.children,i));return}Qe(e.type===F,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=qn(e.props.children,i)),n.push(a)}),n}var Jn=`get`,Yn=`application/x-www-form-urlencoded`;function Xn(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Zn(e){return Xn(e)&&e.tagName.toLowerCase()===`button`}function Qn(e){return Xn(e)&&e.tagName.toLowerCase()===`form`}function $n(e){return Xn(e)&&e.tagName.toLowerCase()===`input`}function er(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tr(e,t){return e.button===0&&(!t||t===`_self`)&&!er(e)}function nr(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function rr(e,t){let n=nr(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var ir=null;function ar(){if(ir===null)try{new FormData(document.createElement(`form`),0),ir=!1}catch{ir=!0}return ir}var or=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function sr(e){return e!=null&&!or.has(e)?($e(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yn}"`),null):e}function cr(e,t){let n,r,i,a,o;if(Qn(e)){let o=e.getAttribute(`action`);r=o?Dt(o,t):null,n=e.getAttribute(`method`)||Jn,i=sr(e.getAttribute(`enctype`))||Yn,a=new FormData(e)}else if(Zn(e)||$n(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Dt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Jn,i=sr(e.getAttribute(`formenctype`))||sr(o.getAttribute(`enctype`))||Yn,a=new FormData(o,e),!ar()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Xn(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Jn,r=null,i=Yn,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function lr(e,t){if(e===!1||e==null)throw Error(t)}function ur(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Dt(i.pathname,t)===`/`?`${It(t)}/_root.${r}`:`${It(i.pathname)}.${r}`,i}async function dr(e,t){if(e.id in t)return t[e.id];try{let n=await Ge(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
11isSpaMode,window.location.reload(),new Promise(()=>{})}}function fr(e){return e!=null&&typeof e.page==`string`}function pr(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function mr(e,t,n){return yr((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await dr(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(pr).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function hr(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function gr(e,t,{includeHydrateFallback:n}={}){return _r(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function _r(e){return[...new Set(e)]}function vr(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function yr(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!fr(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(vr(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function br(){let e=S.useContext(Yt);return lr(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function xr(){let e=S.useContext(Xt);return lr(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Sr=S.createContext(void 0);Sr.displayName=`FrameworkContext`;function Cr(){let e=S.useContext(Sr);return lr(e,`You must render this element inside a <HydratedRouter> element`),e}function wr(e,t){let n=S.useContext(Sr),[r,i]=S.useState(!1),[a,o]=S.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=S.useRef(null);S.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),S.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Tr(s,p),onBlur:Tr(c,m),onMouseEnter:Tr(l,p),onMouseLeave:Tr(u,m),onTouchStart:Tr(d,p)}]:[a,f,{}]:[!1,f,{}]}function Tr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Er({page:e,...t}){let n=Qt(),{nonce:r}=Cr(),{router:i}=br(),a=S.useMemo(()=>st(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?S.createElement(Or,{page:e,matches:a,...t}):S.createElement(kr,{page:e,matches:a,...t})):null}function Dr(e){let{manifest:t,routeModules:n}=Cr(),[r,i]=S.useState([]);return S.useEffect(()=>{let r=!1;return mr(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Or({page:e,matches:t,...n}){let r=mn(),{future:i}=Cr(),{basename:a}=br(),o=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=ur(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return S.createElement(S.Fragment,null,o.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function kr({page:e,matches:t,...n}){let r=mn(),{future:i,manifest:a,routeModules:o}=Cr(),{basename:s}=br(),{loaderData:c,matches:l}=xr(),u=S.useMemo(()=>hr(e,t,l,a,r,`data`),[e,t,l,a,r]),d=S.useMemo(()=>hr(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=S.useMemo(()=>
11{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=ur(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=S.useMemo(()=>gr(d,a),[d,a]),m=Dr(d);return S.createElement(S.Fragment,null,f.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>S.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>S.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ar(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}S.Component;var jr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{jr&&(window.__reactRouterVersion=`7.18.2`)}catch{}function Mr({basename:e,children:t,useTransitions:n,window:r}){let i=S.useRef();i.current??=Ze({window:r,v5Compat:!0});let a=i.current,[o,s]=S.useState({action:a.action,location:a.location}),c=S.useCallback(e=>{n===!1?s(e):S.startTransition(()=>s(e))},[n]);return S.useLayoutEffect(()=>a.listen(c),[a,c]),S.createElement(Gn,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var I=S.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=S.useContext(nn),v=typeof l==`string`&&Ke.test(l),y=Wt(l,h);l=y.to;let b=fn(l,{relative:r}),x=mn(),C=null;if(o){let e=Nt(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ft([h,e.pathname])),C=g.createHref(e)}let[w,T,E]=wr(n,p),D=Lr(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(y.isExternal||i),A=S.createElement(`a`,{...p,...E,href:(k?C:void 0)||y.absoluteURL||b,onClick:k?O:e,ref:Ar(m,T),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return w&&!v?S.createElement(S.Fragment,null,A,S.createElement(Er,{page:b})):A});I.displayName=`Link`;var Nr=S.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Sn(a,{relative:c.relative}),d=mn(),f=S.useContext(Xt),{navigator:p,basename:m}=S.useContext(nn),h=f!=null&&Ur(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Dt(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return S.createElement(I,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Nr.displayName=`NavLink`;var Pr=S.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Jn,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=S.useContext(nn),g=Vr(),_=Hr(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Ke.test(s);return S.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?S.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});
11Pr.displayName=`Form`;function Fr(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ir(e){let t=S.useContext(Yt);return Qe(t,Fr(e)),t}function Lr(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=_n(),d=mn(),f=Sn(e,{relative:o});return S.useCallback(p=>{if(tr(p,t)){p.preventDefault();let t=n===void 0?rt(d)===rt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?S.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Rr(e){$e(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 t=S.useRef(nr(e)),n=S.useRef(!1),r=mn(),i=S.useMemo(()=>rr(r.search,n.current?null:t.current),[r.search]),a=_n();return[i,S.useCallback((e,t)=>{let r=nr(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var zr=0,Br=()=>`__${String(++zr)}__`;function Vr(){let{router:e}=Ir(`useSubmit`),{basename:t}=S.useContext(nn),n=Ln(),r=e.fetch,i=e.navigate;return S.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=cr(e,t);if(a.navigate===!1){let e=a.fetcherKey||Br();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Hr(e,{relative:t}={}){let{basename:n}=S.useContext(nn),r=S.useContext(an);Qe(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Sn(e||`.`,{relative:t})},o=mn();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ft([n,a.pathname])),rt(a)}function Ur(e,{relative:t}={}){let n=S.useContext($t);Qe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ir(`useViewTransitionState`),i=Sn(e,{relative:t});if(!n.isTransitioning)return!1;let a=Dt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Dt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ct(i.pathname,o)!=null||Ct(i.pathname,a)!=null}function Wr(e,t){return function(){return e.apply(t,arguments)}}var{toString:Gr}=Object.prototype,{getPrototypeOf:Kr}=Object,{iterator:qr,toStringTag:Jr}=Symbol,Yr=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xr=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Yr(n,t))return!0;n=Kr(n)}return!1},Zr=(e,t)=>e!=null&&Xr(e,t)?e[t]:void 0,Qr=(e=>t=>{let n=Gr.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$r=e=>(e=e.toLowerCase(),t=>Qr(t)===e),ei=e=>t=>typeof t===e,{isArray:ti}=Array,ni=ei(`undefined`);function ri(e){return e!==null&&!ni(e)&&e.constructor!==null&&!ni(e.constructor)&&si(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ii=$r(`ArrayBuffer`);function ai(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ii(e.buffer),t}var oi=ei(`string`),si=ei(`function`),ci=ei(`number`),li=e=>typeof e==`object`&&!!e,ui=e=>e===!0||e===!1,di=e=>{if(!li(e))return!1;let t=Kr(e);return(t===null||t===Object.prototype||Kr(t)===null)&&!Xr(e,Jr)&&!Xr(e,qr)},fi=e=>{if(!li(e)||ri(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}}
11,pi=$r(`Date`),mi=$r(`File`),hi=e=>!!(e&&e.uri!==void 0),gi=e=>e&&e.getParts!==void 0,_i=$r(`Blob`),vi=$r(`FileList`),yi=$r(`Set`),bi=e=>li(e)&&si(e.pipe);function xi(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Si=xi(),Ci=Si.FormData===void 0?void 0:Si.FormData,wi=e=>{if(!e)return!1;if(Ci&&e instanceof Ci)return!0;let t=Kr(e);if(!t||t===Object.prototype||!si(e.append))return!1;let n=Qr(e);return n===`formdata`||n===`object`&&si(e.toString)&&e.toString()===`[object FormData]`},Ti=$r(`URLSearchParams`),[Ei,Di,Oi,ki]=[`ReadableStream`,`Request`,`Response`,`Headers`].map($r),Ai=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function ji(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),ti(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(ri(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function Mi(e,t){if(ri(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-->0;)if(i=n[r],t===i.toLowerCase())return i;return null}var Ni=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,Pi=e=>!ni(e)&&e!==Ni;function Fi(...e){let{caseless:t,skipUndefined:n}=Pi(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&Mi(r,i)||i,o=Yr(r,a)?r[a]:void 0;di(o)&&di(e)?r[a]=Fi(o,e):di(e)?r[a]=Fi({},e):ti(e)?r[a]=e.slice():(!n||!ni(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||ri(n)||(ji(n,i),typeof n!=`object`||ti(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Ki.call(n,t)&&i(n[t],t)}}return r}var Ii=(e,t,n,{allOwnKeys:r}={})=>(ji(t,(t,r)=>{n&&si(t)?Object.defineProperty(e,r,{__proto__:null,value:Wr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),L=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Li=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},Ri=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-->0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Kr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zi=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Bi=e=>{if(!e)return null;if(ti(e))return e;let t=e.length;if(!ci(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},Vi=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&Kr(Uint8Array)),Hi=(e,t)=>{let n=(e&&e[qr]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ui=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Wi=$r(`HTMLFormElement`),Gi=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Ki}=Object.prototype,qi=$r(`RegExp`),Ji=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};ji(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Yi=e=>{Ji(e,(t,n)=>{if(si(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(si(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Xi=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return ti(e)?r(e):r(String(e).split(t)),n},Zi=()=>{},Qi=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $i(e){return!!(e&&si(e.append)&&e[Jr]===`FormData`&&e[qr])}var ea=e=>{let t=new WeakSet,n=e=>{if(li(e)){if(t.has(e))return;if(ri(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(yi(e)){r=[];for(let t of e){let e=n(t);!ni(e)&&r.push(e)}}else r=ti(e)?[]:{},ji(e,(e,t)=>{let i=n(e);!ni(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},ta=$r(`AsyncFunction`),na=e=>e&&(li(e)||si(e))&&si(e.then)&&si(e.catch),ra=((e,t)=>e?setImmediate:t?((e,t)=>(Ni.addEventListener(`message`,({source:n,data:r})=>{n===Ni&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Ni.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,si(Ni.postMessage)),ia=typeof queueMicrotask<`u`?queueMicrotask.bind(Ni):typeof process<`u`&&process.nextTick||ra,aa=e=>e!=null&&si(e[qr]),R={isArray:ti,isArrayBuffer:ii,isBuffer:ri,isFormData:wi,isArrayBufferView:ai,isString:oi,isNumber:ci,isBoolean:ui,isObject:li,isPlainObject:di,isEmptyObject:fi,isReadableStream:Ei,isRequest:Di,isResponse:Oi,isHeaders:ki,isUndefined:ni,isDate:pi,isFile:mi,isReactNativeBlob:hi,isReactNative:gi,isBlob:_i,isRegExp:qi,isFunction:si,isStream:bi,isURLSearchParams:Ti,isTypedArray:Vi,isFileList:vi,forEac
11h:ji,merge:Fi,extend:Ii,trim:Ai,stripBOM:L,inherits:Li,toFlatObject:Ri,kindOf:Qr,kindOfTest:$r,endsWith:zi,toArray:Bi,forEachEntry:Hi,matchAll:Ui,isHTMLForm:Wi,hasOwnProperty:Yr,hasOwnProp:Yr,hasOwnInPrototypeChain:Xr,getSafeProp:Zr,reduceDescriptors:Ji,freezeMethods:Yi,toObjectSet:Xi,toCamelCase:Gi,noop:Zi,toFiniteNumber:Qi,findKey:Mi,global:Ni,isContextDefined:Pi,isSpecCompliantForm:$i,toJSONObject:ea,isAsyncFn:ta,isThenable:na,setImmediate:ra,asap:ia,isIterable:aa,isSafeIterable:e=>e!=null&&Xr(e,qr)&&aa(e)},oa=R.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),sa=e=>{let t={},n,r,i;return e&&e.split(`
12`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=R.hasOwnProp(t,n);!n||a&&R.hasOwnProp(oa,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function ca(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var la=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),ua=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function da(e,t){return R.isArray(e)?e.map(e=>da(e,t)):ca(String(e).replace(t,``))}var fa=e=>da(e,la),pa=e=>da(e,ua);function ma(e){let t=Object.create(null);return R.forEach(e.toJSON(),(e,n)=>{t[n]=pa(e)}),t}var ha=Symbol(`internals`);function ga(e){return e&&String(e).trim().toLowerCase()}function _a(e){return e===!1||e==null?e:R.isArray(e)?e.map(_a):fa(String(e))}function va(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var ya=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function ba(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}function xa(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function Sa(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=ba(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=ba(i.slice(0,a));if(!ya.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=ba(i.slice(a+1));t[s]=xa(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var Ca=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wa(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function Ta(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ea(e,t){let n=R.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var Da=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=ga(t);if(!i)return;let a=R.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=_a(e))}let a=(e,t)=>R.forEach(e,(e,n)=>i(e,n,t));if(R.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(R.isString(e)&&(e=e.trim())&&!Ca(e))a(sa(e),t);else if(R.isObject(e)&&R.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!R.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],R.hasOwnProp(n,i)?(r=n[i],n[i]=R.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=ga(e),e){let n=R.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return va(e);if(R.isFunction(t))return t.call(this,e,n);if(R.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=ga(e),e){let n=R.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||wa(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=ga(e),e){let i=R.findKey(n,e);i&&(!t||wa(n,n[i],i,t))&&(delete n[i],r=!0)}}return R.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||wa(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return R.forEach(this,(r,i)=>{let a=R.findKey(n,i);if(a){t[a]=_a(r),delete t[i];return}let o=e?Ta(i):String(i).trim();o!==i&&delete t[i],t[o]=_a(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return R.forEach(this,(n,r)=>
12{n!=null&&n!==!1&&(t[r]=e&&R.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
13`)}getSetCookie(){let e=this.get(`set-cookie`);return R.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return Sa(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[ha]=this[ha]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=ga(e);t[r]||(Ea(n,e),t[r]=!0)}return R.isArray(e)?e.forEach(r):r(e),this}};Da.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),R.reduceDescriptors(Da.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),R.freezeMethods(Da);var Oa=`[REDACTED ****]`;function ka(e){if(R.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(R.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function Aa(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||R.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof Da&&(e=e.toJSON()),r.push(e);let t;if(R.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);R.isUndefined(r)||(t[n]=r)});else{if(!R.isPlainObject(e)&&ka(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?Oa:i(a);R.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function ja(e){try{return String(e)}catch{return``}}function Ma(e){return e.errors.map(e=>{try{return e&&e.message?ja(e.message):ja(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var z=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&R.isArray(t.errors)&&t.errors.length&&(s=Ma(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&R.hasOwnProp(e,`redact`)?e.redact:void 0,n=R.isArray(t)&&t.length>0?Aa(e,t):R.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};z.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,z.ERR_BAD_OPTION=`ERR_BAD_OPTION`,z.ECONNABORTED=`ECONNABORTED`,z.ETIMEDOUT=`ETIMEDOUT`,z.ECONNREFUSED=`ECONNREFUSED`,z.ERR_NETWORK=`ERR_NETWORK`,z.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,z.ERR_DEPRECATED=`ERR_DEPRECATED`,z.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,z.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,z.ERR_CANCELED=`ERR_CANCELED`,z.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,z.ERR_INVALID_URL=`ERR_INVALID_URL`,z.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function Na(e){return R.isPlainObject(e)||R.isArray(e)}function Pa(e){return R.endsWith(e,`[]`)?e.slice(0,-2):e}function Fa(e,t,n){return e?e.concat(t).map(function(e,t){return e=Pa(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function Ia(e){return R.isArray(e)&&!e.some(Na)}var La=R.toFlatObject(R,{},null,function(e){return/^is[A-Z]/.test(e)});function Ra(e,t,n){if(!R.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!R.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&R.isSpecCompliantForm(t),u=[];if(!R.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(R.isDate(e))return e.toISOString();if(R.isBoolean(e))return e.toString();if(!l&&R.isBlob(e))throw new z(`Blob is not supported. Use a Buffer instead.`);if(R.isArrayBuffer(e)||R.isTypedArray(e)){if(l&&typeof s==`function`)return new s([e]);throw new z(`Blob is not supported. Use a Buffer instead.`,z.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new z(`Object is too deeply nested (`+e+` levels). Max depth: `+c,z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!R.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(R.isReactNative(t)&&R.isReactNativeBlob(e))return t.append(Fa(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(R.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(R.isArray(e)&&Ia(e)||(R.isFileList(e)||R.endsWith(n,`[]`))&&(s=R.toArray(e)))return n=Pa(n),s.forEac
13h(function(e,r){!(R.isUndefined(e)||e===null)&&t.append(o===!0?Fa([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return Na(e)?!0:(t.append(Fa(i,n,a),d(e)),!1)}let h=Object.assign(La,{defaultVisitor:m,convertValue:d,isVisitable:Na});function g(e,n,r=0){if(!R.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),R.forEach(e,function(e,a){(!(R.isUndefined(e)||e===null)&&i.call(t,e,R.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!R.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function za(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Ba(e,t){this._pairs=[],e&&Ra(e,this,t)}var Va=Ba.prototype;Va.append=function(e,t){this._pairs.push([e,t])},Va.toString=function(e){let t=e?t=>e.call(this,t,za):za;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Ha(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Ua(e,t,n){if(!t)return e;e||=``;let r=R.isFunction(n)?{serialize:n}:n,i=R.getSafeProp(r,`encode`)||Ha,a=R.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):R.isURLSearchParams(t)?t.toString():new Ba(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Wa=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){R.forEach(this.handlers,function(t){t!==null&&e(t)})}},Ga={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Ka={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Ba,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},qa=s({hasBrowserEnv:()=>Ja,hasStandardBrowserEnv:()=>Xa,hasStandardBrowserWebWorkerEnv:()=>Za,navigator:()=>Ya,origin:()=>Qa}),Ja=typeof window<`u`&&typeof document<`u`,Ya=typeof navigator==`object`&&navigator||void 0,Xa=Ja&&(!Ya||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ya.product)<0),Za=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Qa=Ja&&window.location.href||`http://localhost`,$a={...qa,...Ka};function eo(e,t){return Ra(e,new $a.classes.URLSearchParams,{visitor:function(e,t,n,r){return $a.isNode&&R.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var to=100;function no(e){if(e>to)throw new z(`FormData field is too deeply nested (`+e+` levels). Max depth: `+to,z.ERR_FORM_DATA_DEPTH_EXCEEDED)}function ro(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)no(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function io(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function ao(e){function t(e,n,r,i){no(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&R.isArray(r)?r.length:a,s?(R.hasOwnProp(r,a)?r[a]=R.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!R.hasOwnProp(r,a)||!R.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&R.isArray(r[a])&&(r[a]=io(r[a])),!o)}if(R.isFormData(e)&&R.isFunction(e.entries)){let n={};return R.forEachEntry(e,(e,r)=>{t(ro(e),r,n,0)}),n}return null}var oo=(e,t)=>e!=null&&R.hasOwnProp(e,t)?e[t]:void 0;function so(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var co={transitional:Ga,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=R.isObject(e);if(i&&R.isHTMLForm(e)&&(e=new FormData(e)),R.isFormData(e))return r?JSON.stringify(ao(e)):e;if(R.isArrayBuffer(e)||R.isBuffer(e)||R.isStream(e)||R.isFile(e)||R.isBlob(e)||R.isReadableStream(e))return e;if(R.isArrayBufferView(e))return e.buffer;if(R.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;
13if(i){let t=oo(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return eo(e,t).toString();if((a=R.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=oo(this,`env`),r=n&&n.FormData;return Ra(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),so(e)):e}],transformResponse:[function(e){let t=oo(this,`transitional`)||co.transitional,n=t&&t.forcedJSONParsing,r=oo(this,`responseType`),i=r===`json`;if(R.isResponse(e)||R.isReadableStream(e))return e;if(e&&R.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,oo(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?z.from(e,z.ERR_BAD_RESPONSE,this,null,oo(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:$a.classes.FormData,Blob:$a.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{co.headers[e]={}});function lo(e,t){let n=this||co,r=t||n,i=Da.from(r.headers),a=r.data;return R.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function uo(e){return!!(e&&e.__CANCEL__)}var fo=class extends z{constructor(e,t,n){super(e??`canceled`,z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function po(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new z(`Request failed with status code `+n.status,n.status>=400&&n.status<500?z.ERR_BAD_REQUEST:z.ERR_BAD_RESPONSE,n.config,n.request,n))}function B(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function mo(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function ho(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var go=(e,t,n=3)=>{let r=0,i=mo(50,250);return ho(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,o==null?a:Math.min(a,o)),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},_o=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},vo=(e,t=R.asap)=>(...n)=>t(()=>e(...n)),yo=$a.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,$a.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL($a.origin),$a.navigator&&/(msie|trident)/i.test($a.navigator.userAgent)):()=>!0,bo=$a.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&s.push(`path=${r}`),R.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),R.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function xo(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function So(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var Co=/^https?:(?!\/\/)/i,wo=/[\t\n\r]/g;function To(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Eo(e){return To(e).replace(wo,``)}function Do(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${Oa}`)}function Oo(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Oa}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Oa}`);return n===-1?r:`${r}#${Do(t.slice(n+1))}`}function ko(e,t){if(typeof e==`string`){let n=Eo(e);if(Co.test(n))throw new z(`Invalid URL ${JSON.stringify(Oo(n))}: missing "//" after protocol`,z.ERR_INVALID_URL,t)}}function Ao(e,t,n,r){ko(t,r);let i=!xo(t);return e&&(i||n===!1)?(ko(e,r),So(e,t)):t}var jo=e=>e instanceof Da?{...e}:e,Mo=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function No(e,t){e||={},t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return R.isPlainObject(e)&&R.isPlainObject(t)?R.merge.call({caseless:r}
13,e,t):R.isPlainObject(t)?R.merge({},t):R.isArray(t)?t.slice():t}function i(e,t,n,i){if(!R.isUndefined(t))return r(e,t,n,i);if(!R.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!R.isUndefined(t))return r(void 0,t)}function o(e,t){if(!R.isUndefined(t))return r(void 0,t);if(!R.isUndefined(e))return r(void 0,e)}function s(n){let r=R.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!R.isUndefined(r))if(R.isPlainObject(r)){if(R.hasOwnProp(r,n))return r[n]}else return;let i=R.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(R.isPlainObject(i)&&R.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(R.hasOwnProp(t,a))return r(n,i);if(R.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i(jo(e),jo(t),n,!0)};return R.forEach(Mo({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=R.hasOwnProp(l,r)?l[r]:i,o=a(R.hasOwnProp(e,r)?e[r]:void 0,R.hasOwnProp(t,r)?t[r]:void 0,r);R.isUndefined(o)&&a!==c||(n[r]=o)}),R.hasOwnProp(t,`validateStatus`)&&R.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(R.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.val
13idateStatus),n}var Po=[`content-type`,`content-length`];function Fo(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{Po.includes(t.toLowerCase())&&e.set(t,n)})}var Io=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function Lo(e){let t=No({},e),n=e=>R.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=Da.from(s),t.url=Ua(Ao(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=R.getSafeProp(c,`username`)||``,n=R.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?Io(n):``)))}catch(t){throw z.from(t,z.ERR_BAD_OPTION_VALUE,e)}}if(R.isFormData(r)&&($a.hasStandardBrowserEnv||$a.hasStandardBrowserWebWorkerEnv||R.isReactNative(r)?s.setContentType(void 0):R.isFunction(r.getHeaders)&&Fo(s,r.getHeaders(),n(`formDataHeaderPolicy`))),$a.hasStandardBrowserEnv&&(R.isFunction(i)&&(i=i(t)),i===!0||i==null&&yo(t.url))){let e=a&&o&&bo.read(o);e&&s.set(a,e)}return t}var Ro=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=Lo(e),i=r.data,a=Da.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=Da.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());po(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new z(`Request aborted`,z.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new z(t&&t.message?t.message:`Network Error`,z.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Ga;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new z(t,i.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&R.forEach(ma(a),function(e,t){h.setRequestHeader(t,e)}),R.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=go(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=go(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new fo(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=B(r.url);if(_&&!$a.protocols.includes(_)){n(new z(`Unsupported protocol `+_+`:`,z.ERR_BAD_REQUEST,e)),m();return}h.send(i||null)})},zo=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof z?t:new fo(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new z(`timeout of ${t}ms exceeded`,z.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>R.asap(o),s},Bo=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Vo=async function*(e,t){for await(let n of Ho(e))yield*Bo(n,t)},Ho=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Uo=(e,t,n,r)=>{let i=Vo(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Wo=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Go=(e,t,n)=>t+2<n&&Wo(e.charCodeAt(t+1))&&Wo(e.charCodeAt(t+2)),Ko=e=>e<=57?e-48:(e&223)-55,qo=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Jo=e=>e===9||e===10||e===12||e===13||e===32,Yo=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Xo=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Zo=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&Go(e,a,t)&&(o=Ko(e.charCodeAt(a+1))*16+Ko(e.charCodeAt(a+2)),a+=2),!Jo(o)){if(o===61){r++;continue}if(!qo(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Xo(e):Yo(n)},Qo=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&Go(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>
13=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function $o(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return Qo(t===-1?e:e.slice(0,t),Zo)}var es=`1.19.0`,ts=65536,{isFunction:ns}=R,rs=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),is=e=>{if(!R.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},as=(e,...t)=>{try{return!!e(...t)}catch{return!1}},os=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},ss=e=>{let t=R.global!==void 0&&R.global!==null?R.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=R.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?ns(i):typeof fetch==`function`,c=ns(a),l=ns(o);if(!s)return!1;let u=s&&ns(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&as(()=>{let e=!1,t=new a($a.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&as(()=>R.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new z(`Response type '${e}' is not supported`,z.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(R.isBlob(e))return e.size;if(R.isSpecCompliantForm(e))return(await new a($a.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(R.isArrayBufferView(e)||R.isArrayBuffer(e))return e.byteLength;if(R.isURLSearchParams(e)&&(e+=``),R.isString(e))return(await d(e)).byteLength},g=async(e,t)=>R.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:S=`same-origin`,fetchOptions:C,maxContentLength:w,maxBodyLength:T}=Lo(e),E=R.isNumber(w)&&w>-1,D=R.isNumber(T)&&T>-1,O=t=>R.hasOwnProp(e,t)?e[t]:void 0,k=i||fetch;b=b?(b+``).toLowerCase():`text`;let A=zo([l,d&&d.toAbortSignal()],_),j=null,ee=A&&A.unsubscribe&&(()=>{A.unsubscribe()}),M,te=null,ne=()=>new z(`Request body larger than maxBodyLength limit`,z.ERR_BAD_REQUEST,e,j);try{let i,l=O(`auth`);if(l&&(i={username:R.getSafeProp(l,`username`)||``,password:R.getSafeProp(l,`password`)||``}),os(t)){let e=new URL(t,$a.origin);!i&&(e.username||e.password)&&(i={username:is(e.username),password:is(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(rs((i.username||``)+`:`+(i.password||``))))),E&&typeof t==`string`&&t.startsWith(`data:`)&&$o(t)>w)throw new z(`maxContentLength size of `+w+` exceeded`,z.ERR_BAD_RESPONSE,e,j);if(D&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(M=e,e>T))throw ne()}let d=D&&(R.isReadableStream(s)||R.isStream(s)),_=(e,t,n)=>Uo(e,ts,e=>{if(D&&e>T)throw te=ne();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(M??=await g(x,s),M!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(R.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&_o(M,go(vo(y)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new z(`Stream request bodies are not supported by the current fetch implementation`,z.ERR_NOT_SUPPORT,e,j);R.isString(S)||(S=S?`include`:`omit`);let N=c&&`credentials`in a.prototype;if(R.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+es,!1);let P={...C,signal:A,method:n.toUpperCase(),headers:ma(x.normalize()),body:s,duplex:`half`,credentials:N?S:void 0};j=c&&new a(t,P);let re=await(c?k(j,C):k(t,P)),ie=Da.from(re.headers);if(E){let t=R.toFiniteNumber(ie.getContentLength());if(t!=null&&t>w)throw new z(`maxContentLength size of `+w+` exceeded`,z.ERR_BAD_RESPONSE,e,j)}let ae=p&&(b===`stream`||b===`response`);if(p&&re.body&&(v||E||ae&&ee)){let t={};
13[`status`,`statusText`,`headers`].forEach(e=>{t[e]=re[e]});let n=R.toFiniteNumber(ie.getContentLength()),[r,i]=v&&_o(n,go(vo(v),!0))||[],a=0;re=new o(Uo(re.body,ts,t=>{if(E&&(a=t,a>w))throw new z(`maxContentLength size of `+w+` exceeded`,z.ERR_BAD_RESPONSE,e,j);r&&r(t)},()=>{i&&i(),ee&&ee()}),t)}b||=`text`;let oe=await m[R.findKey(m,b)||`text`](re,e);if(E&&!p&&!ae){let t;if(oe!=null&&(typeof oe.byteLength==`number`?t=oe.byteLength:typeof oe.size==`number`?t=oe.size:typeof oe==`string`&&(t=typeof r==`function`?new r().encode(oe).byteLength:oe.length)),typeof t==`number`&&t>w)throw new z(`maxContentLength size of `+w+` exceeded`,z.ERR_BAD_RESPONSE,e,j)}return!ae&&ee&&ee(),await new Promise((t,n)=>{po(t,n,{data:oe,headers:Da.from(re.headers),status:re.status,statusText:re.statusText,config:e,request:j})})}catch(t){if(ee&&ee(),A&&A.aborted&&A.reason instanceof z){let n=A.reason;throw n.config=e,j&&(n.request=j),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(te)throw j&&!te.request&&(te.request=j),te;if(t instanceof z)throw j&&!t.request&&(t.request=j),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new z(`Network Error`,z.ERR_NETWORK,e,j,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw z.from(t,t&&t.code,e,j,t&&t.response)}}},cs=new Map,ls=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=cs;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:ss(t)),l=c;return c};ls();var us={http:null,xhr:Ro,fetch:{get:ls}};R.forEach(us,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var ds=e=>`- ${e}`,fs=e=>R.isFunction(e)||e===null||e===!1;function ps(e,t){e=R.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!fs(r)&&(i=us[(n=String(r)).toLowerCase()],i===void 0))throw new z(`Unknown adapter '${n}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new z(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
14`+e.map(ds).join(`
15`):` `+ds(e[0]):`as no adapter specified`),z.ERR_NOT_SUPPORT)}return i}var ms={getAdapter:ps,adapters:us};function hs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fo(null,e)}function gs(e){return hs(e),e.headers=Da.from(e.headers),e.data=lo.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),ms.getAdapter(e.adapter||co.adapter,e)(e).then(function(t){hs(e),e.response=t;try{t.data=lo.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=Da.from(t.headers),t},function(t){if(!uo(t)&&(hs(e),t&&t.response)){e.response=t.response;try{t.response.data=lo.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=Da.from(t.response.headers)}return Promise.reject(t)})}var _s={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{_s[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var vs={};_s.transitional=function(e,t,n){function r(e,t){return`[Axios v`+es+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new z(r(i,` has been removed`+(t?` in `+t:``)),z.ERR_DEPRECATED);return t&&!vs[i]&&(vs[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),!e||e(n,i,a)}},_s.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ys(e,t,n){if(typeof e!=`object`||!e)throw new z(`options must be an object`,z.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-->0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new z(`option `+a+` must be `+n,z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new z(`Unknown option `+a,z.ERR_BAD_OPTION)}}var bs={assertOptions:ys,validators:_s},xs=bs.validators,Ss=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Wa,response:new Wa}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>
15{if(!t.stack)return``;let e=t.stack.indexOf(`
16`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
17`),r=t===-1?-1:n.indexOf(`
18`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
19`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=No(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&bs.assertOptions(n,{silentJSONParsing:xs.transitional(xs.boolean),forcedJSONParsing:xs.transitional(xs.boolean),clarifyTimeoutError:xs.transitional(xs.boolean),legacyInterceptorReqResOrdering:xs.transitional(xs.boolean),advertiseZstdAcceptEncoding:xs.transitional(xs.boolean),validateStatusUndefinedResolves:xs.transitional(xs.boolean)},!1),r!=null&&(R.isFunction(r)?t.paramsSerializer={serialize:r}:bs.assertOptions(r,{encode:xs.function,serialize:xs.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),bs.assertOptions(t,{baseUrl:xs.spelling(`baseURL`),withXsrfToken:xs.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&R.merge(i.common,i[t.method]);i&&R.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=Da.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Ga;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[gs.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);R.isThenable(n)&&(l=Promise.resolve(n).then(()=>gs.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=gs.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=No(this.defaults,e),Ua(Ao(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};R.forEach([`delete`,`get`,`head`,`options`],function(e){Ss.prototype[e]=function(t,n){return this.request(No(n||{},{method:e,url:t,data:n&&R.hasOwnProp(n,`data`)?n.data:void 0}))}}),R.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(No(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Ss.prototype[e]=t(),e!==`query`&&(Ss.prototype[e+`Form`]=t(!0))});var Cs=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-->0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new fo(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function ws(e){return function(t){return e.apply(null,t)}}function Ts(e){return R.isObject(e)&&e.isAxiosError===!0}var Es={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
19alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Es).forEach(([e,t])=>{Es[t]=e});function Ds(e){let t=new Ss(e),n=Wr(Ss.prototype.request,t);return R.extend(n,Ss.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Ds(No(e,t))},n}var Os=Ds(co);Os.Axios=Ss,Os.CanceledError=fo,Os.CancelToken=Cs,Os.isCancel=uo,Os.VERSION=es,Os.toFormData=Ra,Os.AxiosError=z,Os.Cancel=Os.CanceledError,Os.all=function(e){return Promise.all(e)},Os.spread=ws,Os.isAxiosError=Ts,Os.mergeConfig=No,Os.AxiosHeaders=Da,Os.formToJSON=e=>ao(R.isHTMLForm(e)?new FormData(e):e),Os.getAdapter=ms.getAdapter,Os.HttpStatusCode=Es,Os.default=Os;var ks=`/api`,V=Os.create({baseURL:ks,withCredentials:!0});V.interceptors.request.use(e=>{let t=localStorage.getItem(`accessToken`);return t&&(e.headers.Authorization=`Bearer ${t}`),e}),V.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status===401&&!t._retry){t._retry=!0;try{let e=localStorage.getItem(`refreshToken`),{data:n}=await Os.post(`${ks}/auth/refresh`,{refreshToken:e},{withCredentials:!0}),r=n.data.accessToken;return localStorage.setItem(`accessToken`,r),n.data.refreshToken&&localStorage.setItem(`refreshToken`,n.data.refreshToken),t.headers.Authorization=`Bearer ${r}`,V(t)}catch(e){return localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`),typeof window<`u`&&!window.location.pathname.includes(`/admin/login`)&&(window.location.href=`/admin/login`),Promise.reject(e)}}return Promise.reject(e)});var As={async login(e,t){return(await V.post(`/auth/login`,{username:e,password:t})).data},async logout(){return(await V.post(`/auth/logout`)).data},async getMe(){return(await V.get(`/auth/me`)).data}},js=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Ms=o(((e,t)=>{t.exports=js()})),H=Ms(),Ns=(0,S.createContext)(null),Ps=({children:e})=>{let[t,n]=(0,S.useState)(null),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)(!0),s=(0,S.useCallback)(async()=>{try{if(!localStorage.getItem(`accessToken`)){o(!1);return}let e=await As.getMe();n(e.data.user),i(!0)}catch{n(null),i(!1),localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}finally{o(!1)}},[]);return(0,S.useEffect)(()=>{s()},[s]),(0,H.jsx)(Ns.Provider,{value:{user:t,isAuthenticated:r,isLoading:a,login:async(e,t)=>{let r=await As.login(e,t);return r.data?.accessToken&&localStorage.setItem(`accessToken`,r.data.accessToken),r.data?.refreshToken&&localStorage.setItem(`refreshToken`,r.data.refreshToken),n(r.data.user),i(!0),r},logout:async()=>{try{await As.logout()}catch(e){console.error(e)}finally{localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`),n(null),i(!1),window.location.href=`/admin/login`}},checkAuth:s},children:e})},Fs=()=>{let e=(0,S.useContext)(Ns);if(!e)throw Error(`useAuth must be used within an AuthProvider`);return e},Is=({children:e})=>{let{isAuthenticated:t,isLoading:n}=Fs(),r=mn();return n?(0,H.jsx)(`div`,{className:`min-h-screen flex items-center justify-center bg-[#0f172a]`,children:(0,H.jsx)(`div`,{className:`w-12 h-12 border-4 border-[#38bdf8] border-t-transparent roun
19ded-full animate-spin`})}):t?e:(0,H.jsx)(Un,{to:`/admin/login`,state:{from:r},replace:!0})},U=e=>typeof e==`string`,Ls=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Rs=e=>e==null?``:String(e),zs=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Bs=/###/g,Vs=e=>e&&e.includes(`###`)?e.replace(Bs,`.`):e,Hs=e=>!e||U(e),Us=(e,t,n)=>{let r=U(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Hs(e))return{};let t=Vs(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Hs(e)?{}:{obj:e,k:Vs(r[i])}},Ws=(e,t,n)=>{let{obj:r,k:i}=Us(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Us(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Us(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Gs=(e,t,n,r)=>{let{obj:i,k:a}=Us(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Ks=(e,t)=>{let{obj:n,k:r}=Us(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},qs=(e,t,n)=>{let r=Ks(e,n);return r===void 0?Ks(t,n):r},Js=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?U(e[r])||e[r]instanceof String||U(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Js(e[r],t[r],n):e[r]=t[r]);return e},Ys=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Xs={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Zs=e=>U(e)?e.replace(/[&<>"'\/]/g,e=>Xs[e]):e,Qs=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},$s=[` `,`,`,`?`,`!`,`;`],ec=new Qs(20),tc=(e,t,n)=>{t||=``,n||=``;let r=$s.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=ec.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},nc=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},rc=e=>e?.replace(/_/g,`-`),ic={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},ac=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||ic,this.options=t,this.debug=t.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,t,n,r){return r&&!this.debug?null:(e=e.map(e=>U(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),U(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},oc=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},sc=class extends oc{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):U(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Ks(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!U(n)?s:nc(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];
19n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Ws(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(U(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Ks(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Js(s,n,i):s={...s,...n},Ws(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},cc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},lc=Symbol(`i18next/PATH_KEY`);function uc(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===lc?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function dc(e,t){let{[lc]:n}=e(uc()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var fc=e=>!U(e)&&typeof e!=`boolean`&&typeof e!=`number`,pc=class e extends oc{constructor(e,t={}){super(),zs([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=ac.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=fc(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!tc(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:U(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:U(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=dc(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?dc(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!U(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=fc(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(U(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:fc(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&U(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.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 e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit
19(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=U(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!U(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=U(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=cc.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return U(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?dc(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!U(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(U(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" 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!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}
19getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!U(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},mc=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ac.create(`languageUtils`)}getScriptPartFromCode(e){if(e=rc(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=rc(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(U(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(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.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),U(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return U(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):U(e)&&i(this.formatLanguageCode(e)),n.forEac
19h(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},hc={zero:0,one:1,two:2,few:3,many:4,other:5},gc={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},_c=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=ac.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=rc(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),gc;if(!e.match(/-|_/))return gc;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>hc[e]-hc[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},vc=(e,t,n,r=`.`,i=!0)=>{let a=qs(e,t,n);return!a&&i&&U(n)&&(a=nc(e,n,r),a===void 0&&(a=nc(t,n,r))),a},yc=e=>e.replace(/\$/g,`$$$$`),bc=class{constructor(e={}){this.logger=ac.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Zs:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Ys(i):a||`{{`,this.suffix=o?Ys(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Ys(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Ys(l):``,this.nestingPrefix=d?Ys(d):f||Ys(`$t(`),this.nestingSuffix=p?Ys(p):m||Ys(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`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,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=vc(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(vc(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}
19].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=U(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!U(a)&&!this.useRawValueToEscape&&(a=Rs(a));let s=t.safeValue(a);if(e=e.replace(i[0],yc(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Ys(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!U(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!U(i))return i;U(i)||(i=Rs(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},xc=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Sc=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(rc(r),i),t[o]=s),s(n)}},Cc=e=>(t,n,r)=>e(rc(n),r)(t),wc=class{constructor(e={}){this.logger=ac.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Sc:Cc;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Sc(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=xc(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},Tc=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Ec=class extends oc{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=ac.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};
19return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Gs(n.loaded,[i],a),Tc(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();U(e)&&(e=this.languageUtils.toResolveHierarchy(e)),U(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" 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(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Dc=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,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:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),U(e[1])&&(t.defaultValue=e[1]),U(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Oc=e=>(U(e.ns)&&(e.ns=[e.ns]),U(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),U(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),kc=()=>{},Ac=e=>
19{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},jc=class e extends oc{constructor(e={},t){if(super(),this.options=Oc(e),this.services={},this.logger=ac,this.modules={external:[]},Ac(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(U(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Dc();this.options={...n,...this.options,...Oc(e)},this.options.interpolation={...n.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=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?ac.init(r(this.modules.logger),this.options):ac.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:wc;let t=new mc(this.options);this.store=new sc(this.options.resources,this.options);let n=this.services;n.logger=ac,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new _c(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new bc(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Ec(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new pc(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=kc,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[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(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Ls(),a=()=>{let e=(e,n)=>{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(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=kc){let n=t,r=U(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Ls();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=kc,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
19if(!e.type)throw 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`&&cc.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`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Ls();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=U(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(U(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=dc(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=dc(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=dc(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return U(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;
19if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Ls();return this.options.ns?(U(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Ls();U(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`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`.split(`.`),n=this.services?.languageUtils||new mc(Dc());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=kc){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new sc(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Dc().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new bc(n)}return a.translator=new pc(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();jc.createInstance,jc.dir,jc.init,jc.loadResources,jc.reloadResources,jc.use,jc.changeLanguage,jc.getFixedT,jc.t,jc.exists,jc.setDefaultNamespace,jc.hasLoadedNamespace,jc.loadNamespaces,jc.loadLanguages;var Mc=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);zc(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Nc={},Pc=(e,t,n,r)=>{zc(n)&&Nc[n]||(zc(n)&&(Nc[n]=new Date),Mc(e,t,n,r))},Fc=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Ic=(e,t,n)=>{e.loadNamespaces(t,Fc(e,n))},Lc=(e,t,n,r)=>{if(zc(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ic(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Fc(e,r))},Rc=(e,t,n={})=>!t.languages||!t.languages.length?(Pc(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),zc=e=>typeof e==`string`,Bc=e=>typeof e==`object`&&!!e,Vc=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Hc={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},Uc=e=>Hc[e],Wc={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Vc,Uc),transDefaultProps:void 0},Gc=(e={})=>{Wc={...Wc,...e}},Kc=()=>Wc,qc,Jc=e=>{qc=e},Yc=()=>qc,Xc={type:`3rdParty`,init(e){Gc(e.options.react),Jc(e)}},Zc=(0,S.createContext)(),Qc=class{constructor(){this.usedNamespaces={}}
19addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},$c=o((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),el=o(((e,t)=>{t.exports=$c()}))(),tl={t:(e,t)=>{if(zc(t))return t;if(Bc(t)&&zc(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},nl=()=>()=>{},W=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,S.useContext)(Zc)||{},a=n||r||Yc();a&&!a.reportNamespaces&&(a.reportNamespaces=new Qc),a||Pc(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,S.useMemo)(()=>({...Kc(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=zc(l)?[l]:l||[`translation`],d=(0,S.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,S.useRef)(0),p=(0,S.useCallback)(e=>{if(!a)return nl;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,S.useRef)(),h=(0,S.useCallback)(()=>{if(!a)return tl;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>Rc(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,S.useState)(0),{t:v,ready:y}=(0,el.useSyncExternalStore)(p,h,h);(0,S.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?Lc(a,t.lng,d,e):Ic(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,S.useRef)(null),C=(0,S.useRef)(),w=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},T=(0,S.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&C.current===t?n=x.current:(n=w(e),x.current=n,C.current=t));let r=!y&&!s?(...e)=>(Pc(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y){let e=!1;try{e=!1}catch{}throw e&&Pc(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?Lc(a,t.lng,d,n):Ic(a,d,n)})}return T},rl=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),il=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),al=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ol=e=>{let t=al(e);return t.charAt(0).toUpperCase()+t.slice(1)},sl={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`},cl=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ll=(0,S.createContext)({}),ul=()=>(0,S.useContext)(ll),dl=(0,S.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=ul()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,S.createElement)(`svg`,{ref:c,...sl,width:t??l??sl.width,height:t??l??sl.height,stroke:e??f,strokeWidth:m,className:rl(`lucide`,p,i),...!a&&!cl(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,S.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),G=(e,t)=>{let n=(0,S.forwardRef)(({className:n,...r},i)=>(0,S.createElement)(dl,{ref:i,iconNode:t,className:rl(`lucide-${il(ol(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ol(e),n},fl=G(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),pl=G(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ml=G(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),hl=G(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),gl=G(`award`,[[`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`}]]),_l=G(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),vl=G(`book-marked`,[[`path`,{d:`M10 2v8l3-3 3 3V2`,key:`sqw3rj`}],[`path`,{d:`M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20`,ke
19y:`k3hazp`}]]),yl=G(`book-open`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]),bl=G(`briefcase`,[[`path`,{d:`M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16`,key:`jecpp`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`6`,rx:`2`,key:`i6l2r4`}]]),xl=G(`building-2`,[[`path`,{d:`M10 12h4`,key:`a56b0p`}],[`path`,{d:`M10 8h4`,key:`1sr2af`}],[`path`,{d:`M14 21v-3a2 2 0 0 0-4 0v3`,key:`1rgiei`}],[`path`,{d:`M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2`,key:`secmi2`}],[`path`,{d:`M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`,key:`16ra0t`}]]),Sl=G(`building`,[[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M12 6h.01`,key:`1vi96p`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M16 14h.01`,key:`1gbofw`}],[`path`,{d:`M16 6h.01`,key:`1x0f13`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M8 6h.01`,key:`1dz90k`}],[`path`,{d:`M9 22v-3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v3`,key:`cabbwy`}],[`rect`,{x:`4`,y:`2`,width:`16`,height:`20`,rx:`2`,key:`1uxh74`}]]),Cl=G(`calendar`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),wl=G(`chart-no-axes-column`,[[`path`,{d:`M5 21v-6`,key:`1hz6c0`}],[`path`,{d:`M12 21V3`,key:`1lcnhd`}],[`path`,{d:`M19 21V9`,key:`unv183`}]]),Tl=G(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),El=G(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Dl=G(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Ol=G(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),kl=G(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Al=G(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),jl=G(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ml=G(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),Nl=G(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Pl=G(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),Fl=G(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),Il=G(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),Ll=G(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),Rl=G(`download`,[[`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`}]]),zl=G(`dumbbell`,[[`path`,{d:`M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z`,key:`9m4mmf`}],[`path`,{d:`m2.5 21.5 1.4-1.4`,key:`17g3f0`}],[`path`,{d:`m20.1 3.9 1.4-1.4`,key:`1qn309`}],[`path`,{d:`M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z`,key:`1t2c92`}],[`path`,{d:`m9.6 14.4 4.8-4.8`,key:`6umqxw`}]]),K=G(`external-link`,[[`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`}]]),q=G(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),J=G(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Y=G(`file-check`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]),Bl=G(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Vl=G(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Hl=G(`graduation-cap`,[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]),Ul=G(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Wl=G(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Gl=G(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),Kl=G(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),ql=G(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),Jl=G(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),Yl=G(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Xl=G(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Zl=G(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}
19],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),Ql=G(`map-pin`,[[`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`}]]),$l=G(`medal`,[[`path`,{d:`M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15`,key:`143lza`}],[`path`,{d:`M11 12 5.12 2.2`,key:`qhuxz6`}],[`path`,{d:`m13 12 5.88-9.8`,key:`hbye0f`}],[`path`,{d:`M8 7h8`,key:`i86dvs`}],[`circle`,{cx:`12`,cy:`17`,r:`5`,key:`qbz8iq`}],[`path`,{d:`M12 18v-2h-.5`,key:`fawc4q`}]]),eu=G(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),tu=G(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),nu=G(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),ru=G(`newspaper`,[[`path`,{d:`M15 18h-5`,key:`95g1m2`}],[`path`,{d:`M18 14h-8`,key:`sponae`}],[`path`,{d:`M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2`,key:`39pd36`}],[`rect`,{width:`8`,height:`4`,x:`10`,y:`6`,rx:`1`,key:`aywv1n`}]]),iu=G(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),au=G(`paperclip`,[[`path`,{d:`m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551`,key:`1miecu`}]]),ou=G(`pen-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),su=G(`pen`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),cu=G(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),lu=G(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),uu=G(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),du=G(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),fu=G(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),pu=G(`quote`,[[`path`,{d:`M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`rib7q0`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z`,key:`1ymkrd`}]]),mu=G(`refresh-cw`,[[`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`}]]),hu=G(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),gu=G(`scale`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]),_u=G(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),vu=G(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),yu=G(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),bu=G(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),xu=G(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Su=G(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 
191.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Cu=G(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),wu=G(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Tu=G(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),Eu=G(`trash-2`,[[`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`}]]),Du=G(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),Ou=G(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),ku=G(`trophy`,[[`path`,{d:`M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2`,key:`pwuv1l`}],[`path`,{d:`M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2`,key:`1y54w1`}],[`path`,{d:`M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3`,key:`e30mpu`}],[`path`,{d:`M4 22h16`,key:`57wxv0`}],[`path`,{d:`M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z`,key:`1mhfuq`}],[`path`,{d:`M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3`,key:`i0yafy`}]]),Au=G(`upload`,[[`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`}]]),ju=G(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Mu=G(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Nu=G(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Pu=G(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),Fu=G(`volume-x`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),Iu=G(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Lu=()=>{let{i18n:e}=W(),[t,n]=(0,S.useState)(!1),r=(0,S.useRef)(null),i=t=>{e.changeLanguage(t),n(!1)},a=[{code:`uz`,label:`O'zbek`,flagUrl:`https://flagcdn.com/w40/uz.png`},{code:`en`,label:`English`,flagUrl:`https://flagcdn.com/w40/gb.png`}],o=a.find(t=>t.code===(e.language||`uz`))||a[0];return(0,S.useEffect)(()=>{let e=e=>{r.current&&!r.current.contains(e.target)&&n(!1)};return document.addEventListener(`mousedown`,e),()=>document.removeEventListener(`mousedown`,e)},[]),(0,H.jsxs)(`div`,{className:`relative z-[100]`,ref:r,children:[(0,H.jsxs)(`button`,{onClick:()=>n(!t),className:`flex items-center gap-2 px-3 py-1.5 bg-[#192b47] hover:bg-[#2037
195b] text-white border border-white/20 rounded-md shadow-xs text-xs font-bold transition-colors cursor-pointer`,children:[(0,H.jsx)(`img`,{src:o.flagUrl,alt:o.label,className:`w-5 h-3.5 object-cover rounded-xs border border-white/30 shrink-0 shadow-xs`}),(0,H.jsx)(`span`,{className:`font-bold tracking-tight`,children:o.label}),(0,H.jsx)(Tl,{size:14,className:`text-white/80`})]}),t&&(0,H.jsx)(`div`,{className:`absolute right-0 mt-1.5 w-36 bg-white rounded-lg shadow-2xl border border-gray-200 overflow-hidden z-[100] py-1 animate-in fade-in zoom-in-95 duration-150`,children:a.map(t=>(0,H.jsxs)(`button`,{onClick:()=>i(t.code),className:`w-full text-left px-3.5 py-2 text-xs font-bold flex items-center gap-2.5 transition-colors cursor-pointer
20                ${e.language===t.code?`bg-blue-50 text-[#071938] font-extrabold`:`text-gray-800 hover:bg-gray-100 hover:text-black`}
21              `,children:[(0,H.jsx)(`img`,{src:t.flagUrl,alt:t.label,className:`w-5 h-3.5 object-cover rounded-xs border border-gray-300 shrink-0 shadow-2xs`}),(0,H.jsx)(`span`,{className:`font-bold`,children:t.label})]},t.code))})]})},Ru={getSettings:()=>V.get(`/site-settings`),updateSettings:e=>typeof FormData<`u`&&e instanceof FormData?V.put(`/site-settings`,e,{headers:{"Content-Type":`multipart/form-data`}}):V.put(`/site-settings`,e)},X=e=>e?e.startsWith(`http`)||!e.startsWith(`/uploads`)||e.startsWith(`/`)?e:`/${e}`:`/placeholder-image.jpg`,zu=()=>{let{t:e,i18n:t}=W(),n=mn(),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)(null),[s,c]=(0,S.useState)(null),[l,u]=(0,S.useState)(!1);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>c(e.data?.data)).catch(e=>console.error(`Failed to load settings in navbar`,e))},[]),(0,S.useEffect)(()=>{i(!1),o(null)},[n.pathname]),(0,S.useEffect)(()=>{let e=()=>{window.scrollY>90?u(!0):window.scrollY<30&&u(!1)};return window.addEventListener(`scroll`,e),()=>window.removeEventListener(`scroll`,e)},[]);let d=(e,n)=>e?e[t.language||`uz`]||e.uz||e.en||n||``:n||``,f=[{title:e(`Home`)||`Bosh sahifa`,path:`/`},{title:e(`News`)||`Yangiliklar`,path:`/yangiliklar`},{title:e(`Admissions`)||`Qabul`,submenu:[{label:e(`Admissions 2026`)||`Qabul 2026`,path:`/qabul`},{label:e(`Admission Results`)||`Qabul natijalari`,path:`/qabul-natijalari`}]},{title:e(`About Us`)||`Biz haqimizda`,submenu:[{label:e(`About the School`)||`Maktab haqida`,path:`/school/about`},{label:e(`School Constitution`)||`Maktab konstitutsiyasi`,path:`/school/constitution`},{label:e(`School Charter`)||`Maktab nizomi`,path:`/school/charter`},{label:e(`School Code of Conduct`)||`Odob-axloq qoidalari`,path:`/school/code-of-conduct`},{label:e(`Leadership`)||`Rahbariyat`,path:`/structure/leadership`}]}],p=[{title:e(`Teachers`)||`O'qituvchilar`,path:`/oqituvchilar`},{title:e(`Results`)||`Natijalar`,submenu:[{label:e(`Olympiad Results`)||`Olimpiadalar natijalari`,path:`/natijalar?category=olympiad`,isTrophy:!0},{label:e(`IELTS Results`)||`IELTS`,path:`/natijalar?category=ielts`,isBlue:!0},{label:e(`SAT Results`)||`SAT`,path:`/natijalar?category=sat`},{label:e(`A-Level Results`)||`A-Level natijalar`,path:`/natijalar?category=alevel`},{label:e(`AS-Level Results`)||`AS-Level natijalar`,path:`/natijalar?category=aslevel`}]},{title:e(`Statistics`)||`Statistikalar`,submenu:[{label:e(`Official Statistics`)||`Rasmiy ko'rsatkichlar`,path:`/statistika`}]},{title:e(`Media`)||`Videolar`,path:`/gallery`},{title:e(`Contact`)||`Aloqa`,path:`/contacts`}],m=[...f,...p],h=(e,t)=>e?n.pathname===e:t?t.some(e=>n.pathname===e.path):!1,g=n.pathname===`/`;return(0,H.jsxs)(`header`,{className:`
22        ${g?l?`sticky top-0 left-0 w-full z-50 bg-[#051124]/95 backdrop-blur-md border-b border-white/15 shadow-2xl transition-colors duration-200`:`absolute top-0 left-0 w-full z-50 bg-transparent transition-colors duration-200`:`sticky top-0 left-0 w-full z-50 bg-[#18356F] border-b border-white/10 shadow-lg`}
23      `,children:[(0,H.jsx)(`div`,{className:`bg-[#051124]/80 backdrop-blur-md border-b border-white/10 text-white/90 text-xs py-2`,children:(0,H.jsxs)(`div`,{className:`w-full px-4 sm:px-8 lg:px-10 flex flex-wrap items-center justify-between gap-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center flex-wrap gap-2.5 sm:gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-1.5 bg-[#132a4e] border border-white/15 px-3 py-1 rounded-md text-white font-bold text-xs shadow-xs`,children:[(0,H.jsx)(Ql,{size:13,className:`text-[#38bdf8]`}),(0,H.jsx)(`span`,{children:d(s?.address,`Samarqand shahri`)})]}),(0,H.jsxs)(`a`,{href:`tel:${s?.phoneNumbers?.[0]||`+998 66 233 11 11`}`,className:`flex items-center gap-1.5 bg-[#132a4e] border border-white/15 px-3 py-1 rounded-md text-white font-bold text-xs hover:text-[#38bdf8] transition-colors shadow-xs`,children:[(0,H.jsx)(cu,{size:13,className:`text-[#38bdf8]`}
23),(0,H.jsx)(`span`,{children:s?.phoneNumbers?.[0]||`+998 66 233 11 11`})]}),(0,H.jsxs)(`a`,{href:`mailto:${s?.email||`[email protected]`}`,className:`hidden md:flex items-center gap-1.5 bg-[#132a4e] border border-white/15 px-3 py-1 rounded-md text-white font-bold text-xs hover:text-[#38bdf8] transition-colors shadow-xs`,children:[(0,H.jsx)(Zl,{size:13,className:`text-[#38bdf8]`}),(0,H.jsx)(`span`,{children:s?.email||`[email protected]`})]})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,H.jsxs)(`div`,{className:`hidden sm:flex items-center gap-1.5 pr-2 border-r border-white/20 text-white/90`,children:[(0,H.jsx)(`a`,{href:`https://instagram.com`,target:`_blank`,rel:`noreferrer`,className:`p-1 hover:text-[#38bdf8] transition-colors`,"aria-label":`Instagram`,children:(0,H.jsx)(`svg`,{className:`w-3.5 h-3.5 fill-current`,viewBox:`0 0 24 24`,children:(0,H.jsx)(`path`,{d:`M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z`})})}),(0,H.jsx)(`a`,{href:s?.socialLinks?.telegram||`https://t.me/SamarqandPM`,target:`_blank`,rel:`noreferrer`,className:`p-1 hover:text-[#38bdf8] transition-colors`,"aria-label":`Telegram`,title:`Telegram: @SamarqandPM`,children:(0,H.jsx)(vu,{size:14})}),(0,H.jsx)(`a`,{href:s?.socialLinks?.facebook||`https://www.facebook.com/SamarqandPM`,target:`_blank`,rel:`noreferrer`,className:`p-1 hover:text-[#38bdf8] transition-colors`,"aria-label":`Facebook`,title:`Facebook: SamarqandPM`,children:(0,H.jsx)(`svg`,{className:`w-3.5 h-3.5 fill-current`,viewBox:`0 0 24 24`,children:(0,H.jsx)(`path`,{d:`M9 8H6v4h3v12h5V12h3.642L18 8h-4V6.333C14 5.374 14.5 5 15.5 5H18V0h-3.808C10.592 0 9 1.592 9 4.415V8z`})})}),(0,H.jsx)(`a`,{href:s?.socialLinks?.youtube||`http://www.youtube.com/@samarkandpresidentialschoo3640`,target:`_blank`,rel:`noreferrer`,className:`p-1 hover:text-[#38bdf8] transition-colors`,"aria-label":`YouTube`,title:`YouTube: @samarkandpresidentialschoo3640`,children:(0,H.jsx)(`svg`,{className:`w-3.5 h-3.5 fill-current`,viewBox:`0 0 24 24`,children:(0,H.jsx)(`path`,{d:`M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z`})})})]}),(0,H.jsx)(Lu,{})]})]})}),(0,H.jsx)(`div`,{className:`bg-transparent border-none py-1`,children:(0,H.jsx)(`div`,{className:`w-full px-4 sm:px-8 lg:px-10`,children:(0,H.jsxs)(`div`,{className:`flex items-center justify-between h-20 sm:h-24`,children:[(0,H.jsx)(`nav`,{className:`hidden lg:flex items-center gap-1 xl:gap-2.5 2xl:gap-3.5 flex-1 justify-end`,children:f.map((e,t)=>(0,H.jsx)(`div`,{className:`relative group`,children:e.submenu?(0,H.jsxs)(`div`,{className:`cursor-pointer py-2`,onMouseEnter:()=>o(`left-${t}`),onMouseLeave:()=>o(null),children:[(0,H.jsxs)(`button`,{className:`flex items-center gap-1 px-3 py-2 text-sm xl:text-[14.5px] font-extrabold transition-all rounded-md
24                        ${h(null,e.submenu)?`text-white bg-white/20 border border-white/40 shadow-sm`:`text-white/95 hover:text-white hover:bg-white/10`}
25                      `,children:[e.title,` `,(0,H.jsx)(Tl,{size:14,className:`mt-0.5 text-white/80`})]}),a===`left-${t}`&&(0,H.jsx)(`div`,{className:`absolute top-full left-0 w-60 bg-[#071938] shadow-2xl rounded-2xl border border-white/20 py-2.5 animate-in fade-in zoom-in-95 duration-150 z-50`,children:e.submenu.map((e,t)=>(0,H.jsx)(I,{to:e.path,className:`block px-4 py-2.5 text-xs sm:text-sm font-bold transition-colors ${n.pathname===e.path?`bg-[#164C8C] text-white`:`text-gray-100 hover:bg-white/10 hover:text-white`}`,children:e.label},t))})]}):(0,H.jsx)(I,{to:e.path,className:`block px-3.5 py-2 text-sm xl:text-[14.5px] font-extrabold transition-all rounded-md whitespace-nowrap
26                        ${h(e.path)?`text-white bg-white/20 border border-white/40 shadow-sm`:`text-white/95 hover:text-white hover:bg-white/10`}
27                      `,children:e.title})},t))}),(0,H.jsx)(I,{to:`/`,className:`px-4 sm:px-6 flex shrink-0 items-center justify-center group`,title:`Bosh sahifa`,children:(0,H.jsx)(`div`,{className:`relative p-1 rounded-full bg-gradient-to-b from-white/30 to-white/10 border border-white/40 shadow-2xl group-hover:scale-105 transition-transform duration-300`,children:s?.logo?(0,H.jsx)(`img`,{src:X(s.logo),alt:`Prezident maktabi emblemasi`,className:`${l?`w-12 h-12 sm:w-14 sm:h-14`:`w-16 h-16 sm:w-20 sm:h-20`} object-contain rounded-full bg-[#071938] transition-all duration-300`}):(0,H.jsx)(`img`,{src:`/logo.png`,alt:`Prezident maktabi emblemasi`,className:`${l?`w-12 h-12 sm:w-14 sm:h-14`:`w-16 h-16 sm:w-20 sm:h-20`} object-contain rounded-full bg-[#071938] transition-all duration-300`})})}),(0,H.jsx)(`nav`,{className:`hidden lg:flex items-center gap-1 xl:gap-2.5 2xl:gap-3.5 flex-1 justify-start`,children:p.map((e,t)=>(0,H.jsx)(`div`,{className:`relative group`,children:e.submenu?(0,H.jsxs)(`div`,{className:`curs
27or-pointer py-2`,onMouseEnter:()=>o(`right-${t}`),onMouseLeave:()=>o(null),children:[(0,H.jsxs)(`button`,{className:`flex items-center gap-1 px-3 py-2 text-sm xl:text-[14.5px] font-extrabold transition-all rounded-md
28                        ${h(null,e.submenu)?`text-white bg-white/20 border border-white/40 shadow-sm`:`text-white/95 hover:text-white hover:bg-white/10`}
29                      `,children:[e.title,` `,(0,H.jsx)(Tl,{size:14,className:`mt-0.5 text-white/80`})]}),a===`right-${t}`&&(0,H.jsx)(`div`,{className:`absolute top-full left-0 w-64 bg-white shadow-2xl rounded-2xl border border-gray-100 py-3 animate-in fade-in zoom-in-95 duration-150 z-50 overflow-hidden`,children:e.submenu.map((e,t)=>(0,H.jsxs)(I,{to:e.path,className:`flex items-center gap-2.5 px-5 py-2.5 text-xs sm:text-[13.5px] font-extrabold transition-all ${e.isTrophy||e.isBlue?`text-[#0284c7] hover:bg-blue-50/80`:`text-[#0B2D5C] hover:bg-blue-50/80 hover:text-[#0284c7]`}`,children:[e.isTrophy&&(0,H.jsx)(ku,{size:17,className:`text-[#0284c7] shrink-0`}),(0,H.jsx)(`span`,{children:e.label})]},t))})]}):(0,H.jsx)(I,{to:e.path,className:`block px-3.5 py-2 text-sm xl:text-[14.5px] font-extrabold transition-all rounded-md whitespace-nowrap
30                        ${h(e.path)?`text-white bg-white/20 border border-white/40 shadow-sm`:`text-white/95 hover:text-white hover:bg-white/10`}
31                      `,children:e.title})},t))}),(0,H.jsx)(`div`,{className:`lg:hidden flex items-center gap-2`,children:(0,H.jsx)(`button`,{onClick:()=>i(!r),className:`p-2.5 text-white hover:bg-white/10 rounded-lg border border-white/20`,"aria-label":`Toggle Menu`,children:r?(0,H.jsx)(Iu,{size:24}):(0,H.jsx)(eu,{size:24})})})]})})}),r&&(0,H.jsxs)(`div`,{className:`lg:hidden bg-[#071938] border-b border-white/15 px-6 py-6 space-y-4 shadow-2xl animate-in slide-in-from-top duration-200`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between pb-4 border-b border-white/10`,children:[(0,H.jsxs)(I,{to:`/`,className:`flex items-center gap-2`,children:[(0,H.jsx)(`img`,{src:`/logo.png`,alt:`Logo`,className:`w-10 h-10 object-contain rounded-full bg-white/10 p-0.5`}),(0,H.jsx)(`span`,{className:`font-bold text-white text-sm`,children:`Samarqand PM`})]}),(0,H.jsx)(Lu,{})]}),(0,H.jsx)(`div`,{className:`space-y-2 max-h-[70vh] overflow-y-auto pr-1`,children:m.map((e,t)=>(0,H.jsx)(`div`,{children:e.submenu?(0,H.jsxs)(`div`,{className:`space-y-1`,children:[(0,H.jsx)(`div`,{className:`font-extrabold text-blue-300 text-xs uppercase tracking-wider pt-2 px-2`,children:e.title}),e.submenu.map((e,t)=>(0,H.jsx)(I,{to:e.path,className:`block px-4 py-2 text-sm font-semibold text-gray-200 hover:text-white hover:bg-white/10 rounded-lg`,children:e.label},t))]}):(0,H.jsx)(I,{to:e.path,className:`block px-4 py-2.5 text-sm font-bold text-white hover:bg-white/10 rounded-lg`,children:e.title})},t))})]})]})},Bu=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(null);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>r(e.data?.data)).catch(e=>console.error(`Failed to load settings in footer`,e))},[]);let i=e=>e&&(e[t.language||`uz`]||e.uz||e.en)||``;return(0,H.jsxs)(`footer`,{className:`bg-[#0f172a] text-gray-400 border-t border-gray-800 pt-16 pb-8`,children:[(0,H.jsxs)(`div`,{className:`container-page grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10 mb-12`,children:[(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(I,{to:`/`,className:`flex items-center gap-3 group`,children:[n?.logo?(0,H.jsx)(`img`,{src:X(n.logo),alt:`Prezident maktabi logotipi`,className:`w-10 h-10 object-contain`}):(0,H.jsx)(`img`,{src:`/logo.png`,alt:`Prezident maktabi logotipi`,className:`w-10 h-10 object-contain`}),(0,H.jsxs)(`div`,{className:`flex flex-col`,children:[(0,H.jsx)(`span`,{className:`text-base font-bold tracking-wider text-white uppercase leading-tight group-hover:text-[#38bdf8] transition-colors`,children:n?.siteNameTop?i(n.siteNameTop):`SAMARQAND PREZIDENT MAKTABI`}),(0,H.jsx)(`span`,{className:`text-xs text-[#38bdf8] uppercase leading-tight font-semibold mt-0.5`,children:n?.siteNameBottom?i(n.siteNameBottom):`PREZIDENT MAKTABI`})]})]}),(0,H.jsx)(`p`,{className:`text-sm leading-relaxed text-gray-300`,children:n?.heroDescription?i(n.heroDescription):`Samarqand shahridagi Prezident maktabi — kelajak yetakchilarini tarbiyalovchi zamonaviy va nufuzli ta'lim maskani.`}),(0,H.jsxs)(`div`,{className:`flex gap-3 pt-2`,children:[(0,H.jsx)(`a`,{href:`https://t.me/SamarqandPM`,target:`_blank`,rel:`noopener noreferrer`,className:`p-2.5 bg-[#1e293b] text-gray-300 rounded-lg hover:bg-[#38bdf8] hover:text-[#0f172a] transition-colors`,title:`Telegram`,children:(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
31width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,H.jsx)(`path`,{d:`M21 2L2 11l6 2 2 9 4-5 5 5 6-20z`})})}),(0,H.jsx)(`a`,{href:`https://www.instagram.com/samarkand_presidential_school/`,target:`_blank`,rel:`noopener noreferrer`,className:`p-2.5 bg-[#1e293b] text-gray-300 rounded-lg hover:bg-[#38bdf8] hover:text-[#0f172a] transition-colors`,title:`Instagram`,children:(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,H.jsx)(`rect`,{x:`2`,y:`2`,width:`20`,height:`20`,rx:`5`,ry:`5`}),(0,H.jsx)(`path`,{d:`M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z`}),(0,H.jsx)(`line`,{x1:`17.5`,y1:`6.5`,x2:`17.51`,y2:`6.5`})]})}),(0,H.jsx)(`a`,{href:`https://youtube.com/@samarkandpresidentialschoo3640`,target:`_blank`,rel:`noopener noreferrer`,className:`p-2.5 bg-[#1e293b] text-gray-300 rounded-lg hover:bg-[#38bdf8] hover:text-[#0f172a] transition-colors`,title:`YouTube`,children:(0,H.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,H.jsx)(`path`,{d:`M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33 2.78 2.78 0 0 0 1.94 2c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.33 29 29 0 0 0-.46-5.33z`}),(0,H.jsx)(`polygon`,{points:`9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02`})]})}),(0,H.jsx)(`a`,{href:n?.socialLinks?.facebook||`https://www.facebook.com/SamarqandPM`,target:`_blank`,rel:`noopener noreferrer`,className:`p-2.5 bg-[#1e293b] text-gray-300 rounded-lg hover:bg-[#38bdf8] hover:text-[#0f172a] transition-colors`,title:`Facebook`,children:(0,H.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,H.jsx)(`path`,{d:`M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3.81l.39-4h-4.2V7a1 1 0 0 1 1-1h3z`})})})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-base font-bold text-white uppercase tracking-wider mb-4 border-b border-gray-800 pb-2`,children:e(`Quick Links`)}),(0,H.jsxs)(`ul`,{className:`flex flex-col gap-2.5 text-sm`,children:[(0,H.jsx)(`li`,{children:(0,H.jsx)(I,{to:`/school/about`,className:`hover:text-[#38bdf8] transition-colors`,children:e(`About the School`)})}),(0,H.jsx)(`li`,{children:(0,H.jsx)(I,{to:`/structure/leadership`,className:`hover:text-[#38bdf8] transition-colors`,children:e(`Leadership`)})}),(0,H.jsx)(`li`,{children:(0,H.jsx)(I,{to:`/structure/school-team`,className:`hover:text-[#38bdf8] transition-colors`,children:e(`School Team`)})}),(0,H.jsx)(`li`,{children:(0,H.jsx)(I,{to:`/education`,className:`hover:text-[#38bdf8] transition-colors`,children:e(`Education`)})}),(0,H.jsx)(`li`,{children:(0,H.jsx)(I,{to:`/admissions/admissions-2026`,className:`hover:text-[#38bdf8] transition-colors`,children:e(`Admissions 2026`)})}),(0,H.jsx)(`li`,{children:(0,H.jsx)(I,{to:`/news`,className:`hover:text-[#38bdf8] transition-colors`,children:e(`News`)})}),(0,H.jsx)(`li`,{children:(0,H.jsx)(I,{to:`/contacts`,className:`hover:text-[#38bdf8] transition-colors`,children:e(`Contacts`)})})]})]}),(0,H.jsxs)(`div`,{className:`lg:col-span-2`,children:[(0,H.jsx)(`h3`,{className:`text-base font-bold text-white uppercase tracking-wider mb-4 border-b border-gray-800 pb-2`,children:e(`Contact Us`)}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4 text-sm`,children:[(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(Ql,{className:`text-[#38bdf8] shrink-0 mt-1`,size:18}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`block text-white mb-0.5`,children:e(`Address`)}),(0,H.jsx)(`span`,{className:`text-gray-300`,children:n?.address?i(n.address):`Samarqand shahar, Universitet xiyoboni, 1-uy`})]})]}),(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(cu,{className:`text-[#38bdf8] shrink-0 mt-1`,size:18}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`block text-white mb-0.5`,children:e(`Phone`)}),(0,H.jsx)(`div`,{className:`flex flex-col text-gray-300`,children:n?.ph
31oneNumbers?.length>0?n.phoneNumbers.map((e,t)=>(0,H.jsx)(`a`,{href:`tel:${e.replace(/\s+/g,``)}`,className:`hover:text-[#38bdf8] transition-colors`,children:e},t)):(0,H.jsx)(`a`,{href:`tel:+998662331111`,className:`hover:text-[#38bdf8] transition-colors`,children:`+998 66 233 11 11`})})]})]}),(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(Zl,{className:`text-[#38bdf8] shrink-0 mt-1`,size:18}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`block text-white mb-0.5`,children:e(`Email`)}),(0,H.jsx)(`a`,{href:`mailto:${n?.email||`[email protected]`}`,className:`hover:text-[#38bdf8] transition-colors text-gray-300`,children:n?.email||`[email protected]`})]})]}),(0,H.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,H.jsx)(Nl,{className:`text-[#38bdf8] shrink-0 mt-1`,size:18}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`block text-white mb-0.5`,children:e(`Working Hours`)}),(0,H.jsx)(`span`,{className:`text-gray-300`,children:n?.workDate?i(n.workDate):`Dushanba - Juma: 08:00 - 18:00`})]})]})]}),n?.mapUrl&&(0,H.jsx)(`div`,{className:`mt-6 w-full h-40 rounded-xl overflow-hidden border border-gray-800 shadow-inner`,children:(0,H.jsx)(`iframe`,{src:n.mapUrl,width:`100%`,height:`100%`,style:{border:0},allowFullScreen:``,loading:`lazy`,title:`Samarqand Prezident Maktabi Xaritasi`})})]})]}),(0,H.jsxs)(`div`,{className:`container-page flex flex-col md:flex-row items-center justify-between gap-2 pt-8 border-t border-gray-800 text-xs text-gray-400`,children:[(0,H.jsxs)(`p`,{children:[`© `,new Date().getFullYear(),` `,e(`School`),` | Samps.uz. `,e(`All rights reserved`),`.`]}
31),(0,H.jsxs)(`p`,{className:`text-gray-400 font-medium`,children:[`Oxirgi yangilangan: `,(0,H.jsx)(`span`,{className:`text-[#38bdf8] font-bold`,children:`15.08.2026`})]})]})]})},Vu=()=>(0,H.jsxs)(`div`,{className:`min-h-screen flex flex-col font-sans bg-[#0f172a] text-gray-300 selection:bg-[#38bdf8] selection:text-[#0f172a]`,children:[(0,H.jsx)(zu,{}),(0,H.jsx)(`main`,{className:`flex-grow`,children:(0,H.jsx)(Wn,{})}),(0,H.jsx)(Bu,{})]}),Hu=()=>{let{user:e}=Fs(),t=e?.role;return{canManageUsers:t===`SUPER_ADMIN`,canViewUsers:t===`SUPER_ADMIN`||t===`ADMIN`,canManageSettings:t===`SUPER_ADMIN`||t===`ADMIN`,role:t}},Uu=()=>{let{t:e}=W(),{canViewUsers:t,canManageSettings:n}=Hu(),r=mn(),i=e=>`flex items-center gap-3 px-3.5 py-2.5 rounded-lg transition-all text-sm font-semibold ${r.pathname===e||e!==`/admin/dashboard`&&r.pathname.startsWith(e)?`bg-[#164C8C] text-white shadow-sm`:`text-gray-300 hover:bg-white/10 hover:text-white`}`;return(0,H.jsxs)(`aside`,{className:`w-64 bg-[#071D3B] text-white border-r border-white/10 min-h-screen p-4 flex flex-col gap-2 shrink-0`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3 px-2 mb-8 mt-2`,children:[(0,H.jsx)(`div`,{className:`w-11 h-11 rounded-full bg-white p-1 shadow-md border-2 border-[#C59B27] flex items-center justify-center shrink-0`,children:(0,H.jsx)(`img`,{src:`/admin_logo.png`,alt:`Samarqand PM Logo`,className:`w-full h-full object-contain`})}),(0,H.jsxs)(`div`,{className:`flex flex-col`,children:[(0,H.jsx)(`h2`,{className:`text-sm font-extrabold text-white tracking-wider leading-tight`,children:`SAMARQAND PM`}),(0,H.jsx)(`span`,{className:`text-[10px] text-[#C59B27] uppercase font-extrabold tracking-widest block mt-0.5`,children:`Admin Panel`})]})]}),(0,H.jsxs)(`div`,{className:`flex-grow flex flex-col gap-1`,children:[(0,H.jsxs)(I,{to:`/admin/dashboard`,className:i(`/admin/dashboard`),children:[(0,H.jsx)(ql,{size:18}),` `,e(`Dashboard`)]}),(0,H.jsxs)(I,{to:`/admin/news`,className:i(`/admin/news`),children:[(0,H.jsx)(ru,{size:18}),` `,e(`News`)]}),(0,H.jsxs)(I,{to:`/admin/announcements`,className:i(`/admin/announcements`),children:[(0,H.jsx)(_l,{size:18}),` `,e(`Announcements`)]}),(0,H.jsxs)(I,{to:`/admin/leaders`,className:i(`/admin/leaders`),children:[(0,H.jsx)(bl,{size:18}),` `,e(`Leadership`)]}),(0,H.jsxs)(I,{to:`/admin/teachers`,className:i(`/admin/teachers`),children:[(0,H.jsx)(Hl,{size:18}),` `,e(`School Team`)]}),(0,H.jsxs)(I,{to:`/admin/admissions`,className:i(`/admin/admissions`),children:[(0,H.jsx)(Y,{size:18}),` `,e(`Admission Results`)]}),(0,H.jsxs)(I,{to:`/admin/academic-results`,className:i(`/admin/academic-results`),children:[(0,H.jsx)(gl,{size:18}),` Natijalar (Olimpiada, IELTS, SAT)`]}),(0,H.jsxs)(I,{to:`/admin/constitution`,className:i(`/admin/constitution`),children:[(0,H.jsx)(Y,{size:18}),` Maktab Konstitutsiyasi (PDF)`]}),(0,H.jsxs)(I,{to:`/admin/statistics`,className:i(`/admin/statistics`),children:[(0,H.jsx)(wl,{size:18}),` Statistics`]}),(0,H.jsxs)(I,{to:`/admin/school-features`,className:i(`/admin/school-features`),children:[(0,H.jsx)(gl,{size:18}),` Maktab hayoti (Foto lavhalar)`]}),(0,H.jsxs)(I,{to:`/admin/useful-links`,className:i(`/admin/useful-links`),children:[(0,H.jsx)(Yl,{size:18}),` Foydali havolalar`]}),t&&(0,H.jsxs)(I,{to:`/admin/users`,className:i(`/admin/users`),children:[(0,H.jsx)(Mu,{size:18}),` Foydalanuvchilar`]}),n&&(0,H.jsxs)(I,{to:`/admin/settings`,className:i(`/admin/settings`),children:[(0,H.jsx)(yu,{size:18}),` `,e(`Site Settings`)]})]}),(0,H.jsx)(`div`,{className:`pt-4 border-t border-white/10 mt-auto`,children:(0,H.jsxs)(I,{to:`/`,className:`flex items-center gap-3 px-3.5 py-2.5 text-gray-300 hover:bg-white/10 hover:text-white rounded-lg transition-colors text-sm font-semibold`,children:[(0,H.jsx)(Xl,{size:18,className:`rotate-180`}),` Bosh sahifaga qaytish`]})})]})},Wu=()=>{let{logout:e,user:t}=Fs();return(0,H.jsxs)(`header`,{className:`px-6 py-4 bg-white border-b border-[#E4E7EC] shadow-sm flex justify-between items-center sticky top-0 z-30`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(`div`,{className:`w-8 h-8 rounded-full bg-[#0B2D5C]
31/10 text-[#0B2D5C] flex items-center justify-center font-bold`,children:(0,H.jsx)(ju,{size:18})}),(0,H.jsxs)(`h1`,{className:`text-lg font-bold text-[#0B2D5C]`,children:[`Xush kelibsiz`,t?.name?`, ${t.name}`:``]})]}),(0,H.jsxs)(`div`,{className:`flex gap-4 items-center`,children:[(0,H.jsx)(Lu,{}),(0,H.jsxs)(`button`,{onClick:async()=>{await e()},className:`bg-red-600 hover:bg-red-700 active:bg-red-800 text-white px-3.5 py-1.5 rounded-lg text-sm font-semibold transition-colors flex items-center gap-1.5 shadow-sm`,children:[(0,H.jsx)(Xl,{size:16}),` Chiqish`]})]})]})},Gu=()=>(0,H.jsxs)(`div`,{className:`min-h-screen flex font-sans bg-[#F5F7FA] text-[#172033]`,children:[(0,H.jsx)(Uu,{}),(0,H.jsxs)(`div`,{className:`flex-grow flex flex-col min-w-0`,children:[(0,H.jsx)(Wu,{}),(0,H.jsx)(`main`,{className:`flex-grow p-6 md:p-8`,children:(0,H.jsx)(Wn,{})})]})]}),Ku=({title:e,description:t,keywords:n,ogImage:r,robots:i=`index, follow`,canonicalUrl:a})=>{let{i18n:o}=W(),s=`Samarqand shahridagi Prezident maktabi`,c=e?`${e} | ${s}`:s,l=t||`Samarqand shahridagi Prezident maktabi rasmiy veb-sayti — ta'lim, yangiliklar va tadbirlar`,u=r?X(r):`/logo.png`,d=a||(typeof window<`u`?window.location.href:``);return(0,H.jsxs)(Ve,{htmlAttributes:{lang:o.language||`uz`},children:[(0,H.jsx)(`title`,{children:c}),(0,H.jsx)(`meta`,{name:`description`,content:l}),n&&(0,H.jsx)(`meta`,{name:`keywords`,content:Array.isArray(n)?n.join(`, `):n}),(0,H.jsx)(`meta`,{name:`robots`,content:i}),d&&(0,H.jsx)(`link`,{rel:`canonical`,href:d}),(0,H.jsx)(`meta`,{property:`og:type`,content:`website`}),(0,H.jsx)(`meta`,{property:`og:title`,content:c}),(0,H.jsx)(`meta`,{property:`og:description`,content:l}),(0,H.jsx)(`meta`,{property:`og:image`,content:u}),d&&(0,H.jsx)(`meta`,{property:`og:url`,content:d}),(0,H.jsx)(`meta`,{property:`og:site_name`,content:s}),(0,H.jsx)(`meta`,{name:`twitter:card`,content:`summary_large_image`}),(0,H.jsx)(`meta`,{name:`twitter:title`,content:c}),(0,H.jsx)(`meta`,{name:`twitter:description`,content:l}),(0,H.jsx)(`meta`,{name:`twitter:image`,content:u})]})},qu=e=>{if(!e||typeof e!=`string`)return null;let t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|shorts\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&t[2]&&t[2].length===11?t[2]:null},Ju=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)(.2),[o,s]=(0,S.useState)(!0),[c,l]=(0,S.useState)(!1),u=(0,S.useRef)(null),d=(0,S.useRef)(null);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>r(e.data?.data)).catch(e=>console.error(`Failed to load settings`,e))},[]);let f=(e,n)=>{if(!e)return n||``;let r=t.language||`uz`;if(typeof e==`object`&&e){let t=e[r]||e.uz||e.en;return t&&t.trim()?t:n||``}return typeof e==`string`&&e.trim()?e:n||``},p=n?.mainBgImage?X(n.mainBgImage):`https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80&w=1920&h=1080`,m=n?.mainBgVideo||n?.heroVideo||``,h=qu(m),g=h?null:m?X(m):`https://assets.mixkit.co/videos/preview/mixkit-aerial-view-of-a-modern-university-campus-41484-large.mp4`;(0,S.useEffect)(()=>{if(!h&&u.current){u.current.muted=o,u.current.volume=i;let e=u.current.play();e!==void 0&&e.catch(()=>{u.current&&(u.current.muted=!0,s(!0),u.current.play().catch(()=>{}))})}},[g,h,o,i]);let _=e=>{let t=parseFloat(e);if(a(t),h&&d.current){let e=Math.round(t*100);d.current.contentWindow?.postMessage(JSON.stringify({event:`command`,func:`setVolume`,args:[e]}),`*`),t===0?(d.current.contentWindow?.postMessage(JSON.stringify({event:`command`,func:`mute`,args:[]}),`*`),s(!0)):(d.current.contentWindow?.postMessage(JSON.stringify({event:`command`,func:`unMute`,args:[]}),`*`),s(!1))}else u.current&&(u.current.volume=t,t===0?(u.current.muted=!0,s(!0)):(u.current.muted=!1,s(!1),u.current.play().catch(()=>{})))};return(0,H.jsx)(`div`,{className:`relative bg-[#051124]`,children:(0,H.jsxs)(`section`,{className:`relative min-h-screen flex flex-col justify-center items-center overflow-hidden pt-36 sm:pt-40 lg:pt-44 pb-28 px-4`,children:[(0,H.jsxs)(`div`,{className:`absolute inset-0 z-0 overflow-hidden pointer-events-none`,children:[h?(0,H.jsx)(`iframe`,{ref:d,src:`https://www.youtube.com/embed/${h}?autoplay=1&mute=${+!!o}&controls=0&loop=1&playlist=${h}&showinfo=0&rel=0&iv_load_policy=3&modestbranding=1&enablejsapi=1&origin=${typeof window<`u`?window.location.origin:``}
31`,title:`Hero Background Video`,className:`pointer-events-none filter blur-[1px]`,allow:`autoplay; encrypted-media`,style:{width:`100vw`,height:`56.25vw`,minHeight:`100vh`,minWidth:`177.77vh`,position:`absolute`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%) scale(1.35)`}},h):(0,H.jsxs)(`video`,{ref:u,autoPlay:!0,loop:!0,muted:o,playsInline:!0,poster:p,className:`w-full h-full object-cover scale-105 filter blur-[1.5px]`,children:[(0,H.jsx)(`source`,{src:g,type:`video/mp4`}),(0,H.jsx)(`source`,{src:g,type:`video/webm`}),(0,H.jsx)(`img`,{src:p,alt:`Prezident Maktabi`,className:`w-full h-full object-cover`})]},g),(0,H.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-b from-[#051124]/50 via-[#071938]/30 to-[#051124]/65 backdrop-blur-[2px]`})]}),(0,H.jsxs)(`div`,{className:`relative z-10 container-page text-center space-y-6 max-w-5xl mx-auto my-auto py-8`,children:[(0,H.jsx)(`h1`,{className:`text-3xl sm:text-5xl lg:text-6xl font-black text-white tracking-tight leading-[1.15] drop-shadow-[0_4px_12px_rgba(0,0,0,0.8)]`,children:f(n?.heroTitle,e(`hero.title`))}),(0,H.jsx)(`p`,{className:`text-sm sm:text-base md:text-lg text-gray-100 font-medium max-w-3xl mx-auto leading-relaxed text-balance drop-shadow-[0_2px_8px_rgba(0,0,0,0.8)]`,children:f(n?.heroDescription,e(`hero.description`))}),(0,H.jsx)(`div`,{className:`pt-4 flex justify-center`,children:(0,H.jsxs)(I,{to:`/school/about`,className:`inline-flex items-center gap-2 bg-[#072d5c]/80 hover:bg-[#164C8C] text-white px-7 py-3.5 rounded-full font-bold border border-white/30 backdrop-blur-md shadow-xl transition-all duration-300 group text-xs sm:text-sm tracking-wide`,children:[(0,H.jsx)(`span`,{children:e(`Learn More`)||`Batafsil ma'lumot`}),(0,H.jsx)(ml,{size:16,className:`group-hover:translate-x-1 transition-transform`})]})})]}),(0,H.jsxs)(`div`,{onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),className:`absolute bottom-32 sm:bottom-36 right-4 sm:right-8 z-30 flex items-center bg-[#071938]/90 p-2.5 sm:px-4 sm:py-2.5 rounded-full border border-white/30 backdrop-blur-md shadow-2xl transition-all duration-300 group cursor-pointer`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>{if(h&&d.current){let e=o?`unMute`:`mute`;d.current.contentWindow?.postMessage(JSON.stringify({event:`command`,func:e,args:[]}),`*`),s(!o)}else if(u.current)if(o){let e=i===0?.2:i;u.current.muted=!1,u.current.volume=e,s(!1),i===0&&a(.2),u.current.play().catch(()=>{})}else u.current.muted=!0,s(!0)},className:`text-white hover:text-[#C59B27] transition-colors p-1 flex items-center justify-center shrink-0`,title:o?`Ovozni yoqish`:`Ovozni o'chirish`,children:o?(0,H.jsx)(Fu,{size:20,className:`text-rose-400`}):(0,H.jsx)(Pu,{size:20,className:`text-emerald-400 animate-pulse`})}),(0,H.jsxs)(`div`,{className:`flex items-center transition-all duration-300 overflow-hidden ${c?`w-24 sm:w-28 opacity-100 ml-2.5`:`w-0 opacity-0 ml-0`}`,children:[(0,H.jsx)(`input`,{type:`range`,min:`0`,max:`1`,step:`0.05`,value:o?0:i,onChange:e=>_(e.target.value),className:`w-full h-1.5 bg-white/30 rounded-lg appearance-none cursor-pointer accent-[#C59B27] hover:accent-amber-400`}),(0,H.jsx)(`span`,{className:`text-[10px] font-extrabold text-white ml-2 shrink-0`,children:o?`0%`:`${Math.round(i*100)}%`})]})]})]})})},Yu=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)(!1),[o,s]=(0,S.useState)(!1);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>r(e.data?.data)).catch(e=>console.error(`Failed to load settings`,e))},[]);let c=(n,r)=>{if(!n)return e(r);let i=t.language||`uz`;if(typeof n==`object`&&n){let t=n[i]||n.uz||n.en;return t&&t.trim()?t:e(r)}return typeof n==`string`&&n.trim()?n:e(r)};return(0,H.jsxs)(`section`,{className:`py-16 bg-white border-b border-[#E4E7EC] ${i?`relative z-[9999]`:`relative z-10`}`,children:[(0,H.jsx)(`div`,{className:`container-page px-4`,children:(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-14 items-center`,children:[(0,H.jsxs)(`div`,{className:`lg:col-span-6 space-y-5`,children:[(0,H.jsxs)(`div`,{className:`inline-flex items-center gap-2 bg-[#F5F7FA] border border-[#
31E4E7EC] text-[#0B2D5C] px-3.5 py-1.5 rounded-lg text-xs font-bold shadow-xs`,children:[(0,H.jsx)(xl,{size:16,className:`text-[#C59B27]`}),(0,H.jsx)(`span`,{children:e(`About Us`)})]}),(0,H.jsx)(`h2`,{className:`text-2xl sm:text-3xl lg:text-4xl font-extrabold text-[#0B2D5C] tracking-tight leading-tight`,children:c(n?.aboutOverviewTitle,`About School Overview Title`)}),(0,H.jsxs)(`div`,{className:`space-y-3`,children:[(0,H.jsx)(`p`,{className:`text-xs sm:text-sm text-[#667085] leading-relaxed font-normal`,children:c(n?.aboutOverviewContent,`About School Overview Content`)}),o&&(0,H.jsxs)(`div`,{className:`p-4 bg-[#F7F9FC] rounded-2xl border border-[#E4E7EC] text-xs text-[#0B2D5C] leading-relaxed space-y-2 animate-in fade-in duration-300`,children:[(0,H.jsxs)(`p`,{children:[`Samarqand shahridagi Prezident maktabida o'quv jarayonlari va STEAM fanlar yo'nalishlari xalqaro `,(0,H.jsx)(`strong`,{children:`Cambridge Assessment International Education`}),` dasturi asosida olib boriladi.`]}),(0,H.jsx)(`p`,{children:`Maktab binosi eng zamonaviy fizik, kimyo va biologiya laboratoriyalari, sport zallari va yotoqxona majmuasi bilan to'liq jihozlangan.`})]})]}),(0,H.jsxs)(`div`,{className:`pt-2 flex flex-wrap gap-3 items-center`,children:[(0,H.jsxs)(`button`,{onClick:()=>a(!0),className:`inline-flex items-center gap-2 bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-7 py-3 rounded-xl font-bold text-xs transition-colors shadow-md cursor-pointer`,children:[(0,H.jsx)(`span`,{children:e(`Learn More`)||`Batafsil ma'lumot`}),(0,H.jsx)(ml,{size:16})]}),(0,H.jsx)(`button`,{onClick:()=>s(!o),className:`inline-flex items-center gap-1.5 bg-[#F5F7FA] hover:bg-[#E4E7EC] text-[#0B2D5C] px-5 py-3 rounded-xl font-bold text-xs transition-colors border border-[#E4E7EC]`,children:(0,H.jsx)(`span`,{children:o?`Qisqartirish ▲`:`Matnni kengaytirish ▼`})})]})]}),(0,H.jsxs)(`div`,{className:`lg:col-span-6 grid grid-cols-2 gap-3 sm:gap-4 items-stretch`,children:[(0,H.jsx)(`div`,{className:`col-span-1 h-56 sm:h-64 rounded-2xl overflow-hidden border border-[#E4E7EC] shadow-md group`,children:(0,H.jsx)(`img`,{src:`/students_event.jpg`,alt:`Prezident maktabi o'quvchilari`,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500`})}),(0,H.jsx)(`div`,{className:`col-span-1 h-56 sm:h-64 bg-[#071D3B] rounded-2xl p-4 border border-white/10 shadow-md flex items-center justify-center`,children:(0,H.jsx)(`div`,{className:`w-24 h-24 sm:w-28 sm:h-28 rounded-full bg-[#071D3B] border-2 border-[#C59B27] p-1 flex items-center justify-center shadow-lg`,children:(0,H.jsx)(`img`,{src:n?.logo?X(n.logo):`/logo.png`,alt:`Prezident Maktabi Logo`,className:`w-full h-full object-contain rounded-full bg-[#071D3B]`})})}),(0,H.jsx)(`div`,{className:`col-span-1 h-44 sm:h-52 bg-[#071D3B] rounded-2xl p-5 border border-white/10 shadow-md flex items-center justify-center text-center`,children:(0,H.jsx)(`span`,{className:`text-white font-extrabold text-xs sm:text-sm tracking-wider uppercase leading-snug`,children:`SAMARQAND SHAHRIDAGI PREZIDENT MAKTABI`})}),(0,H.jsx)(`div`,{className:`col-span-1 h-44 sm:h-52 rounded-2xl overflow-hidden border border-[#E4E7EC] shadow-md group`,children:(0,H.jsx)(`img`,{src:`/ceremony.jpg`,alt:`Maktab tadbirlari`,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500`})})]})]})}),i&&(0,H.jsx)(`div`,{className:`fixed inset-0 z-[9999] bg-black/75 backdrop-blur-xs flex items-center justify-center p-4`,children:(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl max-w-2xl w-full p-6 sm:p-8 shadow-2xl relative border border-[#E4E7EC] animate-in fade-in zoom-in duration-200 max-h-[90vh] overflow-y-auto`,children:[(0,H.jsx)(`button`,{onClick:()=>a(!1),className:`absolute top-5 right-5 p-2 text-gray-400 hover:text-[#0B2D5C] rounded-full hover:bg-gray-100 transition-colors`,children:(0,H.jsx)(Iu,{size:22})}),(0,H.jsxs)(`div`,{className:`flex items-center gap-3 mb-4`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-[#071D3B] text-[#C59B27] flex items-center justify-center font-bold`,children:(0,H.jsx)(xl,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#C59B27] uppercase tracking-wider block`,children:`Batafsil ma'lumot`}),(0,H.jsx)(`h3`,{className:`text-xl font-extrabold text-[#0B2D5C]`,children:`Samarqand shahridagi Prezident maktabi`})]})]}),(0,H.jsxs)(`div`,{className:`space-y-4 text-xs sm:text-sm text-[#667085] leading-relaxed border-t border-b border-[#
31E4E7EC] py-5`,children:[(0,H.jsx)(`p`,{className:`text-[#0B2D5C] font-semibold`,children:`Samarqand shahridagi Prezident maktabi O'zbekiston Respublikasi Prezidenti Shavkat Mirziyoyevning tashabbusi bilan iqtidorli yoshlarni saralab olish va ularga xalqaro standartlar darajasida ta'lim-tarbiya berish maqsadida tashkil etilgan.`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-3 pt-2`,children:[(0,H.jsxs)(`div`,{className:`flex items-start gap-2.5 p-3 rounded-xl bg-[#F7F9FC] border border-[#E4E7EC]`,children:[(0,H.jsx)(bu,{size:18,className:`text-[#0284c7] shrink-0 mt-0.5`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`text-[#0B2D5C] block font-bold text-xs`,children:e(`Boarding System`)}),(0,H.jsx)(`span`,{className:`text-[11.5px] text-[#667085]`,children:e(`Boarding System Desc`)})]})]}),(0,H.jsxs)(`div`,{className:`flex items-start gap-2.5 p-3 rounded-xl bg-[#F7F9FC] border border-[#E4E7EC]`,children:[(0,H.jsx)(yl,{size:18,className:`text-[#C59B27] shrink-0 mt-0.5`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`text-[#0B2D5C] block font-bold text-xs`,children:e(`Cambridge Program`)}),(0,H.jsx)(`span`,{className:`text-[11.5px] text-[#667085]`,children:e(`Cambridge Program Desc`)})]})]}),(0,H.jsxs)(`div`,{className:`flex items-start gap-2.5 p-3 rounded-xl bg-[#F7F9FC] border border-[#E4E7EC]`,children:[(0,H.jsx)(gl,{size:18,className:`text-[#0284c7] shrink-0 mt-0.5`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`text-[#0B2D5C] block font-bold text-xs`,children:e(`International Experts`)}),(0,H.jsx)(`span`,{className:`text-[11.5px] text-[#667085]`,children:e(`International Experts Desc`)})]})]}),(0,H.jsxs)(`div`,{className:`flex items-start gap-2.5 p-3 rounded-xl bg-[#F7F9FC] border border-[#E4E7EC]`,children:[(0,H.jsx)(kl,{size:18,className:`text-[#C59B27] shrink-0 mt-0.5`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{className:`text-[#0B2D5C] block font-bold text-xs`,children:e(`Modern Labs`)}),(0,H.jsx)(`span`,{className:`text-[11.5px] text-[#667085]`,children:e(`Modern Labs Desc`)})]})]})]})]}),(0,H.jsx)(`div`,{className:`mt-6 flex justify-end`,children:(0,H.jsx)(`button`,{onClick:()=>a(!1),className:`bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-6 py-2.5 rounded-xl font-bold text-xs transition-colors shadow-sm`,children:e(`Close`)})})]})})]})},Xu=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(null);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>r(e.data?.data)).catch(e=>console.error(`Failed to load settings`,e))},[]);let i=(n,r)=>{if(!n)return e(r);let i=t.language||`uz`;if(typeof n==`object`&&n){let t=n[i]||n.uz||n.en;return t&&t.trim()?t:e(r)}return typeof n==`string`&&n.trim()?n:e(r)};return(0,H.jsx)(`section`,{className:`py-12 sm:py-16 bg-[#0f172a]/5 relative z-10`,children:(0,H.jsx)(`div`,{className:`container-page px-4`,children:(0,H.jsxs)(`div`,{className:`bg-[#0b1f3d] rounded-[28px] border border-white/10 shadow-2xl p-4 sm:p-6 md:p-8 relative overflow-hidden group`,children:[(0,H.jsx)(`div`,{className:`absolute inset-0 z-0 bg-cover bg-center opacity-15 pointer-events-none`,style:{backgroundImage:`url('https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80&w=1920&h=1080')`}}),(0,H.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-r from-[#0b1f3d] via-[#0b1f3d]/95 to-[#071938]/90 z-0`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 items-center gap-6 sm:gap-8 relative z-10`,children:[(0,H.jsx)(`div`,{className:`lg:col-span-5 relative`,children:(0,H.jsx)(`div`,{className:`rounded-2xl overflow-hidden shadow-2xl border border-white/20 bg-black/20 aspect-[4/3] sm:aspect-[14/11] lg:aspect-[4/3] max-h-[380px] w-full`,children:(0,H.jsx)(`img`,{src:n?.presidentImage?X(n.presidentImage):`/president.jpg`,alt:`Shavkat Mirziyoyev`,className:`w-full h-full object-cover object-top hover:scale-103 transition-transform duration-500`})})}),(0,H.jsxs)(`div`,{className:`lg:col-span-7 flex flex-col justify-between text-white space-y-6 sm:space-y-8 py-2 px-2 sm:px-4`,children:[(0,H.jsxs)(`div`,{className:`space-y-5`,children:[(0,H.jsx)(`h2`,{className:`text-2xl sm:text-3xl lg:text-[32px] font-black text-white tracking-tight leading-snug`,children:i(n?.presidentQuoteTitle,`President Quote School Title`)}),(0,H.jsx)(`div`,{className:`border-l-4 border-[#0284c7] pl-4 py-1`,children:(0,H.jsxs)(`p`,{className:`text-xs sm:text-sm md:text-[15px] text-gray-200 leading-relaxed font-medium`,children:[`"`,i(n?.presidentQuoteText,`President Quote Text`),`"`]})})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-3.5 pt-5 border-t border-white/15`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-full bg-white/10 border-2 border-white/30 p-0.5 flex items-center justify-center shrink-0 shadow-lg`,children:(0,H.jsx)(`img`,{src:`/gerb.png`,alt:`O'zbekiston Re
31spublikasi Gerbi`,className:`w-full h-full object-contain`})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-base sm:text-lg font-extrabold text-white leading-tight`,children:i(n?.presidentName,`President Name`)}),(0,H.jsx)(`p`,{className:`text-xs text-[#38bdf8] font-bold tracking-wide mt-0.5`,children:i(n?.presidentRole,`President Role`)})]})]})]})]})]})})})};function Zu(e=``){return e.trim().split(` `).filter(e=>!!e.trim())}function Qu(e){Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function $u(e,t=0){return setTimeout(e,t)}function ed(){return Date.now()}function td(e){return window.getComputedStyle(e,null)}function nd(e,t=`x`){let n=td(e),r=n.transform||n.webkitTransform;if(!r||r===`none`)return 0;let i=new DOMMatrixReadOnly(r);return t===`x`?i.m41:i.m42}function rd(e){return typeof e==`object`&&!!e&&e.constructor===Object&&Object.prototype.toString.call(e).slice(8,-1)===`Object`}function id(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement||!!e&&typeof e==`object`&&(e.nodeType===1||e.nodeType===11)}function ad(e,...t){let n=Object(e);for(let e=0;e<t.length;e+=1){let r=t[e];if(r==null||id(r))continue;let i=r,a=Object.keys(Object(i)).filter(e=>e!==`__proto__`&&e!==`constructor`&&e!==`prototype`);for(let e of a){let t=Object.getOwnPropertyDescriptor(i,e);if(!t||!t.enumerable)continue;let r=i[e];rd(n[e])&&rd(r)?r.__swiper__?n[e]=r:ad(n[e],r):!rd(n[e])&&rd(r)?(n[e]={},r.__swiper__?n[e]=r:ad(n[e],r)):n[e]=r}}return n}function od(e,t,n){e.style.setProperty(t,n)}function sd(e,t=``){let n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(e=>e.matches(t)):n}function cd(e,t){let n=[t];for(;n.length>0;){let t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}return!1}function ld(e,t){let n=t.contains(e);return!n&&t instanceof HTMLSlotElement&&(n=[...t.assignedElements()].includes(e),n||=cd(e,t)),n}function ud(e){try{console.warn(e)}catch{}}function dd(e,t=[]){let n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:Zu(t)),n}function fd(e,t){let n=[],r=e.previousElementSibling;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.previousElementSibling;return n}function pd(e,t){let n=[],r=e.nextElementSibling;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.nextElementSibling;return n}function md(e,t){return window.getComputedStyle(e,null).getPropertyValue(t)}function hd(e){if(!(!e||!e.parentNode))return[...e.parentNode.children].indexOf(e)}function gd(e,t){let n=[],r=e.parentElement;for(;r;)(!t||r.matches(t))&&n.push(r),r=r.parentElement;return n}function _d(e,t,n){{let n=window.getComputedStyle(e,null);return e[t===`width`?`offsetWidth`:`offsetHeight`]+parseFloat(n.getPropertyValue(t===`width`?`margin-right`:`margin-top`))+parseFloat(n.getPropertyValue(t===`width`?`margin-left`:`margin-bottom`))}}function vd(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function yd(e,t=``){let n=globalThis.trustedTypes;e.innerHTML=n===void 0?t:n.createPolicy(`html`,{createHTML:e=>e}).createHTML(t)}var bd=`eventsPrefix.injectStyles.injectStylesUrls.modules.init._direction.oneWayMovement.swiperElementNodeName.touchEventsTarget.initialSlide._speed.cssMode.updateOnWindowResize.resizeObserver.nested.focusableElements._enabled._width._height.preventInteractionOnTransition.userAgent.url._edgeSwipeDetection._edgeSwipeThreshold._freeMode._autoHeight.setWrapperSize.virtualTranslate._effect.breakpoints.breakpointsBase._spaceBetween._slidesPerView.maxBackfaceHiddenSlides._grid._slidesPerGroup._slidesPerGroupSkip._slidesPerGroupAuto._centeredSlides._centeredSlidesBounds._slidesOffsetBefore._slidesOffsetAfter.normalizeSlideIndex._centerInsufficientSlides._snapToSlideEdge._watchOverflow.roundLengths.touchRatio.touchAngle.simulateTouch._shortSwipes._longSwipes.longSwipesRatio.longSwipesMs._followFinger.allowTouchMove._threshold.touchMoveStopPropagation.touchStartPreventDefault.touchStartForcePreventDefault.touchReleaseOnEdges.uniqueNavElements._resistance._resistanceRatio._watchSlidesProgress._grabCursor.preventClicks.preventClicksPropagation._slideToClickedSlide._loop.loopAdditionalSlides.loopAddBlankSlides.loopPreventsSliding._rewind._allowSlidePrev._allowSlideNext._swipeHandler._noSwiping.noSwipingClass.noSwipingSelector.passiveListeners.containerModifierClass.slideClass.slideActiveClass.slideVisibleClass.slideFullyVisibleClass.slideNextClass.slidePrevClass.slideBlankClass.wrapperClass.lazyPreloaderClass.lazyPreloadPrevNext.runCallbacksOnInit.observer.observeParents.observeSlideChildren.a11y._autoplay._controller.coverflowEffect.cubeEffect.fadeEffect.flipEffect.creativeEffect.cardsEffect.hashNavigation.history.keyboard.mousewheel._navigation._pagination.parallax._scrollbar._thumbs.virtual.zoom.control`.split(`.`);function Z(e){if(typeof e!=`object`||!e)return!1;let t=e;return!!t.constructor&&Object.prototype.toString.call(t).slice(8,-1)===`Object`&&!t.__swiper__}function xd(e,t){let n=[`__proto__`,`constructor`,`prototype`],r=e,i=t;return Object.keys(i).filter(e=>
31n.indexOf(e)<0).forEach(e=>{let t=i[e],n=r[e];n===void 0?r[e]=t:Z(t)&&Z(n)&&Object.keys(t).length>0?t.__swiper__?r[e]=t:xd(n,t):r[e]=t}),e}function Sd(e={}){let t=e.navigation;return t?t===!0||t.nextEl===void 0&&t.prevEl===void 0:!1}function Cd(e={}){let t=e.pagination;return t?t===!0||t.el===void 0:!1}function wd(e={}){let t=e.scrollbar;return t?t===!0||t.el===void 0:!1}function Td(e=``){let t=e.split(` `).map(e=>e.trim()).filter(e=>!!e),n=[];return t.forEach(e=>{n.indexOf(e)<0&&n.push(e)}),n.join(` `)}function Ed(e=``){return e?e.includes(`swiper-wrapper`)?e:`swiper-wrapper ${e}`:`swiper-wrapper`}function Dd(e){let{nextEl:t,prevEl:n,scrollbarEl:r,paginationEl:i}=e,{swiper:a,slides:o,passedParams:s,changedParams:c}=e,l=c.filter(e=>e!==`children`&&e!==`direction`&&e!==`wrapperClass`),{params:u,pagination:d,navigation:f,scrollbar:p,virtual:m,thumbs:h}=a,g=s,_=u,v,y,b,x,S,C,w,T,E=g.thumbs,D=_.thumbs;c.includes(`thumbs`)&&Z(E)&&E.swiper&&!E.swiper.destroyed&&Z(D)&&(!D.swiper||D.swiper.destroyed)&&(v=!0);let O=g.controller,k=_.controller;c.includes(`controller`)&&Z(O)&&O.control&&Z(k)&&!k.control&&(y=!0);let A=g.pagination;c.includes(`pagination`)&&Z(A)&&(A.el||i)&&(_.pagination||_.pagination===!1)&&d&&!d.el&&(b=!0);let j=g.scrollbar;c.includes(`scrollbar`)&&Z(j)&&(j.el||r)&&(_.scrollbar||_.scrollbar===!1)&&p&&!p.el&&(x=!0);let ee=g.navigation;c.includes(`navigation`)&&Z(ee)&&(ee.prevEl||n)&&(ee.nextEl||t)&&(_.navigation||_.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(S=!0);let M=e=>{let t=a[e];if(!t)return;t.destroy();let n=_[e],r=Z(n)?n:void 0;e===`navigation`?(a.isElement&&(t.prevEl?.remove(),t.nextEl?.remove()),r&&(r.prevEl=void 0,r.nextEl=void 0),t.prevEl=void 0,t.nextEl=void 0):(a.isElement&&t.el?.remove(),r&&(r.el=void 0),t.el=void 0)};if(c.includes(`loop`)&&a.isElement&&(u.loop&&!s.loop?C=!0:!u.loop&&s.loop?w=!0:T=!0),l.forEach(e=>{let t=_[e],n=g[e];Z(t)&&Z(n)?(Object.assign(t,n),(e===`navigation`||e===`pagination`||e===`scrollbar`)&&`enabled`in n&&!n.enabled&&M(e)):(n===!0||n===!1)&&(e===`navigation`||e===`pagination`||e===`scrollbar`)?n===!1&&M(e):_[e]=n}),l.includes(`controller`)&&!y&&a.controller&&a.controller.control&&Z(k)&&k.control&&(a.controller.control=k.control),c.includes(`children`)&&o&&m&&u.virtual?.enabled?(m.slides=o,m.update(!0)):c.includes(`virtual`)&&m&&u.virtual?.enabled&&(o&&(m.slides=o),m.update(!0)),c.includes(`children`)&&o&&u.loop&&(T=!0),v&&h&&h.init()&&h.update(!0),y&&a.controller&&Z(k)&&(a.controller.control=k.control),b&&d){if(a.isElement&&(!i||t
31ypeof i==`string`)){let e=document.createElement(`div`);e.classList.add(`swiper-pagination`),e.part.add(`pagination`),a.el.appendChild(e),i=e}let e=_.pagination;i&&Z(e)&&(e.el=i),d.init(),d.render(),d.update()}if(x&&p){if(a.isElement&&(!r||typeof r==`string`)){let e=document.createElement(`div`);e.classList.add(`swiper-scrollbar`),e.part.add(`scrollbar`),a.el.appendChild(e),r=e}let e=_.scrollbar;r&&Z(e)&&(e.el=r),p.init(),p.updateSize(),p.setTranslate()}if(S&&f){if(a.isElement){if(!t||typeof t==`string`){let e=document.createElement(`div`);e.classList.add(`swiper-button-next`),yd(e,f.arrowSvg),e.part.add(`button-next`),a.el.appendChild(e),t=e}if(!n||typeof n==`string`){let e=document.createElement(`div`);e.classList.add(`swiper-button-prev`),yd(e,f.arrowSvg),e.part.add(`button-prev`),a.el.appendChild(e),n=e}}let e=_.navigation;t&&Z(e)&&(e.nextEl=t),n&&Z(e)&&(e.prevEl=n),f.init(),f.update()}c.includes(`allowSlideNext`)&&(a.allowSlideNext=g.allowSlideNext),c.includes(`allowSlidePrev`)&&(a.allowSlidePrev=g.allowSlidePrev),c.includes(`direction`)&&a.changeDirection(g.direction,!1),(C||T)&&a.loopDestroy(),(w||T)&&a.loopCreate(),a.update()}var Od;function kd(){return typeof window>`u`?{touch:!1}:{touch:`ontouchstart`in window||navigator.maxTouchPoints>0}}function Ad(){return Od||=kd(),Od}var jd;function Md({userAgent:e}={}){if(typeof window>`u`)return{ios:!1,android:!1};let t=Ad(),n=navigator.platform,r=e||navigator.userAgent,i={ios:!1,android:!1},a=/(Android);?[\s/]+([\d.]+)?/.test(r),o=/(iPhone\sOS|iOS|iPod)/.test(r),s=/iPad/.test(r),c=n===`MacIntel`&&t.touch&&navigator.maxTouchPoints>1,l=s||c;return a&&n!==`Win32`&&(i.os=`android`,i.android=!0),(l||o)&&(i.os=`ios`,i.ios=!0),i}function Nd(e={}){return jd||=Md(e),jd}var Pd;function Fd(){if(typeof window>`u`)return{isSafari:!1,isWebView:!1,need3dFix:!1};let e=Nd(),t=navigator.userAgent,n=t.toLowerCase(),r=n.includes(`safari`)&&!n.includes(`chrome`)&&!n.includes(`android`),i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t);return{isSafari:r,isWebView:i,need3dFix:r||i&&e.ios}}function Id(){return Pd||=Fd(),Pd}var Ld=(e,t)=>{if(!e||e.destroyed||!e.params)return;let n=t.closest(e.isElement?`swiper-slide`:`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(n.shadowRoot){let t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`);t&&!t.lazyPreloaderManaged&&t.remove()}})),t&&!t.lazyPreloaderManaged&&t.remove()}},Rd=(e,t)=>{if(!e.slides[t])return;let n=e.slides[t].querySelector(`[loading="lazy"]`);n&&n.removeAttribute(`loading`)},zd=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext,n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);let r=e.params.slidesPerView===`auto`?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),i=e.activeIndex;if(e.params.grid&&(e.params.grid.rows??1)>1){let n=i,a=[n-t];a.push(...Array.from({length:t}).map((e,t)=>n+r+t)),e.slides.forEach((t,n)=>{t.column!==void 0&&a.includes(t.column)&&Rd(e,n)});return}let a=i+r-1;if(e.params.rewind||e.params.loop)for(let r=i-t;r<=a+t;r+=1){let t=(r%n+n)%n;(t<i||t>a)&&Rd(e,t)}else for(let r=Math.max(i-t,0);r<=Math.min(a+t,n-1);r+=1)r!==i&&(r>a||r<i)&&Rd(e,r)};function Bd(e,t=`window`,n){if(!e||t===`container`&&!n)return;let r=!1,i=t===`window`?window.innerHeight:n.clientHeight,a=Object.keys(e).map(e=>{if(typeof e==`string`&&e.indexOf(`@`)===0){let t=parseFloat(e.substr(1));return{value:i*t,point:e}}return{value:e,point:e}});a.sort((e,t)=>parseInt(String(e.value),10)-parseInt(String(t.value),10));for(let e=0;e<a.length;e+=1){let{point:i,value:o}=a[e];t===`window`?window.matchMedia(`(min-width: ${o}px)`).matches&&(r=i):o<=n.clientWidth&&(r=i)}return r||`max`}var Vd=(e,t)=>!!(e.grid&&t.grid&&t.grid.rows>1);function Hd(){let e=this,{realIndex:t,initialized:n,params:r,el:i}=e,a=r.breakpoints;if(!a||a&&Object.keys(a).length===0)return;let o=r.breakpointsBase===`window`||!r.breakpointsBase?r.breakpointsBase:`container`,s=[`window`,`container`].includes(r.breakpointsBase)||!r.breakpointsBase?e.el:document.querySelector(r.breakpointsBase),c=e.getBreakp
31oint(a,o,s);if(!c||e.currentBreakpoint===c)return;let l=a,u=(c in l?l[c]:void 0)||e.originalParams,d=Vd(e,r),f=Vd(e,u),p=e.params.grabCursor,m=u.grabCursor,h=r.enabled;d&&!f?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!d&&f&&(i.classList.add(`${r.containerModifierClass}grid`),(u.grid.fill&&u.grid.fill===`column`||!u.grid.fill&&r.grid.fill===`column`)&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!m?e.unsetGrabCursor():!p&&m&&e.setGrabCursor();let g=(e,t)=>e[t];[`navigation`,`pagination`,`scrollbar`].forEach(t=>{let n=g(u,t);if(n===void 0)return;let i=g(r,t),a=typeof i==`object`&&!!i&&i.enabled,o=typeof n==`object`&&!!n&&n.enabled,s=e[t];a&&!o&&s?.disable?.(),!a&&o&&s?.enable?.()});let _=u.direction&&u.direction!==r.direction,v=r.loop&&(u.slidesPerView!==r.slidesPerView||_),y=r.loop;_&&n&&e.changeDirection(),ad(e.params,u);let b=e.params.enabled,x=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),h&&!b?e.disable():!h&&b&&e.enable(),e.currentBreakpoint=c,e.emit(`_beforeBreakpoint`,u),n&&(v?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!y&&x?(e.loopCreate(t),e.updateSlides()):y&&!x&&e.loopDestroy()),e.emit(`breakpoint`,u)}var Ud={setBreakpoint:Hd,getBreakpoint:Bd};function Wd(){let e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){let t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+r*2;e.isLocked=e.size>n}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?`lock`:`unlock`)}var Gd={checkOverflow:Wd};function Kd(e,t){let n=[];return e.forEach(e=>{typeof e==`object`?Object.keys(e).forEach(r=>{e[r]&&n.push(t+r)}):typeof e==`string`&&n.push(t+e)}),n}function qd(){let e=this,{classNames:t,params:n,rtl:r,el:i,device:a}=e,o=Kd([`initialized`,n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill===`column`},{android:a.android},{ios:a.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),i.classList.add(...t),e.emitContainerClasses()}function Jd(){let e=this,{el:t,classNames:n}=e;!t||typeof t==`string`||(t.classList.remove(...n),e.emitContainerClasses())}var Yd={addClasses:qd,removeClasses:Jd},Xd={init:!0,direction:`horizontal`,oneWayMovement:!1,swiperElementNodeName:`SWIPER-CONTAINER`,touchEventsTarget:`wrapper`,initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:`swiper`,enabled:!0,focusableElements:`input, select, option, textarea, button, video, label`,width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:`slide`,breakpoints:void 0,breakpointsBase:`window`,spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:`swiper-no-swiping`,noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:`swiper-`,slideClass:`swiper-slide`,slideBlankClass:`swiper-slide-blank`,slideActiveClass:`swiper-slide-active`,slideVisibleClass:`swiper-slide-visible`,slideFullyVisibleClass:`swiper-slide-fully-visible`,slideNextClass:`swiper-slide-next`,slidePrevClass:`swiper-slide-prev`,wrapperClass:`swiper-wrapper`,lazyPreloaderClass:`swiper-lazy-preloader`,lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1},Zd={on(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=n?`unshift`:`push`;
31return e.split(` `).forEach(e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},once(e,t,n){let r=this;if(!r.eventsListeners||r.destroyed||typeof t!=`function`)return r;let i=function(...n){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,n)};return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){let n=this;if(!n.eventsListeners||n.destroyed||typeof e!=`function`)return n;let r=t?`unshift`:`push`;return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;let n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){let n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(` `).forEach(e=>{t===void 0?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((r,i)=>{(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(i,1)})}),n},emit(...e){let t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;if(typeof e[0]==`string`||Array.isArray(e[0]))n=e[0],r=e.slice(1,e.length),i=t;else{let a=e[0];n=a.events,r=a.data??[],i=a.context||t}return r.unshift(i),(Array.isArray(n)?n:n.split(` `)).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(i,[e,...r])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(e=>{e.apply(i,r)})}),t}};function Qd(e){let t=this;t.destroyed||t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function $d(){let e=this;e.destroyed||e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction=`auto`))}function ef(e){let t=this;t.destroyed||(Ld(t,e.target),!(t.params.cssMode||t.params.slidesPerView!==`auto`&&!t.params.autoHeight)&&t.update())}function tf(){let e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();let{allowSlideNext:r,allowSlidePrev:i,snapGrid:a}=e,o=e.virtual&&e.params.virtual?.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();let s=o&&t.loop;if((t.slidesPerView===`auto`||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s){let t=o?e.virtual.slides.length:e.slides.length;e.slideTo(t-1,0,!1,!0)}else e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);if(e.autoplay&&e.autoplay.running&&e.autoplay.paused){let t=e.autoplay;clearTimeout(t.resizeTimeout),t.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)}e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function nf(){let e=this;if(e.destroyed)return;let{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.translate=e.isHorizontal()?-t.scrollLeft:-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i,a=e.maxTranslate()-e.minTranslate();i=a===0?0:(e.translate-e.minTranslate())/a,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit(`setTranslate`,e.translate,!1)}function rf(e){let t=this;if(t.destroyed)return;let n=t.touchEventsData,r=e.originalEvent??e;if(r.type!==`touchend`&&r.type!==`touchcancel`){if(n.touchId!==null||r.pointerId!==n.pointerId)return}else{let e=[...r.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return}if([`pointercancel`,`pointerout`,`pointerleave`,`contextmenu`].includes(r.type)&&!([`pointercancel`,`contextmenu`].includes(r.type)&&(t.browser.isSafari||t.browser.isWebView)))return;n.pointerId=null,n.touchId=null;let{params:i,touches:a,rtlTranslate:o,slidesGrid:s,enabled:c}=t;if(!c||!i.simulateTouch&&r.pointerType===`mouse`)return;if(n.allowTouchCallbacks&&t.emit(`touchEnd`,r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}i.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);let l=ed(),u=l-n.touchStartTime;if(t.allowClick){let e=r.path??(r.composedPath&&r.composedPath());t.updateClickedSlide(e&&e[0],e),t.emit(`tap click`,r),u<300&&l-n.lastClickTime<300&&t.emit(`doubleTap doubleClick`,r)}if(n.lastClickTime=ed(),$u(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||a.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let d;if(d=i.followFinger?o?t.translate:-t.translate:-(n.currentTranslate??0),i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:d});return}let f=d>=-t.maxTranslate()&&!t.params.loop,p=0,m=t.slidesSizesGrid[0];for(let e=0;e<s.length;e+=e<i.slidesPerGroupSkip?1:i.slidesPerGroup){let t=e<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;s[e+t]===void 0?(f||d>=s[e])&&(p=e,m=s[s.length-1]-s[s.length-2]):(f||d>=s[e]&&d<s[e+t])&&(p=e,m=s[e+t]-s[e])}let h=null,g=null;i.rewind&&(t.isBeginning?g=i.virtual?.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(h=0));let _=(d-s[p])/m,v=p<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(u>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection===`next`&&(_>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?h:p+v):t.slideTo(p)),t.swipeDirection===`prev`&&(_>1-i.longSwipesRatio?t.slideTo(p+v):g!==null&&_<0&&Math.abs(_)>i.longSwipesRatio?t.slideTo(g):t.slideTo(p))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(r.target===t.navigation.nextEl||r.target===t.navigation.prevEl)?r.target===t.navigation.nextEl?t.slideTo(p+v):t.slideTo(p):(t.swipeDirection===`next`&&t.slideTo(h===null?p+v:h),t.swipeDirection===`prev`&&t.slideTo(g===null?p:g))}}function af(e){let t=this;if(t.destroyed)return;let n=t.touchEventsData,{params:r,touches:i,rtlTranslate:a,enabled:o}=t;if(!o||!r.simulateTouch&&e.pointerType===`mouse`)return;let s=e,c=s.originalEvent??s;if(c.type===`pointermove`&&(n.touchId!==null||c.pointerId!==n.pointerId))return;let l;if(c.type===`touchmove`){let e=[...c.changedTouches].find(e=>e.identifier===n.touchId);if(!e||e.identifier!==n.touchId)return;l=e}else l=c;if(!n.isTouched){n.startMoving&&n.isScrolling&&t.emit(`touchMoveOpposite`,c);return}let u=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper){i.startX=u,i.startY=d;return}if(!t.allowTouchMove){c.target.matches(n.focusableElements)||(t.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d}),n.touchStartTime=ed());return}if(r.touchReleaseOnEdges&&!r.loop){if(t.isVertical()){if(d<i.startY&&t.translate<=t.maxTranslate()||d>i.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(a&&(u>i.startX&&-t.translate<=t.maxTranslate()||u<i.startX&&-t.translate>=t.minTranslate()))return;else if(!a&&(u<i.startX&&t.translate<=t.maxTranslate()||u>i.startX&&t.translate>=t.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==c.target&&c.pointerType!==`mouse`&&document.activeElement.blur(),document.activeElement&&c.target===document.activeElement&&c.target.matches(n.focusableElements)){n.isMoved=!0,t.allowClick=!1;return}n.allowTouchCallbacks&&t.emit(`touchMove`,c),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=u,i.currentY=d;let f=i.currentX-i.startX,p=i.currentY-i.startY;if(t.params.threshold&&Math.sqrt(f**2+p**2)<t.params.threshold)return;if(n.isScrolling===void 0){let e;t.isHorizontal()&&i.currentY===i.startY||t.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:f*f+p*p>=25&&(e=Math.atan2(Math.abs(p),Math.abs(f))*180/Math.PI,n.isScrolling=t.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(n.isScrolling&&t.emit(`touchMoveOpposite`,c),n.startMoving===void 0&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling||c.type===`touchmove`&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let m=t.isHorizontal()?f:p,h=t.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;r.oneWayMovement&&(m=Math.abs(m)*(a?1:-1),h=Math.abs(h)*(a?1:-1)),i.diff=m,m*=r.touchRatio,a&&(m=-m,h=-h);let g=t.touchesDirection;t.swipeDirection=m>0?`prev`:`next`,t.touchesDirection=h>0?`prev`:`next`;let _=t.params.loop&&!r.cssMode,v=t.touchesDirection===`next`&&t.allowSlideNext||t.touchesDirection===`prev`&&t.allowSlidePrev;if(!n.isMoved){if(_&&v&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){let e=new window.CustomEvent(`transitionend`,{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
31t.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit(`sliderFirstMove`,c)}if(new Date().getTime(),r._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&g!==t.touchesDirection&&_&&v&&Math.abs(m)>=1){Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}t.emit(`sliderMove`,c),n.isMoved=!0;let y=n.startTranslate??0;n.currentTranslate=m+y;let b=!0,x=r.resistanceRatio;if(r.touchReleaseOnEdges&&(x=0),m>0?(_&&v&&n.allowThresholdMove&&n.currentTranslate>(r.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-(r.slidesPerView!==`auto`&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:`prev`,setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>t.minTranslate()&&(b=!1,r.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+y+m)**x))):m<0&&(_&&v&&n.allowThresholdMove&&n.currentTranslate<(r.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+(r.slidesPerView!==`auto`&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:`next`,setTranslate:!0,activeSlideIndex:t.slides.length-(r.slidesPerView===`auto`?t.slidesPerViewDynamic():Math.ceil(parseFloat(String(r.slidesPerView))))}),n.currentTranslate<t.maxTranslate()&&(b=!1,r.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-y-m)**x))),b&&(c.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection===`next`&&(n.currentTranslate??0)<y&&(n.currentTranslate=y),!t.allowSlidePrev&&t.swipeDirection===`prev`&&(n.currentTranslate??0)>y&&(n.currentTranslate=y),!t.allowSlidePrev&&!t.allowSlideNext&&(n.currentTranslate=y),r.threshold>0)if(Math.abs(m)>r.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=t.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(n.currentTranslate),t.setTranslate(n.currentTranslate??0))}function of(e,t){function n(t){if(!t||t===document||t===window)return null;let r=t;r.assignedSlot&&(r=r.assignedSlot);let i=r.closest(e);if(!i&&!r.getRootNode)return null;let a=r.getRootNode();return i||n(a.host)}return n(t)}function sf(e,t,n){let{params:r}=e,i=r.edgeSwipeDetection,a=r.edgeSwipeThreshold;return i&&(n<=a||n>=window.innerWidth-a)?i===`prevent`&&(t.preventDefault(),!0):!0}function cf(e){let t=this;if(t.destroyed)return;let n=e.originalEvent??e,r=t.touchEventsData;if(n.type===`pointerdown`){let e=n;if(r.pointerId!==null&&r.pointerId!==e.pointerId)return;r.pointerId=e.pointerId}else n.type===`touchstart`&&n.targetTouches.length===1&&(r.touchId=n.targetTouches[0].identifier);if(n.type===`touchstart`){sf(t,n,n.targetTouches[0].pageX);return}let{params:i,touches:a,enabled:o}=t;if(!o||!i.simulateTouch&&n.pointerType===`mouse`||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let s=n.target;if(i.touchEventsTarget===`wrapper`&&!ld(s,t.wrapperEl))return;let c=n;if(typeof c.which==`number`&&c.which===3||typeof c.button==`number`&&c.button>0||r.isTouched&&r.isMoved)return;let l=!!i.noSwipingClass&&i.noSwipingClass!==``,u=n.composedPath?n.composedPath():n.path;l&&n.target&&n.target.shadowRoot&&u&&(s=u[0]);let d=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(i.noSwiping&&(f?of(d,s):s.closest(d))){t.allowClick=!0;return}if(i.swipeHandler&&typeof i.swipeHandler==`string`&&!s.closest(i.swipeHandler))return;let p=n;a.currentX=p.pageX,a.currentY=p.pageY;let m=a.currentX,h=a.currentY;if(!sf(t,n,m))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=m,a.startY=h,r.touchStartTime=ed(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1);let g=!0;s.matches(r.focusableElements)&&(g=!1,s.nodeName===`SELECT`&&(r.isTouched=!1)),document.activeElement&&document.activeElement.matches(r.focusableElements)&&document.activeElement!==s&&(p.pointerType===`mouse`||p.pointerType!==`mouse`&&!s.matches(r.focusableElements))&&document.activeElement.blur();let _=g&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||_)&&!s.isContentEditable&&n.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit(`touchStart`,n)}var lf=(e,t)=>{let{params:n,el:r,wrapperEl:i,device:a}=e,o=!!n.nested,s=t===`on`?`addEventListener`:`removeEventListener`,c=t;if(!r||typeof r==`string`)return;document[s](`touchstart`,e.onDocumentTouchStart,{passive:!1,capture:o}),r[s](`touchstart`,e.onTouchStart,{passive:!1}),r[s](`pointerdown`,e.onTouchStart,{passive:!1}),document[s](`touchmove`,e.onTouchMove,{passive:!1,capture:o}),document[s](`pointermove`,e.onTouchMove,{passive:!1,capture:o}),document[s](`touchend`,e.onTouchEnd,{passive:!0}),document[s](`pointerup`,e.onTouchEnd,{passive:!0}),document[s](`pointercancel`,e.onTouchEnd,{passive:!0}),document[s](`touchcancel`,e.onTouchEnd,{passive:!0}),document[s](`pointerout`,e.onTouchEnd,{passive:!0}),document[s](`pointerleave`,e.onTouchEnd,{passive:!0}),document[s](`contextmenu`,e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[s](`click`,e.onClick,!0),n.cssMode&&i[s](`scroll`,e.onScroll);let l=t=>{e[c](t,tf,!0)};n.updateOnWindowResize?l(a.ios||a.android?`resize orientationchange observerUpdate`:`resize observerUpdate`):l(`observerUpdate`),r[s](`load`,e.onLoad,{capture:!0})};function uf(){let e=this,{params:t}=e;e.onTouchStart=cf.bind(e),e.onTouchMove=af.bind(e),e.onTouchEnd=rf.bind(e),e.onDocumentTouchStart=$d.bind(e),t.cssMode&&(e.onScroll=nf.bind(e)),e.onClick=Qd.bind(e),e.onLoad=ef.bind(e),lf(e,`on`)}function df(){lf(this,`off`)}var ff={attachEvents:uf,detachEvents:df};function pf(e){let t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;let n=t.params.touchEventsTarget===`container`?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor=`move`,n.style.cursor=e?`grabbing`:`grab`,t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function mf(){let e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget===`container`?`el`:`wrapperEl`].style.cursor=``,e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var hf={setGrabCursor:pf,unsetGrabCursor:mf};function gf(e,t){let n=this,{params:r,slidesEl:i}=n;if(!r.loop||n.virtual&&n.params.virtual?.enabled)return;let a=()=>{sd(i,`.${r.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute(`data-swiper-slide-index`,String(t))})},o=()=>{let e=sd(i,`.${r.slideBlankClass}`);
31e.forEach(e=>{e.remove()}),e.length>0&&(n.recalcSlides(),n.updateSlides())},s=n.grid&&r.grid&&r.grid.rows>1;r.loopAddBlankSlides&&(r.slidesPerGroup>1||s)&&o();let c=r.slidesPerGroup*(s?r.grid.rows:1),l=n.slides.length%c!==0,u=s&&n.slides.length%r.grid.rows!==0,d=e=>{for(let t=0;t<e;t+=1){let e=n.isElement?dd(`swiper-slide`,[r.slideBlankClass]):dd(`div`,[r.slideClass,r.slideBlankClass]);n.slidesEl.append(e)}};l?(r.loopAddBlankSlides?(d(c-n.slides.length%c),n.recalcSlides(),n.updateSlides()):ud(`Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`),a()):(u&&(r.loopAddBlankSlides?(d(r.grid.rows-n.slides.length%r.grid.rows),n.recalcSlides(),n.updateSlides()):ud(`Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)`)),a());let f=r.centeredSlides||!!r.slidesOffsetBefore||!!r.slidesOffsetAfter;n.loopFix({slideRealIndex:e,direction:f?void 0:`next`,initial:t})}function _f(){let e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual?.enabled)return;e.recalcSlides();let r=[];e.slides.forEach(e=>{let t=e,n=t.swiperSlideIndex===void 0?Number(e.getAttribute(`data-swiper-slide-index`)):t.swiperSlideIndex;r[n]=e}),e.slides.forEach(e=>{e.removeAttribute(`data-swiper-slide-index`)}),r.forEach(e=>{n.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}function vf(e={}){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:a,initial:o,byController:s,byMousewheel:c}=e,l=a,u=this;if(!u.params.loop)return;u.emit(`beforeLoopFix`);let{slides:d,allowSlidePrev:f,allowSlideNext:p,slidesEl:m,params:h}=u,{centeredSlides:g,slidesOffsetBefore:_,slidesOffsetAfter:v,initialSlide:y}=h,b=g||!!_||!!v;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&h.virtual?.enabled){if(n){let e=u.virtual.slides.length,t=u.virtual.slidesBefore??0;!b&&u.snapIndex===0?u.slideTo(e,0,!1,!0):b&&u.snapIndex<h.slidesPerView?u.slideTo(e+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(t,0,!1,!0)}u.allowSlidePrev=f,u.allowSlideNext=p,u.emit(`loopFix`);return}let x=h.slidesPerView;x===`auto`?x=u.slidesPerViewDynamic():(x=Math.ceil(parseFloat(String(h.slidesPerView))),b&&x%2==0&&(x+=1));let S=h.slidesPerGroupAuto?x:h.slidesPerGroup,C=b?Math.max(S,Math.ceil(x/2)):S;C%S!==0&&(C+=S-C%S),C+=h.loopAdditionalSlides,u.loopedSlides=C;let w=u.grid&&h.grid&&h.grid.rows>1;d.length<x+C||u.params.effect===`cards`&&d.length<x+C*2?ud(`Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters`):w&&h.grid.fill===`row`&&ud("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");let T=[],E=[],D=w?Math.ceil(d.length/h.grid.rows):d.length,O=o&&D-y<x&&!b,k=O?y:u.activeIndex;l===void 0?l=u.getSlideIndex(d.find(e=>e.classList.contains(h.slideActiveClass))):k=l;let A=r===`next`||!r,j=r===`prev`||!r,ee=0,M=0,te=(w?d[l].column??0:l)+(b&&i===void 0?-x/2+.5:0);if(te<C){ee=Math.max(C-te,S);for(let e=0;e<C-te;e+=1){let t=e-Math.floor(e/D)*D;if(w){let e=D-t-1;for(let t=d.length-1;t>=0;--t)d[t].column===e&&T.push(t)}else T.push(D-t-1)}}else if(te+x>D-C){M=Math.max(te-(D-C*2),S),O&&(M=Math.max(M,x-D+y+1));for(let e=0;e<M;e+=1){let t=e-Math.floor(e/D)*D;w?d.forEach((e,n)=>{e.column===t&&E.push(n)}):E.push(t)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),u.params.effect===`cards`&&d.length<x+C*2&&(E.includes(l)&&E.splice(E.indexOf(l),1),T.includes(l)&&T.splice(T.indexOf(l),1)),j&&T.forEach(e=>{let t=d[e];t.swiperLoopMoveDOM=!0,m.prepend(t),t.swiperLoopMoveDOM=!1}
31),A&&E.forEach(e=>{let t=d[e];t.swiperLoopMoveDOM=!0,m.append(t),t.swiperLoopMoveDOM=!1}),u.recalcSlides(),h.slidesPerView===`auto`?u.updateSlides():w&&(T.length>0&&j||E.length>0&&A)&&u.slides.forEach((e,t)=>{u.grid.updateSlide(t,e,u.slides)}),h.watchSlidesProgress&&u.updateSlidesOffset(),n){if(T.length>0&&j){if(t===void 0){let e=u.slidesGrid[k],t=u.slidesGrid[k+ee]-e;c?u.setTranslate(u.translate-t):(u.slideTo(k+Math.ceil(ee),0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else if(i){let e=w?T.length/h.grid.rows:T.length;u.slideTo(u.activeIndex+e,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(E.length>0&&A)if(t===void 0){let e=u.slidesGrid[k],t=u.slidesGrid[k-M]-e;c?u.setTranslate(u.translate-t):(u.slideTo(k-M,0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-t,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-t))}else{let e=w?E.length/h.grid.rows:E.length;u.slideTo(u.activeIndex-e,0,!1,!0)}}u.allowSlidePrev=f,u.allowSlideNext=p;let ne=u.controller?.control;if(ne&&!s){let e={slideRealIndex:t,direction:r,setTranslate:i,activeSlideIndex:l,byController:!0};Array.isArray(ne)?ne.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===h.slidesPerView&&n})}):ne instanceof u.constructor&&ne.params.loop&&ne.loopFix({...e,slideTo:ne.params.slidesPerView===h.slidesPerView&&n})}u.emit(`loopFix`)}var yf={loopCreate:gf,loopFix:vf,loopDestroy:_f};function bf(e,t){return function(n={}){let r=Object.keys(n)[0],i=n[r];if(typeof i!=`object`||!i){ad(t,n);return}if(e[r]===!0&&(e[r]={enabled:!0}),r===`navigation`&&e[r]&&e[r].enabled&&!e[r].prevEl&&!e[r].nextEl&&(e[r].auto=!0),[`pagination`,`scrollbar`].indexOf(r)>=0&&e[r]&&e[r].enabled&&!e[r].el&&(e[r].auto=!0),!(r in e&&`enabled`in i)){ad(t,n);return}typeof e[r]==`object`&&!(`enabled`in e[r])&&(e[r].enabled=!0),e[r]||(e[r]={enabled:!1}),ad(t,n)}}var xf=({swiper:e,extendParams:t,on:n})=>{let r=[],i=(t,n={})=>{let i=window.MutationObserver||window.WebkitMutationObserver;if(!i)return;let a=new i(t=>{if(e.__preventObserver__)return;if(t.length===1){e.emit(`observerUpdate`,t[0]);return}let n=function(){e.emit(`observerUpdate`,t[0])};window.requestAnimationFrame?window.requestAnimationFrame(n):window.setTimeout(n,0)});a.observe(t,{attributes:n.attributes===void 0||n.attributes,childList:e.isElement||n.childList===void 0||n.childList,characterData:n.characterData===void 0||n.characterData}),r.push(a)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n(`init`,()=>{if(e.params.observer){if(e.params.observeParents){let t=gd(e.hostEl);for(let e=0;e<t.length;e+=1)i(t[e])}i(e.hostEl,{childList:e.params.observeSlideChildren}),i(e.wrapperEl,{attributes:!1})}}),n(`destroy`,()=>{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})},Sf=({swiper:e,on:t,emit:n})=>{let r=null,i=null,a=()=>{!e||e.destroyed||!e.initialized||(n(`beforeResize`),n(`resize`))},o=()=>{!e||e.destroyed||!e.initialized||(r=new ResizeObserver(t=>{i=window.requestAnimationFrame(()=>{let{width:n,height:r}=e,i=n,o=r;t.forEach(({contentBoxSize:t,contentRect:n,target:r})=>{if(r&&r!==e.el)return;let a=Array.isArray(t)?t[0]:t;i=n?n.width:a.inlineSize,o=n?n.height:a.blockSize}),(i!==n||o!==r)&&a()})}),r.observe(e.el))},s=()=>{i&&window.cancelAnimationFrame(i),r&&r.unobserve&&e.el&&(r.unobserve(e.el),r=null)},c=()=>{!e||e.destroyed||!e.initialized||n(`orientationchange`)};t(`init`,()=>{if(e.params.resizeObserver&&window.ResizeObserver!==void 0){o();return}window.addEventListener(`resize`,a),window.addEventListener(`orientationchange`,c)}),t(`destroy`,()=>{s(),window.removeEventListener(`resize`,a),window.removeEventListener(`orientationchange`,c)})};function Cf(e,t=!0,n){let r=this,{enabled:i,params:a,animating:o}=r;if(!i||r.destroyed)return r;e===void 0&&(e=r.params.speed);let s=a.slidesPerGroup;a.slidesPerView===`auto`&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic(`current`,!0),1));let c=r.activeIndex<a.slidesPerGroupSkip?1:s,l=r.virtual&&a.virtual?.enabled;if(a.loop){if(o&&!l&&a.loopPreventsSliding)return!1;if(r.loopFix({direction:`next`}
31),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+c,e,t,n)}),!0}return a.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+c,e,t,n)}function wf(e,t=!0,n){let r=this,{params:i,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:c,animating:l}=r;if(!c||r.destroyed)return r;e===void 0&&(e=r.params.speed);let u=r.virtual&&i.virtual?.enabled;if(i.loop){if(l&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:`prev`}),r._clientLeft=r.wrapperEl.clientLeft}let d=s?r.translate:-r.translate;function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}let p=f(d),m=a.map(e=>f(e)),h=i.freeMode&&i.freeMode.enabled,g=a[m.indexOf(p)-1];if(g===void 0&&(i.cssMode||h)){let e;a.forEach((t,n)=>{p>=t&&(e=n)}),e!==void 0&&(g=h?a[e]:a[e>0?e-1:e])}let _=0;if(g!==void 0&&(_=o.indexOf(g),_<0&&(_=r.activeIndex-1),i.slidesPerView===`auto`&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(_=_-r.slidesPerViewDynamic(`previous`,!0)+1,_=Math.max(_,0))),i.rewind&&r.isBeginning){let i=r.params.virtual?.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(i,e,t,n)}return i.loop&&r.activeIndex===0&&i.cssMode?(requestAnimationFrame(()=>{r.slideTo(_,e,t,n)}),!0):r.slideTo(_,e,t,n)}function Tf(e,t=!0,n){let r=this;if(!r.destroyed)return e===void 0&&(e=r.params.speed),r.slideTo(r.activeIndex,e,t,n)}function Ef(e=0,t,n=!0,r,i){typeof e==`string`&&(e=parseInt(e,10));let a=this,o=e;o<0&&(o=0);let{params:s,snapGrid:c,slidesGrid:l,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:m}=a;if(!m&&!r&&!i||a.destroyed||a.animating&&s.preventInteractionOnTransition)return!1;t===void 0&&(t=a.params.speed);let h=Math.min(a.params.slidesPerGroupSkip,o),g=h+Math.floor((o-h)/a.params.slidesPerGroup);g>=c.length&&(g=c.length-1);let _=-c[g];if(s.normalizeSlideIndex)for(let e=0;e<l.length;e+=1){let t=-Math.floor(_*100),n=Math.floor(l[e]*100),r=Math.floor(l[e+1]*100);l[e+1]===void 0?t>=n&&(o=e):t>=n&&t<r-(r-n)/2?o=e:t>=n&&t<r&&(o=e+1)}if(a.initialized&&o!==d&&(!a.allowSlideNext&&(f?_>a.translate&&_>a.minTranslate():_<a.translate&&_<a.minTranslate())||!a.allowSlidePrev&&_>a.translate&&_>a.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&a.emit(`beforeSlideChangeStart`),a.updateProgress(_);let v;v=o>d?`next`:o<d?`prev`:`reset`;let y=a.virtual&&a.params.virtual?.enabled;if(!(y&&i)&&(f&&-_===a.translate||!f&&_===a.translate))return a.updateActiveIndex(o),s.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),s.effect!==`slide`&&a.setTranslate(_),v!==`reset`&&(a.transitionStart(n,v),a.transitionEnd(n,v)),!1;if(s.cssMode){let e=a.isHorizontal(),n=f?_:-_;return t===0?(y&&(a.wrapperEl.style.scrollSnapType=`none`,a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&(a.params.initialSlide??0)>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?`scrollLeft`:`scrollTop`]=n})):p[e?`scrollLeft`:`scrollTop`]=n,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType=``,a._immediateVirtual=!1})):p.scrollTo({[e?`left`:`top`]:n,behavior:`smooth`}),!0}let b=Id().isSafari;return y&&!i&&b&&a.isElement&&a.virtual.update(!1,!1,o),a.setTransition(t),a.setTranslate(_),a.updateActiveIndex(o),a.updateSlidesClasses(),a.emit(`beforeTransitionStart`,t,r),a.transitionStart(n,v),t===0?a.transitionEnd(n,v):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(n,v))},a.wrapperEl.addEventListener(`transitionend`,a.onSlideToWrapperTransitionEnd)),!0}function Df(){let e=this;if(e.destroyed)return;let{params:t,slidesEl:n,clickedSlide:r,clickedIndex:i}=e;if(r===void 0||i===void 0)return;let a=t.slidesPerView===`auto`?e.slidesPerViewDynamic():t.slidesPerView,o=e.getSlideIndexWhenGrid(i),s,c=e.isElement?`swiper-slide`:`.${t.slideClass}`,l=e.grid&&e.params.grid&&e.params.grid.rows>1;if(t.loop){if(e.animating)return;s=parseInt(r.getAttribute(`data-swiper-slide-index`),10),t.centeredSlides?e.slideToLoop(s):o>(l?(e.slides.length-a)/2-(e.params.grid.rows-1):e.slides.length-a)?(e.loopFix(),o=e.getSlideIndex(sd(n,`${c}[data-swiper-slide-index="${s}"]`)[0]),$u(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}function Of(e,t=!0,n,r=.5){let i=this;if(i.destroyed)return;e===void 0&&(e=i.params.speed);let a=i.activeIndex,o=Math.min(i.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[s]){let e=i.snapGrid[s],t=i.snapGrid[s+1];c-e>(t-e)*r&&(a+=i.params.slidesPerGroup)}else{let e=i.snapGrid[s-1],t=i.snapGrid[s];c-e<=(t-e)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,e,t,n)}function kf(e=0,t,n=!0,r){typeof e==`string`&&(e=parseInt(e,10));let i=this;if(i.destroyed)return;t===void 0&&(t=i.params.speed);let a=i.grid&&i.params.grid&&i.params.grid.rows>1,o=e;if(i.params.loop)if(i.virtual&&i.params.virtual?.enabled)o+=i.virtual.slidesBefore??0;else{let e;
31if(a){let t=o*i.params.grid.rows;e=i.slides.find(e=>Number(e.getAttribute(`data-swiper-slide-index`))===t)?.column??0}else e=i.getSlideIndexByData(o);let t=a?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:n,slidesOffsetBefore:s,slidesOffsetAfter:c}=i.params,l=n||!!s||!!c,u;i.params.slidesPerView===`auto`?u=i.slidesPerViewDynamic():(u=Math.ceil(parseFloat(String(i.params.slidesPerView))),l&&u%2==0&&(u+=1));let d=t-e<u;if(l&&(d||=e<Math.ceil(u/2)),r&&l&&i.params.slidesPerView!==`auto`&&!a&&(d=!1),d){let n=l?e<i.activeIndex?`prev`:`next`:e-i.activeIndex-1<i.params.slidesPerView?`next`:`prev`;i.loopFix({direction:n,slideTo:!0,activeSlideIndex:n===`next`?e+1:e-t+1,slideRealIndex:n===`next`?i.realIndex:void 0})}if(a){let e=o*i.params.grid.rows;o=i.slides.find(t=>Number(t.getAttribute(`data-swiper-slide-index`))===e)?.column??0}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,t,n,r)}),i}var Af={slideTo:Ef,slideToLoop:kf,slideNext:Cf,slidePrev:wf,slideReset:Tf,slideToClosest:Of,slideToClickedSlide:Df};function jf(e,t){let n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=e===0?`0ms`:``),n.emit(`setTransition`,e,t)}function Mf({swiper:e,runCallbacks:t,direction:n,step:r}){let{activeIndex:i,previousIndex:a}=e,o=n;o||=i>a?`next`:i<a?`prev`:`reset`,e.emit(`transition${r}`),t&&o===`reset`?e.emit(`slideResetTransition${r}`):t&&i!==a&&(e.emit(`slideChangeTransition${r}`),o===`next`?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`))}function Nf(e=!0,t){let n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Mf({swiper:n,runCallbacks:e,direction:t,step:`End`}))}function Pf(e=!0,t){let n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Mf({swiper:n,runCallbacks:e,direction:t,step:`Start`}))}var Ff={setTransition:jf,transitionStart:Pf,transitionEnd:Nf};function If(e=this.isHorizontal()?`x`:`y`){let t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:a}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let o=nd(a,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function Lf(){return-this.snapGrid[this.snapGrid.length-1]}function Rf(){return-this.snapGrid[0]}function zf(e,t){let n=this,{rtlTranslate:r,params:i,wrapperEl:a,progress:o}=n,s=0,c=0;n.isHorizontal()?s=r?-e:e:c=e,i.roundLengths&&(s=Math.floor(s),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:c,i.cssMode?a[n.isHorizontal()?`scrollLeft`:`scrollTop`]=n.isHorizontal()?-s:-c:i.virtualTranslate||(n.isHorizontal()?s-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${s}px, ${c}px, 0px)`);let l,u=n.maxTranslate()-n.minTranslate();l=u===0?0:(e-n.minTranslate())/u,l!==o&&n.updateProgress(e),n.emit(`setTranslate`,n.translate,t)}function Bf(e=0,t=this.params.speed,n=!0,r=!0,i){let a=this,{params:o,wrapperEl:s}=a;if(a.animating&&o.preventInteractionOnTransition)return!1;let c=a.minTranslate(),l=a.maxTranslate(),u;if(u=r&&e>c?c:r&&e<l?l:e,a.updateProgress(u),o.cssMode){let e=a.isHorizontal();return t===0?s[e?`scrollLeft`:`scrollTop`]=-u:s.scrollTo({[e?`left`:`top`]:-u,behavior:`smooth`}),!0}return t===0?(a.setTransition(0),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionEnd`))):(a.setTransition(t),a.setTranslate(u),n&&(a.emit(`beforeTransitionStart`,t,i),a.emit(`transitionStart`)),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||=function(e){!a||a.destroyed||e.target===this&&(a.wrapperEl.removeEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,n&&a.emit(`transitionEnd`))},a.wrapperEl.addEventListener(`transitionend`,a.onTranslateToWrapperTransitionEnd))),!0}var Vf={getTranslate:If,setTranslate:zf,minTranslate:Rf,maxTranslate:Lf,translateTo:Bf};function Hf(e){let{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate,i;for(let e=0;e<t.length;e+=1)t[e+1]===void 0?r>=t[e]&&(i=e):r>=t[e]&&r<t[e+1]-(t[e+1]-t[e])/2?i=e:r>=t[e]&&r<t[e+1]&&(i=e+1);return n.normalizeSlideIndex&&(i<0||i===void 0)&&(i=0),i}function Uf(e){let t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:a,realIndex:o,snapIndex:s}=t,c=e,l,u=e=>{let n=t.virtual.slides,r=e-(t.virtual.slidesBefore??0);return r<0&&(r=n.length+r),r>=n.length&&(r-=n.length),r};if(c===void 0&&(c=Hf(t)),r.indexOf(n)>=0)l=r.indexOf(n);else{let e=Math.min(i.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/i.slidesPerGroup)}if(l>=r.length&&(l=r.length-1),c===a&&!t.params.loop){l!==s&&(t.snapIndex=l,t.emit(`snapIndexChange`));return}if(c===a&&t.params.loop&&t.virtual&&t.params.virtual?.enabled){t.realIndex=u(c);return}let d=t.grid&&i.grid&&i.grid.rows>1,f;if(t.virtual&&i.virtual?.enabled)f=i.loop?u(c):c;else if(d){let e=t.slides.find(e=>e.column===c),n=parseInt(e.getAttribute(`data-swiper-slide-index`),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),f=Math.floor(n/i.grid.rows)}else if(t.slides[c]){let e=t.slides[c].getAttribute(`data-swiper-slide-index`);f=e?parseInt(e,10):c}else f=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:f,previousIndex:a,activeIndex:c}),t.initialized&&zd(t),t.emit(`activeIndexChange`),t.emit(`snapIndexChange`),(t.initialized||t.params.runCallbacksOnInit)&&(o!==f&&t.emit(`realIndexChange`),t.emit(`slideChange`))}function Wf(e){let t=this,n=[],r=t.virtual&&t.params.virtual?.enabled,i=0,a;typeof e==`number`?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);let o=e=>r?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if(t.params.slidesPerView!==`auto`&&t.params.slidesPerView>
311)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(a=0;a<Math.ceil(t.params.slidesPerView);a+=1){let e=t.activeIndex+a;if(e>t.slides.length&&!r)break;let i=o(e);i&&n.push(i)}else{let e=o(t.activeIndex);e&&n.push(e)}for(a=0;a<n.length;a+=1)if(n[a]!==void 0){let e=n[a].offsetHeight;i=e>i?e:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function Gf(e,t){let n=this,r=n.params,i=e.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!i&&e.matches&&e.matches(`.${r.slideClass}, swiper-slide`)&&(i=e)});let a=!1,o;if(i){for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===i){a=!0,o=e;break}}if(i&&a)n.clickedSlide=i,n.clickedIndex=n.virtual&&n.params.virtual?.enabled?parseInt(i.getAttribute(`data-swiper-slide-index`),10):o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}function Kf(e){let t=this;if(e===void 0){let n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}let n=t.params,r=t.maxTranslate()-t.minTranslate(),{progress:i,isBeginning:a,isEnd:o}=t,s=t.progressLoop,c=a,l=o;if(r===0)i=0,a=!0,o=!0;else{i=(e-t.minTranslate())/r;let n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||i<=0,o=s||i>=1,n&&(i=0),s&&(i=1)}if(n.loop){let n=t.getSlideIndexByData(0),r=t.getSlideIndexByData(t.slides.length-1),i=t.slidesGrid[n],a=t.slidesGrid[r],o=t.slidesGrid[t.slidesGrid.length-1],c=Math.abs(e);s=c>=i?(c-i)/o:(c+o-a)/o,s>1&&--s}Object.assign(t,{progress:i,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!c&&t.emit(`reachBeginning toEdge`),o&&!l&&t.emit(`reachEnd toEdge`),(c&&!a||l&&!o)&&t.emit(`fromEdge`),t.emit(`progress`,i)}function qf(){let e=this,t,n,r=e.el;t=e.params.width!==void 0&&e.params.width!==null?e.params.width:r.clientWidth,n=e.params.height!==void 0&&e.params.height!==null?e.params.height:r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(md(r,`padding-left`)||`0`,10)-parseInt(md(r,`padding-right`)||`0`,10),n=n-parseInt(md(r,`padding-top`)||`0`,10)-parseInt(md(r,`padding-bottom`)||`0`,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function Jf(){let e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||`0`)}let n=e.params,{wrapperEl:r,slidesEl:i,rtlTranslate:a,wrongRTL:o}=e,s=!!(e.virtual&&n.virtual?.enabled),c=s?e.virtual.slides.length:e.slides.length,l=sd(i,`.${e.params.slideClass}, swiper-slide`),u=s?e.virtual.slides.length:l.length,d=[],f=[],p=[],m=t=>typeof t==`function`?t.call(e):t,h=m(n.slidesOffsetBefore),g=m(n.slidesOffsetAfter),_=e.snapGrid.length,v=e.slidesGrid.length,y=e.size-h-g,b=n.spaceBetween,x=-h,S=0,C=0;if(y===void 0)return;typeof b==`string`&&b.indexOf(`%`)>=0?b=parseFloat(b.replace(`%`,``))/100*y:typeof b==`string`&&(b=parseFloat(b)),e.virtualSize=-b-h-g,l.forEach(e=>{a?e.style.marginLeft=``:e.style.marginRight=``,e.style.marginBottom=``,e.style.marginTop=``}),n.centeredSlides&&n.cssMode&&(od(r,`--swiper-centered-offset-before`,``),od(r,`--swiper-centered-offset-after`,``)),n.cssMode&&(od(r,`--swiper-slides-offset-before`,`${h}px`),od(r,`--swiper-slides-offset-after`,`${g}px`));let w=n.grid&&n.grid.rows>1&&e.grid;w?e.grid.initSlides(l):e.grid&&e.grid.unsetSlides();let T=0,E=n.slidesPerView===`auto`&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>n.breakpoints[e]?.slidesPerView!==void 0).length>0;for(let r=0;r<u;r+=1){T=0;let i=l[r];if(!(i&&(w&&e.grid.updateSlide(r,i,l),md(i,`display`)===`none`))){if(s&&n.slidesPerView===`auto`)n.virtual?.slidesPerViewAutoSlideSize&&(T=n.virtual.slidesPerViewAutoSlideSize),T&&i&&(n.roundLengths&&(T=Math.floor(T)),i.style[e.getDirectionLabel(`width`)]=`${T}px`);else if(n.slidesPerView===`auto`){E&&(i.style[e.getDirectionLabel(`width`)]=``);let r=getComputedStyle(i),a=i.style.transform,o=i.style.webkitTransform;if(a&&(i.style.transform=`none`),o&&(i.style.webkitTransform=`none`),n.roun
31dLengths)T=e.isHorizontal()?_d(i,`width`):_d(i,`height`);else{let e=t(r,`width`),n=t(r,`padding-left`),a=t(r,`padding-right`),o=t(r,`margin-left`),s=t(r,`margin-right`),c=r.getPropertyValue(`box-sizing`);if(c&&c===`border-box`)T=e+o+s;else{let{clientWidth:t,offsetWidth:r}=i;T=e+n+a+o+s+(r-t)}}a&&(i.style.transform=a),o&&(i.style.webkitTransform=o),n.roundLengths&&(T=Math.floor(T))}else T=(y-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(T=Math.floor(T)),i&&(i.style[e.getDirectionLabel(`width`)]=`${T}px`);i&&(i.swiperSlideSize=T),p.push(T),n.centeredSlides?(x=x+T/2+S/2+b,S===0&&r!==0&&(x=x-y/2-b),r===0&&(x=x-y/2-b),Math.abs(x)<1/1e3&&(x=0),n.roundLengths&&(x=Math.floor(x)),C%n.slidesPerGroup===0&&d.push(x),f.push(x)):(n.roundLengths&&(x=Math.floor(x)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&d.push(x),f.push(x),x=x+T+b),e.virtualSize+=T+b,S=T,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,y)+g,a&&o&&(n.effect===`slide`||n.effect===`coverflow`)&&(r.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(r.style[e.getDirectionLabel(`width`)]=`${e.virtualSize+b}px`),w&&e.grid.updateWrapperSize(T,d),!n.centeredSlides){let t=n.slidesPerView!==`auto`&&n.slidesPerView%1!=0,r=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView===`auto`||t),i=d.length;if(r){let e;if(n.slidesPerView===`auto`){e=1;let t=0;for(let n=p.length-1;n>=0&&(t+=p[n]+(n<p.length-1?b:0),t<=y);--n)e=p.length-n}else e=Math.floor(n.slidesPerView);i=Math.max(u-e,0)}let a=[];for(let t=0;t<d.length;t+=1){let o=d[t];n.roundLengths&&(o=Math.floor(o)),r?t<=i&&a.push(o):d[t]<=e.virtualSize-y&&a.push(o)}d=a,Math.floor(e.virtualSize-y)-Math.floor(d[d.length-1])>1&&(r||d.push(e.virtualSize-y))}if(s&&n.loop){let t=p[0]+b,r=(e.virtual.slidesBefore??0)+(e.virtual.slidesAfter??0);if(n.slidesPerGroup>1){let e=Math.ceil(r/n.slidesPerGroup),i=t*n.slidesPerGroup;for(let t=0;t<e;t+=1)d.push(d[d.length-1]+i)}for(let i=0;i<r;i+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(d.length===0&&(d=[0]),b!==0){let t=e.isHorizontal()&&a?`marginLeft`:e.getDirectionLabel(`marginRight`);l.filter((e,t)=>!n.cssMode||n.loop?!0:t!==l.length-1).forEach(e=>{e.style[t]=`${b}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;p.forEach(t=>{e+=t+(b||0)}),e-=b;let t=e>y?e-y:0;d=d.map(e=>e<=0?-h:e>t?t+g:e)}if(n.centerInsufficientSlides){let e=0;if(p.forEach(t=>{e+=t+(b||0)}),e-=b,e<y){let t=(y-e)/2;d.forEach((e,n)=>{d[n]=e-t}),f.forEach((e,n)=>{f[n]=e+t})}}if(Object.assign(e,{slides:l,snapGrid:d,slidesGrid:f,slidesSizesGrid:p}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){od(r,`--swiper-centered-offset-before`,`${-d[0]}px`),od(r,`--swiper-centered-offset-after`,`${e.size/2-p[p.length-1]/2}px`);let t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(u!==c&&e.emit(`slidesLengthChange`),d.length!==_&&(e.params.watchOverflow&&e.checkOverflow(),e.emit(`snapGridLengthChange`)),f.length!==v&&e.emit(`slidesGridLengthChange`),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit(`slidesUpdated`),!s&&!n.cssMode&&(n.effect===`slide`||n.effect===`fade`)){let t=`${n.containerModifierClass}backface-hidden`,r=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?r||e.el.classList.add(t):r&&e.el.classList.remove(t)}}var Yf=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function Xf(){let e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,a=!!(e.virtual&&n.virtual?.enabled),o=e.grid&&n.grid&&n.grid.rows>1,s=e=>sd(r,`.${n.slideClass}${e}, swiper-slide${e}`)[0],c,l,u;if(a)if(n.loop){let t=e.virtual.slides,n=i-(e.virtual.slidesBefore??0);n<0&&(n=t.length+n),n>=t.length&&(n-=t.length),c=s(`[data-swiper-slide-index="${n}"]`)}else c=s(`[data-swiper-slide-index="${i}"]`);else o?(c=t.find(e=>e.column===i),u=t.find(e=>e.column===i+1),l=t.find(e=>e.column===i-1)):c=t[i];c&&(o||(u=pd(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=t[0]),l=fd(c,`.${n.slideClass}, swiper-slide`)[0],n.loop)),t.forEach(e=>{Yf(e,e===c,n.slideActiveClass),Yf(e,e===u,n.slideNextClass),Yf(e,e===l,n.slidePrevClass)}),e.emitSlidesClasses()}
31function Zf(){let e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}var Qf=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};function $f(e=this&&this.translate||0){let t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:a}=t;if(r.length===0)return;r[0].swiperSlideOffset===void 0&&t.updateSlidesOffset();let o=-e;i&&(o=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;typeof s==`string`&&s.indexOf(`%`)>=0?s=parseFloat(s.replace(`%`,``))/100*t.size:typeof s==`string`&&(s=parseFloat(s));for(let e=0;e<r.length;e+=1){let c=r[e],l=c.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(l-=r[0].swiperSlideOffset??0);let u=c.swiperSlideSize??0,d=(o+(n.centeredSlides?t.minTranslate():0)-l)/(u+s),f=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-l)/(u+s),p=-(o-l),m=p+t.slidesSizesGrid[e],h=p>=0&&p<=t.size-t.slidesSizesGrid[e],g=p>=0&&p<t.size-1||m>1&&m<=t.size||p<=0&&m>=t.size;g&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(e)),Qf(c,g,n.slideVisibleClass),Qf(c,h,n.slideFullyVisibleClass),c.progress=i?-d:d,c.originalProgress=i?-f:f}}var ep={eventsEmitter:Zd,update:{updateSize:qf,updateSlides:Jf,updateAutoHeight:Wf,updateSlidesOffset:Zf,updateSlidesProgress:$f,updateProgress:Kf,updateSlidesClasses:Xf,updateActiveIndex:Uf,updateClickedSlide:Gf},translate:Vf,transition:Ff,slide:Af,loop:yf,grabCursor:hf,events:ff,breakpoints:Ud,checkOverflow:Gd,classes:Yd},tp={},np=class e{static extendedDefaults;static defaults;constructor(...t){let n,r;if(t.length===1&&t[0]!==null&&typeof t[0]==`object`&&Object.prototype.toString.call(t[0]).slice(8,-1)===`Object`?r=t[0]:[n,r]=t,r||={}
31,r=ad({},r),n&&!r.el&&(r.el=n),r.el&&typeof r.el==`string`&&typeof document<`u`&&document.querySelectorAll(r.el).length>1){let t=[];return document.querySelectorAll(r.el).forEach(n=>{let i=ad({},r,{el:n});t.push(new e(i))}),t}let i=this;i.__swiper__=!0,i.support=Ad(),i.device=Nd({userAgent:r.userAgent??void 0}),i.browser=Id(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],r.modules&&Array.isArray(r.modules)&&r.modules.forEach(e=>{let t=e;typeof t==`function`&&i.modules.indexOf(t)<0&&i.modules.push(t)});let a={};if(i.modules.forEach(e=>{e({params:r,swiper:i,extendParams:bf(r,a),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})}),i.params=ad({},ad({},Xd,a),tp,r),i.originalParams=ad({},i.params),i.passedParams=ad({},r),i.params&&i.params.on){let e=i.params.on;Object.keys(e).forEach(t=>{let n=e[t];n&&i.on(t,n)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction===`horizontal`},isVertical(){return i.params.direction===`vertical`},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit(`_swiper`),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:`height`,"margin-top":`margin-left`,"margin-bottom ":`margin-right`,"margin-left":`margin-top`,"margin-right":`margin-bottom`,"padding-left":`padding-top`,"padding-right":`padding-bottom`,marginRight:`marginBottom`}[e]}isHorizontal(){return this.params.direction===`horizontal`}isVertical(){return this.params.direction===`vertical`}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){let{slidesEl:t,params:n}=this,r=hd(sd(t,`.${n.slideClass}, swiper-slide`)[0]);return hd(e)-(r??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>Number(t.getAttribute(`data-swiper-slide-index`))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill===`column`?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill===`row`&&(e%=Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){let{slidesEl:e,params:t}=this;this.slides=sd(e,`.${t.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit(`enable`))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit(`disable`))}setProgress(e,t){e=Math.min(Math.max(e,0),1);let n=this.minTranslate(),r=(this.maxTranslate()-n)*e+n;this.translateTo(r,t===void 0?0:t),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;let e=this.el.className.split(` `).filter(e=>e.indexOf(`swiper`)===0||e.indexOf(this.params.containerModifierClass)===0);this.emit(`_containerClasses`,e.join(` `))}getSlideClasses(e){return this.destroyed?``:e.className.split(` `).filter(e=>e.indexOf(`swiper-slide`)===0||e.indexOf(this.params.slideClass)===0).join(` `)}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;let e=[];this.slides.forEach(t=>{let n=this.getSlideClasses(t);e.push({slideEl:t,classNames:n}),this.emit(`_slideClass`,t,n)}),this.emit(`_slideClasses`,e)}slidesPerViewDynamic(e=`current`,t=!1){let{params:n,slides:r,slidesGrid:i,slidesSizesGrid:a,size:o,activeIndex:s}=this,c=1;if(typeof n.slidesPerView==`number`)return n.slidesPerView;if(!o)return c;
31if(n.centeredSlides){let e=r[s]?Math.ceil(r[s].swiperSlideSize??0):0,t=!1;for(let n=s+1;n<r.length;n+=1)r[n]&&!t&&(e+=Math.ceil(r[n].swiperSlideSize??0),c+=1,e>o&&(t=!0));for(let n=s-1;n>=0;--n)r[n]&&!t&&(e+=r[n].swiperSlideSize??0,c+=1,e>o&&(t=!0))}else if(e===`current`)for(let e=s+1;e<r.length;e+=1)(t?i[e]+a[e]-i[s]<o:i[e]-i[s]<o)&&(c+=1);else for(let e=s-1;e>=0;--e)i[s]-i[e]<o&&(c+=1);return c}update(){let e=this;if(!e||e.destroyed)return;let{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll(`[loading="lazy"]`)].forEach(t=>{t.complete&&Ld(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){let t=e.rtlTranslate?e.translate*-1:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let i;if(n.freeMode?.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView===`auto`||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){let t=e.virtual&&n.virtual?.enabled?e.virtual.slides.length:e.slides.length;i=e.slideTo(t-1,0,!1,!0)}else i=e.slideTo(e.activeIndex,0,!1,!0);i||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit(`update`)}changeDirection(e,t=!0){let n=this,r=n.params.direction;return e||=r===`horizontal`?`vertical`:`horizontal`,e===r||e!==`horizontal`&&e!==`vertical`?n:(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(t=>{e===`vertical`?t.style.width=``:t.style.height=``}),n.emit(`changeDirection`),t&&n.update(),n)}changeLanguageDirection(e){let t=this;t.rtl&&e===`rtl`||!t.rtl&&e===`ltr`||(t.rtl=e===`rtl`,t.rtlTranslate=t.params.direction===`horizontal`&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir=`rtl`):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir=`ltr`),t.update())}mount(e){let t=this;if(t.mounted)return!0;if(typeof document>`u`)return!1;let n=e??t.params.el,r=null;if(typeof n==`string`?r=document.querySelector(n):n instanceof HTMLElement&&(r=n),!r)return!1;r.swiper=t;let i=r.parentNode;i&&i.host&&i.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);let a=()=>`.${(t.params.wrapperClass||``).trim().split(` `).join(`.`)}`,o=r&&r.shadowRoot?r.shadowRoot.querySelector(a()):sd(r,a())[0];!o&&t.params.createElements&&(o=dd(`div`,t.params.wrapperClass),r.append(o),sd(r,`.${t.params.slideClass}`).forEach(e=>{o.append(e)}));let s=t.isElement?r.parentNode.host:null;return Object.assign(t,{el:r,wrapperEl:o,slidesEl:t.isElement&&!s.slideSlots?s:o,hostEl:t.isElement?s:r,mounted:!0,rtl:r.dir.toLowerCase()===`rtl`||md(r,`direction`)===`rtl`,rtlTranslate:t.params.direction===`horizontal`&&(r.dir.toLowerCase()===`rtl`||md(r,`direction`)===`rtl`),wrongRTL:md(o,`display`)===`-webkit-box`}),!0}init(e){let t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit(`beforeInit`),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual?.enabled?t.slideTo((t.params.initialSlide??0)+(t.virtual.slidesBefore??0),0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();let n=[...t.el.querySelectorAll(`[loading="lazy"]`)];return t.isElement&&n.push(...t.hostEl.querySelectorAll(`[loading="lazy"]`)),n.forEac
31h(e=>{e.complete?Ld(t,e):e.addEventListener(`load`,e=>{Ld(t,e.target)})}),zd(t),t.initialized=!0,zd(t),t.emit(`init`),t.emit(`afterInit`),t}destroy(e=!0,t=!0){let n=this,{params:r,el:i,wrapperEl:a,slides:o}=n;return n.params===void 0||n.destroyed?null:(n.emit(`beforeDestroy`),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i&&typeof i!=`string`&&i.removeAttribute(`style`),a&&a.removeAttribute(`style`),o&&o.length&&o.forEach(e=>{e.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),e.removeAttribute(`style`),e.removeAttribute(`data-swiper-slide-index`)})),n.emit(`destroy`),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),e!==!1&&(n.el&&typeof n.el!=`string`&&(n.el.swiper=null),Qu(n)),n.destroyed=!0,null)}static extendDefaults(e){ad(tp,e)}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);let n=e.prototype.__modules__;typeof t==`function`&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>e.installModule(t)),e):(e.installModule(t),e)}};Object.defineProperty(np,"extendedDefaults",{get(){return tp}}),Object.defineProperty(np,"defaults",{get(){return Xd}});var rp=ep,ip=np.prototype;
31Object.keys(rp).forEach(e=>{let t=rp[e];Object.keys(t).forEach(e=>{ip[e]=t[e]})}),np.use([Sf,xf]);function ap(e,t,n,r,i){let a=[];if(!t)return a;let o=e=>{a.indexOf(e)<0&&a.push(e)};if(n&&r){let e=r.map(i),t=n.map(i);e.join(``)!==t.join(``)&&o(`children`),r.length!==n.length&&o(`children`)}return bd.filter(e=>e[0]===`_`).map(e=>e.replace(/_/,``)).forEach(n=>{if(n in e&&n in t){let r=e[n],i=t[n];if(Z(r)&&Z(i)){let e=Object.keys(r),t=Object.keys(i);e.length===t.length?(e.forEach(e=>{r[e]!==i[e]&&o(n)}),t.forEach(e=>{r[e]!==i[e]&&o(n)})):o(n)}else r!==i&&o(n)}}),a}function op(e={},t=!0){let n={on:{}},r={},i={};xd(n,Xd),n._emitClasses=!0,n.init=!1;let a={},o=bd.map(e=>e.replace(/_/,``)),s={...e};return Object.keys(s).forEach(s=>{let c=e[s];if(c!==void 0)if(o.indexOf(s)>=0)Z(c)?(n[s]={},i[s]={},xd(n[s],c),xd(i[s],c)):(n[s]=c,i[s]=c);else if(s.search(/on[A-Z]/)===0&&typeof c==`function`){let e=`${s[2].toLowerCase()}${s.substring(3)}`,i=c;t?r[e]=i:n.on[e]=i}else a[s]=c}),[`navigation`,`pagination`,`scrollbar`].forEach(e=>{n[e]===!0&&(n[e]={}),n[e]===!1&&delete n[e]}),{params:n,passedParams:i,rest:a,events:r}}function sp(e,t){let{el:n,nextEl:r,prevEl:i,paginationEl:a,scrollbarEl:o,swiper:s}=e;if(Sd(t)&&r&&i){let e=s.params.navigation,t=s.originalParams.navigation;e.nextEl=r,t.nextEl=r,e.prevEl=i,t.prevEl=i}Cd(t)&&a&&(s.params.pagination.el=a,s.originalParams.pagination.el=a),wd(t)&&o&&(s.params.scrollbar.el=o,s.originalParams.scrollbar.el=o),s.init(n)}var cp=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.emit(`_virtualUpdated`),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate?.())},lp=(0,S.createContext)(null),up=(0,S.createContext)(null);function dp(e){return typeof e==`object`&&!!e&&`type`in e&&`props`in e}function fp(e){if(!dp(e))return!1;let{type:t}=e;if(typeof t!=`function`&&typeof t!=`object`)return!1;let n=t.displayName;return!!n&&n.includes(`SwiperSlide`)}function pp(e){let t=[];return S.Children.toArray(e).forEach(e=>{fp(e)?t.push(e):dp(e)&&e.props&&e.props.children&&pp(e.props.children).forEach(e=>t.push(e))}),t}function mp(e){let t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return S.Children.toArray(e).forEach(e=>{if(fp(e))t.push(e);else if(dp(e)&&e.props&&e.props.slot&&e.props.slot in n)n[e.props.slot].push(e);else if(dp(e)&&e.props&&e.props.children){let r=pp(e.props.children);r.length>0?r.forEach(e=>t.push(e)):n[`container-end`].push(e)}else dp(e)&&n[`container-end`].push(e)}),{slides:t,slots:n}}function hp(e,t){return typeof window>`u`?(0,S.useEffect)(e,t):(0,S.useLayoutEffect)(e,t)}function gp(e,t,n){if(!n||!e)return null;let r=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},i=e.isHorizontal()?{[e.rtlTranslate?`right`:`left`]:`${n.offset}px`}:{top:`${n.offset}px`},{from:a,to:o}=n,s=e.params.loop?-t.length:0,c=e.params.loop?t.length*2:t.length,l=[];for(let e=s;e<c;e+=1)if(e>=a&&e<=o){let n=t[r(e)];n&&l.push(n)}return l.map((t,n)=>{let r=t.props.virtualIndex;return S.cloneElement(t,{swiper:e,style:i,key:r||t.key||`slide-${n}`})})}var _p=(0,S.forwardRef)(function(e,t){let{className:n,tag:r=`div`,wrapperTag:i=`div`,children:a,onSwiper:o,...s}=e??{},c=!1,[l,u]=(0,S.useState)(`swiper`),[d,f]=(0,S.useState)(null),[p,m]=(0,S.useState)(!1),h=(0,S.useRef)(!1),g=(0,S.useRef)(null),_=(0,S.useRef)(null),v=(0,S.useRef)(null),y=(0,S.useRef)(null),b=(0,S.useRef)(null),x=(0,S.useRef)(null),C=(0,S.useRef)(null),w=(0,S.useRef)(null),{params:T,passedParams:E,rest:D,events:O}=op(s),{slides:k,slots:A}=mp(a),j=()=>{m(!p)};Object.assign(T.on,{_containerClasses(e,t){u(t)}});let ee=()=>{Object.assign(T.on,O),c=!0;let e={...T};delete e.wrapperClass,_.current=new np(e);let t=_.current;if(t.virtual&&t.params.virtual?.enabled){t.virtual.slides=k;let e={cache:!1,slides:k,renderExternal:f,renderExternalUpdate:!1};xd(t.params.virtual,e),t.originalParams.virtual&&xd(t.originalParams.virtual,e)}};g.current||ee(),_.current&&_.current.on(`_beforeBreakpoint`,j);let M=()=>
31{c||!O||!_.current||Object.keys(O).forEach(e=>{_.current.on(e,O[e])})},te=()=>{!O||!_.current||Object.keys(O).forEach(e=>{_.current.off(e,O[e])})};(0,S.useEffect)(()=>()=>{_.current&&_.current.off(`_beforeBreakpoint`,j)}),(0,S.useEffect)(()=>{!h.current&&_.current&&(_.current.emitSlidesClasses(),h.current=!0)}),hp(()=>{if(t&&(typeof t==`function`?t(g.current):t.current=g.current),g.current)return _.current&&_.current.destroyed&&ee(),sp({el:g.current,nextEl:b.current,prevEl:x.current,paginationEl:C.current,scrollbarEl:w.current,swiper:_.current},T),o&&_.current&&!_.current.destroyed&&o(_.current),()=>{_.current&&!_.current.destroyed&&_.current.destroy(!0,!1)}},[]),hp(()=>{M();let e=ap(E,v.current,k,y.current,e=>e.key);return v.current=E,y.current=k,e.length&&_.current&&!_.current.destroyed&&Dd({swiper:_.current,slides:k,passedParams:E,changedParams:e,nextEl:b.current,prevEl:x.current,scrollbarEl:w.current,paginationEl:C.current}),()=>{te()}}),hp(()=>{cp(_.current)},[d]);function ne(){return T.virtual?gp(_.current,k,d):k.map((e,t)=>S.cloneElement(e,{swiper:_.current,swiperSlideIndex:t}))}let N=r,P=i;return S.createElement(N,{ref:g,className:Td(`${l}${n?` ${n}`:``}`),...D},S.createElement(up.Provider,{value:_.current},A[`container-start`],S.createElement(P,{className:Ed(T.wrapperClass)},A[`wrapper-start`],ne(),A[`wrapper-end`]),Sd(T)&&S.createElement(S.Fragment,null,S.createElement(`div`,{ref:x,className:`swiper-button-prev`}),S.createElement(`div`,{ref:b,className:`swiper-button-next`})),wd(T)&&S.createElement(`div`,{ref:w,className:`swiper-scrollbar`}),Cd(T)&&S.createElement(`div`,{ref:C,className:`swiper-pagination`}),A[`container-end`]))});_p.displayName=`Swiper`;var vp=(0,S.forwardRef)(function(e,t){let{tag:n=`div`,children:r,className:i=``,swiper:a,zoom:o,lazy:s,virtualIndex:c,swiperSlideIndex:l,...u}=e,d=(0,S.useRef)(null),[f,p]=(0,S.useState)(`swiper-slide`),[m,h]=(0,S.useState)(!1);function g(e,t,n){t===d.current&&p(n)}hp(()=>{if(l!==void 0&&d.current&&(d.current.swiperSlideIndex=l),t&&(typeof t==`function`?t(d.current):t.current=d.current),!(!d.current||!a)){if(a.destroyed){f!==`swiper-slide`&&p(`swiper-slide`);return}return a.on(`_slideClass`,g),()=>{a&&a.off(`_slideClass`,g)}}}),hp(()=>{a&&d.current&&!a.destroyed&&p(a.getSlideClasses(d.current))},[a]);let _={isActive:f.indexOf(`swiper-slide-active`)>=0,isVisible:f.indexOf(`swiper-slide-visible`)>=0,isFullyVisible:f.indexOf(`swiper-slide-fully-visible`)>=0,isPrev:f.indexOf(`swiper-slide-prev`)>=0,isNext:f.indexOf(`swiper-slide-next`)>=0},v=()=>typeof r==`function`?r(_):r,y=()=>{h(!0)},b=e=>{e&&(e.lazyPreloaderManaged=!0)},x=n;return S.createElement(x,{ref:d,className:Td(`${f}${i?` ${i}`:``}`),"data-swiper-slide-index":c,onLoad:y,...u},o&&S.createElement(lp.Provider,{value:_},S.createElement(`div`,{className:`swiper-zoom-container`,"data-swiper-zoom":typeof o==`number`?o:void 0},v(),s&&!m&&S.createElement(`div`,{className:`swiper-lazy-preloader`,ref:b}))),!o&&S.createElement(lp.Provider,{value:_},v(),s&&!m&&S.createElement(`div`,{className:`swiper-lazy-preloader`,ref:b})))});vp.displayName=`SwiperSlide`;function yp(e,t,n,r){let i=n??{},a=t??{};return e.params.createElements&&Object.keys(r).forEach(t=>{if(!i[t]&&i.auto===!0){let n=sd(e.el,`.${r[t]}`)[0];n||(n=dd(`div`,r[t]),n.className=r[t],e.el.append(n)),i[t]=n,a[t]=n}}),i}var bp=`<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>`,xp=({swiper:e,extendParams:t,on:n,emit:r})=>{t({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:`swiper-button-disabled`,hiddenClass:`swiper-button-hidden`,lockClass:`swiper-button-lock`,navigationDisabledClass:`swiper-navigation-disabled`}}),e.navigation={nextEl:null,prevEl:null,arrowSvg:bp};function i(){return e.params.navigation}function a(t){let n;return t&&typeof t==`string`&&e.isElement&&(n=e.el.querySelector(t)||e.hostEl.querySelector(t),n)?n:(t&&(typeof t==`string`&&(n=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&typeof t==`string`&&n&&n.length>1&&e.el.querySelectorAll(t).length===1?n=e.el.querySelector(t):n&&n.length===1&&(n=n[0])),t&&!n?t:n)}function o(t,n){let r=i();vd(t).forEach(t=>{t&&(t.classList[n?`add`:`remove`](...r.disabledClass.split(` `)),t.tagName===`BUTTON`&&(t.disabled=n),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](r.lockClass))})}function s(){let{nextEl:t,prevEl:n}=e.navigation;if(e.params.loop){o(n,!1),o(t,!1);return}o(n,e.isBeginning&&!e.params.rewind),o(t,e.isEnd&&!e.params.rewind)}function c(t){t.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r(`navigationPrev`))}function l(t){t.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r(`navigationNext`))}function u(){e.params.navigation=yp(e,e.originalParams.navigation,e.params.navigation,{nextEl:`swiper-button-next`,prevEl:`swiper-button-prev`});let t=i();if(!(t.nextEl||t.prevEl))return;let n=a(t.nextEl),r=a(t.prevEl);Object.assign(e.navigation,{nextEl:n,prevEl:r});let o=vd(n),s=vd(r),u=(n,r)=>{if(n){if(t.addIcons&&n.matches(`.swiper-button-next,.swiper-button-prev`)&&!n.querySelector(`svg`)){let e=document.createElement(`div`);yd(e,bp);let t=e.querySelector(`svg`);t&&n.appendChild(t),e.remove()}n.addEventListener(`click`,r===`next`?l:c)}!e.enabled&&n&&n.classList.add(...t.lockClass.split(` `))};
31o.forEach(e=>u(e,`next`)),s.forEach(e=>u(e,`prev`))}function d(){let t=i(),{nextEl:n,prevEl:r}=e.navigation,a=vd(n),o=vd(r),s=(e,n)=>{e.removeEventListener(`click`,n===`next`?l:c),e.classList.remove(...t.disabledClass.split(` `))};a.forEach(e=>s(e,`next`)),o.forEach(e=>s(e,`prev`))}n(`init`,()=>{i().enabled===!1?p():(u(),s())}),n(`toEdge fromEdge lock unlock`,()=>{s()}),n(`destroy`,()=>{d()}),n(`enable disable`,()=>{let t=i(),{nextEl:n,prevEl:r}=e.navigation,a=vd(n),o=vd(r);if(e.enabled){s();return}[...a,...o].filter(e=>!!e).forEach(e=>e.classList.add(t.lockClass))}),n(`click`,(t,n)=>{let a=i(),{nextEl:o,prevEl:s}=e.navigation,c=vd(o),l=vd(s),u=n.target,d=l.includes(u)||c.includes(u);if(e.isElement&&!d){let e=n.composedPath?n.composedPath():[];e.length&&(d=e.find(e=>c.includes(e)||l.includes(e)))}if(a.hideOnClick&&!d){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===u||e.pagination.el.contains(u)))return;let t;c.length?t=c[0].classList.contains(a.hiddenClass):l.length&&(t=l[0].classList.contains(a.hiddenClass)),r(t===!0?`navigationShow`:`navigationHide`),[...c,...l].filter(e=>!!e).forEach(e=>e.classList.toggle(a.hiddenClass))}});let f=()=>{let t=i();e.el.classList.remove(...t.navigationDisabledClass.split(` `)),u(),s()},p=()=>{let t=i();e.el.classList.add(...t.navigationDisabledClass.split(` `)),d()};Object.assign(e.navigation,{enable:f,disable:p,update:s,init:u,destroy:d})};function Sp(e=``){return`.${e.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,`\\$1`).replace(/ /g,`.`)}`}var Cp=e=>!!e.virtual&&!!e.params.virtual?.enabled,wp=e=>!!e.params.freeMode?.enabled,Tp=e=>{if(Cp(e))return e.virtual.slides.length;let t=e.params.grid?.rows;return e.grid&&t&&t>1?e.slides.length/Math.ceil(t):e.slides.length},Ep=({swiper:e,extendParams:t,on:n,emit:r})=>{let i=`swiper-pagination`;t({pagination:{el:null,bulletElement:`span`,clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:`bullets`,dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),e.pagination={el:null,bullets:[]};let a,o=0;function s(){return e.params.pagination}function c(){return!s().el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function l(e,t){let{bulletActiveClass:n}=s();if(!e)return;let r=e[`${t===`prev`?`previous`:`next`}ElementSibling`];r&&(r.classList.add(`${n}-${t}`),r=r[`${t===`prev`?`previous`:`next`}ElementSibling`],r&&r.classList.add(`${n}-${t}-${t}`))}function u(e,t,n){if(e%=n,t%=n,t===e+1)return`next`;if(t===e-1)return`previous`}function d(t){let n=t.target.closest(Sp(s().bulletClass));if(!n)return;t.preventDefault();let r=(hd(n)??0)*(e.params.slidesPerGroup??1);if(e.params.loop){if(e.realIndex===r)return;let t=u(e.realIndex,r,e.slides.length);t===`next`?e.slideNext():t===`previous`?e.slidePrev():e.slideToLoop(r)}else e.slideTo(r)}function f(){let t=e.rtl,n=s();if(c())return;let i=vd(e.pagination.el),u,d,f=Tp(e),p=e.params.loop?Math.ceil(f/(e.params.slidesPerGroup??1)):e.snapGrid.length;if(e.params.loop?(d=e.previousRealIndex||0,u=(e.params.slidesPerGroup??1)>1?Math.floor(e.realIndex/(e.params.slidesPerGroup??1)):e.realIndex):e.snapIndex===void 0?(d=e.previousIndex||0,u=e.activeIndex||0):(u=e.snapIndex,d=e.previousSnapIndex),n.type===`bullets`&&e.pagination.bullets&&e.pagination.bullets.length>0){let r=e.pagination.bullets,s=0,c=0,f=0;if(n.dynamicBullets){a=_d(r[0],e.isHorizontal()?`width`:`height`);let t=e.isHorizontal()?`width`:`height`;i.forEach(e=>{e.style[t]=`${(a??0)*(n.dynamicMainBullets+4)}px`}),n.dynamicMainBullets>1&&d!==void 0&&(o+=u-(d||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),s=Math.max(u-o,0),c=s+(Math.min(r.length,n.dynamicMainBullets)-1),f=(c+s)/2}
31if(r.forEach(e=>{let t=[``,`-next`,`-next-next`,`-prev`,`-prev-prev`,`-main`].map(e=>`${n.bulletActiveClass}${e}`).flatMap(e=>typeof e==`string`&&e.includes(` `)?e.split(` `):[e]);e.classList.remove(...t)}),i.length>1)r.forEach(t=>{let r=hd(t);r===u?t.classList.add(...n.bulletActiveClass.split(` `)):e.isElement&&t.setAttribute(`part`,`bullet`),n.dynamicBullets&&r!==void 0&&(r>=s&&r<=c&&t.classList.add(...`${n.bulletActiveClass}-main`.split(` `)),r===s&&l(t,`prev`),r===c&&l(t,`next`))});else{let t=r[u];if(t&&t.classList.add(...n.bulletActiveClass.split(` `)),e.isElement&&r.forEach((e,t)=>{e.setAttribute(`part`,t===u?`bullet-active`:`bullet`)}),n.dynamicBullets){let e=r[s],t=r[c];for(let e=s;e<=c;e+=1)r[e]&&r[e].classList.add(...`${n.bulletActiveClass}-main`.split(` `));l(e,`prev`),l(t,`next`)}}if(n.dynamicBullets){let i=Math.min(r.length,n.dynamicMainBullets+4),o=((a??0)*i-(a??0))/2-f*(a??0),s=t?`right`:`left`,c=e.isHorizontal()?s:`top`;r.forEach(e=>{e.style[c]=`${o}px`})}}i.forEach((t,i)=>{if(n.type===`fraction`&&(t.querySelectorAll(Sp(n.currentClass)).forEach(e=>{e.textContent=String(n.formatFractionCurrent(u+1))}),t.querySelectorAll(Sp(n.totalClass)).forEach(e=>{e.textContent=String(n.formatFractionTotal(p))})),n.type===`progressbar`){let r;r=n.progressbarOpposite?e.isHorizontal()?`vertical`:`horizontal`:e.isHorizontal()?`horizontal`:`vertical`;let i=(u+1)/p,a=1,o=1;r===`horizontal`?a=i:o=i,t.querySelectorAll(Sp(n.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}n.type===`custom`&&n.renderCustom?(yd(t,n.renderCustom(e,u+1,p)),i===0&&r(`paginationRender`,t)):(i===0&&r(`paginationRender`,t),r(`paginationUpdate`,t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?`add`:`remove`](n.lockClass)})}function p(){let t=s();if(c())return;let n=Tp(e),i=vd(e.pagination.el),a=``;if(t.type===`bullets`){let r=e.params.loop?Math.ceil(n/(e.params.slidesPerGroup??1)):e.snapGrid.length;e.params.freeMode&&wp(e)&&r>n&&(r=n);for(let n=0;n<r;n+=1)t.renderBullet?a+=t.renderBullet.call(e,n,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?`part="bullet"`:``} class="${t.bulletClass}"></${t.bulletElement}>`}t.type===`fraction`&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),t.type===`progressbar`&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],i.forEach(n=>{t.type!==`custom`&&yd(n,a||``),t.type===`bullets`&&e.pagination.bullets.push(...Array.from(n.querySelectorAll(Sp(t.bulletClass))))}),t.type!==`custom`&&r(`paginationRender`,i[0])}function m(){e.params.pagination=yp(e,e.originalParams.pagination,e.params.pagination,{el:`swiper-pagination`});let t=s();if(!t.el)return;let n;if(typeof t.el==`string`&&e.isElement&&(n=e.el.querySelector(t.el)),!n&&typeof t.el==`string`&&(n=[...document.querySelectorAll(t.el)]),n||=t.el,!(!n||Array.isArray(n)&&n.length===0)){if(e.params.uniqueNavElements&&typeof t.el==`string`&&Array.isArray(n)&&n.length>1&&(n=[...e.el.querySelectorAll(t.el)],n.length>1)){let t=n.find(t=>gd(t,`.swiper`)[0]===e.el);t&&(n=t)}Array.isArray(n)&&n.length===1&&(n=n[0]),Object.assign(e.pagination,{el:n}),vd(n).forEach(n=>{t.type===`bullets`&&t.clickable&&n.classList.add(...(t.clickableClass||``).split(` `)),n.classList.add(t.modifierClass+t.type),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.type===`bullets`&&t.dynamicBullets&&(n.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),t.type===`progressbar`&&t.progressbarOpposite&&n.classList.add(t.progressbarOppositeClass),t.clickable&&n.addEventListener(`click`,d),e.enabled||n.classList.add(t.lockClass)})}}function h(){let t=s();if(c())return;let n=e.pagination.el;n&&vd(n).forEach(n=>{n.classList.remove(t.hiddenClass),n.classList.remove(t.modifierClass+t.type),n.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(n.classList.remove(...(t.clickableClass||``).split(` `)),n.removeEventListener(`click`,d))}
31),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(` `)))}n(`changeDirection`,()=>{if(!e.pagination||!e.pagination.el)return;let t=s();vd(e.pagination.el).forEach(n=>{n.classList.remove(t.horizontalClass,t.verticalClass),n.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),n(`init`,()=>{s().enabled===!1?_():(m(),p(),f())}),n(`activeIndexChange`,()=>{e.snapIndex===void 0&&f()}),n(`snapIndexChange`,()=>{f()}),n(`snapGridLengthChange`,()=>{p(),f()}),n(`destroy`,()=>{h()}),n(`enable disable`,()=>{let{el:t}=e.pagination;if(t){let n=s();vd(t).forEach(t=>t.classList[e.enabled?`remove`:`add`](n.lockClass))}}),n(`lock unlock`,()=>{f()}),n(`click`,(t,n)=>{let i=n.target,a=vd(e.pagination.el),o=s();if(o.el&&o.hideOnClick&&a&&a.length>0&&!i.classList.contains(o.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&i===e.navigation.nextEl||e.navigation.prevEl&&i===e.navigation.prevEl))return;a[0].classList.contains(o.hiddenClass)===!0?r(`paginationShow`):r(`paginationHide`),a.forEach(e=>e.classList.toggle(o.hiddenClass))}});let g=()=>{let t=s();e.el.classList.remove(t.paginationDisabledClass);let{el:n}=e.pagination;n&&vd(n).forEach(e=>e.classList.remove(t.paginationDisabledClass)),m(),p(),f()},_=()=>{let t=s();e.el.classList.add(t.paginationDisabledClass);let{el:n}=e.pagination;n&&vd(n).forEach(e=>e.classList.add(t.paginationDisabledClass)),h()};Object.assign(e.pagination,{enable:g,disable:_,render:p,update:f,init:m,destroy:h})},Dp=({swiper:e,extendParams:t,on:n,emit:r,params:i})=>{e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function a(){return e.params.autoplay}let o=typeof i.autoplay==`object`&&i.autoplay&&typeof i.autoplay.delay==`number`?i.autoplay.delay:3e3,s,c,l=o,u=o,d=0,f=new Date().getTime(),p=!1,m=!1,h=!1,g,_=!1,v=!1;function y(t){if(!e||e.destroyed||!e.wrapperEl||t.target!==e.wrapperEl)return;e.wrapperEl.removeEventListener(`transitionend`,y);let n=t.detail;v||n&&n.bySwiperTouchMove||D()}let b=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?p=!0:p&&=(u=d,!1);let t=e.autoplay.paused?d:f+u-new Date().getTime();e.autoplay.timeLeft=t,r(`autoplayTimeLeft`,t,t/l),c=requestAnimationFrame(()=>{b()})},x=()=>{let t,n=!!e.params.virtual?.enabled;if(t=e.virtual&&n?e.slides.find(e=>e.classList.contains(`swiper-slide-active`)):e.slides[e.activeIndex],!t)return;let r=t.getAttribute(`data-swiper-autoplay`);if(r!=null)return parseInt(r,10)},S=()=>{let e=a().delay,t=x();return typeof t==`number`&&!Number.isNaN(t)&&t>0&&(e=t),e},C=t=>{if(e.destroyed||!e.autoplay.running)return 0;c!==void 0&&cancelAnimationFrame(c),b();let n=t;n===void 0&&(n=S(),l=n,u=n),d=n;let i=e.params.speed,o=()=>{if(!e||e.destroyed)return;let t=a();t.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(i,!0,!0),r(`autoplay`)):t.stopOnLastSlide||(e.slideTo(e.slides.length-1,i,!0,!0),r(`autoplay`)):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(i,!0,!0),r(`autoplay`)):t.stopOnLastSlide||(e.slideTo(0,i,!0,!0),r(`autoplay`)),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{C()}))};return n>0?(s!==void 0&&clearTimeout(s),s=setTimeout(()=>{o()},n)):requestAnimationFrame(()=>{o()}),n},w=()=>(f=new Date().getTime(),e.autoplay.running=!0,C(),r(`autoplayStart`),!0),T=()=>(e.autoplay.running=!1,s!==void 0&&clearTimeout(s),c!==void 0&&cancelAnimationFrame(c),r(`autoplayStop`),!0),E=(t,n)=>{if(e.destroyed||!e.autoplay.running)return;s!==void 0&&clearTimeout(s),t||(_=!0);let i=()=>{r(`autoplayPause`),a().waitForTransition?e.wrapperEl.addEventListener(`transitionend`,y):D()};if(e.autoplay.paused=!0,n){i();return}d=(d||a().delay)-(new Date().getTime()-f),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),i())},D=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),_?(_=!1,C(d)):C(),e.autoplay.paused=!1,r(`autoplayResume`))},O=()=>{e.destroyed||!e.autoplay.running||(document.visibilityState===`hidden`&&(_=!0,E(!0)),document.visibilityState===`visible`&&D())},k=t=>{t.pointerType===`mouse`&&(_=!0,v=!0,!(e.animating||e.autoplay.paused)&&E(!0))},A=t=>{t.pointerType===`mouse`&&(v=!1,e.autoplay.paused&&D())},j=()=>{a().pauseOnMouseEnter&&(e.el.addEventListener(`pointerenter`,k),e.el.addEventListener(`pointerleave`,A))},ee=()=>{e.el&&typeof e.el!=`string`&&(e.el.removeEventListener(`pointerenter`,k),e.el.removeEventListener(`pointerleave`,A))},M=()=>{document.addEventListener(`visibilitychange`,O)},te=()=>{document.removeEventListener(`visibilitychange`,O)};n(`init`,()=>{a().enabled&&(j(),M(),w())}),n(`destroy`,()=>{ee(),te(),e.autoplay.running&&T()}),n(`_freeModeStaticRelease`,()=>{(h||_)&&D()}),n(`_freeModeNoMomentumRelease`,()=>{a().disableOnInteraction?T():E(!0,!0)}),n(`beforeTransitionStart`,(t,n,r)=>{e.destroyed||!e.autoplay.running||(r||!a().disableOnInteraction?E(!0,!0):T())}),n(`sliderFirstMove`,()=>{if(!(e.destroyed||!e.autoplay.running)){if(a().disableOnInteraction){T();return}m=!0,h=!1,_=!1,g=setTimeout(()=>{_=!0,h=!0,E(!0)},200)}}),n(`touchEnd`,()=>{if(!(e.destroyed||!e.autoplay.running||!m)){if(g!==void 0&&clearTimeout(g),s!==void 0&&clearTimeout(s),a().disableOnInteraction){h=!1,m=!1;return}h&&e.params.cssMode&&D(),h=!1,m=!1}}),n(`slideChange`,()=>{e.destroyed||!e.autoplay.running||e.autoplay.paused&&(d=S(),l=S())}),Object.assign(e.autoplay,{start:w,stop:T,pause:E,resume:D})},Op={async getNews(e={}){let{data:t}=await V.get(`/news`,{params:e});return t},async getLatestNews(e=8){let{data:t}=await V.get(`/news/latest`,{params:{limit:e}});return t},async getNewsBySlug(e){let{data:t}=await V.get(`/news/${e}`);return t},async createNews(e){let{data:t}=await V.post(`/news`,e);return t},async updateNews(e,t){let{data:n}=await V.put(`/news/${e}`,t);return n},async deleteNews(e){let{data:t}=await V.delete(`/news/${e}`);return t}},kp=()=>{let{t:e}=W();return(0,H.jsxs)(`div`,{className:`flex justify-center items-center py-12 px-4`,children:[(0,H.jsx)(`div`,{className:`animate-spin rounded-full h-8 w-8 border-3 border-[#
31E4E7EC] border-t-[#0B2D5C]`}),(0,H.jsxs)(`span`,{className:`ml-3 text-[#0B2D5C] font-semibold text-sm`,children:[e(`Loading`),`...`]})]})},Ap=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(!0),o=t.language;(0,S.useEffect)(()=>{Op.getLatestNews(8).then(e=>{r(e.data.items),a(!1)}).catch(()=>{a(!1)})},[]);let s=(e,t)=>e?e[t]?e[t]:e.uz?e.uz:e.en?e.en:``:``;return(0,H.jsx)(`section`,{className:`py-16 bg-[#F5F7FA]`,children:(0,H.jsxs)(`div`,{className:`container-page`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-end mb-10 border-b border-[#E4E7EC] pb-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#C59B27] uppercase tracking-widest block mb-1`,children:e(`Latest News`)}),(0,H.jsx)(`h2`,{className:`text-2xl md:text-3xl font-bold text-[#0B2D5C]`,children:e(`School Life News`)})]}),(0,H.jsxs)(I,{to:`/news`,className:`text-[#0B2D5C] hover:text-[#164C8C] font-semibold text-sm transition-colors flex items-center gap-1`,children:[e(`View All`),` →`]})]}),i?(0,H.jsx)(`div`,{className:`py-10`,children:(0,H.jsx)(kp,{})}):n.length===0?(0,H.jsx)(`div`,{className:`text-center py-10 text-[#667085]`,children:`Hozircha yangiliklar mavjud emas.`}):(0,H.jsxs)(`div`,{className:`relative px-0 sm:px-12 md:px-16 group academic-swiper`,children:[(0,H.jsx)(`div`,{className:`swiper-button-prev custom-prev absolute left-0 top-[45%] -translate-y-1/2 z-10 hidden sm:flex cursor-pointer bg-white text-[#0B2D5C] w-10 h-10 rounded-full border border-[#E4E7EC] shadow-md items-center justify-center hover:bg-[#0B2D5C] hover:text-white transition-colors`}),(0,H.jsx)(`div`,{className:`swiper-button-next custom-next absolute right-0 top-[45%] -translate-y-1/2 z-10 hidden sm:flex cursor-pointer bg-white text-[#0B2D5C] w-10 h-10 rounded-full border border-[#E4E7EC] shadow-md items-center justify-center hover:bg-[#0B2D5C] hover:text-white transition-colors`}),(0,H.jsx)(_p,{modules:[xp,Ep,Dp],spaceBetween:24,slidesPerView:1,navigation:{nextEl:`.custom-next`,prevEl:`.custom-prev`},pagination:{clickable:!0,el:`.custom-pagination`},autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:3}},className:`w-full`,children:n.map(t=>(0,H.jsx)(vp,{className:`h-auto`,children:(0,H.jsxs)(`div`,{className:`bg-white rounded-xl overflow-hidden shadow-xs hover:shadow-md hover:border-[#164C8C]/40 transition-all duration-200 h-full flex flex-col border border-[#E4E7EC] group`,children:[(0,H.jsxs)(I,{to:`/news/${t.slug||t.id}`,className:`relative block overflow-hidden`,children:[(0,H.jsx)(`img`,{src:X(t.image),alt:s(t.imageAlt,o),className:`w-full h-52 object-cover group-hover:scale-105 transition-transform duration-300`,loading:`lazy`}),(0,H.jsxs)(`div`,{className:`absolute top-3 left-3 bg-[#071D3B] text-white px-2.5 py-1 rounded-md text-xs font-semibold flex items-center gap-1.5 shadow-sm`,children:[(0,H.jsx)(Hl,{size:14,className:`text-[#C59B27]`}),s(t.tagLabel,o)||t.tag||`Yangilik`]})]}),(0,H.jsxs)(`div`,{className:`p-5 flex-grow flex flex-col justify-between`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`div`,{className:`text-xs text-[#667085] font-medium mb-2`,children:t.publishedAt?new Date(t.publishedAt).toLocaleDateString():``}),(0,H.jsx)(I,{to:`/news/${t.slug||t.id}`,className:`block`,children:(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C] mb-2 leading-snug line-clamp-2 group-hover:text-[#0284c7] transition-colors`,children:s(t.title,o)})}),(0,H.jsx)(`p`,{className:`text-[#667085] mb-4 text-xs leading-relaxed line-clamp-3`,children:s(t.shortContent,o)})]}),(0,H.jsxs)(I,{to:`/news/${t.slug||t.id}`,className:`inline-flex items-center gap-1.5 text-xs font-bold text-[#0284c7] hover:text-[#0369a1] transition-colors mt-2`,children:[(0,H.jsx)(`span`,{children:e(`Read More`)||`Batafsil`}),(0,H.jsx)(`span`,{children:`→`})]})]})]})},t.id))}),(0,H.jsx)(`div`,{className:`custom-pagination flex justify-center gap-2 mt-8`})]})]})})},jp={getFeatures:()=>V.get(`/school-features`),getFeatureById:e=>V.get(`/school-features/${e}`),createFeature:e=>V.post(`/school-features`,e,{headers:{"Content-Type":`multipart/form-data`}}),updateFeature:(e,t)=>
31V.put(`/school-features/${e}`,t,{headers:{"Content-Type":`multipart/form-data`}}),deleteFeature:e=>V.delete(`/school-features/${e}`)},Mp=[{id:1,title:`Prezident maktabi a'lochi o'quvchilariga tashakkurnoma topshirish marosimi`,category:`Tashrif`,image:`/gallery/award_certificate.jpg`},{id:2,title:`Buyuk allomalar siymosi va ma'rifiy sahna ko'rinishlari`,category:`Teatr`,image:`/gallery/scholar_costume.jpg`},{id:3,title:`O'quvchi qizlarimizning milliy she'rxonlik va nutq so'zlash chiqishlari`,category:`Madaniyat`,image:`/gallery/doppi_speech.jpg`},{id:4,title:`Samarqand shahridagi Prezident maktabida "Yoshlar kuni" tadbiri o'tkazildi`,category:`Tadbir`,image:`/gallery/student_theater.jpg`},{id:5,title:`Prezident maktabi o'quvchilari va ustozlarining ertak-spektakli`,category:`Sayohat`,image:`/gallery/royal_crown.jpg`},{id:6,title:`O'quvchilarning saxnalashtirilgan komedik va badiiy ko'rinishlari`,category:`Sayohat`,image:`/gallery/guards_resting.jpg`},{id:7,title:`Prezident maktabi o'quvchilari va ustozlarining teatr hamda sahna ko'rinishlari`,category:`Sayohat`,image:`/gallery/royal_play.jpg`},{id:8,title:`Ota-onalar va tomoshabinlarning ma'naviy tadbirlardagi samimiy lahzalari`,category:`Sayohat`,image:`/gallery/audience_filming.jpg`},{id:9,title:`Maktab jamoasi va o'quvchilarining ma'rifiy bayram dasturlari`,category:`Sayohat`,image:`/gallery/queen_performance.jpg`}],Np=()=>{let{t:e}=W(),[t,n]=(0,S.useState)(Mp);(0,S.useEffect)(()=>{jp.getFeatures().then(e=>{if(e.data?.data&&e.data.data.length>0){let t=[{title:`Prezident maktabi a'lochi o'quvchilariga tashakkurnoma topshirish marosimi`,category:`Tashrif`},{title:`Buyuk allomalar siymosi va ma'rifiy sahna ko'rinishlari`,category:`Teatr`},{title:`O'quvchi qizlarimizning milliy she'rxonlik va nutq so'zlash chiqishlari`,category:`Madaniyat`},{title:`Samarqand shahridagi Prezident maktabida "Yoshlar kuni" tadbiri o'tkazildi`,category:`Tadbir`},{title:`Prezident maktabi o'quvchilari va ustozlarining ertak-spektakli`,category:`Sayohat`},{title:`O'quvchilarning saxnalashtirilgan komedik va badiiy ko'rinishlari`,category:`Sayohat`},{title:`Prezident maktabi o'quvchilari va ustozlarining teatr hamda sahna ko'rinishlari`,category:`Sayohat`},{title:`Ota-onalar va tomoshabinlarning ma'naviy tadbirlardagi samimiy lahzalari`,category:`Sayohat`},{title:`Maktab jamoasi va o'quvchilarining ma'rifiy bayram dasturlari`,category:`Sayohat`}],r=e.data.data.map((e,n)=>({id:e.id,title:e.title?.uz||t[n%t.length].title,category:e.category?.uz||t[n%t.length].category,image:X(e.image)}));n(r)}}).catch(()=>{})},[]);let r=[...t,...t,...t];return(0,H.jsxs)(`section`,{className:`py-14 bg-[#F7F9FC] border-b border-[#E4E7EC] overflow-hidden`,children:[(0,H.jsx)(`div`,{className:`container-page px-4 mb-8`,children:(0,H.jsx)(`h2`,{className:`text-2xl sm:text-3xl font-extrabold text-[#0B2D5C] tracking-tight`,children:e(`Vibrant School Life`)||`Bizning jonli maktab hayotimiz`})}),(0,H.jsx)(`div`,{className:`relative w-full overflow-hidden`,children:(0,H.jsx)(`div`,{className:`flex gap-4 w-max animate-marquee hover:[animation-play-state:paused] py-2 px-4`,children:r.map((e,t)=>(0,H.jsxs)(I,{to:`/gallery`,className:`w-56 sm:w-64 h-72 sm:h-80 rounded-2xl overflow-hidden relative shadow-md hover:shadow-xl border border-gray-200/70 shrink-0 group cursor-pointer bg-slate-900 transition-all duration-300 block`,children:[(0,H.jsx)(`img`,{src:e.image,alt:e.title,className:`w-full h-full object-cover group-hover:scale-108 transition-transform duration-700`,loading:`lazy`}),(0,H.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-transparent`}),(0,H.jsxs)(`div`,{className:`absolute bottom-4 left-4 right-4 z-10 text-white`,children:[(0,H.jsx)(`span`,{className:`bg-[#0284c7] text-white text-[11px] font-bold px-2.5 py-0.5 rounded-md inline-block mb-1.5 shadow-sm`,children:e.category}),(0,H.jsx)(`h3`,{className:`text-xs sm:text-[13px] font-bold text-white leading-snug line-clamp-2 group-hover:text-[#38bdf8] transition-colors drop-shadow-sm`,children:e.title})]})]},t))})})]})},Pp=()=>{let{t:e}=W();return(0,H.jsx)(`section`,{className:`py-16 bg-[#F7F9FC] border-b border-[#
31E4E7EC]`,children:(0,H.jsx)(`div`,{className:`container-page px-4`,children:(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-8 items-start`,children:[(0,H.jsxs)(`div`,{className:`lg:col-span-7 space-y-6`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 bg-[#DDF4F0] text-[#1E7D73] px-3 py-1 rounded-md text-xs font-bold shadow-2xs mb-2`,children:[(0,H.jsx)(Hl,{size:15}),(0,H.jsx)(`span`,{children:e(`Education`)||`Ta'lim`})]}),(0,H.jsx)(`h2`,{className:`text-2xl sm:text-3xl font-extrabold text-[#0B2D5C] tracking-tight`,children:e(`About Curriculum`)||`Ta'lim dasturi haqida`})]}),(0,H.jsxs)(I,{to:`/talim`,className:`text-xs font-bold text-[#1E5C9A] hover:underline flex items-center gap-1`,children:[(0,H.jsx)(`span`,{children:e(`View All`)||`Barchasi`}),(0,H.jsx)(`span`,{children:`→`})]})]}),(0,H.jsxs)(`div`,{className:`space-y-3.5`,children:[(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-3 gap-3.5`,children:[(0,H.jsxs)(`div`,{className:`bg-[#38a196] rounded-2xl p-5 text-white flex flex-col justify-between shadow-xs min-h-[180px] relative overflow-hidden select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-white/15 flex items-center justify-center mb-3 text-white`,children:(0,H.jsx)(Hl,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base sm:text-lg mb-1 leading-snug`,children:e(`Grades 5-11`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-white/90 font-medium leading-normal`,children:e(`Grades 5-11 Sub`)})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#5b88c4] rounded-2xl p-5 text-white flex flex-col justify-between shadow-xs min-h-[180px] relative overflow-hidden select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-white/15 flex items-center justify-center mb-3 text-white`,children:(0,H.jsx)(Vl,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base sm:text-lg mb-1 leading-snug`,children:e(`Languages`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-white/90 font-medium leading-normal`,children:e(`Languages Sub`)})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#18649b] rounded-2xl p-5 text-white flex flex-col justify-between shadow-xs min-h-[180px] relative overflow-hidden select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-white/15 flex items-center justify-center mb-3 text-white`,children:(0,H.jsx)(yl,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base sm:text-lg mb-1 leading-snug`,children:e(`Humanities`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-white/90 font-medium leading-normal`,children:e(`Humanities Sub`)})]})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-3.5`,children:[(0,H.jsxs)(`div`,{className:`bg-[#243a73] rounded-2xl p-5 text-white flex flex-col justify-between shadow-xs min-h-[180px] relative overflow-hidden select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-white/15 flex items-center justify-center mb-3 text-white`,children:(0,H.jsx)(Cu,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base sm:text-lg mb-1 leading-snug`,children:e(`AS and A Levels`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-white/90 font-medium leading-normal`,children:e(`AS and A Levels Sub`)})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#188b57] rounded-2xl p-5 text-white flex flex-col justify-between shadow-xs min-h-[180px] relative overflow-hidden select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-white/15 flex items-center justify-center mb-3 text-white`,children:(0,H.jsx)(vl,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base sm:text-lg mb-1 leading-snug`,children:e(`STEAM Education`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-white/90 font-medium leading-normal`,children:e(`STEAM Education Sub`)})]})]})]})]})]}),(0,H.jsxs)(`div`,{className:`lg:col-span-5 space-y-6`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 bg-[#E2ECF8] text-[#1E5C9A] px-3 py-1 rounded-md text-xs font-bold shadow-2xs mb-2`,children:[(0,H.jsx)(yl,{size:15}),(0,H.jsx)(`span`,{children:e(`Admissions`)})]}),(0,H.jsx)(`h2`,{className:`text-2xl sm:text-3xl font-extrabold text-[#0B2D5C] tracking-tight`,children:e(`Admission Steps`)})]}),(0,H.jsxs)(I,{to:`/qabul`,className:`text-xs font-bold text-[#1E5C9A] hover:underline flex items-center gap-1`,children:[(0,H.jsx)(`span`,{children:e(`View All`)}),(0,H.jsx)(`span`,{children:`→`})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#153B6B] rounded-2xl p-5 sm:p-6 shadow-md text-white space-y-3.5 border border-white/10`,children:[(0,H.jsxs)(`div`,{className:`bg-[#20497B] rounded-xl p-3.5 flex items-center gap-3.5 border border-white/10 select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-full bg-white/15 text-white flex items-center justify-center shrink-0`,children:(0,H.jsx)(_u,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-xs sm:text-sm text-white`,children:e(`Step 1`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-gray-200 leading-normal font-normal`,children:e(`Get Acquainted`)})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#20497B] rounded-xl p-3.5 flex items-center gap-3.5 border border-white/10 select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-full bg-white/15 text-white flex items-center justify-center shrink-0`,children:(0,H.jsx)(ou,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-xs sm:text-sm text-white`,children:e(`Step 2`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-gray-200 leading-normal font-normal`,children:e(`Submit Application`)})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#20497B] rounded-xl p-3.5 flex items-center gap-3.5 border border-white/10 select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-full bg-white/15 text-white flex items-center justify-center shrink-0`,children:(0,H.jsx)(gl,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-xs sm:text-sm text-white`,children:e(`Step 3`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-gray-200 leading-normal font-normal`,children:e(`Exam`)})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#20497B] rounded-xl p-3.5 flex items-center gap-3.5 border border-white/10 select-none cursor-default`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-full bg-white/15 text-white flex items-center justify-center shrink-0`,children:(0,H.jsx)(Al,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-xs sm:text-sm text-white`,children:e(`Step 4`)}),(0,H.jsx)(`p`,{className:`text-[11.5px] text-gray-200 leading-normal font-normal`,children:e(`Get Results`)})]})]}),(0,H.jsx)(`div`,{className:`pt-2`,children:(0,H.jsx)(`a`,{href:`https://ariza.piima.uz/`,target:`_blank`,rel:`noopener noreferrer`,className:`block text-center bg-[#234b82] hover:bg-[#2c5b9c] active:bg-[#1d3f6f] text-white py-3 px-6 rounded-xl font-extrabold text-xs shadow-sm border border-white/20 transition-all duration-200 cursor-pointer`,children:e(`Apply Now`)})})]})]})]})})})},Fp=()=>{let{t:e}=W(),t=[{name:`Cognia`,image:`/partners/cognia.png`,url:`https://www.cognia.org/`},{name:`College Board`,image:`/partners/collegeboard.png`,url:`https://www.collegeboard.org/`},{name:`CIS - Council of International Schools`,image:`/partners/cis.png`,url:`https://www.cois.org/`},{name:`Cambridge Assessment International Education`,image:`/partners/cambridge.png`,url:`https://www.cambridgeinternational.org/`}],n=[...t,...t,...t,...t,...t];return(0,H.jsxs)(`section`,{className:`py-10 bg-[#F7F9FC] border-b border-gray-200/60 overflow-hidden relative z-10`,children:[(0,H.jsx)(`div`,{className:`container-page px-4 mb-6 text-center`,children:(0,H.jsx)(`h2`,{className:`text-xl sm:text-2xl font-bold text-[#1e293b] tracking-tight`,children:`Bizning hamkorlar`})}),(0,H.jsxs)(`div`,{className:`w-full overflow-hidden relative`,children:[(0,H.jsx)(`div`,{className:`absolute left-0 top-0 bottom-0 w-16 bg-gradient-to-r from-[#F7F9FC] to-transparent z-10 pointer-events-none`}),(0,H.jsx)(`div`,{className:`absolute right-0 top-0 bottom-0 w-16 bg-gradient-to-l from-[#F7F9FC] to-transparent z-10 pointer-events-none`}),(0,H.jsx)(`div`,{className:`animate-marquee flex items-center gap-4 sm:gap-5`,children:n.map((e,t)=>(0,H.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`bg-white p-3 sm:p-4 roun
31ded-2xl border border-gray-200/70 shadow-2xs hover:border-gray-300 hover:shadow-md transition-all flex items-center justify-center shrink-0 w-36 sm:w-44 h-28 cursor-pointer group`,title:`${e.name} rasmiy saytiga o'tish`,children:(0,H.jsx)(`img`,{src:e.image,alt:e.name,className:`max-h-16 max-w-[88%] w-auto object-contain group-hover:scale-105 transition-transform duration-300`})},t))})]})]})},Ip={getUsefulLinks:()=>V.get(`/useful-links`),getUsefulLinkById:e=>V.get(`/useful-links/${e}`),createUsefulLink:e=>V.post(`/useful-links`,e,{headers:{"Content-Type":`multipart/form-data`}}),updateUsefulLink:(e,t)=>V.put(`/useful-links/${e}`,t,{headers:{"Content-Type":`multipart/form-data`}}),updateUsefulLinkStatus:(e,t)=>V.patch(`/useful-links/${e}/status`,{isActive:t}),deleteUsefulLink:e=>V.delete(`/useful-links/${e}`)},Lp=[{id:1,name:{uz:`O'zbekiston Respublikasi Prezidentining rasmiy veb-sayti`,en:`Official website of the President of Uzbekistan`,ru:`Официальный сайт Президента Республики Узбекистан`},link:`https://president.uz`,image:`/logo.png`},{id:2,name:{uz:`Ixtisoslashtirilgan ta'lim muassasalari agentligi`,en:`Agency for Specialized Educational Institutions`,ru:`Агентство специализированных образовательных учреждений`},link:`https://piima.uz`,image:`/logo.png`},{id:3,name:{uz:`Maktabgacha va maktab ta'limi vazirligi`,en:`Ministry of Preschool and School Education`,ru:`Министерство дошкольного и школьного образования`},link:`https://uzedu.uz`,image:`/logo.png`},{id:4,name:{uz:`Yagona interaktiv davlat xizmatlari portali`,en:`Single Interactive State Services Portal`,ru:`Единый портал интерактивных государственных услуг`},link:`https://my.gov.uz`,image:`/logo.png`},{id:5,name:{uz:`O'zbekiston Respublikasi Hukumat portali`,en:`Government Portal of the Republic of Uzbekistan`,ru:`Правительственный портал Республики Узбекистан`},link:`https://gov.uz`,image:`/logo.png`},{id:6,name:{uz:`Oliy ta'lim, fan va innovatsiyalar vazirligi`,en:`Ministry of Higher Education, Science and Innovations`,ru:`Министерство высшего образования, науки и инноваций`},link:`https://edu.uz`,image:`/logo.png`}],Rp=()=>{let{t:e,i18n:t}=W(),n=t.language||`uz`,[r,i]=(0,S.useState)(Lp),[a,o]=(0,S.useState)(!0);(0,S.useEffect)(()=>{(async()=>{try{let e=await Ip.getUsefulLinks();e.data?.data&&e.data.data.length>0&&i(e.data.data)}catch(e){console.error(`Failed to fetch useful links:`,e)}finally{o(!1)}})()},[]);let s=e=>e?typeof e==`string`?e:e[n]||e.uz||e.en||``:``;return(0,H.jsx)(`section`,{className:`bg-[#18356F] text-white py-14 border-t border-white/10 relative z-10`,children:(0,H.jsxs)(`div`,{className:`container-page px-4 md:px-8`,children:[(0,H.jsxs)(`div`,{className:`text-center mb-10 space-y-2`,children:[(0,H.jsxs)(`div`,{className:`inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-white/10 border border-white/20 text-[#38bdf8] font-bold text-xs uppercase tracking-wider`,children:[(0,H.jsx)(Jl,{size:14}),(0,H.jsx)(`span`,{children:`Foydali manbalar`})]}),(0,H.jsx)(`h2`,{className:`text-2xl md:text-3xl font-extrabold text-white tracking-tight`,children:`Foydali Havolalar va Rasmiy Portallar`})]}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-5`,children:r.map(e=>(0,H.jsxs)(`a`,{href:e.link,target:`_blank`,rel:`noopener noreferrer`,className:`group bg-white/10 hover:bg-white/20 border border-white/15 hover:border-white/40 rounded-2xl p-4 flex items-center gap-4 transition-all duration-300 shadow-sm hover:shadow-xl`,children:[(0,H.jsx)(`div`,{className:`bg-white rounded-xl p-2 flex items-center justify-center h-14 w-14 shrink-0 shadow-md border border-white/40 group-hover:scale-105 transition-transform`,children:(0,H.jsx)(`img`,{src:e.image?e.image.startsWith(`/uploads`)?X(e.image):e.image:`/logo.png`,alt:s(e.name),className:`max-h-full max-w-full object-contain`})}),(0,H.jsxs)(`div`,{className:`flex-1 min-w-0`,children:[(0,H.jsx)(`p`,{className:`text-white font-bold text-xs sm:text-sm leading-snug group-hover:text-[#38bdf8] transition-colors line-clamp-2`,children:s(e.name)}),(0,H.jsxs)(`span`,{className:`text-[11px] text-white/70 font-semibold flex items-center gap-1 mt-1 group-hover:text-white transition-colors`,children:[(0,H.jsx)(`span`,{children:`Kirish`}),(0,H.jsx)(hl,{size:12})]})]})]},e.id))})]})})},zp=()=>(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Ku,{title:`Samarqand shahridagi Prezident maktabi — Rasmiy veb-sayt`,description:`Samarqand shahridagi Prezident maktabining rasmiy veb-platformasi: Qabul 2026, Natijalar, Yangiliklar, O'qituvchilar va Statistika.`}),(0,H.jsx)(Ju,{}),(0,H.jsx)(Yu,{}),(0,H.jsx)(Xu,{}),(0,H.jsx)(Ap,{}),(0,H.jsx)(Np,{}),(0,H.jsx)(Pp,{}),(0,H.jsx)(Fp,{}),(0,H.jsx)(Rp,{})]}),Bp=({title:e,parentTitle:t,parentLink:n})=>(0,H.jsxs)(`div`,{className:`bg-[#18356F] text-white py-10 md:py-12 px-6 md:px-10 rounded-2xl mb-8 shadow-sm border-b-4 border-[#C59B27] relative overflow-hidden`,children:[(0,H.jsxs)(`div`,{className:`relative z-10 max-w-4xl`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-xs font-bold text-white/90 uppercase tracking-wider mb-3`,children:[(0,H.jsxs)(I,{to:`/`,className:`hover:text-[#C59B27] transition-colors flex items-center gap-1.5`,children:[(0,H.jsx)(Ul,{size:15,className:`text-[#C59B27]`}
31),(0,H.jsx)(`span`,{children:`Bosh sahifa`})]}),t&&t!==`Bosh sahifa`&&t!==`Home`&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Dl,{size:14,className:`text-[#C59B27]`}),n?(0,H.jsx)(I,{to:n,className:`hover:text-white transition-colors`,children:t}):(0,H.jsx)(`span`,{children:t})]}),(0,H.jsx)(Dl,{size:14,className:`text-[#C59B27]`}),(0,H.jsx)(`span`,{className:`text-[#C59B27] font-bold`,children:e})]}),(0,H.jsx)(`h1`,{className:`text-3xl md:text-4xl font-extrabold text-white tracking-tight leading-tight`,children:e})]}),(0,H.jsx)(`div`,{className:`absolute right-0 bottom-0 top-0 w-1/3 bg-white/5 skew-x-12 transform origin-bottom-right pointer-events-none`})]}),Vp={school:`Maktab`,about:`Maktab haqida`,charter:`Maktab nizomi`,"code-of-conduct":`Odob-axloq qoidalari`,structure:`Tuzilma`,leadership:`Rahbariyat`,"school-team":`Jamoamiz`,news:`Yangiliklar`,admissions:`Qabul 2026`,"admissions-2026":`Qabul 2026`,results:`Qabul natijalari`,announcements:`E'lonlar`,"useful-links":`Foydali havolalar`,"foydali-havolalar":`Foydali havolalar`,contacts:`Bog'lanish`},Hp=({customItems:e})=>{let t=mn(),{t:n}=W(),r=t.pathname.split(`/`).filter(e=>e);return r.length===0?null:(0,H.jsx)(`nav`,{className:`flex items-center text-xs text-[#667085] py-4 container-page`,"aria-label":`Breadcrumb`,children:(0,H.jsxs)(`ol`,{className:`inline-flex items-center flex-wrap gap-1 md:gap-2`,children:[(0,H.jsx)(`li`,{className:`inline-flex items-center`,children:(0,H.jsxs)(I,{to:`/`,className:`inline-flex items-center text-[#667085] hover:text-[#0B2D5C] font-medium transition-colors`,children:[(0,H.jsx)(Ul,{className:`w-3.5 h-3.5 mr-1`}),(0,H.jsx)(`span`,{children:`Bosh sahifa`})]})}),e?e.map((e,t)=>(0,H.jsxs)(`li`,{className:`inline-flex items-center`,children:[(0,H.jsx)(Dl,{className:`w-3.5 h-3.5 text-gray-400 mx-1 shrink-0`}),e.path?(0,H.jsx)(I,{to:e.path,className:`text-[#667085] hover:text-[#0B2D5C] font-medium transition-colors`,children:e.label}):(0,H.jsx)(`span`,{className:`text-[#0B2D5C] font-bold`,children:e.label})]},t)):r.map((e,t)=>{let n=`/${r.slice(0,t+1).join(`/`)}`,i=t===r.length-1,a=Vp[e]||e;return(0,H.jsxs)(`li`,{className:`inline-flex items-center`,children:[(0,H.jsx)(Dl,{className:`w-3.5 h-3.5 text-gray-400 mx-1 shrink-0`}),i?(0,H.jsx)(`span`,{className:`text-[#0B2D5C] font-bold capitalize`,children:a}):(0,H.jsx)(I,{to:n,className:`text-[#667085] hover:text-[#0B2D5C] font-medium transition-colors capitalize`,children:a})]},n)})]})})},Up=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(null),i=t.language||`uz`;(0,S.useEffect)(()=>{Ru.getSettings().then(e=>r(e.data?.data)).catch(e=>console.error(`Failed to load settings`,e))},[]);let a=(e,t=``)=>e?typeof e==`string`?e:e[i]||e.uz||e.en||t:t,o=a(n?.aboutHistoryTitle,`Samarqand shahridagi Prezident maktabi — kelajak yetakchilarini tayyorlaydigan zamonaviy ta'lim maskani`),s=a(n?.aboutHistoryText,`Samarqand shahridagi Prezident maktabi O'zbekiston Respublikasi Prezidentining 2019-yil 20-fevraldagi PQ-4199-sonli qaroriga muvofiq iqtidorli yoshlarni aniqlash, ularning salohiyatini ro'yobga chiqarish va vatanparvarlik ruhida tarbiyalash maqsadida tashkil etilgan.
32
33Maktabimiz iqtidorli o'quvchilarga STEAM (Science, Technology, Engineering, Arts, Mathematics) fanlari bo'yicha chuqurlashtirilgan ta'lim berish hamda Cambridge Assessment International Education dasturi bo'yicha ta'lim jarayonlarini tashkil etishga ixtisoslashgan.`),c=n?.aboutHistoryImage?X(n.aboutHistoryImage):`https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&q=80&w=1200&h=800`,l=a(n?.aboutDirectorQuote,`Bizning asosiy maqsadimiz — o'quvchilarimizga nafaqat yuqori akademik bilimlarni berish, balki ularni munosib, vatanparvar, global fikrlaydigan va raqobatbardosh shaxs sifatida tarbiyalashdir.`);return(0,H.jsxs)(`div`,{className:`bg-[#F7F9FC] min-h-screen py-6 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`About the School`)||`Maktab haqida — Samarqand shahridagi Prezident maktabi`,description:`Samarqand shahridagi Prezident maktabi tarixi, missiyasi, Cambridge ta'lim standartlari, akademik qadriyatlari hamda bitiruvchi profili.`}),(0,H.jsx)(Hp,{}),(0,H.jsxs)(`div`,{className:`container-page space-y-12 mt-2 px-4`,children:[(0,H.jsx)(Bp,{title:e(`About the School`)||`Maktab haqida`,parentTitle:e(`
33School`)||`Biz haqimizda`}),(0,H.jsx)(`div`,{className:`bg-white rounded-3xl p-6 sm:p-10 border border-gray-200/80 shadow-xs`,children:(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-8 items-center`,children:[(0,H.jsxs)(`div`,{className:`lg:col-span-7 space-y-5`,children:[(0,H.jsxs)(`div`,{className:`inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-blue-50 border border-blue-100 text-[#0284c7] font-bold text-xs uppercase tracking-wider`,children:[(0,H.jsx)(Fl,{size:14}),(0,H.jsx)(`span`,{children:`Biz haqimizda`})]}),(0,H.jsx)(`h1`,{className:`text-2xl sm:text-3xl lg:text-4xl font-extrabold text-[#0B2D5C] tracking-tight leading-tight`,children:o}),(0,H.jsx)(`div`,{className:`space-y-4 text-sm sm:text-base text-gray-600 leading-relaxed font-normal`,children:s.split(`
34
35`).map((e,t)=>(0,H.jsx)(`p`,{children:e},t))}),(0,H.jsxs)(`div`,{className:`pt-2 grid grid-cols-2 gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2.5 text-xs font-bold text-[#0B2D5C]`,children:[(0,H.jsx)(Al,{size:18,className:`text-[#0284c7]`}),(0,H.jsx)(`span`,{children:`Cambridge IGCSE & A-Level`})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2.5 text-xs font-bold text-[#0B2D5C]`,children:[(0,H.jsx)(Al,{size:18,className:`text-[#0284c7]`}),(0,H.jsx)(`span`,{children:`STEAM ta'limi yo'nalishi`})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2.5 text-xs font-bold text-[#0B2D5C]`,children:[(0,H.jsx)(Al,{size:18,className:`text-[#0284c7]`}),(0,H.jsx)(`span`,{children:`Xalqaro malakali pedagoglar`})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2.5 text-xs font-bold text-[#0B2D5C]`,children:[(0,H.jsx)(Al,{size:18,className:`text-[#0284c7]`}),(0,H.jsx)(`span`,{children:`Zamonaviy laboratoriyalar`})]})]})]}),(0,H.jsx)(`div`,{className:`lg:col-span-5 relative`,children:(0,H.jsxs)(`div`,{className:`rounded-2xl overflow-hidden shadow-xl border border-gray-200 relative group`,children:[(0,H.jsx)(`img`,{src:c,alt:`Samarqand shahridagi Prezident maktabi`,className:`w-full h-[380px] sm:h-[420px] object-cover group-hover:scale-105 transition-transform duration-500`}),(0,H.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-[#051124]/80 via-transparent to-transparent`}),(0,H.jsxs)(`div`,{className:`absolute bottom-4 left-4 right-4 bg-white/90 backdrop-blur-md p-4 rounded-xl border border-white/40 shadow-lg flex items-center gap-3`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-full bg-[#071938] flex items-center justify-center text-white shrink-0`,children:(0,H.jsx)(Hl,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h4`,{className:`text-xs font-extrabold text-[#0B2D5C]`,children:`Prezident Maktabi Standarti`}),(0,H.jsx)(`p`,{className:`text-[11px] text-gray-500 font-semibold`,children:`Zamonaviy va innovatsion ta'lim maskani`})]})]})]})})]})}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-gray-200/80 shadow-xs space-y-3 hover:shadow-md transition-shadow`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-blue-50 border border-blue-100 text-[#0284c7] flex items-center justify-center`,children:(0,H.jsx)(yl,{size:24})}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:`Cambridge Standartlari`}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500 leading-relaxed`,children:`Cambridge IGCSE va A-Level xalqaro ta'lim dasturi bo'yicha sifatli va uzluksiz akademik ta'lim.`})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-gray-200/80 shadow-xs space-y-3 hover:shadow-md transition-shadow`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-teal-50 border border-teal-100 text-[#0f766e] flex items-center justify-center`,children:(0,H.jsx)(Il,{size:24})}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:`STEAM Yo'nalishi`}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500 leading-relaxed`,children:`Aniq va tabiiy fanlar, muhandislik, robototexnika hamda sun'iy intellekt bo'yicha chuqurlashtirilgan yondashuv.`})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-gray-200/80 shadow-xs space-y-3 hover:shadow-md transition-shadow`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-indigo-50 border border-indigo-100 text-[#4f46e5] flex items-center justify-center`,children:(0,H.jsx)(Mu,{size:24})}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:`Xalqaro O'qituvchilar`}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500 leading-relaxed`,children:`Xorijiy va mahalliy eng saralangan yuqori malakali va tajribali pedagoglar jamoasi.`})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-gray-200/80 shadow-xs space-y-3 hover:shadow-md transition-shadow`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-amber-50 border border-amber-100 text-[#b45309] flex items-center justify-center`,children:(0,H.jsx)(gl,{size:24})}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:`Nufuzli Oliygohlar`}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500 leading-relaxed`,children:`Bitiruvchilarning du
35nyoning eng nufuzli top-100 xalqaro va mahalliy universitetlariga kirish imkoniyati.`})]})]}),(0,H.jsx)(`div`,{className:`bg-[#071938] rounded-3xl p-8 sm:p-12 text-white border border-white/10 shadow-2xl relative overflow-hidden`,children:(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-12 gap-8 items-center relative z-10`,children:[(0,H.jsx)(`div`,{className:`lg:col-span-4 flex justify-center`,children:(0,H.jsx)(`div`,{className:`w-48 h-48 sm:w-56 sm:h-56 rounded-2xl overflow-hidden border-2 border-[#C59B27] shadow-2xl bg-black/20 p-1`,children:(0,H.jsx)(`img`,{src:`/uploads/director.jpg`,alt:`Maktab Direktori`,className:`w-full h-full object-cover object-top rounded-xl`})})}),(0,H.jsxs)(`div`,{className:`lg:col-span-8 space-y-5`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-[#C59B27] text-xs font-extrabold uppercase tracking-widest`,children:[(0,H.jsx)(pu,{size:18}),(0,H.jsx)(`span`,{children:`Direktor Murojaati`})]}),(0,H.jsxs)(`p`,{className:`text-base sm:text-lg md:text-xl font-normal leading-relaxed italic text-gray-100`,children:[`"`,l,`"`]}),(0,H.jsxs)(`div`,{className:`pt-4 border-t border-white/15`,children:[(0,H.jsx)(`h4`,{className:`text-lg font-bold text-white`,children:`Boltayev Farrux Farxodovich`}),(0,H.jsx)(`p`,{className:`text-xs text-[#38bdf8] font-semibold mt-0.5`,children:`Samarqand shahridagi Prezident maktabi direktori`})]})]})]})}),(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl p-8 sm:p-10 border border-gray-200/80 shadow-xs space-y-8`,children:[(0,H.jsxs)(`div`,{className:`text-center max-w-3xl mx-auto space-y-3`,children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#0284c7] bg-blue-50 border border-blue-100 px-3.5 py-1 rounded-full uppercase tracking-wider inline-block`,children:`Maktab Standarti va Kelajak`}),(0,H.jsx)(`h2`,{className:`text-2xl sm:text-3xl font-extrabold text-[#0B2D5C]`,children:`Prezident Maktabi Bitiruvchisi Profili`}),(0,H.jsx)(`p`,{className:`text-xs sm:text-sm text-gray-500 leading-relaxed`,children:`Bizning ta'lim tizimimiz o'quvchilarda quyidagi 8 ta asosiy qadriyat va xislatlarni shakllantirishga yo'naltirilgan:`})]}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
355`,children:[{title:`Ma'naviyatli va vatanparvar fuqaro`,desc:`Milliy qadriyatlarga sodiq, o'z yurti kelajagi uchun mas'uliyatli shaxs.`,icon:(0,H.jsx)(xu,{className:`text-blue-600`,size:24})},{title:`Tanqidiy va mantiqiy fikrlovchi`,desc:`Muammolarga mantiqiy va innovatsion yechim topa oladigan bilimdon.`,icon:(0,H.jsx)(Il,{className:`text-teal-600`,size:24})},{title:`Mas'uliyatli yetakchi`,desc:`Har qanday vaziyatda tashabbuskor va adolatli qaror qabul qiluvchi rahbar.`,icon:(0,H.jsx)(gl,{className:`text-amber-600`,size:24})},{title:`Akademik tayyorgarlik`,desc:`Cambridge standartlari bo'yicha chuqur va mustahkam bilim sohibi.`,icon:(0,H.jsx)(Hl,{className:`text-indigo-600`,size:24})},{title:`Jamiyatda namuna`,desc:`Yuksak odob-axloq va madaniyat sohibi bo'lgan yetakchi avlod.`,icon:(0,H.jsx)(Mu,{className:`text-purple-600`,size:24})},{title:`Global fikrlovchi`,desc:`Dunyoqarashi keng, xalqaro tajriba va tillarni mukammal egallagan.`,icon:(0,H.jsx)(Vl,{className:`text-cyan-600`,size:24})},{title:`Jamoada samarali ishlovchi`,desc:`Hamkorlik va jamoaviy loyihalarda yuksak natijalarga erishuvchi.`,icon:(0,H.jsx)(Mu,{className:`text-emerald-600`,size:24})},{title:`Sog'lom va barqaror`,desc:`Jismonan va ma'nan sog'lom, doimiy o'sish va rivojlanish tarafdori.`,icon:(0,H.jsx)(Fl,{className:`text-rose-600`,size:24})}].map((e,t)=>(0,H.jsxs)(`div`,{className:`bg-[#f8fafc] p-6 rounded-2xl border border-gray-200/60 hover:bg-white hover:border-[#0284c7] hover:shadow-md transition-all duration-300 space-y-3`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-white flex items-center justify-center shadow-xs border border-gray-200/80`,children:e.icon}),(0,H.jsx)(`h3`,{className:`text-sm font-bold text-[#0B2D5C] leading-snug`,children:e.title}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500 leading-relaxed`,children:e.desc})]},t))})]})]})]})},Wp=()=>{let{t:e}=W();return(0,H.jsxs)(`div`,{className:`container-page py-10 max-w-4xl`,children:[(0,H.jsx)(Ku,{title:e(`School Charter`)}),(0,H.jsx)(Bp,{title:e(`School Charter`),parentTitle:e(`School`)}),(0,H.jsxs)(`div`,{className:`bg-white p-8 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC]`,children:[(0,H.jsx)(`div`,{className:`mb-8 flex justify-center`,children:(0,H.jsx)(`img`,{src:`https://images.unsplash.com/photo-1606857521015-7f9fcf423740?auto=format&fit=crop&q=80&w=800&h=400`,alt:`School Charter`,className:`rounded-xl shadow-sm border border-[#E4E7EC] w-full max-h-80 object-cover`})}),(0,H.jsxs)(`div`,{className:`prose max-w-none text-[#172033] text-sm leading-relaxed space-y-4`,children:[(0,H.jsx)(`p`,{className:`text-base font-medium text-[#0B2D5C]`,children:e(`School Charter Description`)}),(0,H.jsx)(`h3`,{className:`text-lg font-bold text-[#0B2D5C] pt-4 mb-2`,children:e(`General Provisions`)}),(0,H.jsx)(`p`,{className:`text-[#667085]`,children:e(`General Provisions 1`)}),(0,H.jsx)(`p`,{className:`text-[#667085]`,children:e(`General Provisions 2`)}),(0,H.jsx)(`h3`,{className:`text-lg font-bold text-[#0B2D5C] pt-4 mb-2`,children:e(`Educational Process`)}),(0,H.jsx)(`p`,{className:`text-[#667085]`,children:e(`Educational Process 1`)})]}),(0,H.jsx)(`div`,{className:`mt-10 pt-8 border-t border-[#E4E7EC] text-center`,children:(0,H.jsxs)(`a`,{href:`#`,className:`inline-flex items-center gap-2 bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-7 py-3 rounded-lg transition-colors font-bold text-sm shadow-sm`,children:[(0,H.jsx)(Rl,{size:18}),` `,e(`Download Charter PDF`)]})})]})]})},Gp=()=>{let{t:e}=W(),t=[{title:e(`Rule 1 Title`),desc:e(`Rule 1 Desc`)},{title:e(`Rule 2 Title`),desc:e(`Rule 2 Desc`)},{title:e(`Rule 3 Title`),desc:e(`Rule 3 Desc`)},{title:e(`Rule 4 Title`),desc:e(`Rule 4 Desc`)},{title:e(`Rule 5 Title`),desc:e(`Rule 5 Desc`)}];return(0,H.jsxs)(`div`,{className:`container-page py-10 max-w-4xl`,children:[(0,H.jsx)(Ku,{title:e(`School Code of Conduct`)}),(0,H.jsx)(Bp,{title:e(`School Code of Conduct`),parentTitle:e(`School`)}),(0,H.jsxs)(`div`,{className:`bg-white p-8 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC]`,children:[(0,H.jsx)(`p`,{className:`text-sm md:text-base text-[#667085] mb-8 leading-relaxed`,children:e(`Code of Conduct Intro`)}),(0,H.jsx)(`div`,{className:`space-y-4`,children:t.map((e,t)=>(0,H.jsxs)(`div`,{className:`flex gap-4 p-5 bg-[#F5F7FA] rounded-xl border border-[#
35E4E7EC]`,children:[(0,H.jsx)(`div`,{className:`shrink-0 text-[#0B2D5C] mt-0.5`,children:(0,H.jsx)(bu,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h3`,{className:`text-base font-bold text-[#0B2D5C] mb-1`,children:[t+1,`. `,e.title]}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs leading-relaxed`,children:e.desc})]})]},t))}),(0,H.jsx)(`div`,{className:`mt-10 pt-8 border-t border-[#E4E7EC]`,children:(0,H.jsxs)(`a`,{href:`#`,className:`inline-flex items-center gap-2 bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-3 rounded-lg transition-colors font-bold text-sm shadow-sm`,children:[(0,H.jsx)(Rl,{size:18}),` `,e(`Download Full Rules PDF`)]})})]})]})},Kp={getLeadership:async(e={})=>{let{data:t}=await V.get(`/leadership`,{params:e});return t},getLeaderById:async e=>{let{data:t}=await V.get(`/leadership/${e}`);return t},createLeader:async e=>{let{data:t}=await V.post(`/leadership`,e);return t},updateLeader:async(e,t)=>{let{data:n}=await V.put(`/leadership/${e}`,t);return n},deleteLeader:async e=>{let{data:t}=await V.delete(`/leadership/${e}`);return t}},qp=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(!0),o=t.language||`uz`;(0,S.useEffect)(()=>{Kp.getLeadership().then(e=>{r(e.data?.items||[]),a(!1)}).catch(e=>{console.error(e),a(!1)})},[]);let s=(e,t)=>e?e[t]?e[t]:e.uz?e.uz:e.en?e.en:``:``,c=e=>e?.image?X(e.image):e?.slug===`boltayev-farrux`||e?.isDirector?`/uploads/director.jpg`:e?.slug===`mr-prudence`?`/uploads/vp_prudence.jpg`:e?.slug===`igamov-sanjar`?`/uploads/vp_sanjar.jpg`:e?.slug===`uraqova-madina`?`/uploads/vp_madina.jpg`:`/uploads/director.jpg`;if(i)return(0,H.jsx)(`div`,{className:`py-20`,children:(0,H.jsx)(kp,{})});let l=n.find(e=>e.isDirector)||n[0],u=n.filter(e=>!e.isDirector);return(0,H.jsxs)(`div`,{className:`bg-[#F7F9FC] min-h-screen py-6 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Leadership`)||`Rahbariyat — Samarqand shahridagi Prezident maktabi`}),(0,H.jsx)(Hp,{}),(0,H.jsxs)(`div`,{className:`container-page space-y-10 mt-2 px-4`,children:[(0,H.jsx)(Bp,{title:e(`Leadership`)||`Rahbariyat`,parentTitle:e(`About Us`)||`Biz haqimizda`}),l&&(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsx)(`h2`,{className:`text-xl sm:text-2xl font-extrabold text-center text-[#0B2D5C] uppercase tracking-wider`,children:e(`School Director`)||`MAKTAB DIREKTORI`}),(0,H.jsxs)(`div`,{className:`max-w-4xl mx-auto bg-white rounded-3xl shadow-md overflow-hidden border border-[#E4E7EC] flex flex-col md:flex-row items-stretch`,children:[(0,H.jsx)(`div`,{className:`w-full md:w-1/2 min-h-[320px] bg-slate-100 relative overflow-hidden`,children:(0,H.jsx)(`img`,{src:c(l),alt:l.fullName,onError:e=>{e.target.src=`/uploads/director.jpg`},className:`w-full h-full object-cover object-top hover:scale-105 transition-transform duration-500`})}),(0,H.jsxs)(`div`,{className:`p-8 md:w-1/2 flex flex-col justify-center space-y-3 bg-white`,children:[(0,H.jsx)(`span`,{className:`text-[11px] font-extrabold text-[#C59B27] uppercase tracking-widest block`,children:`Maktab Rahbari`}),(0,H.jsx)(`h3`,{className:`text-2xl md:text-3xl font-extrabold text-[#0B2D5C] tracking-tight leading-tight`,children:l.fullName}),(0,H.jsx)(`p`,{className:`text-[#0284c7] font-bold text-sm`,children:s(l.positions,o)}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs sm:text-sm leading-relaxed pt-2 border-t border-[#E4E7EC]`,children:s(l.descriptions,o)})]})]})]}),u.length>0&&(0,H.jsxs)(`div`,{className:`space-y-6 pt-6`,children:[(0,H.jsx)(`h2`,{className:`text-xl sm:text-2xl font-extrabold text-center text-[#0B2D5C] uppercase tracking-wider`,children:`DIREKTOR O'RINBOSARLARI VA RAHBARIYAT`}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6`,children:u.map(e=>(0,H.jsxs)(`div`,{className:`bg-white rounded-2xl shadow-xs border border-[#E4E7EC] overflow-hidden hover:shadow-xl hover:border-[#0284c7]/40 transition-all duration-300 flex flex-col group`,children:[(0,H.jsx)(`div`,{className:`w-full h-72 sm:h-80 bg-slate-100 overflow-hidden relative`,children:(0,H.jsx)(`img`,{src:c(e),alt:e.fullName,onError:t=>{e?.slug===`mr-prudence`?t.target.src=`/uploads/vp_prudence.jpg`:e?.slug===`igamov-sanjar`?t.target.src=`/uploads/vp_sanjar.jpg`:e?.slug===`uraqova-madina`?t.target.src=`/uploads/vp_madina.jpg`:t.target.src=`/uploads/director.jpg`},className:`w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-500`})}),(0,H.jsxs)(`div`,{className:`p-6 text-center space-y-2 flex-1 flex flex-col justify-between bg-white`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-lg font-extrabold text-[#0B2D5C] mb-1 group-hover:text-[#0284c7] transition-colors`,children:e.fullName}),(0,H.jsx)(`p`,{className:`text-[#0284c7] font-bold text-xs mb-2`,children:s(e.positions,o)})]}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs leading-relaxed pt-2 border-t border-[#
35E4E7EC]/60`,children:s(e.descriptions,o)})]})]},e.id))})]})]})]})},Jp={getTeachers:e=>V.get(`/teachers`,{params:e}),getTeacherStats:()=>V.get(`/teachers/stats`),getSubjects:()=>V.get(`/teachers/subjects`),getTeacherBySlug:e=>V.get(`/teachers/slug/${e}`),createTeacher:e=>e instanceof FormData?V.post(`/teachers`,e,{headers:{"Content-Type":`multipart/form-data`}}):V.post(`/teachers`,e),updateTeacher:(e,t)=>t instanceof FormData?V.put(`/teachers/${e}`,t,{headers:{"Content-Type":`multipart/form-data`}}):V.put(`/teachers/${e}`,t),deleteTeacher:e=>V.delete(`/teachers/${e}`)},Yp=`https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=600`,Xp=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(!0),[i,a]=(0,S.useState)([]),[o,s]=(0,S.useState)([]),[c,l]=(0,S.useState)({total:35,local:27,foreign:8,withCertificates:24}),[u,d]=(0,S.useState)({page:1,limit:12,totalPages:1}),[f,p]=(0,S.useState)(!0);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>{e.data?.data&&r(e.data.data.showTeachers!==!1)}).catch(e=>console.error(`Failed to load settings:`,e))},[]);let[m,h]=(0,S.useState)(`ALL`),[g,_]=(0,S.useState)(`ALL`),[v,y]=(0,S.useState)(``),[b,x]=(0,S.useState)(``),[C,w]=(0,S.useState)(1);(0,S.useEffect)(()=>{Jp.getTeacherStats().then(e=>{e.data?.data&&l(e.data.data)}).catch(e=>console.error(`Failed to load stats:`,e)),Jp.getSubjects().then(e=>{e.data?.data&&s(e.data.data)}).catch(e=>console.error(`Failed to load subjects:`,e))},[]);let T=(e=1)=>{p(!0),Jp.getTeachers({page:e,limit:12,type:m,subject:g,search:b}).then(e=>{e.data?.data&&(a(e.data.data.items||[]),d(e.data.data.pagination||{page:1,totalPages:1}))}).catch(e=>console.error(`Failed to fetch teachers:`,e)).finally(()=>p(!1))};return(0,S.useEffect)(()=>{w(1),T(1)},[m,g,b]),n?(0,H.jsxs)(`div`,{className:`bg-[#F8FAFC] min-h-screen text-[#172033]`,children:[(0,H.jsx)(Ku,{title:`Bizning o'qituvchilar — Samarqand Prezident Maktabi`,description:`Samarqand Prezident maktabining yuqori malakali mahalliy va xorijiy pedagoglari ro'yxati va ma'lumotlari.`}),(0,H.jsxs)(`div`,{className:`bg-[#0B2D5C] text-white relative overflow-hidden py-16 md:py-20`,children:[(0,H.jsx)(`div`,{className:`absolute inset-0 bg-radial from-[#164C8C]/40 to-transparent pointer-events-none`}),(0,H.jsxs)(`div`,{className:`container-page relative z-10 space-y-4`,children:[(0,H.jsxs)(`div`,{className:`inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-[#C59B27]/20 border border-[#C59B27]/40 text-[#C59B27] text-xs font-extrabold uppercase tracking-wider`,children:[(0,H.jsx)(Su,{size:14}),` Pedagogik Tarkib`]}),(0,H.jsx)(`h1`,{className:`text-3xl md:text-5xl font-black tracking-tight text-white leading-tight`,children:`Bizning o‘qituvchilar`}),(0,H.jsx)(`p`,{className:`text-sm md:text-base text-gray-200 leading-relaxed max-w-2xl font-medium`,children:`Samarqand Prezident maktabining yuqori malakali mahalliy va xorijiy pedagoglari.`})]})]}),(0,H.jsxs)(`div`,{className:`container-page py-10 space-y-10`,children:[(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-
355`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-sky-50 text-[#0284c7] flex items-center justify-center shrink-0`,children:(0,H.jsx)(Mu,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Jami pedagoglar`}),(0,H.jsxs)(`span`,{className:`text-2xl font-black text-[#0B2D5C]`,children:[c.total||35,` ta`]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-emerald-50 text-emerald-600 flex items-center justify-center shrink-0`,children:(0,H.jsx)(Hl,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Mahalliy pedagoglar`}),(0,H.jsxs)(`span`,{className:`text-2xl font-black text-[#0B2D5C]`,children:[c.local||27,` ta`]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-purple-50 text-purple-600 flex items-center justify-center shrink-0`,children:(0,H.jsx)(Vl,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Xorijiy pedagoglar`}),(0,H.jsxs)(`span`,{className:`text-2xl font-black text-[#0B2D5C]`,children:[c.foreign||8,` ta`]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-indigo-50 text-indigo-600 flex items-center justify-center shrink-0`,children:(0,H.jsx)(Y,{size:24})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Xalqaro sertifikatli`}),(0,H.jsxs)(`span`,{className:`text-2xl font-black text-[#0B2D5C]`,children:[c.withCertificates||24,` ta`]})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-3xl border border-[#E4E7EC] shadow-xs flex flex-col lg:flex-row items-stretch lg:items-center justify-between gap-4`,children:[(0,H.jsx)(`div`,{className:`flex flex-wrap items-center gap-1.5 bg-[#F8FAFC] p-1.5 rounded-2xl border border-[#E4E7EC] w-fit`,children:[{key:`ALL`,label:`Barchasi`},{key:`LOCAL`,label:`Mahalliy pedagoglar`},{key:`FOREIGN`,label:`Xorijiy pedagoglar`},{key:`SUPPORT`,label:`Oʻquv yordamchi xodimlar`}].map(e=>(0,H.jsx)(`button`,{onClick:()=>h(e.key),className:`px-4 py-2 rounded-xl text-xs font-black transition-all cursor-pointer ${m===e.key?`bg-[#0B2D5C] text-white shadow-xs`:`text-[#667085] hover:bg-gray-200 hover:text-[#0B2D5C]`}`,children:e.label},e.key))}),(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-stretch sm:items-center gap-3`,children:[(0,H.jsx)(`div`,{className:`relative min-w-[200px]`,children:(0,H.jsxs)(`select`,{value:g,onChange:e=>_(e.target.value),className:`input-academic text-xs font-bold w-full cursor-pointer bg-white`,children:[(0,H.jsx)(`option`,{value:`ALL`,children:`Barcha fanlar`}),o.map(e=>(0,H.jsx)(`option`,{value:e.id,children:e.nameUz},e.id))]})}),(0,H.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),x(v)},className:`flex gap-2 flex-1 min-w-[260px]`,children:[(0,H.jsxs)(`div`,{className:`relative flex-1`,children:[(0,H.jsx)(_u,{className:`absolute left-3.5 top-1/2 -translate-y-1/2 text-gray-400`,size:15}),(0,H.jsx)(`input`,{type:`text`,placeholder:`O‘qituvchini qidirish...`,value:v,onChange:e=>y(e.target.value),className:`input-academic pl-10 text-xs w-full`})]}),(0,H.jsx)(`button`,{type:`submit`,className:`bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-4 py-2 rounded-xl text-xs font-bold cursor-pointer shrink-0 transition-colors`,children:`Qidirish`})]})]})]}),(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsx)(`h2`,{className:`text-2xl sm:text-3xl font-black text-[#0B2D5C] tracking-tight`,children:`O‘qituvchilar`}),f?(0,H.jsx)(`div`,{className:`p-16 text-center text-xs font-bold text-gray-500`,children:`O‘qituvchilar ro‘yxati yuklanmoqda...`}):i.length===0?(0,H.jsxs)(`div`,{className:`bg-white p-16 rounded-3xl border border-[#
35E4E7EC] text-center space-y-2`,children:[(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:`Hech qanday o‘qituvchi topilmadi`}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500`,children:`Qidiruv yoki filter parametrlarini o'zgartirib ko'ring.`})]}):(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 sm:gap-5`,children:i.map(e=>{let t=e.position||e.subjectRef?.nameUz||e.subjectNameStr||`O'qituvchi`;return(0,H.jsxs)(I,{to:`/teachers/${e.slug}`,className:`group relative block aspect-[3/4] w-full rounded-2xl overflow-hidden bg-gray-100 shadow-sm hover:shadow-xl transition-all duration-300 border border-gray-200/80 hover:-translate-y-1 cursor-pointer`,children:[(0,H.jsx)(`img`,{src:e.photo?X(e.photo):Yp,alt:e.fullName,onError:e=>{e.target.src=Yp},className:`w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-500`}),(0,H.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent opacity-60 group-hover:opacity-80 transition-opacity`}),(0,H.jsxs)(`div`,{className:`absolute bottom-3 left-3 right-3 bg-white/95 backdrop-blur-md p-3 rounded-xl border border-white/80 shadow-md text-left transition-transform group-hover:scale-[1.02]`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-xs sm:text-sm text-[#0B2D5C] leading-snug truncate`,children:e.fullName}),(0,H.jsx)(`p`,{className:`text-[11px] sm:text-xs text-[#0284c7] font-semibold truncate mt-0.5`,children:t})]})]},e.id)})})]}),u&&u.totalPages>1&&(0,H.jsx)(`div`,{className:`flex justify-center items-center gap-2 pt-6`,children:Array.from({length:u.totalPages},(e,t)=>t+1).map(e=>(0,H.jsx)(`button`,{onClick:()=>{w(e),T(e)},className:`w-9 h-9 rounded-xl font-bold text-xs flex items-center justify-center transition-all cursor-pointer ${C===e?`bg-[#0B2D5C] text-white shadow-xs scale-105`:`bg-white border border-[#E4E7EC] text-gray-600 hover:bg-gray-100`}`,children:e},e))})]})]}):(0,H.jsxs)(`div`,{className:`container-page py-16 text-center text-[#172033]`,children:[(0,H.jsx)(Ku,{title:`Bizning o'qituvchilar — Samarqand Prezident Maktabi`}),(0,H.jsxs)(`div`,{className:`max-w-xl mx-auto bg-white p-10 rounded-3xl border border-[#E4E7EC] shadow-sm space-y-4`,children:[(0,H.jsx)(`div`,{className:`w-16 h-16 bg-amber-50 text-amber-600 rounded-2xl flex items-center justify-center mx-auto`,children:(0,H.jsx)(Nl,{size:32})}),(0,H.jsx)(`h2`,{className:`text-xl font-extrabold text-[#0B2D5C]`,children:`O‘qituvchilar ro‘yxati hali e’lon qilinmadi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] leading-relaxed font-medium`,children:`Pedagogik jamoamiz haqidagi rasmiy ma'lumotlar va o'qituvchilar ro'yxati tez orada taqdim etiladi.`})]})]})},Zp=`https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=600`,Qp=()=>{let{slug:e}=xn(),{t}=W(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)([]),[o,s]=(0,S.useState)(!0);if((0,S.useEffect)(()=>{s(!0),Jp.getTeacherBySlug(e).then(e=>{e.data?.data&&(r(e.data.data.teacher),a(e.data.data.relatedTeachers||[]))}).catch(e=>console.error(`Failed to load teacher detail:`,e)).finally(()=>s(!1))},[e]),o)return(0,H.jsx)(`div`,{className:`p-20 text-center text-xs font-bold text-gray-500`,children:`O‘qituvchi profili yuklanmoqda...`});if(!n)return(0,H.jsxs)(`div`,{className:`container-page py-20 text-center space-y-4`,children:[(0,H.jsx)(`h2`,{className:`text-xl font-bold text-[#0B2D5C]`,children:`O‘qituvchi topilmadi`}),(0,H.jsxs)(I,{to:`/oqituvchilar`,className:`inline-flex items-center gap-2 bg-[#0B2D5C] text-white px-5 py-2.5 rounded-xl text-xs font-bold`,children:[(0,H.jsx)(pl,{size:16}),` O‘qituvchilar ro‘yxatiga qaytish`]})]});let c=n.teacherType===`FOREIGN`,l=n.subjectRef?.nameUz||n.subjectNameStr||`Fan o‘qituvchisi`,u=n.certificates||[],d=n.achievements||[],f=u.filter(e=>e.type===`NATIONAL`),p=u.filter(e=>e.type===`INTERNATIONAL`);d.filter(e=>e.type===`PROFESSIONAL`),d.filter(e=>e.type===`ACADEMIC`);let m=`${n.fullName} — ${l} o‘qituvchisi | Samarqand Prezident Maktabi`;return(0,H.jsxs)(`div`,{className:`bg-[#F8FAFC] min-h-screen text-[#172033]`,children:[(0,H.jsx)(Ku,{title:m,description:`${n.fullName} - ${n.position}. ${n.biography||``}`}
35),(0,H.jsx)(`div`,{className:`bg-white border-b border-[#E4E7EC]`,children:(0,H.jsx)(`div`,{className:`container-page py-4`,children:(0,H.jsxs)(I,{to:`/oqituvchilar`,className:`inline-flex items-center gap-2 text-xs font-bold text-[#0B2D5C] hover:text-[#0284c7] transition-colors`,children:[(0,H.jsx)(pl,{size:16}),` O‘qituvchilar ro‘yxatiga qaytish`]})})}),(0,H.jsxs)(`div`,{className:`container-page py-10 space-y-10`,children:[(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl border border-[#E4E7EC] shadow-xs p-6 md:p-10 flex flex-col md:flex-row items-center md:items-start gap-8`,children:[(0,H.jsxs)(`div`,{className:`w-48 h-64 md:w-56 md:h-72 rounded-2xl bg-gray-100 overflow-hidden shrink-0 border border-gray-200 shadow-sm relative`,children:[(0,H.jsx)(`img`,{src:n.photo?X(n.photo):Zp,alt:n.fullName,onError:e=>{e.target.src=Zp},className:`w-full h-full object-cover object-top`}),(0,H.jsx)(`span`,{className:`absolute top-3 right-3 px-2.5 py-1 rounded-full text-[10px] font-extrabold uppercase tracking-wider backdrop-blur-md shadow-xs ${c?`bg-purple-600/90 text-white`:`bg-[#0B2D5C]/90 text-white`}`,children:c?`Xorijiy`:`Mahalliy`})]}),(0,H.jsxs)(`div`,{className:`flex-1 space-y-4 text-center md:text-left`,children:[(0,H.jsx)(`div`,{className:`inline-block px-3 py-1 bg-sky-50 text-[#0284c7] font-black text-xs rounded-lg border border-sky-100`,children:l}),(0,H.jsx)(`h1`,{className:`text-2xl md:text-4xl font-black text-[#0B2D5C] tracking-tight leading-tight`,children:n.fullName}),(0,H.jsx)(`p`,{className:`text-sm font-extrabold text-[#0284c7]`,children:n.position}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center md:justify-start gap-3 pt-2`,children:[n.pedagogicalExperience>0&&(0,H.jsxs)(`span`,{className:`px-3 py-1.5 bg-slate-50 border border-slate-200 rounded-xl text-xs font-bold text-slate-700`,children:[`🎓 `,n.pedagogicalExperience,` yil pedagogik tajriba`]}),n.professionalQualification&&(0,H.jsxs)(`span`,{className:`px-3 py-1.5 bg-amber-50 border border-amber-200 rounded-xl text-xs font-bold text-amber-800`,children:[`🏅 `,n.professionalQualification]})]}),n.biography&&(0,H.jsx)(`div`,{className:`pt-2 border-t border-gray-100 text-xs text-gray-600 leading-relaxed font-medium`,children:n.biography})]})]}),(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl border border-[#E4E7EC] shadow-xs p-6 md:p-8 space-y-6`,children:[(0,H.jsxs)(`h2`,{className:`text-xl font-black text-[#0B2D5C] border-b border-gray-100 pb-3 flex items-center gap-2`,children:[(0,H.jsx)(Hl,{size:22,className:`text-[#0284c7]`}),` Pedagog haqida ma’lumotlar`]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 text-xs`,children:[n.education&&(0,H.jsxs)(`div`,{className:`p-4 bg-gray-50 rounded-2xl border border-gray-100 space-y-1`,children:[(0,H.jsx)(`span`,{className:`font-bold text-gray-500 uppercase tracking-wider block text-[10px]`,children:`Ma’lumoti`}),(0,H.jsx)(`span`,{className:`font-extrabold text-[#0B2D5C] text-sm block`,children:n.education})]}),n.specialization&&(0,H.jsxs)(`div`,{className:`p-4 bg-gray-50 rounded-2xl border border-gray-100 space-y-1`,children:[(0,H.jsx)(`span`,{className:`font-bold text-gray-500 uppercase tracking-wider block text-[10px]`,children:`Mutaxassisligi`}),(0,H.jsx)(`span`,{className:`font-extrabold text-[#0B2D5C] text-sm block`,children:n.specialization})]}),n.pedagogicalExperience>0&&(0,H.jsxs)(`div`,{className:`p-4 bg-gray-50 rounded-2xl border border-gray-100 space-y-1`,children:[(0,H.jsx)(`span`,{className:`font-bold text-gray-500 uppercase tracking-wider block text-[10px]`,children:`Pedagogik tajribasi`}),(0,H.jsxs)(`span`,{className:`font-extrabold text-[#0B2D5C] text-sm block`,children:[n.pedagogicalExperience,` yil`]})]}),n.professionalExperience>0&&(0,H.jsxs)(`div`,{className:`p-4 bg-gray-50 rounded-2xl border border-gray-100 space-y-1`,children:[(0,H.jsx)(`span`,{className:`font-bold text-gray-500 uppercase tracking-wider block text-[10px]`,children:`Kasbiy tajribasi`}),(0,H.jsxs)(`span`,{className:`font-extrabold text-[#0B2D5C] text-sm block`,children:[n.professionalExperience,` yil`]})]})]})]}),u.length>0&&(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl border border-[#
35E4E7EC] shadow-xs p-6 md:p-8 space-y-6`,children:[(0,H.jsxs)(`h2`,{className:`text-xl font-black text-[#0B2D5C] border-b border-gray-100 pb-3 flex items-center gap-2`,children:[(0,H.jsx)(Y,{size:22,className:`text-emerald-600`}),` Milliy va Xalqaro Sertifikatlar`]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:[p.length>0&&(0,H.jsxs)(`div`,{className:`space-y-3`,children:[(0,H.jsx)(`span`,{className:`text-xs font-black uppercase text-indigo-700 tracking-wider block`,children:`🌐 Xalqaro sertifikatlar`}),(0,H.jsx)(`div`,{className:`space-y-2`,children:p.map((e,t)=>(0,H.jsxs)(`div`,{className:`p-4 bg-indigo-50/60 rounded-2xl border border-indigo-200 flex items-center justify-between text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`font-extrabold text-indigo-900 block`,children:e.nameUz}),(0,H.jsxs)(`span`,{className:`text-[11px] text-indigo-700 font-semibold`,children:[e.issuer||`Xalqaro Tashkilot`,` `,e.level?`(${e.level})`:``]})]}),e.issueDate&&(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-white rounded-lg text-indigo-800 font-bold shadow-2xs`,children:e.issueDate})]},t))})]}),f.length>0&&(0,H.jsxs)(`div`,{className:`space-y-3`,children:[(0,H.jsx)(`span`,{className:`text-xs font-black uppercase text-emerald-700 tracking-wider block`,children:`🇺🇿 Milliy sertifikatlar`}),(0,H.jsx)(`div`,{className:`space-y-2`,children:f.map((e,t)=>(0,H.jsxs)(`div`,{className:`p-4 bg-emerald-50/60 rounded-2xl border border-emerald-200 flex items-center justify-between text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`font-extrabold text-emerald-900 block`,children:e.nameUz}),(0,H.jsxs)(`span`,{className:`text-[11px] text-emerald-700 font-semibold`,children:[e.issuer||`Davlat Idorasi`,` `,e.level?`(${e.level})`:``]})]}),e.issueDate&&(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-white rounded-lg text-emerald-800 font-bold shadow-2xs`,children:e.issueDate})]},t))})]})]})]}),d.length>0&&(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl border border-[#E4E7EC] shadow-xs p-6 md:p-8 space-y-6`,children:[(0,H.jsxs)(`h2`,{className:`text-xl font-black text-[#0B2D5C] border-b border-gray-100 pb-3 flex items-center gap-2`,children:[(0,H.jsx)(gl,{size:22,className:`text-[#C59B27]`}),` Asosiy Kasbiy va Akademik Yutuqlar`]}),(0,H.jsx)(`div`,{className:`space-y-4`,children:d.map((e,t)=>(0,H.jsxs)(`div`,{className:`p-5 bg-amber-50/50 rounded-2xl border border-amber-200 space-y-2 text-xs`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,H.jsx)(`span`,{className:`font-black text-[#0B2D5C] text-sm`,children:e.titleUz}),e.year&&(0,H.jsxs)(`span`,{className:`px-2.5 py-1 bg-amber-100 text-amber-900 font-bold rounded-lg`,children:[e.year,`-yil`]})]}),e.organization&&(0,H.jsxs)(`span`,{className:`text-[11px] font-bold text-amber-800 block`,children:[`🏛️ `,e.organization]}),e.descriptionUz&&(0,H.jsx)(`p`,{className:`text-gray-700 font-medium leading-relaxed pt-1`,children:e.descriptionUz})]},t))})]}),i.length>0&&(0,H.jsxs)(`div`,{className:`space-y-6 pt-4`,children:[(0,H.jsxs)(`div`,{className:`border-b border-[#E4E7EC] pb-3`,children:[(0,H.jsx)(`h3`,{className:`text-xl font-black text-[#0B2D5C]`,children:`Boshqa O‘qituvchilar`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Ushbu guruhdagi va fandagi boshqa pedagoglar ro'yxati`})]}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6`,children:i.map(e=>(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl border border-[#E4E7EC] p-4 flex items-center gap-4 hover:shadow-md transition-shadow`,children:[(0,H.jsx)(`img`,{src:e.photo||Zp,alt:e.fullName,onError:e=>{e.target.src=Zp},className:`w-16 h-16 rounded-2xl object-cover object-top shrink-0 border border-gray-200`}),(0,H.jsxs)(`div`,{className:`space-y-1 overflow-hidden`,children:[(0,H.jsx)(`h4`,{className:`font-extrabold text-xs text-[#0B2D5C] truncate`,children:e.fullName}),(0,H.jsx)(`span`,{className:`text-[11px] text-[#0284c7] font-bold block truncate`,children:e.position}),(0,H.jsxs)(I,{to:`/teachers/${e.slug}`,className:`text-[10px] font-extrabold text-[#0B2D5C] hover:underline inline-flex items-center gap-0.5`,children:[`Profilga o'tish `,(0,H.jsx)(Dl,{size:12})]})]})]},e.id))})]})]})]})},$p=()=>{let{t:e}=W(),t=[{id:1,title:`STEM / Physics Teacher (Cambridge IGCSE & A Level)`,department:`Akademik bo'lim`,type:`To'liq stavka (Full-time)`,deadline:`2026-09-01`,location:`Samarqand shahri`,description:`Prezident maktabida yuqori sinf o'quvchilariga xalqaro Cambridge dasturi asosida Fizika va STEM fanlaridan dars beradigan xalqaro malakali pedagog talab etiladi.`}
35,{id:2,title:`Computer Science & Robotics Instructor`,department:`Axborot Texnologiyalari`,type:`To'liq stavka (Full-time)`,deadline:`2026-09-15`,location:`Samarqand shahri`,description:`O'quvchilarga dasturlash, algoritm va robototexnika yo'nalishlarida amaliy va nazariy bilim beruvchi iqtidorli mutaxassis.`}];return(0,H.jsxs)(`div`,{className:`container-page py-10 max-w-5xl text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Vacancies`)}),(0,H.jsx)(Bp,{title:e(`Vacancies`),parentTitle:e(`About Us`)}),(0,H.jsx)(`div`,{className:`bg-white p-8 rounded-2xl shadow-xs border border-[#E4E7EC] mb-10`,children:(0,H.jsx)(`p`,{className:`text-sm md:text-base text-[#667085] leading-relaxed`,children:e(`Vacancies Description`)})}),t.length>0?(0,H.jsx)(`div`,{className:`space-y-6`,children:t.map(e=>(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-8 rounded-2xl border border-[#E4E7EC] shadow-xs hover:border-[#0B2D5C] transition-colors`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col md:flex-row justify-between md:items-center gap-4 mb-4 pb-4 border-b border-[#E4E7EC]`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#C59B27] uppercase tracking-wider block mb-1`,children:e.department}),(0,H.jsx)(`h3`,{className:`text-lg md:text-xl font-bold text-[#0B2D5C]`,children:e.title})]}),(0,H.jsxs)(`a`,{href:`mailto:[email protected]`,className:`inline-flex items-center justify-center gap-2 bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-6 py-2.5 rounded-xl text-xs font-bold transition-colors shadow-sm shrink-0`,children:[(0,H.jsx)(vu,{size:14}),` Resume topshirish`]})]}),(0,H.jsx)(`p`,{className:`text-xs md:text-sm text-[#667085] mb-6 leading-relaxed`,children:e.description}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4 text-xs font-medium text-[#667085]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-1.5 bg-[#F5F7FA] px-3 py-1.5 rounded-lg border border-[#E4E7EC]`,children:[(0,H.jsx)(bl,{size:14,className:`text-[#0B2D5C]`}),(0,H.jsx)(`span`,{children:e.type})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-1.5 bg-[#F5F7FA] px-3 py-1.5 rounded-lg border border-[#E4E7EC]`,children:[(0,H.jsx)(Ql,{size:14,className:`text-[#0B2D5C]`}),(0,H.jsx)(`span`,{children:e.location})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-1.5 bg-[#F5F7FA] px-3 py-1.5 rounded-lg border border-[#E4E7EC]`,children:[(0,H.jsx)(Cl,{size:14,className:`text-[#0B2D5C]`}),(0,H.jsxs)(`span`,{children:[`Muddat: `,e.deadline]})]})]})]},e.id))}):(0,H.jsxs)(`div`,{className:`text-center p-12 bg-white rounded-2xl shadow-xs border border-[#E4E7EC] text-[#667085]`,children:[(0,H.jsx)(bl,{size:40,className:`mx-auto mb-3 text-[#667085]`}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C] mb-1`,children:e(`No Vacancies Available`)}),(0,H.jsx)(`p`,{className:`text-xs max-w-md mx-auto leading-relaxed`,children:e(`Vacancies Description`)})]})]})},em=()=>{let{t:e}=W(),t=[{grade:`5–7 sinflar`,sub:`Lower Secondary`,desc:`STEAM fanlari bo'yicha bazaviy bilimlarni shakllantirish, mantiqiy fikrlash va ingliz tilida akademik muloqot tayyorgarligi.`},{grade:`8–9 sinflar`,sub:`Cambridge IGCSE`,desc:`Xalqaro IGCSE fanlari (Matematika, Fizika, Kimyo, Biologiya, IT) bo mezonlari bo'yicha chuqurlashtirilgan ta'lim va imtihonlar.`},{grade:`10–11 sinflar`,sub:`Cambridge AS & A Level`,desc:`Dunyodagi TOP 100 oliygohlarga to'g'ridan-to mezonli kirish imkonini beruvchi ixtisoslashgan akademik standartlar.`}],n=[{time:`07:00 - 08:30`,title:`Uyg'onish va ertalabki vaqt`,desc:`Ertalabki badan tarbiya, yuvinish, xonalarni tartibga keltirish va noshtachta.`,icon:wu},{time:`08:30 - 15:30`,title:`Akademik darslar`,desc:`Asosiy dars jarayonlari, tushlik tanaffusi va amaliy laboratoriya mashg'ulotlari.`,icon:Nl},{time:`15:30 - 22:00`,title:`Kechki mashg'ulotlar va ta'til`,desc:`To'garaklar, sport mashg mezonlari, mustaqil tayyorgarlik (homework) va kechki ovqat.`,icon:nu}],r=[{score:`5 (A/A*)`,percent:`85% - 100%`,desc:`A'lo — fan bo'yicha chuqur tahliliy va amaliy bilimga ega.`},{score:`4 (B/C)`,percent:`70% - 84%`,desc:`Yaxshi — akademik talablarni to'liq bajaradi.`},{score:`3 (D/E)`,percent:`50% - 69%`,desc:`Qoniqarli — bazaviy standartlar darajasida.`},{score:`2 (F/G)`,percent:`30% - 49%`,desc:`Qoniqarsiz — takroriy tayyorgarlik talab etiladi.`},{score:`1 (U)`,percent:`0% - 29%`,desc:`Baholanmagan — fan talablari bajarilmagan.`}],i=[{title:`Robototexnika va dasturlash`,icon:Il,desc:`Python, C++, 3D modellashtirish va avtomatlashtirish.`},{title:`San'at va musiqa`,icon:iu,desc:`Rasm chizish, milliy sozlar va teatr to'garagi.`},{title:`Fan to'garaklari`,icon:yl,desc:` STEAM fanlari bo'yicha amaliy tajriba va izlanishlar.`}
35,{title:`Olimpiada tayyorlovi`,icon:ku,desc:`Xalqaro va respublika olimpiadalariga intensiv tayyorgarlik.`},{title:`Sport mashg'ulotlari`,icon:zl,desc:`Futbol, basketbol, suzish va shaxmat mashg'ulotlari.`}];return(0,H.jsxs)(`div`,{className:`container-page py-10 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Education`)}),(0,H.jsx)(Bp,{title:e(`Education`),parentTitle:e(`School`)}),(0,H.jsxs)(`section`,{className:`bg-white p-8 md:p-12 rounded-2xl shadow-xs border border-[#E4E7EC] mb-12`,children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#C59B27] uppercase tracking-widest block mb-2`,children:e(`Education Standard`)}),(0,H.jsx)(`h2`,{className:`text-2xl md:text-3xl font-extrabold text-[#0B2D5C] mb-6`,children:`Milliy va Xalqaro Cambridge Dasturi Uyg'unligi`}),(0,H.jsx)(`p`,{className:`text-sm md:text-base text-[#667085] leading-relaxed max-w-4xl`,children:`Samarqand shahridagi Prezident maktabida ta'lim O'zbekiston Respublikasining davlat ta'lim standartlari hamda Cambridge Assessment International Education xalqaro o'quv dasturi asosida ingliz tilida olib boriladi.`})]}),(0,H.jsxs)(`section`,{className:`mb-16`,children:[(0,H.jsx)(`h2`,{className:`text-xl md:text-2xl font-extrabold text-[#0B2D5C] mb-8 text-center`,children:e(`Academic Stages`)}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:t.map((e,t)=>(0,H.jsx)(`div`,{className:`bg-[#071D3B] text-white p-7 rounded-2xl border border-white/10 shadow-md flex flex-col justify-between`,children:(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#C59B27] uppercase tracking-wider block mb-2`,children:e.sub}),(0,H.jsx)(`h3`,{className:`text-2xl font-bold mb-4`,children:e.grade}),(0,H.jsx)(`p`,{className:`text-xs text-gray-300 leading-relaxed`,children:e.desc})]})},t))})]}),(0,H.jsxs)(`section`,{className:`bg-white p-8 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC] mb-16`,children:[(0,H.jsx)(`h2`,{className:`text-xl font-bold text-[#0B2D5C] mb-4`,children:e(`Academic Programme Explanation`)}),(0,H.jsxs)(`div`,{className:`prose max-w-none text-xs md:text-sm text-[#667085] leading-relaxed space-y-4`,children:[(0,H.jsx)(`p`,{children:`Dastur o'quvchilarning tanqidiy va tahliliy fikrlashini rivojlantirishga yo'naltirilgan. Fanlar amaliy laboratoriya ishlari, ilmiy loyihalar hamda individual tadqiqotlar bilan boyitilgan.`}),(0,H.jsx)(`p`,{children:`Bitiruvchilar Cambridge AS & A Level sertifikatlariga ega bo'lib, ular dunyoning yetakchi universitetlariga imtihonsiz yoki to'liq imtiyozlar bilan qabul qilinish imkoniyatiga ega bo'ladilar.`})]})]}),(0,H.jsxs)(`section`,{className:`mb-16`,children:[(0,H.jsx)(`h2`,{className:`text-xl font-bold text-[#0B2D5C] mb-6`,children:e(`About Programme`)}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`,children:[{title:`5–11-sinflar`,desc:`Uzluksiz xalqaro ta'lim`},{title:`Tillar`,desc:`Ingliz, O'zbek va Rus tillari`},{title:`Gumanitar fanlar`,desc:`Tarix va jamiyatshunoslik`},{title:`AS va A Level`,desc:`Oliy bosqich ixtisoslashuv`},{title:`IGCSE fanlari`,desc:`STEAM fanlar majmuasi`}].map((e,t)=>(0,H.jsxs)(`div`,{className:`p-5 bg-white rounded-xl border border-[#E4E7EC] shadow-2xs`,children:[(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-base mb-1`,children:e.title}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:e.desc})]},t))})]}),(0,H.jsxs)(`section`,{className:`bg-white p-8 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC] mb-16`,children:[(0,H.jsx)(`h2`,{className:`text-xl md:text-2xl font-bold text-[#0B2D5C] mb-8 text-center`,children:e(`Daily Schedule`)}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:n.map((e,t)=>{let n=e.icon;return(0,H.jsxs)(`div`,{className:`bg-[#F5F7FA] p-6 rounded-xl border border-[#E4E7EC]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3 mb-3`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-lg bg-[#0B2D5C] text-white flex items-center justify-center`,children:(0,H.jsx)(n,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#C59B27]`,children:e.time}),(0,H.jsx)(`h3`,{className:`text-sm font-bold text-[#0B2D5C]`,children:e.title})]})]}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] leading-relaxed`,children:e.desc})]},t)})})]}),(0,H.jsxs)(`section`,{className:`mb-16`,children:[(0,H.jsx)(`h2`,{className:`text-xl md:text-2xl font-bold text-[#0B2D5C] mb-8 text-center`,children:e(`Grading System`)}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 ga
35p-4`,children:r.map((e,t)=>(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-xl border border-[#E4E7EC] text-center shadow-2xs`,children:[(0,H.jsx)(`span`,{className:`text-lg font-black text-[#0B2D5C] block mb-1 font-mono`,children:e.score}),(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#C59B27] block mb-2`,children:e.percent}),(0,H.jsx)(`p`,{className:`text-[11px] text-[#667085] leading-tight`,children:e.desc})]},t))})]}),(0,H.jsxs)(`section`,{className:`bg-white p-8 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC] mb-16`,children:[(0,H.jsx)(`h2`,{className:`text-xl md:text-2xl font-bold text-[#0B2D5C] mb-8 text-center`,children:e(`Extracurricular Activities`)}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`,children:i.map((e,t)=>{let n=e.icon;return(0,H.jsxs)(`div`,{className:`p-5 bg-[#F5F7FA] rounded-xl border border-[#E4E7EC] flex items-start gap-4`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-lg bg-[#0B2D5C] text-white flex items-center justify-center shrink-0 mt-0.5`,children:(0,H.jsx)(n,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-sm mb-1`,children:e.title}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] leading-relaxed`,children:e.desc})]})]},t)})})]}),(0,H.jsxs)(`section`,{className:`bg-[#071D3B] text-white p-8 md:p-12 rounded-2xl shadow-md border-b-4 border-[#C59B27] mb-16`,children:[(0,H.jsx)(`h2`,{className:`text-xl md:text-2xl font-bold text-[#C59B27] mb-6 text-center`,children:e(`Graduation Requirements`)}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6`,children:[`AS Level imtihonlari muvaffaqiyati`,`A Level diplomi va ixtisoslik sertifikatlar`,`Milliy davlat attestatsiyasi imtihonlari`,`Ijtimoiy-jamoat va amaliy loyihalar`].map((e,t)=>(0,H.jsxs)(`div`,{className:`flex items-start gap-3 bg-white/10 p-4 rounded-xl border border-white/10`,children:[(0,H.jsx)(Al,{size:18,className:`text-[#C59B27] shrink-0 mt-0.5`}),(0,H.jsx)(`span`,{className:`text-xs font-semibold text-gray-200`,children:e})]},t))})]}),(0,H.jsxs)(`section`,{className:`bg-white p-8 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC]`,children:[(0,H.jsx)(`h2`,{className:`text-xl md:text-2xl font-bold text-[#0B2D5C] mb-8 text-center`,children:e(`University Acceptance`)}),(0,H.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4`,children:[{name:`O'zbekiston`,flag:`🇺🇿`,count:`100%`},{name:`AQSH (USA)`,flag:`🇺🇸`,count:`TOP Ivy League`},{name:`Buyuk Britaniya (UK)`,flag:`🇬🇧`,count:`Russell Group`},{name:`Kanada (Canada)`,flag:`🇨🇦`,count:`U of Toronto`},{name:`Italiya (Italy)`,flag:`🇮🇹`,count:`Politecnico`},{name:`Avstraliya (Australia)`,flag:`🇦🇺`,count:`Go8 Universities`},{name:`Germaniya (Germany)`,flag:`🇩🇪`,count:`TUM / Jacobs`},{name:`Koreya (South Korea)`,flag:`🇰🇷`,count:`KAIST / SNU`},{name:`Yaponiya (Japan)`,flag:`🇯🇵`,count:`University of Tokyo`},{name:`BAA (UAE)`,flag:`🇦🇪`,count:`NYU Abu Dhabi`}].map((e,t)=>(0,H.jsxs)(`div`,{className:`p-4 bg-[#F5F7FA] rounded-xl border border-[#E4E7EC] text-center hover:border-[#0B2D5C] transition-colors`,children:[(0,H.jsx)(`span`,{className:`text-3xl block mb-2`,children:e.flag}),(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-xs mb-1`,children:e.name}),(0,H.jsx)(`span`,{className:`text-[10px] text-[#C59B27] font-extrabold uppercase`,children:e.count})]},t))})]})]})},tm=()=>{let{t:e}=W(),t=[{title:e(`Stage 1 Title`),desc:e(`Stage 1 Desc`)},{title:e(`Stage 2 Title`),desc:e(`Stage 2 Desc`)},{title:e(`Stage 3 Title`),desc:e(`Stage 3 Desc`)}];return(0,H.jsxs)(`div`,{className:`container-page py-10 max-w-5xl text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Admissions 2026`)}),(0,H.jsx)(Bp,{title:e(`Admissions 2026`),parentTitle:e(`Admissions`)}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-3 gap-8 mb-12`,children:[(0,H.jsxs)(`div`,{className:`lg:col-span-2 space-y-8`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-8 rounded-2xl shadow-xs border border-[#E4E7EC]`,children:[(0,H.jsx)(`h2`,{className:`text-xl font-bold text-[#0B2D5C] mb-6 border-b border-[#
35E4E7EC] pb-3`,children:e(`Admissions Stages`)}),(0,H.jsx)(`div`,{className:`space-y-4`,children:t.map((e,t)=>(0,H.jsxs)(`div`,{className:`flex gap-4 p-4 rounded-xl bg-[#F5F7FA] border-l-4 border-[#0B2D5C]`,children:[(0,H.jsx)(`div`,{className:`shrink-0 mt-0.5`,children:(0,H.jsx)(`div`,{className:`w-7 h-7 rounded-full bg-[#0B2D5C] text-white flex items-center justify-center font-bold text-xs`,children:t+1})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-sm mb-1`,children:e.title}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs leading-relaxed`,children:e.desc})]})]},t))})]}),(0,H.jsxs)(`div`,{className:`bg-white p-8 rounded-2xl shadow-xs border border-[#E4E7EC]`,children:[(0,H.jsx)(`h2`,{className:`text-xl font-bold text-[#0B2D5C] mb-4 border-b border-[#E4E7EC] pb-3`,children:e(`Required Documents`)}),(0,H.jsxs)(`ul`,{className:`list-disc pl-5 space-y-2 text-[#667085] text-xs leading-relaxed mb-6`,children:[(0,H.jsx)(`li`,{children:e(`Doc 1`)}),(0,H.jsx)(`li`,{children:e(`Doc 2`)}),(0,H.jsx)(`li`,{children:e(`Doc 3`)}),(0,H.jsx)(`li`,{children:e(`Doc 4`)})]}),(0,H.jsxs)(`a`,{href:`#`,className:`inline-flex items-center gap-2 text-[#0B2D5C] hover:text-[#164C8C] transition-colors font-semibold text-xs`,children:[(0,H.jsx)(Rl,{size:16}),` `,e(`Download Full List`)]})]})]}),(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{className:`bg-[#071D3B] text-white p-6 rounded-2xl shadow-md border-b-4 border-[#C59B27]`,children:[(0,H.jsx)(`h3`,{className:`text-lg font-bold mb-4 text-[#C59B27] uppercase tracking-wider`,children:e(`Important Dates`)}),(0,H.jsxs)(`ul`,{className:`space-y-3.5 text-xs`,children:[(0,H.jsxs)(`li`,{className:`flex flex-col border-b border-white/10 pb-2.5`,children:[(0,H.jsx)(`span`,{className:`text-white font-bold`,children:e(`Date 1 Period`)}),(0,H.jsx)(`span`,{className:`text-gray-300`,children:e(`Date 1 Label`)})]}),(0,H.jsxs)(`li`,{className:`flex flex-col border-b border-white/10 pb-2.5`,children:[(0,H.jsx)(`span`,{className:`text-white font-bold`,children:e(`Date 2 Period`)}),(0,H.jsx)(`span`,{className:`text-gray-300`,children:e(`Date 2 Label`)})]}),(0,H.jsxs)(`li`,{className:`flex flex-col`,children:[(0,H.jsx)(`span`,{className:`text-white font-bold`,children:e(`Date 3 Period`)}),(0,H.jsx)(`span`,{className:`text-gray-300`,children:e(`Date 3 Label`)})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsxs)(`h3`,{className:`text-base font-bold text-[#0B2D5C] mb-3 flex items-center gap-2`,children:[(0,H.jsx)(jl,{size:18,className:`text-[#0B2D5C]`}),` `,e(`Call Center`)]}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mb-4 leading-relaxed`,children:e(`Call Center Sub`)}),(0,H.jsx)(`p`,{className:`font-bold text-[#0B2D5C] text-base`,children:`+998 71 200 00 00`}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs mt-0.5`,children:`ariza.piima.uz`})]})]})]})]})},nm=()=>{let{t:e}=W(),[t,n]=(0,S.useState)(null),[r,i]=(0,S.useState)(`1`);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>n(e.data?.data)).catch(e=>console.error(`Failed to load settings`,e))},[]);let a=t?.showAdmissionResults!==!1,o=t?.admissionPdf?X(t.admissionPdf):`/docs/qabul_natijalari_2026.pdf`,s=t?.admissionPdf2?X(t.admissionPdf2):null,c=r===`1`?o:s||o,l=t?.admissionPdfTitle1||`Samarqand shahridagi Prezident maktabi 1-bosqich imtihon natijalari`,u=t?.admissionPdfTitle2||`Samarqand shahridagi Prezident maktabi 2-bosqich imtihon natijalari`,d=r===`1`?l:u;return(0,H.jsxs)(`div`,{className:`bg-[#F7F9FC] min-h-screen py-6 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Admission Results`)||`Qabul natijalari — Prezident Maktabi Imtihon Natijalari`,description:`Samarqand shahridagi Prezident maktabiga kirish imtihonlari rasmiy natijalari.`}),(0,H.jsx)(Hp,{}),(0,H.jsxs)(`div`,{className:`container-page space-y-8 mt-2 px-4`,children:[(0,H.jsx)(Bp,{title:e(`Admission Results`)||`Qabul natijalari`,parentTitle:e(`Admissions`)||`Qabul`}),a?(0,H.jsxs)(H.Fragment,{children:[s&&(0,H.jsx)(`div`,{className:`flex justify-center`,children:(0,H.jsxs)(`div`,{className:`inline-flex items-center gap-2 bg-white p-1.5 rounded-2xl border border-[#
35E4E7EC] shadow-xs`,children:[(0,H.jsx)(`button`,{onClick:()=>i(`1`),className:`px-5 py-2.5 rounded-xl font-extrabold text-xs transition-all cursor-pointer ${r===`1`?`bg-[#0B2D5C] text-white shadow-md`:`text-[#667085] hover:bg-gray-100 hover:text-[#0B2D5C]`}`,children:`1-bosqich imtihon natijalari`}),(0,H.jsx)(`button`,{onClick:()=>i(`2`),className:`px-5 py-2.5 rounded-xl font-extrabold text-xs transition-all cursor-pointer ${r===`2`?`bg-[#0B2D5C] text-white shadow-md`:`text-[#667085] hover:bg-gray-100 hover:text-[#0B2D5C]`}`,children:`2-bosqich imtihon natijalari`})]})}),(0,H.jsx)(`h2`,{className:`text-xl sm:text-2xl md:text-3xl font-extrabold text-[#0B2D5C] text-center tracking-tight max-w-3xl mx-auto`,children:d}),(0,H.jsxs)(`div`,{className:`bg-white p-4 sm:p-8 rounded-3xl border border-[#E4E7EC] shadow-md space-y-6 max-w-5xl mx-auto`,children:[(0,H.jsx)(`div`,{className:`w-full h-[620px] sm:h-[750px] rounded-2xl overflow-hidden border border-gray-200/80 shadow-inner bg-slate-100 relative group`,children:(0,H.jsx)(`object`,{data:`${c}#toolbar=1&navpanes=1&scrollbar=1`,type:`application/pdf`,className:`w-full h-full border-none`,children:(0,H.jsx)(`iframe`,{src:`${c}#toolbar=1&navpanes=1&scrollbar=1`,className:`w-full h-full border-none`,title:`Prezident Maktabi Imtihon Natijalari PDF Hujjat`})})}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-4 pt-2`,children:[(0,H.jsxs)(`a`,{href:c,download:!0,className:`inline-flex items-center gap-2 bg-[#0284c7] hover:bg-[#0369a1] text-white px-6 py-2.5 rounded-xl font-bold text-xs shadow-sm transition-all cursor-pointer active:scale-98`,children:[(0,H.jsx)(Rl,{size:16}),(0,H.jsx)(`span`,{children:`Yuklab olish`})]}),(0,H.jsxs)(`a`,{href:c,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 bg-white hover:bg-blue-50 text-[#0284c7] border border-[#0284c7] px-6 py-2.5 rounded-xl font-bold text-xs shadow-xs transition-all cursor-pointer active:scale-98`,children:[(0,H.jsx)(K,{size:16}),(0,H.jsx)(`span`,{children:`Yangi oynada ochish`})]})]})]})]}):(0,H.jsxs)(`div`,{className:`max-w-3xl mx-auto bg-white p-8 sm:p-14 rounded-3xl border border-[#E4E7EC] shadow-md text-center space-y-4 my-8`,children:[(0,H.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-amber-50 text-amber-600 flex items-center justify-center mx-auto border border-amber-200 shadow-2xs`,children:(0,H.jsx)(Nl,{size:34})}),(0,H.jsx)(`h2`,{className:`text-xl sm:text-2xl font-extrabold text-[#0B2D5C] tracking-tight`,children:`Imtihon Natijalari Hali E'lon Qilinmadi`}),(0,H.jsx)(`p`,{className:`text-xs sm:text-sm text-[#667085] leading-relaxed max-w-lg mx-auto`,children:`Samarqand shahridagi Prezident maktabiga kirish imtihonlari natijalari tez orada ushbu sahifada rasman e'lon qilinadi. Iltimos, e'lonlarni kuzatib boring.`})]})]})]})},rm=()=>(0,H.jsx)(Xp,{}),im=()=>{let{t:e}=W(),t=[{id:1,name:`Samandarov Javohir`,grade:`10-sinf`,competition:`Xalqaro Ximoya / Chemistry Olympiad`,medal:`Oltin Medal 🥇`,year:`2026`,image:`https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=400`,description:`Xalqaro kimyo olimpiadasida 45 ta davlat vakillari orasida eng yuqori ball to'plagan holda 1-o'rinni egalladi.`},{id:2,name:`Rustamova Shahzoda`,grade:`9-sinf`,competition:`Cambridge International STEM Challenge`,medal:`Gran-Pri 🏆`,year:`2026`,image:`https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&q=80&w=400`,description:`Sun'iy intellekt va ekologik monitoring loyihasi bo'yicha eng yaxshi innovatsion g'oya g'olibi.`},{id:3,name:`Axmedov Bekzod`,grade:`11-sinf`,competition:`Xalqaro Matematika Olimpiadasi (IMO)`,medal:`Kumush Medal 🥈`,year:`2025`,image:`https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?auto=format&fit=crop&q=80&w=400`,description:`Murakkab mantiqiy algebra va geometriya masalalarini yuqori aniqlikda yechib kumush medal sohibi bo'ldi.`}];return(0,H.jsxs)(`div`,{className:`container-page py-10 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Our Pupils`)}),(0,H.jsx)(Bp,{title:e(`Our Pupils`),parentTitle:e(`Our Pride`)}),(0,H.jsxs)(`div`,{className:`bg-white p-8 rounded-2xl shadow-xs border border-[#
35E4E7EC] mb-12`,children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#C59B27] uppercase tracking-widest block mb-2`,children:`Faxrimiz`}),(0,H.jsx)(`h2`,{className:`text-2xl font-extrabold text-[#0B2D5C] mb-2`,children:e(`Student Achievements`)}),(0,H.jsx)(`p`,{className:`text-xs md:text-sm text-[#667085] leading-relaxed`,children:`Xalqaro va respublika olimpiadalarida Samarqand Prezident maktabi sharafini munosib himoya qilayotgan iqtidorli o'quvchilarimiz.`})]}),t.length>0?(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:t.map(e=>(0,H.jsx)(`div`,{className:`bg-white rounded-2xl border border-[#E4E7EC] shadow-xs overflow-hidden flex flex-col justify-between group hover:border-[#0B2D5C] transition-all`,children:(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`div`,{className:`h-64 bg-gray-100 relative overflow-hidden`,children:[(0,H.jsx)(`img`,{src:e.image,alt:e.name,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500`}),(0,H.jsx)(`div`,{className:`absolute top-3 right-3 bg-[#071D3B] text-[#C59B27] px-3 py-1 rounded-full font-bold text-xs shadow-md border border-[#C59B27]/40`,children:e.year})]}),(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#164C8C] block mb-1`,children:e.grade}),(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-lg mb-2`,children:e.name}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2 mb-3 bg-[#F5F7FA] p-2.5 rounded-lg border border-[#E4E7EC] text-xs font-bold text-[#0B2D5C]`,children:[(0,H.jsx)(ku,{size:16,className:`text-[#C59B27]`}),(0,H.jsx)(`span`,{children:e.medal})]}),(0,H.jsx)(`p`,{className:`text-xs font-semibold text-[#0B2D5C] mb-2`,children:e.competition}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] leading-relaxed`,children:e.description})]})]})},e.id))}):(0,H.jsxs)(`div`,{className:`text-center p-12 bg-white rounded-2xl border border-[#E4E7EC] text-[#667085]`,children:[(0,H.jsx)(Cu,{size:40,className:`mx-auto mb-3 text-[#C59B27]`}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C] mb-1`,children:`O'quvchilar yutuqlari tayyorlanmoqda`}),(0,H.jsx)(`p`,{className:`text-xs`,children:`Yangi zafarlar va olimpiada natijalari yaqin orada e'lon qilinadi.`})]})]})},am=()=>{let{t:e}=W(),[t,n]=(0,S.useState)(`2025-2026`),[r,i]=(0,S.useState)(`all`),a=[{id:1,title:`1-Chorak dars jarayonlarining boshlanishi`,category:`semesters`,categoryLabel:`Choraklar`,date:`02 Sentyabr, 2025`,status:`Yakunlangan`,type:`Academic`},{id:2,title:`Kuzgi ta'til kunlari`,category:`holidays`,categoryLabel:`Ta'tillar`,date:`04 - 11 Noyabr, 2025`,status:`Yakunlangan`,type:`Holiday`},{id:3,title:`Cambridge Mock (Sinov) Imtihonlari`,category:`exams`,categoryLabel:`Imtihonlar`,date:`15 - 25 Dekabr, 2025`,status:`Yakunlangan`,type:`Exam`},{id:4,title:`Choraklik va Yarim yillik baholashlar`,category:`exams`,categoryLabel:`Imtihonlar`,date:`26 - 30 Dekabr, 2025`,status:`Yakunlangan`,type:`Exam`},{id:5,title:`Qishki ta'til va dam olish kunlari`,category:`holidays`,categoryLabel:`Ta'tillar`,date:`31 Dekabr - 10 Yanvar, 2026`,status:`Yakunlangan`,type:`Holiday`},{id:6,title:`Cambridge IGCSE & A-Level Final Examinations`,category:`exams`,categoryLabel:`Cambridge Imtihonlari`,date:`05 May - 10 Iyun, 2026`,status:`Kutilmoqda`,type:`Exam`},{id:7,title:`Prezident maktablariga Qabul 2026 hujjatlar qabuli`,category:`admissions`,categoryLabel:`Qabul`,date:`01 - 20 Iyun, 2026`,status:`Kutilmoqda`,type:`Admission`},{id:8,title:`Yozgi ta'til va bitiruv marosimi`,category:`events`,categoryLabel:`Tadbirlar`,date:`25 Iyun, 2026`,status:`Kutilmoqda`,type:`Event`}],o=r===`all`?a:a.filter(e=>e.category===r);return(0,H.jsxs)(`div`,{className:`container-page py-10 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Academic Calendar`)}),(0,H.jsx)(Bp,{title:e(`Academic Calendar`),parentTitle:e(`School`)}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl shadow-xs border border-[#E4E7EC] mb-8 flex flex-col md:flex-row justify-between items-start md:items-center gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(Cl,{className:`text-[#0B2D5C]`,size:22}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`O'quv yili`}),(0,H.jsxs)(`select`,{value:t,onChange:e=>n(e.target.value),className:`font-bold text-[#0B2D5C] text-sm bg-transparent cursor-pointer border-none focus:ring-0 p-0`,children:[(0,H.jsx)(`option`,{value:`2025-2026`,children:`2025 - 2026 O'quv yili`}),(0,H.jsx)(`option`,{value:`2026-2027`,children:`2026 - 2027 O'quv yili`})]})]})]}),(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:[{id:`all`,label:`Barchasi`},{id:`semesters`,label:`Choraklar`},{id:`exams`,label:`Imtihonlar`},{id:`holidays`,label:`Ta'tillar`},{id:`admissions`,label:`Qabul`},{id:`events`,label:`Tadbirlar`}].map(e=>(0,H.jsx)(`button`,{onClick:()=>i(e.id),className:`px-4 py-2 rounded-xl text-xs font-bold transition-all ${r===e.id?`bg-[#0B2D5C] text-white shadow-xs`:`bg-[#F5F7FA] text-[#667085] hover:bg-[#
35E4E7EC]`}`,children:e.label},e.id))})]}),(0,H.jsx)(`div`,{className:`hidden md:block bg-white rounded-2xl border border-[#E4E7EC] shadow-xs overflow-hidden`,children:(0,H.jsxs)(`table`,{className:`w-full text-left text-xs border-collapse`,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`bg-[#F5F7FA] border-b border-[#E4E7EC] text-[#0B2D5C]`,children:[(0,H.jsx)(`th`,{className:`p-4 font-bold uppercase tracking-wider`,children:`Muddati / Sanasi`}),(0,H.jsx)(`th`,{className:`p-4 font-bold uppercase tracking-wider`,children:`Tadbir / Voqea Nomi`}),(0,H.jsx)(`th`,{className:`p-4 font-bold uppercase tracking-wider`,children:`Kategoriya`}),(0,H.jsx)(`th`,{className:`p-4 font-bold uppercase tracking-wider`,children:`Holati`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-[#E4E7EC]`,children:o.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-[#F5F7FA]/60 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4 font-bold text-[#0B2D5C] font-mono whitespace-nowrap`,children:e.date}),(0,H.jsx)(`td`,{className:`p-4 text-[#172033] font-bold text-sm`,children:e.title}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`span`,{className:`px-2.5 py-1 rounded-md text-[11px] font-semibold bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC]`,children:e.categoryLabel})}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`span`,{className:`px-2.5 py-1 rounded-md text-[11px] font-bold ${e.status===`Yakunlangan`?`bg-gray-100 text-gray-600 border border-gray-200`:`bg-emerald-50 text-emerald-700 border border-emerald-200`}`,children:e.status})})]},e.id))})]})}),(0,H.jsx)(`div`,{className:`md:hidden space-y-4`,children:o.map(e=>(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-xl border border-[#E4E7EC] shadow-xs flex flex-col gap-2`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-start`,children:[(0,H.jsx)(`span`,{className:`text-xs font-mono font-bold text-[#C59B27]`,children:e.date}),(0,H.jsx)(`span`,{className:`px-2 py-0.5 rounded text-[10px] font-bold ${e.status===`Yakunlangan`?`bg-gray-100 text-gray-600`:`bg-emerald-50 text-emerald-700`}`,children:e.status})]}),(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-sm`,children:e.title}),(0,H.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[11px] text-[#667085] mt-1`,children:[(0,H.jsx)(Tu,{size:12,className:`text-[#0B2D5C]`}),(0,H.jsx)(`span`,{children:e.categoryLabel})]})]},e.id))})]})},om=[{id:`ls9sL9fybAw`,title:`Samarqand shahridagi Prezident maktabining 10-sinf o'quvchilari uchun maxsus lavha`,date:`15.08.2026`,youtubeUrl:`https://youtu.be/ls9sL9fybAw?si=fLcHoiWzLmNt6QU2`,embedUrl:`https://www.youtube-nocookie.com/embed/ls9sL9fybAw?autoplay=1`,thumbnail:`https://img.youtube.com/vi/ls9sL9fybAw/hqdefault.jpg`},{id:`gyj1uZV9KcA`,title:`Samarqand shahridagi Prezident maktabi akademik jarayonlari va hayotidan tasvirlar`,date:`12.08.2026`,youtubeUrl:`https://youtu.be/gyj1uZV9KcA?si=N-q1XXq9zS-V1Pxh`,embedUrl:`https://www.youtube-nocookie.com/embed/gyj1uZV9KcA?autoplay=1`,thumbnail:`https://img.youtube.com/vi/gyj1uZV9KcA/hqdefault.jpg`}],sm=[{id:`school-life`,title:`Maktab hayoti va xayriya tadbirlari`,count:6,cover:`/gallery/students_park.jpg`,images:[`/gallery/students_park.jpg`,`/gallery/charity_visit.jpg`,`/gallery/music_ensemble.jpg`,`/gallery/students_excursion.jpg`,`/gallery/teachers_bus.jpg`]},{id:`culture-music`,title:`Madaniy tadbirlar va musiqa to'garaklari`,count:5,cover:`/gallery/music_ensemble.jpg`,images:[`/gallery/music_ensemble.jpg`,`/gallery/charity_visit.jpg`,`/gallery/students_park.jpg`,`/gallery/students_excursion.jpg`]},{id:`excursions`,title:`Ekskursiyalar va safarlar`,count:5,cover:`/gallery/students_excursion.jpg`,images:[`/gallery/students_excursion.jpg`,`/gallery/teachers_bus.jpg`,`/gallery/students_park.jpg`,`/gallery/charity_visit.jpg`]}],cm=()=>{let{t:e}=W(),[t,n]=(0,S.useState)(`photo`),[r,i]=(0,S.useState)(null),[a,o]=(0,S.useState)(null),[s,c]=(0,S.useState)(null),l=r&&sm.find(e=>e.id===r)?.images||[];return(0,S.useEffect)(()=>{let e=e=>{a!==null&&(e.key===`Escape`&&o(null),e.key===`ArrowRight`&&o(e=>(e+1)%l.length),e.key===`ArrowLeft`&&o(e=>(e-1+l.length)%l.length))};
35return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[a,l]),(0,H.jsxs)(`div`,{className:`bg-[#F7F9FC] min-h-screen py-6 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Gallery`)||`Galereya — Samarqand Prezident Maktabi Foto va Videolari`,description:`Samarqand shahridagi Prezident maktabining rasmiy foto albomlari va videolari.`}),(0,H.jsx)(Hp,{}),(0,H.jsxs)(`div`,{className:`container-page space-y-8 mt-2 px-4`,children:[(0,H.jsx)(Bp,{title:e(`Gallery`)||`Galereya (Media)`,parentTitle:e(`Media`)||`Bosh sahifa`}),(0,H.jsxs)(`div`,{className:`flex items-center justify-center gap-3 bg-white p-2 rounded-2xl border border-gray-200 shadow-xs max-w-md mx-auto`,children:[(0,H.jsxs)(`button`,{onClick:()=>n(`photo`),className:`flex-1 py-3 px-5 rounded-xl font-extrabold text-xs sm:text-sm transition-all flex items-center justify-center gap-2 ${t===`photo`?`bg-[#18356F] text-white shadow-md`:`text-gray-600 hover:bg-gray-100 hover:text-[#0B2D5C]`}`,children:[(0,H.jsx)(Wl,{size:18,className:t===`photo`?`text-[#38bdf8]`:`text-gray-400`}),(0,H.jsx)(`span`,{children:`Foto Albomlar`})]}),(0,H.jsxs)(`button`,{onClick:()=>{n(`video`),i(null)},className:`flex-1 py-3 px-5 rounded-xl font-extrabold text-xs sm:text-sm transition-all flex items-center justify-center gap-2 ${t===`video`?`bg-[#18356F] text-white shadow-md`:`text-gray-600 hover:bg-gray-100 hover:text-[#0B2D5C]`}`,children:[(0,H.jsx)(Nu,{size:18,className:t===`video`?`text-[#38bdf8]`:`text-gray-400`}),(0,H.jsx)(`span`,{children:`Video Lavhalar`})]})]}),t===`photo`&&(0,H.jsx)(`div`,{children:r?(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between mb-8 pb-4 border-b border-gray-200`,children:[(0,H.jsxs)(`button`,{onClick:()=>i(null),className:`inline-flex items-center gap-2 bg-white hover:bg-gray-100 border border-gray-200 text-[#0B2D5C] px-4 py-2 rounded-xl text-xs font-bold transition-colors shadow-2xs`,children:[(0,H.jsx)(El,{size:16}),` Barcha albomlarga qaytish`]}),(0,H.jsx)(`h2`,{className:`text-xl font-extrabold text-[#0B2D5C]`,children:sm.find(e=>e.id===r)?.title})]}),(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`,children:l.map((e,t)=>(0,H.jsxs)(`div`,{onClick:()=>o(t),className:`group relative rounded-2xl overflow-hidden shadow-xs border border-gray-200 h-64 bg-gray-100 cursor-pointer`,children:[(0,H.jsx)(`img`,{src:e,alt:`Photo ${t+1}`,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500`,loading:`lazy`}),(0,H.jsx)(`div`,{className:`absolute inset-0 bg-black/40 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center`,children:(0,H.jsx)(J,{size:28,className:`text-white`})})]},t))})]}):(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8`,children:sm.map(e=>(0,H.jsxs)(`div`,{onClick:()=>i(e.id),className:`group bg-white rounded-3xl border border-gray-200/80 shadow-xs overflow-hidden cursor-pointer hover:shadow-xl hover:border-[#0284c7] transition-all flex flex-col justify-between`,children:[(0,H.jsxs)(`div`,{className:`h-64 relative overflow-hidden bg-gray-100`,children:[(0,H.jsx)(`img`,{src:e.cover,alt:e.title,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500`,loading:`lazy`}),(0,H.jsxs)(`div`,{className:`absolute top-3 right-3 bg-[#071938]/90 text-white px-3 py-1 rounded-full text-xs font-bold flex items-center gap-1.5 backdrop-blur-xs border border-white/20`,children:[(0,H.jsx)(Wl,{size:14,className:`text-[#38bdf8]`}),(0,H.jsxs)(`span`,{children:[e.count,` foto`]})]})]}),(0,H.jsxs)(`div`,{className:`p-6 flex justify-between items-center bg-white`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-[#0B2D5C] text-lg group-hover:text-[#0284c7] transition-colors`,children:e.title}),(0,H.jsx)(`span`,{className:`text-xs text-gray-400 font-semibold`,children:`Albomini ko'rish`})]}),(0,H.jsx)(`button`,{className:`w-10 h-10 rounded-full bg-gray-100 text-[#0B2D5C] flex items-center justify-center group-hover:bg-[#0284c7] group-hover:text-white transition-colors`,children:(0,H.jsx)(J,{size:18})})]})]},e.id))})}),t===`video`&&(0,H.jsx)(`div`,{className:`space-y-6`,children:(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-8`,children:om.map(e=>(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl border border-gray-200/80 shadow-xs overflow-hidden group hover:border-[#0284c7] hover:shadow-xl transition-all duration-300 flex flex-col justify-between`,children:[(0,H.jsxs)(`div`,{onClick:()=>c(e),className:`relative aspect-video bg-gray-900 cursor-pointer overflow-hidden group`,children:[(0,H.jsx)(`img`,{src:e.thumbnail,alt:e.title,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500 opacity-90 group-hover:opacity-100`}),(0,H.jsx)(`div`,{className:`absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent`}),(0,H.jsx)(`div`,{className:`absolute inset-0 flex items-center justify-center`,children:(0,H.jsx)(`div`,{className:`w-16 h-16 rounded-full bg-[#0284c7] text-white flex items-center justify-center shadow-2xl group-hover:scale-115 transition-transform duration-300 border-2 border-white/40`,children:(0,H.jsx)(uu,{size:28,className:`fill-current ml-1`})})}),(0,H.jsxs)(`div`,{className:`absolute bottom-3 left-3 right-3 flex items-center justify-between text-white/90 text-xs font-semibold`,children:[(0,H.jsxs)(`span`,{className:`bg-black/60 backdrop-blur-md px-2.5 py-1 rounded-md border border-white/20 flex items-center gap-1.5`,children:[(0,H.jsx)(Cl,{size:12,className:`text-[#38bdf8]`}),(0,H.jsx)(`span`,{children:e.date})]}),(0,H.jsx)(`span`,{className:`bg-[#0284c7] text-white px-2.5 py-1 rounded-md text-[11px] font-bold uppercase tracking-wider`,children:`YouTube HD`})]})]}),(0,H.jsxs)(`div`,{className:`p-6 bg-white space-y-3`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-[#0B2D5C] text-base leading-snug group-hover:text-[#0284c7] transition-colors line-clamp-2`,children:e.title}),(0,H.jsxs)(`div`,{className:`flex items-center justify-between pt-2 border-t border-gray-100`,children:[(0,H.jsxs)(`button`,{onClick:()=>c(e),className:`inline-flex items-center gap-2 text-xs font-extrabold text-[#0284c7] hover:text-[#0369a1] transition-colors`,children:[(0,H.jsx)(`span`,{children:`Tomosha qilish`}),(0,H.jsx)(uu,{size:14,className:`fill-current`})]}),(0,H.jsx)(`a`,{href:e.youtubeUrl,target:`_blank`,rel:`noreferrer`,className:`text-xs text-gray-400 hover:text-gray-600 transition-colors`,children:`YouTube'da ochish →`})]})]})]},e.id))})}),s&&(0,H.jsx)(`div`,{className:`fixed inset-0 z-50 bg-black/90 backdrop-blur-md flex items-center justify-center p-4`,children:(0,H.jsxs)(`div`,{className:`bg-black rounded-3xl max-w-4xl w-full overflow-hidden shadow-2xl border border-white/20 relative animate-in fade-in zoom-in duration-200`,children:[(0,H.jsx)(`button`,{onClick:()=>c(null),className:`absolute top-4 right-4 text-white/80 hover:text-white p-2 rounded-full bg-black/60 hover:bg-black/90 transition-colors z-50 border border-white/20`,"aria-label":`Close video`,children:(0,H.jsx)(Iu,{size:22})}),(0,H.jsx)(`div`,{className:`relative aspect-video w-full bg-black`,children:(0,H.jsx)(`iframe`,{src:s.embedUrl,title:s.title,className:`w-full h-full border-none`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture`,allowFullScreen:!0})}),(0,H.jsxs)(`div`,{className:`p-6 bg-[#071938] text-white`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-lg leading-snug`,children:s.title}),(0,H.jsxs)(`p`,{className:`text-xs text-gray-300 mt-1`,children:[`Sana: `,s.date]})]})]})}),a!==null&&(0,H.jsxs)(`div`,{className:`fixed inset-0 z-50 bg-black/90 backdrop-blur-md flex items-center justify-center p-4`,children:[(0,H.jsx)(`button`,{onClick:()=>o(null),className:`absolute top-6 right-6 text-white/80 hover:text-white p-2 rounded-full bg-white/10 hover:bg-white/20 transition-colors z-50`,"aria-label":`Close modal`,children:(0,H.jsx)(Iu,{size:24})}),(0,H.jsx)(`button`,{onClick:()=>o(e=>(e-1+l.length)%l.length),className:`absolute left-4 text-white/80 hover:text-white p-3 rounded-full bg-white/10 hover:bg-white/20 transition-colors z-50`,"aria-label":`Previous photo`,children:(0,H.jsx)(El,{size:28})}),(0,H.jsxs)(`div`,{className:`max-w-4xl max-h-[85vh] p-2 flex flex-col items-center`,children:[(0,H.jsx)(`img`,{src:l[a],alt:`Expanded view`,className:`max-w-full max-h-[75vh] object-contain rounded-xl shadow-2xl border border-white/10`}),(0,H.jsxs)(`span`,{className:`text-white/80 text-xs font-mono mt-4 font-semibold`,children:[a+1,` / `,l.length]})]}),(0,H.jsx)(`button`,{onClick:()=>o(e=>(e+1)%l.length),className:`absolute right-4 text-white/80 hover:text-white p-3 rounded-full bg-white/10 hover:bg-white/20 transition-colors z-50`,"aria-label":`Next photo`,children:(0,H.jsx)(Dl,{size:28})})]})]})]})},lm=({message:e=`Ma'lumotlar mavjud emas`})=>(0,H.jsxs)(`div`,{className:`text-center py-12 px-6 text-[#667085] bg-white border border-[#
35E4E7EC] rounded-xl shadow-xs my-4 flex flex-col items-center justify-center`,children:[(0,H.jsx)(Gl,{size:40,className:`text-[#94A3B8] mb-3 stroke-1`}),(0,H.jsx)(`p`,{className:`text-sm font-medium text-[#667085]`,children:e})]}),um=()=>{let{t:e,i18n:t}=W(),[n,r]=Rr(),[i,a]=(0,S.useState)([]),[o,s]=(0,S.useState)(null),[c,l]=(0,S.useState)(!0),[u,d]=(0,S.useState)(null),f=parseInt(n.get(`page`)||`1`,10),p=n.get(`search`)||``,m=t.language,h=async()=>{try{l(!0),d(null);let e=await Op.getNews({page:f,limit:12,search:p});a(e.data.items),s(e.data.pagination)}catch{d(`Failed to fetch news`)}finally{l(!1)}};(0,S.useEffect)(()=>{h()},[f,p]);let g=e=>{e.preventDefault();let t=new FormData(e.target).get(`q`);r({page:`1`,search:t})},_=(e,t)=>e?e[t]?e[t]:e.uz?e.uz:e.en?e.en:``:``;return(0,H.jsxs)(`div`,{className:`container-page py-10`,children:[(0,H.jsx)(Ku,{title:e(`News`)}),(0,H.jsx)(Bp,{title:e(`News`)}),(0,H.jsx)(`div`,{className:`mb-8 relative max-w-md`,children:(0,H.jsxs)(`form`,{onSubmit:g,children:[(0,H.jsx)(`input`,{type:`text`,name:`q`,defaultValue:p,placeholder:e(`Search`)+`...`,className:`input-academic pl-10`}),(0,H.jsx)(_u,{className:`absolute left-3 top-3 text-[#667085]`,size:18})]})}),u?(0,H.jsxs)(`div`,{className:`p-6 text-red-600 bg-red-50 rounded-xl border border-red-200 text-sm font-semibold`,children:[u,` `,(0,H.jsx)(`button`,{onClick:h,className:`underline ml-2`,children:`Qayta urinish`})]}):c?(0,H.jsx)(kp,{}):i.length>0?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8`,children:i.map(t=>(0,H.jsxs)(`div`,{className:`bg-white rounded-xl overflow-hidden shadow-xs border border-[#E4E7EC] hover:border-[#164C8C]/40 hover:shadow-md transition-all duration-200 flex flex-col group`,children:[(0,H.jsx)(I,{to:`/news/${t.slug||t.id}`,className:`block overflow-hidden`,children:(0,H.jsx)(`img`,{src:X(t.image),alt:_(t.imageAlt,m),className:`w-full h-48 object-cover bg-[#F5F7FA] group-hover:scale-105 transition-transform duration-300`,loading:`lazy`})}),(0,H.jsxs)(`div`,{className:`p-5 flex-grow flex flex-col justify-between`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-center text-xs text-[#667085] mb-2`,children:[(0,H.jsx)(`span`,{className:`bg-[#F5F7FA] border border-[#E4E7EC] text-[#0B2D5C] px-2.5 py-0.5 rounded-md font-semibold`,children:_(t.tagLabel,m)||t.tag||`Yangilik`}),(0,H.jsx)(`span`,{children:t.publishedAt?new Date(t.publishedAt).toLocaleDateString():``})]}),(0,H.jsx)(I,{to:`/news/${t.slug||t.id}`,className:`block`,children:(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C] mb-2 line-clamp-2 leading-snug group-hover:text-[#0284c7] transition-colors`,children:_(t.title,m)})}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs mb-4 line-clamp-3 leading-relaxed`,children:_(t.shortContent,m)})]}),(0,H.jsxs)(I,{to:`/news/${t.slug||t.id}`,className:`text-[#0284c7] font-bold text-xs hover:text-[#0369a1] transition-colors inline-flex items-center gap-1`,children:[e(`Read More`)||`Batafsil`,` →`]})]})]},t.id))}),o&&o.totalPages>1&&(0,H.jsxs)(`div`,{className:`flex justify-center mt-12 gap-2`,children:[(0,H.jsx)(`button`,{onClick:()=>r({page:(f-1).toString(),search:p}),disabled:!o.hasPreviousPage,className:`w-9 h-9 rounded-lg flex items-center justify-center bg-white border border-[#E4E7EC] text-[#0B2D5C] hover:bg-[#F5F7FA] disabled:opacity-40`,children:(0,H.jsx)(El,{size:18})}),Array.from({length:o.totalPages}).map((e,t)=>(0,H.jsx)(`button`,{onClick:()=>r({page:(t+1).toString(),search:p}),className:`w-9 h-9 rounded-lg text-xs flex items-center justify-center font-semibold ${f===t+1?`bg-[#0B2D5C] text-white shadow-sm`:`bg-white border border-[#E4E7EC] hover:bg-[#F5F7FA] text-[#172033]`}`,children:t+1},t)),(0,H.jsx)(`button`,{onClick:()=>r({page:(f+1).toString(),search:p}),disabled:!o.hasNextPage,className:`w-9 h-9 rounded-lg flex items-center justify-center bg-white border border-[#E4E7EC] text-[#0B2D5C] hover:bg-[#F5F7FA] disabled:opacity-40`,children:(0,H.jsx)(Dl,{size:18})})]})]}):(0,H.jsx)(lm,{})]})};function dm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fm(e){if(Array.isArray(e))return e}function pm(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}
vendor: 4,292 bytes, lines 35-36
35finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function mm(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
36In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hm(e,t){return fm(e)||pm(e,t)||gm(e,t)||mm()}function gm(e,t){if(e){if(typeof e==`string`)return dm(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dm(e,t):void 0}}var _m=Object.entries,vm=Object.setPrototypeOf,ym=Object.isFrozen,bm=Object.getPrototypeOf,xm=Object.getOwnPropertyDescriptor,Sm=Object.freeze,Cm=Object.seal,wm=Object.create,Tm=typeof Reflect<`u`&&Reflect,Em=Tm.apply,Dm=Tm.construct;Sm||=function(e){return e},Cm||=function(e){return e},Em||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Dm||=function(e){return new e(...[...arguments].slice(1))};var Om=Jm(Array.prototype.forEach),km=Jm(Array.prototype.lastIndexOf),Am=Jm(Array.prototype.pop),jm=Jm(Array.prototype.push),Mm=Jm(Array.prototype.splice),Nm=Array.isArray,Pm=Jm(String.prototype.toLowerCase),Fm=Jm(String.prototype.toString),Im=Jm(String.prototype.match),Lm=Jm(String.prototype.replace),Rm=Jm(String.prototype.indexOf),zm=Jm(String.prototype.trim),Bm=Jm(Number.prototype.toString),Vm=Jm(Boolean.prototype.toString),Hm=typeof BigInt>`u`?null:Jm(BigInt.prototype.toString),Um=typeof Symbol>`u`?null:Jm(Symbol.prototype.toString),Wm=Jm(Object.prototype.hasOwnProperty),Gm=Jm(Object.prototype.toString),Km=Jm(RegExp.prototype.test),qm=Ym(TypeError);function Jm(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Em(e,t,n)}}function Ym(e){return function(){return Dm(e,[...arguments])}}function Q(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pm;if(vm&&vm(e,null),!Nm(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(ym(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Xm(e){for(let t=0;t<e.length;t++)Wm(e,t)||(e[t]=null);return e}function Zm(e){let t=wm(null);for(let r of _m(e)){var n=hm(r,2);let i=n[0],a=n[1];Wm(e,i)&&(t[i]=Nm(a)?Xm(a):a&&typeof a==`object`&&a.constructor===Object?Zm(a):a)}return t}function Qm(e){switch(typeof e){case`string`:return e;case`number`:return Bm(e);case`boolean`:return Vm(e);case`bigint`:return Hm?Hm(e):`0`;case`symbol`:return Um?Um(e):`Symbol()`;case`undefined`:return Gm(e);case`function`:case`object`:{if(e===null)return Gm(e);let t=e,n=$m(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Gm(e)}return Gm(e)}default:return Gm(e)}}function $m(e,t){for(;e!==null;){let n=xm(e,t);if(n){if(n.get)return Jm(n.get);if(typeof n.value==`function`)return Jm(n.value)}e=bm(e)}function n(){return null}return n}function eh(e){try{return Km(e,``),!0}catch{return!1}}var th=Sm(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),nh=Sm(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),rh=Sm([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOff
36set`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ih=Sm([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),ah=Sm(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),oh=Sm([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),sh=Sm([`#text`]),ch=Sm(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),lh=Sm(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),uh=Sm(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),dh=Sm([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),fh=Cm(/{{[\w\W]*|^[\w\W]*}}/g),ph=Cm(/<%[\w\W]*|^[\w\W]*%>/g),mh=Cm(/\${[\w\W]*/g),hh=Cm(/^data-[\-\w.\u00B7-\uFFFF]+$/),gh=Cm(/^aria-[\-\w]+$/),_h=Cm(/^(?:(?:(?
vendor: 4,517 bytes, line 36
36:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),vh=Cm(/^(?:\w+script|data):/i),yh=Cm(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),bh=Cm(/^html$/i),xh=Cm(/^[a-z][.\w]*(-[.\w]+)+$/i),Sh=Cm(/<[/\w!]/g),Ch=Cm(/<[/\w]/g),wh=Cm(/<\/no(script|embed|frames)/i),Th=Cm(/\/>/i),Eh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Dh=function(){return typeof window>`u`?null:window},Oh=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},kh=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ah=function(e,t,n,r){return Wm(e,t)&&Nm(e[t])?Q(r.base?Zm(r.base):{},e[t],r.transform):n};function jh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Dh(),t=e=>jh(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==Eh.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=$m(d,`cloneNode`),p=$m(d,`remove`),m=$m(d,`nextSibling`),h=$m(d,`childNodes`),g=$m(d,`parentNode`),_=$m(d,`shadowRoot`),v=$m(d,`attributes`),y=o&&o.prototype?$m(o.prototype,`nodeType`):null,b=o&&o.prototype?$m(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let x,S=``,C,w=!1,T=0,E=function(){if(T>0)throw qm(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},D=function(e){E(),T++;try{return x.createHTML(e)}finally{T--}},O=function(e){E(),T++;try{return x.createScriptURL(e)}finally{T--}},k=function(){return w||=(C=Oh(u,i),!0),C},A=n,j=A.implementation,ee=A.createNodeIterator,M=A.createDocumentFragment,te=A.getElementsByTagName,ne=r.importNode,N=kh();t.isSupported=typeof _m==`function`&&typeof g==`function`&&j&&j.createHTMLDocument!==void 0;let P=fh,re=ph,ie=mh,ae=hh,oe=gh,se=vh,ce=yh,le=xh,ue=_h,de=null,fe=Q({},[...th,...nh,...rh,...ah,...sh]),pe=null,me=Q({},[...ch,...lh,...uh,...dh]),he=Object.seal(wm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ge=null,_e=null,ve=Object.seal(wm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ye=!0,be=!0,xe=!1,Se=!0,Ce=!1,we=!0,Te=!1,Ee=!1,De=null,Oe=null,ke=!1,Ae=!1,je=!1,Me=!1,Ne=!0,Pe=!1,Fe=`user-content-`,Ie=!0,Le=!1,Re={},ze=null,Be=Q({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Ve=null,He=Q({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Ue=null,We=Q({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ge=`http://www.w3.org/1998/Math/MathML`,Ke=`http://www.w3.org/2000/svg`,qe=`http://www.w3.org/1999/xhtml`,Je=qe,Ye=!1,Xe=null,Ze=Q({},[Ge,Ke,qe],Fm),Qe=Sm([`mi`,`mo`,`mn`,`ms`,`mtext`]),$e=Q({},Qe),et=Sm([`annotation-xml`]),tt=Q({},et),nt=Q({},[`title`,`style`,`font`,`a`,`script`]),rt=null,it=[`application/xhtml+xml`,`text/html`],at=null,ot=null,st=n.createElement(`form`),ct=function(e){return e instanceof RegExp||e instanceof Function},lt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ot&&ot===e)return;(!e||typeof e!=`object`)&&(e={}
vendor: 4,853 bytes, line 36
36),e=Zm(e),rt=it.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,at=rt===`application/xhtml+xml`?Fm:Pm,de=Ah(e,`ALLOWED_TAGS`,fe,{transform:at}),pe=Ah(e,`ALLOWED_ATTR`,me,{transform:at}),Xe=Ah(e,`ALLOWED_NAMESPACES`,Ze,{transform:Fm}),Ue=Ah(e,`ADD_URI_SAFE_ATTR`,We,{transform:at,base:We}),Ve=Ah(e,`ADD_DATA_URI_TAGS`,He,{transform:at,base:He}),ze=Ah(e,`FORBID_CONTENTS`,Be,{transform:at}),ge=Ah(e,`FORBID_TAGS`,Zm({}),{transform:at}),_e=Ah(e,`FORBID_ATTR`,Zm({}),{transform:at}),Re=Wm(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Zm(e.USE_PROFILES):e.USE_PROFILES:!1,ye=e.ALLOW_ARIA_ATTR!==!1,be=e.ALLOW_DATA_ATTR!==!1,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Se=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ce=e.SAFE_FOR_TEMPLATES||!1,we=e.SAFE_FOR_XML!==!1,Te=e.WHOLE_DOCUMENT||!1,Ae=e.RETURN_DOM||!1,je=e.RETURN_DOM_FRAGMENT||!1,Me=e.RETURN_TRUSTED_TYPE||!1,ke=e.FORCE_BODY||!1,Ne=e.SANITIZE_DOM!==!1,Pe=e.SANITIZE_NAMED_PROPS||!1,Ie=e.KEEP_CONTENT!==!1,Le=e.IN_PLACE||!1,ue=eh(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:_h,Je=typeof e.NAMESPACE==`string`?e.NAMESPACE:qe,$e=Wm(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Zm(e.MATHML_TEXT_INTEGRATION_POINTS):Q({},Qe),tt=Wm(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Zm(e.HTML_INTEGRATION_POINTS):Q({},et);let t=Wm(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Zm(e.CUSTOM_ELEMENT_HANDLING):wm(null);if(he=wm(null),Wm(t,`tagNameCheck`)&&ct(t.tagNameCheck)&&(he.tagNameCheck=t.tagNameCheck),Wm(t,`attributeNameCheck`)&&ct(t.attributeNameCheck)&&(he.attributeNameCheck=t.attributeNameCheck),Wm(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(he.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),Cm(he),Ce&&(be=!1),je&&(Ae=!0),Re&&(de=Q({},sh),pe=wm(null),Re.html===!0&&(Q(de,th),Q(pe,ch)),Re.svg===!0&&(Q(de,nh),Q(pe,lh),Q(pe,dh)),Re.svgFilters===!0&&(Q(de,rh),Q(pe,lh),Q(pe,dh)),Re.mathMl===!0&&(Q(de,ah),Q(pe,uh),Q(pe,dh))),ve.tagCheck=null,ve.attributeCheck=null,Wm(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ve.tagCheck=e.ADD_TAGS:Nm(e.ADD_TAGS)&&(de===fe&&(de=Zm(de)),Q(de,e.ADD_TAGS,at))),Wm(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ve.attributeCheck=e.ADD_ATTR:Nm(e.ADD_ATTR)&&(pe===me&&(pe=Zm(pe)),Q(pe,e.ADD_ATTR,at))),Wm(e,`ADD_URI_SAFE_ATTR`)&&Nm(e.ADD_URI_SAFE_ATTR)&&Q(Ue,e.ADD_URI_SAFE_ATTR,at),Wm(e,`FORBID_CONTENTS`)&&Nm(e.FORBID_CONTENTS)&&(ze===Be&&(ze=Zm(ze)),Q(ze,e.FORBID_CONTENTS,at)),Wm(e,`ADD_FORBID_CONTENTS`)&&Nm(e.ADD_FORBID_CONTENTS)&&(ze===Be&&(ze=Zm(ze)),Q(ze,e.ADD_FORBID_CONTENTS,at)),Ie&&(de[`#text`]=!0),Te&&Q(de,[`html`,`head`,`body`]),de.table&&(Q(de,[`tbody`]),delete ge.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw qm(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw qm(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=x;x=e.TRUSTED_TYPES_POLICY;try{S=D(``)}catch(e){throw x=t,e}}else e.TRUSTED_TYPES_POLICY===null?(x=void 0,S=``):(x===void 0&&(x=k()),x&&typeof S==`string`&&(S=D(``)));Sm&&Sm(e),ot=e},ut=Q({},[...nh,...rh,...ih]),dt=Q({},[...ah,...oh]),ft=function(e,t,n){return t.namespaceURI===qe?e===`svg`:t.namespaceURI===Ge?e===`svg`&&(n===`annotation-xml`||$e[n]):!!ut[e]},pt=function(e,t,n){return t.namespaceURI===qe?e===`math`:t.namespaceURI===Ke?e===`math`&&tt[n]:!!dt[e]},mt=function(e,t,n){return t.namespaceURI===Ke&&!tt[n]||t.namespaceURI===Ge&&!$e[n]?!1:!dt[e]&&(nt[e]||!ut[e])},ht=function(e){let t=g(e);(!t||!t.tagName)&&(t={namespaceURI:Je,tagName:`template`});let n=Pm(e.tagName),r=Pm(t.tagName);return Xe[e.namespaceURI]?e.namespaceURI===Ke?ft(n,t,r):e.namespaceURI===Ge?pt(n,t,r):e.namespaceURI===qe?mt(n,t,r):!!(rt===`application/xhtml+xml`&&Xe[e.namespaceURI]):!1},gt=function(e){jm(t.removed,{element:e});try{g(e).removeChild(e)}catch{if(p(e),!g(e))throw qm(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},_t=function(e){bt(e);let t=h(e);if(t){let e=[];Om(t,t=>{jm(e,t)}),Om(e,e=>{try{p(e)}catch{}})}let n=v(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},vt=function(e,n){try{jm(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{jm(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Ae||je)try{gt(n)}catch{}else try{n.setAttribute(e,``)}catch{}},yt=function(e){let t=v(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||pe[at(i)]))try{e.removeAttribute(i)}catch{}}}
36,bt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(y?y(e):e.nodeType)===Eh.element&&yt(e);let n=h(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},xt=function(e){if(!we)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=y?y(e):e.nodeType;if(n===Eh.processingInstruction||n===Eh.comment&&Km(Ch,e.data)){try{p(e)}catch{}continue}if(n===Eh.element){let t=e,n=at(b?b(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=h(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},St=function(e){let t=null,r=null;if(ke)e=`<remove></remove>`+e;else{let t=Im(e,/^[\r\n\t ]+/);r=t&&t[0]}rt===`application/xhtml+xml`&&Je===qe&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=x?D(e):e;if(Je===qe)try{t=new l().parseFromString(i,rt)}catch{}if(!t||!t.documentElement){t=j.createDocument(Je,`template`,null);try{t.documentElement.innerHTML=Ye?S:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Je===qe?te.call(t,Te?`html`:`body`)[0]:Te?t.documentElement:a},Ct=function(e){return ee.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},wt=function(e){return e=Lm(e,P,` `),e=Lm(e,re,` `),e=Lm(e,ie,` `),e},Tt=function(e){e.normalize();let t=ee.call(e.ownerDocument||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=wt(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&Om(r,e=>{Dt(e.content)&&Tt(e.content)})},Et=function(e){let t=b?b(e):null;return typeof t!=`string`||at(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==v(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==y(e)||e.childNodes!==h(e)},Dt=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return y(e)===Eh.documentFragment}catch{return!1}},Ot=function(e){if(!y||typeof e!=`object`||!e)return!1;try{return typeof y(e)==`number`}catch{return!1}};function kt(e,n,r){e.length!==0&&Om(e,e=>{e.call(t,n,r,ot)})}let At=function(e,t){return!!(we&&e.hasChildNodes()&&!Ot(e.firstElementChild)&&Km(Sh,e.textContent)&&Km(Sh,e.innerHTML)||we&&e.namespaceURI===qe&&t===`style`&&Ot(e.firstElementChild)||e.nodeType===Eh.processingInstruction||we&&e.nodeType===Eh.comment&&Km(Ch,e.data))},jt=function(e,t){if(!ge[t]&&Ft(t)&&(he.tagNameCheck instanceof RegExp&&Km(he.tagNameCheck,t)||he.tagNameCheck instanceof Function&&he.tagNameCheck(t)))return!1;if(Ie&&!ze[t]){let t=g(e),n=h(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Le?n[i]:f(n[i],!0);t.insertBefore(r,m(e))}}}return gt(e),!0},Mt=function(e,n){if(kt(N.beforeSanitizeElements,e,null),e!==n&&g(e)===null)return!0;if(Et(e))return gt(e),!0;let r=at(b?b(e):e.nodeName);if(kt(N.uponSanitizeElement,e,{tagName:r,allowedTags:de}),e!==n&&g(e)===null)return!0;if(At(e,r))return gt(e),!0;if(ge[r]||!(ve.tagCheck instanceof Function&&ve.tagCheck(r))&&!de[r]){let t=jt(e,r);return t===!1&&kt(N.afterSanitizeElements,e,null),t}if((y?y(e):e.nodeType)===Eh.element&&!ht(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Km(wh,e.innerHTML))return gt(e),!0;if(Ce&&e.nodeType===Eh.text){let n=wt(e.textContent);e.textContent!==n&&(jm(t.removed,{element:e.cloneNode()}),e.textContent=n)}return kt(N.afterSanitizeElements,e,null),!1},Nt=function(e,t,r){if(_e[t]||we&&t===`patchsrc`||we&&t===`for`&&e!==`label`&&e!==`output`||Ne&&(t===`id`||t===`name`)&&(r in n||r in st))return!1;let i=pe[t]||ve.attributeCheck instanceof Function&&ve.attributeCheck(t,e);if(!(be&&Km(ae,t))&&!(ye&&Km(oe,t))){if(!i){if(!(Ft(e)&&(he.tagNameCheck instanceof RegExp&&Km(he.tagNameCheck,e)||he.tagNameCheck instanceof Function&&he.tagNameCheck(e))&&(he.attributeNameCheck instanceof RegExp&&Km(he.attributeNameCheck,t)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(t,e))||t===`is`&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&Km(he.tagNameCheck,r)||he.tagNameCheck instanceof Function&&he.tagNameCheck(r))))return!1}else if(!Ue[t]&&!Km(ue,Lm(r,ce,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Rm(r,`data:`)===0&&Ve[e])&&!(xe&&!Km(se,Lm(r,ce,``)))&&r)return!1}return!0},Pt=Q({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Ft=function(e){return!Pt[Pm(e)]&&Km(le,e)},It=function(e,t,n,r){if(x&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return D(r);case`TrustedScriptURL`:return O(r)}return r},Lt=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),Et(e)?gt(e):Am(t.removed)}catch{vt(n,e)}},Rt=function(e){kt(N.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||Et(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:pe,forceKeepAttr:void 0},r=t.length,i=at(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=at(o),u=c,d=o===`value`?u:zm(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,kt(N.uponSanitizeAttribute,e,n),d=n.attrValue,Pe&&(l===`id`||l===`
36name`)&&Rm(d,Fe)!==0&&(vt(o,e),d=Fe+d),we&&Km(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){vt(o,e);continue}if(l===`attributename`&&Im(d,`href`)){vt(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){vt(o,e);continue}if(!Se&&Km(Th,d)){vt(o,e);continue}if(Ce&&(d=wt(d)),!Nt(i,l,d)){vt(o,e);continue}d=It(i,l,s,d),d!==u&&Lt(e,o,s,d)}}kt(N.afterSanitizeAttributes,e,null)},zt=function(e){let t=null,n=Ct(e);for(kt(N.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(kt(N.uponSanitizeShadowNode,t,null),Mt(t,e),Rt(t),Dt(t.content)&&zt(t.content),(y?y(t):t.nodeType)===Eh.element){let e=_(t);Dt(e)&&(Bt(e),zt(e))}kt(N.afterSanitizeShadowDOM,e,null)},Bt=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){zt(e.shadow);continue}let n=e.node,r=(y?y(n):n.nodeType)===Eh.element,i=h(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=b?b(n):null;if(typeof e==`string`&&at(e)===`template`){let e=n.content;Dt(e)&&t.push({node:e,shadow:null})}}if(r){let e=_(n);Dt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Ye=!e,Ye&&(e=`<!-->`),typeof e!=`string`&&!Ot(e)&&(e=Qm(e),typeof e!=`string`))throw qm(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ee?(de=De,pe=Oe):lt(n),(N.uponSanitizeElement.length>0||N.uponSanitizeAttribute.length>0)&&(de=Zm(de)),N.uponSanitizeAttribute.length>0&&(pe=Zm(pe)),t.removed=[];let c=Le&&typeof e!=`string`&&Ot(e);if(c){xt(e);let t=b?b(e):e.nodeName;if(typeof t==`string`){let n=at(t);if(!de[n]||ge[n])throw _t(e),qm(`root node is forbidden and cannot be sanitized in-place`)}if(Et(e))throw _t(e),qm(`root node is clobbered and cannot be sanitized in-place`);try{Bt(e)}catch(t){throw _t(e),t}}else if(Ot(e))i=St(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Eh.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Bt(a);else{if(!Ae&&!Ce&&!Te&&e.indexOf(`<`)===-1)return x&&Me?D(e):e;if(i=St(e),!i)return Ae?null:Me?S:``}i&&ke&&gt(i.firstChild);let l=c?e:i,u=Ct(l);try{for(;o=u.nextNode();)Mt(o,l),Rt(o),Dt(o.content)&&zt(o.content)}catch(n){throw c&&(_t(e),Om(t.removed,e=>{e.element&&bt(e.element)})),n}if(c)return Om(t.removed,e=>{e.element&&bt(e.element)}),Ce&&Tt(e),e;if(Ae){if(Ce&&Tt(i),je)for(s=M.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(pe.shadowroot||pe.shadowrootmode)&&(s=ne.call(r,s,!0)),s}let d=Te?i.outerHTML:i.innerHTML;return Te&&de[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Km(bh,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
37`+d),Ce&&(d=wt(d)),x&&Me?D(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lt(e),Ee=!0,De=de,Oe=pe},t.clearConfig=function(){ot=null,Ee=!1,De=null,Oe=null,x=C,S=``},t.isValidAttribute=function(e,t,n){ot||lt({});let r=at(e),i=at(t);return Nt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&Wm(N,e)&&jm(N[e],t)},t.removeHook=function(e,t){if(Wm(N,e)){if(t!==void 0){let n=km(N[e],t);return n===-1?void 0:Mm(N[e],n,1)[0]}return Am(N[e])}},t.removeHooks=function(e){Wm(N,e)&&(N[e]=[])},t.removeAllHooks=function(){N=kh()},t}var Mh=jh(),Nh=e=>e?Mh.sanitize(e,{ALLOWED_TAGS:[`b`,`i`,`em`,`strong`,`a`,`p`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`ul`,`ol`,`li`,`br`,`span`,`div`,`u`,`s`,`blockquote`],ALLOWED_ATTR:[`href`,`target`,`rel`,`class`,`style`]}):``,Ph=()=>{let{slug:e}=xn(),{t,i18n:n}=W(),[r,i]=(0,S.useState)(null),[a,o]=(0,S.useState)(!0),[s,c]=(0,S.useState)(null),l=n.language;(0,S.useEffect)(()=>{(async()=>{try{o(!0);let t=await Op.getNewsBySlug(e);i(t.data?.data||t.data)}catch(e){c(e.response?.status===404?`News not found`:`Failed to fetch news`)}finally{o(!1)}})()},[e]);let u=(e,t)=>e?e[t]?e[t]:e.uz?e.uz:e.en?e.en:``:``;if(a)return(0,H.jsx)(`div`,{className:`py-20`,children:(0,H.jsx)(kp,{})});if(s||!r)return(0,H.jsxs)(`div`,{className:`container-page py-20 text-center`,children:[(0,H.jsx)(`h1`,{className:`text-3xl font-bold text-gray-100 mb-4`,children:s||`Maqola topilmadi`}),(0,H.jsx)(I,{to:`/news`,className:`text-[#38bdf8] hover:underline`,children:`Orqaga qaytish`})]});let d=u(r.title,l),f=u(r.shortContent,l),p=u(r.content,l),m=u(r.tagLabel,l)||r.tag,h=u(r.
37imageAlt,l),g=u(r.seoTitle,l)||d,_=u(r.seoDescription,l)||f;return(0,H.jsxs)(`div`,{className:`container-page py-10 max-w-4xl`,children:[(0,H.jsx)(Ku,{title:g,description:_}),(0,H.jsxs)(I,{to:`/news`,className:`inline-flex items-center gap-2 text-[#0B2D5C] hover:text-[#164C8C] mb-6 font-semibold text-xs transition-colors`,children:[(0,H.jsx)(pl,{size:16}),` `,t(`News`),` - Ro'yxatga qaytish`]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC]`,children:[(0,H.jsx)(`img`,{src:X(r.image),alt:h,className:`w-full h-80 md:h-[450px] object-cover rounded-xl shadow-sm mb-6 border border-[#E4E7EC]`}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4 text-[#667085] mb-4 text-xs font-medium`,children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-1 bg-[#F5F7FA] text-[#0B2D5C] px-3 py-1 rounded-md font-semibold border border-[#E4E7EC]`,children:[(0,H.jsx)(Tu,{size:14}),` `,m]}),r.publishedAt&&(0,H.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(Cl,{size:14}),` `,new Date(r.publishedAt).toLocaleDateString(l)]}),r.author&&(0,H.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(ju,{size:14}),` `,r.author.name]})]}),(0,H.jsx)(`h1`,{className:`text-2xl md:text-4xl font-bold text-[#0B2D5C] mb-4 leading-snug`,children:d}),(0,H.jsxs)(`div`,{className:`prose max-w-none text-[#172033]`,children:[f&&(0,H.jsx)(`p`,{className:`text-base text-[#164C8C] mb-6 font-medium leading-relaxed bg-[#F5F7FA] p-4 rounded-xl border border-[#E4E7EC]`,children:f}),(0,H.jsx)(`div`,{className:`whitespace-pre-line leading-relaxed text-sm text-[#172033]`,dangerouslySetInnerHTML:{__html:Nh(p)}})]})]})]})},Fh={getAnnouncements:async(e={})=>{let{data:t}=await V.get(`/announcements`,{params:e});return t},getLatestAnnouncements:async(e=6)=>{let{data:t}=await V.get(`/announcements/latest`,{params:{limit:e}});return t},getAnnouncementBySlug:async e=>{let{data:t}=await V.get(`/announcements/${e}`);return t},createAnnouncement:async e=>{let t={headers:{"Content-Type":e instanceof FormData?`multipart/form-data`:`application/json`}},{data:n}=await V.post(`/announcements`,e,t);return n},updateAnnouncement:async(e,t)=>{let n={headers:{"Content-Type":t instanceof FormData?`multipart/form-data`:`application/json`}},{data:r}=await V.put(`/announcements/${e}`,t,n);return r},deleteAnnouncement:async e=>{let{data:t}=await V.delete(`/announcements/${e}`);return t}},Ih=()=>{let{t:e,i18n:t}=W(),n=t.language||`uz`,[r,i]=(0,S.useState)([]),[a,o]=(0,S.useState)(!0),[s,c]=(0,S.useState)(``);(0,S.useEffect)(()=>{Fh.getAnnouncements({limit:100}).then(e=>{i(e.data.items||[]),o(!1)}).catch(e=>{console.error(e),o(!1)})},[]);let l=e=>e&&(e[n]||e.uz||e.en||e.ru)||``,u=r.filter(e=>l(e.title).toLowerCase().includes(s.toLowerCase())||l(e.shortContent).toLowerCase().includes(s.toLowerCase()));return(0,H.jsxs)(`div`,{className:`container-page py-10 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Announcements`)}),(0,H.jsx)(Bp,{title:e(`Announcements`)}),(0,H.jsxs)(`div`,{className:`mb-8 relative max-w-md`,children:[(0,H.jsx)(`input`,{type:`text`,placeholder:e(`Search`)+`...`,className:`input-academic pl-10`,value:s,onChange:e=>c(e.target.value)}),(0,H.jsx)(_u,{className:`absolute left-3 top-3 text-[#667085]`,size:18})]}),a?(0,H.jsx)(kp,{}):u.length>0?(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6`,children:u.map(t=>(0,H.jsxs)(`div`,{className:`bg-white rounded-xl p-6 border border-[#E4E7EC] shadow-xs hover:shadow-md hover:border-[#164C8C]/40 transition-all duration-200 flex flex-col h-full relative overflow-hidden group`,children:[t.isPinned&&(0,H.jsx)(`div`,{className:`absolute top-0 right-0 bg-[#C59B27] text-[#071D3B] p-1.5 rounded-bl-lg shadow-sm`,title:`Biriktirilgan`,children:(0,H.jsx)(lu,{size:14})}),(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-[#667085] mb-3`,children:[(0,H.jsx)(Cl,{size:14,className:`text-[#0B2D5C]`}),(0,H.jsx)(`span`,{children:t.publishedAt?new Date(t.publishedAt).toLocaleDateString():``}),(0,H.jsx)(`span`,{className:`ml-auto bg-[#F5F7FA] border border-[#
37E4E7EC] text-[#0B2D5C] px-2.5 py-0.5 rounded-md font-semibold text-[11px]`,children:l(t.tagLabel)||t.tag||`E'lon`})]}),(0,H.jsxs)(`div`,{className:`flex gap-2.5 mb-3`,children:[(0,H.jsx)(Bl,{className:`text-[#0B2D5C] shrink-0 mt-0.5`,size:20}),(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-lg leading-snug line-clamp-2`,children:l(t.title)})]}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs mb-6 flex-grow leading-relaxed line-clamp-3`,children:l(t.shortContent)}),(0,H.jsxs)(I,{to:`/announcements/${t.slug}`,className:`text-[#0B2D5C] font-semibold text-xs hover:text-[#164C8C] mt-auto inline-flex items-center gap-1`,children:[e(`Read More`),` →`]})]},t.id))}):(0,H.jsx)(lm,{})]})},Lh=()=>{let{slug:e}=xn(),{t,i18n:n}=W(),r=n.language||`uz`,[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(!0);(0,S.useEffect)(()=>{Fh.getAnnouncementBySlug(e).then(e=>{a(e.data),s(!1)}).catch(e=>{console.error(e),s(!1)})},[e]);let c=e=>e&&(e[r]||e.uz||e.en||e.ru)||``;return o?(0,H.jsx)(`div`,{className:`py-20`,children:(0,H.jsx)(kp,{})}):i?(0,H.jsxs)(`div`,{className:`container-page py-10 max-w-4xl`,children:[(0,H.jsx)(Ku,{title:c(i.title),description:c(i.shortContent)}),(0,H.jsxs)(I,{to:`/announcements`,className:`inline-flex items-center gap-2 text-[#0B2D5C] hover:text-[#164C8C] mb-6 font-semibold text-xs transition-colors`,children:[(0,H.jsx)(pl,{size:16}),` `,t(`Announcements`),` - Ro'yxatga qaytish`]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-10 rounded-2xl shadow-xs border border-[#E4E7EC]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-4 text-[#667085] mb-4 text-xs font-medium`,children:[(0,H.jsxs)(`span`,{className:`flex items-center gap-1 bg-[#F5F7FA] border border-[#E4E7EC] text-[#0B2D5C] px-3 py-1 rounded-md font-semibold`,children:[(0,H.jsx)(Tu,{size:14}),` `,c(i.tagLabel)||i.tag||`E'lon`]}),(0,H.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,H.jsx)(Cl,{size:14}),` `,i.publishedAt?new Date(i.publishedAt).toLocaleDateString():``]})]}),(0,H.jsxs)(`div`,{className:`flex items-start gap-3 mb-6`,children:[(0,H.jsx)(Bl,{className:`text-[#0B2D5C] shrink-0 mt-1`,size:28}),(0,H.jsx)(`h1`,{className:`text-2xl md:text-3xl font-bold text-[#0B2D5C] leading-snug`,children:c(i.title)})]}),(0,H.jsxs)(`div`,{className:`prose max-w-none text-[#172033]`,children:[c(i.shortContent)&&(0,H.jsx)(`p`,{className:`text-base text-[#164C8C] mb-6 font-medium leading-relaxed bg-[#F5F7FA] p-4 rounded-xl border border-[#E4E7EC]`,children:c(i.shortContent)}),(0,H.jsx)(`div`,{className:`p-6 bg-[#F5F7FA] rounded-xl whitespace-pre-line leading-relaxed text-sm text-[#172033] border border-[#E4E7EC]`,children:c(i.content)})]}),i.documentUrl&&(0,H.jsx)(`div`,{className:`mt-8 pt-6 border-t border-[#E4E7EC]`,children:(0,H.jsxs)(`a`,{href:X(i.documentUrl),target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-6 py-3 rounded-lg transition-colors font-bold text-sm shadow-sm`,children:[(0,H.jsx)(Rl,{size:18}),` Ilovani yuklab olish`]})})]})]}):(0,H.jsxs)(`div`,{className:`container-page py-20 text-center`,children:[(0,H.jsx)(`h1`,{className:`text-3xl font-bold text-gray-100 mb-4`,children:`E'lon topilmadi`}),(0,H.jsx)(I,{to:`/announcements`,className:`text-[#38bdf8] hover:underline`,children:`Orqaga qaytish`})]})},Rh=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)({firstName:``,lastName:``,phone:``,email:``,message:``}),[o,s]=(0,S.useState)({}),[c,l]=(0,S.useState)(!1);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>r(e.data?.data)).catch(e=>console.error(`Failed to load settings`,e))},[]);let u=e=>e&&(e[t.language||`uz`]||e.uz||e.en)||``,d=()=>{let e={};return i.firstName.trim()||(e.firstName=`Ism kiritilishi shart`),i.phone.trim()||(e.phone=`Telefon raqam kiritilishi shart`),i.message.trim()||(e.message=`Xabar matni kiritilishi shart`),e},f=e=>{e.preventDefault();let t=d();if(Object.keys(t).length>0){s(t);return}s({}),l(!0),a({firstName:``,lastName:``,phone:``,email:``,message:``})},p=n?.phoneNumbers?.[0]||`+998 66 233 11 11`,m=n?.email||`[email protected]`,h=n?.address?u(n.address):`Samarqand shahar, Universitet xiyoboni, 1-uy`;return(0,H.jsxs)(`div`,{className:`container-page py-10 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Contacts`)}
37),(0,H.jsx)(Bp,{title:e(`Contacts`),parentTitle:e(`School`)}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-12`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-start gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-[#0B2D5C] text-[#C59B27] flex items-center justify-center shrink-0`,children:(0,H.jsx)(cu,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block mb-1`,children:e(`Phone`)}),(0,H.jsx)(`a`,{href:`tel:${p.replace(/\s+/g,``)}`,className:`font-bold text-[#0B2D5C] text-sm hover:text-[#164C8C] transition-colors block`,children:p})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-start gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-[#0B2D5C] text-[#C59B27] flex items-center justify-center shrink-0`,children:(0,H.jsx)(Zl,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block mb-1`,children:e(`Email`)}),(0,H.jsx)(`a`,{href:`mailto:${m}`,className:`font-bold text-[#0B2D5C] text-sm hover:text-[#164C8C] transition-colors block`,children:m})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-start gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-[#0B2D5C] text-[#C59B27] flex items-center justify-center shrink-0`,children:(0,H.jsx)(Ql,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block mb-1`,children:e(`Address`)}),(0,H.jsx)(`span`,{className:`font-bold text-[#0B2D5C] text-xs leading-snug block`,children:h})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-[#E4E7EC] shadow-xs flex items-start gap-4`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-xl bg-[#0B2D5C] text-[#C59B27] flex items-center justify-center shrink-0`,children:(0,H.jsx)(Nl,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block mb-1`,children:e(`Working Hours`)}),(0,H.jsx)(`span`,{className:`font-bold text-[#0B2D5C] text-xs leading-snug block`,children:`Dushanba - Juma: 08:00 - 18:00`})]})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-12 mb-16`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-8 md:p-10 rounded-2xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`h2`,{className:`text-2xl font-extrabold text-[#0B2D5C] mb-2`,children:e(`Send Message`)}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mb-8 leading-relaxed`,children:`Savol va takliflaringizni yuboring, maktab mas'ul xodimlari siz bilan tez orada bog'lanishadi.`}),c&&(0,H.jsxs)(`div`,{className:`mb-6 p-4 bg-emerald-50 border border-emerald-200 rounded-xl flex items-center gap-3 text-emerald-800 text-xs font-semibold`,children:[(0,H.jsx)(Al,{size:20,className:`shrink-0 text-emerald-600`}),(0,H.jsx)(`span`,{children:e(`Message Sent Success`)||`Sizning murojaatingiz muvaffaqiyatli yuborildi. Tez orada bog'lanamiz!`})]}),(0,H.jsxs)(`form`,{onSubmit:f,className:`space-y-5`,children:[(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] mb-1.5`,children:[e(`First Name`),` *`]}),(0,H.jsx)(`input`,{type:`text`,className:`input-academic ${o.firstName?`border-red-500 focus:ring-red-500`:``}`,value:i.firstName,onChange:e=>a({...i,firstName:e.target.value})}),o.firstName&&(0,H.jsxs)(`span`,{className:`text-[11px] text-red-500 mt-1 block flex items-center gap-1`,children:[(0,H.jsx)(Ol,{size:12}),` `,o.firstName]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] mb-1.5`,children:e(`Last Name`)}),(0,H.jsx)(`input`,{type:`text`,className:`input-academic`,value:i.lastName,onChange:e=>a({...i,lastName:e.target.value})})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 gap-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] mb-1.5`,children:[e(`Phone Number`),` *`]}),(0,H.jsx)(`input`,{type:`tel`,placeholder:`+998 90 123 45 67`,className:`input-academic ${o.phone?`border-red-500 focus:ring-red-500`:``}`,value:i.phone,onChange:e=>a({...i,phone:e.target.value})}),o.phone&&(0,H.jsxs)(`span`,{className:`text-[11px] text-red-500 mt-1 block flex items-center gap-1`,children:[(0,H.jsx)(Ol,{size:12}),` `,o.phone]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] mb-1.5`,children:e(`Email Address`)}),(0,H.jsx)(`input`,{type:`email`,placeholder:`[email protected]`,className:`input-academic`,value:i.email,onChange:e=>a({...i,email:e.target.value})})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] mb-1.5`,children:[e(`Your Message`),` *`]}),(0,H.jsx)(`textarea`,{rows:4,className:`input-academic ${o.message?`border-red-500 focus:ring-red-500`:``}`,value:i.message,onChange:e=>a({...i,message:e.target.value})}),o.message&&(0,H.jsxs)(`span`,{className:`text-[11px] text-red-500 mt-1 block flex items-center gap-1`,children:[(0,H.jsx)(Ol,{size:12}),` `,o.message]})]}),(0,H.jsxs)(`button`,{type:`submit`,className:`w-full bg-[#0B2D5C] hover:bg-[#164C8C] text-white py-3 rounded-xl font-bold text-xs transition-colors shadow-sm flex items-center justify-center gap-2 cursor-pointer`,children:[(0,H.jsx)(vu,{size:16}),` `,e(`Send`)]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-8 md:p-10 rounded-2xl border border-[#
37E4E7EC] shadow-xs flex flex-col`,children:[(0,H.jsx)(`h2`,{className:`text-2xl font-extrabold text-[#0B2D5C] mb-2`,children:e(`Location Map`)}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mb-6 leading-relaxed`,children:`Samarqand shahridagi Prezident maktabiga tashrif buyurish uchun xarito orqali yo'nalish oling.`}),(0,H.jsx)(`div`,{className:`w-full flex-grow min-h-[350px] rounded-xl overflow-hidden border border-[#E4E7EC] shadow-inner relative`,children:(0,H.jsx)(`iframe`,{src:n?.mapUrl||`https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3071.7480749005953!2d66.9749!3d39.6542!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zMznCsDM5JzE1LjEiTiA2NsKwNTgn2FzZSJF!5e0!3m2!1sen!2s!4v1620000000000!5m2!1sen!2s`,width:`100%`,height:`100%`,style:{border:0,minHeight:`350px`},allowFullScreen:``,loading:`lazy`,title:`Samarqand Prezident Maktabi Xaritasi`})})]})]})]})},zh=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(null),c=async()=>{a(!0),s(null);try{let e=await Ip.getUsefulLinks();r(e.data?.data||[])}catch{s(e(`Failed to load links`)||`Foydali havolalarni yuklashda xatolik yuz berdi`)}finally{a(!1)}};(0,S.useEffect)(()=>{c()},[]);let l=e=>e?typeof e==`string`?e:e[t.language||`uz`]||e.uz||e.en||e.ru||``:``;return(0,H.jsxs)(`div`,{className:`bg-[#F5F7FA] min-h-screen py-6 sm:py-10`,children:[(0,H.jsx)(Ku,{title:e(`Useful Links`),description:e(`Useful Links Subtitle`)}),(0,H.jsx)(Hp,{}),(0,H.jsxs)(`div`,{className:`container-page space-y-8 mt-4`,children:[(0,H.jsxs)(`div`,{className:`text-center max-w-2xl mx-auto space-y-3`,children:[(0,H.jsx)(`div`,{className:`inline-flex items-center justify-center p-3.5 bg-blue-50 text-[#0B2D5C] rounded-2xl mb-1 shadow-xs border border-blue-100`,children:(0,H.jsx)(Jl,{className:`w-8 h-8`})}),(0,H.jsx)(`h1`,{className:`text-2xl sm:text-3xl font-extrabold text-[#0B2D5C] tracking-tight`,children:e(`Useful Links`)}),(0,H.jsx)(`p`,{className:`text-xs sm:text-sm text-[#667085] leading-relaxed`,children:e(`Useful Links Subtitle`)})]}),i?(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`,children:[1,2,3,4,5,6].map(e=>(0,H.jsxs)(`div`,{className:`bg-white rounded-2xl p-6 border border-[#E4E7EC] shadow-xs space-y-4 animate-pulse`,children:[(0,H.jsx)(`div`,{className:`w-16 h-16 bg-gray-200 rounded-xl`}),(0,H.jsx)(`div`,{className:`h-4 bg-gray-200 rounded w-3/4`}),(0,H.jsx)(`div`,{className:`h-3 bg-gray-200 rounded w-full`})]},e))}):o?(0,H.jsxs)(`div`,{className:`bg-rose-50 border border-rose-200 rounded-2xl p-8 text-center space-y-4 max-w-md mx-auto`,children:[(0,H.jsx)(`p`,{className:`text-xs font-bold text-rose-800`,children:o}),(0,H.jsx)(`button`,{onClick:c,className:`px-5 py-2.5 bg-rose-600 text-white text-xs font-bold rounded-xl hover:bg-rose-700 transition-colors shadow-xs`,children:e(`Retry`)})]}):n.length===0?(0,H.jsxs)(`div`,{className:`bg-white rounded-2xl border border-[#E4E7EC] p-12 text-center text-xs text-[#667085] space-y-3 max-w-md mx-auto`,children:[(0,H.jsx)(Jl,{className:`w-10 h-10 text-gray-400 mx-auto`}),(0,H.jsx)(`p`,{className:`font-bold text-[#172033] text-sm`,children:e(`No links available`)})]}):(0,H.jsx)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6`,children:n.map(t=>(0,H.jsxs)(`a`,{href:t.link||t.url,target:`_blank`,rel:`noopener noreferrer`,className:`group bg-white rounded-2xl p-6 border border-[#E4E7EC] shadow-xs hover:shadow-md hover:border-[#0B2D5C]/40 transition-all flex flex-col justify-between`,children:[(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-start`,children:[t.image||t.logo?(0,H.jsx)(`div`,{className:`w-16 h-16 rounded-xl border border-[#E4E7EC] p-2.5 flex items-center justify-center bg-[#F5F7FA]`,children:(0,H.jsx)(`img`,{src:X(t.image||t.logo),alt:l(t.name||t.title),className:`max-w-full max-h-full object-contain`})}):(0,H.jsx)(`div`,{className:`w-16 h-16 rounded-xl bg-blue-50 border border-blue-100 flex items-center justify-center text-[#0B2D5C]`,children:(0,H.jsx)(Jl,{className:`w-8 h-8`})}),(0,H.jsx)(`span`,{className:`p-2 text-[#667085] group-hover:text-[#0B2D5C] group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition-all`,children:(0,H.jsx)(K,{className:`w-5 h-5`})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-sm font-bold text-[#0B2D5C] group-hover:text-[#164C8C] transition-colors leading-snug`,children:l(t.name||t.title)}),t.description&&(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mt-1.5 line-clamp-2 leading-relaxed`,children:l(t.description)})]})]}
37),(0,H.jsxs)(`div`,{className:`mt-5 pt-3.5 border-t border-[#E4E7EC]/60 flex items-center justify-between text-[11px] text-[#164C8C] font-bold`,children:[(0,H.jsx)(`span`,{children:e(`Visit Site`)}),(0,H.jsx)(K,{className:`w-3.5 h-3.5`})]})]},t.id))})]})]})},Bh=()=>{let{t:e}=W(),[t,n]=(0,S.useState)(null);(0,S.useEffect)(()=>{Ru.getSettings().then(e=>n(e.data?.data)).catch(e=>console.error(`Failed to load settings`,e))},[]);let r=t?.constitutionPdf?X(t.constitutionPdf):`/docs/maktab_konstitutsiyasi.pdf`;return(0,H.jsxs)(`div`,{className:`bg-[#F7F9FC] min-h-screen py-6 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:`Maktab Konstitutsiyasi (Ustavi) — Samarqand shahridagi Prezident maktabi`,description:`Samarqand shahridagi Prezident maktabi rasmiy Konstitutsiyasi va Ustavi hujjati.`}),(0,H.jsx)(Hp,{}),(0,H.jsxs)(`div`,{className:`container-page space-y-8 mt-2 px-4`,children:[(0,H.jsx)(Bp,{title:`Maktab Konstitutsiyasi`,parentTitle:`Biz haqimizda`}),(0,H.jsx)(`h2`,{className:`text-xl sm:text-2xl md:text-3xl font-extrabold text-[#0B2D5C] text-center tracking-tight max-w-3xl mx-auto`,children:`Samarqand shahridagi Prezident Maktabi Konstitutsiyasi va Rasmiy Ustavi`}),(0,H.jsxs)(`div`,{className:`bg-white p-4 sm:p-8 rounded-3xl border border-[#E4E7EC] shadow-md space-y-6 max-w-5xl mx-auto`,children:[(0,H.jsx)(`div`,{className:`w-full h-[620px] sm:h-[750px] rounded-2xl overflow-hidden border border-gray-200/80 shadow-inner bg-slate-100 relative group`,children:(0,H.jsx)(`object`,{data:`${r}#toolbar=1&navpanes=1&scrollbar=1`,type:`application/pdf`,className:`w-full h-full border-none`,children:(0,H.jsx)(`iframe`,{src:`${r}#toolbar=1&navpanes=1&scrollbar=1`,className:`w-full h-full border-none`,title:`Maktab Konstitutsiyasi PDF Hujjat`})})}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-4 pt-2`,children:[(0,H.jsxs)(`a`,{href:r,download:!0,className:`inline-flex items-center gap-2 bg-[#0284c7] hover:bg-[#0369a1] text-white px-6 py-2.5 rounded-xl font-bold text-xs shadow-sm transition-all cursor-pointer active:scale-98`,children:[(0,H.jsx)(Rl,{size:16}),(0,H.jsx)(`span`,{children:`Yuklab olish`})]}),(0,H.jsxs)(`a`,{href:r,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-2 bg-white hover:bg-blue-50 text-[#0284c7] border border-[#0284c7] px-6 py-2.5 rounded-xl font-bold text-xs shadow-xs transition-all cursor-pointer active:scale-98`,children:[(0,H.jsx)(K,{size:16}),(0,H.jsx)(`span`,{children:`Yangi oynada ochish`})]})]})]})]})]})},Vh={getYears:()=>V.get(`/statistics/years`),getStatistics:e=>V.get(`/statistics/${e}`),getDynamics:()=>V.get(`/statistics/dynamics`),updateStatistics:(e,t)=>V.put(`/statistics/${e}`,t)},Hh=({value:e,duration:t=1200,suffix:n=``,prefix:r=``})=>{let[i,a]=(0,S.useState)(0);if((0,S.useEffect)(()=>{let n=parseFloat(e);if(isNaN(n)){a(e);return}let r=0;e.toString().includes(`.`);let i=n/40,o=Math.max(Math.floor(t/40),15),s=setInterval(()=>{r+=i,r>=n?(a(n),clearInterval(s)):a(r)},o);return()=>clearInterval(s)},[e,t]),typeof i!=`number`)return(0,H.jsxs)(`span`,{children:[r,e,n]});let o=i.toLocaleString(`uz-UZ`,{maximumFractionDigits:1});return(0,H.jsxs)(`span`,{children:[r,o,n]})},Uh=({data:e})=>{let[t,n]=(0,S.useState)(null);if(!e||e.length===0)return null;let r=Math.max(...e.map(e=>e.studentCount),30);return(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsx)(`div`,{className:`flex items-end justify-between gap-2 h-56 pt-6 px-2 border-b border-gray-200 relative`,children:e.map((e,i)=>{let a=Math.round(e.studentCount/r*100),o=t===i;return(0,H.jsxs)(`div`,{onMouseEnter:()=>n(i),onMouseLeave:()=>n(null),className:`flex-1 flex flex-col items-center h-full justify-end group cursor-pointer relative`,children:[o&&(0,H.jsxs)(`div`,{className:`absolute -top-10 bg-[#0B2D5C] text-white text-[11px] font-bold px-2.5 py-1 rounded-lg shadow-lg z-20 whitespace-nowrap animate-in fade-in zoom-in duration-150`,children:[e.grade,`: `,(0,H.jsxs)(`span`,{className:`text-[#38bdf8] font-extrabold`,children:[e.studentCount,` ta o'quvchi`]})]}),(0,H.jsx)(`div`,{style:{height:`${a}%`},className:`w-full max-w-[42px] rounded-t-xl transition-all duration-500 relative flex items-center justify-center ${o?`bg-[#0284c7] shadow-md scale-105`:`bg-[#0B2D5C] hover:bg-[#164C8C]`}`,children:(0,H.jsx)(`span`,{className:`text-[10px] font-extrabold text-white mb-1`,children:e.studentCount})})]},i)})}),(0,H.jsx)(`div`,{className:`flex justify-between px-2 text-xs font-bold text-[#0B2D5C]`,children:e.map((e,t)=>(0,H.jsx)(`div`,{className:`flex-1 text-center truncate`,children:e.grade},t))})]})},Wh=({data:e,metricKey:t=`totalStudents`,metricName:n=`O'quvchilar soni`,lineColor:r=`#0284c7`})=>{let[i,a]=(0,S.useState)(null);if(!e||e.length===0)return null;let o=Math.max(...e.map(e=>e[t]||0),10),s=Math.min(...e.map(e=>e[t]||0),0),c=e.map((n,r)=>{let i=35+r/Math.max(e.length-1,1)*530,a=n[t]||0;return{x:i,y:185-(a-s)/Math.max(o-s,1)*150,val:a,year:n.year}}
37),l=c.reduce((e,t,n)=>n===0?`M ${t.x} ${t.y}`:`${e} L ${t.x} ${t.y}`,``),u=`${l} L ${c[c.length-1].x} 185 L ${c[0].x} 185 Z`;return(0,H.jsx)(`div`,{className:`w-full relative`,children:(0,H.jsxs)(`svg`,{viewBox:`0 0 600 220`,className:`w-full h-auto overflow-visible`,children:[(0,H.jsx)(`defs`,{children:(0,H.jsxs)(`linearGradient`,{id:`lineGrad`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,H.jsx)(`stop`,{offset:`0%`,stopColor:r,stopOpacity:`0.35`}),(0,H.jsx)(`stop`,{offset:`100%`,stopColor:r,stopOpacity:`0.0`})]})}),[.25,.5,.75,1].map((e,t)=>(0,H.jsx)(`line`,{x1:35,y1:185-e*150,x2:565,y2:185-e*150,stroke:`#E4E7EC`,strokeDasharray:`4 4`,strokeWidth:`1`},t)),(0,H.jsx)(`path`,{d:u,fill:`url(#lineGrad)`}),(0,H.jsx)(`path`,{d:l,fill:`none`,stroke:r,strokeWidth:`3.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),c.map((e,t)=>(0,H.jsxs)(`g`,{onMouseEnter:()=>a(t),onMouseLeave:()=>a(null),className:`cursor-pointer`,children:[(0,H.jsx)(`circle`,{cx:e.x,cy:e.y,r:i===t?`7`:`5`,fill:i===t?`#0B2D5C`:r,stroke:`#white`,strokeWidth:`2.5`,className:`transition-all duration-200`}),(0,H.jsx)(`text`,{x:e.x,y:210,textAnchor:`middle`,className:`text-[11px] font-bold fill-[#0B2D5C]`,children:e.year}),(0,H.jsx)(`text`,{x:e.x,y:e.y-12,textAnchor:`middle`,className:`text-[11px] font-extrabold fill-[#0B2D5C]`,children:e.val})]},t))]})})},Gh=({localCount:e=0,foreignCount:t=0})=>{let n=e+t,r=n>0?Math.round(e/n*100):0,i=n>0?100-r:0;return(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-center justify-center gap-6 p-4`,children:[(0,H.jsxs)(`div`,{className:`relative w-44 h-44 shrink-0 flex items-center justify-center`,children:[(0,H.jsxs)(`svg`,{viewBox:`0 0 36 36`,className:`w-full h-full transform -rotate-90`,children:[(0,H.jsx)(`path`,{d:`M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831`,fill:`none`,stroke:`#E4E7EC`,strokeWidth:`3.8`}),(0,H.jsx)(`path`,{d:`M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831`,fill:`none`,stroke:`#0B2D5C`,strokeWidth:`4.5`,strokeDasharray:`${r}, 100`,className:`transition-all duration-700`}),(0,H.jsx)(`path`,{d:`M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831`,fill:`none`,stroke:`#0284c7`,strokeWidth:`4.5`,strokeDasharray:`${i}, 100`,strokeDashoffset:`-${r}`,className:`transition-all duration-700`})]}),(0,H.jsxs)(`div`,{className:`absolute inset-0 flex flex-col items-center justify-center text-center`,children:[(0,H.jsx)(`span`,{className:`text-2xl font-black text-[#0B2D5C]`,children:n}),(0,H.jsx)(`span`,{className:`text-[10px] font-bold text-[#667085] uppercase tracking-wider`,children:`Jami Pedagoglar`})]})]}),(0,H.jsxs)(`div`,{className:`space-y-3 w-full sm:w-auto`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-4 p-3 bg-slate-50 rounded-xl border border-slate-200`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,H.jsx)(`span`,{className:`w-3.5 h-3.5 rounded-md bg-[#0B2D5C] shrink-0`}),(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#0B2D5C]`,children:`Mahalliy pedagoglar`})]}),(0,H.jsxs)(`span`,{className:`text-xs font-black text-[#0B2D5C]`,children:[e,` ta (`,r,`%)`]})]}),(0,H.jsxs)(`div`,{className:`flex items-center justify-between gap-4 p-3 bg-sky-50 rounded-xl border border-sky-200`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,H.jsx)(`span`,{className:`w-3.5 h-3.5 rounded-md bg-[#0284c7] shrink-0`}),(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#0284c7]`,children:`Xorijiy pedagoglar`})]}),(0,H.jsxs)(`span`,{className:`text-xs font-black text-[#0284c7]`,children:[t,` ta (`,i,`%)`]})]})]})]})},Kh=({isOpen:e,onClose:t,dynamicsData:n=[],years:r=[]})=>{let i=r.length>0?r.map(e=>e.year):[2026,2025,2024,2023],[a,o]=(0,S.useState)(i[1]||2025),[s,c]=(0,S.useState)(i[0]||2026);if(!e)return null;let l=n.find(e=>e.year===parseInt(a))||{},u=n.find(e=>e.year===parseInt(s))||{},d=[{label:`O'quvchilar soni`,key:`totalStudents`,suffix:` ta`},{label:`Jami Pedagoglar`,key:`totalTeachers`,suffix:` ta`},{label:`Mahalliy pedagoglar`,key:`localTeachers`,suffix:` ta`},{label:`Xorijiy pedagoglar`,key:`foreignTeachers`,suffix:` ta`},{label:`Bitiruvchilar`,key:`graduates`,suffix:` ta`},{label:`OTMga qabul ko'rsatkichi`,key:`admissionRate`,suffix:`%`},{label:`Xalqaro sertifikatlar`,key:`internationalCertificates`,suffix:` ta`},{label:`Olimpiada va yutuqlar`,key:`achievementCount`,suffix:` ta`}],f=(e,t,n)=>{let r=parseFloat(e)||0,i=parseFloat(t)||0;if(r===i)return(0,H.jsxs)(`span`,{className:`px-2.5 py-1 bg-gray-100 text-gray-600 rounded-lg text-xs font-bold flex items-center gap-1`,children:[(0,H.jsx)(tu,{size:13}),` 0% (O'zgarmagan)`]});let a=i-r,o=r>0?Math.round(a/r*100):100,s=a>0;return(0,H.jsxs)(`span`,{className:`px-2.5 py-1 rounded-lg text-xs font-bold flex items-center gap-1 ${s?`bg-emerald-50 text-emerald-700 border border-emerald-200`:`bg-rose-50 text-rose-700 border border-rose-200`}`,children:[s?(0,H.jsx)(hl,{size:14}):(0,H.jsx)(fl,{size:14}),s?`+${a}${n}`:`${a}${n}`,` (`,s?`+${o}%`:`${o}%`,`)`]})};return(0,H.jsx)(`div`,{className:`fixed inset-0 z-50 bg-black/60 backdrop-blur-xs flex items-center justify-center p-4`,children:(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl max-w-3xl w-full p-6 md:p-8 shadow-2xl relative border border-gray-100 animate-in fade-in zoom-in duration-200 space-y-6`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-2xl bg-[#0B2D5C] text-white flex items-center justify-center font-bold`,children:(0,H.jsx)(gu,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-lg text-[#0B2D5C]`,children:`Yillar Bo'yicha Statistika Taqqoslashi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Ikkita yil ko'rsatkichlarini yonma-yon solishtiring va dinamikani ko'ring`})]})]}),(0,H.jsx)(`button`,{onClick:t,className:`text-gray-400 hover:text-gray-600 p-2 rounded-xl hover:bg-gray-100`,children:(0,H.jsx)(Iu,{size:20})})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 bg-[#F8FAFC] p-4 rounded-2xl border border-[#
37E4E7EC]`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[11px] font-bold text-[#0B2D5C] uppercase tracking-wider mb-1`,children:`1-Yil (Taqqoslanuvchi)`}),(0,H.jsx)(`select`,{value:a,onChange:e=>o(parseInt(e.target.value)),className:`input-academic bg-white font-bold text-xs`,children:i.map(e=>(0,H.jsxs)(`option`,{value:e,children:[e,`-yil`]},e))})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[11px] font-bold text-[#0B2D5C] uppercase tracking-wider mb-1`,children:`2-Yil (Asosiy / Yangi)`}),(0,H.jsx)(`select`,{value:s,onChange:e=>c(parseInt(e.target.value)),className:`input-academic bg-white font-bold text-xs`,children:i.map(e=>(0,H.jsxs)(`option`,{value:e,children:[e,`-yil`]},e))})]})]}),(0,H.jsx)(`div`,{className:`overflow-x-auto border border-[#E4E7EC] rounded-2xl shadow-2xs`,children:(0,H.jsxs)(`table`,{className:`w-full text-left text-xs`,children:[(0,H.jsx)(`thead`,{className:`bg-[#0B2D5C] text-white font-bold uppercase tracking-wider`,children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{className:`p-3.5`,children:`Ko'rsatkich Nomi`}),(0,H.jsxs)(`th`,{className:`p-3.5 text-center`,children:[a,`-yil`]}),(0,H.jsxs)(`th`,{className:`p-3.5 text-center`,children:[s,`-yil`]}),(0,H.jsx)(`th`,{className:`p-3.5 text-right`,children:`O'zgarish Dinamikasi`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-gray-100 font-medium`,children:d.map((e,t)=>{let n=l[e.key]===void 0?`—`:l[e.key],r=u[e.key]===void 0?`—`:u[e.key];return(0,H.jsxs)(`tr`,{className:`hover:bg-blue-50/40 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-3.5 font-bold text-[#0B2D5C]`,children:e.label}),(0,H.jsxs)(`td`,{className:`p-3.5 text-center font-extrabold text-gray-700`,children:[n,e.suffix]}),(0,H.jsxs)(`td`,{className:`p-3.5 text-center font-black text-[#0284c7]`,children:[r,e.suffix]}),(0,H.jsx)(`td`,{className:`p-3.5 flex justify-end`,children:f(n,r,e.suffix)})]},t)})})]})}),(0,H.jsx)(`div`,{className:`pt-2 flex justify-end`,children:(0,H.jsx)(`button`,{onClick:t,className:`bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-6 py-2.5 rounded-xl text-xs font-bold transition-all cursor-pointer shadow-xs`,children:`Yopish`})})]})})},qh=()=>{let{t:e,i18n:t}=W(),[n,r]=(0,S.useState)(2026),[i,a]=(0,S.useState)([{year:2026},{year:2025},{year:2024},{year:2023}]),[o,s]=(0,S.useState)(null),[c,l]=(0,S.useState)([]),[u,d]=(0,S.useState)(!0),[f,p]=(0,S.useState)(!1);(0,S.useEffect)(()=>{Vh.getYears().then(e=>{e.data?.data&&e.data.data.length>0&&(a(e.data.data),r(e.data.data[0].year))}).catch(e=>console.error(`Failed to load years:`,e)),Vh.getDynamics().then(e=>{e.data?.data&&l(e.data.data)}).catch(e=>console.error(`Failed to load dynamics:`,e))},[]),(0,S.useEffect)(()=>{d(!0),Vh.getStatistics(n).then(e=>{e.data?.data&&s(e.data.data)}).catch(e=>console.error(`Failed to load statistics for ${n}:`,e)).finally(()=>d(!1))},[n]);let m=o?.general||{},h=o?.students||[],g=o?.teachers||{},_=o?.graduates||{},v=o?.exams||[],y=o?.achievements||[];o?.certificates;let b=m.lastUpdatedDate||`20.08.${n}`;return(0,H.jsxs)(`div`,{className:`bg-[#F8FAFC] min-h-screen text-[#172033]`,children:[(0,H.jsx)(Ku,{title:`Maktab Statistikasi — Samarqand Prezident Maktabi`}),(0,H.jsxs)(`div`,{className:`bg-[#0B2D5C] text-white relative overflow-hidden py-16 md:py-20`,children:[(0,H.jsx)(`div`,{className:`absolute inset-0 bg-radial from-[#164C8C]/40 to-transparent pointer-events-none`}),(0,H.jsx)(`div`,{className:`absolute -right-20 -bottom-20 w-96 h-96 rounded-full border border-white/10 pointer-events-none`}),(0,H.jsx)(`div`,{className:`absolute -right-40 -bottom-40 w-[500px] h-[500px] rounded-full border border-white/5 pointer-events-none`}),(0,H.jsx)(`div`,{className:`container-page relative z-10`,children:(0,H.jsxs)(`div`,{className:`max-w-3xl space-y-4`,children:[(0,H.jsxs)(`div`,{className:`inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-[#C59B27]/20 border border-[#C59B27]/40 text-[#C59B27] text-xs font-extrabold uppercase tracking-wider`,children:[(0,H.jsx)(Su,{size:14}),` Rasmiy Statistika Dashboardi`]}),(0,H.jsx)(`h1`,{className:`text-3xl md:text-5xl font-black tracking-tight text-white leading-tight`,children:`Maktab Statistikasi`}),(0,H.jsx)(`p`,{className:`text-sm md:text-base text-gray-200 leading-relaxed font-medium`,children:`Samarqand Prezident maktabining ta’l
37im, o‘quvchilar, pedagoglar, xalqaro imtihonlar va yutuqlar bo‘yicha asosiy statistik ko‘rsatkichlari.`})]})})]}),(0,H.jsxs)(`div`,{className:`container-page py-10 space-y-12`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-4 md:p-6 rounded-3xl border border-[#E4E7EC] shadow-xs flex flex-col md:flex-row items-stretch md:items-center justify-between gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,H.jsxs)(`span`,{className:`text-xs font-extrabold text-[#0B2D5C] uppercase tracking-wider flex items-center gap-2`,children:[(0,H.jsx)(Cl,{size:16,className:`text-[#0284c7]`}),` Statistika Yilini Tanlang:`]}),(0,H.jsx)(`div`,{className:`flex items-center gap-2 bg-[#F8FAFC] p-1.5 rounded-2xl border border-[#E4E7EC]`,children:i.map(e=>(0,H.jsxs)(`button`,{onClick:()=>r(e.year),className:`px-4 py-2 rounded-xl text-xs font-black transition-all cursor-pointer ${n===e.year?`bg-[#0B2D5C] text-white shadow-xs scale-105`:`text-[#667085] hover:bg-gray-200 hover:text-[#0B2D5C]`}`,children:[e.year,`-yil`]},e.year))})]}),(0,H.jsxs)(`button`,{onClick:()=>p(!0),className:`bg-[#0284c7] hover:bg-[#0369a1] text-white px-5 py-2.5 rounded-2xl text-xs font-bold transition-all shadow-xs flex items-center justify-center gap-2 cursor-pointer`,children:[(0,H.jsx)(gu,{size:16}),` Yillar Dinamikasi (Solishtirish)`]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-5`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs space-y-2 relative overflow-hidden group hover:border-[#0284c7] transition-all`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-sky-50 text-[#0284c7] flex items-center justify-center font-bold`,children:(0,H.jsx)(Mu,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Jami o‘quvchilar`}),(0,H.jsx)(`div`,{className:`text-2xl font-black text-[#0B2D5C]`,children:(0,H.jsx)(Hh,{value:m.totalStudents||168,suffix:` ta`})})]}),(0,H.jsxs)(`span`,{className:`text-[10px] font-semibold text-gray-400 block`,children:[n,`-yil holatiga`]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs space-y-2 relative overflow-hidden group hover:border-[#0284c7] transition-all`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-amber-50 text-amber-600 flex items-center justify-center font-bold`,children:(0,H.jsx)(Hl,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Pedagoglar`}),(0,H.jsx)(`div`,{className:`text-2xl font-black text-[#0B2D5C]`,children:(0,H.jsx)(Hh,{value:m.totalTeachers||35,suffix:` ta`})})]}),(0,H.jsx)(`span`,{className:`text-[10px] font-semibold text-gray-400 block`,children:`Jami pedagog xodimlar`})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs space-y-2 relative overflow-hidden group hover:border-[#0284c7] transition-all`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-purple-50 text-purple-600 flex items-center justify-center font-bold`,children:(0,H.jsx)(Sl,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Bitiruvchilar`}),(0,H.jsx)(`div`,{className:`text-2xl font-black text-[#0B2D5C]`,children:(0,H.jsx)(Hh,{value:m.graduates||24,suffix:` ta`})})]}),(0,H.jsxs)(`span`,{className:`text-[10px] font-semibold text-gray-400 block`,children:[n,`-yilgacha`]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs space-y-2 relative overflow-hidden group hover:border-[#0284c7] transition-all`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-emerald-50 text-emerald-600 flex items-center justify-center font-bold`,children:(0,H.jsx)(Du,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`OTMga qabul`}),(0,H.jsx)(`div`,{className:`text-2xl font-black text-emerald-600`,children:(0,H.jsx)(Hh,{value:m.admissionRate||100,suffix:`%`})})]}),(0,H.jsx)(`span`,{className:`text-[10px] font-semibold text-gray-400 block`,children:`Bitiruvchilar qabul foizi`})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#
37E4E7EC] shadow-xs space-y-2 relative overflow-hidden group hover:border-[#0284c7] transition-all`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-indigo-50 text-indigo-600 flex items-center justify-center font-bold`,children:(0,H.jsx)(Y,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Sertifikatlar`}),(0,H.jsx)(`div`,{className:`text-2xl font-black text-[#0B2D5C]`,children:(0,H.jsx)(Hh,{value:m.internationalCertificates||74,suffix:` ta`})})]}),(0,H.jsx)(`span`,{className:`text-[10px] font-semibold text-gray-400 block`,children:`O‘quvchi va pedagoglar`})]}),(0,H.jsxs)(`div`,{className:`bg-white p-5 rounded-2xl border border-[#E4E7EC] shadow-xs space-y-2 relative overflow-hidden group hover:border-[#0284c7] transition-all`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-amber-50 text-amber-500 flex items-center justify-center font-bold`,children:(0,H.jsx)(ku,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-[#667085] uppercase tracking-wider block`,children:`Olimpiadalar`}),(0,H.jsx)(`div`,{className:`text-2xl font-black text-[#0B2D5C]`,children:(0,H.jsx)(Hh,{value:m.achievementCount||48,suffix:` ta`})})]}),(0,H.jsx)(`span`,{className:`text-[10px] font-semibold text-gray-400 block`,children:`Erishilgan natijalar`})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-8`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-8 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-lg font-black text-[#0B2D5C]`,children:`O‘quvchilar Statistikasi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`5-sinfdan 11-sinfgacha sinflar kesimida taqsimot`})]}),(0,H.jsxs)(`span`,{className:`px-3 py-1 bg-sky-50 text-[#0284c7] text-xs font-black rounded-full`,children:[`Jami: `,m.totalStudents||168,` ta`]})]}),h.length>0?(0,H.jsx)(Uh,{data:h}):(0,H.jsx)(`div`,{className:`text-center py-12 text-xs font-bold text-gray-400`,children:`Ma’lumot kiritilmagan`})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-8 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-lg font-black text-[#0B2D5C]`,children:`O‘quvchilar Sonining Dinamikasi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Yillar davomida o'quvchilar sonining o'zgarishi`})]}),(0,H.jsxs)(`span`,{className:`px-3 py-1 bg-emerald-50 text-emerald-700 text-xs font-black rounded-full`,children:[`2023 - `,n]})]}),c.length>0?(0,H.jsx)(Wh,{data:c,metricKey:`totalStudents`,lineColor:`#0284c7`}):(0,H.jsx)(`div`,{className:`text-center py-12 text-xs font-bold text-gray-400`,children:`Dinamika ma’lumoti yo‘q`})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-8`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-8 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-lg font-black text-[#0B2D5C]`,children:`Pedagog Xodimlar Tarkibi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Mahalliy va xorijiy mutaxassislar nisbati`})]}),(0,H.jsxs)(`span`,{className:`px-3 py-1 bg-[#0B2D5C] text-white text-xs font-black rounded-full`,children:[g.total||m.totalTeachers||35,` Pedagog`]})]}),(0,H.jsx)(Gh,{localCount:g.local===void 0?m.localTeachers||27:g.local,foreignCount:g.foreign===void 0?m.foreignTeachers||8:g.foreign})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-8 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsx)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-4`,children:(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-lg font-black text-[#0B2D5C]`,children:`Pedagoglar Soni Dinamikasi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Yillar bo'yicha pedagogik tarkib o'sishi`})]})}),c.length>0?(0,H.jsx)(Wh,{data:c,metricKey:`totalTeachers`,lineColor:`#C59B27`}):(0,H.jsx)(`div`,{className:`text-center py-12 text-xs font-bold text-gray-400`,children:`Dinamika ma’lumoti 
37yo‘q`})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 md:p-10 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-6`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-gray-100 pb-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h2`,{className:`text-xl font-black text-[#0B2D5C]`,children:`Bitiruvchilarning OTMga Qabul Ko‘rsatkichlari`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Prezident maktabi bitiruvchilarining oliy ta'lim muassasalariga qabul statistikasi`})]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-3 bg-emerald-50 border border-emerald-200 px-5 py-2.5 rounded-2xl text-emerald-800`,children:[(0,H.jsx)(Al,{size:24,className:`text-emerald-600`}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[10px] font-extrabold uppercase tracking-wider block`,children:`OTMga Qabul Natijasi`}),(0,H.jsxs)(`span`,{className:`text-xl font-black text-emerald-700`,children:[_.acceptanceRate||100,`%`]})]})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:[(0,H.jsxs)(`div`,{className:`bg-[#F8FAFC] p-5 rounded-2xl border border-gray-200 text-center space-y-1`,children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-gray-500 uppercase`,children:`Jami Bitiruvchilar`}),(0,H.jsxs)(`div`,{className:`text-3xl font-black text-[#0B2D5C]`,children:[_.totalGraduates||24,` ta`]})]}),(0,H.jsxs)(`div`,{className:`bg-sky-50 p-5 rounded-2xl border border-sky-200 text-center space-y-1`,children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-[#0284c7] uppercase`,children:`Xorijiy OTMlarga Kirganlar`}),(0,H.jsxs)(`div`,{className:`text-3xl font-black text-[#0284c7]`,children:[_.foreignUniversity||20,` ta`]})]}),(0,H.jsxs)(`div`,{className:`bg-amber-50 p-5 rounded-2xl border border-amber-200 text-center space-y-1`,children:[(0,H.jsx)(`span`,{className:`text-xs font-bold text-amber-700 uppercase`,children:`Mahalliy OTMlarga Kirganlar`}),(0,H.jsxs)(`div`,{className:`text-3xl font-black text-amber-800`,children:[_.localUniversity||4,` ta`]})]})]})]}),(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{className:`border-b border-[#E4E7EC] pb-4`,children:[(0,H.jsx)(`h2`,{className:`text-2xl font-black text-[#0B2D5C]`,children:`Xalqaro Imtihonlar Natijalari`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`O'quvchilarning IELTS, SAT va Cambridge xalqaro imtihonlarida erishgan ko'rsatkichlari`})]}),v.length>0?(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:v.map((e,t)=>(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4 hover:border-[#0284c7] transition-all`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-3`,children:[(0,H.jsx)(`span`,{className:`text-base font-black text-[#0B2D5C]`,children:e.examName}),(0,H.jsxs)(`span`,{className:`px-2.5 py-1 bg-emerald-50 text-emerald-700 font-bold text-[11px] rounded-lg`,children:[e.successRate,`% Muvaffaqiyat`]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-3 gap-2 text-center py-2`,children:[(0,H.jsxs)(`div`,{className:`bg-gray-50 p-2.5 rounded-xl border border-gray-100`,children:[(0,H.jsx)(`span`,{className:`text-[10px] font-bold text-gray-500 block`,children:`Qatnashchilar`}),(0,H.jsxs)(`span`,{className:`text-base font-black text-[#0B2D5C]`,children:[e.participants,` ta`]})]}),(0,H.jsxs)(`div`,{className:`bg-sky-50 p-2.5 rounded-xl border border-sky-100`,children:[(0,H.jsx)(`span`,{className:`text-[10px] font-bold text-[#0284c7] block`,children:`O'rtacha`}),(0,H.jsx)(`span`,{className:`text-base font-black text-[#0284c7]`,children:e.averageScore})]}),(0,H.jsxs)(`div`,{className:`bg-amber-50 p-2.5 rounded-xl border border-amber-100`,children:[(0,H.jsx)(`span`,{className:`text-[10px] font-bold text-amber-700 block`,children:`Eng Yuqori`}),(0,H.jsx)(`span`,{className:`text-base font-black text-amber-800`,children:e.highestScore})]})]})]},t))}):(0,H.jsx)(`div`,{className:`bg-white p-8 rounded-3xl border border-gray-200 text-center text-xs font-bold text-gray-400`,children:`Imtihon ma’lumotlari mavjud emas`})]}),(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{className:`border-b border-[#
37E4E7EC] pb-4`,children:[(0,H.jsx)(`h2`,{className:`text-2xl font-black text-[#0B2D5C]`,children:`Olimpiadalar, Tanlovlar va Yutuqlar`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Xalqaro va Respublika miqyosidagi olimpiadalarda erishilgan medallar statistikasi`})]}),y.length>0?(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:y.map((e,t)=>(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(ku,{size:18,className:`text-[#C59B27]`}),(0,H.jsxs)(`span`,{className:`font-extrabold text-sm text-[#0B2D5C]`,children:[e.level,` `,e.category,` lar`]})]}),(0,H.jsxs)(`span`,{className:`text-xs font-black text-[#0B2D5C] bg-amber-50 px-3 py-1 rounded-full border border-amber-200`,children:[`Jami: `,e.total,` ta`]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[(0,H.jsxs)(`div`,{className:`bg-amber-50/80 p-3 rounded-2xl border border-amber-200 text-center space-y-1`,children:[(0,H.jsx)(`span`,{className:`text-xl`,children:`🥇`}),(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-amber-800 block`,children:`Oltin`}),(0,H.jsx)(`span`,{className:`text-lg font-black text-amber-900`,children:e.gold})]}),(0,H.jsxs)(`div`,{className:`bg-slate-100 p-3 rounded-2xl border border-slate-300 text-center space-y-1`,children:[(0,H.jsx)(`span`,{className:`text-xl`,children:`🥈`}),(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-slate-700 block`,children:`Kumush`}),(0,H.jsx)(`span`,{className:`text-lg font-black text-slate-900`,children:e.silver})]}),(0,H.jsxs)(`div`,{className:`bg-orange-50 p-3 rounded-2xl border border-orange-200 text-center space-y-1`,children:[(0,H.jsx)(`span`,{className:`text-xl`,children:`🥉`}),(0,H.jsx)(`span`,{className:`text-[11px] font-bold text-orange-800 block`,children:`Bronza`}),(0,H.jsx)(`span`,{className:`text-lg font-black text-orange-900`,children:e.bronze})]})]})]},t))}):(0,H.jsx)(`div`,{className:`bg-white p-8 rounded-3xl border border-gray-200 text-center text-xs font-bold text-gray-400`,children:`Yutuqlar ma’lumoti kiritilmagan`})]}),(0,H.jsxs)(`div`,{className:`bg-blue-50/60 p-6 md:p-8 rounded-3xl border border-blue-200 flex flex-col md:flex-row items-start md:items-center justify-between gap-6 text-xs`,children:[(0,H.jsxs)(`div`,{className:`flex items-start gap-4 max-w-2xl`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-2xl bg-[#0B2D5C] text-white flex items-center justify-center shrink-0 font-bold`,children:(0,H.jsx)(Kl,{size:20})}),(0,H.jsxs)(`div`,{className:`space-y-1`,children:[(0,H.jsx)(`h4`,{className:`font-extrabold text-[#0B2D5C] text-sm`,children:`Statistik Ma’lumotlar Haqida (Metodologiya)`}),(0,H.jsx)(`p`,{className:`text-[#667085] leading-relaxed font-medium`,children:`Statistik ko‘rsatkichlar Samarqand Prezident maktabining yagona hisoblash metodologiyasi, o‘lchov birliklari va tasdiqlangan rasmiy mezonlar asosida shakllantirilgan.`})]})]}),(0,H.jsxs)(`div`,{className:`bg-white px-4 py-2.5 rounded-2xl border border-blue-200 text-[#0B2D5C] font-bold shrink-0 shadow-2xs`,children:[`📅 Ma’lumotlar oxirgi marta yangilandi: `,(0,H.jsx)(`span`,{className:`text-[#0284c7]`,children:b})]})]})]}),(0,H.jsx)(Kh,{isOpen:f,onClose:()=>p(!1),dynamicsData:c,years:i})]})},Jh={getAll:async()=>V.get(`/announcements`)},Yh=()=>{let{t:e}=W(),[t,n]=(0,S.useState)(``),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)({news:[],announcements:[]}),[s,c]=(0,S.useState)(!1),l=async e=>{if(e.preventDefault(),t.trim()){i(!0),c(!0);try{let[e,n]=await Promise.all([Op.getAll(),Jh.getAll()]),r=t.toLowerCase(),i=e.data.filter(e=>
37e.title.toLowerCase().includes(r)||e.shortDescription.toLowerCase().includes(r)),a=n.data.filter(e=>e.title.toLowerCase().includes(r)||e.shortDescription.toLowerCase().includes(r));o({news:i,announcements:a})}catch(e){console.error(e)}finally{i(!1)}}},u=a.news.length+a.announcements.length;return(0,H.jsxs)(`div`,{className:`container-page py-10 max-w-4xl text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Search`)}),(0,H.jsx)(Bp,{title:e(`Search`)}),(0,H.jsxs)(`form`,{onSubmit:l,className:`mb-10 relative`,children:[(0,H.jsx)(`input`,{type:`text`,placeholder:`Sayt bo'ylab qidiruv...`,className:`input-academic pl-12 pr-32 py-3.5 text-base`,value:t,onChange:e=>n(e.target.value),autoFocus:!0}),(0,H.jsx)(_u,{className:`absolute left-4 top-3.5 text-[#667085]`,size:20}),(0,H.jsx)(`button`,{type:`submit`,className:`absolute right-2 top-1.5 bottom-1.5 bg-[#0B2D5C] text-white px-5 rounded-lg hover:bg-[#164C8C] transition-colors font-bold text-xs`,children:`Qidirish`})]}),r?(0,H.jsx)(kp,{}):s?(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h2`,{className:`text-sm font-bold text-[#667085] mb-6 border-b border-[#E4E7EC] pb-2 uppercase tracking-wider`,children:[`"`,t,`" bo'yicha `,u,` ta natija topildi`]}),u===0?(0,H.jsx)(`div`,{className:`text-center p-12 bg-white rounded-2xl border border-[#E4E7EC] text-[#667085] text-sm`,children:`Hech narsa topilmadi. Boshqa so'z bilan izlab ko'ring.`}):(0,H.jsxs)(`div`,{className:`space-y-8`,children:[a.news.length>0&&(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h3`,{className:`text-lg font-bold text-[#0B2D5C] mb-4 flex items-center gap-2`,children:[(0,H.jsx)(ru,{size:20}),` Yangiliklar`]}),(0,H.jsx)(`div`,{className:`space-y-3`,children:a.news.map(e=>(0,H.jsx)(`div`,{className:`bg-white p-4 rounded-xl border border-[#E4E7EC] shadow-xs hover:border-[#164C8C]/40 transition-all`,children:(0,H.jsxs)(I,{to:`/news/${e.slug}`,className:`block`,children:[(0,H.jsx)(`h4`,{className:`font-bold text-base text-[#0B2D5C] hover:text-[#164C8C] mb-1`,children:e.title}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs mb-2 leading-relaxed`,children:e.shortDescription}),(0,H.jsx)(`span`,{className:`text-[11px] text-[#667085]`,children:e.date})]})},e.id))})]}),a.announcements.length>0&&(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h3`,{className:`text-lg font-bold text-[#0B2D5C] mb-4 flex items-center gap-2`,children:[(0,H.jsx)(_l,{size:20}),` E'lonlar`]}),(0,H.jsx)(`div`,{className:`space-y-3`,children:a.announcements.map(e=>(0,H.jsx)(`div`,{className:`bg-white p-4 rounded-xl border border-[#E4E7EC] shadow-xs hover:border-[#164C8C]/40 transition-all`,children:(0,H.jsxs)(I,{to:`/announcements/${e.slug}`,className:`block`,children:[(0,H.jsx)(`h4`,{className:`font-bold text-base text-[#0B2D5C] hover:text-[#164C8C] mb-1`,children:e.title}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs mb-2 leading-relaxed`,children:e.shortDescription}),(0,H.jsx)(`span`,{className:`text-[11px] text-[#667085]`,children:e.date})]})},e.id))})]})]})]}):null]})},Xh=()=>{let{t:e}=W();return(0,H.jsxs)(`div`,{className:`container-page py-20 flex flex-col items-center justify-center text-center min-h-[60vh] text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Page not found`)}),(0,H.jsx)(`div`,{className:`w-20 h-20 bg-[#F5F7FA] border border-[#E4E7EC] rounded-2xl flex items-center justify-center text-[#C59B27] mb-6 shadow-xs`,children:(0,H.jsx)(Ou,{size:40})}),(0,H.jsx)(`h1`,{className:`text-6xl font-extrabold text-[#0B2D5C] mb-3 tracking-tight`,children:`404`}),(0,H.jsx)(`h2`,{className:`text-xl font-bold text-[#0B2D5C] mb-3`,children:e(`Page not found`)}),(0,H.jsx)(`p`,{className:`text-[#667085] text-xs mb-8 max-w-md leading-relaxed`,children:`Kechirasiz, siz qidirayotgan sahifa mavjud emas yoki boshqa manzilga ko'chirilgan bo'lishi mumkin.`}),(0,H.jsxs)(I,{to:`/`,className:`bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-2.5 rounded-lg text-xs font-semibold shadow-sm transition-colors flex items-center gap-2`,children:[(0,H.jsx)(Ul,{size:18}),` `,e(`Back to Home`)]})]})},Zh=e=>e.type===`checkbox`,Qh=e=>e.type===`file`,$h=e=>e instanceof Date,eg=e=>e==null,tg=e=>typeof e==`object`,ng=e=>!eg(e)&&!Array.isArray(e)&&tg(e)&&!$h(e),rg=e=>ng(e)&&e.target?Zh(e.target)?e.target.checked:Qh(e.target)?e.target.files:e.target.value:e,ig=(e,t)=>
37t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),ag=e=>{let t=e.constructor&&e.constructor.prototype;return ng(t)&&t.hasOwnProperty(`isPrototypeOf`)},og=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function sg(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(og&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(ng(e)&&ag(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=sg(e[t]));return r}var cg={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},lg={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},ug={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},dg=`root`,fg=[`__proto__`,`constructor`,`prototype`],pg=/^\w*$/,mg=e=>pg.test(e),hg=e=>e===void 0,gg=/[.[\]'"]/,_g=e=>
37e.split(gg).filter(Boolean),$=(e,t,n)=>{if(!t||!ng(e))return n;let r=mg(t)?[t]:_g(t);if(r.some(e=>fg.includes(e)))return n;let i=r.reduce((e,t)=>eg(e)?void 0:e[t],e);return hg(i)||i===e?hg(e[t])?n:e[t]:i},vg=e=>typeof e==`boolean`,yg=e=>typeof e==`function`,bg=(e,t,n)=>{let r=-1,i=mg(t)?[t]:_g(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=ng(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(fg.includes(t))return;e[t]=a,e=e[t]}},xg=S.createContext(null);xg.displayName=`HookFormControlContext`;var Sg=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==lg.all&&(t._proxyFormState[i]=!r||lg.all),n&&(n[i]=!0),e[i]}});return i},Cg=og?S.useLayoutEffect:S.useEffect,wg=e=>typeof e==`string`,Tg=(e,t,n,r,i)=>wg(e)?(r&&t.watch.add(e),$(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),$(n,e))):(r&&(t.watchAll=!0),n),Eg=e=>eg(e)||!tg(e),Dg=(e,t)=>t.length===0&&!Array.isArray(e)&&!ag(e);function Og(e,t,n=new WeakMap){if(e===t)return!0;if(Eg(e)||Eg(t))return Object.is(e,t);if($h(e)&&$h(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Dg(e,r)||Dg(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if($h(r)&&$h(e)||(ng(r)||Array.isArray(r))&&(ng(e)||Array.isArray(e))?!Og(r,e,n):!Object.is(r,e))return!1}}return!0}var kg=e=>({isOnSubmit:!e||e===lg.onSubmit,isOnBlur:e===lg.onBlur,isOnChange:e===lg.onChange,isOnAll:e===lg.all,isOnTouch:e===lg.onTouched}),Ag=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},jg=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if(i===`_f`)continue;let a=n?$(e,i):e[i];if(a){let{_f:e}=a;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(jg(a,t))break}else if((ng(a)||Array.isArray(a))&&jg(a,t))break}}},Mg=(e,t,n)=>{let r=$(e,n),i=Array.isArray(r)?r:[];return bg(i,dg,t[n]),bg(e,n,i),e},Ng=e=>ng(e)&&!Object.keys(e).length,Pg=e=>{if(!og)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Fg=e=>e.type===`radio`,Ig=e=>e instanceof RegExp,Lg=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Rg={value:!1,isValid:!1},zg={value:!0,isValid:!0},Bg=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!hg(e[0].attributes.value)?hg(e[0].value)||e[0].value===``?zg:{value:e[0].value,isValid:!0}:zg:Rg}return Rg},Vg={isValid:!1,value:null},Hg=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Vg):Vg;function Ug(e,t,n=`validate`){if(wg(e)||Array.isArray(e)&&e.every(wg)||vg(e)&&!e)return{type:n,message:wg(e)?e:``,ref:t}}var Wg=e=>ng(e)&&!Ig(e)?e:{value:e,message:``},Gg=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=$(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{if(i&&y.reportValidity){let t=vg(e)?``:e||``;s?s.forEach(e=>e.setCustomValidity(t)):y.setCustomValidity(t),y.reportValidity()}},x={},S=Fg(o),C=Zh(o),w=S||C,T=(g||Qh(o))&&hg(o.value)&&hg(v)||Pg(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=Lg.bind(null,h,r,x),D=(e,t,n,r=ug.maxLength,i=ug.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||eg(v))||vg(v)&&!v||C&&!Bg(s).isValid||S&&!Hg(s).isValid)){let{value:e,message:t}=wg(c)?{value:!!c,message:c}:Wg(c);if(e&&(x[h]={type:ug.required,message:t,ref:y,...E(ug.required,t)},!r))return b(t),x}if(!T&&(!eg(d)||!eg(f))){let e,t,n=Wg(f),i=Wg(d);if(!eg(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;eg(n.value)||(e=r>n.value),eg(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;wg(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),wg(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,ug.max,ug.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(wg(v)||a&&Array.isArray(v))){let e=Wg(l),t=Wg(u),n=!eg(e.value)&&v.length>+e.value,i=!eg(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&wg(v)){let{value:e,message:t}=Wg(p);if(Ig(e)&&!v.match(e)&&(x[h]={type:ug.pattern,message:t,ref:o,...E(ug.pattern,t)},!r))return b(t),x}if(m){if(yg(m)){let e=Ug(await m(v,n),y);if(e&&(x[h]={...e,...E(ug.validate,e.message)},!r))return b(e.message),x}else if(ng(m)){let e={};for(let t in m){if(!Ng(e)&&!r)break;let i=Ug(await m[t](v,n),y,t);
37i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!Ng(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},Kg=e=>Array.isArray(e)?e:[e],qg=e=>Array.isArray(e)?e.filter(Boolean):[];function Jg(e,t){let n=t.length-1,r=0;for(;r<n;){if(eg(e)){e=void 0;break}e=e[t[r]],r++}return e}function Yg(e){for(let t in e)if(e.hasOwnProperty(t)&&!hg(e[t]))return!1;return!0}function Xg(e,t){if(wg(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:mg(t)?[t]:_g(t);if(n.some(e=>fg.includes(String(e))))return e;let r=n.length===1?e:Jg(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(ng(r)&&Ng(r)||Array.isArray(r)&&Yg(r))&&Xg(e,n.slice(0,-1)),e}var Zg=e=>{let t={};for(let n of Object.keys(e))if(tg(e[n])&&e[n]!==null&&!$h(e[n])){let r=Zg(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t},Qg=S.createContext(null);Qg.displayName=`HookFormContext`;var $g=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function e_(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&ng(i)&&a){let e=e_(i,a);ng(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var t_=e=>e.type===`select-multiple`,n_=e=>Fg(e)||Zh(e),r_=e=>Pg(e)&&e.isConnected;function i_(e){return Array.isArray(e)||ng(e)}function a_(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];i_(o)&&i_($(t,a))?a_(o,t,a,r):r.push(a)}return r}var o_=e=>{for(let t in e)if(yg(e[t]))return!0;return!1};function s_(e){return Array.isArray(e)||ng(e)&&!o_(e)}function c_(e){return!!(e&&`_f`in e)}function l_(e){return Array.isArray(e)?!e.some(e=>!hg(e)):!Object.keys(e).length}function u_(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function d_(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];s_(i)&&(!Array.isArray(i)||!c_(a))?(t[r]=Array.isArray(i)?[]:{},d_(i,t[r],a),l_(t[r])&&u_(t,r)):hg(i)||(t[r]=!0)}return t}function f_(e,t,n,r){n||=d_(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];s_(a)&&(!Array.isArray(a)||!c_(o))?(hg(t)||Eg(n[i])?n[i]=d_(a,Array.isArray(a)?[]:{},o):f_(a,eg(t)?{}:t[i],n[i],o),l_(n[i])&&u_(n,i)):Og(a,t[i])?u_(n,i):n[i]=!0}return n}var p_=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>hg(e)?e:t?e===``?NaN:e&&+e:n&&wg(e)?new Date(e):r?r(e):e;function m_(e){let t=e.ref;return Qh(t)?t.files:Fg(t)?Hg(e.refs).value:t_(t)?[...t.selectedOptions].map(({value:e})=>e):Zh(t)?Bg(e.refs).value:p_(t.value,e)}var h_=(e,t,n,r)=>{let i={};for(let n of e){let e=$(t,n);e&&bg(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},g_=e=>hg(e)?e:Ig(e)?e.source:ng(e)?Ig(e.value)?e.value.source:e.value:e,__=`AsyncFunction`,v_=e=>{if(!e||!e.validate)return!1;if(yg(e.validate))return e.validate.constructor.name===__;if(ng(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===__)return!0}return!1},y_=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function b_(e,t,n){let r=$(e,n);if(r||mg(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=$(t,r),o=$(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var x_=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||lg.all))},S_=(e,t,n)=>!e||!t||e===t||Kg(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),C_=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,w_=(e,t)=>!qg($(e,t)).length&&Xg(e,t),T_={mode:lg.onSubmit,reValidateMode:lg.onChange,shouldFocusError:!0},E_=`form`,D_=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},O_={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function k_(e={}){let t={...T_,...e},n={...sg(O_),isLoading:yg(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1}
37,r={},i=(ng(t.defaultValues)||ng(t.values))&&sg(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:sg(i),o={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=kg(t.mode),f=kg(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g={array:$g(),state:$g()},_=0,v=t.criteriaMode===lg.all,y=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},b=async e=>{if(!o.keepIsValid&&!t.disabled&&(m.isValid||h.isValid||e)){let e=++_,i;t.resolver?(i=Ng((await A()).errors),e===_&&x()):i=await M({fields:r,onlyCheckValid:!0,eventType:cg.VALID}),e===_&&i!==n.isValid&&g.state.next({isValid:i})}},x=(e,r)=>{!t.disabled&&(m.isValidating||m.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?bg(n.validatingFields,e,r):Xg(n.validatingFields,e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!Ng(n.validatingFields)}))},S=()=>{n.dirtyFields=f_(i,a,void 0,r)},C=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,u&&Array.isArray($(r,e))){let t=s($(r,e),c.argA,c.argB);l&&bg(r,e,t)}if(u&&Array.isArray($(n.errors,e))){let t=s($(n.errors,e),c.argA,c.argB);l&&bg(n.errors,e,t),w_(n.errors,e)}if((m.touchedFields||h.touchedFields)&&u&&Array.isArray($(n.touchedFields,e))){let t=s($(n.touchedFields,e),c.argA,c.argB);l&&bg(n.touchedFields,e,t)}(m.dirtyFields||h.dirtyFields)&&S(),g.state.next({name:e,isDirty:ne(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else bg(a,e,i)},w=(e,t)=>{bg(n.errors,e,t),n.errors={...n.errors},g.state.next({errors:n.errors})},T=e=>{n.errors=e,g.state.next({errors:n.errors,isValid:!1})},E=e=>{let t=mg(e)?[e]:_g(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=eg(n)?n:n[i],r=eg(r)?r:r[i],n===null&&r!==null)return!0}return!1},D=(t,c,l,u)=>{let d=$(r,t);if(d){if(E(t))return;let r=hg($(a,t)),f=$(a,t,hg(l)?$(i,t):l);hg(f)||u&&u.defaultChecked||c?bg(a,t,c?f:m_(d._f)):re(t,f),o.mount&&!o.action&&(b(),r&&n.isDirty&&(m.isDirty||h.isDirty)&&(ne()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&r&&!hg($(a,t))&&Ag(t,s)&&(o.watch=!0))}},O=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=Og($(i,e),o);(m.isDirty||h.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||ne(),u=d!==f.isDirty),d=!!$(n.dirtyFields,e),t===n.isDirty?t?Xg(n.dirtyFields,e):bg(n.dirtyFields,e,!0):D_(n.dirtyFields,f_(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=(m.dirtyFields||h.dirtyFields)&&d!==!t}if(s){let t=$(n.touchedFields,e);t||(bg(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=(m.touchedFields||h.touchedFields)&&t!==s)}u&&l&&g.state.next(f)}return u?f:{}},k=(e,r,i,a)=>{let o=$(n.errors,e),s=(m.isValid||h.isValid)&&vg(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=y(e,()=>w(e,i)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e],i?bg(n.errors,e,i):Xg(n.errors,e),n.errors={...n.errors}),(i?!Og(o,i):o)||!Ng(a)||s){let t={...a,...s&&vg(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},g.state.next(t)}},A=async e=>(x(e,!0),await t.resolver(a,t.context,h_(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),j=async e=>{let{errors:t}=await A(e);if(x(e),e){for(let r of e){let e=$(t,r);e?s.array.has(r)&&ng(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?Mg(n.errors,{[r]:e},r):bg(n.errors,r,e):Xg(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},ee=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(ng(i))for(let e in i){let t=i[e];t&&me(`${E_}.${e}`,{message:wg(t.message)?t.message:``,type:t.type||ug.validate})}else wg(i)||!i?me(E_,{message:i||``,type:ug.validate}):pe(E_);return i}return!0},M=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await ee({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&v_(u._f),d=m.validatingFields||m.
37isValidating||h.validatingFields||h.isValidating;c&&d&&x([r.name],!0);let f=await Gg(u,s.disabled,a,v,t.shouldUseNativeValidation&&!i,o);if(c&&d&&x([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&($(f,r.name)?o?Mg(n.errors,f,r.name):bg(n.errors,r.name,f[r.name]):Xg(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!Ng(d)&&await M({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},te=()=>{for(let e of s.unMount){let t=$(r,e);t&&(t._f.refs?t._f.refs.every(e=>!r_(e)):!r_(t._f.ref))&&ve(e)}s.unMount=new Set},ne=(e,t)=>(e&&t&&bg(a,e,t),!Og(o.mount?a:i,i)),N=(e,t,n)=>Tg(e,s,{...o.mount?a:hg(t)?i:wg(e)?{[e]:t}:t},n,t),P=e=>qg($(o.mount?a:i,e,t.shouldUnregister?$(i,e,[]):[])),re=(e,t,n={},i=!1,o=!1)=>{let s=$(r,e),c=t;if(s){let n=s._f;n&&(!n.disabled&&bg(a,e,p_(t,n)),c=Pg(n.ref)&&eg(t)?``:t,t_(n.ref)?[...n.ref.options].forEach(e=>e.selected=c.includes(e.value)):n.refs?Zh(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(c)?!!c.find(t=>t===e.value):c===e.value||!!c)}):n.refs.forEach(e=>e.checked=e.value===c):Qh(n.ref)?n.ref.value=``:(n.ref.value=c,!n.ref.type&&!o&&g.state.next({name:e,values:i?a:sg(a)})))}(n.shouldDirty||n.shouldTouch)&&O(e,c,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&ue(e,{delayError:n.delayError})},ie=(e,t,n,i=!1,o=!1)=>{s.array.has(e)&&g.array.next({name:e,values:i?a:sg(a)});for(let a in t){if(!t.hasOwnProperty(a))return;let c=t[a],l=e+`.`+a,u=$(r,l);(s.array.has(e)||ng(c)||u&&!u._f)&&!$h(c)?ie(l,c,n,i,o):re(l,c,n,i,o)}},ae=(e,t,i,c,l=!1)=>{let u=$(r,e),d=s.array.has(e),f=c?t:sg(t),p=Og($(a,e),f);if(p||bg(a,e,f),d)g.array.next({name:e,values:c?a:sg(a)}),(m.isDirty||m.dirtyFields||h.isDirty||h.dirtyFields)&&i.shouldDirty&&(S(),l||g.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:ne(e,f)}));else{let t=Array.isArray(f)&&!f.length||Ng(f);!u||u._f||eg(f)||t?re(e,f,i,c,l):ie(e,f,i,c,l)}if(!p&&!l){let t=Ag(e,s),r=c?a:sg(a);g.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},oe=(e,t,n={})=>ae(e,t,n,!1),se=(e,t={})=>{let r=yg(e)?e(a):e;if(!Og(a,r)){a={...a,...r};let e=Zg(r);for(let n of s.mount)n in e&&ae(n,e[n],t,!0,!0);g.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&b()}},ce=async i=>{o.mount=!0;let l=i.target,p=l.name,_=!0,y=$(r,p),S=e=>{_=Number.isNaN(e)||$h(e)&&isNaN(e.getTime())||Og(e,$(a,p,e))};if(y){let o,C,w=l.type?m_(y._f):rg(i),T=i.type===cg.BLUR||i.type===cg.FOCUS_OUT,E=!y_(y._f)&&!e.validate&&!t.resolver&&!$(n.errors,p)&&!y._f.deps,D=E||C_(T,$(n.touchedFields,p),n.isSubmitted,f,d),j=Ag(p,s,T);if(bg(a,p,w),T){if(!l||!l.readOnly){y._f.onBlur&&y._f.onBlur(i);let e=c[p];e&&e(0)}}else y._f.onChange&&y._f.onChange(i);let te=O(p,w,T),ne=!Ng(te)||j;if(!T&&g.state.next({name:p,type:i.type,...u?{values:sg(a)}:{}}),D)return(!E||!n.isValid)&&(m.isValid||h.isValid)&&(t.mode===`onBlur`?T&&b():T||b()),ne&&g.state.next({name:p,...j?{}:te});if(!t.resolver&&e.validate&&await ee({name:p,eventType:i.type}),!T&&j&&g.state.next({...n}),t.resolver){let{errors:e}=await A([p]);if(x([p]),S(w),!_){!Ng(te)&&g.state.next(te);return}let t=b_(n.errors,r,p),i=b_(e,r,t.name||p);o=i.error,p=i.name,C=Ng(e)}else x([p],!0),o=(await Gg(y,s.disabled,a,v,t.shouldUseNativeValidation))[p],x([p]),S(w),_&&(o?C=!1:(m.isValid||h.isValid)&&(C=await M({fields:r,onlyCheckValid:!0,name:p,eventType:i.type})));_&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&ue(y._f.deps),k(p,C,o,te))}},le=(e,t)=>{if($(n.errors,t)&&e.focus)return e.focus(),1},ue=async(e,i={})=>{let a,o,u=Kg(e);if(t.resolver){let t=await j(hg(e)?e:u);a=Ng(t),o=e?!u.some(e=>$(t,e)):a}else e?(o=(await Promise.all(u.map(async e=>{let t=$(r,e);return await M({fields:t&&t._f?{[e]:t}:t,eventType:cg.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&b()):o=a=await M({fields:r,name:e,eventType:cg.TRIGGER});if(i.delayError&&t.delayError&&wg(e)){let r=$(n.errors,e);r?(Xg(n.errors,e),c[e]=y(e,()=>w(e,r)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e])}return g.state.next({...!wg(e)||(m.isValid||h.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&jg(r,le,e?u:s.mount),o},de=(e,t)=>{let r={...o.mount?a:i};return t&&(r=e_(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),hg(e)?r:wg(e)?$(r,e):e.map(e=>$(r,e))},fe=(e,t)=>
37({invalid:!!$((t||n).errors,e),isDirty:!!$((t||n).dirtyFields,e),error:$((t||n).errors,e),isValidating:!!$(n.validatingFields,e),isTouched:!!$((t||n).touchedFields,e)}),pe=e=>{let t=e?Kg(e):void 0;t?.forEach(e=>Xg(n.errors,e)),t?t.forEach(e=>{g.state.next({name:e,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},me=(e,t,i)=>{let a=($(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=$(n.errors,e)||{};bg(n.errors,e,{...l,...t,ref:a}),g.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},he=(e,t)=>{if(yg(e)){u++;let{unsubscribe:n}=g.state.subscribe({next:n=>`values`in n&&e(n.values||N(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return N(e,t,!0)},ge=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=g.state.subscribe({next:t=>{if(S_(e.name,t.name,e.exact)&&x_(t,e.formState||m,Oe,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},_e=e=>(o.mount=!0,h={...h,...e.formState},ge({...e,formState:{...p,...e.formState}})),ve=(e,o={})=>{for(let c of e?Kg(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(Xg(r,c),Xg(a,c)),!o.keepError&&Xg(n.errors,c),!o.keepDirty&&Xg(n.dirtyFields,c),!o.keepTouched&&Xg(n.touchedFields,c),!o.keepIsValidating&&Xg(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&Xg(i,c);g.state.next({values:sg(a)}),g.state.next({...n,...o.keepDirty?{isDirty:ne()}:{}}),!o.keepIsValid&&b()},ye=({disabled:e,name:t})=>{if(vg(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&b()}},be=(e,n={})=>{let a=$(r,e),c=vg(n.disabled)||vg(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return bg(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?ye({disabled:vg(n.disabled)?n.disabled:t.disabled,name:e}):D(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:g_(n.min),max:g_(n.max),minLength:g_(n.minLength),maxLength:g_(n.maxLength),pattern:g_(n.pattern)}:{},name:e,onChange:ce,onBlur:ce,ref:c=>{if(c){s.registerName.add(e),be(e,n),s.registerName.delete(e),a=$(r,e);let t=hg(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=n_(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(r_),t,...Array.isArray($(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),bg(r,e,{_f:u}),D(e,!1,void 0,t)}else a=$(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(ig(s.array,e)&&o.action)&&s.unMount.add(e)}}},xe=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&jg(r,le,s.mount),Se=e=>{vg(e)&&(g.state.next({disabled:e}),jg(r,(t,n)=>{let i=$(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},Ce=(e,i)=>async o=>{let c,l;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let u=sg(a);if(g.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await A();x(),n.errors=e,u=sg(t)}else await M({fields:r,eventType:cg.SUBMIT});if(s.disabled.size)for(let e of s.disabled)Xg(u,e);if(Xg(n.errors,dg),Ng(n.errors)){g.state.next({errors:{}});try{c=await e(u,o)}catch(e){l=e}}else i&&await i({...n.errors},o),xe(),setTimeout(xe);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ng(n.errors)&&!l,submitCount:n.submitCount+1,errors:n.errors}),l)throw l;return c},we=(e,t={})=>{$(r,e)&&(hg(t.defaultValue)?oe(e,sg($(i,e))):(oe(e,t.defaultValue),bg(i,e,sg(t.defaultValue))),t.keepTouched||Xg(n.touchedFields,e),t.keepDirty||(Xg(n.dirtyFields,e),n.isDirty=t.defaultValue?ne(e,sg($(i,e))):ne()),t.keepError||(Xg(n.errors,e),m.isValid&&b()),g.state.next({...n}))},Te=(e,c={})=>{let l=e?sg(e):i,u=sg(l),d=Ng(e),f=u,p=r;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...a_(f_(i,a,void 0,p),n.dirtyFields)]);for(let t of Array.from(e)){let e=$(n.dirtyFields,t),r=$(a,t),i=$(f,t);e&&!hg(r)?bg(f,t,r):!e&&!hg(i)&&oe(t,i)}}else{if(og&&hg(e))for(let e of s.mount){let t=$(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Pg(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)oe(e,$(f,e));else r={}}if(t.shouldUnregister){if(a=c.keepDefaultValues?sg(i):{},c.keepFieldsRef)for(let e of s.mount)bg(a,e,$(f,e))}else a=sg(f);g.array.next({values:{...f}}),g.state.next({name:void 0,type:void 0,values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!Ng(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,c.keepErrors||(n.errors={}),g.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:c.keepValues?ne():!!(c.keepDefaultValues&&!Og(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?f_(i,a,void 0,p):n.dirtyFields:c.keepDefaultValues&&e?f_(i,e,void 0,p):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},Ee=(e,n)=>Te(yg(e)?e(a):e,{...t.resetOptions,...n}),De=(e,t={})=>{let n=$(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&yg(e.select)&&e.select()})}},Oe=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}},ke={control:{register:be,unregister:ve,getFieldState:fe,handleSubmit:Ce,setError:me,_subscribe:ge,_runSchema:A,_updateIsValidating:x,_focusError:xe,_getWatch:N,_getDirty:ne,_setValid:b,_setFieldArray:C,_setDisabledField:ye,_setErrors:T,_getFieldArray:P,_reset:Te,_resetDefaultValues:()=>yg(t.defaultValues)&&t.defaultValues().then(e=>{Ee(e,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:te,_disableForm:Se,_subjects:g,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=kg(t.mode),f=kg(t.reValidateMode)}},subscribe:_e,trigger:ue,register:be,handleSubmit:Ce,watch:he,setValue:oe,setValues:se,getValues:de,reset:Ee,resetField:we,resetDefaultValues:(e,t={})=>
37{if(i=sg(e),!t.keepDirty){let e=f_(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!Ng(e)}t.keepIsValid||b(),g.state.next({...n,defaultValues:i})},clearErrors:pe,unregister:ve,setError:me,setFocus:De,getFieldState:fe};return{...ke,formControl:ke}}function A_(e={}){let t=S.useRef(void 0),n=S.useRef(void 0),r=S.useRef(e.formControl),[i,a]=S.useState(()=>({...sg(O_),isLoading:yg(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:yg(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl)if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!yg(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=k_(e);t.current={...r,formState:i}}let o=t.current.control;return o._options=e,Cg(()=>{let e=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),o._formState.isReady=!0,e},[o]),S.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),S.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),S.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),S.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),S.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),S.useEffect(()=>{e.values&&!Og(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,a(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),S.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=S.useMemo(()=>Sg(i,o),[o,i]),t.current}var j_=()=>{let e=_n(),{t}=W(),{login:n}=Fs(),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)(``),[s,c]=(0,S.useState)(!1),{register:l,handleSubmit:u,formState:{errors:d}}=A_();return(0,H.jsxs)(`div`,{className:`min-h-screen flex items-center justify-center bg-[#071D3B] relative overflow-hidden p-4`,children:[(0,H.jsx)(Ku,{title:t(`Login`)}),(0,H.jsxs)(`div`,{className:`bg-white p-8 md:p-10 rounded-2xl shadow-2xl border border-[#E4E7EC] w-full max-w-md text-center z-10`,children:[(0,H.jsx)(`div`,{className:`flex justify-center mb-6`,children:(0,H.jsx)(`img`,{src:`/logo.png`,alt:`Logo`,className:`h-16 w-auto object-contain`,onError:e=>{e.target.style.display=`none`}})}),(0,H.jsx)(`h1`,{className:`text-2xl font-bold mb-1 text-[#0B2D5C] tracking-tight`,children:t(`Admin Login`)}),(0,H.jsx)(`p`,{className:`mb-8 text-[#667085] text-xs font-medium`,children:`Boshqaruv paneliga kirish uchun parolingizni kiriting`}),(0,H.jsxs)(`form`,{onSubmit:u(async t=>{try{c(!0),o(``),await n(t.username.trim(),t.password),e(`/admin/dashboard`)}catch(e){console.error(`Login error:`,e);let t=e.response?.data?.message||`Foydalanuvchi nomi yoki parol noto'g'ri`;o(t)}finally{c(!1)}}),className:`space-y-5 text-left`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Foydalanuvchi nomi`}),(0,H.jsx)(`input`,{type:`text`,...l(`username`,{required:`Username is required`}),className:`input-academic ${d.username?`border-red-500 ring-1 ring-red-500`:``}`,placeholder:`Foydalanuvchi nomini kiriting`}),d.username&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:d.username.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Parol`}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`input`,{type:r?`text`:`password`,...l(`password`,{required:`Password is required`}),className:`input-academic pr-10 ${d.password?`border-red-500 ring-1 ring-red-500`:``}`,placeholder:`Parolni kiriting`}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>i(!r),className:`absolute right-3 top-1/2 -translate-y-1/2 text-[#667085] hover:text-[#0B2D5C] transition-colors`,children:r?(0,H.jsx)(q,{size:18}):(0,H.jsx)(J,{size:18})})]}),d.password&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:d.password.message})]}),(0,H.jsxs)(`div`,{className:`pt-2`,children:[a&&(0,H.jsx)(`p`,{className:`text-red-600 text-xs font-semibold mb-3 text-center`,children:a}),(0,H.jsx)(`button`,{type:`submit`,disabled:s,className:`w-full bg-[#0B2D5C] text-white font-bold px-4 py-3 rounded-lg hover:bg-[#164C8C] transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2 text-sm shadow-sm`,children:s?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`w-4 h-4 border-2 border-white border-t-transparent roun
37ded-full animate-spin`}),`Kirish...`]}):`Kirish`})]})]}),(0,H.jsx)(`div`,{className:`mt-8 pt-6 border-t border-[#E4E7EC]`,children:(0,H.jsxs)(I,{to:`/`,className:`text-[#667085] hover:text-[#0B2D5C] transition-colors flex items-center justify-center gap-2 text-xs font-semibold`,children:[(0,H.jsx)(pl,{size:16}),`Bosh sahifaga qaytish`]})})]})]})},M_={getStats:()=>V.get(`/dashboard/stats`)},N_=()=>{let{t:e}=W(),[t,n]=(0,S.useState)(null),[r,i]=(0,S.useState)(!0);return(0,S.useEffect)(()=>{(async()=>{try{let e=await M_.getStats();n(e.data.data)}catch(e){console.error(`Error fetching dashboard stats:`,e)}finally{i(!1)}})()},[]),(0,H.jsxs)(`div`,{className:`text-[#172033]`,children:[(0,H.jsx)(Ku,{title:e(`Dashboard`)}),(0,H.jsxs)(`div`,{className:`mb-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:e(`Dashboard`)}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Platforma ko'rsatkichlari va boshqaruv ma'lumotlari`})]}),r?(0,H.jsx)(`div`,{className:`text-center py-10 text-[#667085] text-sm`,children:`Yuklanmoqda...`}):(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl shadow-xs border border-[#E4E7EC] flex items-center gap-4 hover:border-[#164C8C]/40 transition-all`,children:[(0,H.jsx)(`div`,{className:`p-3.5 bg-[#0B2D5C]/10 text-[#0B2D5C] rounded-xl shrink-0`,children:(0,H.jsx)(ru,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-xs font-semibold text-[#667085] uppercase tracking-wider mb-0.5`,children:`Yangiliklar`}),(0,H.jsx)(`p`,{className:`text-2xl font-extrabold text-[#0B2D5C]`,children:t?.news||0})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl shadow-xs border border-[#E4E7EC] flex items-center gap-4 hover:border-[#164C8C]/40 transition-all`,children:[(0,H.jsx)(`div`,{className:`p-3.5 bg-[#0B2D5C]/10 text-[#0B2D5C] rounded-xl shrink-0`,children:(0,H.jsx)(_l,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-xs font-semibold text-[#667085] uppercase tracking-wider mb-0.5`,children:`E'lonlar`}),(0,H.jsx)(`p`,{className:`text-2xl font-extrabold text-[#0B2D5C]`,children:t?.announcements||0})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl shadow-xs border border-[#E4E7EC] flex items-center gap-4 hover:border-[#164C8C]/40 transition-all`,children:[(0,H.jsx)(`div`,{className:`p-3.5 bg-[#0B2D5C]/10 text-[#0B2D5C] rounded-xl shrink-0`,children:(0,H.jsx)(bl,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-xs font-semibold text-[#667085] uppercase tracking-wider mb-0.5`,children:`Rahbariyat`}),(0,H.jsx)(`p`,{className:`text-2xl font-extrabold text-[#0B2D5C]`,children:t?.leadership||0})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl shadow-xs border border-[#E4E7EC] flex items-center gap-4 hover:border-[#164C8C]/40 transition-all`,children:[(0,H.jsx)(`div`,{className:`p-3.5 bg-[#0B2D5C]/10 text-[#0B2D5C] rounded-xl shrink-0`,children:(0,H.jsx)(Hl,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-xs font-semibold text-[#667085] uppercase tracking-wider mb-0.5`,children:`O'qituvchilar`}),(0,H.jsx)(`p`,{className:`text-2xl font-extrabold text-[#0B2D5C]`,children:t?.teachers||0})]})]})]})]})},P_=()=>{let[e,t]=Rr(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(!0),[c,l]=(0,S.useState)(null),u=parseInt(e.get(`page`)||`1`,10),d=e.get(`search`)||``,f=async()=>{try{s(!0);let e=await Op.getNews({page:u,limit:15,search:d});r(e.data.items),a(e.data.pagination)}catch{l(`Failed to fetch news`)}finally{s(!1)}};(0,S.useEffect)(()=>{f()},[u,d]);let p=e=>{e.preventDefault();let n=new FormData(e.target).get(`q`);t({page:`1`,search:n})},m=async e=>{if(window.confirm(`Are you sure you want to delete this news?`))try{await Op.deleteNews(e),f()}catch{alert(`Error deleting news`)}};return c?(0,H.jsxs)(`div`,{className:`p-6 text-red-500 bg-red-100/10 rounded`,children:[c,` `,(0,H.jsx)(`button`,{onClick:f,className:`underline ml-2`,children:`Retry`})]}):(0,H.jsxs)(`div`,{className:`text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-center mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Yangiliklar boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Sayt yangiliklarini yaratish va tahrirlash`})]}),(0,H.jsxs)(I,{to:`/admin/news/new`,className:`bg-[#0B2D5C] text-white px-4 py-2.5 rounded-lg text-xs font-bold flex items-center gap-2 hover:bg-[#164C8C] transition-colors shadow-sm`,children:[(0,H.jsx)(du,{size:16}),` Yangilik qo'shish`]})]}),(0,H.jsx)(`div`,{className:`bg-white p-4 rounded-xl shadow-xs border border-[#
37E4E7EC] mb-6`,children:(0,H.jsxs)(`form`,{onSubmit:p,className:`flex gap-3`,children:[(0,H.jsxs)(`div`,{className:`relative flex-1`,children:[(0,H.jsx)(_u,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-[#667085]`,size:18}),(0,H.jsx)(`input`,{type:`text`,name:`q`,defaultValue:d,placeholder:`Sarlavha yoki teg bo'yicha qidiruv...`,className:`input-academic pl-10`})]}),(0,H.jsx)(`button`,{type:`submit`,className:`bg-[#F5F7FA] hover:bg-[#E4E7EC] text-[#0B2D5C] font-semibold px-4 py-2 rounded-lg text-xs transition-colors border border-[#E4E7EC]`,children:`Qidirish`})]})}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC] overflow-hidden`,children:o?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Yuklanmoqda...`}):n.length===0?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Yangiliklar topilmadi.`}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-left border-collapse text-xs`,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`bg-[#F5F7FA] border-b border-[#E4E7EC] text-[#0B2D5C] font-bold uppercase tracking-wider`,children:[(0,H.jsx)(`th`,{className:`p-4`,children:`Rasm`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Sarlavha (UZ)`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Holat`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Sana`}),(0,H.jsx)(`th`,{className:`p-4 text-right`,children:`Amallar`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-[#E4E7EC]`,children:n.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-[#F5F7FA]/70 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`div`,{className:`w-14 h-10 rounded bg-[#F5F7FA] border border-[#E4E7EC] overflow-hidden`,children:(0,H.jsx)(`img`,{src:X(e.image),alt:`Cover`,className:`w-full h-full object-cover`})})}),(0,H.jsx)(`td`,{className:`p-4 font-bold text-[#0B2D5C] max-w-xs truncate`,children:e.title?.uz}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md ${e.status===`PUBLISHED`?`bg-emerald-100 text-emerald-800 border border-emerald-300`:`bg-gray-100 text-gray-700 border border-gray-300`}`,children:e.status})}),(0,H.jsx)(`td`,{className:`p-4 text-[#667085] font-medium`,children:e.publishedAt?new Date(e.publishedAt).toLocaleDateString():`-`}),(0,H.jsx)(`td`,{className:`p-4 text-right`,children:(0,H.jsxs)(`div`,{className:`flex items-center justify-end gap-3 text-[#667085]`,children:[(0,H.jsx)(I,{to:`/news/${e.slug}`,target:`_blank`,className:`hover:text-[#0B2D5C]`,title:`Saytda ko'rish`,children:(0,H.jsx)(J,{size:18})}),(0,H.jsx)(I,{to:`/admin/news/${e.id}/edit`,className:`hover:text-[#164C8C]`,title:`Tahrirlash`,children:(0,H.jsx)(su,{size:18})}),(0,H.jsx)(`button`,{onClick:()=>m(e.id),className:`hover:text-rose-600`,title:`O'chirish`,children:(0,H.jsx)(Eu,{size:18})})]})})]},e.id))})]})})}),i&&i.totalPages>1&&(0,H.jsx)(`div`,{className:`flex justify-center mt-6 gap-2`,children:Array.from({length:i.totalPages}).map((e,n)=>(0,H.jsx)(`button`,{onClick:()=>t({page:(n+1).toString(),search:d}),className:`w-8 h-8 rounded-lg text-xs flex items-center justify-center font-semibold ${u===n+1?`bg-[#0B2D5C] text-white shadow-sm`:`bg-white border border-[#E4E7EC] hover:bg-[#F5F7FA] text-[#172033]`}`,children:n+1},n))})]})},F_=(0,S.lazy)(()=>Ge(()=>import(`./lib-DPPArb7B.js`),[])),I_=({initialData:e,onSubmit:t,isSubmitting:n})=>{let r=_n(),[i,a]=(0,S.useState)(`uz`),[o,s]=(0,S.useState)(e?.image?X(e.image):null),[c,l]=(0,S.useState)(null),{register:u,handleSubmit:d,setValue:f,watch:p,formState:{errors:m}}=A_({defaultValues:e||{status:`DRAFT`,isFeatured:!1}}),h=p(`content_uz`),g=p(`content_en`),_=p(`content_ru`);(0,S.useEffect)(()=>{u(`content_uz`,{required:`Uzbek content is required`}),u(`content_en`,{required:`English content is required`}),u(`content_ru`)},[u]);let v=e=>{let t=e.target.files[0];t&&(l(t),s(URL.createObjectURL(t)))},y=async e=>{let n=new FormData,r={...e,title_ru:e.title_ru||e.title_uz||``,shortContent_ru:e.shortContent_ru||e.shortContent_uz||``,content_ru:e.content_ru||e.content_uz||``};
37Object.keys(r).forEach(e=>{r[e]!==void 0&&r[e]!==null&&n.append(e,r[e])}),c&&n.append(`image`,c),await t(n)},b=e=>(0,H.jsxs)(`div`,{className:`space-y-4 ${i===e?`block`:`hidden`}`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Sarlavha (`,e.toUpperCase(),`) *`]}),(0,H.jsx)(`input`,{...u(`title_${e}`,{required:`Title is required`}),className:`input-academic`}),m[`title_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:m[`title_${e}`].message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Qisqa mazmun (`,e.toUpperCase(),`) *`]}),(0,H.jsx)(`textarea`,{...u(`shortContent_${e}`,{required:`Short content is required`}),className:`input-academic h-24`}),m[`shortContent_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:m[`shortContent_${e}`].message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`To'liq matn (`,e.toUpperCase(),`) *`]}),(0,H.jsx)(`div`,{className:`bg-white border border-[#E4E7EC] text-[#172033] rounded-xl overflow-hidden shadow-xs`,children:(0,H.jsx)(S.Suspense,{fallback:(0,H.jsx)(`div`,{className:`h-64 flex items-center justify-center bg-[#F5F7FA] text-[#667085] text-xs`,children:`Muharrir yuklanmoqda...`}),children:(0,H.jsx)(F_,{theme:`snow`,value:e===`uz`?h:e===`en`?g:_,onChange:t=>f(`content_${e}`,t),className:`h-64 mb-10`})})}),m[`content_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-2`,children:m[`content_${e}`].message})]})]});return(0,H.jsxs)(`form`,{onSubmit:d(y),className:`space-y-8 max-w-4xl text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`h2`,{className:`text-base font-bold text-[#0B2D5C] mb-4 pb-2 border-b border-[#E4E7EC]`,children:`Asosiy ma'lumotlar`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Teg *`}),(0,H.jsx)(`input`,{...u(`tag`,{required:`Tag is required`}),className:`input-academic`,placeholder:`Masalan: OLIMPIADA`}),m.tag&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:m.tag.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Slug (ixtiyoriy)`}),(0,H.jsx)(`input`,{...u(`slug`),className:`input-academic`,placeholder:`Bo'sh qolsa avto-yaratiladi`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Holat`}),(0,H.jsxs)(`select`,{...u(`status`),className:`input-academic`,children:[(0,H.jsx)(`option`,{value:`DRAFT`,children:`Qoralama (Draft)`}),(0,H.jsx)(`option`,{value:`PUBLISHED`,children:`Chop etilgan (Published)`}),(0,H.jsx)(`option`,{value:`ARCHIVED`,children:`Arxivlangan (Archived)`})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Chop etish vaqti`}),(0,H.jsx)(`input`,{type:`datetime-local`,...u(`publishedAt`),className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:`flex items-center pt-4`,children:[(0,H.jsx)(`input`,{type:`checkbox`,...u(`isFeatured`),id:`isFeatured`,className:`mr-2.5 w-4 h-4 rounded text-[#0B2D5C]`}),(0,H.jsx)(`label`,{htmlFor:`isFeatured`,className:`text-xs font-bold text-[#0B2D5C]`,children:`Muhim yangilik sifatida belgilash`})]})]}),(0,H.jsxs)(`div`,{className:`mb-4`,children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:[`Asosiy rasm `,!e?.image&&`*`]}),o&&(0,H.jsxs)(`div`,{className:`relative w-48 h-32 mb-4 rounded-xl overflow-hidden border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`img`,{src:o,alt:`Preview`,className:`w-full h-full object-cover`}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>{s(null),l(null)},className:`absolute top-1.5 right-1.5 bg-rose-600 text-white w-6 h-6 rounded-full text-xs font-bold flex items-center justify-center shadow-sm`,children:`✕`})]}),(0,H.jsx)(`input`,{type:`file`,accept:`image/jpeg, image/png, image/webp`,onChange:v,required:!e?.image&&!c,className:`text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl border border-[#
37E4E7EC] shadow-xs`,children:[(0,H.jsx)(`div`,{className:`flex border-b border-[#E4E7EC] mb-6`,children:[`uz`,`en`].map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>a(e),className:`px-4 py-2 text-xs font-bold transition-colors ${i===e?`text-[#0B2D5C] border-b-2 border-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,children:e.toUpperCase()},e))}),b(`uz`),b(`en`)]}),(0,H.jsxs)(`div`,{className:`flex gap-4`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>r(`/admin/news`),className:`px-5 py-2.5 rounded-lg bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#E4E7EC] transition-colors text-xs font-bold`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:n,className:`px-6 py-2.5 rounded-lg bg-[#0B2D5C] text-white font-bold hover:bg-[#164C8C] transition-colors disabled:opacity-50 text-xs shadow-sm`,children:n?`Saqlanmoqda...`:`Saqlash`})]})]})},L_=()=>{let e=_n(),[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(null);return(0,H.jsxs)(`div`,{className:`p-6 text-gray-200`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-4 mb-6`,children:[(0,H.jsx)(`button`,{onClick:()=>e(`/admin/news`),className:`text-gray-400 hover:text-[#38bdf8] transition-colors`,children:(0,H.jsx)(pl,{size:24})}),(0,H.jsx)(`h1`,{className:`text-2xl font-bold`,children:`Create News`})]}),r&&(0,H.jsx)(`div`,{className:`mb-6 p-4 bg-red-500/20 text-red-400 rounded-lg border border-red-500/50`,children:r}),(0,H.jsx)(I_,{onSubmit:async t=>{try{n(!0),i(null),await Op.createNews(t),e(`/admin/news`)}catch(e){i(e.response?.data?.message||`Failed to create news`)}finally{n(!1)}},isSubmitting:t})]})},R_=()=>{let{id:e}=xn(),t=_n(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(!1),[c,l]=(0,S.useState)(null);return(0,S.useEffect)(()=>{(async()=>{try{await Op.getNews({search:e});let t=(await Op.getNews({limit:100})).data.items.find(t=>t.id===parseInt(e,10));if(!t)throw Error(`Not found`);let n={...t,title_uz:t.title?.uz||``,title_en:t.title?.en||``,title_ru:t.title?.ru||``,tagLabel_uz:t.tagLabel?.uz||``,tagLabel_en:t.tagLabel?.en||``,tagLabel_ru:t.tagLabel?.ru||``,shortContent_uz:t.shortContent?.uz||``,shortContent_en:t.shortContent?.en||``,shortContent_ru:t.shortContent?.ru||``,content_uz:t.content?.uz||``,content_en:t.content?.en||``,content_ru:t.content?.ru||``,imageAlt_uz:t.imageAlt?.uz||``,imageAlt_en:t.imageAlt?.en||``,imageAlt_ru:t.imageAlt?.ru||``,seoTitle_uz:t.seoTitle?.uz||``,seoTitle_en:t.seoTitle?.en||``,seoTitle_ru:t.seoTitle?.ru||``,seoDescription_uz:t.seoDescription?.uz||``,seoDescription_en:t.seoDescription?.en||``,seoDescription_ru:t.seoDescription?.ru||``,seoKeywords_uz:t.seoKeywords?.uz||``,seoKeywords_en:t.seoKeywords?.en||``,seoKeywords_ru:t.seoKeywords?.ru||``,publishedAt:t.publishedAt?t.publishedAt.slice(0,16):``};r(n)}catch{l(`Failed to load news`)}finally{a(!1)}})()},[e]),i?(0,H.jsx)(`div`,{className:`p-8 text-gray-400`,children:`Loading...`}):(0,H.jsxs)(`div`,{className:`p-6 text-gray-200`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-4 mb-6`,children:[(0,H.jsx)(`button`,{onClick:()=>t(`/admin/news`),className:`text-gray-400 hover:text-[#38bdf8] transition-colors`,children:(0,H.jsx)(pl,{size:24})}),(0,H.jsx)(`h1`,{className:`text-2xl font-bold`,children:`Edit News`})]}),c&&(0,H.jsx)(`div`,{className:`mb-6 p-4 bg-red-500/20 text-red-400 rounded-lg border border-red-500/50`,children:c}),n&&(0,H.jsx)(I_,{initialData:n,onSubmit:async n=>{try{s(!0),l(null),await Op.updateNews(e,n),t(`/admin/news`)}catch(e){l(e.response?.data?.message||`Failed to update news`)}finally{s(!1)}},isSubmitting:o})]})},z_=()=>{let[e,t]=Rr(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(!0),[c,l]=(0,S.useState)(null),u=parseInt(e.get(`page`)||`1`,10),d=e.get(`search`)||``,f=async()=>{try{s(!0);let e=await Kp.getLeadership({page:u,limit:15,search:d});r(e.data.items),a(e.data.pagination)}catch{l(`Failed to fetch leadership records`)}finally{s(!1)}};(0,S.useEffect)(()=>{f()},[u,d]);let p=e=>{e.preventDefault();let n=new FormData(e.target).get(`q`);t({page:`1`,search:n})},m=async e=>{if(window.confirm(`Are you sure you want to delete this leader?`))try{await Kp.deleteLeader(e),f()}catch{alert(`Error deleting leader`)}},h=async(e,t)=>{try{await Kp.updateLeader(e,{isActive:!t}),f()}catch{alert(`Error updating status`)}};return c?(0,H.jsxs)(`div`,{className:`p-6 text-red-500 bg-red-100/10 rounded`,children:[c,` `,(0,H.jsx)(`button`,{onClick:f,className:`underline ml-2`,children:`Retry`})]}):(0,H.jsxs)(`div`,{className:`text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-center mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Rahbariyat boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Maktab direktori va o'rinbosarlarini boshqarish`})]}),(0,H.jsxs)(I,{to:`/admin/leaders/new`,className:`bg-[#0B2D5C] text-white px-4 py-2.5 rounded-lg text-xs font-bold flex items-center gap-2 hover:bg-[#164C8C] transition-colors shadow-sm`,children:[(0,H.jsx)(du,{size:16}),` Rahbar qo'shish`]})]}),(0,H.jsx)(`div`,{className:`bg-white p-4 rounded-xl shadow-xs border border-[#
37E4E7EC] mb-6`,children:(0,H.jsxs)(`form`,{onSubmit:p,className:`flex gap-3`,children:[(0,H.jsxs)(`div`,{className:`relative flex-1`,children:[(0,H.jsx)(_u,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-[#667085]`,size:18}),(0,H.jsx)(`input`,{type:`text`,name:`q`,defaultValue:d,placeholder:`Ismi bo'yicha qidiruv...`,className:`input-academic pl-10`})]}),(0,H.jsx)(`button`,{type:`submit`,className:`bg-[#F5F7FA] hover:bg-[#E4E7EC] text-[#0B2D5C] font-semibold px-4 py-2 rounded-lg text-xs transition-colors border border-[#E4E7EC]`,children:`Qidirish`})]})}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC] overflow-hidden`,children:o?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Yuklanmoqda...`}):n.length===0?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Rahbarlar topilmadi.`}):(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 p-6`,children:n.map(e=>(0,H.jsxs)(`div`,{className:`bg-white rounded-xl border border-[#E4E7EC] shadow-xs overflow-hidden flex flex-col hover:border-[#164C8C]/40 transition-all`,children:[(0,H.jsxs)(`div`,{className:`h-48 bg-[#F5F7FA] relative`,children:[(0,H.jsx)(`img`,{src:X(e.image),alt:e.fullName,className:`w-full h-full object-cover`}),e.isDirector&&(0,H.jsx)(`div`,{className:`absolute top-2 right-2 bg-[#C59B27] text-[#071D3B] text-[11px] font-bold px-2 py-0.5 rounded shadow-xs`,children:`DIREKTOR`}),(0,H.jsx)(`div`,{className:`absolute top-2 left-2 flex gap-1`,children:(0,H.jsxs)(`button`,{onClick:()=>h(e.id,e.isActive),className:`px-2 py-0.5 text-[11px] font-bold rounded shadow-xs flex items-center gap-1 ${e.isActive?`bg-emerald-600 text-white`:`bg-rose-600 text-white`}`,title:`Holatni o'zgartirish`,children:[e.isActive?(0,H.jsx)(kl,{size:12}):(0,H.jsx)(Ml,{size:12}),e.isActive?`Faol`:`Nofaol`]})})]}),(0,H.jsxs)(`div`,{className:`p-4 flex flex-col flex-1`,children:[(0,H.jsx)(`h3`,{className:`font-bold text-base text-[#0B2D5C] mb-1`,children:e.fullName}),(0,H.jsx)(`p`,{className:`text-[#164C8C] text-xs font-semibold mb-3`,children:e.positions?.uz}),(0,H.jsxs)(`div`,{className:`flex justify-between items-center mt-auto pt-3 border-t border-[#E4E7EC]`,children:[(0,H.jsxs)(`span`,{className:`text-[11px] text-[#667085]`,children:[`Tartib: `,e.displayOrder]}),(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(I,{to:`/admin/leaders/${e.id}/edit`,className:`text-[#667085] hover:text-[#0B2D5C]`,title:`Tahrirlash`,children:(0,H.jsx)(su,{size:16})}),(0,H.jsx)(`button`,{onClick:()=>m(e.id),className:`text-[#667085] hover:text-rose-600`,title:`O'chirish`,children:(0,H.jsx)(Eu,{size:16})})]})]})]})]},e.id))})}),i&&i.totalPages>1&&(0,H.jsx)(`div`,{className:`flex justify-center mt-6 gap-2`,children:Array.from({length:i.totalPages}).map((e,n)=>(0,H.jsx)(`button`,{onClick:()=>t({page:(n+1).toString(),search:d}),className:`w-8 h-8 rounded-lg text-xs flex items-center justify-center font-semibold ${u===n+1?`bg-[#0B2D5C] text-white shadow-sm`:`bg-white border border-[#E4E7EC] hover:bg-[#F5F7FA] text-[#172033]`}`,children:n+1},n))})]})},B_=({initialData:e,onSubmit:t,isSubmitting:n})=>{let r=_n(),[i,a]=(0,S.useState)(`uz`),[o,s]=(0,S.useState)(e?.image?X(e.image):null),[c,l]=(0,S.useState)(null),{register:u,handleSubmit:d,formState:{errors:f}}=A_({defaultValues:e||{isDirector:!1,isActive:!0,displayOrder:0}}),p=e=>{let t=e.target.files[0];t&&(l(t),s(URL.createObjectURL(t)))},m=async e=>{let n=new FormData,r={...e,positions_ru:e.positions_ru||e.positions_uz||``,descriptions_ru:e.descriptions_ru||e.descriptions_uz||``,imageAlt_ru:e.imageAlt_ru||e.imageAlt_uz||``};Object.keys(r).forEach(e=>{r[e]!==void 0&&r[e]!==null&&n.append(e,r[e])}),c&&n.append(`image`,c),await t(n)},h=e=>(0,H.jsxs)(`div`,{className:`space-y-4 ${i===e?`block`:`hidden`}`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Lavozim (`,e.toUpperCase(),`) `,e===`uz`&&`*`]}),(0,H.jsx)(`input`,{...u(`positions_${e}`,{required:e===`uz`&&`Position is required`}),className:`input-academic`}),f[`positions_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:f[`positions_${e}`].message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Tavsif (`,e.toUpperCase(),`) `,e===`uz`&&`*`]}),(0,H.jsx)(`textarea`,{...u(`descriptions_${e}`,{required:e===`uz`&&`Description is required`}),className:`input-academic h-32`}),f[`descriptions_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:f[`descriptions_${e}`].message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Rasm izohi (`,e.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{...u(`imageAlt_${e}`),className:`input-academic`})]})]});return(0,H.jsxs)(`form`,{onSubmit:d(m),className:`space-y-8 max-w-4xl text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl border border-[#
37E4E7EC] shadow-xs`,children:[(0,H.jsx)(`h2`,{className:`text-base font-bold text-[#0B2D5C] mb-4 pb-2 border-b border-[#E4E7EC]`,children:`Asosiy ma'lumotlar`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`F.I.SH *`}),(0,H.jsx)(`input`,{...u(`fullName`,{required:`Full name is required`}),className:`input-academic`,placeholder:`Masalan: Boltayev Farrux`}),f.fullName&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:f.fullName.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Slug (ixtiyoriy)`}),(0,H.jsx)(`input`,{...u(`slug`),className:`input-academic`,placeholder:`Bo'sh qolsa avto-yaratiladi`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Ko'rsatilish tartibi`}),(0,H.jsx)(`input`,{type:`number`,...u(`displayOrder`,{valueAsNumber:!0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:`flex flex-col gap-3 justify-center mt-6`,children:[(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{type:`checkbox`,...u(`isDirector`),id:`isDirector`,className:`w-4 h-4 mr-2.5 rounded text-[#0B2D5C]`}),(0,H.jsx)(`label`,{htmlFor:`isDirector`,className:`text-xs font-bold text-[#C59B27] cursor-pointer`,children:`Maktab Direktori (Faqat bitta rahbar direktor bo'lishi mumkin)`})]}),(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{type:`checkbox`,...u(`isActive`),id:`isActive`,className:`w-4 h-4 mr-2.5 rounded text-[#0B2D5C]`}),(0,H.jsx)(`label`,{htmlFor:`isActive`,className:`text-xs font-bold text-emerald-700 cursor-pointer`,children:`Faol holat (Saytda ko'rinadi)`})]})]})]}),(0,H.jsxs)(`div`,{className:`mb-4`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Profil rasmi`}),o&&(0,H.jsxs)(`div`,{className:`relative w-48 h-48 mb-4 rounded-xl overflow-hidden border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`img`,{src:o,alt:`Preview`,className:`w-full h-full object-cover`}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>{s(null),l(null)},className:`absolute top-1.5 right-1.5 bg-rose-600 text-white w-6 h-6 rounded-full text-xs font-bold flex items-center justify-center shadow-sm`,children:`✕`})]}),(0,H.jsx)(`input`,{type:`file`,accept:`image/jpeg, image/png, image/webp`,onChange:p,className:`text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`div`,{className:`flex border-b border-[#E4E7EC] mb-6`,children:[`uz`,`en`].map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>a(e),className:`px-4 py-2 text-xs font-bold transition-colors ${i===e?`text-[#0B2D5C] border-b-2 border-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,children:e.toUpperCase()},e))}),h(`uz`),h(`en`)]}),(0,H.jsxs)(`div`,{className:`flex gap-4`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>r(`/admin/leaders`),className:`px-5 py-2.5 rounded-lg bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#E4E7EC] transition-colors text-xs font-bold`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:n,className:`px-6 py-2.5 rounded-lg bg-[#0B2D5C] text-white font-bold hover:bg-[#164C8C] transition-colors disabled:opacity-50 text-xs shadow-sm`,children:n?`Saqlanmoqda...`:`Saqlash`})]})]})},V_=()=>{let e=_n(),[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(null);return(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-white mb-6`,children:`Add New Leader`}),r&&(0,H.jsx)(`div`,{className:`bg-red-500/10 border border-red-500/50 text-red-500 p-4 rounded-lg mb-6`,children:r}),(0,H.jsx)(B_,{onSubmit:async t=>{try{n(!0),i(null),await Kp.createLeader(t),e(`/admin/leaders`)}catch(e){i(e.response?.data?.message||`Failed to create leader`)}finally{n(!1)}},isSubmitting:t})]})},H_=()=>{let{id:e}=xn(),t=_n(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(!1),[c,l]=(0,S.useState)(null);return(0,S.useEffect)(()=>{(async()=>{try{let t=(await Kp.getLeaderById(e)).data,n={...t,positions_uz:t.positions?.uz||``,positions_en:t.positions?.en||``,positions_ru:t.positions?.ru||``,de
37scriptions_uz:t.descriptions?.uz||``,descriptions_en:t.descriptions?.en||``,descriptions_ru:t.descriptions?.ru||``,imageAlt_uz:t.imageAlt?.uz||``,imageAlt_en:t.imageAlt?.en||``,imageAlt_ru:t.imageAlt?.ru||``};r(n)}catch{l(`Failed to fetch leader details`)}finally{a(!1)}})()},[e]),i?(0,H.jsx)(`div`,{className:`p-6 text-gray-400`,children:`Loading...`}):n?(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsxs)(`h1`,{className:`text-2xl font-bold text-white mb-6`,children:[`Edit Leader: `,n.fullName]}),c&&(0,H.jsx)(`div`,{className:`bg-red-500/10 border border-red-500/50 text-red-500 p-4 rounded-lg mb-6`,children:c}),(0,H.jsx)(B_,{initialData:n,onSubmit:async n=>{try{s(!0),l(null),await Kp.updateLeader(e,n),t(`/admin/leaders`)}catch(e){l(e.response?.data?.message||`Failed to update leader`)}finally{s(!1)}},isSubmitting:o})]}):(0,H.jsx)(`div`,{className:`p-6 text-red-500`,children:`Leader not found`})},U_=()=>{let[e,t]=(0,S.useState)(null),[n,r]=(0,S.useState)(!0),[i,a]=(0,S.useState)(!1),[o,s]=(0,S.useState)(null),[c,l]=(0,S.useState)(!0),[u,d]=(0,S.useState)(null),[f,p]=(0,S.useState)(null),[m,h]=(0,S.useState)(null),[g,_]=(0,S.useState)(null),[v,y]=(0,S.useState)(`Samarqand shahridagi Prezident maktabi 1-bosqich imtihon natijalari`),[b,x]=(0,S.useState)(`Samarqand shahridagi Prezident maktabi 2-bosqich imtihon natijalari`),[C,w]=(0,S.useState)(`1`),T=async()=>{try{r(!0);let e=await Ru.getSettings();if(e.data?.data){let n=e.data.data;t(n),l(n.showAdmissionResults!==!1),h(n.admissionPdf?X(n.admissionPdf):null),_(n.admissionPdf2?X(n.admissionPdf2):null),n.admissionPdfTitle1&&y(n.admissionPdfTitle1),n.admissionPdfTitle2&&x(n.admissionPdfTitle2)}}catch(e){console.error(e)}finally{r(!1)}};(0,S.useEffect)(()=>{T()},[]);let E=async e=>{try{a(!0);let t=new FormData;t.append(`showAdmissionResults`,e?`true`:`false`),await Ru.updateSettings(t),l(e),s({type:`success`,text:e?`Qabul natijalari rasmiy saytda e’lon qilindi (FAOL)!`:`Qabul natijalari rasmiy saytda yashirildi (NOFAOL)!`})}catch{alert(`Holatni o‘zgartirishda xatolik yuz berdi`)}finally{a(!1)}},D=e=>{let t=e.target.files[0];t&&(d(t),h(URL.createObjectURL(t)))},O=e=>{let t=e.target.files[0];t&&(p(t),_(URL.createObjectURL(t)))},k=async e=>{e.preventDefault();try{a(!0),s(null);let e=new FormData;u&&e.append(`admissionPdf`,u),f&&e.append(`admissionPdf2`,f),e.append(`admissionPdfTitle1`,v),e.append(`admissionPdfTitle2`,b),e.append(`showAdmissionResults`,c?`true`:`false`),await Ru.updateSettings(e),s({type:`success`,text:`Qabul natijalari PDF fayli va sozlamalari muvaffaqiyatli saqlandi va saytda e’lon qilindi!`}),T()}catch(e){console.error(`PDF Save Error:`,e);let t=e.response?.data?.errors?e.response.data.errors.map(e=>`${e.path?.join(`.`)}: ${e.message}`).join(`; `):e.response?.data?.message||`Fayllarni saqlashda xatolik yuz berdi`;s({type:`error`,text:t})}finally{a(!1)}},A=C===`1`?m||`/docs/qabul_natijalari_2026.pdf`:g||`/docs/qabul_natijalari_2026.pdf`;return n?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-xs`,children:`Sozlamalar yuklanmoqda...`}):(0,H.jsxs)(`div`,{className:`text-[#172033] max-w-6xl space-y-8`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 border-b border-[#E4E7EC] pb-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Qabul natijalari boshqaruvi (PDF)`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Imtihon natijalari rasmiy PDF fayllarini yuklash va saytda ko'rinishini boshqarish`})]}),(0,H.jsxs)(`button`,{onClick:k,disabled:i,className:`bg-[#0284c7] hover:bg-[#0369a1] text-white px-6 py-2.5 rounded-xl font-bold text-xs flex items-center gap-2 shadow-sm transition-all cursor-pointer disabled:opacity-50`,children:[(0,H.jsx)(hu,{size:18}),(0,H.jsx)(`span`,{children:i?`Saqlanmoqda...`:`Saqlash va E’lon qilish`})]})]}),o&&(0,H.jsx)(`div`,{className:`p-4 rounded-xl text-xs font-bold ${o.type===`success`?`bg-emerald-50 text-emerald-800 border border-emerald-200`:`bg-rose-50 text-rose-800 border border-rose-200`}`,children:o.text}),(0,H.jsxs)(`div`,{className:`p-5 rounded-3xl border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 transition-all shadow-sm ${c?`bg-emerald-50/90 border-emerald-200 text-emerald-950`:`bg-amber-50/90 border-amber-200 text-amber-950`}`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3.5`,children:[(0,H.jsx)(`div`,{className:`w-11 h-11 rounded-2xl flex items-center justify-center font-bold text-white shrink-0 shadow-xs ${c?`bg-emerald-600`:`bg-amber-600`}`,children:c?(0,H.jsx)(J,{size:22}):(0,H.jsx)(q,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h3`,{className:`font-extrabold text-sm sm:text-base`,children:[`Saytda Natijalarni Ko'rsatish Holati: `,c?`🟢 E'lon Qilingan (Faol)`:`🔴 Yashirilgan (Nofaol)`]}),(0,H.jsx)(`p`,{className:`text-xs opacity-85 mt-0.5`,children:c?`Tashrif buyuruvchilar rasmiy PDF natijalarni ko'rishlari va yuklab olishlari mumkin.`:`Natijalar saytda yashirilgan. Tashrif buyuruvchilarga 'Imtihon natijalari hali e'lon qilinmadi' xabari ko'rsatiladi.`})]})]}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>E(!c),disabled:i,className:`px-5 py-2.5 rounded-xl font-extrabold text-xs shadow-sm transition-all cursor-pointer border shrink-0 ${c?`bg-amber-600 hover:bg-amber-700 text-white border-amber-700`:`bg-emerald-600 hover:bg-emerald-700 text-white border-emerald-700`}`,children:c?`🔴 Natijalarni Saytda Yashirish`:`🟢 Saytda E'lon Qilish (Yoqish)`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 lg:grid-cols-2 gap-6`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-[#
37E4E7EC] shadow-xs space-y-5`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-[#0B2D5C]`,children:[(0,H.jsx)(`div`,{className:`w-8 h-8 rounded-lg bg-blue-50 text-[#0284c7] flex items-center justify-center font-bold`,children:`1`}),(0,H.jsx)(`h3`,{className:`font-extrabold text-sm`,children:`1-Bosqich Imtihon Natijalari (PDF)`})]}),m?(0,H.jsxs)(`span`,{className:`px-2.5 py-1 bg-emerald-50 text-emerald-700 border border-emerald-200 text-[11px] font-bold rounded-md flex items-center gap-1`,children:[(0,H.jsx)(kl,{size:12}),` Faol PDF`]}):(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-amber-50 text-amber-700 border border-amber-200 text-[11px] font-bold rounded-md`,children:`Biriktirilmagan`})]}),(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Sarlavha`}),(0,H.jsx)(`input`,{type:`text`,value:v,onChange:e=>y(e.target.value),className:`input-academic text-xs`,placeholder:`Samarqand shahridagi Prezident maktabi 1-bosqich imtihon natijalari`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`PDF Hujjat Faylini Yuklash (Max 100MB)`}),(0,H.jsx)(`input`,{type:`file`,accept:`application/pdf`,onChange:D,className:`w-full text-xs text-[#667085] file:mr-4 file:py-2.5 file:px-4 file:rounded-xl file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer border border-[#E4E7EC] rounded-xl p-2 bg-[#F5F7FA]`})]}),m&&(0,H.jsxs)(`div`,{className:`flex items-center gap-3 pt-2`,children:[(0,H.jsxs)(`a`,{href:m,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1.5 text-xs font-bold text-[#0284c7] hover:underline`,children:[(0,H.jsx)(K,{size:14}),` PDF Faylni ochish`]}),(0,H.jsxs)(`button`,{type:`button`,onClick:()=>w(`1`),className:`inline-flex items-center gap-1 text-xs font-bold text-[#0B2D5C] bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg`,children:[(0,H.jsx)(J,{size:13}),` Quyida ko'rish`]})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-2xl border border-[#E4E7EC] shadow-xs space-y-5`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-3`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 text-[#0B2D5C]`,children:[(0,H.jsx)(`div`,{className:`w-8 h-8 rounded-lg bg-emerald-50 text-emerald-600 flex items-center justify-center font-bold`,children:`2`}),(0,H.jsx)(`h3`,{className:`font-extrabold text-sm`,children:`2-Bosqich (Yakuniy) Natijalari (PDF)`})]}),g?(0,H.jsxs)(`span`,{className:`px-2.5 py-1 bg-emerald-50 text-emerald-700 border border-emerald-200 text-[11px] font-bold rounded-md flex items-center gap-1`,children:[(0,H.jsx)(kl,{size:12}),` Faol PDF`]}):(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-amber-50 text-amber-700 border border-amber-200 text-[11px] font-bold rounded-md`,children:`Biriktirilmagan`})]}),(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Sarlavha`}),(0,H.jsx)(`input`,{type:`text`,value:b,onChange:e=>x(e.target.value),className:`input-academic text-xs`,placeholder:`Samarqand shahridagi Prezident maktabi 2-bosqich imtihon natijalari`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`PDF Hujjat Faylini Yuklash (Max 100MB)`}),(0,H.jsx)(`input`,{type:`file`,accept:`application/pdf`,onChange:O,className:`w-full text-xs text-[#667085] file:mr-4 file:py-2.5 file:px-4 file:rounded-xl file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer border border-[#E4E7EC] rounded-xl p-2 bg-[#F5F7FA]`})]}),g&&(0,H.jsxs)(`div`,{className:`flex items-center gap-3 pt-2`,children:[(0,H.jsxs)(`a`,{href:g,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1.5 text-xs font-bold text-[#0284c7] hover:underline`,children:[(0,H.jsx)(K,{size:14}),` PDF Faylni ochish`]}),(0,H.jsxs)(`button`,{type:`button`,onClick:()=>w(`2`),className:`inline-flex items-center gap-1 text-xs font-bold text-[#0B2D5C] bg-gray-100 hover:bg-gray-200 px-3 py-1 rounded-lg`,children:[(0,H.jsx)(J,{size:13}),` Quyida ko'rish`]})]})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#
37E4E7EC] shadow-md space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(Bl,{size:20,className:`text-[#0284c7]`}),(0,H.jsxs)(`h3`,{className:`font-extrabold text-sm text-[#0B2D5C]`,children:[`Saytdagi Jonli PDF Ko'rinishi (`,C===`1`?`1-Bosqich`:`2-Bosqich`,`)`]})]}),(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsx)(`button`,{onClick:()=>w(`1`),className:`px-3 py-1 rounded-lg text-xs font-bold ${C===`1`?`bg-[#0B2D5C] text-white`:`bg-gray-100 text-gray-600`}`,children:`1-bosqich PDF`}),(0,H.jsx)(`button`,{onClick:()=>w(`2`),className:`px-3 py-1 rounded-lg text-xs font-bold ${C===`2`?`bg-[#0B2D5C] text-white`:`bg-gray-100 text-gray-600`}`,children:`2-bosqich PDF`})]})]}),(0,H.jsx)(`div`,{className:`w-full h-[550px] rounded-2xl overflow-hidden border border-gray-200 shadow-inner bg-slate-100`,children:(0,H.jsx)(`object`,{data:`${A}#toolbar=1&navpanes=1`,type:`application/pdf`,className:`w-full h-full border-none`,children:(0,H.jsx)(`iframe`,{src:`${A}#toolbar=1&navpanes=1`,className:`w-full h-full border-none`,title:`Admin Live PDF Preview`})})})]})]})},W_=({initialData:e,onSubmit:t,isSubmitting:n})=>{let r=_n(),{register:i,handleSubmit:a,formState:{errors:o}}=A_({defaultValues:e||{className:`5`,status:`ACCEPTED`}});return(0,H.jsxs)(`form`,{onSubmit:a(t),className:`space-y-8 max-w-4xl text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`h2`,{className:`text-base font-bold text-[#0B2D5C] mb-4 pb-2 border-b border-[#E4E7EC]`,children:`O'quvchi ma'lumotlari`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`O'quvchi ID *`}),(0,H.jsx)(`input`,{...i(`studentId`,{required:`Student ID is required`}),className:`input-academic font-mono`,placeholder:`Masalan: SPM-2026-0001`}),o.studentId&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:o.studentId.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`F.I.SH *`}),(0,H.jsx)(`input`,{...i(`studentName`,{required:`Student Name is required`}),className:`input-academic`,placeholder:`Masalan: Aliyev Azizbek`}),o.studentName&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:o.studentName.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Sinf`}),(0,H.jsx)(`input`,{...i(`className`),className:`input-academic`,placeholder:`Masalan: 5`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Qabul Yili *`}),(0,H.jsx)(`input`,{type:`number`,...i(`admissionYear`,{required:`Admission Year is required`,valueAsNumber:!0,min:{value:2e3,message:`Invalid year`},max:{value:2100,message:`Invalid year`}}),className:`input-academic`,placeholder:`Masalan: 2026`}),o.admissionYear&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:o.admissionYear.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Ball *`}),(0,H.jsx)(`input`,{type:`number`,step:`0.01`,...i(`mark`,{required:`Mark is required`,valueAsNumber:!0}),className:`input-academic`,placeholder:`Masalan: 92.5`}),o.mark&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:o.mark.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Holat *`}),(0,H.jsxs)(`select`,{...i(`status`,{required:`Status is required`}),className:`input-academic`,children:[(0,H.jsx)(`option`,{value:`ACCEPTED`,children:`ACCEPTED (Qabul qilindi)`}),(0,H.jsx)(`option`,{value:`RESERVE`,children:`RESERVE (Zaxirada)`}),(0,H.jsx)(`option`,{value:`REJECTED`,children:`REJECTED (Qabul qilinmadi)`})]}),o.status&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:o.status.message})]})]})]}),(0,H.jsxs)(`div`,{className:`flex gap-4`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>r(`/admin/admissions`),className:`px-5 py-2.5 rounded-lg bg-[#F5F7FA] text-[#0B2D5C] border border-[#
37E4E7EC] hover:bg-[#E4E7EC] transition-colors text-xs font-bold`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:n,className:`px-6 py-2.5 rounded-lg bg-[#0B2D5C] text-white font-bold hover:bg-[#164C8C] transition-colors disabled:opacity-50 text-xs shadow-sm`,children:n?`Saqlanmoqda...`:`Saqlash`})]})]})},G_={getAdmissionResults:async(e={})=>{let{data:t}=await V.get(`/admission-results`,{params:e});return t},getAdmissionResultById:async e=>{let{data:t}=await V.get(`/admission-results/${e}`);return t},createAdmissionResult:async e=>{let{data:t}=await V.post(`/admission-results`,e);return t},updateAdmissionResult:async(e,t)=>{let{data:n}=await V.put(`/admission-results/${e}`,t);return n},deleteAdmissionResult:async e=>{let{data:t}=await V.delete(`/admission-results/${e}`);return t},downloadAdmissionTemplate:async()=>{let e=await V.get(`/admission-results/template`,{responseType:`blob`}),t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement(`a`);n.href=t,n.setAttribute(`download`,`admission-results-template.xlsx`),document.body.appendChild(n),n.click(),n.remove()},importAdmissionResults:async e=>{let t=new FormData;t.append(`file`,e);let{data:n}=await V.post(`/admission-results/import`,t,{headers:{"Content-Type":`multipart/form-data`}});return n}},K_=()=>{let e=_n(),[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(null);return(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-white mb-6`,children:`Add Admission Result`}),r&&(0,H.jsx)(`div`,{className:`bg-red-500/10 border border-red-500/50 text-red-500 p-4 rounded-lg mb-6`,children:r}),(0,H.jsx)(W_,{onSubmit:async t=>{try{n(!0),i(null),await G_.createAdmissionResult(t),e(`/admin/admissions`)}catch(e){i(e.response?.data?.message||`Failed to create record`)}finally{n(!1)}},isSubmitting:t})]})},q_=()=>{let{id:e}=xn(),t=_n(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(!1),[c,l]=(0,S.useState)(null);return(0,S.useEffect)(()=>{(async()=>{try{let t=await G_.getAdmissionResultById(e);r(t.data)}catch{l(`Failed to fetch record details`)}finally{a(!1)}})()},[e]),i?(0,H.jsx)(`div`,{className:`p-6 text-gray-400`,children:`Loading...`}):n?(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-white mb-6`,children:`Edit Admission Result`}),c&&(0,H.jsx)(`div`,{className:`bg-red-500/10 border border-red-500/50 text-red-500 p-4 rounded-lg mb-6`,children:c}),(0,H.jsx)(W_,{initialData:n,onSubmit:async n=>{try{s(!0),l(null),await G_.updateAdmissionResult(e,n),t(`/admin/admissions`)}catch(e){l(e.response?.data?.message||`Failed to update record`)}finally{s(!1)}},isSubmitting:o})]}):(0,H.jsx)(`div`,{className:`p-6 text-red-500`,children:`Record not found`})},J_=()=>{let[e,t]=(0,S.useState)(2026),[n,r]=(0,S.useState)([2026,2025,2024,2023]),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(!1),[c,l]=(0,S.useState)(``),[u,d]=(0,S.useState)({totalStudents:168,totalTeachers:35,localTeachers:27,foreignTeachers:8,graduates:24,admissionRate:100,internationalCertificates:74,achievementCount:48}),[f,p]=(0,S.useState)([{grade:`5-sinf`,studentCount:24},{grade:`6-sinf`,studentCount:24},{grade:`7-sinf`,studentCount:24},{grade:`8-sinf`,studentCount:24},{grade:`9-sinf`,studentCount:24},{grade:`10-sinf`,studentCount:24},{grade:`11-sinf`,studentCount:24}]),[m,h]=(0,S.useState)({total:35,local:27,foreign:8}),[g,_]=(0,S.useState)({totalGraduates:24,universityAccepted:24,localUniversity:4,foreignUniversity:20,acceptanceRate:100}),[v,y]=(0,S.useState)([{examName:`IELTS`,participants:24,averageScore:`7.8`,highestScore:`8.5`,successRate:100},{examName:`SAT`,participants:24,averageScore:`1480`,highestScore:`1570`,successRate:100},{examName:`Cambridge Assessment`,participants:24,averageScore:`A*`,highestScore:`A*`,successRate:100}]),[b,x]=(0,S.useState)([{category:`Olimpiada`,level:`Xalqaro`,gold:5,silver:7,bronze:8,total:20},{category:`Olimpiada`,level:`Respublika`,gold:9,silver:10,bronze:9,total:28}]),[C,w]=(0,S.useState)([{certificateName:`IELTS (7.0+)`,students:24,teachers:20},{certificateName:`SAT (1400+)`,students:24,teachers:0},{certificateName:`CELTA / TESOL`,students:0,teachers:14}]),T=async e=>{try{a(!0);let t=await Vh.getStatistics(e);if(t.data?.data){let e=t.data.data;e.general&&d(e.general),e.students&&e.students.length>0&&p(e.students),e.teachers&&h(e.teachers),e.graduates&&_(e.graduates),e.exams&&e.exams.length>0&&y(e.exams),e.achievements&&e.achievements.length>0&&x(e.achievements),e.certificates&&e.certificates.length>0&&w(e.certificates)}}catch(e){console.error(e)}finally{a(!1)}};return(0,S.useEffect)(()=>{T(e)},[e]),(0,H.jsxs)(`div`,{className:`space-y-6 text-[#172033] max-w-5xl pb-16`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-[#
37E4E7EC] pb-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Statistika Boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mt-1`,children:`Saytdagi BARCHA statistik raqamlar, sinflar, imtihonlar va medallarni admin paneldan to'liq boshqaring`})]}),(0,H.jsx)(`div`,{className:`flex items-center gap-2 bg-white p-1.5 rounded-2xl border border-[#E4E7EC] shadow-2xs`,children:n.map(n=>(0,H.jsxs)(`button`,{onClick:()=>t(n),className:`px-4 py-2 rounded-xl text-xs font-black transition-all cursor-pointer ${e===n?`bg-[#0B2D5C] text-white shadow-xs`:`text-[#667085] hover:bg-gray-100`}`,children:[n,`-yil`]},n))})]}),c&&(0,H.jsxs)(`div`,{className:`p-4 bg-emerald-50 border border-emerald-200 text-emerald-800 text-xs font-bold rounded-2xl flex items-center gap-2 shadow-2xs`,children:[(0,H.jsx)(Al,{size:18,className:`text-emerald-600`}),(0,H.jsx)(`span`,{children:c})]}),i?(0,H.jsx)(`div`,{className:`p-12 text-center text-xs font-bold text-gray-500`,children:`Statistika yuklanmoqda...`}):(0,H.jsxs)(`form`,{onSubmit:async t=>{t.preventDefault();try{s(!0),l(``);let t={general:u,students:f,teachers:{total:parseInt(m.total)||0,local:parseInt(m.local)||0,foreign:parseInt(m.foreign)||0},graduates:{totalGraduates:parseInt(g.totalGraduates)||0,universityAccepted:parseInt(g.universityAccepted)||0,localUniversity:parseInt(g.localUniversity)||0,foreignUniversity:parseInt(g.foreignUniversity)||0,acceptanceRate:parseFloat(g.acceptanceRate)||0},exams:v,achievements:b.map(e=>({...e,gold:parseInt(e.gold)||0,silver:parseInt(e.silver)||0,bronze:parseInt(e.bronze)||0,total:(parseInt(e.gold)||0)+(parseInt(e.silver)||0)+(parseInt(e.bronze)||0)})),certificates:C.map(e=>({...e,students:parseInt(e.students)||0,teachers:parseInt(e.teachers)||0}))};await Vh.updateStatistics(e,t),l(`${e}-yil statistikasi muvaffaqiyatli saqlandi! Saytda zudlik bilan yangilandi.`),setTimeout(()=>l(``),4e3)}catch(e){console.error(e),alert(`Statistikani saqlashda xatolik yuz berdi`)}finally{s(!1)}},className:`space-y-8`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsxs)(`h3`,{className:`font-extrabold text-base text-[#0B2D5C] border-b border-gray-100 pb-3`,children:[`1. Umumiy Ko'rsatkichlar (`,e,`-yil)`]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4 text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Jami o'quvchilar`}),(0,H.jsx)(`input`,{type:`number`,value:u.totalStudents||0,onChange:e=>d({...u,totalStudents:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Jami pedagoglar`}),(0,H.jsx)(`input`,{type:`number`,value:u.totalTeachers||0,onChange:e=>d({...u,totalTeachers:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Mahalliy pedagoglar`}),(0,H.jsx)(`input`,{type:`number`,value:u.localTeachers||0,onChange:e=>d({...u,localTeachers:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Xorijiy pedagoglar`}),(0,H.jsx)(`input`,{type:`number`,value:u.foreignTeachers||0,onChange:e=>d({...u,foreignTeachers:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Bitiruvchilar`}),(0,H.jsx)(`input`,{type:`number`,value:u.graduates||0,onChange:e=>d({...u,graduates:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`OTMga qabul %`}),(0,H.jsx)(`input`,{type:`number`,step:`0.1`,value:u.admissionRate||0,onChange:e=>d({...u,admissionRate:parseFloat(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Sertifikatlar soni`}),(0,H.jsx)(`input`,{type:`number`,value:u.internationalCertificates||0,onChange:e=>d({...u,internationalCertificates:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Olimpiada va yutuqlar`}),(0,H.jsx)(`input`,{type:`number`,value:u.achievementCount||0,onChange:e=>d({...u,achievementCount:parseInt(e.target.value)||0}),className:`input-academic`})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#
37E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base text-[#0B2D5C] border-b border-gray-100 pb-3`,children:`2. Sinflar Kesimidagi O'quvchilar Soni (5 - 11-sinflar)`}),(0,H.jsx)(`div`,{className:`grid grid-cols-2 sm:grid-cols-4 md:grid-cols-7 gap-3 text-xs`,children:f.map((e,t)=>(0,H.jsxs)(`div`,{className:`bg-gray-50 p-3 rounded-xl border border-gray-200 space-y-1`,children:[(0,H.jsx)(`span`,{className:`font-extrabold text-[#0B2D5C] block text-center`,children:e.grade}),(0,H.jsx)(`input`,{type:`number`,value:e.studentCount||0,onChange:e=>{let n=[...f];n[t].studentCount=parseInt(e.target.value)||0,p(n)},className:`input-academic text-center font-bold`})]},t))})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base text-[#0B2D5C] border-b border-gray-100 pb-3`,children:`3. Bitiruvchilar va OTMga Qabul Natijalari`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4 text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Jami bitiruvchilar`}),(0,H.jsx)(`input`,{type:`number`,value:g.totalGraduates||0,onChange:e=>_({...g,totalGraduates:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`OTMga kirganlar`}),(0,H.jsx)(`input`,{type:`number`,value:g.universityAccepted||0,onChange:e=>_({...g,universityAccepted:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Xorijiy OTMlar`}),(0,H.jsx)(`input`,{type:`number`,value:g.foreignUniversity||0,onChange:e=>_({...g,foreignUniversity:parseInt(e.target.value)||0}),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Mahalliy OTMlar`}),(0,H.jsx)(`input`,{type:`number`,value:g.localUniversity||0,onChange:e=>_({...g,localUniversity:parseInt(e.target.value)||0}),className:`input-academic`})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-3`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base text-[#0B2D5C]`,children:`4. Xalqaro Imtihon Natijalari (IELTS, SAT, Cambridge)`}),(0,H.jsxs)(`button`,{type:`button`,onClick:()=>y([...v,{examName:`Yang Imtihon`,participants:20,averageScore:`7.0`,highestScore:`8.0`,successRate:100}]),className:`text-xs font-bold text-[#0284c7] hover:bg-sky-50 px-3 py-1.5 rounded-xl border border-sky-200 flex items-center gap-1 cursor-pointer`,children:[(0,H.jsx)(du,{size:14}),` Imtihon qo'shish`]})]}),(0,H.jsx)(`div`,{className:`space-y-3`,children:v.map((e,t)=>(0,H.jsxs)(`div`,{className:`p-4 bg-gray-50 rounded-2xl border border-gray-200 grid grid-cols-1 sm:grid-cols-6 gap-3 text-xs items-center`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-gray-500 mb-0.5`,children:`Imtihon nomi`}),(0,H.jsx)(`input`,{type:`text`,value:e.examName,onChange:e=>{let n=[...v];n[t].examName=e.target.value,y(n)},className:`input-academic font-bold`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-gray-500 mb-0.5`,children:`Qatnashchilar`}),(0,H.jsx)(`input`,{type:`number`,value:e.participants,onChange:e=>{let n=[...v];n[t].participants=parseInt(e.target.value)||0,y(n)},className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-gray-500 mb-0.5`,children:`O'rtacha ball`}),(0,H.jsx)(`input`,{type:`text`,value:e.averageScore,onChange:e=>{let n=[...v];n[t].averageScore=e.target.value,y(n)},className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-gray-500 mb-0.5`,children:`Eng yuqori ball`}),(0,H.jsx)(`input`,{type:`text`,value:e.highestScore,onChange:e=>{let n=[...v];n[t].highestScore=e.target.value,y(n)},className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-gray-500 mb-0.5`,children:`Muvaffaqiyat %`}),(0,H.jsx)(`input`,{type:`number`,step:`0.1`,value:e.successRate,onChange:e=>{let n=[...v];n[t].successRate=parseFloat(e.target.value)||0,y(n)},className:`input-academic`})]}),(0,H.jsx)(`div`,{className:`flex justify-end pt-3 sm:pt-0`,children:(0,H.jsx)(`button`,{type:`button`,onClick:()=>
37y(v.filter((e,n)=>n!==t)),className:`p-2 hover:bg-rose-100 rounded-xl text-rose-600 cursor-pointer`,children:(0,H.jsx)(Eu,{size:16})})})]},t))})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-3`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base text-[#0B2D5C]`,children:`5. Olimpiada va Yutuqlar (Oltin 🥇, Kumush 🥈, Bronza 🥉 medallari)`}),(0,H.jsxs)(`button`,{type:`button`,onClick:()=>x([...b,{category:`Olimpiada`,level:`Xalqaro`,gold:0,silver:0,bronze:0,total:0}]),className:`text-xs font-bold text-[#0284c7] hover:bg-sky-50 px-3 py-1.5 rounded-xl border border-sky-200 flex items-center gap-1 cursor-pointer`,children:[(0,H.jsx)(du,{size:14}),` Yutuq qo'shish`]})]}),(0,H.jsx)(`div`,{className:`space-y-3`,children:b.map((e,t)=>(0,H.jsxs)(`div`,{className:`p-4 bg-gray-50 rounded-2xl border border-gray-200 grid grid-cols-1 sm:grid-cols-6 gap-3 text-xs items-center`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-gray-500 mb-0.5`,children:`Daraja (Xalqaro/Respublika)`}),(0,H.jsx)(`input`,{type:`text`,value:e.level,onChange:e=>{let n=[...b];n[t].level=e.target.value,x(n)},className:`input-academic font-bold`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-gray-500 mb-0.5`,children:`Kategoriya`}),(0,H.jsx)(`input`,{type:`text`,value:e.category,onChange:e=>{let n=[...b];n[t].category=e.target.value,x(n)},className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-amber-700 mb-0.5`,children:`🥇 Oltin`}),(0,H.jsx)(`input`,{type:`number`,value:e.gold,onChange:e=>{let n=[...b];n[t].gold=parseInt(e.target.value)||0,x(n)},className:`input-academic font-bold`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-slate-700 mb-0.5`,children:`🥈 Kumush`}),(0,H.jsx)(`input`,{type:`number`,value:e.silver,onChange:e=>{let n=[...b];n[t].silver=parseInt(e.target.value)||0,x(n)},className:`input-academic font-bold`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[10px] font-bold text-orange-800 mb-0.5`,children:`🥉 Bronza`}),(0,H.jsx)(`input`,{type:`number`,value:e.bronze,onChange:e=>{let n=[...b];n[t].bronze=parseInt(e.target.value)||0,x(n)},className:`input-academic font-bold`})]}),(0,H.jsx)(`div`,{className:`flex justify-end pt-3 sm:pt-0`,children:(0,H.jsx)(`button`,{type:`button`,onClick:()=>x(b.filter((e,n)=>n!==t)),className:`p-2 hover:bg-rose-100 rounded-xl text-rose-600 cursor-pointer`,children:(0,H.jsx)(Eu,{size:16})})})]},t))})]}),(0,H.jsx)(`div`,{className:`flex justify-end pt-4`,children:(0,H.jsxs)(`button`,{type:`submit`,disabled:o,className:`bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-10 py-4 rounded-2xl font-black text-sm transition-all shadow-md flex items-center gap-2 cursor-pointer disabled:opacity-50 hover:scale-105`,children:[(0,H.jsx)(hu,{size:18}),` `,o?`Saqlanmoqda...`:`${e}-yil Statistikasini Saqlash`]})})]})]})},Y_=`https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=600`,X_=()=>{let[e,t]=Rr(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(!0),[c,l]=(0,S.useState)(!1),[u,d]=(0,S.useState)(e.get(`search`)||``),[f,p]=(0,S.useState)(!0),m=async()=>{try{let e=await Ru.getSettings();e.data?.data&&p(e.data.data.showTeachers!==!1)}catch(e){console.error(e)}},h=async()=>{try{s(!0);let t=await Jp.getTeachers({page:e.get(`page`)||1,limit:15,search:e.get(`search`)||``,type:e.get(`type`)||`ALL`});t.data?.data&&(r(t.data.data.items||[]),a(t.data.data.pagination))}catch(e){console.error(`Failed to fetch teachers:`,e)}finally{s(!1)}};(0,S.useEffect)(()=>{m(),h()},[e]);let g=async e=>{try{l(!0);let t=new FormData;t.append(`showTeachers`,e?`true`:`false`);let n=await Ru.updateSettings(t);n.data?.data?p(n.data.data.showTeachers!==!1):p(e)}catch(e){console.error(`Failed to toggle teacher visibility:`,e),alert(`Holatni o‘zgartirishda xatolik yuz berdi`)}finally{l(!1)}},_=n=>{n.preventDefault();let r=new URLSearchParams(e);u?r.set(`search`,u):r.delete(`search`),r.set(`page`,`1`),t(r)},v=n=>{let r=new URLSearchParams(e);n.target.value?r.set(`type`,n.target.value):r.delete(`type`),r.set(`page`,`1`),t(r)},y=async e=>{try{await Jp.updateTeacher(e.id,{...e,isActive:!e.isActive}),h()}catch{alert(`Holatni o'zgartirishda xatolik`)}},b=async e=>{if(window.confirm(`Haqiqatan ham ushbu o'qituvchini o'chirmoqchimisiz?`))try{await Jp.deleteTeacher(e),h()}catch{alert(`O'chirishda xatolik`)}};return(0,H.jsxs)(`div`,{className:`text-[#172033] max-w-6xl space-y-6`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col md:flex-row justify-between items-start md:items-center gap-4 border-b border-[#
37E4E7EC] pb-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`O'qituvchilar boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Maktab o'qituvchilari tarkibi va profil ma'lumotlari`})]}),(0,H.jsxs)(I,{to:`/admin/teachers/new`,className:`bg-[#0B2D5C] text-white px-4 py-2.5 rounded-xl text-xs font-bold flex items-center gap-2 hover:bg-[#164C8C] transition-colors shadow-sm`,children:[(0,H.jsx)(du,{size:16}),` O'qituvchi qo'shish`]})]}),(0,H.jsxs)(`div`,{className:`p-5 rounded-3xl border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 transition-all shadow-sm ${f?`bg-emerald-50/90 border-emerald-200 text-emerald-950`:`bg-amber-50/90 border-amber-200 text-amber-950`}`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3.5`,children:[(0,H.jsx)(`div`,{className:`w-11 h-11 rounded-2xl flex items-center justify-center font-bold text-white shrink-0 shadow-xs ${f?`bg-emerald-600`:`bg-amber-600`}`,children:f?(0,H.jsx)(J,{size:22}):(0,H.jsx)(q,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h3`,{className:`font-extrabold text-sm sm:text-base`,children:[`Saytda O'qituvchilar Ro'yxatini Ko'rsatish Holati: `,f?`🟢 E'lon Qilingan (Faol)`:`🔴 Yashirilgan (Nofaol)`]}),(0,H.jsx)(`p`,{className:`text-xs opacity-85 mt-0.5`,children:f?`Tashrif buyuruvchilar barcha o'qituvchilar va pedagogik jamoani ko'rishlari mumkin.`:`O'qituvchilar ro'yxati saytda yashirilgan. Tashrif buyuruvchilarga bildirishnoma ko'rsatiladi.`})]})]}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>g(!f),disabled:c,className:`px-5 py-2.5 rounded-xl font-extrabold text-xs shadow-sm transition-all cursor-pointer border shrink-0 ${f?`bg-amber-600 hover:bg-amber-700 text-white border-amber-700`:`bg-emerald-600 hover:bg-emerald-700 text-white border-emerald-700`}`,children:f?`🔴 Ro'yxatni Saytda Yashirish`:`🟢 Saytda E'lon Qilish (Yoqish)`})]}),(0,H.jsxs)(`div`,{className:`flex flex-col md:flex-row gap-3 mb-6`,children:[(0,H.jsxs)(`form`,{onSubmit:_,className:`flex-grow flex`,children:[(0,H.jsx)(`input`,{type:`text`,placeholder:`Ism, lavozim yoki fan bo'yicha qidiruv...`,value:u,onChange:e=>d(e.target.value),className:`input-academic rounded-r-none`}),(0,H.jsx)(`button`,{type:`submit`,className:`bg-[#0B2D5C] text-white px-4 rounded-r-lg hover:bg-[#164C8C] transition-colors cursor-pointer`,children:(0,H.jsx)(_u,{size:18})})]}),(0,H.jsxs)(`select`,{value:e.get(`type`)||`ALL`,onChange:v,className:`input-academic md:w-48 cursor-pointer`,children:[(0,H.jsx)(`option`,{value:`ALL`,children:`Barcha pedagoglar`}),(0,H.jsx)(`option`,{value:`LOCAL`,children:`Mahalliy pedagoglar`}),(0,H.jsx)(`option`,{value:`FOREIGN`,children:`Xorijiy pedagoglar`}),(0,H.jsx)(`option`,{value:`SUPPORT`,children:`Oʻquv yordamchi xodimlar`})]})]}),(0,H.jsxs)(`div`,{className:`bg-white rounded-2xl border border-[#E4E7EC] shadow-xs overflow-hidden`,children:[o?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm font-bold`,children:`Yuklanmoqda...`}):n.length===0?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm font-bold`,children:`O'qituvchilar topilmadi.`}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-left border-collapse text-xs`,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`bg-[#F5F7FA] border-b border-[#E4E7EC] text-[#0B2D5C] font-bold uppercase tracking-wider`,children:[(0,H.jsx)(`th`,{className:`p-4 w-16`,children:`Foto`}),(0,H.jsx)(`th`,{className:`p-4`,children:`F.I.SH`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Lavozim`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Fan`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Turi`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Holat`}),(0,H.jsx)(`th`,{className:`p-4 text-right`,children:`Amallar`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-[#E4E7EC] font-medium`,children:n.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-[#F5F7FA]/70 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`img`,{src:e.photo?X(e.ph
37oto):Y_,alt:e.fullName,onError:e=>{e.target.src=Y_},className:`w-10 h-10 object-cover object-top rounded-full bg-[#F5F7FA] border border-[#E4E7EC]`})}),(0,H.jsx)(`td`,{className:`p-4 font-bold text-[#0B2D5C]`,children:e.fullName}),(0,H.jsx)(`td`,{className:`p-4 text-[#667085]`,children:e.position}),(0,H.jsx)(`td`,{className:`p-4 text-[#0284c7] font-bold`,children:e.subjectRef?.nameUz||e.subjectNameStr||`—`}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`span`,{className:`px-2 py-0.5 rounded-md text-[10px] font-extrabold uppercase ${e.teacherType===`FOREIGN`?`bg-purple-100 text-purple-800`:`bg-blue-100 text-blue-800`}`,children:e.teacherType===`FOREIGN`?`Xorijiy`:`Mahalliy`})}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`span`,{className:`px-2.5 py-1 rounded-md text-[11px] font-bold ${e.isActive?`bg-emerald-100 text-emerald-800 border border-emerald-300`:`bg-rose-100 text-rose-800 border border-rose-300`}`,children:e.isActive?`Faol`:`Nofaol`})}),(0,H.jsx)(`td`,{className:`p-4 text-right`,children:(0,H.jsxs)(`div`,{className:`flex items-center justify-end gap-3 text-[#667085]`,children:[(0,H.jsx)(`button`,{onClick:()=>y(e),className:`hover:text-[#C59B27] cursor-pointer`,title:`Holatni o'zgartirish`,children:(0,H.jsx)(fu,{size:18})}),(0,H.jsx)(I,{to:`/admin/teachers/${e.id}/edit`,className:`hover:text-[#0284c7] cursor-pointer`,title:`Tahrirlash`,children:(0,H.jsx)(su,{size:18})}),(0,H.jsx)(`button`,{onClick:()=>b(e.id),className:`hover:text-rose-600 cursor-pointer`,title:`O'chirish`,children:(0,H.jsx)(Eu,{size:18})})]})})]},e.id))})]})}),i&&i.totalPages>1&&(0,H.jsxs)(`div`,{className:`p-4 border-t border-[#E4E7EC] flex justify-between items-center text-xs`,children:[(0,H.jsxs)(`span`,{className:`text-[#667085]`,children:[`Jami `,i.total,` ta o'qituvchi`]}),(0,H.jsx)(`div`,{className:`flex gap-1`,children:Array.from({length:i.totalPages},(e,t)=>t+1).map(n=>(0,H.jsx)(`button`,{onClick:()=>{let r=new URLSearchParams(e);r.set(`page`,n.toString()),t(r)},className:`w-7 h-7 rounded-lg font-bold flex items-center justify-center cursor-pointer ${i.page===n?`bg-[#0B2D5C] text-white`:`bg-gray-100 text-[#667085] hover:bg-gray-200`}`,children:n},n))})]})]})]})},Z_=`https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=600`,Q_=({initialData:e,onSubmit:t,onCancel:n,isLoading:r})=>{let[i,a]=(0,S.useState)([]),[o,s]=(0,S.useState)(null),[c,l]=(0,S.useState)(e?.photo||``),[u,d]=(0,S.useState)({firstName:e?.firstName||``,lastName:e?.lastName||``,middleName:e?.middleName||``,position:e?.position||`O‘qituvchi`,subjectId:e?.subjectId||``,subjectNameStr:e?.subjectNameStr||``,teacherType:e?.teacherType||`LOCAL`,photo:e?.photo||``,education:e?.education||``,specialization:e?.specialization||``,pedagogicalExperience:e?.pedagogicalExperience||0,professionalExperience:e?.professionalExperience||0,professionalQualification:e?.professionalQualification||``,biography:e?.biography||``,displayOrder:e?.displayOrder||0,isActive:e?.isActive??!0});return(0,S.useEffect)(()=>{Jp.getSubjects().then(e=>{e.data?.data&&(a(e.data.data),!u.subjectId&&e.data.data.length>0&&d(t=>({...t,subjectId:e.data.data[0].id,subjectNameStr:e.data.data[0].nameUz})))}).catch(e=>console.error(`Failed to load subjects:`,e))},[]),(0,H.jsxs)(`form`,{onSubmit:e=>{if(e.preventDefault(),!u.firstName.trim()||!u.lastName.trim()){alert(`Ism va familiya kiritilishi shart!`);return}if(o){let e=new FormData;Object.keys(u).forEach(t=>{t!==`photo`&&e.append(t,u[t]??``)}),e.append(`photo`,o),e.append(`subjectId`,parseInt(u.subjectId)||``),e.append(`pedagogicalExperience`,parseInt(u.pedagogicalExperience)||0),e.append(`professionalExperience`,parseInt(u.professionalExperience)||0),e.append(`displayOrder`,parseInt(u.displayOrder)||0),e.append(`isActive`,u.isActive),t(e)}else t({...u,subjectId:parseInt(u.subjectId)||null,pedagogicalExperience:parseInt(u.pedagogicalExperience)||0,professionalExperience:parseInt(u.professionalExperience)||0,displayOrder:parseInt(u.displayOrder)||0})},className:`space-y-6 text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#
37E4E7EC] shadow-xs space-y-4`,children:[(0,H.jsx)(`h3`,{className:`text-base font-extrabold text-[#0B2D5C] border-b border-gray-100 pb-3`,children:`1. Shaxsiy va Kasbiy Ma’lumotlar`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-3 gap-4 text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Familiya *`}),(0,H.jsx)(`input`,{type:`text`,required:!0,value:u.lastName,onChange:e=>d({...u,lastName:e.target.value}),className:`input-academic font-bold`,placeholder:`Masalan: Karimov`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Ism *`}),(0,H.jsx)(`input`,{type:`text`,required:!0,value:u.firstName,onChange:e=>d({...u,firstName:e.target.value}),className:`input-academic font-bold`,placeholder:`Masalan: Alisher`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Otasining ismi`}),(0,H.jsx)(`input`,{type:`text`,value:u.middleName,onChange:e=>d({...u,middleName:e.target.value}),className:`input-academic font-bold`,placeholder:`Masalan: Tohirovich`})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 ${u.teacherType===`SUPPORT`?`sm:grid-cols-2`:`sm:grid-cols-3`} gap-4 text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Lavozim *`}),(0,H.jsx)(`input`,{type:`text`,required:!0,value:u.position,onChange:e=>d({...u,position:e.target.value}),className:`input-academic font-bold`,placeholder:`Masalan: Kutubxonachi / Laborant / Yordamchi`})]}),u.teacherType!==`SUPPORT`&&(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Fan / Yo'nalish *`}),(0,H.jsx)(`select`,{value:u.subjectId,onChange:e=>{let t=parseInt(e.target.value),n=i.find(e=>e.id===t);d({...u,subjectId:t,subjectNameStr:n?n.nameUz:``})},className:`input-academic cursor-pointer bg-[#1e293b] text-white font-bold`,children:i.map(e=>(0,H.jsx)(`option`,{value:e.id,className:`bg-[#1e293b] text-white font-bold`,children:e.nameUz},e.id))})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Pedagog Turi *`}),(0,H.jsxs)(`select`,{value:u.teacherType,onChange:e=>{let t=e.target.value;d(e=>({...e,teacherType:t,...t===`SUPPORT`?{subjectId:``,subjectNameStr:``}:{}}))},className:`input-academic cursor-pointer bg-[#1e293b] text-white font-bold`,children:[(0,H.jsx)(`option`,{value:`LOCAL`,className:`bg-[#1e293b] text-white font-bold`,children:`Mahalliy pedagog`}),(0,H.jsx)(`option`,{value:`FOREIGN`,className:`bg-[#1e293b] text-white font-bold`,children:`Xorijiy pedagog`}),(0,H.jsx)(`option`,{value:`SUPPORT`,className:`bg-[#1e293b] text-white font-bold`,children:`Oʻquv yordamchi xodim`})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-[#F8FAFC] p-4 sm:p-5 rounded-2xl border border-[#E4E7EC] space-y-3`,children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] text-xs`,children:`O'qituvchi Foto Rasmi (Kompyuterdan rasm faylini yuklang)`}),(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-center gap-5`,children:[(0,H.jsx)(`div`,{className:`w-24 h-28 sm:w-28 sm:h-32 rounded-2xl overflow-hidden bg-gray-200 border-2 border-[#C59B27] shrink-0 shadow-md relative group`,children:(0,H.jsx)(`img`,{src:c?c.startsWith(`blob:`)?c:X(c):Z_,alt:`O'qituvchi rasmi`,className:`w-full h-full object-cover`,onError:e=>{e.target.src=Z_}})}),(0,H.jsxs)(`div`,{className:`flex-1 w-full space-y-2`,children:[(0,H.jsxs)(`label`,{className:`flex flex-col items-center justify-center border-2 border-dashed border-[#1E5C9A]/30 hover:border-[#1E5C9A] bg-white rounded-2xl p-4 cursor-pointer transition-colors group`,children:[(0,H.jsx)(Pl,{size:28,className:`text-[#1E5C9A] group-hover:scale-110 transition-transform mb-1`}),(0,H.jsx)(`span`,{className:`text-xs font-extrabold text-[#0B2D5C]`,children:o?o.name:`Kompyuterdan rasm tanlash uchun bosing`}),(0,H.jsx)(`span`,{className:`text-[11px] font-medium text-gray-500`,children:`PNG, JPG, JPEG, WEBP rasm fayllari`}
37),(0,H.jsx)(`input`,{type:`file`,accept:`image/*`,onChange:e=>{let t=e.target.files[0];if(t){s(t);let e=URL.createObjectURL(t);l(e)}},className:`hidden`})]}),(0,H.jsx)(`div`,{className:`pt-1`,children:(0,H.jsx)(`input`,{type:`text`,value:u.photo,onChange:e=>{d({...u,photo:e.target.value}),l(e.target.value)},className:`input-academic text-xs font-bold w-full bg-white`,placeholder:`yoki Rasm havolasi (URL): https://...`})})]})]})]})]}),(0,H.jsxs)(`div`,{className:`flex items-center justify-end gap-3 pt-4`,children:[n&&(0,H.jsx)(`button`,{type:`button`,onClick:n,className:`px-6 py-2.5 rounded-xl border border-gray-300 font-bold text-xs text-gray-700 hover:bg-gray-100 transition-colors cursor-pointer`,children:`Bekor qilish`}),(0,H.jsxs)(`button`,{type:`submit`,disabled:r,className:`inline-flex items-center gap-2 bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-7 py-3 rounded-xl font-bold text-xs transition-colors shadow-md cursor-pointer disabled:opacity-50`,children:[(0,H.jsx)(hu,{size:16}),(0,H.jsx)(`span`,{children:r?`Saqlanmoqda...`:`Saqlash`})]})]})]})},$_=()=>{let e=_n(),[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(``);return(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsxs)(`div`,{className:`mb-6 flex items-center gap-4`,children:[(0,H.jsx)(`button`,{onClick:()=>e(`/admin/teachers`),className:`text-gray-400 hover:text-white`,children:(0,H.jsx)(pl,{size:24})}),(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-white`,children:`Create New Teacher`})]}),r&&(0,H.jsx)(`div`,{className:`mb-6 bg-red-500/10 border border-red-500/50 text-red-500 p-4 rounded-lg`,children:r}),(0,H.jsx)(Q_,{onSubmit:async t=>{try{n(!0),i(``),await Jp.createTeacher(t),e(`/admin/teachers`)}catch(e){i(e.response?.data?.message||`Error creating teacher`)}finally{n(!1)}},onCancel:()=>e(`/admin/teachers`),isLoading:t})]})},ev=()=>{let{id:e}=xn(),t=_n(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(!1),[c,l]=(0,S.useState)(``);return(0,S.useEffect)(()=>{(async()=>{try{let t=await Jp.getTeachers({limit:100});if(t.data?.data?.items){let n=t.data.data.items.find(t=>t.id===parseInt(e));n?r(n):l(`O‘qituvchi topilmadi`)}}catch{l(`O‘qituvchi ma’lumotlarini yuklashda xatolik`)}finally{a(!1)}})()},[e]),i?(0,H.jsx)(`div`,{className:`p-8 text-center text-xs font-bold text-gray-500`,children:`O'qituvchi yuklanmoqda...`}):(0,H.jsxs)(`div`,{className:`space-y-6 text-[#172033] max-w-5xl`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-4 border-b border-[#E4E7EC] pb-5`,children:[(0,H.jsx)(`button`,{onClick:()=>t(`/admin/teachers`),className:`p-2 hover:bg-gray-100 rounded-xl text-[#0B2D5C]`,children:(0,H.jsx)(pl,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`O‘qituvchi Ma’lumotlarini Tahrirlash`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`O'qituvchi profili, sertifikatlari va yutuqlarini yangilash`})]})]}),c&&(0,H.jsx)(`div`,{className:`p-4 bg-rose-50 border border-rose-200 text-rose-800 text-xs font-bold rounded-2xl`,children:c}),n&&(0,H.jsx)(Q_,{initialData:n,onSubmit:async n=>{try{s(!0),l(``),await Jp.updateTeacher(e,n),t(`/admin/teachers`)}catch{l(`O‘qituvchini saqlashda xatolik yuz berdi`)}finally{s(!1)}},onCancel:()=>t(`/admin/teachers`),isLoading:o})]})},tv=()=>{let[e,t]=Rr(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(!0),[c,l]=(0,S.useState)(null),u=parseInt(e.get(`page`)||`1`,10),d=e.get(`search`)||``,f=e.get(`status`)||``,p=e.get(`tag`)||``,m=e.get(`isPinned`)||``,h=async()=>{try{s(!0),l(null);let e=await Fh.getAnnouncements({page:u,limit:15,search:d,status:f,tag:p,isPinned:m});r(e.data.items),a(e.data.pagination)}catch{l(`Failed to fetch announcements`)}finally{s(!1)}};(0,S.useEffect)(()=>{h()},[u,d,f,p,m]);let g=e=>{e.preventDefault();let n=new FormData(e.target),r=n.get(`q`),i=n.get(`status`),a=n.get(`tag`),o=n.get(`isPinned`);t({page:`1`,...r&&{search:r},...i&&{status:i},...a&&{tag:a},...o&&{isPinned:o}})},_=async e=>{if(window.confirm(`Are you sure you want to delete this announcement?`))try{await Fh.deleteAnnouncement(e),h()}catch{alert(`Error deleting announcement`)}},v=async(e,t)=>{try{await Fh.updateAnnouncement(e,{isPinned:!t}),h()}catch{alert(`Error updating announcement pin status`)}};return c?(0,H.jsxs)(`div`,{className:`p-6 text-red-500 bg-red-100/10 rounded`,children:[c,` `,(0,H.jsx)(`button`,{onClick:h,className:`underline ml-2`,children:`Retry`})]}):(0,H.jsxs)(`div`,{className:`text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col md:flex-row justify-between items-start md:items-center mb-6 gap-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`E'lonlar boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Rasmiy e'lonlar va bildirishnomalarni boshqarish`})]}),(0,H.jsxs)(I,{to:`/admin/announcements/new`,className:`bg-[#0B2D5C] text-white px-4 py-2.5 rounded-lg text-xs font-bold flex items-center gap-2 hover:bg-[#164C8C] transition-colors shadow-sm`,children:[(0,H.jsx)(du,{size:16}),` E'lon yaratish`]})]}),(0,H.jsx)(`div`,{className:`bg-white p-4 rounded-xl shadow-xs border border-[#
37E4E7EC] mb-6`,children:(0,H.jsxs)(`form`,{onSubmit:g,className:`flex flex-col lg:flex-row gap-3`,children:[(0,H.jsxs)(`div`,{className:`relative flex-1`,children:[(0,H.jsx)(_u,{className:`absolute left-3 top-1/2 -translate-y-1/2 text-[#667085]`,size:18}),(0,H.jsx)(`input`,{type:`text`,name:`q`,defaultValue:d,placeholder:`Sarlavha, teg yoki mazmun bo'yicha qidiruv...`,className:`input-academic pl-10`})]}),(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-3`,children:[(0,H.jsxs)(`select`,{name:`status`,defaultValue:f,className:`input-academic`,children:[(0,H.jsx)(`option`,{value:``,children:`Barcha holatlar`}),(0,H.jsx)(`option`,{value:`PUBLISHED`,children:`Chop etilgan (Published)`}),(0,H.jsx)(`option`,{value:`DRAFT`,children:`Qoralama (Draft)`}),(0,H.jsx)(`option`,{value:`ARCHIVED`,children:`Arxivlangan (Archived)`})]}),(0,H.jsx)(`input`,{type:`text`,name:`tag`,defaultValue:p,placeholder:`Teg...`,className:`input-academic sm:w-32`}),(0,H.jsxs)(`select`,{name:`isPinned`,defaultValue:m,className:`input-academic`,children:[(0,H.jsx)(`option`,{value:``,children:`Barchasi`}),(0,H.jsx)(`option`,{value:`true`,children:`Faqat biriktirilgan`}),(0,H.jsx)(`option`,{value:`false`,children:`Biriktirilmagan`})]}),(0,H.jsx)(`button`,{type:`submit`,className:`bg-[#F5F7FA] hover:bg-[#E4E7EC] text-[#0B2D5C] font-semibold px-5 py-2 rounded-lg text-xs transition-colors border border-[#E4E7EC] whitespace-nowrap`,children:`Saralash`})]})]})}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC] overflow-hidden`,children:o?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Yuklanmoqda...`}):n.length===0?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`E'lonlar topilmadi.`}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-left border-collapse min-w-[800px] text-xs`,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`bg-[#F5F7FA] border-b border-[#E4E7EC] text-[#0B2D5C] font-bold uppercase tracking-wider`,children:[(0,H.jsx)(`th`,{className:`p-4 w-12 text-center`,children:`Pin`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Sarlavha (UZ)`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Teg`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Holat`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Hujjat`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Chop etilgan sana`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Tugash vaqti`}),(0,H.jsx)(`th`,{className:`p-4 text-right`,children:`Amallar`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-[#E4E7EC]`,children:n.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-[#F5F7FA]/70 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4 text-center`,children:(0,H.jsx)(`button`,{onClick:()=>v(e.id,e.isPinned),className:`transition-colors ${e.isPinned?`text-[#C59B27]`:`text-gray-300 hover:text-gray-500`}`,title:e.isPinned?`Biriktirishni bekor qilish`:`Biriktirish`,children:(0,H.jsx)(lu,{size:16,className:e.isPinned?`fill-current`:``})})}),(0,H.jsx)(`td`,{className:`p-4 font-bold text-[#0B2D5C] max-w-[200px] truncate`,title:e.title?.uz,children:e.title?.uz}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC]`,children:e.tag})}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md ${e.status===`PUBLISHED`?`bg-emerald-100 text-emerald-800 border border-emerald-300`:e.status===`ARCHIVED`?`bg-rose-100 text-rose-800 border border-rose-300`:`bg-gray-100 text-gray-700 border border-gray-300`}`,children:e.status})}),(0,H.jsx)(`td`,{className:`p-4 text-[#667085]`,children:e.documentUrl?(0,H.jsx)(`a`,{href:X(e.documentUrl),target:`_blank`,rel:`noreferrer`,title:`Hujjatni ko'rish`,className:`hover:text-[#0B2D5C]`,children:(0,H.jsx)(au,{size:16})}):`-`}),(0,H.jsx)(`td`,{className:`p-4 text-[#667085] font-medium`,children:e.publishedAt?new Date(e.publishedAt).toLocaleDateString():`-`}),(0,H.jsx)(`td`,{className:`p-4 text-[#667085] font-medium`,children:e.expiresAt?new Date(e.expiresAt).toLocaleDateString():`-`}),(0,H.jsx)(`td`,{className:`p-4 text-right`,children:(0,H.jsxs)(`div`,{className:`flex items-center justify-end gap-3 text-[#667085]`,children:[(0,H.jsx)(I,{to:`/announcements/${e.slug}`,target:`_blank`,className:`hover:text-[#0B2D5C]`,title:`Saytda ko'rish`,children:(0,H.jsx)(J,{size:18})}),(0,H.jsx)(I,{to:`/admin/announcements/${e.id}/edit`,className:`hover:text-[#164C8C]`,title:`Tahrirlash`,children:(0,H.jsx)(su,{size:18})}),(0,H.jsx)(`button`,{onClick:()=>_(e.id),className:`hover:text-rose-600`,title:`O'chirish`,children:(0,H.jsx)(Eu,{size:18})})]})})]},e.id))})]})})}),i&&i.totalPages>1&&(0,H.jsx)(`div`,{className:`flex justify-center mt-6 gap-2 flex-wrap`,children:Array.from({length:i.totalPages}).map((n,r)=>(0,H.jsx)(`button`,{onClick:()=>{let n=new URLSearchParams(e);n.set(`page`,(r+1).toString()),t(n)},className:`w-8 h-8 rounded-lg text-xs flex items-center justify-center font-semibold ${u===r+1?`bg-[#0B2D5C] text-white shadow-sm`:`bg-white border border-[#
37E4E7EC] hover:bg-[#F5F7FA] text-[#172033]`}`,children:r+1},r))})]})},nv=({initialData:e,onSubmit:t,isSubmitting:n})=>{let r=_n(),[i,a]=(0,S.useState)(`uz`),[o,s]=(0,S.useState)(null),[c,l]=(0,S.useState)(!1),{register:u,handleSubmit:d,formState:{errors:f}}=A_({defaultValues:e?{...e,publishedAt:e.publishedAt?new Date(e.publishedAt).toISOString().slice(0,16):``,expiresAt:e.expiresAt?new Date(e.expiresAt).toISOString().slice(0,16):``,title_uz:e.title?.uz||``,title_en:e.title?.en||``,title_ru:e.title?.ru||``,shortContent_uz:e.shortContent?.uz||``,shortContent_en:e.shortContent?.en||``,shortContent_ru:e.shortContent?.ru||``,content_uz:e.content?.uz||``,content_en:e.content?.en||``,content_ru:e.content?.ru||``,tagLabel_uz:e.tagLabel?.uz||``,tagLabel_en:e.tagLabel?.en||``,tagLabel_ru:e.tagLabel?.ru||``}:{status:`DRAFT`,isPinned:!1}}),p=e=>{let t=e.target.files[0];t&&(s(t),l(!1))},m=async e=>{let n=new FormData,r={uz:e.title_uz,en:e.title_en||e.title_uz,ru:e.title_uz},i={uz:e.shortContent_uz,en:e.shortContent_en||e.shortContent_uz,ru:e.shortContent_uz},a={uz:e.content_uz,en:e.content_en||e.content_uz,ru:e.content_uz},s={uz:e.tagLabel_uz,en:e.tagLabel_en||e.tagLabel_uz,ru:e.tagLabel_uz};n.append(`title`,JSON.stringify(r)),n.append(`shortContent`,JSON.stringify(i)),n.append(`content`,JSON.stringify(a)),n.append(`tagLabel`,JSON.stringify(s)),n.append(`tag`,e.tag),e.slug&&n.append(`slug`,e.slug),n.append(`status`,e.status),n.append(`isPinned`,e.isPinned),e.publishedAt&&n.append(`publishedAt`,new Date(e.publishedAt).toISOString()),e.expiresAt&&n.append(`expiresAt`,new Date(e.expiresAt).toISOString()),c?n.append(`removeDocument`,`true`):o&&n.append(`document`,o),await t(n)},h=e=>(0,H.jsxs)(`div`,{className:`space-y-4 ${i===e?`block`:`hidden`}`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Sarlavha (`,e.toUpperCase(),`) `,e===`uz`&&`*`]}),(0,H.jsx)(`input`,{...u(`title_${e}`,e===`uz`?{required:`Title is required`}:{}),className:`input-academic`}),f[`title_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:f[`title_${e}`].message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Teg Yorlig'i (`,e.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{...u(`tagLabel_${e}`),className:`input-academic`,placeholder:`Masalan: Qabul`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Qisqa mazmun (`,e.toUpperCase(),`) `,e===`uz`&&`*`]}),(0,H.jsx)(`textarea`,{...u(`shortContent_${e}`,e===`uz`?{required:`Short content is required`}:{}),className:`input-academic h-24`}),f[`shortContent_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:f[`shortContent_${e}`].message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`To'liq matn (`,e.toUpperCase(),`) `,e===`uz`&&`*`]}),(0,H.jsx)(`textarea`,{...u(`content_${e}`,e===`uz`?{required:`Content is required`}:{}),className:`input-academic h-64 whitespace-pre-wrap`,placeholder:`Bu yerga matnni kiriting...`}),f[`content_${e}`]&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:f[`content_${e}`].message})]})]});return(0,H.jsxs)(`form`,{onSubmit:d(m),className:`space-y-8 max-w-4xl text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`h2`,{className:`text-base font-bold text-[#0B2D5C] mb-4 pb-2 border-b border-[#E4E7EC]`,children:`Asosiy ma'lumotlar`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6 mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Teg *`}),(0,H.jsx)(`input`,{...u(`tag`,{required:`Tag is required`}),className:`input-academic`,placeholder:`Masalan: ADMISSION`}),f.tag&&(0,H.jsx)(`p`,{className:`text-red-500 text-xs mt-1`,children:f.tag.message})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Slug (ixtiyoriy)`}),(0,H.jsx)(`input`,{...u(`slug`),className:`input-academic`,placeholder:`Bo'sh qolsa avto-yaratiladi`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Holat`}),(0,H.jsxs)(`select`,{...u(`status`),className:`input-academic`,children:[(0,H.jsx)(`option`,{value:`DRAFT`,children:`Qoralama (Draft)`}),(0,H.jsx)(`option`,{value:`PUBLISHED`,children:`Chop etilgan (Published)`}),(0,H.jsx)(`option`,{value:`ARCHIVED`,children:`Arxivlangan (Archived)`})]})]}),(0,H.jsxs)(`div`,{className:`flex items-center pt-6`,children:[(0,H.jsx)(`input`,{type:`checkbox`,...u(`isPinned`),id:`isPinned`,className:`w-4 h-4 mr-2.5 rounded text-[#0B2D5C]`}),(0,H.jsx)(`label`,{htmlFor:`isPinned`,className:`text-xs font-bold text-[#0B2D5C] cursor-pointer`,children:`E'lonni biriktirish (Pin)`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Chop etish vaqti`}),(0,H.jsx)(`input`,{type:`datetime-local`,...u(`publishedAt`),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Tugash vaqti`}),(0,H.jsx)(`input`,{type:`datetime-local`,...u(`expiresAt`),className:`input-academic`})]})]}),(0,H.jsxs)(`div`,{className:`mb-4`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Ilova Hujjat (Ixtiyoriy)`}),e?.documentUrl&&!c&&(0,H.jsxs)(`div`,{className:`flex items-center gap-4 mb-4 p-4 bg-[#F5F7FA] border border-[#
37E4E7EC] rounded-xl text-xs`,children:[(0,H.jsxs)(`span`,{className:`font-semibold text-[#0B2D5C] truncate flex-1`,children:[`Joriy hujjat: `,e.documentUrl.split(`/`).pop()]}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>l(!0),className:`text-xs bg-rose-100 text-rose-700 px-3 py-1 rounded-md font-bold hover:bg-rose-200`,children:`O'chirish`})]}),(!e?.documentUrl||c)&&(0,H.jsx)(`input`,{type:`file`,accept:`.pdf,.doc,.docx,.xls,.xlsx`,onChange:p,className:`text-xs text-[#667085] w-full file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),(0,H.jsx)(`p`,{className:`text-[11px] text-[#667085] mt-2`,children:`Ruxsat etilgan formatlar: PDF, DOC, DOCX, XLS, XLSX. Maksimal hajm: 10MB.`})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsx)(`div`,{className:`flex border-b border-[#E4E7EC] mb-6`,children:[`uz`,`en`].map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>a(e),className:`px-4 py-2 text-xs font-bold transition-colors ${i===e?`text-[#0B2D5C] border-b-2 border-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,children:e.toUpperCase()},e))}),h(`uz`),h(`en`)]}),(0,H.jsxs)(`div`,{className:`flex gap-4`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>r(`/admin/announcements`),className:`px-5 py-2.5 rounded-lg bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#E4E7EC] transition-colors text-xs font-bold`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:n,className:`px-6 py-2.5 rounded-lg bg-[#0B2D5C] text-white font-bold hover:bg-[#164C8C] transition-colors disabled:opacity-50 text-xs shadow-sm`,children:n?`Saqlanmoqda...`:`Saqlash`})]})]})},rv=()=>{let[e,t]=(0,S.useState)(!1),n=_n();return(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-white mb-6`,children:`Create Announcement`}),(0,H.jsx)(nv,{onSubmit:async e=>{try{t(!0),await Fh.createAnnouncement(e),n(`/admin/announcements`)}catch(e){console.error(`Error creating announcement:`,e),alert(`Failed to create announcement`)}finally{t(!1)}},isSubmitting:e})]})},iv=()=>{let{id:e}=xn(),[t,n]=(0,S.useState)(null),[r,i]=(0,S.useState)(!0),[a,o]=(0,S.useState)(null),[s,c]=(0,S.useState)(!1),l=_n();return(0,S.useEffect)(()=>{(async()=>{try{let t=(await Fh.getAnnouncements({limit:100})).data.items.find(t=>t.id.toString()===e.toString());t?n(t):o(`Announcement not found`)}catch{o(`Failed to load announcement`)}finally{i(!1)}})()},[e]),r?(0,H.jsx)(`div`,{className:`p-6 text-gray-400`,children:`Loading...`}):a?(0,H.jsx)(`div`,{className:`p-6 text-red-500`,children:a}):(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-white mb-6`,children:`Edit Announcement`}),(0,H.jsx)(nv,{onSubmit:async t=>{try{c(!0),await Fh.updateAnnouncement(e,t),l(`/admin/announcements`)}catch(e){console.error(`Error updating announcement:`,e),alert(`Failed to update announcement`)}finally{c(!1)}},initialData:t,isSubmitting:s})]})},av=()=>{let[e,t]=(0,S.useState)([]),[n,r]=(0,S.useState)(!0),[i,a]=(0,S.useState)(``),o=async()=>{try{r(!0);let e=await jp.getFeatures();t(e.data.data)}catch{a(`Ma'lumotlarni yuklashda xatolik yuz berdi`)}finally{r(!1)}};(0,S.useEffect)(()=>{o()},[]);let s=async(e,t)=>{try{let n=new FormData;n.append(`isActive`,!t),await jp.updateFeature(e,n),o()}catch{alert(`Holatni o'zgartirishda xatolik yuz berdi`)}},c=async e=>{if(window.confirm(`Haqiqatan ham ushbu ma'lumotni o'chirmoqchimisiz?`))try{await jp.deleteFeature(e),o()}catch{alert(`O'chirishda xatolik yuz berdi`)}};return(0,H.jsxs)(`div`,{className:`text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-center mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Maktab xususiyatlari (Top Bar)`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Yuqori satrdagi nishonlar (badge) va xususiyatlar`})]}),(0,H.jsxs)(I,{to:`/admin/school-features/new`,className:`bg-[#0B2D5C] text-white px-4 py-2.5 rounded-lg text-xs font-bold flex items-center gap-2 hover:bg-[#164C8C] transition-colors shadow-sm`,children:[(0,H.jsx)(du,{size:18}),` Qo'shish`]})]}),i&&(0,H.jsx)(`div`,{className:`p-4 bg-red-50 text-red-600 rounded-xl border border-red-200 text-xs font-semibold mb-6`,children:i}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#
37E4E7EC] overflow-hidden`,children:n?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Yuklanmoqda...`}):e.length===0?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Hech narsa topilmadi.`}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-left border-collapse text-xs`,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`bg-[#F5F7FA] border-b border-[#E4E7EC] text-[#0B2D5C] font-bold uppercase tracking-wider`,children:[(0,H.jsx)(`th`,{className:`p-4`,children:`Rasm (Badge)`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Holat`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Tartib`}),(0,H.jsx)(`th`,{className:`p-4 text-right`,children:`Amallar`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-[#E4E7EC]`,children:e.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-[#F5F7FA]/70 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`div`,{className:`h-10 bg-[#F5F7FA] border border-[#E4E7EC] rounded-lg p-1.5 inline-block`,children:(0,H.jsx)(`img`,{src:X(e.image),alt:`Badge`,className:`h-full object-contain`})})}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`button`,{onClick:()=>s(e.id,e.isActive),className:`px-2.5 py-1 text-[11px] font-bold rounded-md transition-colors ${e.isActive?`bg-emerald-100 text-emerald-800 border border-emerald-300 hover:bg-emerald-200`:`bg-rose-100 text-rose-800 border border-rose-300 hover:bg-rose-200`}`,children:e.isActive?`Faol`:`Nofaol`})}),(0,H.jsx)(`td`,{className:`p-4 text-[#172033] font-bold`,children:e.displayOrder}),(0,H.jsx)(`td`,{className:`p-4 text-right`,children:(0,H.jsxs)(`div`,{className:`flex items-center justify-end gap-3 text-[#667085]`,children:[(0,H.jsx)(I,{to:`/admin/school-features/${e.id}/edit`,className:`hover:text-[#164C8C]`,title:`Tahrirlash`,children:(0,H.jsx)(su,{size:18})}),(0,H.jsx)(`button`,{onClick:()=>c(e.id),className:`hover:text-rose-600`,title:`O'chirish`,children:(0,H.jsx)(Eu,{size:18})})]})})]},e.id))})]})})})]})},ov=()=>{let e=_n(),[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(``),[a,o]=(0,S.useState)(null),[s,c]=(0,S.useState)({isActive:!0,displayOrder:0,image:null}),l=e=>{let{name:t,value:n,type:r,checked:i,files:a}=e.target;if(r===`file`){let e=a[0];e&&(c(t=>({...t,image:e})),o(URL.createObjectURL(e)))}else c(r===`checkbox`?e=>({...e,[t]:i}):e=>({...e,[t]:n}))};return(0,H.jsxs)(`div`,{className:`max-w-2xl mx-auto space-y-6 text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Yangi xususiyat qo'shish`}),(0,H.jsx)(I,{to:`/admin/school-features`,className:`text-[#164C8C] hover:text-[#0B2D5C] text-xs font-bold`,children:`← Ortga qaytish`})]}),r&&(0,H.jsx)(`div`,{className:`p-4 bg-red-50 text-red-600 rounded-xl border border-red-200 text-xs font-semibold mb-6`,children:r}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC]`,children:(0,H.jsxs)(`form`,{onSubmit:async t=>{if(t.preventDefault(),!s.image){i(`Iltimos, rasm yuklang`);return}n(!0),i(``);try{let t=new FormData;t.append(`isActive`,s.isActive),t.append(`displayOrder`,s.displayOrder),t.append(`image`,s.image),await jp.createFeature(t),e(`/admin/school-features`)}catch(e){i(e.response?.data?.message||`Xatolik yuz berdi`)}finally{n(!1)}},className:`space-y-6 p-6`,children:[(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Rasm (Badge) *`}),(0,H.jsx)(`input`,{type:`file`,name:`image`,accept:`image/*`,onChange:l,className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),a&&(0,H.jsx)(`div`,{className:`mt-4 p-4 bg-[#F5F7FA] border border-[#E4E7EC] rounded-xl inline-block`,children:(0,H.jsx)(`img`,{src:a,alt:`Preview`,className:`h-20 object-contain`})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Tartib raqami`}),(0,H.jsx)(`input`,{type:`number`,name:`displayOrder`,value:s.displayOrder,onChange:l,className:`input-academic`})]}),(0,H.jsx)(`div`,{className:`pt-2`,children:(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{id:`isActive`,name:`isActive`,type:`checkbox`,checked:s.isActive,onChange:l,className:`h-4 w-4 text-[#0B2D5C] rounded border-[#
37E4E7EC]`}),(0,H.jsx)(`label`,{htmlFor:`isActive`,className:`ml-2 block text-xs font-bold text-[#0B2D5C] cursor-pointer`,children:`Faol (Saytda ko'rinadi)`})]})})]}),(0,H.jsxs)(`div`,{className:`pt-6 flex justify-end gap-3 border-t border-[#E4E7EC]`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>e(`/admin/school-features`),className:`bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#E4E7EC] px-5 py-2.5 rounded-lg text-xs font-bold transition-colors`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:t,className:`bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-2.5 rounded-lg text-xs font-bold transition-colors disabled:opacity-50 disabled:cursor-not-allowed shadow-sm`,children:t?`Saqlanmoqda...`:`Saqlash`})]})]})})]})},sv=()=>{let{id:e}=xn(),t=_n(),[n,r]=(0,S.useState)(!1),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(``),[c,l]=(0,S.useState)(null),[u,d]=(0,S.useState)({isActive:!0,displayOrder:0,image:null});(0,S.useEffect)(()=>{(async()=>{try{let t=(await jp.getFeatureById(e)).data.data;d({isActive:t.isActive,displayOrder:t.displayOrder,image:null}),l(X(t.image))}catch{s(`Ma'lumotni yuklashda xatolik yuz berdi`)}finally{a(!1)}})()},[e]);let f=e=>{let{name:t,value:n,type:r,checked:i,files:a}=e.target;if(r===`file`){let e=a[0];e&&(d(t=>({...t,image:e})),l(URL.createObjectURL(e)))}else d(r===`checkbox`?e=>({...e,[t]:i}):e=>({...e,[t]:n}))};return i?(0,H.jsx)(`div`,{className:`text-center py-10 text-[#667085] text-xs`,children:`Yuklanmoqda...`}):(0,H.jsxs)(`div`,{className:`max-w-2xl mx-auto space-y-6 text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Xususiyatni tahrirlash`}),(0,H.jsx)(I,{to:`/admin/school-features`,className:`text-[#164C8C] hover:text-[#0B2D5C] text-xs font-bold`,children:`← Ortga qaytish`})]}),o&&(0,H.jsx)(`div`,{className:`p-4 bg-red-50 text-red-600 rounded-xl border border-red-200 text-xs font-semibold mb-6`,children:o}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC]`,children:(0,H.jsxs)(`form`,{onSubmit:async n=>{n.preventDefault(),r(!0),s(``);try{let n=new FormData;n.append(`isActive`,u.isActive),n.append(`displayOrder`,u.displayOrder),u.image&&n.append(`image`,u.image),await jp.updateFeature(e,n),t(`/admin/school-features`)}catch(e){s(e.response?.data?.message||`Xatolik yuz berdi`)}finally{r(!1)}},className:`space-y-6 p-6`,children:[(0,H.jsxs)(`div`,{className:`space-y-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Rasm (Badge)`}),(0,H.jsx)(`input`,{type:`file`,name:`image`,accept:`image/*`,onChange:f,className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),(0,H.jsx)(`p`,{className:`mt-1 text-[11px] text-[#667085]`,children:`Yangi rasm yuklamasangiz, eskisi qoladi`}),c&&(0,H.jsx)(`div`,{className:`mt-4 p-4 bg-[#F5F7FA] border border-[#E4E7EC] rounded-xl inline-block`,children:(0,H.jsx)(`img`,{src:c,alt:`Preview`,className:`h-20 object-contain`})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Tartib raqami`}),(0,H.jsx)(`input`,{type:`number`,name:`displayOrder`,value:u.displayOrder,onChange:f,className:`input-academic`})]}),(0,H.jsx)(`div`,{className:`pt-2`,children:(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{id:`isActive`,name:`isActive`,type:`checkbox`,checked:u.isActive,onChange:f,className:`h-4 w-4 text-[#0B2D5C] rounded border-[#E4E7EC]`}),(0,H.jsx)(`label`,{htmlFor:`isActive`,className:`ml-2 block text-xs font-bold text-[#0B2D5C] cursor-pointer`,children:`Faol (Saytda ko'rinadi)`})]})})]}),(0,H.jsxs)(`div`,{className:`pt-6 flex justify-end gap-3 border-t border-[#E4E7EC]`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>t(`/admin/school-features`),className:`bg-[#F5F7FA] text-[#0B2D5C] border border-[#
37E4E7EC] hover:bg-[#E4E7EC] px-5 py-2.5 rounded-lg text-xs font-bold transition-colors`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:n,className:`bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-2.5 rounded-lg text-xs font-bold transition-colors disabled:opacity-50 disabled:cursor-not-allowed shadow-sm`,children:n?`Saqlanmoqda...`:`Saqlash`})]})]})})]})},cv=()=>{let[e,t]=(0,S.useState)([]),[n,r]=(0,S.useState)(!0),[i,a]=(0,S.useState)(``),o=async()=>{try{r(!0);let e=await Ip.getUsefulLinks();t(e.data.data)}catch{a(`Ma'lumotlarni yuklashda xatolik yuz berdi`)}finally{r(!1)}};(0,S.useEffect)(()=>{o()},[]);let s=async(e,t)=>{try{await Ip.updateUsefulLinkStatus(e,!t),o()}catch{alert(`Holatni o'zgartirishda xatolik yuz berdi`)}},c=async e=>{if(window.confirm(`Haqiqatan ham ushbu ma'lumotni o'chirmoqchimisiz?`))try{await Ip.deleteUsefulLink(e),o()}catch{alert(`O'chirishda xatolik yuz berdi`)}},l=e=>e&&(e.uz||e.en||e.ru)||``;return(0,H.jsxs)(`div`,{className:`text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-center mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Foydali havolalar boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Rasmiy va hamkor resurslarga yo'naltiruvchi havolalar`})]}),(0,H.jsxs)(I,{to:`/admin/useful-links/new`,className:`bg-[#0B2D5C] text-white px-4 py-2.5 rounded-lg text-xs font-bold flex items-center gap-2 hover:bg-[#164C8C] transition-colors shadow-sm`,children:[(0,H.jsx)(du,{size:18}),` Havola qo'shish`]})]}),i&&(0,H.jsx)(`div`,{className:`p-4 bg-red-50 text-red-600 rounded-xl border border-red-200 text-xs font-semibold mb-6`,children:i}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC] overflow-hidden`,children:n?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Yuklanmoqda...`}):e.length===0?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-sm`,children:`Hech narsa topilmadi.`}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-left border-collapse text-xs`,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`bg-[#F5F7FA] border-b border-[#E4E7EC] text-[#0B2D5C] font-bold uppercase tracking-wider`,children:[(0,H.jsx)(`th`,{className:`p-4`,children:`Rasm`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Nomi (UZ)`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Havola URL`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Tartib`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Holati`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Yangilangan`}),(0,H.jsx)(`th`,{className:`p-4 text-right`,children:`Amallar`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-[#E4E7EC]`,children:e.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-[#F5F7FA]/70 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`div`,{className:`h-10 w-10 bg-[#F5F7FA] border border-[#E4E7EC] rounded-lg flex items-center justify-center p-1`,children:(0,H.jsx)(`img`,{src:X(e.image),alt:`Link Logo`,className:`max-h-full max-w-full object-contain`})})}),(0,H.jsx)(`td`,{className:`p-4 text-[#0B2D5C] font-bold`,children:l(e.name)}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`a`,{href:e.link,target:`_blank`,rel:`noopener noreferrer`,className:`text-[#164C8C] font-medium hover:underline`,children:e.link})}),(0,H.jsx)(`td`,{className:`p-4 text-[#667085] font-medium`,children:e.displayOrder}),(0,H.jsx)(`td`,{className:`p-4`,children:(0,H.jsx)(`button`,{onClick:()=>s(e.id,e.isActive),className:`px-2.5 py-1 text-[11px] font-bold rounded-md transition-colors ${e.isActive?`bg-emerald-100 text-emerald-800 border border-emerald-300 hover:bg-emerald-200`:`bg-rose-100 text-rose-800 border border-rose-300 hover:bg-rose-200`}`,children:e.isActive?`Faol`:`Nofaol`})}),(0,H.jsx)(`td`,{className:`p-4 text-[#667085] text-xs`,children:new Date(e.updatedAt).toLocaleString(`ru-RU`,{day:`2-digit`,month:`2-digit`,year:`numeric`,hour:`2-digit`,minute:`2-digit`})}),(0,H.jsx)(`td`,{className:`p-4 text-right`,children:(0,H.jsxs)(`div`,{className:`flex items-center justify-end gap-3 text-[#667085]`,children:[(0,H.jsx)(I,{to:`/admin/useful-links/${e.id}/edit`,className:`hover:text-[#164C8C]`,title:`Tahrirlash`,children:(0,H.jsx)(su,{size:18})}),(0,H.jsx)(`button`,{onClick:()=>c(e.id),className:`hover:text-rose-600`,title:`O'chirish`,children:(0,H.jsx)(Eu,{size:18})})]})})]},e.id))})]})})})]})},lv=()=>{let e=_n(),[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(``),[a,o]=(0,S.useState)(null),[s,c]=(0,S.useState)(`uz`),[l,u]=(0,S.useState)({nameUz:``,nameEn:``,nameRu:``,link:``,isActive:!0,displayOrder:0,image:null}),d=e=>{let{name:t,value:n,type:r,checked:i,files:a}=e.target;if(r===`file`){let e=a[0];e&&(u(t=>({...t,image:e})),o(URL.createObjectURL(e)))}else u(r===`checkbox`?e=>({...e,[t]:i}):e=>({...e,[t]:n}))};
37return(0,H.jsxs)(`div`,{className:`max-w-4xl mx-auto space-y-6 text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Yangi havola qo'shish`}),(0,H.jsx)(I,{to:`/admin/useful-links`,className:`text-[#164C8C] hover:text-[#0B2D5C] text-xs font-bold`,children:`← Ortga qaytish`})]}),r&&(0,H.jsx)(`div`,{className:`p-4 bg-red-50 text-red-600 rounded-xl border border-red-200 text-xs font-semibold mb-6`,children:r}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC]`,children:(0,H.jsxs)(`form`,{onSubmit:async t=>{if(t.preventDefault(),!l.image){i(`Iltimos, rasm yuklang`);return}if(!l.nameUz||!l.link){i(`Barcha majburiy maydonlarni to'ldiring`);return}n(!0),i(``);try{let t=new FormData;t.append(`isActive`,l.isActive),t.append(`displayOrder`,l.displayOrder),t.append(`link`,l.link),t.append(`image`,l.image);let n={uz:l.nameUz,en:l.nameEn,ru:l.nameRu};t.append(`name`,JSON.stringify(n)),await Ip.createUsefulLink(t),e(`/admin/useful-links`)}catch(e){i(e.response?.data?.message||`Xatolik yuz berdi`)}finally{n(!1)}},className:`space-y-6 p-6`,children:[(0,H.jsx)(`div`,{className:`border-b border-[#E4E7EC]`,children:(0,H.jsx)(`nav`,{className:`flex space-x-4`,children:[{id:`uz`,label:`O'zbekcha (Majburiy)`},{id:`ru`,label:`Русский`},{id:`en`,label:`English`}].map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>c(e.id),className:`py-2 px-1 border-b-2 font-bold text-xs transition-colors ${s===e.id?`border-[#0B2D5C] text-[#0B2D5C]`:`border-transparent text-[#667085] hover:text-[#0B2D5C]`}`,children:e.label},e.id))})}),(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{className:s===`uz`?`block`:`hidden`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Nomi (UZ) *`}),(0,H.jsx)(`input`,{type:`text`,name:`nameUz`,value:l.nameUz,onChange:d,required:s===`uz`,className:`input-academic`,placeholder:`O'zbekiston Respublikasi Hukumat portali`})]}),(0,H.jsxs)(`div`,{className:s===`ru`?`block`:`hidden`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Nomi (RU)`}),(0,H.jsx)(`input`,{type:`text`,name:`nameRu`,value:l.nameRu,onChange:d,className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:s===`en`?`block`:`hidden`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Nomi (EN)`}),(0,H.jsx)(`input`,{type:`text`,name:`nameEn`,value:l.nameEn,onChange:d,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`URL Havola *`}),(0,H.jsx)(`input`,{type:`url`,name:`link`,value:l.link,onChange:d,required:!0,className:`input-academic`,placeholder:`https://gov.uz`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Rasm *`}),(0,H.jsx)(`input`,{type:`file`,name:`image`,accept:`image/*`,onChange:d,className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),a&&(0,H.jsx)(`div`,{className:`mt-4 p-4 bg-[#F5F7FA] border border-[#E4E7EC] rounded-xl inline-block`,children:(0,H.jsx)(`img`,{src:a,alt:`Preview`,className:`h-20 object-contain`})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Tartib raqami`}),(0,H.jsx)(`input`,{type:`number`,name:`displayOrder`,value:l.displayOrder,onChange:d,className:`input-academic`})]}),(0,H.jsx)(`div`,{className:`pt-2`,children:(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{id:`isActive`,name:`isActive`,type:`checkbox`,checked:l.isActive,onChange:d,className:`h-4 w-4 text-[#0B2D5C] rounded border-[#
37E4E7EC]`}),(0,H.jsx)(`label`,{htmlFor:`isActive`,className:`ml-2 block text-xs font-bold text-[#0B2D5C] cursor-pointer`,children:`Faol (Saytda ko'rinadi)`})]})})]}),(0,H.jsxs)(`div`,{className:`pt-6 flex justify-end gap-3 border-t border-[#E4E7EC]`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>e(`/admin/useful-links`),className:`bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#E4E7EC] px-5 py-2.5 rounded-lg text-xs font-bold transition-colors`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:t,className:`bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-2.5 rounded-lg text-xs font-bold transition-colors disabled:opacity-50 disabled:cursor-not-allowed shadow-sm`,children:t?`Saqlanmoqda...`:`Saqlash`})]})]})})]})},uv=()=>{let{id:e}=xn(),t=_n(),[n,r]=(0,S.useState)(!1),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(``),[c,l]=(0,S.useState)(null),[u,d]=(0,S.useState)(null),[f,p]=(0,S.useState)(`uz`),[m,h]=(0,S.useState)({nameUz:``,nameEn:``,nameRu:``,link:``,isActive:!0,displayOrder:0,image:null});(0,S.useEffect)(()=>{(async()=>{try{let t=(await Ip.getUsefulLinkById(e)).data.data;h({nameUz:t.name?.uz||``,nameEn:t.name?.en||``,nameRu:t.name?.ru||``,link:t.link||``,isActive:t.isActive,displayOrder:t.displayOrder||0,image:null}),d(t.image)}catch{s(`Ma'lumotni yuklashda xatolik yuz berdi`)}finally{a(!1)}})()},[e]);let g=e=>{let{name:t,value:n,type:r,checked:i,files:a}=e.target;if(r===`file`){let e=a[0];e&&(h(t=>({...t,image:e})),l(URL.createObjectURL(e)))}else h(r===`checkbox`?e=>({...e,[t]:i}):e=>({...e,[t]:n}))};return i?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-xs`,children:`Yuklanmoqda...`}):(0,H.jsxs)(`div`,{className:`max-w-4xl mx-auto space-y-6 text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between mb-6`,children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Havolani tahrirlash`}),(0,H.jsx)(I,{to:`/admin/useful-links`,className:`text-[#164C8C] hover:text-[#0B2D5C] text-xs font-bold`,children:`← Ortga qaytish`})]}),o&&(0,H.jsx)(`div`,{className:`p-4 bg-red-50 text-red-600 rounded-xl border border-red-200 text-xs font-semibold mb-6`,children:o}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC]`,children:(0,H.jsxs)(`form`,{onSubmit:async n=>{if(n.preventDefault(),!m.nameUz||!m.link){s(`Barcha majburiy maydonlarni to'ldiring`);return}r(!0),s(``);try{let n=new FormData;n.append(`isActive`,m.isActive),n.append(`displayOrder`,m.displayOrder),n.append(`link`,m.link),m.image&&n.append(`image`,m.image);let r={uz:m.nameUz,en:m.nameEn,ru:m.nameRu};n.append(`name`,JSON.stringify(r)),await Ip.updateUsefulLink(e,n),t(`/admin/useful-links`)}catch(e){s(e.response?.data?.message||`Xatolik yuz berdi`)}finally{r(!1)}},className:`space-y-6 p-6`,children:[(0,H.jsx)(`div`,{className:`border-b border-[#E4E7EC]`,children:(0,H.jsx)(`nav`,{className:`flex space-x-4`,children:[{id:`uz`,label:`O'zbekcha (Majburiy)`},{id:`ru`,label:`Русский`},{id:`en`,label:`English`}].map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>p(e.id),className:`py-2 px-1 border-b-2 font-bold text-xs transition-colors ${f===e.id?`border-[#0B2D5C] text-[#0B2D5C]`:`border-transparent text-[#667085] hover:text-[#0B2D5C]`}`,children:e.label},e.id))})}),(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{className:f===`uz`?`block`:`hidden`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Nomi (UZ) *`}),(0,H.jsx)(`input`,{type:`text`,name:`nameUz`,value:m.nameUz,onChange:g,required:f===`uz`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:f===`ru`?`block`:`hidden`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Nomi (RU)`}),(0,H.jsx)(`input`,{type:`text`,name:`nameRu`,value:m.nameRu,onChange:g,className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:f===`en`?`block`:`hidden`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Nomi (EN)`}),(0,H.jsx)(`input`,{type:`text`,name:`nameEn`,value:m.nameEn,onChange:g,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`URL Havola *`}),(0,H.jsx)(`input`,{type:`url`,name:`link`,value:m.link,onChange:g,required:!0,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Rasm (Yangi rasm yuklasangizgina o'zgaradi)`}),(0,H.jsx)(`input`,{type:`file`,name:`image`,accept:`image/*`,onCh
37ange:g,className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),(c||u)&&(0,H.jsx)(`div`,{className:`mt-4 p-4 bg-[#F5F7FA] border border-[#E4E7EC] rounded-xl inline-block`,children:(0,H.jsx)(`img`,{src:c||X(u),alt:`Preview`,className:`h-20 object-contain`})})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Tartib raqami`}),(0,H.jsx)(`input`,{type:`number`,name:`displayOrder`,value:m.displayOrder,onChange:g,className:`input-academic`})]}),(0,H.jsx)(`div`,{className:`pt-2`,children:(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{id:`isActive`,name:`isActive`,type:`checkbox`,checked:m.isActive,onChange:g,className:`h-4 w-4 text-[#0B2D5C] rounded border-[#E4E7EC]`}),(0,H.jsx)(`label`,{htmlFor:`isActive`,className:`ml-2 block text-xs font-bold text-[#0B2D5C] cursor-pointer`,children:`Faol (Saytda ko'rinadi)`})]})})]}),(0,H.jsxs)(`div`,{className:`pt-6 flex justify-end gap-3 border-t border-[#E4E7EC]`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>t(`/admin/useful-links`),className:`bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#E4E7EC] px-5 py-2.5 rounded-lg text-xs font-bold transition-colors`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:n,className:`bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-2.5 rounded-lg text-xs font-bold transition-colors disabled:opacity-50 disabled:cursor-not-allowed shadow-sm`,children:n?`Saqlanmoqda...`:`Saqlash`})]})]})})]})},dv=()=>{let[e,t]=(0,S.useState)(`general`),[n,r]=(0,S.useState)(`uz`),[i,a]=(0,S.useState)(!0),[o,s]=(0,S.useState)(!1),[c,l]=(0,S.useState)(null),[u,d]=(0,S.useState)(null),[f,p]=(0,S.useState)({siteNameTop:{uz:``,en:``,ru:``},siteNameBottom:{uz:``,en:``,ru:``},heroDescription:{uz:``,en:``,ru:``},address:{uz:``,en:``,ru:``},workDate:{uz:``,en:``,ru:``},email:``,mapUrl:``,phoneNumbers:[``],presidentQuoteTitle:{uz:``,en:``,ru:``},presidentQuoteText:{uz:``,en:``,ru:``},presidentName:{uz:``,en:``,ru:``},presidentRole:{uz:``,en:``,ru:``},aboutOverviewTitle:{uz:``,en:``,ru:``},aboutOverviewContent:{uz:``,en:``,ru:``},mainBgVideoUrl:``,aboutHistoryTitle:{uz:``,en:``,ru:``},aboutHistoryText:{uz:``,en:``,ru:``},aboutDirectorQuote:{uz:``,en:``,ru:``},aboutValuesText:{uz:``,en:``,ru:``},aboutAcademicText:{uz:``,en:``,ru:``},aboutInfraText:{uz:``,en:``,ru:``}}),[m,h]=(0,S.useState)({logo:null,mainBgImage:null,mainBgVideo:null,heroImages:[],presidentImage:null,aboutHistoryImage:null}),[g,_]=(0,S.useState)({logo:null,mainBgImage:null,mainBgVideo:null,heroImages:[],presidentImage:null,aboutHistoryImage:null});(0,S.useEffect)(()=>{v()},[]);let v=async()=>{try{a(!0);let e=await Ru.getSettings();if(e.data.data){let t=e.data.data;p({siteNameTop:t.siteNameTop||{uz:``,en:``,ru:``},siteNameBottom:t.siteNameBottom||{uz:``,en:``,ru:``},heroDescription:t.heroDescription||{uz:``,en:``,ru:``},address:t.address||{uz:``,en:``,ru:``},workDate:t.workDate||{uz:``,en:``,ru:``},email:t.email||``,mapUrl:t.mapUrl||``,phoneNumbers:t.phoneNumbers?.length>0?t.phoneNumbers:[``],presidentQuoteTitle:t.presidentQuoteTitle||{uz:``,en:``,ru:``},presidentQuoteText:t.presidentQuoteText||{uz:``,en:``,ru:``},presidentName:t.presidentName||{uz:``,en:``,ru:``},presidentRole:t.presidentRole||{uz:``,en:``,ru:``},aboutOverviewTitle:t.aboutOverviewTitle||{uz:``,en:``,ru:``},aboutOverviewContent:t.aboutOverviewContent||{uz:``,en:``,ru:``},mainBgVideoUrl:t.mainBgVideo||``,aboutHistoryTitle:t.aboutHistoryTitle||{uz:``,en:``,ru:``},aboutHistoryText:t.aboutHistoryText||{uz:``,en:``,ru:``},aboutDirectorQuote:t.aboutDirectorQuote||{uz:``,en:``,ru:``},aboutValuesText:t.aboutValuesText||{uz:``,en:``,ru:``},aboutAcademicText:t.aboutAcademicText||{uz:``,en:``,ru:``},aboutInfraText:t.aboutInfraText||{uz:``,en:``,ru:``}}),_({logo:t.logo?X(t.logo):null,mainBgImage:t.mainBgImage?X(t.mainBgImage):null,mainBgVideo:t.mainBgVideo?X(t.mainBgVideo):null,heroImages:t.heroImages?t.heroImages.map(X):[],presidentImage:t.presidentImage?X(t.presidentImage):`/president.jpg`,aboutHistoryImage:t.aboutHistoryImage?X(t.aboutHistoryImage):null,admissionPdf:t.admissionPdf?X(t.admissionPdf):null,constitutionPdf:t.constitutionPdf?X(t.constitutionPdf):null})}}catch{l(`Failed to fetch site settings`)}finally{a(!1)}},y=(e,t)=>{p(r=>({...r,[e]:{...r[e],[n]:t}}))},b=e=>{let{name:t,value:n}=e.target;p(e=>({...e,[t]:n}))},x=(e,t)=>{let n=[...f.phoneNumbers];n[e]=t,p(e=>({...e,phoneNumbers:n}))},C=()=>{f.phoneNumbers.length<10&&p(e=>({...e,phoneNumbers:[...e.phoneNumbers,``]}))},w=e=>{if(f.phoneNumbers.length>
371){let t=f.phoneNumbers.filter((t,n)=>n!==e);p(e=>({...e,phoneNumbers:t}))}},T=(e,t)=>{if(t===`heroImages`){let n=Array.from(e.target.files).slice(0,5);h(e=>({...e,[t]:n}));let r=n.map(e=>URL.createObjectURL(e));_(e=>({...e,[t]:r}))}else{let n=e.target.files[0];n&&(h(e=>({...e,[t]:n})),_(e=>({...e,[t]:URL.createObjectURL(n)})))}},E=e=>!e||typeof e!=`object`?e:{...e,ru:e.ru||e.uz||``},D=async e=>{e.preventDefault(),s(!0),l(null),d(null);let t=new FormData;t.append(`siteNameTop`,JSON.stringify(E(f.siteNameTop))),t.append(`siteNameBottom`,JSON.stringify(E(f.siteNameBottom))),t.append(`heroDescription`,JSON.stringify(E(f.heroDescription))),t.append(`address`,JSON.stringify(E(f.address))),t.append(`workDate`,JSON.stringify(E(f.workDate))),t.append(`email`,f.email),t.append(`mapUrl`,f.mapUrl),t.append(`phoneNumbers`,JSON.stringify(f.phoneNumbers.filter(e=>e.trim()!==``))),t.append(`presidentQuoteTitle`,JSON.stringify(E(f.presidentQuoteTitle))),t.append(`presidentQuoteText`,JSON.stringify(E(f.presidentQuoteText))),t.append(`presidentName`,JSON.stringify(E(f.presidentName))),t.append(`presidentRole`,JSON.stringify(E(f.presidentRole))),t.append(`aboutOverviewTitle`,JSON.stringify(E(f.aboutOverviewTitle))),t.append(`aboutOverviewContent`,JSON.stringify(E(f.aboutOverviewContent))),t.append(`aboutHistoryTitle`,JSON.stringify(E(f.aboutHistoryTitle))),t.append(`aboutHistoryText`,JSON.stringify(E(f.aboutHistoryText))),t.append(`aboutDirectorQuote`,JSON.stringify(E(f.aboutDirectorQuote))),t.append(`aboutValuesText`,JSON.stringify(E(f.aboutValuesText))),t.append(`aboutAcademicText`,JSON.stringify(E(f.aboutAcademicText))),t.append(`aboutInfraText`,JSON.stringify(E(f.aboutInfraText))),t.append(`mainBgVideoUrl`,f.mainBgVideoUrl),m.logo&&t.append(`logo`,m.logo),m.mainBgImage&&t.append(`mainBgImage`,m.mainBgImage),m.mainBgVideo&&t.append(`mainBgVideo`,m.mainBgVideo),m.presidentImage&&t.append(`presidentImage`,m.presidentImage),m.aboutHistoryImage&&t.append(`aboutHistoryImage`,m.aboutHistoryImage),m.admissionPdf&&t.append(`admissionPdf`,m.admissionPdf),m.heroImages.forEach(e=>{t.append(`heroImages`,e)});try{await Ru.updateSettings(t),d(`Site settings updated successfully`),v()}catch(e){let t=e.response?.data?.errors?e.response.data.errors.map(e=>`${e.path?.join(`.`)}: ${e.message}`).join(`; `):e.response?.data?.message||`Failed to update settings`;l(t)}finally{s(!1)}};return i?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-xs`,children:`Sozlamalar yuklanmoqda...`}):(0,H.jsxs)(`div`,{className:`text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-center mb-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Sayt sozlamalari`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Umumiy ma'lumotlar, logotip va aloqa ma'lumotlari`})]}),(0,H.jsxs)(`button`,{onClick:D,disabled:o,className:`bg-[#0B2D5C] text-white px-5 py-2.5 rounded-lg text-xs font-bold flex items-center gap-2 hover:bg-[#164C8C] disabled:opacity-50 transition-colors shadow-sm`,children:[(0,H.jsx)(hu,{size:18}),` `,o?`Saqlanmoqda...`:`Sozlamalarni saqlash`]})]}),c&&(0,H.jsx)(`div`,{className:`bg-red-50 border border-red-200 text-red-600 p-4 rounded-xl text-xs font-semibold mb-6`,children:c}),u&&(0,H.jsx)(`div`,{className:`bg-emerald-50 border border-emerald-200 text-emerald-800 p-4 rounded-xl text-xs font-semibold mb-6`,children:u}),(0,H.jsxs)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC] overflow-hidden`,children:[(0,H.jsxs)(`div`,{className:`flex border-b border-[#E4E7EC]`,children:[(0,H.jsx)(`button`,{type:`button`,className:`px-6 py-3 font-bold text-xs transition-colors ${e===`general`?`border-b-2 border-[#0B2D5C] text-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,onClick:()=>t(`general`),children:`Umumiy va Rasm/Media`}),(0,H.jsx)(`button`,{type:`button`,className:`px-6 py-3 font-bold text-xs transition-colors ${e===`quote`?`border-b-2 border-[#0B2D5C] text-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,onClick:()=>t(`quote`),children:`Prezident Iqtibosi`}),(0,H.jsx)(`button`,{type:`button`,className:`px-6 py-3 font-bold text-xs transition-colors ${e===`about`?`border-b-2 border-[#0B2D5C] text-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,onClick:()=>t(`about`),children:`Bosh Sahifa (Maktab Haqida)`}),(0,H.jsx)(`button`,{type:`button`,className:`px-6 py-3 font-bold text-xs transition-colors ${e===`aboutPage`?`border-b-2 border-[#0B2D5C] text-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,onClick:()=>t(`aboutPage`),children:`Maktab Haqida Sahifasi`}),(0,H.jsx)(`button`,{type:`button`,className:`px-6 py-3 font-bold text-xs transition-colors ${e===`contact`?`border-b-2 border-[#0B2D5C] text-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,onClick:()=>t(`contact`),children:`Aloqa Ma'lumotlari`}),(0,H.jsx)(`button`,{type:`button`,className:`px-6 py-3 font-bold text-xs transition-colors ${e===`admissionPdf`?`border-b-2 border-[#0B2D5C] text-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,onClick:()=>
37t(`admissionPdf`),children:`Qabul PDF Natijalari`}),(0,H.jsx)(`button`,{type:`button`,className:`px-6 py-3 font-bold text-xs transition-colors ${e===`constitutionPdf`?`border-b-2 border-[#0B2D5C] text-[#0B2D5C]`:`text-[#667085] hover:text-[#0B2D5C]`}`,onClick:()=>t(`constitutionPdf`),children:`Maktab Konstitutsiyasi (PDF)`})]}),(0,H.jsxs)(`div`,{className:`p-6`,children:[(0,H.jsx)(`div`,{className:`flex gap-1.5 mb-6 bg-[#F5F7FA] p-1 rounded-lg w-fit border border-[#E4E7EC]`,children:[`uz`,`en`].map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>r(e),className:`px-3.5 py-1 rounded-md text-xs font-bold transition-colors ${n===e?`bg-[#0B2D5C] text-white`:`text-[#667085] hover:text-[#0B2D5C]`}`,children:e.toUpperCase()},e))}),(0,H.jsxs)(`form`,{onSubmit:D,className:`space-y-6`,children:[e===`general`&&(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Sayt nomi (Yuqori qism - Oq) (`,n.toUpperCase(),`) *`]}),(0,H.jsx)(`input`,{type:`text`,required:!0,value:f.siteNameTop[n],onChange:e=>y(`siteNameTop`,e.target.value),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Sayt nomi (Paski qism - To'q Ko'k) (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{type:`text`,value:f.siteNameBottom[n],onChange:e=>y(`siteNameBottom`,e.target.value),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Hero Tavsifi (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`3`,value:f.heroDescription[n],onChange:e=>y(`heroDescription`,e.target.value),className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Logotip (Logo)`}),(0,H.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-24 h-24 bg-[#F5F7FA] rounded-xl border border-[#E4E7EC] flex items-center justify-center overflow-hidden shrink-0`,children:g.logo?(0,H.jsx)(`img`,{src:g.logo,alt:`Logo Preview`,className:`w-full h-full object-contain p-2`}):(0,H.jsx)(Wl,{size:32,className:`text-[#667085]`})}),(0,H.jsxs)(`div`,{className:`flex-1`,children:[(0,H.jsx)(`input`,{type:`file`,accept:`image/*`,onChange:e=>T(e,`logo`),className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),(0,H.jsx)(`p`,{className:`text-[11px] text-[#667085] mt-2`,children:`Tavsiya etilgan hajm: 200x200px (PNG)`})]})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Asosiy Orqa Fon Rasmi`}),(0,H.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-40 h-24 bg-[#F5F7FA] rounded-xl border border-[#E4E7EC] flex items-center justify-center overflow-hidden shrink-0 relative`,children:g.mainBgImage?(0,H.jsx)(`img`,{src:g.mainBgImage,alt:`Bg Preview`,className:`w-full h-full object-cover`}):(0,H.jsx)(Wl,{size:32,className:`text-[#667085]`})}),(0,H.jsxs)(`div`,{className:`flex-1`,children:[(0,H.jsx)(`input`,{type:`file`,accept:`image/*`,onChange:e=>T(e,`mainBgImage`),className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),(0,H.jsx)(`p`,{className:`text-[11px] text-[#667085] mt-2`,children:`Tavsiya etiladi: 1920x1080px`})]})]})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Asosiy Orqa Fon Videosi (Ovozsiz Autoplay Video)`}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-4 items-center bg-[#F5F7FA] p-4 rounded-xl border border-[#
37E4E7EC]`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[11px] font-semibold text-[#0B2D5C] mb-1`,children:`Video Fayl Yuklash (MP4, WebM - Max 150MB)`}),(0,H.jsx)(`input`,{type:`file`,accept:`video/mp4,video/webm,video/quicktime`,onChange:e=>T(e,`mainBgVideo`),className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-[11px] font-semibold text-[#0B2D5C] mb-1`,children:`yoki YouTube Havolasi / Video URL (Tavsiya etiladi 🚀)`}),(0,H.jsx)(`input`,{type:`text`,name:`mainBgVideoUrl`,value:f.mainBgVideoUrl,onChange:b,placeholder:`https://www.youtube.com/watch?v=... (YouTube havolasi qo'yilsa tez va qotmasdan ochiladi)`,className:`input-academic text-xs`}),(0,H.jsx)(`p`,{className:`text-[10.5px] font-bold text-emerald-700 mt-1`,children:`💡 YouTube havolasini qo'ysangiz video qotmasdan, lahzada va yuqori sifatda ijro etiladi!`})]})]}),g.mainBgVideo&&(0,H.jsx)(`div`,{className:`mt-3 w-full max-w-md h-36 rounded-xl overflow-hidden border border-[#E4E7EC] bg-black`,children:(0,H.jsx)(`video`,{src:g.mainBgVideo,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:`w-full h-full object-cover`})})]})]}),e===`quote`&&(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Maktab Sarlavhasi (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{type:`text`,value:f.presidentQuoteTitle[n],onChange:e=>y(`presidentQuoteTitle`,e.target.value),placeholder:`Masalan: Samarqand shahridagi Prezident maktabi`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Prezident Iqtibos Matni (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`4`,value:f.presidentQuoteText[n],onChange:e=>y(`presidentQuoteText`,e.target.value),className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Muallif Ismi (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{type:`text`,value:f.presidentName[n],onChange:e=>y(`presidentName`,e.target.value),placeholder:`Shavkat Mirziyoyev`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Muallif Lavozimi (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{type:`text`,value:f.presidentRole[n],onChange:e=>y(`presidentRole`,e.target.value),placeholder:`O'zbekiston Respublikasi Prezidenti`,className:`input-academic`})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Prezident Rasmi (Portret)`}),(0,H.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-28 h-36 bg-[#F5F7FA] rounded-xl border border-[#E4E7EC] flex items-center justify-center overflow-hidden shrink-0`,children:g.presidentImage?(0,H.jsx)(`img`,{src:g.presidentImage,alt:`Prezident Preview`,className:`w-full h-full object-cover object-top`}):(0,H.jsx)(Wl,{size:32,className:`text-[#667085]`})}),(0,H.jsxs)(`div`,{className:`flex-1`,children:[(0,H.jsx)(`input`,{type:`file`,accept:`image/*`,onChange:e=>T(e,`presidentImage`),className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),(0,H.jsx)(`p`,{className:`text-[11px] text-[#667085] mt-2`,children:`Tavsiya etiladi: Yuqori sifatli rasmiy portret rasmi (JPG/PNG)`})]})]})]})]}),e===`about`&&(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Maktab Haqida Sarlavha (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{type:`text`,value:f.aboutOverviewTitle[n],onChange:e=>y(`aboutOverviewTitle`,e.target.value),placeholder:`Maktab haqida umumiy ma'lumot`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Maktab Haqida Matn (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`6`,value:f.aboutOverviewContent[n],onChange:e=>y(`aboutOverviewContent`,e.target.value),className:`input-academic`})]})]}),e===`aboutPage`&&(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Tarix va Missiya Sarlavhasi (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`input`,{type:`text`,value:f.aboutHistoryTitle[n],onChange:e=>y(`aboutHistoryTitle`,e.target.value),placeholder:`Masalan: Tarix va Missiya`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Tarix va Missiya Matni (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`5`,value:f.aboutHistoryText[n],onChange:e=>y(`aboutHistoryText`,e.target.value),placeholder:`Samarqand shahridagi Prezident maktabi...`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Tarix va Missiya Rasmi (Sahifa Rasmi)`}),(0,H.jsxs)(`div`,{className:`flex items-center gap-4`,children:[(0,H.jsx)(`div`,{className:`w-40 h-28 bg-[#F5F7FA] rounded-xl border border-[#
37E4E7EC] flex items-center justify-center overflow-hidden shrink-0`,children:g.aboutHistoryImage?(0,H.jsx)(`img`,{src:g.aboutHistoryImage,alt:`About History Preview`,className:`w-full h-full object-cover`}):(0,H.jsx)(Wl,{size:32,className:`text-[#667085]`})}),(0,H.jsxs)(`div`,{className:`flex-1`,children:[(0,H.jsx)(`input`,{type:`file`,accept:`image/*`,onChange:e=>T(e,`aboutHistoryImage`),className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`}),(0,H.jsx)(`p`,{className:`text-[11px] text-[#667085] mt-2`,children:`Tavsiya etiladi: 800x600px rasmiy fotosurat (JPG/PNG)`})]})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Direktor Murojaati Matni (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`3`,value:f.aboutDirectorQuote[n],onChange:e=>y(`aboutDirectorQuote`,e.target.value),placeholder:`Bizning maktab shunchaki bilim o'chog'i emas...`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-3 gap-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Qadriyatlar (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`3`,value:f.aboutValuesText[n],onChange:e=>y(`aboutValuesText`,e.target.value),placeholder:`Halollik, mas'uliyat...`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Akademik Yondashuv (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`3`,value:f.aboutAcademicText[n],onChange:e=>y(`aboutAcademicText`,e.target.value),placeholder:`STEAM fanlariga chuqurlashtirilgan yondashuv...`,className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Infratuzilma (`,n.toUpperCase(),`)`]}),(0,H.jsx)(`textarea`,{rows:`3`,value:f.aboutInfraText[n],onChange:e=>y(`aboutInfraText`,e.target.value),placeholder:`Zamonaviy laboratoriyalar, kutubxona...`,className:`input-academic`})]})]})]}),e===`contact`&&(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Manzil (`,n.toUpperCase(),`) *`]}),(0,H.jsx)(`input`,{type:`text`,required:!0,value:f.address[n],onChange:e=>y(`address`,e.target.value),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:[`Ish vaqti (`,n.toUpperCase(),`) *`]}),(0,H.jsx)(`input`,{type:`text`,required:!0,value:f.workDate[n],onChange:e=>y(`workDate`,e.target.value),className:`input-academic`,placeholder:`Masalan: Dushanba - Juma, 08:30 - 17:30`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-6`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Telefon raqamlar *`}),f.phoneNumbers.map((e,t)=>(0,H.jsxs)(`div`,{className:`flex gap-2 mb-2`,children:[(0,H.jsx)(`input`,{type:`text`,required:!0,value:e,onChange:e=>x(t,e.target.value),placeholder:`+998 XX XXX XX XX`,className:`input-academic flex-1`}),f.phoneNumbers.length>1&&(0,H.jsx)(`button`,{type:`button`,onClick:()=>w(t),className:`bg-rose-50 text-rose-600 p-2 rounded-lg hover:bg-rose-100 border border-rose-200`,children:(0,H.jsx)(Eu,{size:18})})]},t)),f.phoneNumbers.length<10&&(0,H.jsxs)(`button`,{type:`button`,onClick:C,className:`text-[#164C8C] text-xs font-bold flex items-center gap-1 hover:underline mt-2`,children:[(0,H.jsx)(du,{size:16}),` Telefon raqam qo'shish`]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Email *`}),(0,H.jsx)(`input`,{type:`email`,name:`email`,required:!0,value:f.email,onChange:b,className:`input-academic`})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Google Xarita Iframe URL`}),(0,H.jsx)(`textarea`,{name:`mapUrl`,rows:`3`,value:f.mapUrl,onChange:b,placeholder:`https://www.google.com/maps/embed?...`,className:`input-academic font-mono text-xs`}),f.mapUrl&&(0,H.jsx)(`div`,{className:`mt-4 aspect-[21/9] rounded-xl overflow-hidden border border-[#
37E4E7EC]`,children:(0,H.jsx)(`iframe`,{src:f.mapUrl,width:`100%`,height:`100%`,style:{border:0},allowFullScreen:``,loading:`lazy`,referrerPolicy:`no-referrer-when-downgrade`})})]})]}),e===`admissionPdf`&&(0,H.jsx)(`div`,{className:`space-y-6`,children:(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-sm font-bold text-[#0B2D5C] mb-1`,children:`Imtihon Natijalari PDF Hujjati`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mb-4`,children:`Qabul natijalari sahifasida o'quvchilar va ota-onalarga ko'rinadigan rasmiy PDF hujjatini yuklang.`}),(0,H.jsxs)(`div`,{className:`bg-[#F5F7FA] p-6 rounded-2xl border border-[#E4E7EC] space-y-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Yangi PDF Fayl Yuklash (Max 100MB)`}),(0,H.jsx)(`input`,{type:`file`,accept:`application/pdf`,onChange:e=>T(e,`admissionPdf`),className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 px-4 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`})]}),g.admissionPdf&&(0,H.jsxs)(`div`,{className:`pt-2 flex items-center gap-3`,children:[(0,H.jsx)(`div`,{className:`p-3 bg-red-50 text-red-600 rounded-xl font-bold text-xs flex items-center gap-2 border border-red-200`,children:(0,H.jsx)(`span`,{children:`PDF Fayl yuklangan va faol`})}),(0,H.jsx)(`a`,{href:g.admissionPdf,target:`_blank`,rel:`noreferrer`,className:`text-xs font-bold text-[#0284c7] hover:underline`,children:`PDF Hujjatni ko'rish →`})]})]})]})}),e===`constitutionPdf`&&(0,H.jsx)(`div`,{className:`space-y-6`,children:(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-sm font-bold text-[#0B2D5C] mb-1`,children:`Maktab Konstitutsiyasi (Ustavi) PDF Hujjati`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mb-4`,children:`Rasmiy maktab konstitutsiyasi va ustavi PDF hujjatini ushbu bo'limdan yuklang.`}),(0,H.jsxs)(`div`,{className:`bg-[#F5F7FA] p-6 rounded-2xl border border-[#E4E7EC] space-y-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-2`,children:`Yangi PDF Fayl Yuklash (Max 100MB)`}),(0,H.jsx)(`input`,{type:`file`,accept:`application/pdf`,onChange:e=>T(e,`constitutionPdf`),className:`w-full text-xs text-[#667085] file:mr-4 file:py-2 px-4 file:px-4 file:rounded-lg file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer`})]}),g.constitutionPdf&&(0,H.jsxs)(`div`,{className:`pt-2 flex items-center gap-3`,children:[(0,H.jsx)(`div`,{className:`p-3 bg-emerald-50 text-emerald-700 rounded-xl font-bold text-xs flex items-center gap-2 border border-emerald-200`,children:(0,H.jsx)(`span`,{children:`Maktab Konstitutsiyasi PDF fayli faol`})}),(0,H.jsx)(`a`,{href:g.constitutionPdf,target:`_blank`,rel:`noreferrer`,className:`text-xs font-bold text-[#0284c7] hover:underline`,children:`PDF Hujjatni ko'rish →`})]})]})]})})]})]})]})]})},fv={getResults:e=>V.get(`/academic-results`,{params:e}),createResult:e=>V.post(`/academic-results`,e),updateResult:(e,t)=>V.put(`/academic-results/${e}`,t),deleteResult:e=>V.delete(`/academic-results/${e}`)},pv=()=>{let{t:e}=W(),[t,n]=Rr(),[r,i]=(0,S.useState)([]),[a,o]=(0,S.useState)(null),[s,c]=(0,S.useState)(!0),l=(t.get(`category`)||`ALL`).toUpperCase();(0,S.useEffect)(()=>{Ru.getSettings().then(e=>o(e.data?.data)).catch(e=>console.error(e))},[]);let u=a?.showAcademicResults!==!1;(0,S.useEffect)(()=>{c(!0),fv.getResults({category:l}).then(e=>{i(e.data?.data?.items||[]),c(!1)}).catch(e=>{console.error(e),c(!1)})},[l]);let d=e=>{n(e===`ALL`?{}:{category:e.toLowerCase()})},f=e=>{switch(e){case`OLYMPIAD`:return(0,H.jsxs)(`span`,{className:`px-3.5 py-1.5 bg-gradient-to-r from-amber-500/15 via-yellow-400/20 to-amber-500/15 text-amber-900 border border-amber-400/50 text-xs font-black rounded-full flex items-center gap-1.5 shadow-2xs`,children:[(0,H.jsx)(ku,{size:14,className:`text-amber-600`}),` Olimpiada`]});case`IELTS`:return(0,H.jsxs)(`span`,{className:`px-3.5 py-1.5 bg-gradient-to-r from-blue-600/10 to-sky-500/15 text-[#0284c7] border border-sky-300/60 text-xs font-black rounded-full flex items-center gap-1.5 shadow-2xs`,children:[(0,H.jsx)(yl,{size:14,className:`text-[#0284c7]`}),` IELTS`]});case`SAT`:return(0,H.jsx)(`span`,{className:`px-3.5 py-1.5 bg-gradient-to-r from-[#0B2D5C] to-[#164C8C] text-white text-xs font-black rounded-full shadow-xs border border-white/20`,children:`📝 SAT`});case`ALEVEL`:return(0,H.jsxs)(`span`,{className:`px-3.5 py-1.5 bg-emerald-50 text-emerald-800 border border-emerald-300 text-xs font-black rounded-full flex items-center gap-1`,children:[(0,H.jsx)(Hl,{size:14,className:`text-emerald-600`}),` A-Level`]});case`ASLEVEL`:return(0,H.jsxs)(`span`,{className:`px-3.5 py-1.5 bg-purple-50 text-purple-800 border border-purple-300 text-xs font-black rounded-full flex items-center gap-1`,children:[(0,H.jsx)(gl,{size:14,className:`text-purple-600`}),` AS-Level`]});default:return(0,H.jsx)(`span`,{className:`px-3 py-1 bg-gray-100 text-gray-800 text-xs font-bold rounded-full`,children:e})}},p=e=>{if(!e)return`PM`;let t=e.trim().split(` `);return t.length>=2?`${t[0][0]}${t[1][0]}`.toUpperCase():e.slice(0,2).toUpperCase()};return(0,H.jsxs)(`div`,{className:`bg-[#F8FAFC] min-h-screen pb-16 text-[#172033]`,children:[(0,H.jsx)(Ku,{title:`O'quvchilar Akademik Zafarlari va Sertifikatlari — Samarqand Prezident Maktabi`,description:`Samarqand shahridagi Prezident maktabi o'quvchilarining xalqaro olimpiada, IELTS 8.5+, SAT, A-Level va AS-Level natijalari.`}),(0,H.jsxs)(`div`,{className:`relative bg-gradient-to-br from-[#051124] via-[#0B2D5C] to-[#041633] text-white overflow-hidden py-16 md:py-24 border-b border-[#C59B27]/30 shadow-xl`,children:[(0,H.jsx)(`div`,{className:`absolute inset-0 bg-radial from-[#C59B27]/15 via-trans
37parent to-transparent pointer-events-none`}),(0,H.jsx)(`div`,{className:`absolute -top-24 -right-24 w-96 h-96 bg-[#C59B27]/10 rounded-full blur-3xl pointer-events-none`}),(0,H.jsxs)(`div`,{className:`container-page relative z-10 space-y-5 text-center max-w-4xl mx-auto px-4`,children:[(0,H.jsxs)(`div`,{className:`inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-[#C59B27]/20 border border-[#C59B27]/40 text-[#D4AF37] text-xs font-black uppercase tracking-wider backdrop-blur-md shadow-md`,children:[(0,H.jsx)(Ll,{size:15,className:`text-amber-400 animate-pulse`}),(0,H.jsx)(`span`,{children:`Prezident Maktabi Faxriy Zali`})]}),(0,H.jsxs)(`h1`,{className:`text-3xl sm:text-5xl lg:text-6xl font-black tracking-tight leading-[1.15] text-white`,children:[`Akademik Zafar va `,(0,H.jsx)(`span`,{className:`bg-gradient-to-r from-amber-200 via-yellow-400 to-amber-500 bg-clip-text text-transparent`,children:`Natijalar`})]}),(0,H.jsx)(`p`,{className:`text-xs sm:text-base text-gray-200 font-medium leading-relaxed max-w-2xl mx-auto opacity-90`,children:`O‘quvchilarimizning Xalqaro Olimpiadalar, IELTS, SAT, A-Level va AS-Level imtihonlarida erishgan eng yuqori natijalari va faxriy sertifikatlari.`})]})]}),(0,H.jsx)(Hp,{}),(0,H.jsx)(`div`,{className:`container-page space-y-10 mt-6 px-4 max-w-6xl mx-auto`,children:u?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`flex flex-wrap justify-center items-center gap-2 sm:gap-3 bg-white p-2.5 sm:p-3.5 rounded-3xl border border-[#E4E7EC] shadow-md max-w-4xl mx-auto`,children:[{key:`ALL`,label:`Barcha Natijalar`,icon:Su},{key:`OLYMPIAD`,label:`Olimpiadalar`,icon:ku},{key:`IELTS`,label:`IELTS`,icon:yl},{key:`SAT`,label:`SAT`,icon:Cu},{key:`ALEVEL`,label:`A-Level`,icon:Hl},{key:`ASLEVEL`,label:`AS-Level`,icon:gl}].map(e=>{let t=e.icon,n=l===e.key;return(0,H.jsxs)(`button`,{onClick:()=>
37d(e.key),className:`px-4 sm:px-6 py-2.5 sm:py-3 rounded-2xl text-xs sm:text-sm font-black transition-all duration-300 flex items-center gap-2 cursor-pointer ${n?`bg-gradient-to-r from-[#0B2D5C] to-[#164C8C] text-white shadow-lg border border-[#C59B27]/40 scale-102`:`bg-[#F8FAFC] text-[#667085] hover:bg-gray-100 hover:text-[#0B2D5C] border border-[#E4E7EC]`}`,children:[(0,H.jsx)(t,{size:16,className:n?`text-amber-400`:`text-gray-400`}),(0,H.jsx)(`span`,{children:e.label})]},e.key)})}),(0,H.jsxs)(`div`,{className:`space-y-6`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 bg-gradient-to-r from-white via-amber-50/30 to-white p-5 sm:px-8 rounded-3xl border border-[#E4E7EC] shadow-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h3`,{className:`text-lg sm:text-xl font-black text-[#0B2D5C] flex items-center gap-2`,children:[(0,H.jsx)($l,{className:`text-amber-500`,size:22}),(0,H.jsx)(`span`,{children:l===`ALL`?`Barcha Sertifikatlar va Yutuqlar`:`${l} Bo'yicha Natijalar`})]}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500 font-medium mt-0.5`,children:`Prezident maktabining munosib o'quvchilari erishgan faxriy natijalar`})]}),(0,H.jsxs)(`div`,{className:`px-4 py-1.5 bg-[#0B2D5C] text-white font-extrabold text-xs rounded-full shadow-xs flex items-center gap-1.5 shrink-0`,children:[(0,H.jsx)(bu,{size:14,className:`text-emerald-400`}),(0,H.jsxs)(`span`,{children:[`Jami: `,r.length,` ta natija`]})]})]}),s?(0,H.jsx)(`div`,{className:`p-16 text-center text-xs font-bold text-gray-500`,children:`Natijalar yuklanmoqda...`}):r.length===0?(0,H.jsxs)(`div`,{className:`bg-white p-16 rounded-3xl border border-[#E4E7EC] text-center space-y-2`,children:[(0,H.jsx)(ku,{size:40,className:`mx-auto text-amber-400 opacity-60 mb-2`}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:`Ushbu toifa bo'yicha hali natijalar kiritilmagan`}),(0,H.jsx)(`p`,{className:`text-xs text-gray-500`,children:`Boshqa toifalarni tanlab ko'ring.`})]}):(0,H.jsx)(`div`,{className:`grid grid-cols-1 md:grid-cols-2 gap-5 sm:gap-6`,children:r.map(e=>(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] hover:border-[#C59B27]/50 shadow-sm hover:shadow-xl transition-all duration-300 flex flex-col justify-between space-y-5 group hover:-translate-y-1 relative overflow-hidden`,children:[(0,H.jsx)(`div`,{className:`absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-amber-400 via-yellow-500 to-amber-600 opacity-0 group-hover:opacity-100 transition-opacity`}),(0,H.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3.5`,children:[(0,H.jsx)(`div`,{className:`w-12 h-12 rounded-2xl bg-gradient-to-br from-[#0B2D5C] to-[#164C8C] text-[#D4AF37] font-black text-base flex items-center justify-center shrink-0 border border-[#C59B27]/40 shadow-sm group-hover:scale-105 transition-transform`,children:p(e.studentName)}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h4`,{className:`font-black text-base text-[#0B2D5C] group-hover:text-[#0284c7] transition-colors leading-tight`,children:e.studentName}),e.className&&(0,H.jsxs)(`span`,{className:`inline-block mt-1 px-2.5 py-0.5 bg-gray-100 text-gray-600 font-bold text-[11px] rounded-md`,children:[e.className,`-sinf o'quvchisi`]})]})]}),(0,H.jsx)(`div`,{children:f(e.category)})]}),e.image&&(0,H.jsx)(`div`,{className:`w-full h-40 rounded-2xl overflow-hidden bg-gray-100 border border-gray-200 shadow-xs relative`,children:(0,H.jsx)(`img`,{src:X(e.image),alt:e.studentName,className:`w-full h-full object-cover group-hover:scale-105 transition-transform duration-500`,onError:e=>{e.target.style.display=`none`}})}),(0,H.jsxs)(`div`,{className:`pt-4 border-t border-gray-100 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3`,children:[(0,H.jsx)(`span`,{className:`text-xs text-gray-600 font-semibold leading-snug flex-1`,children:e.description||`Rasmiy sertifikat natijasi`}),(0,H.jsx)(`div`,{className:`bg-gradient-to-r from-amber-500 via-yellow-400 to-amber-600 text-slate-950 font-black text-xs sm:text-sm px-4 py-1.5 rounded-2xl shadow-md border border-amber-300 shrink-0 tracking-wide`,children:e.score})]})]},e.id))})]})]}):(0,H.jsxs)(`div`,{className:`max-w-3xl mx-auto bg-white p-8 sm:p-14 roun
37ded-3xl border border-[#E4E7EC] shadow-md text-center space-y-4 my-8`,children:[(0,H.jsx)(`div`,{className:`w-16 h-16 rounded-2xl bg-amber-50 text-amber-600 flex items-center justify-center mx-auto border border-amber-200 shadow-2xs`,children:(0,H.jsx)(Nl,{size:34})}),(0,H.jsx)(`h2`,{className:`text-xl sm:text-2xl font-extrabold text-[#0B2D5C] tracking-tight`,children:`O'quvchilar Akademik Natijalari Hali E'lon Qilinmadi`}),(0,H.jsx)(`p`,{className:`text-xs sm:text-sm text-[#667085] leading-relaxed max-w-lg mx-auto`,children:`Samarqand shahridagi Prezident maktabi o'quvchilarining xalqaro imtihonlari va olimpiada natijalari tez orada ushbu sahifada e'lon qilinadi.`})]})})]})},mv=()=>{let[e,t]=(0,S.useState)([]),[n,r]=(0,S.useState)(`ALL`),[i,a]=(0,S.useState)(``),[o,s]=(0,S.useState)(!0),[c,l]=(0,S.useState)(!0),[u,d]=(0,S.useState)(!1),[f,p]=(0,S.useState)(null),[m,h]=(0,S.useState)({studentName:``,category:`OLYMPIAD`,score:``,className:``,description:``,year:2026}),[g,_]=(0,S.useState)(!1),v=async()=>{try{let e=await Ru.getSettings();e.data?.data&&l(e.data.data.showAcademicResults!==!1)}catch(e){console.error(e)}},y=async()=>{try{s(!0);let e=await fv.getResults({category:n,search:i});t(e.data?.data?.items||[])}catch(e){console.error(e)}finally{s(!1)}};(0,S.useEffect)(()=>{v(),y()},[n]);let b=async e=>{try{_(!0);let t=new FormData;t.append(`showAcademicResults`,e?`true`:`false`),await Ru.updateSettings(t),l(e)}catch{alert(`Holatni o‘zgartirishda xatolik yuz berdi`)}finally{_(!1)}},x=e=>{e.preventDefault(),y()},C=()=>{p(null),h({studentName:``,category:n===`ALL`?`OLYMPIAD`:n,score:``,className:``,description:``,year:2026}),d(!0)},w=e=>{p(e.id),h({studentName:e.studentName||``,category:e.category||`OLYMPIAD`,score:e.score||``,className:e.className||``,description:e.description||``,year:e.year||2026}),d(!0)},T=async e=>{if(window.confirm(`Haqiqatan ham ushbu akademik natijani o'chirmoqchimisiz?`))try{await fv.deleteResult(e),y()}catch{alert(`O'chirishda xatolik yuz berdi`)}},E=async e=>{e.preventDefault();try{_(!0),f?await fv.updateResult(f,m):await fv.createResult(m),d(!1),y()}catch{alert(`Natijani saqlashda xatolik yuz berdi`)}finally{_(!1)}},D=e=>{switch(e){case`OLYMPIAD`:return(0,H.jsxs)(`span`,{className:`px-2.5 py-1 bg-amber-100 text-amber-800 border border-amber-300 text-[11px] font-bold rounded-md flex items-center gap-1`,children:[(0,H.jsx)(ku,{size:12}),` Olimpiada`]});case`IELTS`:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-blue-100 text-blue-800 border border-blue-300 text-[11px] font-bold rounded-md`,children:`IELTS`});case`SAT`:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-[#164C8C] text-white text-[11px] font-bold rounded-md`,children:`SAT`});case`ALEVEL`:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-emerald-100 text-emerald-800 border border-emerald-300 text-[11px] font-bold rounded-md`,children:`A-Level`});case`ASLEVEL`:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-purple-100 text-purple-800 border border-purple-300 text-[11px] font-bold rounded-md`,children:`AS-Level`});default:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 bg-gray-100 text-gray-800 text-[11px] font-bold rounded-md`,children:e})}};return(0,H.jsxs)(`div`,{className:`space-y-6 text-[#172033] max-w-6xl`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row sm:items-center justify-between gap-4 border-b border-[#E4E7EC] pb-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Akademik Natijalar Boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Olimpiadalar, IELTS, SAT, A-Level va AS-Level o'quvchilar natijalari`})]}),(0,H.jsxs)(`button`,{onClick:C,className:`bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-5 py-2.5 rounded-xl font-bold text-xs flex items-center gap-2 transition-all cursor-pointer shadow-sm`,children:[(0,H.jsx)(du,{size:16}),` Yangi Natija Qo'shish`]})]}),(0,H.jsxs)(`div`,{className:`p-5 rounded-3xl border flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 transition-all shadow-sm ${c?`bg-emerald-50/90 border-emerald-200 text-emerald-950`:`bg-amber-50/90 border-amber-200 text-amber-950`}`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3.5`,children:[(0,H.jsx)(`div`,{className:`w-11 h-11 rounded-2xl flex items-center justify-center font-bold text-white shrink-0 shadow-xs ${c?`bg-emerald-600`:`bg-amber-600`}`,children:c?(0,H.jsx)(J,{size:22}):(0,H.jsx)(q,{size:22})}),(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`h3`,{className:`font-extrabold text-sm sm:text-base`,children:[`Saytda Natijalarni Ko'rsatish Holati: `,c?`🟢 E'lon Qilingan (Faol)`:`🔴 Yashirilgan (Nofaol)`]}),(0,H.jsx)(`p`,{className:`text-xs opacity-85 mt-0.5`,children:c?`Tashrif buyuruvchilar barcha o'quvchilar natijalarini (Olimpiada, IELTS, SAT, A/AS-Level) ko'rishlari mumkin.`:`Natijalar saytda yashirilgan. Tashrif buyuruvchilarga 'Akademik natijalar hali e'lon qilinmadi' xabari ko'rsatiladi.`})]})]}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>b(!c),disabled:g,className:`px-5 py-2.5 rounded-xl font-extrabold text-xs shadow-sm transition-all cursor-pointer border shrink-0 ${c?`bg-amber-600 hover:bg-amber-700 text-white border-amber-700`:`bg-emerald-600 hover:bg-emerald-700 text-white border-emerald-700`}`,children:c?`🔴 Natijalarni Saytda Yashirish`:`🟢 Saytda E'lon Qilish (Yoqish)`})]}),(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2 mb-6`,children:[{key:`ALL`,label:`Barchasi`},{key:`OLYMPIAD`,label:`🏆 Olimpiadalar`},{key:`IELTS`,label:`📘 IELTS`},{key:`SAT`,label:`📝 SAT`},{key:`ALEVEL`,label:`🎓 A-Level`},{key:`ASLEVEL`,label:`📚 AS-Level`}].map(e=>(0,H.jsx)(`button`,{onClick:()=>r(e.key),className:`px-4 py-2 rounded-xl text-xs font-bold transition-all cursor-pointer ${n===e.key?`bg-[#0B2D5C] text-white shadow-sm`:`bg-white text-[#667085] border border-[#
37E4E7EC] hover:bg-gray-50`}`,children:e.label},e.key))}),(0,H.jsx)(`div`,{className:`bg-white p-4 rounded-xl shadow-xs border border-[#E4E7EC] mb-6`,children:(0,H.jsxs)(`form`,{onSubmit:x,className:`flex gap-3`,children:[(0,H.jsxs)(`div`,{className:`relative flex-1`,children:[(0,H.jsx)(_u,{className:`absolute left-3.5 top-1/2 -translate-y-1/2 text-gray-400`,size:16}),(0,H.jsx)(`input`,{type:`text`,placeholder:`O'quvchi ismi yoki natijasi bo'yicha qidirish...`,value:i,onChange:e=>a(e.target.value),className:`input-academic pl-10 text-xs`})]}),(0,H.jsx)(`button`,{type:`submit`,className:`bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-5 py-2 rounded-xl text-xs font-bold cursor-pointer`,children:`Qidirish`})]})}),(0,H.jsx)(`div`,{className:`bg-white rounded-2xl border border-[#E4E7EC] shadow-xs overflow-hidden`,children:o?(0,H.jsx)(`div`,{className:`p-8 text-center text-xs text-gray-500`,children:`Yuklanmoqda...`}):e.length===0?(0,H.jsx)(`div`,{className:`p-8 text-center text-xs text-gray-500`,children:`Hech qanday natija topilmadi`}):(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`w-full text-left text-xs`,children:[(0,H.jsx)(`thead`,{className:`bg-[#F8FAFC] text-[#0B2D5C] font-bold border-b border-[#E4E7EC] uppercase tracking-wider`,children:(0,H.jsxs)(`tr`,{children:[(0,H.jsx)(`th`,{className:`p-4`,children:`F.I.SH`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Toifa`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Natija / Ball`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Sinf`}),(0,H.jsx)(`th`,{className:`p-4`,children:`Izoh`}),(0,H.jsx)(`th`,{className:`p-4 text-right`,children:`Amallar`})]})}),(0,H.jsx)(`tbody`,{className:`divide-y divide-gray-100 font-medium`,children:e.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-blue-50/40 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4 font-bold text-[#0B2D5C]`,children:e.studentName}),(0,H.jsx)(`td`,{className:`p-4`,children:D(e.category)}),(0,H.jsx)(`td`,{className:`p-4 font-extrabold text-sm text-[#0284c7]`,children:e.score}),(0,H.jsx)(`td`,{className:`p-4 text-gray-600`,children:e.className||`—`}),(0,H.jsx)(`td`,{className:`p-4 text-gray-500 max-w-xs truncate`,children:e.description||`—`}),(0,H.jsxs)(`td`,{className:`p-4 text-right space-x-2`,children:[(0,H.jsx)(`button`,{onClick:()=>w(e),className:`p-1.5 hover:bg-gray-100 rounded-lg text-blue-600 cursor-pointer`,title:`Tahrirlash`,children:(0,H.jsx)(su,{size:15})}),(0,H.jsx)(`button`,{onClick:()=>T(e.id),className:`p-1.5 hover:bg-red-50 rounded-lg text-red-600 cursor-pointer`,title:`O'chirish`,children:(0,H.jsx)(Eu,{size:15})})]})]},e.id))})]})})}),u&&(0,H.jsx)(`div`,{className:`fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4`,children:(0,H.jsxs)(`div`,{className:`bg-white rounded-3xl max-w-lg w-full p-6 space-y-6 shadow-xl relative animate-in fade-in zoom-in duration-200`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-4`,children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-base text-[#0B2D5C]`,children:f?`Natijani Tahrirlash`:`Yangi Natija Qo'shish`}),(0,H.jsx)(`button`,{onClick:()=>d(!1),className:`text-gray-400 hover:text-gray-600 p-1 rounded-lg`,children:(0,H.jsx)(Iu,{size:18})})]}),(0,H.jsxs)(`form`,{onSubmit:E,className:`space-y-4 text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`O'quvchi F.I.SH *`}),(0,H.jsx)(`input`,{type:`text`,required:!0,placeholder:`Masalan: Sardor Alimov`,value:m.studentName,onChange:e=>h(t=>({...t,studentName:e.target.value})),className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Toifa *`}),(0,H.jsxs)(`select`,{value:m.category,onChange:e=>h(t=>({...t,category:e.target.value})),className:`input-academic`,children:[(0,H.jsx)(`option`,{value:`OLYMPIAD`,children:`🏆 Olimpiada`}),(0,H.jsx)(`option`,{value:`IELTS`,children:`📘 IELTS`}),(0,H.jsx)(`option`,{value:`SAT`,children:`📝 SAT`}),(0,H.jsx)(`option`,{value:`ALEVEL`,children:`🎓 A-Level`}),(0,H.jsx)(`option`,{value:`ASLEVEL`,children:`📚 AS-Level`})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`N
37atija / Ball *`}),(0,H.jsx)(`input`,{type:`text`,required:!0,placeholder:`Masalan: 8.5 / 1540 / 1-o'rin / A*`,value:m.score,onChange:e=>h(t=>({...t,score:e.target.value})),className:`input-academic`})]})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Sinf (Ixtiyoriy)`}),(0,H.jsx)(`input`,{type:`text`,placeholder:`Masalan: 11-A sinf`,value:m.className,onChange:e=>h(t=>({...t,className:e.target.value})),className:`input-academic`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Yil`}),(0,H.jsx)(`input`,{type:`number`,value:m.year,onChange:e=>h(t=>({...t,year:parseInt(e.target.value)||2026})),className:`input-academic`})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block font-bold text-[#0B2D5C] mb-1`,children:`Qisqacha Izoh (Ixtiyoriy)`}),(0,H.jsx)(`textarea`,{rows:`2`,placeholder:`Masalan: Xalqaro kimyo olimpiadasi oltin medali sohibi`,value:m.description,onChange:e=>h(t=>({...t,description:e.target.value})),className:`input-academic`})]}),(0,H.jsxs)(`div`,{className:`flex justify-end gap-3 pt-4 border-t border-gray-100`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>d(!1),className:`px-4 py-2 text-gray-600 hover:bg-gray-100 font-bold rounded-xl`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{type:`submit`,disabled:g,className:`bg-[#0B2D5C] hover:bg-[#164C8C] text-white px-5 py-2 font-bold rounded-xl`,children:g?`Saqlanmoqda...`:`Saqlash`})]})]})]})})]})},hv=()=>{let[e,t]=(0,S.useState)(null),[n,r]=(0,S.useState)(!0),[i,a]=(0,S.useState)(!1),[o,s]=(0,S.useState)(null),[c,l]=(0,S.useState)(null),[u,d]=(0,S.useState)(null),f=async()=>{try{r(!0);let e=await Ru.getSettings(),n=e.data?.data||e.data;n&&(t(n),d(n.constitutionPdf?X(n.constitutionPdf):null))}catch(e){console.error(`Failed to load settings in AdminConstitution:`,e)}finally{r(!1)}};(0,S.useEffect)(()=>{f()},[]);let p=e=>{let t=e.target.files[0];t&&(l(t),d(URL.createObjectURL(t)))},m=async e=>{if(e.preventDefault(),!c){alert(`Iltimos, yangi PDF faylini tanlang!`);return}try{a(!0),s(null);let e=new FormData;e.append(`constitutionPdf`,c),await Ru.updateSettings(e),s({type:`success`,text:`Maktab Konstitutsiyasi PDF fayli muvaffaqiyatli saqlandi va saytda e’lon qilindi!`}),l(null),f()}catch(e){console.error(`PDF Save Error:`,e);let t=e.response?.data?.errors?e.response.data.errors.map(e=>`${e.path?.join(`.`)}: ${e.message}`).join(`; `):e.response?.data?.message||`Faylni saqlashda xatolik yuz berdi`;s({type:`error`,text:t})}finally{a(!1)}},h=u||`/docs/maktab_konstitutsiyasi.pdf`;return n?(0,H.jsx)(`div`,{className:`p-8 text-center text-[#667085] text-xs`,children:`Sozlamalar yuklanmoqda...`}):(0,H.jsxs)(`div`,{className:`text-[#172033] max-w-6xl space-y-8`,children:[(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 border-b border-[#E4E7EC] pb-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-2xl font-bold text-[#0B2D5C] tracking-tight`,children:`Maktab Konstitutsiyasi (PDF) Boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Maktab konstitutsiyasi va ustavi PDF hujjatini yuklash va rasmiy saytda e'lon qilish`})]}),(0,H.jsxs)(`button`,{onClick:f,className:`bg-gray-100 hover:bg-gray-200 text-[#0B2D5C] px-3.5 py-2 rounded-xl text-xs font-bold flex items-center gap-1.5 transition-colors cursor-pointer border border-[#E4E7EC]`,children:[(0,H.jsx)(mu,{size:14}),` Yangilash`]})]}),o&&(0,H.jsx)(`div`,{className:`p-4 rounded-xl text-xs font-bold ${o.type===`success`?`bg-emerald-50 text-emerald-800 border border-emerald-200`:`bg-rose-50 text-rose-800 border border-rose-200`}`,children:o.text}),(0,H.jsxs)(`div`,{className:`bg-white p-6 sm:p-8 rounded-3xl border border-[#E4E7EC] shadow-md space-y-6`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-gray-100 pb-4`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,H.jsx)(`div`,{className:`w-10 h-10 rounded-xl bg-[#0284c7] text-white flex items-center justify-center font-bold`,children:(0,H.jsx)(Bl,{size:20})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-extrabold text-sm text-[#0B2D5C]`,children:`Rasmiy Maktab Konstitutsiyasi PDF Fayli`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:`Saytda "Biz haqimizda → Maktab konstitutsiyasi" bo'limida ko'rinadigan hujjat`})]})]}),e?.constitutionPdf?(0,H.jsxs)(`span`,{className:`px-3 py-1 bg-emerald-50 text-emerald-700 border border-emerald-200 text-xs font-bold rounded-lg flex items-center gap-1.5`,children:[(0,H.jsx)(kl,{size:14}),` PDF Faol`]}):(0,H.jsx)(`span`,{className:`px-3 py-1 bg-amber-50 text-amber-700 border border-amber-200 text-xs font-bold rounded-lg`,children:`Sukut bo'yicha hujjat`})]}),(0,H.jsxs)(`form`,{onSubmit:m,className:`space-y-6`,children:[(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider`,children:`PDF Faylini Tanlang (.pdf format - Max 100MB)`}),(0,H.jsx)(`input`,{type:`file`,accept:`application/pdf`,required:!0,onChange:p,className:`w-full text-xs text-[#667085] file:mr-4 file:py-2.5 file:px-4 file:rounded-xl file:border-0 file:text-xs file:font-semibold file:bg-[#0B2D5C] file:text-white hover:file:bg-[#164C8C] file:cursor-pointer border border-[#
37E4E7EC] rounded-xl p-2 bg-[#F5F7FA]`})]}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-4 pt-2`,children:[u&&(0,H.jsxs)(`a`,{href:u,target:`_blank`,rel:`noreferrer`,className:`inline-flex items-center gap-1.5 text-xs font-bold text-[#0284c7] hover:underline`,children:[(0,H.jsx)(K,{size:14}),` Hozirgi PDF Faylni ko'rish`]}),(0,H.jsxs)(`button`,{type:`submit`,disabled:i,className:`bg-[#0284c7] hover:bg-[#0369a1] text-white px-6 py-2.5 rounded-xl font-bold text-xs flex items-center gap-2 shadow-sm transition-all cursor-pointer disabled:opacity-50 ml-auto`,children:[(0,H.jsx)(Au,{size:16}),(0,H.jsx)(`span`,{children:i?`Saqlanmoqda...`:`Saqlash va Saytda E’lon Qilish`})]})]})]})]}),(0,H.jsxs)(`div`,{className:`bg-white p-6 rounded-3xl border border-[#E4E7EC] shadow-md space-y-4`,children:[(0,H.jsx)(`div`,{className:`flex items-center justify-between`,children:(0,H.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,H.jsx)(Bl,{size:20,className:`text-[#0284c7]`}),(0,H.jsx)(`h3`,{className:`font-extrabold text-sm text-[#0B2D5C]`,children:`Saytdagi Jonli Konstitutsiya PDF Ko'rinishi`})]})}),(0,H.jsx)(`div`,{className:`w-full h-[600px] rounded-2xl overflow-hidden border border-gray-200 shadow-inner bg-slate-100`,children:(0,H.jsx)(`object`,{data:`${h}#toolbar=1&navpanes=1`,type:`application/pdf`,className:`w-full h-full border-none`,children:(0,H.jsx)(`iframe`,{src:`${h}#toolbar=1&navpanes=1`,className:`w-full h-full border-none`,title:`Admin Live Constitution PDF Preview`})})})]})]})},gv=async e=>(await V.get(`/users`,{params:e})).data,_v=async e=>(await V.get(`/users/${e}`)).data,vv=async e=>(await V.post(`/users`,e)).data,yv=async(e,t)=>(await V.put(`/users/${e}`,t)).data,bv=async(e,t)=>(await V.patch(`/users/${e}/status`,{isActive:t})).data,xv=async e=>(await V.delete(`/users/${e}`)).data,Sv=()=>{let[e,t]=Rr(),[n,r]=(0,S.useState)([]),[i,a]=(0,S.useState)({}),[o,s]=(0,S.useState)(!0),[c,l]=(0,S.useState)(null),[u,d]=(0,S.useState)(null),[f,p]=(0,S.useState)(null),[m,h]=(0,S.useState)({open:!1,type:null,user:null}),g=parseInt(e.get(`page`)||`1`,10),_=e.get(`search`)||``,v=e.get(`role`)||``,y=e.get(`isActive`)||``,b=e.get(`sort`)||`newest`,{canManageUsers:x}=Hu(),{user:C}=Fs();_n();let w=(n,r)=>{let i=new URLSearchParams(e);r!=null&&r!==``?i.set(n,r):i.delete(n),n!==`page`&&i.set(`page`,`1`),t(i)},T=(e,t=`success`)=>{d({message:e,type:t}),setTimeout(()=>d(null),4e3)},E=async()=>{s(!0),l(null);try{let e={page:g,limit:15,sort:b};_&&(e.search=_),v&&(e.role=v),y!==``&&(e.isActive=y);let t=await gv(e);r(t.data.items),a(t.data.pagination)}catch(e){l(e.response?.data?.message||`Foydalanuvchilarni yuklashda xatolik yuz berdi`)}finally{s(!1)}};(0,S.useEffect)(()=>{E()},[e]);let D=async e=>{if(x)try{await bv(e.id,!e.isActive),T(`Foydalanuvchi holati ${e.isActive?`nofaollashtirildi`:`faollashtirildi`}`),E()}catch(e){T(e.response?.data?.message||`Xatolik yuz berdi`,`error`)}finally{h({open:!1,type:null,user:null})}},O=async e=>{if(x)try{await xv(e.id),T(`Foydalanuvchi muvaffaqiyatli o'chirildi`),E()}catch(e){T(e.response?.data?.message||`O'chirishda xatolik yuz berdi`,`error`)}finally{h({open:!1,type:null,user:null})}},k=e=>{switch(e){case`SUPER_ADMIN`:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md bg-purple-100 text-purple-800 border border-purple-300`,children:`Super Admin`});case`ADMIN`:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md bg-blue-100 text-blue-800 border border-blue-300`,children:`Admin`});default:return(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md bg-amber-100 text-amber-800 border border-amber-300`,children:`Muharrir`})}};return(0,H.jsxs)(`div`,{className:`space-y-6`,children:[u&&(0,H.jsxs)(`div`,{className:`p-4 rounded-xl text-xs font-bold shadow-md flex justify-between items-center transition-all ${u.type===`error`?`bg-rose-50 border border-rose-200 text-rose-800`:`bg-emerald-50 border border-emerald-200 text-emerald-800`}`,children:[(0,H.jsx)(`span`,{children:u.message}),(0,H.jsx)(`button`,{onClick:()=>d(null),className:`font-bold text-sm`,children:`✕`})]}),(0,H.jsxs)(`div`,{className:`flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 border-b border-[#
37E4E7EC] pb-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-xl font-bold text-[#0B2D5C]`,children:`Foydalanuvchilar boshqaruvi`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mt-1`,children:`Tizim administratorlari va muharrirlarni boshqarish`})]}),x&&(0,H.jsx)(I,{to:`/admin/users/new`,className:`w-full sm:w-auto text-center px-4 py-2.5 bg-[#0B2D5C] text-white text-xs font-bold rounded-xl hover:bg-[#164C8C] shadow-sm transition-colors cursor-pointer`,children:`+ Add User (Yangi foydalanuvchi)`})]}),(0,H.jsx)(`div`,{className:`bg-white p-4 rounded-xl border border-[#E4E7EC] shadow-xs space-y-4`,children:(0,H.jsxs)(`div`,{className:`grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3`,children:[(0,H.jsx)(`input`,{type:`text`,placeholder:`Ism, username yoki email...`,value:_,onChange:e=>w(`search`,e.target.value),className:`w-full px-3 py-2 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`}),(0,H.jsxs)(`select`,{value:v,onChange:e=>w(`role`,e.target.value),className:`w-full px-3 py-2 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`,children:[(0,H.jsx)(`option`,{value:``,children:`Barcha rollar`}),(0,H.jsx)(`option`,{value:`SUPER_ADMIN`,children:`Super Admin`}),(0,H.jsx)(`option`,{value:`ADMIN`,children:`Admin`}),(0,H.jsx)(`option`,{value:`EDITOR`,children:`Muharrir`})]}),(0,H.jsxs)(`select`,{value:y,onChange:e=>w(`isActive`,e.target.value),className:`w-full px-3 py-2 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`,children:[(0,H.jsx)(`option`,{value:``,children:`Barcha holatlar`}),(0,H.jsx)(`option`,{value:`true`,children:`Faol (Active)`}),(0,H.jsx)(`option`,{value:`false`,children:`Nofaol (Inactive)`})]}),(0,H.jsxs)(`select`,{value:b,onChange:e=>w(`sort`,e.target.value),className:`w-full px-3 py-2 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`,children:[(0,H.jsx)(`option`,{value:`newest`,children:`Eng yangilari (Newest)`}),(0,H.jsx)(`option`,{value:`oldest`,children:`Eng eskilar (Oldest)`}),(0,H.jsx)(`option`,{value:`name`,children:`Ism bo'yicha (Name)`}),(0,H.jsx)(`option`,{value:`username`,children:`Username bo'yicha`}),(0,H.jsx)(`option`,{value:`updated`,children:`Oxirgi yangilangan`})]})]})}),o?(0,H.jsxs)(`div`,{className:`bg-white rounded-xl border border-[#E4E7EC] p-12 text-center text-xs text-[#667085] font-semibold space-y-2`,children:[(0,H.jsx)(`div`,{className:`animate-spin rounded-full h-8 w-8 border-b-2 border-[#0B2D5C] mx-auto`}),(0,H.jsx)(`p`,{children:`Foydalanuvchilar yuklanmoqda...`})]}):c?(0,H.jsxs)(`div`,{className:`bg-rose-50 rounded-xl border border-rose-200 p-8 text-center space-y-4`,children:[(0,H.jsx)(`p`,{className:`text-xs font-bold text-rose-800`,children:c}),(0,H.jsx)(`button`,{onClick:E,className:`px-4 py-2 bg-rose-600 text-white text-xs font-bold rounded-lg hover:bg-rose-700 transition-colors`,children:`Qayta urinib ko'rish (Retry)`})]}):n.length===0?(0,H.jsxs)(`div`,{className:`bg-white rounded-xl border border-[#E4E7EC] p-12 text-center text-xs text-[#667085] space-y-3`,children:[(0,H.jsx)(`div`,{className:`text-3xl`,children:`👥`}),(0,H.jsx)(`p`,{className:`font-bold text-[#172033]`,children:`Foydalanuvchilar topilmadi`}),(0,H.jsx)(`p`,{children:`Kiritilgan mezonlarga mos keladigan foydalanuvchi ma'lumotlari mavjud emas.`})]}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC] overflow-hidden hidden sm:block`,children:(0,H.jsx)(`div`,{className:`overflow-x-auto`,children:(0,H.jsxs)(`table`,{className:`min-w-full text-left border-collapse text-xs`,children:[(0,H.jsx)(`thead`,{children:(0,H.jsxs)(`tr`,{className:`bg-[#F5F7FA] border-b border-[#E4E7EC] text-[#0B2D5C] font-bold uppercase tracking-wider`,children:[(0,H.jsx)(`th`,{scope:`col`,className:`p-4`,children:`Name (Ism)`}),(0,H.jsx)(`th`,{scope:`col`,className:`p-4`,children:`Username`}),(0,H.jsx)(`th`,{scope:`col`,className:`p-4`,children:`Email`}),(0,H.jsx)(`th`,{scope:`col`,className:`p-4`,children:`Role (Rol)`}),(0,H.jsx)(`th`,{scope:`col`,className:`p-4`,children:`Status (Holat)`}),(0,H.jsx)(`th`,{scope:`col`,className:`p-4`,children:`Created Date`}),(0,H.jsx)(`th`,{scope:`col`,className:`p-4`,children:`Updated Date`}),(0,H.jsx)(`th`,{scope:`col`,className:`p-4 text-right`,children:`Actions`})]})}
37),(0,H.jsx)(`tbody`,{className:`divide-y divide-[#E4E7EC]`,children:n.map(e=>(0,H.jsxs)(`tr`,{className:`hover:bg-[#F5F7FA]/70 transition-colors`,children:[(0,H.jsx)(`td`,{className:`p-4 whitespace-nowrap font-bold text-[#172033]`,children:e.name}),(0,H.jsxs)(`td`,{className:`p-4 whitespace-nowrap text-[#344054] font-mono`,children:[`@`,e.username]}),(0,H.jsx)(`td`,{className:`p-4 whitespace-nowrap text-[#667085]`,children:e.email}),(0,H.jsx)(`td`,{className:`p-4 whitespace-nowrap`,children:k(e.role)}),(0,H.jsx)(`td`,{className:`p-4 whitespace-nowrap`,children:(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md border ${e.isActive?`bg-emerald-100 text-emerald-800 border-emerald-300`:`bg-rose-100 text-rose-800 border-rose-300`}`,children:e.isActive?`Active`:`Inactive`})}),(0,H.jsx)(`td`,{className:`p-4 whitespace-nowrap text-xs text-[#667085]`,children:new Date(e.createdAt).toLocaleDateString(`ru-RU`,{day:`2-digit`,month:`2-digit`,year:`numeric`})}),(0,H.jsx)(`td`,{className:`p-4 whitespace-nowrap text-xs text-[#667085]`,children:new Date(e.updatedAt).toLocaleDateString(`ru-RU`,{day:`2-digit`,month:`2-digit`,year:`numeric`})}),(0,H.jsxs)(`td`,{className:`p-4 whitespace-nowrap text-right space-x-3 text-xs font-bold`,children:[(0,H.jsx)(`button`,{onClick:()=>p(e),className:`text-[#667085] hover:text-[#0B2D5C] hover:underline cursor-pointer`,children:`View`}),x&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(I,{to:`/admin/users/${e.id}/edit`,className:`text-[#164C8C] hover:underline`,children:`Edit`}),C?.id!==e.id&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`button`,{onClick:()=>h({open:!0,type:`toggle`,user:e}),className:`${e.isActive?`text-amber-700 hover:underline`:`text-emerald-700 hover:underline`} cursor-pointer`,children:e.isActive?`Deactivate`:`Activate`}),(0,H.jsx)(`button`,{onClick:()=>h({open:!0,type:`delete`,user:e}),className:`text-rose-600 hover:underline cursor-pointer`,children:`Delete`})]})]})]})]},e.id))})]})})}),(0,H.jsx)(`div`,{className:`block sm:hidden space-y-3`,children:n.map(e=>(0,H.jsxs)(`div`,{className:`bg-white p-4 rounded-xl border border-[#E4E7EC] shadow-xs space-y-3`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-start`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`font-bold text-[#0B2D5C] text-sm`,children:e.name}),(0,H.jsxs)(`p`,{className:`text-xs text-[#667085] font-mono`,children:[`@`,e.username]}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mt-0.5`,children:e.email})]}),k(e.role)]}),(0,H.jsxs)(`div`,{className:`flex justify-between items-center pt-2 border-t border-[#E4E7EC] text-xs`,children:[(0,H.jsx)(`span`,{className:`px-2.5 py-1 text-[11px] font-bold rounded-md border ${e.isActive?`bg-emerald-100 text-emerald-800 border-emerald-300`:`bg-rose-100 text-rose-800 border-rose-300`}`,children:e.isActive?`Active`:`Inactive`}),(0,H.jsx)(`span`,{className:`text-[#667085] text-[11px]`,children:new Date(e.createdAt).toLocaleDateString(`ru-RU`)})]}),(0,H.jsxs)(`div`,{className:`pt-2 flex justify-end gap-3 text-xs font-bold border-t border-[#E4E7EC]/60`,children:[(0,H.jsx)(`button`,{onClick:()=>p(e),className:`px-3 py-1.5 bg-[#F5F7FA] text-[#0B2D5C] rounded-lg hover:bg-[#E4E7EC]`,children:`View`}),x&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(I,{to:`/admin/users/${e.id}/edit`,className:`px-3 py-1.5 bg-[#164C8C]/10 text-[#164C8C] rounded-lg hover:bg-[#164C8C]/20`,children:`Edit`}),C?.id!==e.id&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`button`,{onClick:()=>h({open:!0,type:`toggle`,user:e}),className:`px-3 py-1.5 rounded-lg ${e.isActive?`bg-amber-50 text-amber-800`:`bg-emerald-50 text-emerald-800`}`,children:e.isActive?`Deactivate`:`Activate`}),(0,H.jsx)(`button`,{onClick:()=>h({open:!0,type:`delete`,user:e}),className:`px-3 py-1.5 bg-rose-50 text-rose-700 rounded-lg`,children:`Delete`})]})]})]})]},e.id))}),i.totalPages>1&&(0,H.jsxs)(`div`,{className:`flex justify-center items-center mt-6 gap-2`,children:[(0,H.jsx)(`button`,{disabled:!i.hasPreviousPage,onClick:()=>w(`page`,g-1),className:`px-3 py-1.5 text-xs font-bold rounded-lg bg-white border border-[#
37E4E7EC] disabled:opacity-40`,children:`Previous`}),Array.from({length:i.totalPages}).map((e,t)=>(0,H.jsx)(`button`,{onClick:()=>w(`page`,t+1),className:`w-8 h-8 rounded-lg text-xs flex items-center justify-center font-bold ${g===t+1?`bg-[#0B2D5C] text-white shadow-sm`:`bg-white border border-[#E4E7EC] hover:bg-[#F5F7FA] text-[#172033]`}`,children:t+1},t)),(0,H.jsx)(`button`,{disabled:!i.hasNextPage,onClick:()=>w(`page`,g+1),className:`px-3 py-1.5 text-xs font-bold rounded-lg bg-white border border-[#E4E7EC] disabled:opacity-40`,children:`Next`})]})]}),f&&(0,H.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4`,children:(0,H.jsxs)(`div`,{className:`bg-white rounded-xl shadow-xl max-w-md w-full p-6 space-y-4`,children:[(0,H.jsxs)(`div`,{className:`flex justify-between items-center border-b border-[#E4E7EC] pb-3`,children:[(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:`Foydalanuvchi tafsilotlari (View User)`}),(0,H.jsx)(`button`,{onClick:()=>p(null),className:`text-[#667085] hover:text-[#172033] text-lg font-bold`,children:`✕`})]}),(0,H.jsxs)(`div`,{className:`space-y-3 text-xs`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[#667085] block font-semibold`,children:`To'liq ism:`}),(0,H.jsx)(`span`,{className:`text-[#172033] font-bold text-sm`,children:f.name})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[#667085] block font-semibold`,children:`Username:`}),(0,H.jsxs)(`span`,{className:`text-[#0B2D5C] font-mono font-bold`,children:[`@`,f.username]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[#667085] block font-semibold`,children:`Email:`}),(0,H.jsx)(`span`,{className:`text-[#172033]`,children:f.email})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[#667085] block font-semibold`,children:`Rol:`}),(0,H.jsx)(`span`,{className:`inline-block mt-1 font-bold text-xs`,children:k(f.role)})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[#667085] block font-semibold`,children:`Holat:`}),(0,H.jsx)(`span`,{className:`inline-block mt-1 px-2.5 py-1 text-[11px] font-bold rounded-md border ${f.isActive?`bg-emerald-100 text-emerald-800 border-emerald-300`:`bg-rose-100 text-rose-800 border-rose-300`}`,children:f.isActive?`Active`:`Inactive`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[#667085] block font-semibold`,children:`Yaratilgan sana:`}),(0,H.jsx)(`span`,{className:`text-[#344054]`,children:new Date(f.createdAt).toLocaleString(`ru-RU`)})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`span`,{className:`text-[#667085] block font-semibold`,children:`Yangilangan sana:`}),(0,H.jsx)(`span`,{className:`text-[#344054]`,children:new Date(f.updatedAt).toLocaleString(`ru-RU`)})]})]}),(0,H.jsx)(`div`,{className:`pt-3 border-t border-[#E4E7EC] text-right`,children:(0,H.jsx)(`button`,{onClick:()=>p(null),className:`px-4 py-2 bg-[#0B2D5C] text-white text-xs font-bold rounded-lg hover:bg-[#164C8C]`,children:`Yopish`})})]})}),m.open&&(0,H.jsx)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4`,children:(0,H.jsxs)(`div`,{className:`bg-white rounded-xl shadow-xl max-w-sm w-full p-6 space-y-4 text-center`,children:[(0,H.jsx)(`div`,{className:`text-3xl`,children:m.type===`delete`?`⚠️`:`🔄`}),(0,H.jsx)(`h3`,{className:`text-base font-bold text-[#0B2D5C]`,children:m.type===`delete`?`Foydalanuvchini o'chirish`:`Foydalanuvchi holatini o'zgartirish`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085]`,children:m.type===`delete`?`Haqiqatan ham "${m.user?.name}" foydalanuvchisini o'chirmoqchimisiz? Bu amalni ortga qaytarib bo'lmaydi.`:`Haqiqatan ham "${m.user?.name}" foydalanuvchisini ${m.user?.isActive?`nofaollashtirmoqchimisiz`:`faollashtirmoqchimisiz`}?`}),(0,H.jsxs)(`div`,{className:`flex justify-end gap-3 pt-2`,children:[(0,H.jsx)(`button`,{onClick:()=>h({open:!1,type:null,user:null}),className:`px-4 py-2 bg-gray-100 text-gray-700 text-xs font-bold rounded-lg hover:bg-gray-200`,children:`Bekor qilish`}),(0,H.jsx)(`button`,{onClick:()=>m.type===`delete`?O(m.user):D(m.user),className:`px-4 py-2 text-white text-xs font-bold rounded-lg ${m.type===`delete`?`bg-rose-600 hover:bg-rose-700`:`bg-[#0B2D5C] hover:bg-[#164C8C]`}`,children:`Tasdiqlash`})]})]})})]})},Cv=()=>{let e=_n(),[t,n]=(0,S.useState)(!1),[r,i]=(0,S.useState)(null),[a,o]=(0,S.useState)(!1),[s,c]=(0,S.useState)(!1),[l,u]=(0,S.useState)(!1),[d,f]=(0,S.useState)({name:``,username:``,email:``,password:``,confirmPassword:``,role:`EDITOR`,isActive:!0}),p=e=>{let{name:t,value:n,type:r,checked:i}=e.target;f(e=>({...e,[t]:r===`checkbox`?i:n}))},{checks:m,score:h}=(e=>{let t={length:e.length>=8,upper:/[A-Z]/.test(e),lower:/[a-z]/.test(e),number:/[0-9]/.test(e)};
37return{checks:t,score:Object.values(t).filter(Boolean).length}})(d.password);return(0,H.jsxs)(`div`,{className:`max-w-2xl mx-auto space-y-6 text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-[#E4E7EC] pb-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-xl font-bold text-[#0B2D5C]`,children:`Add User (Yangi foydalanuvchi yaratish)`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mt-0.5`,children:`Tizimga yangi admin yoki muharrir hisobini qo'shish`})]}),(0,H.jsx)(I,{to:`/admin/users`,className:`text-[#164C8C] hover:text-[#0B2D5C] text-xs font-bold`,children:`← Ortga qaytish`})]}),a&&(0,H.jsx)(`div`,{className:`p-4 bg-emerald-50 text-emerald-800 rounded-xl border border-emerald-200 text-xs font-bold`,children:`✓ Foydalanuvchi muvaffaqiyatli yaratildi! Ro'yxatga yo'naltirilmoqda...`}),r&&(0,H.jsxs)(`div`,{className:`p-4 bg-rose-50 text-rose-800 rounded-xl border border-rose-200 text-xs font-bold`,children:[`✕ `,r]}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC]`,children:(0,H.jsxs)(`form`,{onSubmit:async t=>{if(t.preventDefault(),i(null),!d.name.trim()||!d.username.trim()||!d.email.trim()||!d.password){i(`Barcha majburiy maydonlarni to'ldiring`);return}if(d.password!==d.confirmPassword){i(`Kiritilgan parollar bir-biriga mos kelmadi!`);return}if(h<4){i(`Parol barcha xavfsizlik mezonlariga javob berishi kerak (kamida 8 belgi, 1 ta katta harf, 1 ta kichik harf va 1 ta raqam)`);return}n(!0);try{let{confirmPassword:t,...n}=d;await vv(n),o(!0),setTimeout(()=>{e(`/admin/users`)},1500)}catch(e){i(e.response?.data?.message||`Foydalanuvchi yaratishda xatolik yuz berdi`),n(!1)}},className:`space-y-6 p-6`,children:[(0,H.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 sm:grid-cols-2`,children:[(0,H.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Full Name (F.I.SH. To'liq ism) *`}),(0,H.jsx)(`input`,{type:`text`,name:`name`,required:!0,placeholder:`Masalan: Azizbek Aliyev`,value:d.name,onChange:p,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Username (Login) *`}),(0,H.jsx)(`input`,{type:`text`,name:`username`,required:!0,minLength:3,placeholder:`editor_aziz`,value:d.username,onChange:p,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C] font-mono`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Email *`}),(0,H.jsx)(`input`,{type:`email`,name:`email`,required:!0,placeholder:`[email protected]`,value:d.email,onChange:p,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`})]}),(0,H.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Role (Rol) *`}),(0,H.jsxs)(`select`,{name:`role`,value:d.role,onChange:p,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`,children:[(0,H.jsx)(`option`,{value:`SUPER_ADMIN`,children:`SUPER_ADMIN (Barcha tizim huquqlari)`}),(0,H.jsx)(`option`,{value:`ADMIN`,children:`ADMIN (Kontent va sozlalamalar boshqaruvi)`}),(0,H.jsx)(`option`,{value:`EDITOR`,children:`EDITOR (Yangiliklar va e'lonlar muharriri)`})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Password (Parol) *`}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`input`,{type:s?`text`:`password`,name:`password`,required:!0,value:d.password,onChange:p,className:`w-full px-3.5 py-2.5 text-xs border border-[#
37E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C] pr-20`}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>c(!s),className:`absolute inset-y-0 right-0 px-3 flex items-center text-xs font-bold text-[#164C8C] hover:text-[#0B2D5C] cursor-pointer`,children:s?`Yashirish`:`Ko'rish`})]}),d.password&&(0,H.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,H.jsxs)(`div`,{className:`flex gap-1 h-1.5 rounded-full overflow-hidden bg-gray-100`,children:[(0,H.jsx)(`div`,{className:`h-full transition-all ${h>=1?`w-1/4 bg-rose-500`:`w-0`}`}),(0,H.jsx)(`div`,{className:`h-full transition-all ${h>=2?`w-1/4 bg-amber-500`:`w-0`}`}),(0,H.jsx)(`div`,{className:`h-full transition-all ${h>=3?`w-1/4 bg-blue-500`:`w-0`}`}),(0,H.jsx)(`div`,{className:`h-full transition-all ${h>=4?`w-1/4 bg-emerald-500`:`w-0`}`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-2 gap-1 text-[10px]`,children:[(0,H.jsx)(`span`,{className:m.length?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ Kamida 8 belgi`}),(0,H.jsx)(`span`,{className:m.upper?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ 1 ta katta harf`}),(0,H.jsx)(`span`,{className:m.lower?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ 1 ta kichik harf`}),(0,H.jsx)(`span`,{className:m.number?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ 1 ta raqam`})]})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Confirm Password (Parolni tasdiqlash) *`}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`input`,{type:l?`text`:`password`,name:`confirmPassword`,required:!0,value:d.confirmPassword,onChange:p,className:`w-full px-3.5 py-2.5 text-xs border rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C] pr-20 ${d.confirmPassword&&d.confirmPassword!==d.password?`border-rose-400 bg-rose-50/30`:`border-[#E4E7EC]`}`}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>u(!l),className:`absolute inset-y-0 right-0 px-3 flex items-center text-xs font-bold text-[#164C8C] hover:text-[#0B2D5C] cursor-pointer`,children:l?`Yashirish`:`Ko'rish`})]}),d.confirmPassword&&d.confirmPassword!==d.password&&(0,H.jsx)(`p`,{className:`mt-1 text-[11px] text-rose-600 font-bold`,children:`Parollar mos emas`})]}),(0,H.jsx)(`div`,{className:`sm:col-span-2 pt-2`,children:(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{id:`isActive`,name:`isActive`,type:`checkbox`,checked:d.isActive,onChange:p,className:`h-4 w-4 text-[#0B2D5C] rounded border-[#E4E7EC] focus:ring-[#0B2D5C]`}),(0,H.jsx)(`label`,{htmlFor:`isActive`,className:`ml-2 block text-xs font-bold text-[#0B2D5C] cursor-pointer`,children:`Active Status (Foydalanuvchi faol va tizimga kira oladi)`})]})})]}),(0,H.jsxs)(`div`,{className:`pt-6 flex justify-end gap-3 border-t border-[#E4E7EC]`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>e(`/admin/users`),className:`bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#E4E7EC] px-5 py-2.5 rounded-lg text-xs font-bold transition-colors cursor-pointer`,children:`Bekor qilish (Cancel)`}),(0,H.jsx)(`button`,{type:`submit`,disabled:t||a,className:`bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-2.5 rounded-lg text-xs font-bold transition-colors disabled:opacity-50 disabled:cursor-not-allowed shadow-sm cursor-pointer`,children:t?`Yaratilmoqda...`:`Saqlash (Save)`})]})]})})]})},wv=()=>{let{id:e}=xn(),t=_n(),{user:n}=Fs(),[r,i]=(0,S.useState)(!1),[a,o]=(0,S.useState)(!0),[s,c]=(0,S.useState)(null),[l,u]=(0,S.useState)(!1),[d,f]=(0,S.useState)(!1),[p,m]=(0,S.useState)(!1),[h,g]=(0,S.useState)({name:``,username:``,email:``,password:``,confirmPassword:``,role:`EDITOR`,isActive:!0});(0,S.useEffect)(()=>{(async()=>{try{let t=(await _v(e)).data;g({name:t.name,username:t.username,email:t.email,password:``,confirmPassword:``,role:t.role,isActive:t.isActive})}catch{alert(`Foydalanuvchi ma'lumotlarini yuklashda xatolik yuz berdi`),t(`/admin/users`)}finally{o(!1)}})()},[e,t]);let _=e=>{let{name:t,value:n,type:r,checked:i}=e.target;g(e=>({...e,[t]:r===`checkbox`?i:n}))},{checks:v,score:y}=(e=>{if(!e)return{checks:{},score:0};let t={length:e.length>=8,upper:/[A-Z]/.test(e),lower:/[a-z]/.test(e),number:/[0-9]/.test(e)};
37return{checks:t,score:Object.values(t).filter(Boolean).length}})(h.password),b=async r=>{if(r.preventDefault(),c(null),!h.name.trim()||!h.username.trim()||!h.email.trim()){c(`Ism, username va email maydonlarini to'ldiring`);return}if(h.password&&h.password!==h.confirmPassword){c(`Yangi kiritilgan parollar bir-biriga mos kelmadi!`);return}if(h.password&&y<4){c(`Yangi parol barcha xavfsizlik mezonlariga javob berishi kerak (kamida 8 belgi, 1 ta katta harf, 1 ta kichik harf va 1 ta raqam)`);return}if(n?.id===parseInt(e,10)&&!h.isActive){c(`Siz o'z hisobingizni faoliyatsiz holatga o'tkaza olmaysiz!`);return}i(!0);try{let n={name:h.name,username:h.username,email:h.email,role:h.role,isActive:h.isActive};h.password&&(n.password=h.password),await yv(e,n),u(!0),setTimeout(()=>{t(`/admin/users`)},1500)}catch(e){c(e.response?.data?.message||`Foydalanuvchini yangilashda xatolik yuz berdi`),i(!1)}};if(a)return(0,H.jsxs)(`div`,{className:`bg-white rounded-xl border border-[#E4E7EC] p-12 text-center text-xs text-[#667085] space-y-2`,children:[(0,H.jsx)(`div`,{className:`animate-spin rounded-full h-8 w-8 border-b-2 border-[#0B2D5C] mx-auto`}),(0,H.jsx)(`p`,{children:`Foydalanuvchi ma'lumotlari yuklanmoqda...`})]});let x=n?.id===parseInt(e,10);return(0,H.jsxs)(`div`,{className:`max-w-2xl mx-auto space-y-6 text-[#172033]`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-[#E4E7EC] pb-4`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h1`,{className:`text-xl font-bold text-[#0B2D5C]`,children:`Edit User (Foydalanuvchini tahrirlash)`}),(0,H.jsx)(`p`,{className:`text-xs text-[#667085] mt-0.5`,children:`Mavjud foydalanuvchi profil ma'lumotlari va huquqlarini o'zgartirish`})]}),(0,H.jsx)(I,{to:`/admin/users`,className:`text-[#164C8C] hover:text-[#0B2D5C] text-xs font-bold`,children:`← Ortga qaytish`})]}),l&&(0,H.jsx)(`div`,{className:`p-4 bg-emerald-50 text-emerald-800 rounded-xl border border-emerald-200 text-xs font-bold`,children:`✓ Foydalanuvchi muvaffaqiyatli yangilandi! Ro'yxatga yo'naltirilmoqda...`}),s&&(0,H.jsxs)(`div`,{className:`p-4 bg-rose-50 text-rose-800 rounded-xl border border-rose-200 text-xs font-bold`,children:[`✕ `,s]}),(0,H.jsx)(`div`,{className:`bg-white rounded-xl shadow-xs border border-[#E4E7EC]`,children:(0,H.jsxs)(`form`,{onSubmit:b,className:`space-y-6 p-6`,children:[(0,H.jsxs)(`div`,{className:`grid grid-cols-1 gap-6 sm:grid-cols-2`,children:[(0,H.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Full Name (F.I.SH. To'liq ism) *`}),(0,H.jsx)(`input`,{type:`text`,name:`name`,required:!0,value:h.name,onChange:_,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Username (Login) *`}),(0,H.jsx)(`input`,{type:`text`,name:`username`,required:!0,minLength:3,value:h.username,onChange:_,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C] font-mono`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Email *`}),(0,H.jsx)(`input`,{type:`email`,name:`email`,required:!0,value:h.email,onChange:_,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`})]}),(0,H.jsxs)(`div`,{className:`sm:col-span-2`,children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Role (Rol) *`}),(0,H.jsxs)(`select`,{name:`role`,value:h.role,onChange:_,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C]`,children:[(0,H.jsx)(`option`,{value:`SUPER_ADMIN`,children:`SUPER_ADMIN (Barcha tizim huquqlari)`}),(0,H.jsx)(`option`,{value:`ADMIN`,children:`ADMIN (Kontent va sozlalamalar boshqaruvi)`}),(0,H.jsx)(`option`,{value:`EDITOR`,children:`EDITOR (Yangiliklar va e'lonlar muharriri)`})]})]}
37),(0,H.jsxs)(`div`,{className:`sm:col-span-2 border-t border-[#E4E7EC] pt-6 mt-2`,children:[(0,H.jsx)(`h3`,{className:`text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1`,children:`New Password (Yangi parol — ixtiyoriy)`}),(0,H.jsx)(`p`,{className:`text-[11px] text-[#667085]`,children:`Joriy parol o'zgarishsiz qolishi uchun bu maydonlarni bo'sh qoldiring.`})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`New Password (Yangi parol)`}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`input`,{type:d?`text`:`password`,name:`password`,value:h.password,onChange:_,placeholder:`O'zgartirmaslik uchun bo'sh qoldiring`,className:`w-full px-3.5 py-2.5 text-xs border border-[#E4E7EC] rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C] pr-20`}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>f(!d),className:`absolute inset-y-0 right-0 px-3 flex items-center text-xs font-bold text-[#164C8C] hover:text-[#0B2D5C] cursor-pointer`,children:d?`Yashirish`:`Ko'rish`})]}),h.password&&(0,H.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,H.jsxs)(`div`,{className:`flex gap-1 h-1.5 rounded-full overflow-hidden bg-gray-100`,children:[(0,H.jsx)(`div`,{className:`h-full transition-all ${y>=1?`w-1/4 bg-rose-500`:`w-0`}`}),(0,H.jsx)(`div`,{className:`h-full transition-all ${y>=2?`w-1/4 bg-amber-500`:`w-0`}`}),(0,H.jsx)(`div`,{className:`h-full transition-all ${y>=3?`w-1/4 bg-blue-500`:`w-0`}`}),(0,H.jsx)(`div`,{className:`h-full transition-all ${y>=4?`w-1/4 bg-emerald-500`:`w-0`}`})]}),(0,H.jsxs)(`div`,{className:`grid grid-cols-2 gap-1 text-[10px]`,children:[(0,H.jsx)(`span`,{className:v.length?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ Kamida 8 belgi`}),(0,H.jsx)(`span`,{className:v.upper?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ 1 ta katta harf`}),(0,H.jsx)(`span`,{className:v.lower?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ 1 ta kichik harf`}),(0,H.jsx)(`span`,{className:v.number?`text-emerald-700 font-bold`:`text-gray-400`,children:`✓ 1 ta raqam`})]})]})]}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`label`,{className:`block text-xs font-bold text-[#0B2D5C] uppercase tracking-wider mb-1.5`,children:`Confirm New Password (Yangi parolni tasdiqlash)`}),(0,H.jsxs)(`div`,{className:`relative`,children:[(0,H.jsx)(`input`,{type:p?`text`:`password`,name:`confirmPassword`,value:h.confirmPassword,onChange:_,disabled:!h.password,placeholder:`Yangi parolni qayta kiriting`,className:`w-full px-3.5 py-2.5 text-xs border rounded-lg focus:outline-none focus:ring-2 focus:ring-[#0B2D5C] pr-20 disabled:opacity-50 disabled:cursor-not-allowed ${h.confirmPassword&&h.confirmPassword!==h.password?`border-rose-400 bg-rose-50/30`:`border-[#E4E7EC]`}`}),(0,H.jsx)(`button`,{type:`button`,onClick:()=>m(!p),disabled:!h.password,className:`absolute inset-y-0 right-0 px-3 flex items-center text-xs font-bold text-[#164C8C] hover:text-[#0B2D5C] disabled:opacity-50 cursor-pointer`,children:p?`Yashirish`:`Ko'rish`})]}),h.confirmPassword&&h.confirmPassword!==h.password&&(0,H.jsx)(`p`,{className:`mt-1 text-[11px] text-rose-600 font-bold`,children:`Parollar mos kelmadi`})]}),(0,H.jsx)(`div`,{className:`sm:col-span-2 pt-2`,children:(0,H.jsxs)(`div`,{className:`flex items-center`,children:[(0,H.jsx)(`input`,{id:`isActive`,name:`isActive`,type:`checkbox`,checked:h.isActive,onChange:_,disabled:x,className:`h-4 w-4 text-[#0B2D5C] rounded border-[#E4E7EC] focus:ring-[#0B2D5C] disabled:opacity-50`}),(0,H.jsxs)(`label`,{htmlFor:`isActive`,className:`ml-2 block text-xs font-bold text-[#0B2D5C] cursor-pointer`,children:[`Active Status (Foydalanuvchi faol va tizimga kira oladi) `,x&&(0,H.jsx)(`span`,{className:`text-[#667085] font-normal`,children:`(O'z hisobingizni nofaol qila olmaysiz)`})]})]})})]}),(0,H.jsxs)(`div`,{className:`pt-6 flex justify-end gap-3 border-t border-[#E4E7EC]`,children:[(0,H.jsx)(`button`,{type:`button`,onClick:()=>t(`/admin/users`),className:`bg-[#F5F7FA] text-[#0B2D5C] border border-[#E4E7EC] hover:bg-[#
37E4E7EC] px-5 py-2.5 rounded-lg text-xs font-bold transition-colors cursor-pointer`,children:`Bekor qilish (Cancel)`}),(0,H.jsx)(`button`,{type:`submit`,disabled:r||l,className:`bg-[#0B2D5C] text-white hover:bg-[#164C8C] px-6 py-2.5 rounded-lg text-xs font-bold transition-colors disabled:opacity-50 disabled:cursor-not-allowed shadow-sm cursor-pointer`,children:r?`Saqlanmoqda...`:`Saqlash (Save Changes)`})]})]})})]})};function Tv(){return(0,H.jsx)(De,{children:(0,H.jsx)(Ps,{children:(0,H.jsx)(Mr,{children:(0,H.jsxs)(Kn,{children:[(0,H.jsxs)(F,{path:`/`,element:(0,H.jsx)(Vu,{}),children:[(0,H.jsx)(F,{index:!0,element:(0,H.jsx)(zp,{})}),(0,H.jsx)(F,{path:`yangiliklar`,element:(0,H.jsx)(um,{})}),(0,H.jsx)(F,{path:`yangiliklar/:slug`,element:(0,H.jsx)(Ph,{})}),(0,H.jsx)(F,{path:`news`,element:(0,H.jsx)(um,{})}),(0,H.jsx)(F,{path:`news/:slug`,element:(0,H.jsx)(Ph,{})}),(0,H.jsxs)(F,{path:`maktab`,children:[(0,H.jsx)(F,{path:`maktab-haqida`,element:(0,H.jsx)(Up,{})}),(0,H.jsx)(F,{path:`maktab-konstitutsiyasi`,element:(0,H.jsx)(Bh,{})}),(0,H.jsx)(F,{path:`maktab-nizomi`,element:(0,H.jsx)(Wp,{})}),(0,H.jsx)(F,{path:`odob-axloq-qoidalari`,element:(0,H.jsx)(Gp,{})})]}),(0,H.jsxs)(F,{path:`school`,children:[(0,H.jsx)(F,{path:`about`,element:(0,H.jsx)(Up,{})}),(0,H.jsx)(F,{path:`constitution`,element:(0,H.jsx)(Bh,{})}),(0,H.jsx)(F,{path:`charter`,element:(0,H.jsx)(Wp,{})}),(0,H.jsx)(F,{path:`code-of-conduct`,element:(0,H.jsx)(Gp,{})})]}),(0,H.jsx)(F,{path:`about`,element:(0,H.jsx)(Up,{})}),(0,H.jsx)(F,{path:`maktab-haqida`,element:(0,H.jsx)(Up,{})}),(0,H.jsx)(F,{path:`maktab-konstitutsiyasi`,element:(0,H.jsx)(Bh,{})}),(0,H.jsx)(F,{path:`charter`,element:(0,H.jsx)(Wp,{})}),(0,H.jsx)(F,{path:`code-of-conduct`,element:(0,H.jsx)(Gp,{})}),(0,H.jsxs)(F,{path:`tuzilma`,children:[(0,H.jsx)(F,{path:`rahbariyat`,element:(0,H.jsx)(qp,{})}),(0,H.jsx)(F,{path:`maktab-jamoasi`,element:(0,H.jsx)(Xp,{})}),(0,H.jsx)(F,{path:`bosh-ish-orinlari`,element:(0,H.jsx)($p,{})})]}),(0,H.jsxs)(F,{path:`structure`,children:[(0,H.jsx)(F,{path:`leadership`,element:(0,H.jsx)(qp,{})}),(0,H.jsx)(F,{path:`school-team`,element:(0,H.jsx)(Xp,{})}),(0,H.jsx)(F,{path:`vacancies`,element:(0,H.jsx)($p,{})})]}),(0,H.jsx)(F,{path:`rahbariyat`,element:(0,H.jsx)(qp,{})}),(0,H.jsx)(F,{path:`oqituvchilar`,element:(0,H.jsx)(Xp,{})}),(0,H.jsx)(F,{path:`oqituvchilar/:slug`,element:(0,H.jsx)(Qp,{})}),(0,H.jsx)(F,{path:`teachers`,element:(0,H.jsx)(Xp,{})}),(0,H.jsx)(F,{path:`teachers/:slug`,element:(0,H.jsx)(Qp,{})}),(0,H.jsx)(F,{path:`vacancies`,element:(0,H.jsx)($p,{})}),(0,H.jsx)(F,{path:`talim`,element:(0,H.jsx)(em,{})}),(0,H.jsx)(F,{path:`education`,element:(0,H.jsx)(em,{})}),(0,H.jsxs)(F,{path:`qabul`,children:[(0,H.jsx)(F,{index:!0,element:(0,H.jsx)(tm,{})}),(0,H.jsx)(F,{path:`qabul-2026`,element:(0,H.jsx)(tm,{})}),(0,H.jsx)(F,{path:`qabul-natijalari`,element:(0,H.jsx)(nm,{})})]}),(0,H.jsxs)(F,{path:`admissions`,children:[(0,H.jsx)(F,{index:!0,element:(0,H.jsx)(tm,{})}),(0,H.jsx)(F,{path:`admissions-2026`,element:(0,H.jsx)(tm,{})}),(0,H.jsx)(F,{path:`results`,element:(0,H.jsx)(nm,{})})]}),(0,H.jsx)(F,{path:`qabul`,element:(0,H.jsx)(tm,{})}),(0,H.jsx)(F,{path:`admissions`,element:(0,H.jsx)(tm,{})}),(0,H.jsx)(F,{path:`qabul-2026`,element:(0,H.jsx)(tm,{})}),(0,H.jsx)(F,{path:`qabul-natijalari`,element:(0,H.jsx)(nm,{})}),(0,H.jsx)(F,{path:`natijalar`,element:(0,H.jsx)(pv,{})}),(0,H.jsxs)(F,{path:`faxrimiz`,children:[(0,H.jsx)(F,{path:`oqituvchilar`,element:(0,H.jsx)(rm,{})}),(0,H.jsx)(F,{path:`o-quvchilar`,element:(0,H.jsx)(im,{})})]}),(0,H.jsxs)(F,{path:`pride`,children:[(0,H.jsx)(F,{path:`teachers`,element:(0,H.jsx)(rm,{})}),(0,H.jsx)(F,{path:`pupils`,element:(0,H.jsx)(im,{})})]}),(0,H.jsx)(F,{path:`akademik-kalendar`,element:(0,H.jsx)(am,{})}),(0,H.jsx)(F,{path:`academic-calendar`,element:(0,H.jsx)(am,{})}),(0,H.jsxs)(F,{path:`media`,children:[(0,H.jsx)(F,{path:`fotogalereya`,element:(0,H.jsx)(cm,{})}),(0,H.jsx)(F,{path:`videogalereya`,element:(0,H.jsx)(cm,{})})]}),(0,H.jsx)(F,{path:`gallery`,element:(0,H.jsx)(cm,{})}),(0,H.jsx)(F,{path:`elonlar`,element:(0,H.jsx)(Ih,{})}),(0,H.jsx)(F,{path:`elonlar/:id`,element:(0,H.jsx)(Lh,{})}),(0,H.jsx)(F,{path:`announcements`,element:(0,H.jsx)(Ih,{})}),(0,H.jsx)(F,{path:`announcements/:id`,element:(0,H.jsx)(Lh,{})}),(0,H.jsx)(F,{path:`bog-lanish`,element:(0,H.jsx)(Rh,{})}),(0,H.jsx)(F,{path:`contacts`,element:(0,H.jsx)(Rh,{})}),(0,H.jsx)(F,{path:`foydali-havolalar`,element:(0,H.jsx)(zh,{})}),(0,H.jsx)(F,{path:`useful-links`,element:(0,H.jsx)(zh,{})}),(0,H.jsx)(F,{path:`statistika`,element:(0,H.jsx)(qh,{})}),(0,H.jsx)(F,{path:`statistics`,element:(0,H.jsx)(qh,{})}),(0,H.jsx)(F,{path:`search`,element:(0,H.jsx)(Yh,{})}),(0,H.jsx)(F,{path:`*`,element:(0,H.jsx)(Xh,{})})]}),(0,H.jsx)(F,{path:`/register`,element:(0,H.jsx)(Un,{to:`/admin/login`,replace:!0})}),(0,H.jsxs)(F,{path:`/admin`,element:(0,H.jsx)(Is,{children:(0,H.jsx)(Gu,{})}),children:[(0,H.jsx)(F,{index:!0,element:(0,H.jsx)(Un,{to:`/admin/dashboard`,replace:!0})}),(0,H.jsx)(F,{path:`dashboard`,element:(0,H.jsx)(N_,{})}),(0,H.jsx)(F,{path:`yangiliklar`,element:(0,H.jsx)(P_,{})}),(0,H.jsx)(F,{path:`yangiliklar/yangi`,element:(0,H.jsx)(L_,{})}),(0,H.jsx)(F,{path:`yangiliklar/:id/tahrirlash`,element:(0,H.jsx)(R_,{})}),(0,H.jsx)(F,{path:`news`,element:(0,H.jsx)(P_,{})}
37),(0,H.jsx)(F,{path:`news/new`,element:(0,H.jsx)(L_,{})}),(0,H.jsx)(F,{path:`news/:id/edit`,element:(0,H.jsx)(R_,{})}),(0,H.jsx)(F,{path:`rahbariyat`,element:(0,H.jsx)(z_,{})}),(0,H.jsx)(F,{path:`rahbariyat/yangi`,element:(0,H.jsx)(V_,{})}),(0,H.jsx)(F,{path:`rahbariyat/:id/tahrirlash`,element:(0,H.jsx)(H_,{})}),(0,H.jsx)(F,{path:`leaders`,element:(0,H.jsx)(z_,{})}),(0,H.jsx)(F,{path:`leaders/new`,element:(0,H.jsx)(V_,{})}),(0,H.jsx)(F,{path:`leaders/:id/edit`,element:(0,H.jsx)(H_,{})}),(0,H.jsx)(F,{path:`oqituvchilar`,element:(0,H.jsx)(X_,{})}),(0,H.jsx)(F,{path:`oqituvchilar/yangi`,element:(0,H.jsx)($_,{})}),(0,H.jsx)(F,{path:`oqituvchilar/:id/tahrirlash`,element:(0,H.jsx)(ev,{})}),(0,H.jsx)(F,{path:`teachers`,element:(0,H.jsx)(X_,{})}),(0,H.jsx)(F,{path:`teachers/new`,element:(0,H.jsx)($_,{})}),(0,H.jsx)(F,{path:`teachers/:id/edit`,element:(0,H.jsx)(ev,{})}),(0,H.jsx)(F,{path:`qabul-natijalari`,element:(0,H.jsx)(U_,{})}),(0,H.jsx)(F,{path:`qabul-natijalari/yangi`,element:(0,H.jsx)(K_,{})}),(0,H.jsx)(F,{path:`qabul-natijalari/:id/tahrirlash`,element:(0,H.jsx)(q_,{})}),(0,H.jsx)(F,{path:`admissions`,element:(0,H.jsx)(U_,{})}),(0,H.jsx)(F,{path:`admissions/new`,element:(0,H.jsx)(K_,{})}),(0,H.jsx)(F,{path:`admissions/:id/edit`,element:(0,H.jsx)(q_,{})}),(0,H.jsx)(F,{path:`statistika`,element:(0,H.jsx)(J_,{})}),(0,H.jsx)(F,{path:`statistics`,element:(0,H.jsx)(J_,{})}),(0,H.jsx)(F,{path:`school-features`,element:(0,H.jsx)(av,{})}),(0,H.jsx)(F,{path:`school-features/new`,element:(0,H.jsx)(ov,{})}),(0,H.jsx)(F,{path:`school-features/:id/edit`,element:(0,H.jsx)(sv,{})}),(0,H.jsx)(F,{path:`useful-links`,element:(0,H.jsx)(cv,{})}),(0,H.jsx)(F,{path:`useful-links/new`,element:(0,H.jsx)(lv,{})}),(0,H.jsx)(F,{path:`useful-links/:id/edit`,element:(0,H.jsx)(uv,{})}),(0,H.jsx)(F,{path:`academic-results`,element:(0,H.jsx)(mv,{})}),(0,H.jsx)(F,{path:`constitution`,element:(0,H.jsx)(hv,{})}),(0,H.jsx)(F,{path:`sahifalar`,element:(0,H.jsx)(dv,{})}),(0,H.jsx)(F,{path:`sahifalar/:id/tahrirlash`,element:(0,H.jsx)(dv,{})}),(0,H.jsx)(F,{path:`announcements`,element:(0,H.jsx)(tv,{})}),(0,H.jsx)(F,{path:`announcements/new`,element:(0,H.jsx)(rv,{})}),(0,H.jsx)(F,{path:`announcements/:id/edit`,element:(0,H.jsx)(iv,{})}),(0,H.jsx)(F,{path:`settings`,element:(0,H.jsx)(dv,{})}),(0,H.jsx)(F,{path:`users`,element:(0,H.jsx)(Sv,{})}),(0,H.jsx)(F,{path:`users/new`,element:(0,H.jsx)(Cv,{})}),(0,H.jsx)(F,{path:`users/:id/edit`,element:(0,H.jsx)(wv,{})})]}),(0,H.jsx)(F,{path:`/admin/login`,element:(0,H.jsx)(j_,{})})]})})})})}var Ev={uz:{translation:{Home:`Bosh sahifa`,School:`Maktab`,Structure:`Tuzilma`,News:`Yangiliklar`,Admissions:`Qabul`,Announcements:`E'lonlar`,"About Us":`Biz haqimizda`,Education:`Ta'lim`,"Our Pride":`Bizning faxrimiz`,"Academic Calendar":`Akademik kalendar`,Media:`Media`,Contact:`Bog'lanish`,"About the School":`Maktab haqida`,"School Charter":`Maktab ustavi`,"School Code of Conduct":`Odob-axloq qoidalari`,Leadership:`Rahbariyat`,"School Team":`Maktab jamoasi`,"Teachers Team":`O'qituvchilar tarkibi`,"Admissions 2026":`Qabul 2026`,"Admission Results":`Qabul natijalari`,Results:`Natijalar`,Teachers:`O‘qituvchilar`,Statistics:`Statistika`,Login:`Kirish`,Dashboard:`Boshqaruv paneli`,Loading:`Yuklanmoqda...`,"Page not found":`Sahifa topilmadi`,"Read More":`Batafsil`,"View All Announcements":`Barcha e'lonlarni ko'rish`,"View All Leaders":`Barcha rahbarlarni ko'rish`,"Learn More":`Batafsil ma'lumot`,"Admissions Information":`Qabul ma'lumotlari`,"View Results":`Natijalarni ko'rish`,"Total Students":`Jami o'quvchilar`,"Qualified Teachers":`Malakali o'qituvchilar`,"Entry to Higher Education":`Oliy ta'limga kirish`,"Olympiad Winners":`Olimpiada g'oliblari`,Search:`Qidiruv`,"Search Results":`Qidiruv natijalari`,"Contact Us":`Biz bilan bog'laning`,Address:`Manzil`,Phone:`Telefon`,Email:`Elektron pochta`,"Working Hours":`Ish vaqti`,"Quick Links":`Tezkor havolalar`,"School Life News":`Maktab hayotidan yangiliklar`,"Back to Home":`Bosh sahifaga qaytish`,"View All":`Barchasini ko'rish`,"Preparing Future Leaders Today":`Kelajak yetakchilarini bugundan tayyorlaymiz`,hero:{title:`Kelajak yetakchilarini bugund
37an tayyorlaymiz`,description:`Prezident maktabi — iqtidorli yoshlar uchun zamonaviy bilim, xalqaro standartlar va kuchli tarbiya uyg‘unlashgan ta’lim maskani. Biz global fikrlaydigan, mas’uliyatli va raqobatbardosh avlodni yetishtiramiz.`},"Apply Now":`Hoziroq ariza berish`,"Global Perspective":`Global nuqtai nazar`,"Global Perspective Sub":`"Cambridge" dasturi asosidagi STEM ta'limi`,"Modern Curriculum":`Zamonaviy o'quv dasturi`,"Modern Curriculum Sub":`Global ta'lim va xalqaro akademik standartlar`,"Qualified Teachers Sub":`Mahalliy va xalqaro yuqori malakali o'qituvchilar`,"School Administration":`Maktab Ma'muriyati`,"School Director":`Maktab Direktori`,"Latest News":`Eng So'nggi Yangiliklar`,"Important Announcements":`Muhim E'lonlar`,"Useful Links Section":`Foydali Havolalar`,"Useful Links":`Foydali havolalar`,"Useful Links Subtitle":`Davlat tashkilotlari, ta’lim portallari va hamkor muassasalarning rasmiy veb-saytlariga to‘g‘ridan-to‘g‘ri o‘tish havolalari.`,"Visit Site":`Saytga o'tish`,"No links available":`Hozircha havolalar mavjud emas`,Retry:`Qayta urinib ko'rish`,"Admissions 2026 Announced":`Qabul 2026 E'lon Qilindi`,"Admissions CTA Sub":`Iqtidorli yoshlarni saralab olish va ularga xalqaro standartlar darajasida ta'lim berish tizimi. Hujjat topshirish va natijalar haqida ma'lumot oling.`,"All rights reserved":`Barcha huquqlar himoyalangan`,"President Quote School Title":`Samarqand shahridagi Prezident maktabi`,"President Quote Text":`Biz mamlakatimizni yangi bosqichga ko'tarishni maqsad qilgan ekanmiz, buni birinchi navbatda ta'lim va tarbiya rivoji bilan bog'laymiz. Prezident maktablari - bu yangi O'zbekiston poydevorini barpo etadigan, mamlakatimizni yorug' kelajakka yetaklaydigan intellektual elita maskanidir.`,"President Name":`Shavkat Mirziyoyev`,"President Role":`O'zbekiston Respublikasi Prezidenti`,"About School Overview Title":`Maktab haqida umumiy ma'lumot`,"About School Overview Content":`Samarqand shahridagi Prezident maktabi O'zbekiston Respublikasi Prezidenti Shavkat Mirziyoyevning tashabbusi bilan tashkil etilgan. Mazkur ta'lim muassasasi mamlakatimizda iqtidorli bolalarni aniqlash, ularga ilg'or texnologiyalar asosida jahon standartlariga mos ta'lim-tarbiya berish maqsadida ochilgan namunaviy maktab hisoblanadi. Maktab internat (boarding school) tizimida faoliyat yuritadi. Unda o'quvchilar haftasiga besh kun davomida to'liq yotoqxona, bepul oziq-ovqat va maxsus kiyim-bosh bilan ta'minlangan holda maktab hududida yashab, tahsil oladilar.`,"School History":`Maktabimiz Tarixi`,"Director's Address":`Direktor Murojaati`,"School Leadership":`Maktab Rahbariyati`,Values:`Qadriyatlar`,"Academic Approach":`Akademik Yondashuv`,Infrastructure:`Infratuzilma`,"School Charter Description":`Samarqand shahridagi Prezident maktabining ustavi O'zbekiston Respublikasi Vazirlar Mahkamasining qarorlari asosida ishlab chiqilgan bo'lib, maktabning huquqiy maqomi, maqsad va vazifalari, o'quv-tarbiya jarayonini tashkil etish, maktabni boshqarish va moliyalashtirish tartiblarini belgilaydi.`,"General Provisions":`Umumiy qoidalar`,"General Provisions 1":`1.1. Prezident maktabi iqtidorli bolalarni aniqlash, tanlash va ularni o'qitish, ularning intellektual va amaliy salohiyatini ro'yobga chiqarish maqsadida tashkil etilgan ixtisoslashtirilgan davlat ta'lim muassasasi hisoblanadi.`,"General Provisions 2":`1.2. Maktab o'z faoliyatida O'zbekiston Respublikasi Konstitutsiyasi va qonunlariga, Oliy Majlis palatalarining qarorlariga, O'zbekiston Respublikasi Prezidentining farmonlari, qarorlari va farmoyishlariga amal qiladi.`,"Educational Process":`Ta'lim jarayoni`,"Educational Process 1":`2.1. Maktabda ta'lim berish jarayoni xalqaro ta'lim standartlari asosida tuzilgan o'quv dasturlari bo'yicha ingliz tilida olib boriladi.`,"Download Charter PDF":`Ustavni yuklab olish (PDF)`,"Code of Conduct Intro":`Ushbu odob-axloq qoidalari maktabda sog'lom ijtimoiy-psixologik muhitni shakllantirish, yosh avlodni milliy va umuminsoniy qadriyatlar ruhida tarbiyalash maqsadida joriy etilgan.`,"Rule 1 Title":`Kiyinish tartibi`,"Rule 1 Desc":`O'quvchilar maktab tomonidan belgilangan maxsus formada kelishlari shart.`,"Rule 2 Title":`Darsga qatnashish`,"Rule 2 Desc":`Darslarga o'z vaqtida, kechikmasdan kelish talab etiladi. Sababsiz dars qoldirish qat'iyan man etiladi.`,"Rule 3 Title":`O'zaro munosabat`,"Rule 3 Desc":`O'qituvchilar va maktabdoshlar bilan xushmuomala bo'lish, ularning qadr-qimmatini hurmat qilish.`,"Rule 4 Title":`Maktab mulki`,"Rule 4 Desc":`Maktab binosi, jihozlari va kutubxona kitoblariga ehtiyotkorona munosabatda bo'lish.`,"Rule 5 Title":`Texnika vositalari`,"Rule 5 Desc":`Dars jarayonida smartfon va bos
37hqa ko'ngilochar elektron qurilmalardan foydalanish taqiqlanadi.`,"Download Full Rules PDF":`To'liq qoidalarni yuklab olish (PDF)`,"Admissions Stages":`Qabul bosqichlari`,"Stage 1 Title":`1-Bosqich: Hujjat topshirish`,"Stage 1 Desc":`Faqat rasmiy Yagona Onlayn Portal (ariza.piima.uz) orqali nomzodning shaxsini tasdiqlovchi hujjatlar va baholar tabeli qabul qilinadi.`,"Stage 2 Title":`2-Bosqich: Mantiqiy fikrlash testlari`,"Stage 2 Desc":`Tanqidiy fikrlash va muammolarni hal qilish bo'yicha sara imtihonlar.`,"Stage 3 Title":`3-Bosqich: Matematika va Ingliz tili`,"Stage 3 Desc":`Xalqaro Cambridge Assessment tashkiloti bilan hamkorlikdagi yakuniy imtihonlar.`,"Required Documents":`Talab etiladigan hujjatlar`,"Doc 1":`Tug'ilganlik haqida guvohnoma (yoki ID karta) nusxasi`,"Doc 2":`O'quvchining baholar tabeli (maktab direktori tomonidan tasdiqlangan)`,"Doc 3":`3x4 o'lchamdagi 2 dona rasm`,"Doc 4":`Tibbiy ma'lumotnoma (086-U shakl)`,"Download Full List":`To'liq ro'yxatni yuklab olish`,"Important Dates":`Muhim sanalar`,"Date 1 Period":`01 - 20 Iyun, 2026`,"Date 1 Label":`Onlayn hujjat qabul qilish`,"Date 2 Period":`15 Iyul, 2026`,"Date 2 Label":`1-bosqich imtihonlari`,"Date 3 Period":`20 Avgust, 2026`,"Date 3 Label":`2-bosqich imtihonlari`,"Call Center":`Aloqa markazi`,"Call Center Sub":`Savol va murojaatlaringizni qoldiring, mas'ul xodimlarimiz tez orada bog'lanishadi.`,"Search by Student Name or ID":`Ism yoki ID orqali qidiruv...`,"Year Format":`Yil (masalan: 2026)`,"All Classes":`Barcha sinflar`,"Class Number":`{{class}}-sinf`,"All Statuses":`Barcha holatlar`,"Status Accepted":`Qabul qilingan`,"Status Reserve":`Zaxira`,"Status Rejected":`Qabul qilinmagan`,"Student ID":`O'quvchi ID`,"Full Name":`F.I.SH`,Class:`Sinf`,Mark:`Ball`,Year:`Yil`,Status:`Holat`,"No Admission Results Found":`Ushbu so'rov bo'yicha natijalar topilmadi.`,"School Staff / Pedagogues":`Maktab xodimlari / Pedagoglar`,Vacancies:`Bo'sh ish o'rinlari`,"Our Teachers":`Bizning o'qituvchilar`,"Our Pupils":`Bizning o'quvchilar`,Gallery:`Galereya`,Contacts:`Bog'lanish`,"Educational Program":`Ta'lim dasturi haqida`,"Admission Process":`Qabul jarayoni`,"Our Partners":`Bizning hamkorlar`,"Vibrant School Life":`Bizning jonli maktab hayotimiz`,"Step 1":`1-qadam`,"Step 2":`2-qadam`,"Step 3":`3-qadam`,"Step 4":`4-qadam`,"Get Acquainted":`Tanishib chiqish`,"Submit Application":`Ariza topshirish`,Exam:`Imtihon`,"Get Results":`Natijalarni olish`,"Graduate Profile Title":`Prezident maktabi bitiruvchisining qiyofasi`,"Graduate Profile Intro":`Maktabimiz har bir bitiruvchisida yuksak ma'naviy va akademik fazilatlarni shakllantirishni o'z oldiga maqsad qilib qo'ygan.`,"Moral Citizen":`Axloqli fuqaro`,"Moral Citizen Desc":`Milliy va umuminsoniy qadriyatlarga sodiq, adolatli va halol shaxs.`,"Critical Thinker":`Tanqidiy fikrlovchi`,"Critical Thinker Desc":`Axborotlarni tahlil qila oladigan, mustaqil va mantiqiy xulosa chiqaradigan muammo yechuvchi.`,Responsible:`Mas'uliyatli`,"Responsible Desc":`O'z xatti-harakatlari, jamiyat va atrof-muhit oldida yuksak mas'uliyatni his qiladigan fuqaro.`,"Academically Prepared":`Akademik jihatdan tayyor`,"Academically Prepared Desc":`Jahonning yetakchi universitetlarida muvaffaqiyatli tahsil olishga qodir chuqur bilim sohibi.`,Leader:`Yetakchi`,"Leader Desc":`Jamoani birlashtira oladigan, tashabbuskor va maqsad sari dadil intiluvchi shaxs.`,"Global Citizen":`Global fuqaro`,"Global Citizen Desc":`Chet tillarini mukammal biladigan va dunyo hamjamiyatiga integratsiyalasha oladigan vakil.`,Collaborative:`Hamkorlikka tayyor`,"Collaborative Desc":`Jamoada ishlash ko'nikmasiga ega, o'zgalar fikrini hurmat qiladigan va muloqotga ochiq inson.`,"Healthy & Well-rounded":`Sog'lom va barkamol`,"Healthy & Well-rounded Desc":`Jismonan tetik, ruhiy barqaror va madaniy rivojlangan shaxs.`,"All Staff":`Barcha xodimlar`,Pedagogues:`O'qituvchilar`,"Support Staff":`O'quv yordamchi xodimlar`,"International Teachers":`Xorijlik ustozlar`,"No Vacancies Available":`Hozirda bo'sh ish o'rinlari mavjud emas.`,"Vacancies Description":`Maktabimiz jamoasiga qo'shilish va kelajak yetakchilariga ta'lim berish imkoniyati. Yangi vakansiyalar e'lon qilinganda shu yerda ko'rinadi.`,"Education Standard":`Ta'lim mezoni`,"Academic Stages":`Ta'lim tizimi bosqichlari`,"Academic Programme Explanation":`Akademik dastur tavsifi`,"About Programme":`Dastur haqida`,"Daily Schedule":`Kun tartibi`,"Grading System":`Baholash tizimi`,"Extracurricular Activities":`Qo'shimcha mashg'ulotlar`,"Graduation Requirements":`Bitiruv talablari`,"University Acceptance":`Oliy ta'lim muassasalariga qabul natijalari`,"Morning Routine":`Uyg'onish va ertalabki vaqt`,"Academic Classes":`Akademik darslar`,"Evening Routine":`Kechki mashg'ulotlar va ta'til`,"Academic Year":`O'quv yili`,Semesters:`Choraklar`,"Exams & Assessments":`Imtihonlar va baholash`,"Holidays & Vacations":`Ta'tillar`,Events:`Tadbirlar`,"School Life":`Maktab hayoti`,Clubs:`To'garak mashg'ulotlari`,"Class Process":`Dars jarayonlari`,"Sports Clubs":`Sport to'garaklari`,"Educational Exhibitions":`Ta'limga oid ko'rgazmalar`,"Send Message":`Murojaat yuborish`,"First Name":`Ism`,"Last Name":`Familiya`,"Phone Number":`Telefon raqam`,"Email Address":`Elektron pochta`,"Your Message":`Sizning xabaringiz`,Send:`Yuborish`,"Message Sent Success":`Sizning murojaatingiz muvaffaqiyatli yuborildi. Tez orada bog'lanamiz!`,"Location Map":`Maktab joylashuvi xaritasi`,"Student Achievements":`O'quvchilar yutuqlari`,"Teacher Achievements":`O'qituvchilarimiz muvaffaqiyatlari`,"View Profile":`Ko'rish`,"School Achievements":`Maktab yutuqlari`,"School Constitution":`Maktab konstitutsiyasi`,"Olympiad Results":`Olimpiadalar natijalari`,"IELTS Results":`IELTS natijalari`,"SAT Results":`SAT natijalari`,"A-Level Results":`A-Level natijalari`,"AS-Level Results":`AS-Level natijalari`,"Official Statistics":`Rasmiy ko'rsatkichlar`,Close:`Yopish`,"More Info":`Batafsil ma'lumot`,"Boarding System":`Internat (Boarding) Tizimi`,"Boarding System Desc":`Haftasiga 5 kun davomida to'liq yotoqxona va 5 mahal bepul oziq-ovqat bilan ta'minlanadi.`,"Cambridge Program":`Cambridge Dasturi`,"Cambridge Program Desc":`STEAM fanlari xalqaro Cambridge Assessment o'quv dasturlari asosida o'tiladi.`,"International Experts":`Xalqaro Mutaxassislar`,"International Experts Desc":`Xorijiy va mahalliy oliy toifali saralangan o'qituvchilar tarkibi.`,"Modern L
37abs":`Zamonaviy Laboratoriyalar`,"Modern Labs Desc":`Fizika, Kimyo, Biologiya va IT kompyuter laboratoriya majmualari.`,"About Curriculum":`Ta'lim dasturi haqida`,"Grades 5-11":`5-11-sinflar`,"Grades 5-11 Sub":`Milliy va xalqaro fanlarni o'zlashtirish`,Languages:`Tillar`,"Languages Sub":`Ingliz tili (EFL), o'zbek tili, rus tili`,Humanities:`Gumanitar fanlar`,"Humanities Sub":`O'zbekiston tarixi, jahon tarixi, zamonaviy yondashuv`,"AS and A Levels":`AS va A darajalar`,"AS and A Levels Sub":`10-11 sinflarda chuqurlashtirilgan Kembrij ta'limi`,"STEAM Education":`STEAM ta'limi`,"STEAM Education Sub":`Matematika, Fizika, Kimyo, Biologiya va Informatika`,"Admission Steps":`Qabul jarayoni bosqichlari`,"Step 1 Title":`1-bosqich: Hujjat topshirish`,"Step 2 Title":`2-bosqich: Tanqidiy fikrlash testlari`,"Step 3 Title":`3-bosqich: Matematika va Ingliz tili imtihonlari`,"Step 4 Title":`4-bosqich: Natijalarni e'lon qilish`}},en:{translation:{Home:`Home`,School:`School`,Structure:`Structure`,News:`News`,Admissions:`Admissions`,Announcements:`Announcements`,"About Us":`About Us`,Education:`Education`,"Our Pride":`Our Pride`,"Academic Calendar":`Academic Calendar`,Media:`Media`,Contact:`Contact`,"About the School":`About the School`,"School Charter":`School Charter`,"School Code of Conduct":`School Code of Conduct`,Leadership:`Leadership`,"School Team":`School Team`,"Teachers Team":`Teaching Staff`,"Admissions 2026":`Admissions 2026`,"Admission Results":`Admission Results`,Results:`Results`,Teachers:`Teachers`,Statistics:`Statistics`,Login:`Login`,Dashboard:`Dashboard`,Loading:`Loading...`,"Page not found":`Page not found`,"Read More":`Read More`,"View All Announcements":`View All Announcements`,"View All Leaders":`View All Leaders`,"Learn More":`Learn More`,"Admissions Information":`Admissions Information`,"View Results":`View Results`,"Total Students":`Total Students`,"Qualified Teachers":`Qualified Teachers`,"Entry to Higher Education":`Entry to Higher Education`,"Olympiad Winners":`Olympiad Winners`,Search:`Search`,"Search Results":`Search Results`,"Contact Us":`Contact Us`,Address:`Address`,Phone:`Phone`,Email:`Email`,"Working Hours":`Working Hours`,"Quick Links":`Quick Links`,"School Life News":`School Life News`,"Back to Home":`Back to Home`,"View All":`View All`,"Preparing Future Leaders Today":`Preparing Future Leaders Today`,hero:{title:`Preparing Future Leaders Today`,description:`Presidential School — an educational center combining modern knowledge, international standards, and strong character development for gifted youth. We nurture globally-minded, responsible, and competitive generations.`},"Apply Now":`Apply Now`,"Global Perspective":`Global Perspective`,"Global Perspective Sub":`STEM education based on Cambridge curriculum`,"Modern Curriculum":`Modern Curriculum`,"Modern Curriculum Sub":`Global education and international academic standards`,"Qualified Teachers Sub":`Local and international highly qualified teachers`,"School Administration":`School Administration`,"School Director":`School Director`,"Latest News":`Latest News`,"Important Announcements":`Important Announcements`,"Useful Links Section":`Useful Links`,"Useful Links":`Useful Links`,"Useful Links Subtitle":`Direct links to official websites of government organizations, educational portals, and partner institutions.`,"Visit Site":`Visit Website`,"No links available":`No links available at the moment`,Retry:`Retry`,"Admissions 2026 Announced":`Admissions 2026 Announced`,"Admissions CTA Sub":`System for selecting talented youth and educating them according to international standards. Get information on applications and results.`,"All rights reserved":`All rights reserved`,"President Quote School Title":`Samarkand Presidential School`,"President Quote Text":`As we aim to elevate our country to a new level, we connect this primarily with the development of education and upbringing. Presidential schools are the foundation of New Uzbekistan, an institution of the intellectual elite leading our country to a bright future.`,"President Name":`Shavkat Mirziyoyev`,"President Role":`President of the Republic of Uzbekistan`,"About School Overview Title":`General Overview of the School`,"About School Overview Content":`The Presidential School in Samarkand was established on the initiative of the President of the Republic of Uzbekistan Shavkat Mirziyoyev. This educational institution is a model school opened to identify talented children in our country and educate them according to world standards based on advanced technologies. The school operates as a boarding school where students live on campus 5 days a week with full dormitory, free meals, and uniforms.`,"School History":`
37School History`,"Director's Address":`Director's Address`,"School Leadership":`School Leadership`,Values:`Values`,"Academic Approach":`Academic Approach`,Infrastructure:`Infrastructure`,"School Charter Description":`The Charter of the Presidential School in Samarkand was developed in accordance with the resolutions of the Cabinet of Ministers of the Republic of Uzbekistan, defining the legal status, goals and tasks of the school, the organization of the educational process, school management, and financing procedures.`,"General Provisions":`General Provisions`,"General Provisions 1":`1.1. The Presidential School is a specialized state educational institution established to identify, select, and educate talented children, and realize their intellectual and practical potential.`,"General Provisions 2":`1.2. In its activities, the school complies with the Constitution and laws of the Republic of Uzbekistan, resolutions of the chambers of the Oliy Majlis, decrees, resolutions, and orders of the President of the Republic of Uzbekistan.`,"Educational Process":`Educational Process`,"Educational Process 1":`2.1. The educational process at the school is conducted in English according to curricula constructed on the basis of international educational standards.`,"Download Charter PDF":`Download Charter (PDF)`,"Code of Conduct Intro":`These code of conduct rules were introduced to form a healthy socio-psychological environment in the school and educate the young generation in the spirit of national and universal values.`,"Rule 1 Title":`Dress Code`,"Rule 1 Desc":`Students are required to attend school in the special uniform specified by the school.`,"Rule 2 Title":`Class Attendance`,"Rule 2 Desc":`Punctual attendance at classes without delay is required. Unexcused absence is strictly prohibited.`,"Rule 3 Title":`Interpersonal Conduct`,"Rule 3 Desc":`Be polite to teachers and fellow students, and respect their dignity.`,"Rule 4 Title":`School Property`,"Rule 4 Desc":`Care for the school building, equipment, and library books responsibly.`,"Rule 5 Title":`Electronic Devices`,"Rule 5 Desc":`The use of smartphones and other entertainment electronic devices during class is prohibited.`,"Download Full Rules PDF":`Download Full Rules (PDF)`,"Admissions Stages":`Admissions Stages`,"Stage 1 Title":`Stage 1: Document Submission`,"Stage 1 Desc":`Candidate identification documents and grade reports are accepted exclusively through the official Single Online Portal (ariza.piima.uz).`,"Stage 2 Title":`Stage 2: Logical Reasoning Tests`,"Stage 2 Desc":`Competitive exams evaluating critical thinking and problem-solving skills.`,"Stage 3 Title":`Stage 3: Mathematics and English Language`,"Stage 3 Desc":`Final exams conducted in partnership with international Cambridge Assessment organization.`,"Required Documents":`Required Documents`,"Doc 1":`Copy of Birth Certificate (or ID card)`,"Doc 2":`Student grade report (certified by school principal)`,"Doc 3":`2 photos of 3x4 size`,"Doc 4":`Medical certificate (Form 086-U)`,"Download Full List":`Download Full List`,"Important Dates":`Important Dates`,"Date 1 Period":`June 01 - 20, 2026`,"Date 1 Label":`Online document reception`,"Date 2 Period":`July 15, 2026`,"Date 2 Label":`Stage 1 examinations`,"Date 3 Period":`August 20, 2026`,"Date 3 Label":`Stage 2 examinations`,"Call Center":`Call Center`,"Call Center Sub":`Leave your questions and inquiries, our responsible staff will contact you shortly.`,"Search by Student Name or ID":`Search by student name or ID...`,"Year Format":`Year (e.g. 2026)`,"All Classes":`All Classes`,"Class Number":`Grade {{class}}`,"All Statuses":`All Statuses`,"Status Accepted":`Accepted`,"Status Reserve":`Reserve`,"Status Rejected":`Not Accepted`,"Student ID":`Student ID`,"Full Name":`Full Name`,Class:`Class`,Mark:`Score`,Year:`Year`,Status:`Status`,"No Admission Results Found":`No admission results found for this query.`,"School Staff / Pedagogues":`School Staff & Pedagogues`,Vacancies:`Vacancies`,"Our Teachers":`Our Teachers`,"Our Pupils":`Our Pupils`,Gallery:`Gallery`,Contacts:`Contacts`,"Educational Program":`Educational Program`,"Admission Process":`Admission Process`,"Our Partners":`Our Partners`,"Vibrant School Life":`Vibrant School Life`,"Step 1":`Step 1`,"Step 2":`Step 2`,"Step 3":`Step 3`,"Step 4":`Step 4`,"Get Acquainted":`Get Acquainted`,"Submit Application":`Submit Application`,Exam:`Take Examination`,"Get Results":`Get Results`,"Graduate Profile Title":`Profile of a Presidential School Graduate`,"Graduate Profile Intro":`Our school aims to foster high moral and academic qualities in every graduate.`,"Moral Citizen":`Moral Citizen`,"Moral Citizen Desc":`A just and honest individual committed to national and universal human values.`,"Critical Thinker":`Critical Thinker`,"Critical Thinker Desc":`A problem solver capable of analyzing information and drawing independent, logical conclusions.`,Responsible:`Responsible`,"Responsible Desc":`A citizen who feels high responsibility for their actions, society, and the environment.`,"Academically Prepared":`Academically Prepared`,"Academically Prepared Desc":`Possessor of deep knowledge c
37apable of successfully studying at leading world universities.`,Leader:`Leader`,"Leader Desc":`An initiative-driven individual capable of uniting a team and striving boldly toward goals.`,"Global Citizen":`Global Citizen`,"Global Citizen Desc":`A representative fluent in foreign languages and capable of integrating into the global community.`,Collaborative:`Collaborative`,"Collaborative Desc":`A person with teamwork skills who respects others' opinions and is open to communication.`,"Healthy & Well-rounded":`Healthy & Well-rounded`,"Healthy & Well-rounded Desc":`A physically active, mentally stable, and culturally developed individual.`,"All Staff":`All Staff`,Pedagogues:`Teachers`,"Support Staff":`Educational Support Staff`,"International Teachers":`International Teachers`,"No Vacancies Available":`No vacancies are currently available.`,"Vacancies Description":`An opportunity to join our school team and educate future leaders. New job postings will appear here when announced.`,"Education Standard":`Education Standard`,"Academic Stages":`Academic Stages`,"Academic Programme Explanation":`Academic Programme Explanation`,"About Programme":`About Programme`,"Daily Schedule":`Daily Schedule`,"Grading System":`Grading System`,"Extracurricular Activities":`Extracurricular Activities`,"Graduation Requirements":`Graduation Requirements`,"University Acceptance":`University Acceptance Results`,"Morning Routine":`Morning Routine & Assembly`,"Academic Classes":`Academic Classes & Study`,"Evening Routine":`Evening Activities & Rest`,"Academic Year":`Academic Year`,Semesters:`Terms / Semesters`,"Exams & Assessments":`Exams & Assessments`,"Holidays & Vacations":`Holidays & Vacations`,Events:`School Events`,"School Life":`School Life`,Clubs:`Clubs & Activities`,"Class Process":`Classroom Moments`,"Sports Clubs":`Sports Clubs`,"Educational Exhibitions":`Educational Exhibitions`,"Send Message":`Send Message`,"First Name":`First Name`,"Last Name":`Last Name`,"Phone Number":`Phone Number`,"Email Address":`Email Address`,"Your Message":`Your Message`,Send:`Send Message`,"Message Sent Success":`Your message has been sent successfully. We will get back to you shortly!`,"Location Map":`School Location Map`,"Student Achievements":`Student Achievements`,"Teacher Achievements":`Teacher Accomplishments`,"View Profile":`View Profile`,"School Achievements":`School Achievements`,"School Constitution":`School Constitution`,"Olympiad Results":`Olympiad Results`,"IELTS Results":`IELTS Results`,"SAT Results":`SAT Results`,"A-Level Results":`A-Level Results`,"AS-Level Results":`AS-Level Results`,"Official Statistics":`Official Statistics`,Close:`Close`,"More Info":`More Info`,"Boarding System":`Boarding System`,"Boarding System Desc":`Full accommodation and 5 meals daily provided 5 days a week.`,"Cambridge Program":`Cambridge Program`,"Cambridge Program Desc":`STEAM subjects taught under the international Cambridge Assessment curriculum.`,"International Experts":`International Experts`,"International Experts Desc":`Selected high-category international and local teaching staff.`,"Modern Labs":`Modern Laboratories`,"Modern Labs Desc":`Physics, Chemistry, Biology, and IT computer laboratory complexes.`,"About Curriculum":`About Educational Program`,"Grades 5-11":`Grades 5-11`,"Grades 5-11 Sub":`Mastering national and international subjects`,Languages:`Languages`,"Languages Sub":`English (EFL), Uzbek, Russian languages`,Humanities:`Humanities`,"Humanities Sub":`History of Uzbekistan, World History, modern approach`,"AS and A Levels":`AS and A Levels`,"AS and A Levels Sub":`Advanced Cambridge education in Grades 10-11`,"STEAM Education":`STEAM Education`,"STEAM Education Sub":`Mathematics, Physics, Chemistry, Biology, and Computer Science`,"Admission Steps":`Admission Steps`,"Step 1 Title":`Step 1: Application Submission`,"Step 2 Title":`Step 2: Critical Thinking Tests`,"Step 3 Title":`Step 3: Math and English Exams`,"Step 4 Title":`Step 4: Results Announcement`}}},Dv=localStorage.getItem(`appLanguage`),Ov=Dv===`en`||Dv===`uz`?Dv:`uz`;jc.use(Xc).init({resources:Ev,lng:Ov,fallbackLng:`uz`,interpolation:{escapeValue:!1}}),jc.on(`languageChanged`,e=>{e===`en`||e===`uz`?localStorage.setItem(`appLanguage`,e):localStorage.setItem(`appLanguage`,`uz`)}),(0,x.createRoot)(document.getElementById(`root`)).render((0,H.jsx)(S.StrictMode,{children:(0,H.jsx)(De,{children:(0,H.jsx)(Tv,{})})}));export{l as a,s as i,d as n,o as r,Ms as t};

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.