116 lines
518 KiB
JavaScript
116 lines
518 KiB
JavaScript
var Rx=Object.defineProperty;var Mx=(e,t,n)=>t in e?Rx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ma=(e,t,n)=>(Mx(e,typeof t!="symbol"?t+"":t,n),n);function jx(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var ja=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ix(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lo={},Vx={get exports(){return Lo},set exports(e){Lo=e}},bl={},b={},$x={get exports(){return b},set exports(e){b=e}},re={};/**
|
||
* @license React
|
||
* react.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var fa=Symbol.for("react.element"),Fx=Symbol.for("react.portal"),zx=Symbol.for("react.fragment"),Bx=Symbol.for("react.strict_mode"),Ux=Symbol.for("react.profiler"),Wx=Symbol.for("react.provider"),Hx=Symbol.for("react.context"),Gx=Symbol.for("react.forward_ref"),Yx=Symbol.for("react.suspense"),Kx=Symbol.for("react.memo"),qx=Symbol.for("react.lazy"),om=Symbol.iterator;function Xx(e){return e===null||typeof e!="object"?null:(e=om&&e[om]||e["@@iterator"],typeof e=="function"?e:null)}var Wy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hy=Object.assign,Gy={};function $i(e,t,n){this.props=e,this.context=t,this.refs=Gy,this.updater=n||Wy}$i.prototype.isReactComponent={};$i.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};$i.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Yy(){}Yy.prototype=$i.prototype;function Ud(e,t,n){this.props=e,this.context=t,this.refs=Gy,this.updater=n||Wy}var Wd=Ud.prototype=new Yy;Wd.constructor=Ud;Hy(Wd,$i.prototype);Wd.isPureReactComponent=!0;var am=Array.isArray,Ky=Object.prototype.hasOwnProperty,Hd={current:null},qy={key:!0,ref:!0,__self:!0,__source:!0};function Xy(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)Ky.call(t,r)&&!qy.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:fa,type:e,key:o,ref:a,props:i,_owner:Hd.current}}function Qx(e,t){return{$$typeof:fa,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Gd(e){return typeof e=="object"&&e!==null&&e.$$typeof===fa}function Zx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var sm=/\/+/g;function Nu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Zx(""+e.key):t.toString(36)}function ls(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case fa:case Fx:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Nu(a,0):r,am(i)?(n="",e!=null&&(n=e.replace(sm,"$&/")+"/"),ls(i,t,n,"",function(u){return u})):i!=null&&(Gd(i)&&(i=Qx(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(sm,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",am(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+Nu(o,s);a+=ls(o,t,n,l,i)}else if(l=Xx(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+Nu(o,s++),a+=ls(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Ia(e,t,n){if(e==null)return e;var r=[],i=0;return ls(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Jx(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ut={current:null},us={transition:null},e2={ReactCurrentDispatcher:ut,ReactCurrentBatchConfig:us,ReactCurrentOwner:Hd};re.Children={map:Ia,forEach:function(e,t,n){Ia(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ia(e,function(){t++}),t},toArray:function(e){return Ia(e,function(t){return t})||[]},only:function(e){if(!Gd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=$i;re.Fragment=zx;re.Profiler=Ux;re.PureComponent=Ud;re.StrictMode=Bx;re.Suspense=Yx;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=e2;re.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Hy({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Hd.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Ky.call(t,l)&&!qy.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:fa,type:e.type,key:i,ref:o,props:r,_owner:a}};re.createContext=function(e){return e={$$typeof:Hx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Wx,_context:e},e.Consumer=e};re.createElement=Xy;re.createFactory=function(e){var t=Xy.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:Gx,render:e}};re.isValidElement=Gd;re.lazy=function(e){return{$$typeof:qx,_payload:{_status:-1,_result:e},_init:Jx}};re.memo=function(e,t){return{$$typeof:Kx,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=us.transition;us.transition={};try{e()}finally{us.transition=t}};re.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};re.useCallback=function(e,t){return ut.current.useCallback(e,t)};re.useContext=function(e){return ut.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return ut.current.useDeferredValue(e)};re.useEffect=function(e,t){return ut.current.useEffect(e,t)};re.useId=function(){return ut.current.useId()};re.useImperativeHandle=function(e,t,n){return ut.current.useImperativeHandle(e,t,n)};re.useInsertionEffect=function(e,t){return ut.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return ut.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return ut.current.useMemo(e,t)};re.useReducer=function(e,t,n){return ut.current.useReducer(e,t,n)};re.useRef=function(e){return ut.current.useRef(e)};re.useState=function(e){return ut.current.useState(e)};re.useSyncExternalStore=function(e,t,n){return ut.current.useSyncExternalStore(e,t,n)};re.useTransition=function(){return ut.current.useTransition()};re.version="18.2.0";(function(e){e.exports=re})($x);const B=Ix(b),Uc=jx({__proto__:null,default:B},[b]);/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var t2=b,n2=Symbol.for("react.element"),r2=Symbol.for("react.fragment"),i2=Object.prototype.hasOwnProperty,o2=t2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a2={key:!0,ref:!0,__self:!0,__source:!0};function Qy(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)i2.call(t,r)&&!a2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:n2,type:e,key:o,ref:a,props:i,_owner:o2.current}}bl.Fragment=r2;bl.jsx=Qy;bl.jsxs=Qy;(function(e){e.exports=bl})(Vx);const Yd=Lo.Fragment,x=Lo.jsx,q=Lo.jsxs;var Wc={},No={},s2={get exports(){return No},set exports(e){No=e}},Tt={},Hc={},l2={get exports(){return Hc},set exports(e){Hc=e}},Zy={};/**
|
||
* @license React
|
||
* scheduler.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/(function(e){function t(R,$){var W=R.length;R.push($);e:for(;0<W;){var ee=W-1>>>1,te=R[ee];if(0<i(te,$))R[ee]=$,R[W]=te,W=ee;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var $=R[0],W=R.pop();if(W!==$){R[0]=W;e:for(var ee=0,te=R.length,Me=te>>>1;ee<Me;){var ie=2*(ee+1)-1,je=R[ie],_e=ie+1,yt=R[_e];if(0>i(je,W))_e<te&&0>i(yt,je)?(R[ee]=yt,R[_e]=W,ee=_e):(R[ee]=je,R[ie]=W,ee=ie);else if(_e<te&&0>i(yt,W))R[ee]=yt,R[_e]=W,ee=_e;else break e}}return $}function i(R,$){var W=R.sortIndex-$.sortIndex;return W!==0?W:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,g=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(R){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=R)r(u),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(u)}}function w(R){if(g=!1,y(R),!v)if(n(l)!==null)v=!0,H(C);else{var $=n(u);$!==null&&J(w,$.startTime-R)}}function C(R,$){v=!1,g&&(g=!1,p(E),E=-1),h=!0;var W=d;try{for(y($),f=n(l);f!==null&&(!(f.expirationTime>$)||R&&!k());){var ee=f.callback;if(typeof ee=="function"){f.callback=null,d=f.priorityLevel;var te=ee(f.expirationTime<=$);$=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(l)&&r(l),y($)}else r(l);f=n(l)}if(f!==null)var Me=!0;else{var ie=n(u);ie!==null&&J(w,ie.startTime-$),Me=!1}return Me}finally{f=null,d=W,h=!1}}var O=!1,P=null,E=-1,A=5,I=-1;function k(){return!(e.unstable_now()-I<A)}function L(){if(P!==null){var R=e.unstable_now();I=R;var $=!0;try{$=P(!0,R)}finally{$?U():(O=!1,P=null)}}else O=!1}var U;if(typeof m=="function")U=function(){m(L)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,Z=X.port2;X.port1.onmessage=L,U=function(){Z.postMessage(null)}}else U=function(){S(L,0)};function H(R){P=R,O||(O=!0,U())}function J(R,$){E=S(function(){R(e.unstable_now())},$)}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(R){R.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,H(C))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(d){case 1:case 2:case 3:var $=3;break;default:$=d}var W=d;d=$;try{return R()}finally{d=W}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,$){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var W=d;d=R;try{return $()}finally{d=W}},e.unstable_scheduleCallback=function(R,$,W){var ee=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?ee+W:ee):W=ee,R){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=W+te,R={id:c++,callback:$,priorityLevel:R,startTime:W,expirationTime:te,sortIndex:-1},W>ee?(R.sortIndex=W,t(u,R),n(l)===null&&R===n(u)&&(g?(p(E),E=-1):g=!0,J(w,W-ee))):(R.sortIndex=te,t(l,R),v||h||(v=!0,H(C))),R},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(R){var $=d;return function(){var W=d;d=$;try{return R.apply(this,arguments)}finally{d=W}}}})(Zy);(function(e){e.exports=Zy})(l2);/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Jy=b,Ct=Hc;function V(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var e0=new Set,Ao={};function Ir(e,t){Ti(e,t),Ti(e+"Capture",t)}function Ti(e,t){for(Ao[e]=t,e=0;e<t.length;e++)e0.add(t[e])}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gc=Object.prototype.hasOwnProperty,u2=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,lm={},um={};function c2(e){return Gc.call(um,e)?!0:Gc.call(lm,e)?!1:u2.test(e)?um[e]=!0:(lm[e]=!0,!1)}function f2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function d2(e,t,n,r){if(t===null||typeof t>"u"||f2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ct(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Kd=/[\-:]([a-z])/g;function qd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Kd,qd);Qe[t]=new ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Kd,qd);Qe[t]=new ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Kd,qd);Qe[t]=new ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function Xd(e,t,n,r){var i=Qe.hasOwnProperty(t)?Qe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(d2(t,n,i,r)&&(n=null),r||i===null?c2(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Cn=Jy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Va=Symbol.for("react.element"),Jr=Symbol.for("react.portal"),ei=Symbol.for("react.fragment"),Qd=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),t0=Symbol.for("react.provider"),n0=Symbol.for("react.context"),Zd=Symbol.for("react.forward_ref"),Kc=Symbol.for("react.suspense"),qc=Symbol.for("react.suspense_list"),Jd=Symbol.for("react.memo"),Ln=Symbol.for("react.lazy"),r0=Symbol.for("react.offscreen"),cm=Symbol.iterator;function Ki(e){return e===null||typeof e!="object"?null:(e=cm&&e[cm]||e["@@iterator"],typeof e=="function"?e:null)}var Ee=Object.assign,Au;function lo(e){if(Au===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Au=t&&t[1]||""}return`
|
||
`+Au+e}var Ru=!1;function Mu(e,t){if(!e||Ru)return"";Ru=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
||
`),o=r.stack.split(`
|
||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
||
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Ru=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lo(e):""}function p2(e){switch(e.tag){case 5:return lo(e.type);case 16:return lo("Lazy");case 13:return lo("Suspense");case 19:return lo("SuspenseList");case 0:case 2:case 15:return e=Mu(e.type,!1),e;case 11:return e=Mu(e.type.render,!1),e;case 1:return e=Mu(e.type,!0),e;default:return""}}function Xc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ei:return"Fragment";case Jr:return"Portal";case Yc:return"Profiler";case Qd:return"StrictMode";case Kc:return"Suspense";case qc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case n0:return(e.displayName||"Context")+".Consumer";case t0:return(e._context.displayName||"Context")+".Provider";case Zd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Jd:return t=e.displayName||null,t!==null?t:Xc(e.type)||"Memo";case Ln:t=e._payload,e=e._init;try{return Xc(e(t))}catch{}}return null}function h2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Xc(t);case 8:return t===Qd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function i0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m2(e){var t=i0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $a(e){e._valueTracker||(e._valueTracker=m2(e))}function o0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=i0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ts(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Qc(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function a0(e,t){t=t.checked,t!=null&&Xd(e,"checked",t,!1)}function Zc(e,t){a0(e,t);var n=Zn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jc(e,t.type,Zn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dm(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jc(e,t,n){(t!=="number"||Ts(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var uo=Array.isArray;function mi(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=""+Zn(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 ef(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(V(91));return Ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(V(92));if(uo(n)){if(1<n.length)throw Error(V(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zn(n)}}function s0(e,t){var n=Zn(t.value),r=Zn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function hm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function l0(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tf(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?l0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Fa,u0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Fa=Fa||document.createElement("div"),Fa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ro(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},v2=["Webkit","ms","Moz","O"];Object.keys(mo).forEach(function(e){v2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mo[t]=mo[e]})});function c0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mo.hasOwnProperty(e)&&mo[e]?(""+t).trim():t+"px"}function f0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=c0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var g2=Ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function nf(e,t){if(t){if(g2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(V(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(V(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(V(61))}if(t.style!=null&&typeof t.style!="object")throw Error(V(62))}}function rf(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var of=null;function ep(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var af=null,vi=null,gi=null;function mm(e){if(e=ha(e)){if(typeof af!="function")throw Error(V(280));var t=e.stateNode;t&&(t=Pl(t),af(e.stateNode,e.type,t))}}function d0(e){vi?gi?gi.push(e):gi=[e]:vi=e}function p0(){if(vi){var e=vi,t=gi;if(gi=vi=null,mm(e),t)for(e=0;e<t.length;e++)mm(t[e])}}function h0(e,t){return e(t)}function m0(){}var ju=!1;function v0(e,t,n){if(ju)return e(t,n);ju=!0;try{return h0(e,t,n)}finally{ju=!1,(vi!==null||gi!==null)&&(m0(),p0())}}function Mo(e,t){var n=e.stateNode;if(n===null)return null;var r=Pl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(V(231,t,typeof n));return n}var sf=!1;if(wn)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){sf=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{sf=!1}function y2(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var vo=!1,_s=null,ks=!1,lf=null,w2={onError:function(e){vo=!0,_s=e}};function S2(e,t,n,r,i,o,a,s,l){vo=!1,_s=null,y2.apply(w2,arguments)}function b2(e,t,n,r,i,o,a,s,l){if(S2.apply(this,arguments),vo){if(vo){var u=_s;vo=!1,_s=null}else throw Error(V(198));ks||(ks=!0,lf=u)}}function Vr(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 g0(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 vm(e){if(Vr(e)!==e)throw Error(V(188))}function x2(e){var t=e.alternate;if(!t){if(t=Vr(e),t===null)throw Error(V(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return vm(i),e;if(o===r)return vm(i),t;o=o.sibling}throw Error(V(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(V(189))}}if(n.alternate!==r)throw Error(V(190))}if(n.tag!==3)throw Error(V(188));return n.stateNode.current===n?e:t}function y0(e){return e=x2(e),e!==null?w0(e):null}function w0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=w0(e);if(t!==null)return t;e=e.sibling}return null}var S0=Ct.unstable_scheduleCallback,gm=Ct.unstable_cancelCallback,O2=Ct.unstable_shouldYield,C2=Ct.unstable_requestPaint,ke=Ct.unstable_now,E2=Ct.unstable_getCurrentPriorityLevel,tp=Ct.unstable_ImmediatePriority,b0=Ct.unstable_UserBlockingPriority,Ds=Ct.unstable_NormalPriority,P2=Ct.unstable_LowPriority,x0=Ct.unstable_IdlePriority,xl=null,tn=null;function T2(e){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(xl,e,void 0,(e.current.flags&128)===128)}catch{}}var Wt=Math.clz32?Math.clz32:D2,_2=Math.log,k2=Math.LN2;function D2(e){return e>>>=0,e===0?32:31-(_2(e)/k2|0)|0}var za=64,Ba=4194304;function co(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ls(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=co(s):(o&=a,o!==0&&(r=co(o)))}else a=n&~i,a!==0?r=co(a):o!==0&&(r=co(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Wt(t),i=1<<n,r|=e[n],t&=~i;return r}function L2(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function N2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Wt(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=L2(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function uf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function O0(){var e=za;return za<<=1,!(za&4194240)&&(za=64),e}function Iu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function da(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function A2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Wt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function np(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var se=0;function C0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var E0,rp,P0,T0,_0,cf=!1,Ua=[],Un=null,Wn=null,Hn=null,jo=new Map,Io=new Map,Rn=[],R2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ym(e,t){switch(e){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Wn=null;break;case"mouseover":case"mouseout":Hn=null;break;case"pointerover":case"pointerout":jo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Io.delete(t.pointerId)}}function Xi(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=ha(t),t!==null&&rp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function M2(e,t,n,r,i){switch(t){case"focusin":return Un=Xi(Un,e,t,n,r,i),!0;case"dragenter":return Wn=Xi(Wn,e,t,n,r,i),!0;case"mouseover":return Hn=Xi(Hn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return jo.set(o,Xi(jo.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Io.set(o,Xi(Io.get(o)||null,e,t,n,r,i)),!0}return!1}function k0(e){var t=gr(e.target);if(t!==null){var n=Vr(t);if(n!==null){if(t=n.tag,t===13){if(t=g0(n),t!==null){e.blockedOn=t,_0(e.priority,function(){P0(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 cs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ff(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);of=r,n.target.dispatchEvent(r),of=null}else return t=ha(n),t!==null&&rp(t),e.blockedOn=n,!1;t.shift()}return!0}function wm(e,t,n){cs(e)&&n.delete(t)}function j2(){cf=!1,Un!==null&&cs(Un)&&(Un=null),Wn!==null&&cs(Wn)&&(Wn=null),Hn!==null&&cs(Hn)&&(Hn=null),jo.forEach(wm),Io.forEach(wm)}function Qi(e,t){e.blockedOn===t&&(e.blockedOn=null,cf||(cf=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,j2)))}function Vo(e){function t(i){return Qi(i,e)}if(0<Ua.length){Qi(Ua[0],e);for(var n=1;n<Ua.length;n++){var r=Ua[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Un!==null&&Qi(Un,e),Wn!==null&&Qi(Wn,e),Hn!==null&&Qi(Hn,e),jo.forEach(t),Io.forEach(t),n=0;n<Rn.length;n++)r=Rn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rn.length&&(n=Rn[0],n.blockedOn===null);)k0(n),n.blockedOn===null&&Rn.shift()}var yi=Cn.ReactCurrentBatchConfig,Ns=!0;function I2(e,t,n,r){var i=se,o=yi.transition;yi.transition=null;try{se=1,ip(e,t,n,r)}finally{se=i,yi.transition=o}}function V2(e,t,n,r){var i=se,o=yi.transition;yi.transition=null;try{se=4,ip(e,t,n,r)}finally{se=i,yi.transition=o}}function ip(e,t,n,r){if(Ns){var i=ff(e,t,n,r);if(i===null)Yu(e,t,r,As,n),ym(e,r);else if(M2(i,e,t,n,r))r.stopPropagation();else if(ym(e,r),t&4&&-1<R2.indexOf(e)){for(;i!==null;){var o=ha(i);if(o!==null&&E0(o),o=ff(e,t,n,r),o===null&&Yu(e,t,r,As,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Yu(e,t,r,null,n)}}var As=null;function ff(e,t,n,r){if(As=null,e=ep(r),e=gr(e),e!==null)if(t=Vr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=g0(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 As=e,null}function D0(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(E2()){case tp:return 1;case b0:return 4;case Ds:case P2:return 16;case x0:return 536870912;default:return 16}default:return 16}}var In=null,op=null,fs=null;function L0(){if(fs)return fs;var e,t=op,n=t.length,r,i="value"in In?In.value:In.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return fs=i.slice(e,1<r?1-r:void 0)}function ds(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 Wa(){return!0}function Sm(){return!1}function _t(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Wa:Sm,this.isPropagationStopped=Sm,this}return Ee(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wa)},persist:function(){},isPersistent:Wa}),t}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ap=_t(Fi),pa=Ee({},Fi,{view:0,detail:0}),$2=_t(pa),Vu,$u,Zi,Ol=Ee({},pa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:sp,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!==Zi&&(Zi&&e.type==="mousemove"?(Vu=e.screenX-Zi.screenX,$u=e.screenY-Zi.screenY):$u=Vu=0,Zi=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:$u}}),bm=_t(Ol),F2=Ee({},Ol,{dataTransfer:0}),z2=_t(F2),B2=Ee({},pa,{relatedTarget:0}),Fu=_t(B2),U2=Ee({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),W2=_t(U2),H2=Ee({},Fi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),G2=_t(H2),Y2=Ee({},Fi,{data:0}),xm=_t(Y2),K2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q2={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"},X2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Q2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X2[e])?!!t[e]:!1}function sp(){return Q2}var Z2=Ee({},pa,{key:function(e){if(e.key){var t=K2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ds(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?q2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:sp,charCode:function(e){return e.type==="keypress"?ds(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ds(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J2=_t(Z2),eO=Ee({},Ol,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Om=_t(eO),tO=Ee({},pa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:sp}),nO=_t(tO),rO=Ee({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),iO=_t(rO),oO=Ee({},Ol,{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}),aO=_t(oO),sO=[9,13,27,32],lp=wn&&"CompositionEvent"in window,go=null;wn&&"documentMode"in document&&(go=document.documentMode);var lO=wn&&"TextEvent"in window&&!go,N0=wn&&(!lp||go&&8<go&&11>=go),Cm=String.fromCharCode(32),Em=!1;function A0(e,t){switch(e){case"keyup":return sO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function R0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ti=!1;function uO(e,t){switch(e){case"compositionend":return R0(t);case"keypress":return t.which!==32?null:(Em=!0,Cm);case"textInput":return e=t.data,e===Cm&&Em?null:e;default:return null}}function cO(e,t){if(ti)return e==="compositionend"||!lp&&A0(e,t)?(e=L0(),fs=op=In=null,ti=!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 N0&&t.locale!=="ko"?null:t.data;default:return null}}var fO={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 Pm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fO[e.type]:t==="textarea"}function M0(e,t,n,r){d0(r),t=Rs(t,"onChange"),0<t.length&&(n=new ap("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yo=null,$o=null;function dO(e){G0(e,0)}function Cl(e){var t=ii(e);if(o0(t))return e}function pO(e,t){if(e==="change")return t}var j0=!1;if(wn){var zu;if(wn){var Bu="oninput"in document;if(!Bu){var Tm=document.createElement("div");Tm.setAttribute("oninput","return;"),Bu=typeof Tm.oninput=="function"}zu=Bu}else zu=!1;j0=zu&&(!document.documentMode||9<document.documentMode)}function _m(){yo&&(yo.detachEvent("onpropertychange",I0),$o=yo=null)}function I0(e){if(e.propertyName==="value"&&Cl($o)){var t=[];M0(t,$o,e,ep(e)),v0(dO,t)}}function hO(e,t,n){e==="focusin"?(_m(),yo=t,$o=n,yo.attachEvent("onpropertychange",I0)):e==="focusout"&&_m()}function mO(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cl($o)}function vO(e,t){if(e==="click")return Cl(t)}function gO(e,t){if(e==="input"||e==="change")return Cl(t)}function yO(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:yO;function Fo(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Gc.call(t,i)||!Gt(e[i],t[i]))return!1}return!0}function km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dm(e,t){var n=km(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=km(n)}}function V0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?V0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $0(){for(var e=window,t=Ts();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ts(e.document)}return t}function up(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wO(e){var t=$0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&V0(n.ownerDocument.documentElement,n)){if(r!==null&&up(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Dm(n,o);var a=Dm(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var SO=wn&&"documentMode"in document&&11>=document.documentMode,ni=null,df=null,wo=null,pf=!1;function Lm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;pf||ni==null||ni!==Ts(r)||(r=ni,"selectionStart"in r&&up(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}),wo&&Fo(wo,r)||(wo=r,r=Rs(df,"onSelect"),0<r.length&&(t=new ap("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ni)))}function Ha(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ri={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionend:Ha("Transition","TransitionEnd")},Uu={},F0={};wn&&(F0=document.createElement("div").style,"AnimationEvent"in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),"TransitionEvent"in window||delete ri.transitionend.transition);function El(e){if(Uu[e])return Uu[e];if(!ri[e])return e;var t=ri[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in F0)return Uu[e]=t[n];return e}var z0=El("animationend"),B0=El("animationiteration"),U0=El("animationstart"),W0=El("transitionend"),H0=new Map,Nm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ir(e,t){H0.set(e,t),Ir(t,[e])}for(var Wu=0;Wu<Nm.length;Wu++){var Hu=Nm[Wu],bO=Hu.toLowerCase(),xO=Hu[0].toUpperCase()+Hu.slice(1);ir(bO,"on"+xO)}ir(z0,"onAnimationEnd");ir(B0,"onAnimationIteration");ir(U0,"onAnimationStart");ir("dblclick","onDoubleClick");ir("focusin","onFocus");ir("focusout","onBlur");ir(W0,"onTransitionEnd");Ti("onMouseEnter",["mouseout","mouseover"]);Ti("onMouseLeave",["mouseout","mouseover"]);Ti("onPointerEnter",["pointerout","pointerover"]);Ti("onPointerLeave",["pointerout","pointerover"]);Ir("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ir("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ir("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ir("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ir("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fo="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(" "),OO=new Set("cancel close invalid load scroll toggle".split(" ").concat(fo));function Am(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,b2(r,t,void 0,e),e.currentTarget=null}function G0(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Am(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Am(i,s,u),o=l}}}if(ks)throw e=lf,ks=!1,lf=null,e}function me(e,t){var n=t[yf];n===void 0&&(n=t[yf]=new Set);var r=e+"__bubble";n.has(r)||(Y0(t,e,2,!1),n.add(r))}function Gu(e,t,n){var r=0;t&&(r|=4),Y0(n,e,r,t)}var Ga="_reactListening"+Math.random().toString(36).slice(2);function zo(e){if(!e[Ga]){e[Ga]=!0,e0.forEach(function(n){n!=="selectionchange"&&(OO.has(n)||Gu(n,!1,e),Gu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ga]||(t[Ga]=!0,Gu("selectionchange",!1,t))}}function Y0(e,t,n,r){switch(D0(t)){case 1:var i=I2;break;case 4:i=V2;break;default:i=ip}n=i.bind(null,t,n,e),i=void 0,!sf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Yu(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=gr(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}v0(function(){var u=o,c=ep(n),f=[];e:{var d=H0.get(e);if(d!==void 0){var h=ap,v=e;switch(e){case"keypress":if(ds(n)===0)break e;case"keydown":case"keyup":h=J2;break;case"focusin":v="focus",h=Fu;break;case"focusout":v="blur",h=Fu;break;case"beforeblur":case"afterblur":h=Fu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=z2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=nO;break;case z0:case B0:case U0:h=W2;break;case W0:h=iO;break;case"scroll":h=$2;break;case"wheel":h=aO;break;case"copy":case"cut":case"paste":h=G2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Om}var g=(t&4)!==0,S=!g&&e==="scroll",p=g?d!==null?d+"Capture":null:d;g=[];for(var m=u,y;m!==null;){y=m;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,p!==null&&(w=Mo(m,p),w!=null&&g.push(Bo(m,w,y)))),S)break;m=m.return}0<g.length&&(d=new h(d,v,null,n,c),f.push({event:d,listeners:g}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==of&&(v=n.relatedTarget||n.fromElement)&&(gr(v)||v[Sn]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=u,v=v?gr(v):null,v!==null&&(S=Vr(v),v!==S||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(g=bm,w="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(g=Om,w="onPointerLeave",p="onPointerEnter",m="pointer"),S=h==null?d:ii(h),y=v==null?d:ii(v),d=new g(w,m+"leave",h,n,c),d.target=S,d.relatedTarget=y,w=null,gr(c)===u&&(g=new g(p,m+"enter",v,n,c),g.target=y,g.relatedTarget=S,w=g),S=w,h&&v)t:{for(g=h,p=v,m=0,y=g;y;y=Xr(y))m++;for(y=0,w=p;w;w=Xr(w))y++;for(;0<m-y;)g=Xr(g),m--;for(;0<y-m;)p=Xr(p),y--;for(;m--;){if(g===p||p!==null&&g===p.alternate)break t;g=Xr(g),p=Xr(p)}g=null}else g=null;h!==null&&Rm(f,d,h,g,!1),v!==null&&S!==null&&Rm(f,S,v,g,!0)}}e:{if(d=u?ii(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var C=pO;else if(Pm(d))if(j0)C=gO;else{C=mO;var O=hO}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=vO);if(C&&(C=C(e,u))){M0(f,C,n,c);break e}O&&O(e,d,u),e==="focusout"&&(O=d._wrapperState)&&O.controlled&&d.type==="number"&&Jc(d,"number",d.value)}switch(O=u?ii(u):window,e){case"focusin":(Pm(O)||O.contentEditable==="true")&&(ni=O,df=u,wo=null);break;case"focusout":wo=df=ni=null;break;case"mousedown":pf=!0;break;case"contextmenu":case"mouseup":case"dragend":pf=!1,Lm(f,n,c);break;case"selectionchange":if(SO)break;case"keydown":case"keyup":Lm(f,n,c)}var P;if(lp)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else ti?A0(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(N0&&n.locale!=="ko"&&(ti||E!=="onCompositionStart"?E==="onCompositionEnd"&&ti&&(P=L0()):(In=c,op="value"in In?In.value:In.textContent,ti=!0)),O=Rs(u,E),0<O.length&&(E=new xm(E,e,null,n,c),f.push({event:E,listeners:O}),P?E.data=P:(P=R0(n),P!==null&&(E.data=P)))),(P=lO?uO(e,n):cO(e,n))&&(u=Rs(u,"onBeforeInput"),0<u.length&&(c=new xm("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=P))}G0(f,t)})}function Bo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rs(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Mo(e,n),o!=null&&r.unshift(Bo(e,o,i)),o=Mo(e,t),o!=null&&r.push(Bo(e,o,i))),e=e.return}return r}function Xr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Rm(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=Mo(n,o),l!=null&&a.unshift(Bo(n,l,s))):i||(l=Mo(n,o),l!=null&&a.push(Bo(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var CO=/\r\n?/g,EO=/\u0000|\uFFFD/g;function Mm(e){return(typeof e=="string"?e:""+e).replace(CO,`
|
||
`).replace(EO,"")}function Ya(e,t,n){if(t=Mm(t),Mm(e)!==t&&n)throw Error(V(425))}function Ms(){}var hf=null,mf=null;function vf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gf=typeof setTimeout=="function"?setTimeout:void 0,PO=typeof clearTimeout=="function"?clearTimeout:void 0,jm=typeof Promise=="function"?Promise:void 0,TO=typeof queueMicrotask=="function"?queueMicrotask:typeof jm<"u"?function(e){return jm.resolve(null).then(e).catch(_O)}:gf;function _O(e){setTimeout(function(){throw e})}function Ku(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==="/$"){if(r===0){e.removeChild(i),Vo(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Vo(t)}function Gn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Im(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zi=Math.random().toString(36).slice(2),Jt="__reactFiber$"+zi,Uo="__reactProps$"+zi,Sn="__reactContainer$"+zi,yf="__reactEvents$"+zi,kO="__reactListeners$"+zi,DO="__reactHandles$"+zi;function gr(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Im(e);e!==null;){if(n=e[Jt])return n;e=Im(e)}return t}e=n,n=e.parentNode}return null}function ha(e){return e=e[Jt]||e[Sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ii(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(V(33))}function Pl(e){return e[Uo]||null}var wf=[],oi=-1;function or(e){return{current:e}}function ve(e){0>oi||(e.current=wf[oi],wf[oi]=null,oi--)}function pe(e,t){oi++,wf[oi]=e.current,e.current=t}var Jn={},ot=or(Jn),ht=or(!1),Er=Jn;function _i(e,t){var n=e.type.contextTypes;if(!n)return Jn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mt(e){return e=e.childContextTypes,e!=null}function js(){ve(ht),ve(ot)}function Vm(e,t,n){if(ot.current!==Jn)throw Error(V(168));pe(ot,t),pe(ht,n)}function K0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(V(108,h2(e)||"Unknown",i));return Ee({},n,r)}function Is(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,Er=ot.current,pe(ot,e),pe(ht,ht.current),!0}function $m(e,t,n){var r=e.stateNode;if(!r)throw Error(V(169));n?(e=K0(e,t,Er),r.__reactInternalMemoizedMergedChildContext=e,ve(ht),ve(ot),pe(ot,e)):ve(ht),pe(ht,n)}var dn=null,Tl=!1,qu=!1;function q0(e){dn===null?dn=[e]:dn.push(e)}function LO(e){Tl=!0,q0(e)}function ar(){if(!qu&&dn!==null){qu=!0;var e=0,t=se;try{var n=dn;for(se=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dn=null,Tl=!1}catch(i){throw dn!==null&&(dn=dn.slice(e+1)),S0(tp,ar),i}finally{se=t,qu=!1}}return null}var ai=[],si=0,Vs=null,$s=0,Lt=[],Nt=0,Pr=null,pn=1,hn="";function dr(e,t){ai[si++]=$s,ai[si++]=Vs,Vs=e,$s=t}function X0(e,t,n){Lt[Nt++]=pn,Lt[Nt++]=hn,Lt[Nt++]=Pr,Pr=e;var r=pn;e=hn;var i=32-Wt(r)-1;r&=~(1<<i),n+=1;var o=32-Wt(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,pn=1<<32-Wt(t)+i|n<<i|r,hn=o+e}else pn=1<<o|n<<i|r,hn=e}function cp(e){e.return!==null&&(dr(e,1),X0(e,1,0))}function fp(e){for(;e===Vs;)Vs=ai[--si],ai[si]=null,$s=ai[--si],ai[si]=null;for(;e===Pr;)Pr=Lt[--Nt],Lt[Nt]=null,hn=Lt[--Nt],Lt[Nt]=null,pn=Lt[--Nt],Lt[Nt]=null}var Ot=null,xt=null,ye=!1,Bt=null;function Q0(e,t){var n=At(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Fm(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ot=e,xt=Gn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ot=e,xt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pr!==null?{id:pn,overflow:hn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=At(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ot=e,xt=null,!0):!1;default:return!1}}function Sf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bf(e){if(ye){var t=xt;if(t){var n=t;if(!Fm(e,t)){if(Sf(e))throw Error(V(418));t=Gn(n.nextSibling);var r=Ot;t&&Fm(e,t)?Q0(r,n):(e.flags=e.flags&-4097|2,ye=!1,Ot=e)}}else{if(Sf(e))throw Error(V(418));e.flags=e.flags&-4097|2,ye=!1,Ot=e}}}function zm(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ot=e}function Ka(e){if(e!==Ot)return!1;if(!ye)return zm(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!vf(e.type,e.memoizedProps)),t&&(t=xt)){if(Sf(e))throw Z0(),Error(V(418));for(;t;)Q0(e,t),t=Gn(t.nextSibling)}if(zm(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(V(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){xt=Gn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}xt=null}}else xt=Ot?Gn(e.stateNode.nextSibling):null;return!0}function Z0(){for(var e=xt;e;)e=Gn(e.nextSibling)}function ki(){xt=Ot=null,ye=!1}function dp(e){Bt===null?Bt=[e]:Bt.push(e)}var NO=Cn.ReactCurrentBatchConfig;function Ft(e,t){if(e&&e.defaultProps){t=Ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Fs=or(null),zs=null,li=null,pp=null;function hp(){pp=li=zs=null}function mp(e){var t=Fs.current;ve(Fs),e._currentValue=t}function xf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wi(e,t){zs=e,pp=li=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(pt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(pp!==e)if(e={context:e,memoizedValue:t,next:null},li===null){if(zs===null)throw Error(V(308));li=e,zs.dependencies={lanes:0,firstContext:e}}else li=li.next=e;return t}var yr=null;function vp(e){yr===null?yr=[e]:yr.push(e)}function J0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,vp(t)):(n.next=i.next,i.next=n),t.interleaved=n,bn(e,r)}function bn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nn=!1;function gp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function e1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ae&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,bn(e,n)}return i=r.interleaved,i===null?(t.next=t,vp(r)):(t.next=i.next,i.next=t),r.interleaved=t,bn(e,n)}function ps(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,np(e,n)}}function Bm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Bs(e,t,n,r){var i=e.updateQueue;Nn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,c=u=l=null,s=o;do{var d=s.lane,h=s.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,g=s;switch(d=t,h=n,g.tag){case 1:if(v=g.payload,typeof v=="function"){f=v.call(h,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=g.payload,d=typeof v=="function"?v.call(h,f,d):v,d==null)break e;f=Ee({},f,d);break e;case 2:Nn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);_r|=a,e.lanes=a,e.memoizedState=f}}function Um(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(V(191,i));i.call(r)}}}var t1=new Jy.Component().refs;function Of(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _l={isMounted:function(e){return(e=e._reactInternals)?Vr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lt(),i=qn(e),o=mn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Yn(e,o,i),t!==null&&(Ht(t,e,i,r),ps(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lt(),i=qn(e),o=mn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Yn(e,o,i),t!==null&&(Ht(t,e,i,r),ps(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lt(),r=qn(e),i=mn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Yn(e,i,r),t!==null&&(Ht(t,e,r,n),ps(t,e,r))}};function Wm(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Fo(n,r)||!Fo(i,o):!0}function n1(e,t,n){var r=!1,i=Jn,o=t.contextType;return typeof o=="object"&&o!==null?o=Mt(o):(i=mt(t)?Er:ot.current,r=t.contextTypes,o=(r=r!=null)?_i(e,i):Jn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_l,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Hm(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&&_l.enqueueReplaceState(t,t.state,null)}function Cf(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=t1,gp(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Mt(o):(o=mt(t)?Er:ot.current,i.context=_i(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Of(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&_l.enqueueReplaceState(i,i.state,null),Bs(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ji(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(V(309));var r=n.stateNode}if(!r)throw Error(V(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;s===t1&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(V(284));if(!n._owner)throw Error(V(290,e))}return e}function qa(e,t){throw e=Object.prototype.toString.call(t),Error(V(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gm(e){var t=e._init;return t(e._payload)}function r1(e){function t(p,m){if(e){var y=p.deletions;y===null?(p.deletions=[m],p.flags|=16):y.push(m)}}function n(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function r(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function i(p,m){return p=Xn(p,m),p.index=0,p.sibling=null,p}function o(p,m,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<m?(p.flags|=2,m):y):(p.flags|=2,m)):(p.flags|=1048576,m)}function a(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,m,y,w){return m===null||m.tag!==6?(m=nc(y,p.mode,w),m.return=p,m):(m=i(m,y),m.return=p,m)}function l(p,m,y,w){var C=y.type;return C===ei?c(p,m,y.props.children,w,y.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ln&&Gm(C)===m.type)?(w=i(m,y.props),w.ref=Ji(p,m,y),w.return=p,w):(w=ws(y.type,y.key,y.props,null,p.mode,w),w.ref=Ji(p,m,y),w.return=p,w)}function u(p,m,y,w){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=rc(y,p.mode,w),m.return=p,m):(m=i(m,y.children||[]),m.return=p,m)}function c(p,m,y,w,C){return m===null||m.tag!==7?(m=xr(y,p.mode,w,C),m.return=p,m):(m=i(m,y),m.return=p,m)}function f(p,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=nc(""+m,p.mode,y),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Va:return y=ws(m.type,m.key,m.props,null,p.mode,y),y.ref=Ji(p,null,m),y.return=p,y;case Jr:return m=rc(m,p.mode,y),m.return=p,m;case Ln:var w=m._init;return f(p,w(m._payload),y)}if(uo(m)||Ki(m))return m=xr(m,p.mode,y,null),m.return=p,m;qa(p,m)}return null}function d(p,m,y,w){var C=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:s(p,m,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Va:return y.key===C?l(p,m,y,w):null;case Jr:return y.key===C?u(p,m,y,w):null;case Ln:return C=y._init,d(p,m,C(y._payload),w)}if(uo(y)||Ki(y))return C!==null?null:c(p,m,y,w,null);qa(p,y)}return null}function h(p,m,y,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(y)||null,s(m,p,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Va:return p=p.get(w.key===null?y:w.key)||null,l(m,p,w,C);case Jr:return p=p.get(w.key===null?y:w.key)||null,u(m,p,w,C);case Ln:var O=w._init;return h(p,m,y,O(w._payload),C)}if(uo(w)||Ki(w))return p=p.get(y)||null,c(m,p,w,C,null);qa(m,w)}return null}function v(p,m,y,w){for(var C=null,O=null,P=m,E=m=0,A=null;P!==null&&E<y.length;E++){P.index>E?(A=P,P=null):A=P.sibling;var I=d(p,P,y[E],w);if(I===null){P===null&&(P=A);break}e&&P&&I.alternate===null&&t(p,P),m=o(I,m,E),O===null?C=I:O.sibling=I,O=I,P=A}if(E===y.length)return n(p,P),ye&&dr(p,E),C;if(P===null){for(;E<y.length;E++)P=f(p,y[E],w),P!==null&&(m=o(P,m,E),O===null?C=P:O.sibling=P,O=P);return ye&&dr(p,E),C}for(P=r(p,P);E<y.length;E++)A=h(P,p,E,y[E],w),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?E:A.key),m=o(A,m,E),O===null?C=A:O.sibling=A,O=A);return e&&P.forEach(function(k){return t(p,k)}),ye&&dr(p,E),C}function g(p,m,y,w){var C=Ki(y);if(typeof C!="function")throw Error(V(150));if(y=C.call(y),y==null)throw Error(V(151));for(var O=C=null,P=m,E=m=0,A=null,I=y.next();P!==null&&!I.done;E++,I=y.next()){P.index>E?(A=P,P=null):A=P.sibling;var k=d(p,P,I.value,w);if(k===null){P===null&&(P=A);break}e&&P&&k.alternate===null&&t(p,P),m=o(k,m,E),O===null?C=k:O.sibling=k,O=k,P=A}if(I.done)return n(p,P),ye&&dr(p,E),C;if(P===null){for(;!I.done;E++,I=y.next())I=f(p,I.value,w),I!==null&&(m=o(I,m,E),O===null?C=I:O.sibling=I,O=I);return ye&&dr(p,E),C}for(P=r(p,P);!I.done;E++,I=y.next())I=h(P,p,E,I.value,w),I!==null&&(e&&I.alternate!==null&&P.delete(I.key===null?E:I.key),m=o(I,m,E),O===null?C=I:O.sibling=I,O=I);return e&&P.forEach(function(L){return t(p,L)}),ye&&dr(p,E),C}function S(p,m,y,w){if(typeof y=="object"&&y!==null&&y.type===ei&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Va:e:{for(var C=y.key,O=m;O!==null;){if(O.key===C){if(C=y.type,C===ei){if(O.tag===7){n(p,O.sibling),m=i(O,y.props.children),m.return=p,p=m;break e}}else if(O.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ln&&Gm(C)===O.type){n(p,O.sibling),m=i(O,y.props),m.ref=Ji(p,O,y),m.return=p,p=m;break e}n(p,O);break}else t(p,O);O=O.sibling}y.type===ei?(m=xr(y.props.children,p.mode,w,y.key),m.return=p,p=m):(w=ws(y.type,y.key,y.props,null,p.mode,w),w.ref=Ji(p,m,y),w.return=p,p=w)}return a(p);case Jr:e:{for(O=y.key;m!==null;){if(m.key===O)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(p,m.sibling),m=i(m,y.children||[]),m.return=p,p=m;break e}else{n(p,m);break}else t(p,m);m=m.sibling}m=rc(y,p.mode,w),m.return=p,p=m}return a(p);case Ln:return O=y._init,S(p,m,O(y._payload),w)}if(uo(y))return v(p,m,y,w);if(Ki(y))return g(p,m,y,w);qa(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(p,m.sibling),m=i(m,y),m.return=p,p=m):(n(p,m),m=nc(y,p.mode,w),m.return=p,p=m),a(p)):n(p,m)}return S}var Di=r1(!0),i1=r1(!1),ma={},nn=or(ma),Wo=or(ma),Ho=or(ma);function wr(e){if(e===ma)throw Error(V(174));return e}function yp(e,t){switch(pe(Ho,t),pe(Wo,e),pe(nn,ma),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:tf(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=tf(t,e)}ve(nn),pe(nn,t)}function Li(){ve(nn),ve(Wo),ve(Ho)}function o1(e){wr(Ho.current);var t=wr(nn.current),n=tf(t,e.type);t!==n&&(pe(Wo,e),pe(nn,n))}function wp(e){Wo.current===e&&(ve(nn),ve(Wo))}var Oe=or(0);function Us(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xu=[];function Sp(){for(var e=0;e<Xu.length;e++)Xu[e]._workInProgressVersionPrimary=null;Xu.length=0}var hs=Cn.ReactCurrentDispatcher,Qu=Cn.ReactCurrentBatchConfig,Tr=0,Ce=null,Ve=null,Ue=null,Ws=!1,So=!1,Go=0,AO=0;function Je(){throw Error(V(321))}function bp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gt(e[n],t[n]))return!1;return!0}function xp(e,t,n,r,i,o){if(Tr=o,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hs.current=e===null||e.memoizedState===null?IO:VO,e=n(r,i),So){o=0;do{if(So=!1,Go=0,25<=o)throw Error(V(301));o+=1,Ue=Ve=null,t.updateQueue=null,hs.current=$O,e=n(r,i)}while(So)}if(hs.current=Hs,t=Ve!==null&&Ve.next!==null,Tr=0,Ue=Ve=Ce=null,Ws=!1,t)throw Error(V(300));return e}function Op(){var e=Go!==0;return Go=0,e}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?Ce.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function jt(){if(Ve===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Ue===null?Ce.memoizedState:Ue.next;if(t!==null)Ue=t,Ve=e;else{if(e===null)throw Error(V(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Ue===null?Ce.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function Yo(e,t){return typeof t=="function"?t(e):t}function Zu(e){var t=jt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=Ve,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((Tr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=f,a=r):l=l.next=f,Ce.lanes|=c,_r|=c}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,Gt(r,t.memoizedState)||(pt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ce.lanes|=o,_r|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ju(e){var t=jt(),n=t.queue;if(n===null)throw Error(V(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Gt(o,t.memoizedState)||(pt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function a1(){}function s1(e,t){var n=Ce,r=jt(),i=t(),o=!Gt(r.memoizedState,i);if(o&&(r.memoizedState=i,pt=!0),r=r.queue,Cp(c1.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ue!==null&&Ue.memoizedState.tag&1){if(n.flags|=2048,Ko(9,u1.bind(null,n,r,i,t),void 0,null),He===null)throw Error(V(349));Tr&30||l1(n,t,i)}return i}function l1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function u1(e,t,n,r){t.value=n,t.getSnapshot=r,f1(t)&&d1(e)}function c1(e,t,n){return n(function(){f1(t)&&d1(e)})}function f1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gt(e,n)}catch{return!0}}function d1(e){var t=bn(e,1);t!==null&&Ht(t,e,1,-1)}function Ym(e){var t=Qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:e},t.queue=e,e=e.dispatch=jO.bind(null,Ce,e),[t.memoizedState,e]}function Ko(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function p1(){return jt().memoizedState}function ms(e,t,n,r){var i=Qt();Ce.flags|=e,i.memoizedState=Ko(1|t,n,void 0,r===void 0?null:r)}function kl(e,t,n,r){var i=jt();r=r===void 0?null:r;var o=void 0;if(Ve!==null){var a=Ve.memoizedState;if(o=a.destroy,r!==null&&bp(r,a.deps)){i.memoizedState=Ko(t,n,o,r);return}}Ce.flags|=e,i.memoizedState=Ko(1|t,n,o,r)}function Km(e,t){return ms(8390656,8,e,t)}function Cp(e,t){return kl(2048,8,e,t)}function h1(e,t){return kl(4,2,e,t)}function m1(e,t){return kl(4,4,e,t)}function v1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function g1(e,t,n){return n=n!=null?n.concat([e]):null,kl(4,4,v1.bind(null,t,e),n)}function Ep(){}function y1(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function w1(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function S1(e,t,n){return Tr&21?(Gt(n,t)||(n=O0(),Ce.lanes|=n,_r|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,pt=!0),e.memoizedState=n)}function RO(e,t){var n=se;se=n!==0&&4>n?n:4,e(!0);var r=Qu.transition;Qu.transition={};try{e(!1),t()}finally{se=n,Qu.transition=r}}function b1(){return jt().memoizedState}function MO(e,t,n){var r=qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},x1(e))O1(t,n);else if(n=J0(e,t,n,r),n!==null){var i=lt();Ht(n,e,r,i),C1(n,t,r)}}function jO(e,t,n){var r=qn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(x1(e))O1(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Gt(s,a)){var l=t.interleaved;l===null?(i.next=i,vp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=J0(e,t,i,r),n!==null&&(i=lt(),Ht(n,e,r,i),C1(n,t,r))}}function x1(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function O1(e,t){So=Ws=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function C1(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,np(e,n)}}var Hs={readContext:Mt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},IO={readContext:Mt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Km,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ms(4194308,4,v1.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){return ms(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=MO.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Ym,useDebugValue:Ep,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Ym(!1),t=e[0];return e=RO.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,i=Qt();if(ye){if(n===void 0)throw Error(V(407));n=n()}else{if(n=t(),He===null)throw Error(V(349));Tr&30||l1(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Km(c1.bind(null,r,o,e),[e]),r.flags|=2048,Ko(9,u1.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Qt(),t=He.identifierPrefix;if(ye){var n=hn,r=pn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Go++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=AO++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VO={readContext:Mt,useCallback:y1,useContext:Mt,useEffect:Cp,useImperativeHandle:g1,useInsertionEffect:h1,useLayoutEffect:m1,useMemo:w1,useReducer:Zu,useRef:p1,useState:function(){return Zu(Yo)},useDebugValue:Ep,useDeferredValue:function(e){var t=jt();return S1(t,Ve.memoizedState,e)},useTransition:function(){var e=Zu(Yo)[0],t=jt().memoizedState;return[e,t]},useMutableSource:a1,useSyncExternalStore:s1,useId:b1,unstable_isNewReconciler:!1},$O={readContext:Mt,useCallback:y1,useContext:Mt,useEffect:Cp,useImperativeHandle:g1,useInsertionEffect:h1,useLayoutEffect:m1,useMemo:w1,useReducer:Ju,useRef:p1,useState:function(){return Ju(Yo)},useDebugValue:Ep,useDeferredValue:function(e){var t=jt();return Ve===null?t.memoizedState=e:S1(t,Ve.memoizedState,e)},useTransition:function(){var e=Ju(Yo)[0],t=jt().memoizedState;return[e,t]},useMutableSource:a1,useSyncExternalStore:s1,useId:b1,unstable_isNewReconciler:!1};function Ni(e,t){try{var n="",r=t;do n+=p2(r),r=r.return;while(r);var i=n}catch(o){i=`
|
||
Error generating stack: `+o.message+`
|
||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ec(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ef(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var FO=typeof WeakMap=="function"?WeakMap:Map;function E1(e,t,n){n=mn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ys||(Ys=!0,Mf=r),Ef(e,t)},n}function P1(e,t,n){n=mn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ef(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Ef(e,t),typeof r!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function qm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new FO;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)||(i.add(n),e=eC.bind(null,e,t,n),t.then(e,e))}function Xm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Qm(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=mn(-1,1),t.tag=2,Yn(n,t,1))),n.lanes|=1),e)}var zO=Cn.ReactCurrentOwner,pt=!1;function st(e,t,n,r){t.child=e===null?i1(t,null,n,r):Di(t,e.child,n,r)}function Zm(e,t,n,r,i){n=n.render;var o=t.ref;return wi(t,i),r=xp(e,t,n,r,o,i),n=Op(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xn(e,t,i)):(ye&&n&&cp(t),t.flags|=1,st(e,t,r,i),t.child)}function Jm(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ap(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,T1(e,t,o,r,i)):(e=ws(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Fo,n(a,r)&&e.ref===t.ref)return xn(e,t,i)}return t.flags|=1,e=Xn(o,r),e.ref=t.ref,e.return=t,t.child=e}function T1(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Fo(o,r)&&e.ref===t.ref)if(pt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(pt=!0);else return t.lanes=e.lanes,xn(e,t,i)}return Pf(e,t,n,r,i)}function _1(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(ci,wt),wt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(ci,wt),wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,pe(ci,wt),wt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,pe(ci,wt),wt|=r;return st(e,t,i,n),t.child}function k1(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pf(e,t,n,r,i){var o=mt(n)?Er:ot.current;return o=_i(t,o),wi(t,i),n=xp(e,t,n,r,o,i),r=Op(),e!==null&&!pt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xn(e,t,i)):(ye&&r&&cp(t),t.flags|=1,st(e,t,n,i),t.child)}function ev(e,t,n,r,i){if(mt(n)){var o=!0;Is(t)}else o=!1;if(wi(t,i),t.stateNode===null)vs(e,t),n1(t,n,r),Cf(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Mt(u):(u=mt(n)?Er:ot.current,u=_i(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&Hm(t,a,r,u),Nn=!1;var d=t.memoizedState;a.state=d,Bs(t,r,a,i),l=t.memoizedState,s!==r||d!==l||ht.current||Nn?(typeof c=="function"&&(Of(t,n,c,r),l=t.memoizedState),(s=Nn||Wm(t,n,s,r,d,l,u))?(f||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=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,e1(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ft(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Mt(l):(l=mt(n)?Er:ot.current,l=_i(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&Hm(t,a,r,l),Nn=!1,d=t.memoizedState,a.state=d,Bs(t,r,a,i);var v=t.memoizedState;s!==f||d!==v||ht.current||Nn?(typeof h=="function"&&(Of(t,n,h,r),v=t.memoizedState),(u=Nn||Wm(t,n,u,r,d,v,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Tf(e,t,n,r,o,i)}function Tf(e,t,n,r,i,o){k1(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&$m(t,n,!1),xn(e,t,o);r=t.stateNode,zO.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Di(t,e.child,null,o),t.child=Di(t,null,s,o)):st(e,t,s,o),t.memoizedState=r.state,i&&$m(t,n,!0),t.child}function D1(e){var t=e.stateNode;t.pendingContext?Vm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vm(e,t.context,!1),yp(e,t.containerInfo)}function tv(e,t,n,r,i){return ki(),dp(i),t.flags|=256,st(e,t,n,r),t.child}var _f={dehydrated:null,treeContext:null,retryLane:0};function kf(e){return{baseLanes:e,cachePool:null,transitions:null}}function L1(e,t,n){var r=t.pendingProps,i=Oe.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),pe(Oe,i&1),e===null)return bf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Nl(a,r,0,null),e=xr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=kf(n),t.memoizedState=_f,e):Pp(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return BO(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Xn(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Xn(s,o):(o=xr(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?kf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=_f,r}return o=e.child,e=o.sibling,r=Xn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pp(e,t){return t=Nl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Xa(e,t,n,r){return r!==null&&dp(r),Di(t,e.child,null,n),e=Pp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BO(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=ec(Error(V(422))),Xa(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Nl({mode:"visible",children:r.children},i,0,null),o=xr(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Di(t,e.child,null,a),t.child.memoizedState=kf(a),t.memoizedState=_f,o);if(!(t.mode&1))return Xa(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(V(419)),r=ec(o,r,void 0),Xa(e,t,a,r)}if(s=(a&e.childLanes)!==0,pt||s){if(r=He,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,bn(e,i),Ht(r,e,i,-1))}return Np(),r=ec(Error(V(421))),Xa(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=tC.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,xt=Gn(i.nextSibling),Ot=t,ye=!0,Bt=null,e!==null&&(Lt[Nt++]=pn,Lt[Nt++]=hn,Lt[Nt++]=Pr,pn=e.id,hn=e.overflow,Pr=t),t=Pp(t,r.children),t.flags|=4096,t)}function nv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xf(e.return,t,n)}function tc(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function N1(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(st(e,t,r.children,n),r=Oe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nv(e,n,t);else if(e.tag===19)nv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pe(Oe,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Us(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),tc(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Us(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}tc(t,!0,n,null,o);break;case"together":tc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),_r|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(V(153));if(t.child!==null){for(e=t.child,n=Xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function UO(e,t,n){switch(t.tag){case 3:D1(t),ki();break;case 5:o1(t);break;case 1:mt(t.type)&&Is(t);break;case 4:yp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;pe(Fs,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(Oe,Oe.current&1),t.flags|=128,null):n&t.child.childLanes?L1(e,t,n):(pe(Oe,Oe.current&1),e=xn(e,t,n),e!==null?e.sibling:null);pe(Oe,Oe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return N1(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(Oe,Oe.current),r)break;return null;case 22:case 23:return t.lanes=0,_1(e,t,n)}return xn(e,t,n)}var A1,Df,R1,M1;A1=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Df=function(){};R1=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,wr(nn.current);var o=null;switch(n){case"input":i=Qc(e,i),r=Qc(e,r),o=[];break;case"select":i=Ee({},i,{value:void 0}),r=Ee({},r,{value:void 0}),o=[];break;case"textarea":i=ef(e,i),r=ef(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ms)}nf(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ao.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ao.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&me("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};M1=function(e,t,n,r){n!==r&&(t.flags|=4)};function eo(e,t){if(!ye)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 et(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&14680064,r|=i.flags&14680064,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 WO(e,t,n){var r=t.pendingProps;switch(fp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return mt(t.type)&&js(),et(t),null;case 3:return r=t.stateNode,Li(),ve(ht),ve(ot),Sp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ka(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Bt!==null&&(Vf(Bt),Bt=null))),Df(e,t),et(t),null;case 5:wp(t);var i=wr(Ho.current);if(n=t.type,e!==null&&t.stateNode!=null)R1(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(V(166));return et(t),null}if(e=wr(nn.current),Ka(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Jt]=t,r[Uo]=o,e=(t.mode&1)!==0,n){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(i=0;i<fo.length;i++)me(fo[i],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":fm(r,o),me("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},me("invalid",r);break;case"textarea":pm(r,o),me("invalid",r)}nf(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&Ya(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&Ya(r.textContent,s,e),i=["children",""+s]):Ao.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&me("scroll",r)}switch(n){case"input":$a(r),dm(r,o,!0);break;case"textarea":$a(r),hm(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ms)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=l0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Jt]=t,e[Uo]=r,A1(e,t,!1,!1),t.stateNode=e;e:{switch(a=rf(n,r),n){case"dialog":me("cancel",e),me("close",e),i=r;break;case"iframe":case"object":case"embed":me("load",e),i=r;break;case"video":case"audio":for(i=0;i<fo.length;i++)me(fo[i],e);i=r;break;case"source":me("error",e),i=r;break;case"img":case"image":case"link":me("error",e),me("load",e),i=r;break;case"details":me("toggle",e),i=r;break;case"input":fm(e,r),i=Qc(e,r),me("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ee({},r,{value:void 0}),me("invalid",e);break;case"textarea":pm(e,r),i=ef(e,r),me("invalid",e);break;default:i=r}nf(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?f0(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&u0(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ro(e,l):typeof l=="number"&&Ro(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ao.hasOwnProperty(o)?l!=null&&o==="onScroll"&&me("scroll",e):l!=null&&Xd(e,o,l,a))}switch(n){case"input":$a(e),dm(e,r,!1);break;case"textarea":$a(e),hm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?mi(e,!!r.multiple,o,!1):r.defaultValue!=null&&mi(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ms)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)M1(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(V(166));if(n=wr(Ho.current),wr(nn.current),Ka(t)){if(r=t.stateNode,n=t.memoizedProps,r[Jt]=t,(o=r.nodeValue!==n)&&(e=Ot,e!==null))switch(e.tag){case 3:Ya(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ya(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Jt]=t,t.stateNode=r}return et(t),null;case 13:if(ve(Oe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&&xt!==null&&t.mode&1&&!(t.flags&128))Z0(),ki(),t.flags|=98560,o=!1;else if(o=Ka(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(V(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(V(317));o[Jt]=t}else ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),o=!1}else Bt!==null&&(Vf(Bt),Bt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Oe.current&1?$e===0&&($e=3):Np())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return Li(),Df(e,t),e===null&&zo(t.stateNode.containerInfo),et(t),null;case 10:return mp(t.type._context),et(t),null;case 17:return mt(t.type)&&js(),et(t),null;case 19:if(ve(Oe),o=t.memoizedState,o===null)return et(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)eo(o,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Us(e),a!==null){for(t.flags|=128,eo(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(Oe,Oe.current&1|2),t.child}e=e.sibling}o.tail!==null&&ke()>Ai&&(t.flags|=128,r=!0,eo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Us(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),eo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ye)return et(t),null}else 2*ke()-o.renderingStartTime>Ai&&n!==1073741824&&(t.flags|=128,r=!0,eo(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ke(),t.sibling=null,n=Oe.current,pe(Oe,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Lp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?wt&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(V(156,t.tag))}function HO(e,t){switch(fp(t),t.tag){case 1:return mt(t.type)&&js(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Li(),ve(ht),ve(ot),Sp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return wp(t),null;case 13:if(ve(Oe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(V(340));ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(Oe),null;case 4:return Li(),null;case 10:return mp(t.type._context),null;case 22:case 23:return Lp(),null;case 24:return null;default:return null}}var Qa=!1,rt=!1,GO=typeof WeakSet=="function"?WeakSet:Set,G=null;function ui(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Pe(e,t,r)}else n.current=null}function Lf(e,t,n){try{n()}catch(r){Pe(e,t,r)}}var rv=!1;function YO(e,t){if(hf=Ns,e=$0(),up(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(s=a),d===o&&++c===r&&(l=a),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(mf={focusedElem:e,selectionRange:n},Ns=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var g=v.memoizedProps,S=v.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ft(t.type,g),S);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(V(163))}}catch(w){Pe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return v=rv,rv=!1,v}function bo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Lf(t,n,o)}i=i.next}while(i!==r)}}function Dl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Nf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function j1(e){var t=e.alternate;t!==null&&(e.alternate=null,j1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[Uo],delete t[yf],delete t[kO],delete t[DO])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function I1(e){return e.tag===5||e.tag===3||e.tag===4}function iv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||I1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Af(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ms));else if(r!==4&&(e=e.child,e!==null))for(Af(e,t,n),e=e.sibling;e!==null;)Af(e,t,n),e=e.sibling}function Rf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Rf(e,t,n),e=e.sibling;e!==null;)Rf(e,t,n),e=e.sibling}var qe=null,zt=!1;function _n(e,t,n){for(n=n.child;n!==null;)V1(e,t,n),n=n.sibling}function V1(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:rt||ui(n,t);case 6:var r=qe,i=zt;qe=null,_n(e,t,n),qe=r,zt=i,qe!==null&&(zt?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(zt?(e=qe,n=n.stateNode,e.nodeType===8?Ku(e.parentNode,n):e.nodeType===1&&Ku(e,n),Vo(e)):Ku(qe,n.stateNode));break;case 4:r=qe,i=zt,qe=n.stateNode.containerInfo,zt=!0,_n(e,t,n),qe=r,zt=i;break;case 0:case 11:case 14:case 15:if(!rt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Lf(n,t,a),i=i.next}while(i!==r)}_n(e,t,n);break;case 1:if(!rt&&(ui(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Pe(n,t,s)}_n(e,t,n);break;case 21:_n(e,t,n);break;case 22:n.mode&1?(rt=(r=rt)||n.memoizedState!==null,_n(e,t,n),rt=r):_n(e,t,n);break;default:_n(e,t,n)}}function ov(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new GO),t.forEach(function(r){var i=nC.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:qe=s.stateNode,zt=!1;break e;case 3:qe=s.stateNode.containerInfo,zt=!0;break e;case 4:qe=s.stateNode.containerInfo,zt=!0;break e}s=s.return}if(qe===null)throw Error(V(160));V1(o,a,i),qe=null,zt=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Pe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$1(t,e),t=t.sibling}function $1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Vt(t,e),Kt(e),r&4){try{bo(3,e,e.return),Dl(3,e)}catch(g){Pe(e,e.return,g)}try{bo(5,e,e.return)}catch(g){Pe(e,e.return,g)}}break;case 1:Vt(t,e),Kt(e),r&512&&n!==null&&ui(n,n.return);break;case 5:if(Vt(t,e),Kt(e),r&512&&n!==null&&ui(n,n.return),e.flags&32){var i=e.stateNode;try{Ro(i,"")}catch(g){Pe(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&a0(i,o),rf(s,a);var u=rf(s,o);for(a=0;a<l.length;a+=2){var c=l[a],f=l[a+1];c==="style"?f0(i,f):c==="dangerouslySetInnerHTML"?u0(i,f):c==="children"?Ro(i,f):Xd(i,c,f,u)}switch(s){case"input":Zc(i,o);break;case"textarea":s0(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?mi(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?mi(i,!!o.multiple,o.defaultValue,!0):mi(i,!!o.multiple,o.multiple?[]:"",!1))}i[Uo]=o}catch(g){Pe(e,e.return,g)}}break;case 6:if(Vt(t,e),Kt(e),r&4){if(e.stateNode===null)throw Error(V(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){Pe(e,e.return,g)}}break;case 3:if(Vt(t,e),Kt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vo(t.containerInfo)}catch(g){Pe(e,e.return,g)}break;case 4:Vt(t,e),Kt(e);break;case 13:Vt(t,e),Kt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(kp=ke())),r&4&&ov(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(rt=(u=rt)||c,Vt(t,e),rt=u):Vt(t,e),Kt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(G=e,c=e.child;c!==null;){for(f=G=c;G!==null;){switch(d=G,h=d.child,d.tag){case 0:case 11:case 14:case 15:bo(4,d,d.return);break;case 1:ui(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(g){Pe(r,n,g)}}break;case 5:ui(d,d.return);break;case 22:if(d.memoizedState!==null){sv(f);continue}}h!==null?(h.return=d,G=h):sv(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=c0("display",a))}catch(g){Pe(e,e.return,g)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Pe(e,e.return,g)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Vt(t,e),Kt(e),r&4&&ov(e);break;case 21:break;default:Vt(t,e),Kt(e)}}function Kt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(I1(n)){var r=n;break e}n=n.return}throw Error(V(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ro(i,""),r.flags&=-33);var o=iv(e);Rf(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=iv(e);Af(e,s,a);break;default:throw Error(V(161))}}catch(l){Pe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function KO(e,t,n){G=e,F1(e)}function F1(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var i=G,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Qa;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||rt;s=Qa;var u=rt;if(Qa=a,(rt=l)&&!u)for(G=i;G!==null;)a=G,l=a.child,a.tag===22&&a.memoizedState!==null?lv(i):l!==null?(l.return=a,G=l):lv(i);for(;o!==null;)G=o,F1(o),o=o.sibling;G=i,Qa=s,rt=u}av(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,G=o):av(e)}}function av(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rt||Dl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!rt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ft(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Um(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Um(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Vo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(V(163))}rt||t.flags&512&&Nf(t)}catch(d){Pe(t,t.return,d)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function sv(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function lv(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Dl(4,t)}catch(l){Pe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Pe(t,i,l)}}var o=t.return;try{Nf(t)}catch(l){Pe(t,o,l)}break;case 5:var a=t.return;try{Nf(t)}catch(l){Pe(t,a,l)}}}catch(l){Pe(t,t.return,l)}if(t===e){G=null;break}var s=t.sibling;if(s!==null){s.return=t.return,G=s;break}G=t.return}}var qO=Math.ceil,Gs=Cn.ReactCurrentDispatcher,Tp=Cn.ReactCurrentOwner,Rt=Cn.ReactCurrentBatchConfig,ae=0,He=null,Re=null,Xe=0,wt=0,ci=or(0),$e=0,qo=null,_r=0,Ll=0,_p=0,xo=null,dt=null,kp=0,Ai=1/0,fn=null,Ys=!1,Mf=null,Kn=null,Za=!1,Vn=null,Ks=0,Oo=0,jf=null,gs=-1,ys=0;function lt(){return ae&6?ke():gs!==-1?gs:gs=ke()}function qn(e){return e.mode&1?ae&2&&Xe!==0?Xe&-Xe:NO.transition!==null?(ys===0&&(ys=O0()),ys):(e=se,e!==0||(e=window.event,e=e===void 0?16:D0(e.type)),e):1}function Ht(e,t,n,r){if(50<Oo)throw Oo=0,jf=null,Error(V(185));da(e,n,r),(!(ae&2)||e!==He)&&(e===He&&(!(ae&2)&&(Ll|=n),$e===4&&Mn(e,Xe)),vt(e,r),n===1&&ae===0&&!(t.mode&1)&&(Ai=ke()+500,Tl&&ar()))}function vt(e,t){var n=e.callbackNode;N2(e,t);var r=Ls(e,e===He?Xe:0);if(r===0)n!==null&&gm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gm(n),t===1)e.tag===0?LO(uv.bind(null,e)):q0(uv.bind(null,e)),TO(function(){!(ae&6)&&ar()}),n=null;else{switch(C0(r)){case 1:n=tp;break;case 4:n=b0;break;case 16:n=Ds;break;case 536870912:n=x0;break;default:n=Ds}n=K1(n,z1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function z1(e,t){if(gs=-1,ys=0,ae&6)throw Error(V(327));var n=e.callbackNode;if(Si()&&e.callbackNode!==n)return null;var r=Ls(e,e===He?Xe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=qs(e,r);else{t=r;var i=ae;ae|=2;var o=U1();(He!==e||Xe!==t)&&(fn=null,Ai=ke()+500,br(e,t));do try{ZO();break}catch(s){B1(e,s)}while(1);hp(),Gs.current=o,ae=i,Re!==null?t=0:(He=null,Xe=0,t=$e)}if(t!==0){if(t===2&&(i=uf(e),i!==0&&(r=i,t=If(e,i))),t===1)throw n=qo,br(e,0),Mn(e,r),vt(e,ke()),n;if(t===6)Mn(e,r);else{if(i=e.current.alternate,!(r&30)&&!XO(i)&&(t=qs(e,r),t===2&&(o=uf(e),o!==0&&(r=o,t=If(e,o))),t===1))throw n=qo,br(e,0),Mn(e,r),vt(e,ke()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(V(345));case 2:pr(e,dt,fn);break;case 3:if(Mn(e,r),(r&130023424)===r&&(t=kp+500-ke(),10<t)){if(Ls(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){lt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=gf(pr.bind(null,e,dt,fn),t);break}pr(e,dt,fn);break;case 4:if(Mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Wt(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qO(r/1960))-r,10<r){e.timeoutHandle=gf(pr.bind(null,e,dt,fn),r);break}pr(e,dt,fn);break;case 5:pr(e,dt,fn);break;default:throw Error(V(329))}}}return vt(e,ke()),e.callbackNode===n?z1.bind(null,e):null}function If(e,t){var n=xo;return e.current.memoizedState.isDehydrated&&(br(e,t).flags|=256),e=qs(e,t),e!==2&&(t=dt,dt=n,t!==null&&Vf(t)),e}function Vf(e){dt===null?dt=e:dt.push.apply(dt,e)}function XO(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Gt(o(),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 Mn(e,t){for(t&=~_p,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function uv(e){if(ae&6)throw Error(V(327));Si();var t=Ls(e,0);if(!(t&1))return vt(e,ke()),null;var n=qs(e,t);if(e.tag!==0&&n===2){var r=uf(e);r!==0&&(t=r,n=If(e,r))}if(n===1)throw n=qo,br(e,0),Mn(e,t),vt(e,ke()),n;if(n===6)throw Error(V(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,pr(e,dt,fn),vt(e,ke()),null}function Dp(e,t){var n=ae;ae|=1;try{return e(t)}finally{ae=n,ae===0&&(Ai=ke()+500,Tl&&ar())}}function kr(e){Vn!==null&&Vn.tag===0&&!(ae&6)&&Si();var t=ae;ae|=1;var n=Rt.transition,r=se;try{if(Rt.transition=null,se=1,e)return e()}finally{se=r,Rt.transition=n,ae=t,!(ae&6)&&ar()}}function Lp(){wt=ci.current,ve(ci)}function br(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,PO(n)),Re!==null)for(n=Re.return;n!==null;){var r=n;switch(fp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&js();break;case 3:Li(),ve(ht),ve(ot),Sp();break;case 5:wp(r);break;case 4:Li();break;case 13:ve(Oe);break;case 19:ve(Oe);break;case 10:mp(r.type._context);break;case 22:case 23:Lp()}n=n.return}if(He=e,Re=e=Xn(e.current,null),Xe=wt=t,$e=0,qo=null,_p=Ll=_r=0,dt=xo=null,yr!==null){for(t=0;t<yr.length;t++)if(n=yr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}yr=null}return e}function B1(e,t){do{var n=Re;try{if(hp(),hs.current=Hs,Ws){for(var r=Ce.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ws=!1}if(Tr=0,Ue=Ve=Ce=null,So=!1,Go=0,Tp.current=null,n===null||n.return===null){$e=1,qo=t,Re=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=Xe,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Xm(a);if(h!==null){h.flags&=-257,Qm(h,a,s,o,t),h.mode&1&&qm(o,u,t),t=h,l=u;var v=t.updateQueue;if(v===null){var g=new Set;g.add(l),t.updateQueue=g}else v.add(l);break e}else{if(!(t&1)){qm(o,u,t),Np();break e}l=Error(V(426))}}else if(ye&&s.mode&1){var S=Xm(a);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Qm(S,a,s,o,t),dp(Ni(l,s));break e}}o=l=Ni(l,s),$e!==4&&($e=2),xo===null?xo=[o]:xo.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=E1(o,l,t);Bm(o,p);break e;case 1:s=l;var m=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Kn===null||!Kn.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var w=P1(o,s,t);Bm(o,w);break e}}o=o.return}while(o!==null)}H1(n)}catch(C){t=C,Re===n&&n!==null&&(Re=n=n.return);continue}break}while(1)}function U1(){var e=Gs.current;return Gs.current=Hs,e===null?Hs:e}function Np(){($e===0||$e===3||$e===2)&&($e=4),He===null||!(_r&268435455)&&!(Ll&268435455)||Mn(He,Xe)}function qs(e,t){var n=ae;ae|=2;var r=U1();(He!==e||Xe!==t)&&(fn=null,br(e,t));do try{QO();break}catch(i){B1(e,i)}while(1);if(hp(),ae=n,Gs.current=r,Re!==null)throw Error(V(261));return He=null,Xe=0,$e}function QO(){for(;Re!==null;)W1(Re)}function ZO(){for(;Re!==null&&!O2();)W1(Re)}function W1(e){var t=Y1(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?H1(e):Re=t,Tp.current=null}function H1(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=HO(n,t),n!==null){n.flags&=32767,Re=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Re=null;return}}else if(n=WO(n,t,wt),n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);$e===0&&($e=5)}function pr(e,t,n){var r=se,i=Rt.transition;try{Rt.transition=null,se=1,JO(e,t,n,r)}finally{Rt.transition=i,se=r}return null}function JO(e,t,n,r){do Si();while(Vn!==null);if(ae&6)throw Error(V(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(V(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(A2(e,o),e===He&&(Re=He=null,Xe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Za||(Za=!0,K1(Ds,function(){return Si(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Rt.transition,Rt.transition=null;var a=se;se=1;var s=ae;ae|=4,Tp.current=null,YO(e,n),$1(n,e),wO(mf),Ns=!!hf,mf=hf=null,e.current=n,KO(n),C2(),ae=s,se=a,Rt.transition=o}else e.current=n;if(Za&&(Za=!1,Vn=e,Ks=i),o=e.pendingLanes,o===0&&(Kn=null),T2(n.stateNode),vt(e,ke()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ys)throw Ys=!1,e=Mf,Mf=null,e;return Ks&1&&e.tag!==0&&Si(),o=e.pendingLanes,o&1?e===jf?Oo++:(Oo=0,jf=e):Oo=0,ar(),null}function Si(){if(Vn!==null){var e=C0(Ks),t=Rt.transition,n=se;try{if(Rt.transition=null,se=16>e?16:e,Vn===null)var r=!1;else{if(e=Vn,Vn=null,Ks=0,ae&6)throw Error(V(331));var i=ae;for(ae|=4,G=e.current;G!==null;){var o=G,a=o.child;if(G.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(G=u;G!==null;){var c=G;switch(c.tag){case 0:case 11:case 15:bo(8,c,o)}var f=c.child;if(f!==null)f.return=c,G=f;else for(;G!==null;){c=G;var d=c.sibling,h=c.return;if(j1(c),c===u){G=null;break}if(d!==null){d.return=h,G=d;break}G=h}}}var v=o.alternate;if(v!==null){var g=v.child;if(g!==null){v.child=null;do{var S=g.sibling;g.sibling=null,g=S}while(g!==null)}}G=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,G=a;else e:for(;G!==null;){if(o=G,o.flags&2048)switch(o.tag){case 0:case 11:case 15:bo(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,G=p;break e}G=o.return}}var m=e.current;for(G=m;G!==null;){a=G;var y=a.child;if(a.subtreeFlags&2064&&y!==null)y.return=a,G=y;else e:for(a=m;G!==null;){if(s=G,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Dl(9,s)}}catch(C){Pe(s,s.return,C)}if(s===a){G=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,G=w;break e}G=s.return}}if(ae=i,ar(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(xl,e)}catch{}r=!0}return r}finally{se=n,Rt.transition=t}}return!1}function cv(e,t,n){t=Ni(n,t),t=E1(e,t,1),e=Yn(e,t,1),t=lt(),e!==null&&(da(e,1,t),vt(e,t))}function Pe(e,t,n){if(e.tag===3)cv(e,e,n);else for(;t!==null;){if(t.tag===3){cv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kn===null||!Kn.has(r))){e=Ni(n,e),e=P1(t,e,1),t=Yn(t,e,1),e=lt(),t!==null&&(da(t,1,e),vt(t,e));break}}t=t.return}}function eC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=lt(),e.pingedLanes|=e.suspendedLanes&n,He===e&&(Xe&n)===n&&($e===4||$e===3&&(Xe&130023424)===Xe&&500>ke()-kp?br(e,0):_p|=n),vt(e,t)}function G1(e,t){t===0&&(e.mode&1?(t=Ba,Ba<<=1,!(Ba&130023424)&&(Ba=4194304)):t=1);var n=lt();e=bn(e,t),e!==null&&(da(e,t,n),vt(e,n))}function tC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),G1(e,n)}function nC(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(V(314))}r!==null&&r.delete(t),G1(e,n)}var Y1;Y1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ht.current)pt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pt=!1,UO(e,t,n);pt=!!(e.flags&131072)}else pt=!1,ye&&t.flags&1048576&&X0(t,$s,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vs(e,t),e=t.pendingProps;var i=_i(t,ot.current);wi(t,n),i=xp(null,t,r,e,i,n);var o=Op();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,mt(r)?(o=!0,Is(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gp(t),i.updater=_l,t.stateNode=i,i._reactInternals=t,Cf(t,r,e,n),t=Tf(null,t,r,!0,o,n)):(t.tag=0,ye&&o&&cp(t),st(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=iC(r),e=Ft(r,e),i){case 0:t=Pf(null,t,r,e,n);break e;case 1:t=ev(null,t,r,e,n);break e;case 11:t=Zm(null,t,r,e,n);break e;case 14:t=Jm(null,t,r,Ft(r.type,e),n);break e}throw Error(V(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Pf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),ev(e,t,r,i,n);case 3:e:{if(D1(t),e===null)throw Error(V(387));r=t.pendingProps,o=t.memoizedState,i=o.element,e1(e,t),Bs(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ni(Error(V(423)),t),t=tv(e,t,r,n,i);break e}else if(r!==i){i=Ni(Error(V(424)),t),t=tv(e,t,r,n,i);break e}else for(xt=Gn(t.stateNode.containerInfo.firstChild),Ot=t,ye=!0,Bt=null,n=i1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ki(),r===i){t=xn(e,t,n);break e}st(e,t,r,n)}t=t.child}return t;case 5:return o1(t),e===null&&bf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,vf(r,i)?a=null:o!==null&&vf(r,o)&&(t.flags|=32),k1(e,t),st(e,t,a,n),t.child;case 6:return e===null&&bf(t),null;case 13:return L1(e,t,n);case 4:return yp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Di(t,null,r,n):st(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),Zm(e,t,r,i,n);case 7:return st(e,t,t.pendingProps,n),t.child;case 8:return st(e,t,t.pendingProps.children,n),t.child;case 12:return st(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,pe(Fs,r._currentValue),r._currentValue=a,o!==null)if(Gt(o.value,a)){if(o.children===i.children&&!ht.current){t=xn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=mn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),xf(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(V(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),xf(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}st(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,wi(t,n),i=Mt(i),r=r(i),t.flags|=1,st(e,t,r,n),t.child;case 14:return r=t.type,i=Ft(r,t.pendingProps),i=Ft(r.type,i),Jm(e,t,r,i,n);case 15:return T1(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ft(r,i),vs(e,t),t.tag=1,mt(r)?(e=!0,Is(t)):e=!1,wi(t,n),n1(t,r,i),Cf(t,r,i,n),Tf(null,t,r,!0,e,n);case 19:return N1(e,t,n);case 22:return _1(e,t,n)}throw Error(V(156,t.tag))};function K1(e,t){return S0(e,t)}function rC(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,r){return new rC(e,t,n,r)}function Ap(e){return e=e.prototype,!(!e||!e.isReactComponent)}function iC(e){if(typeof e=="function")return Ap(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zd)return 11;if(e===Jd)return 14}return 2}function Xn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ws(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Ap(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ei:return xr(n.children,i,o,t);case Qd:a=8,i|=8;break;case Yc:return e=At(12,n,t,i|2),e.elementType=Yc,e.lanes=o,e;case Kc:return e=At(13,n,t,i),e.elementType=Kc,e.lanes=o,e;case qc:return e=At(19,n,t,i),e.elementType=qc,e.lanes=o,e;case r0:return Nl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case t0:a=10;break e;case n0:a=9;break e;case Zd:a=11;break e;case Jd:a=14;break e;case Ln:a=16,r=null;break e}throw Error(V(130,e==null?e:typeof e,""))}return t=At(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function xr(e,t,n,r){return e=At(7,e,r,t),e.lanes=n,e}function Nl(e,t,n,r){return e=At(22,e,r,t),e.elementType=r0,e.lanes=n,e.stateNode={isHidden:!1},e}function nc(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function rc(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function oC(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Iu(0),this.expirationTimes=Iu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Iu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Rp(e,t,n,r,i,o,a,s,l){return e=new oC(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=At(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gp(o),e}function aC(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function q1(e){if(!e)return Jn;e=e._reactInternals;e:{if(Vr(e)!==e||e.tag!==1)throw Error(V(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(mt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(V(171))}if(e.tag===1){var n=e.type;if(mt(n))return K0(e,n,t)}return t}function X1(e,t,n,r,i,o,a,s,l){return e=Rp(n,r,!0,e,i,o,a,s,l),e.context=q1(null),n=e.current,r=lt(),i=qn(n),o=mn(r,i),o.callback=t??null,Yn(n,o,i),e.current.lanes=i,da(e,i,r),vt(e,r),e}function Al(e,t,n,r){var i=t.current,o=lt(),a=qn(i);return n=q1(n),t.context===null?t.context=n:t.pendingContext=n,t=mn(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yn(i,t,a),e!==null&&(Ht(e,i,a,o),ps(e,i,a)),a}function Xs(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mp(e,t){fv(e,t),(e=e.alternate)&&fv(e,t)}function sC(){return null}var Q1=typeof reportError=="function"?reportError:function(e){console.error(e)};function jp(e){this._internalRoot=e}Rl.prototype.render=jp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(V(409));Al(e,t,null,null)};Rl.prototype.unmount=jp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kr(function(){Al(null,e,null,null)}),t[Sn]=null}};function Rl(e){this._internalRoot=e}Rl.prototype.unstable_scheduleHydration=function(e){if(e){var t=T0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rn.length&&t!==0&&t<Rn[n].priority;n++);Rn.splice(n,0,e),n===0&&k0(e)}};function Ip(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function dv(){}function lC(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Xs(a);o.call(u)}}var a=X1(t,r,e,0,null,!1,!1,"",dv);return e._reactRootContainer=a,e[Sn]=a.current,zo(e.nodeType===8?e.parentNode:e),kr(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=Xs(l);s.call(u)}}var l=Rp(e,0,!1,null,null,!1,!1,"",dv);return e._reactRootContainer=l,e[Sn]=l.current,zo(e.nodeType===8?e.parentNode:e),kr(function(){Al(t,l,n,r)}),l}function jl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=Xs(a);s.call(l)}}Al(t,a,e,i)}else a=lC(n,t,e,i,r);return Xs(a)}E0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=co(t.pendingLanes);n!==0&&(np(t,n|1),vt(t,ke()),!(ae&6)&&(Ai=ke()+500,ar()))}break;case 13:kr(function(){var r=bn(e,1);if(r!==null){var i=lt();Ht(r,e,1,i)}}),Mp(e,1)}};rp=function(e){if(e.tag===13){var t=bn(e,134217728);if(t!==null){var n=lt();Ht(t,e,134217728,n)}Mp(e,134217728)}};P0=function(e){if(e.tag===13){var t=qn(e),n=bn(e,t);if(n!==null){var r=lt();Ht(n,e,t,r)}Mp(e,t)}};T0=function(){return se};_0=function(e,t){var n=se;try{return se=e,t()}finally{se=n}};af=function(e,t,n){switch(t){case"input":if(Zc(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Pl(r);if(!i)throw Error(V(90));o0(r),Zc(r,i)}}}break;case"textarea":s0(e,n);break;case"select":t=n.value,t!=null&&mi(e,!!n.multiple,t,!1)}};h0=Dp;m0=kr;var uC={usingClientEntryPoint:!1,Events:[ha,ii,Pl,d0,p0,Dp]},to={findFiberByHostInstance:gr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},cC={bundleType:to.bundleType,version:to.version,rendererPackageName:to.rendererPackageName,rendererConfig:to.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=y0(e),e===null?null:e.stateNode},findFiberByHostInstance:to.findFiberByHostInstance||sC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ja=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ja.isDisabled&&Ja.supportsFiber)try{xl=Ja.inject(cC),tn=Ja}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uC;Tt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ip(t))throw Error(V(200));return aC(e,t,null,n)};Tt.createRoot=function(e,t){if(!Ip(e))throw Error(V(299));var n=!1,r="",i=Q1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Rp(e,1,!1,null,null,n,!1,r,i),e[Sn]=t.current,zo(e.nodeType===8?e.parentNode:e),new jp(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(V(188)):(e=Object.keys(e).join(","),Error(V(268,e)));return e=y0(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return kr(e)};Tt.hydrate=function(e,t,n){if(!Ml(t))throw Error(V(200));return jl(null,e,t,!0,n)};Tt.hydrateRoot=function(e,t,n){if(!Ip(e))throw Error(V(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Q1;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=X1(t,null,e,1,n??null,i,!1,o,a),e[Sn]=t.current,zo(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Rl(t)};Tt.render=function(e,t,n){if(!Ml(t))throw Error(V(200));return jl(null,e,t,!1,n)};Tt.unmountComponentAtNode=function(e){if(!Ml(e))throw Error(V(40));return e._reactRootContainer?(kr(function(){jl(null,null,e,!1,function(){e._reactRootContainer=null,e[Sn]=null})}),!0):!1};Tt.unstable_batchedUpdates=Dp;Tt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ml(n))throw Error(V(200));if(e==null||e._reactInternals===void 0)throw Error(V(38));return jl(e,t,n,!1,r)};Tt.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Tt})(s2);var pv=No;Wc.createRoot=pv.createRoot,Wc.hydrateRoot=pv.hydrateRoot;/**
|
||
* @remix-run/router v1.3.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Xo(){return Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xo.apply(this,arguments)}var $n;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($n||($n={}));const hv="popstate";function fC(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return $f("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Qs(i)}return hC(t,n,null,e)}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dC(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pC(){return Math.random().toString(36).substr(2,8)}function mv(e,t){return{usr:e.state,key:e.key,idx:t}}function $f(e,t,n,r){return n===void 0&&(n=null),Xo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Bi(t):t,{state:n,key:t&&t.key||r||pC()})}function Qs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Bi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hC(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=$n.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Xo({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){let S=$n.Pop,p=c();if(p!=null){let m=p-u;s=S,u=p,l&&l({action:s,location:g.location,delta:m})}else dC(!1,"You are trying to block a POP navigation to a location that was not created by @remix-run/router. The block will fail silently in production, but in general you should do all navigation with the router (instead of using window.history.pushState directly) to avoid this situation.")}function d(S,p){s=$n.Push;let m=$f(g.location,S,p);n&&n(m,S),u=c()+1;let y=mv(m,u),w=g.createHref(m);try{a.pushState(y,"",w)}catch{i.location.assign(w)}o&&l&&l({action:s,location:g.location,delta:1})}function h(S,p){s=$n.Replace;let m=$f(g.location,S,p);n&&n(m,S),u=c();let y=mv(m,u),w=g.createHref(m);a.replaceState(y,"",w),o&&l&&l({action:s,location:g.location,delta:0})}function v(S){let p=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof S=="string"?S:Qs(S);return Fe(p,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,p)}let g={get action(){return s},get location(){return e(i,a)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(hv,f),l=S,()=>{i.removeEventListener(hv,f),l=null}},createHref(S){return t(i,S)},createURL:v,encodeLocation(S){let p=v(S);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:h,go(S){return a.go(S)}};return g}var vv;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vv||(vv={}));function mC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Bi(t):t,i=ew(r.pathname||"/",n);if(i==null)return null;let o=Z1(e);vC(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=EC(o[s],_C(i));return a}function Z1(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Fe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Qn([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(Fe(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Z1(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:OC(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of J1(o.path))i(o,a,l)}),t}function J1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=J1(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function vC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:CC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const gC=/^:\w+$/,yC=3,wC=2,SC=1,bC=10,xC=-2,gv=e=>e==="*";function OC(e,t){let n=e.split("/"),r=n.length;return n.some(gv)&&(r+=xC),t&&(r+=wC),n.filter(i=>!gv(i)).reduce((i,o)=>i+(gC.test(o)?yC:o===""?SC:bC),r)}function CC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function EC(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",c=PC({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(r,c.params);let f=s.route;o.push({params:r,pathname:Qn([i,c.pathname]),pathnameBase:NC(Qn([i,c.pathnameBase])),route:f}),c.pathnameBase!=="/"&&(i=Qn([i,c.pathnameBase]))}return o}function PC(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=TC(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,c,f)=>{if(c==="*"){let d=s[f]||"";a=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=kC(s[f]||"",c),u},{}),pathname:o,pathnameBase:a,pattern:e}}function TC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Vp(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,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function _C(e){try{return decodeURI(e)}catch(t){return Vp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function kC(e,t){try{return decodeURIComponent(e)}catch(n){return Vp(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ew(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 Vp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function DC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Bi(e):e;return{pathname:n?n.startsWith("/")?n:LC(n,t):t,search:AC(r),hash:RC(i)}}function LC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function ic(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 tw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nw(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Bi(e):(i=Xo({},e),Fe(!i.pathname||!i.pathname.includes("?"),ic("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),ic("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),ic("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=DC(i,s),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Qn=e=>e.join("/").replace(/\/\/+/g,"/"),NC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),AC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class MC{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function jC(e){return e instanceof MC}const IC=["post","put","patch","delete"];[...IC];/**
|
||
* React Router v6.7.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(this,arguments)}function VC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const $C=typeof Object.is=="function"?Object.is:VC,{useState:FC,useEffect:zC,useLayoutEffect:BC,useDebugValue:UC}=Uc;function WC(e,t,n){const r=t(),[{inst:i},o]=FC({inst:{value:r,getSnapshot:t}});return BC(()=>{i.value=r,i.getSnapshot=t,oc(i)&&o({inst:i})},[e,r,t]),zC(()=>(oc(i)&&o({inst:i}),e(()=>{oc(i)&&o({inst:i})})),[e]),UC(r),r}function oc(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!$C(n,r)}catch{return!0}}function HC(e,t,n){return t()}const GC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",YC=!GC,KC=YC?HC:WC;"useSyncExternalStore"in Uc&&(e=>e.useSyncExternalStore)(Uc);const rw=b.createContext(null),iw=b.createContext(null),Il=b.createContext(null),Vl=b.createContext(null),$r=b.createContext({outlet:null,matches:[]}),ow=b.createContext(null);function qC(e,t){let{relative:n}=t===void 0?{}:t;va()||Fe(!1);let{basename:r,navigator:i}=b.useContext(Il),{hash:o,pathname:a,search:s}=sw(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:Qn([r,a])),i.createHref({pathname:l,search:s,hash:o})}function va(){return b.useContext(Vl)!=null}function Fr(){return va()||Fe(!1),b.useContext(Vl).location}function aw(){va()||Fe(!1);let{basename:e,navigator:t}=b.useContext(Il),{matches:n}=b.useContext($r),{pathname:r}=Fr(),i=JSON.stringify(tw(n).map(s=>s.pathnameBase)),o=b.useRef(!1);return b.useEffect(()=>{o.current=!0}),b.useCallback(function(s,l){if(l===void 0&&(l={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let u=nw(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Qn([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function $l(){let{matches:e}=b.useContext($r),t=e[e.length-1];return t?t.params:{}}function sw(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=b.useContext($r),{pathname:i}=Fr(),o=JSON.stringify(tw(r).map(a=>a.pathnameBase));return b.useMemo(()=>nw(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function XC(e,t){va()||Fe(!1);let{navigator:n}=b.useContext(Il),r=b.useContext(iw),{matches:i}=b.useContext($r),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=Fr(),u;if(t){var c;let g=typeof t=="string"?Bi(t):t;s==="/"||(c=g.pathname)!=null&&c.startsWith(s)||Fe(!1),u=g}else u=l;let f=u.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",h=mC(e,{pathname:d}),v=eE(h&&h.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:Qn([s,n.encodeLocation?n.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:Qn([s,n.encodeLocation?n.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,r||void 0);return t&&v?b.createElement(Vl.Provider,{value:{location:Ff({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:$n.Pop}},v):v}function QC(){let e=iE(),t=jC(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},o={padding:"2px 4px",backgroundColor:r};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unhandled Thrown Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"errorElement")," props on ",b.createElement("code",{style:o},"<Route>")))}class ZC extends b.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?b.createElement($r.Provider,{value:this.props.routeContext},b.createElement(ow.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function JC(e){let{routeContext:t,match:n,children:r}=e,i=b.useContext(rw);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),b.createElement($r.Provider,{value:t},r)}function eE(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||Fe(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=n?a.route.errorElement||b.createElement(QC,null):null,c=t.concat(r.slice(0,s+1)),f=()=>b.createElement(JC,{match:a,routeContext:{outlet:o,matches:c}},l?u:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?b.createElement(ZC,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var yv;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(yv||(yv={}));var Zs;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Zs||(Zs={}));function tE(e){let t=b.useContext(iw);return t||Fe(!1),t}function nE(e){let t=b.useContext($r);return t||Fe(!1),t}function rE(e){let t=nE(),n=t.matches[t.matches.length-1];return n.route.id||Fe(!1),n.route.id}function iE(){var e;let t=b.useContext(ow),n=tE(Zs.UseRouteError),r=rE(Zs.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function hr(e){Fe(!1)}function oE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=$n.Pop,navigator:o,static:a=!1}=e;va()&&Fe(!1);let s=t.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Bi(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,v=b.useMemo(()=>{let g=ew(u,s);return g==null?null:{pathname:g,search:c,hash:f,state:d,key:h}},[s,u,c,f,d,h]);return v==null?null:b.createElement(Il.Provider,{value:l},b.createElement(Vl.Provider,{children:n,value:{location:v,navigationType:i}}))}function aE(e){let{children:t,location:n}=e,r=b.useContext(rw),i=r&&!t?r.router.routes:zf(t);return XC(i,n)}var wv;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(wv||(wv={}));new Promise(()=>{});function zf(e,t){t===void 0&&(t=[]);let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;if(r.type===b.Fragment){n.push.apply(n,zf(r.props.children,t));return}r.type!==hr&&Fe(!1),!r.props.index||!r.props.children||Fe(!1);let o=[...t,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=zf(r.props.children,o)),n.push(a)}),n}/**
|
||
* React Router DOM v6.7.0
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bf.apply(this,arguments)}function sE(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function lE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uE(e,t){return e.button===0&&(!t||t==="_self")&&!lE(e)}const cE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function fE(e){let{basename:t,children:n,window:r}=e,i=b.useRef();i.current==null&&(i.current=fC({window:r,v5Compat:!0}));let o=i.current,[a,s]=b.useState({action:o.action,location:o.location});return b.useLayoutEffect(()=>o.listen(s),[o]),b.createElement(oE,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const xe=b.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=sE(t,cE),d=qC(u,{relative:i}),h=dE(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function v(g){r&&r(g),g.defaultPrevented||h(g)}return b.createElement("a",Bf({},f,{href:d,onClick:o?r:v,ref:n,target:l}))});var Sv;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Sv||(Sv={}));var bv;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bv||(bv={}));function dE(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=aw(),l=Fr(),u=sw(e,{relative:a});return b.useCallback(c=>{if(uE(c,n)){c.preventDefault();let f=r!==void 0?r:Qs(l)===Qs(u);s(e,{replace:f,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}const $p=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Fl=b.createContext({});function pE(){return b.useContext(Fl).visualElement}const ga=b.createContext(null),zl=typeof document<"u",Js=zl?b.useLayoutEffect:b.useEffect,lw=b.createContext({strict:!1});function hE(e,t,n,r){const i=pE(),o=b.useContext(lw),a=b.useContext(ga),s=b.useContext($p).reducedMotion,l=b.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;return Js(()=>{u&&u.render()}),(window.MotionAppearAnimations?Js:b.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function fi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mE(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):fi(n)&&(n.current=r))},[t])}function Qo(e){return typeof e=="string"||Array.isArray(e)}function Bl(e){return typeof e=="object"&&typeof e.start=="function"}const vE=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Ul(e){return Bl(e.animate)||vE.some(t=>Qo(e[t]))}function uw(e){return Boolean(Ul(e)||e.variants)}function gE(e,t){if(Ul(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Qo(n)?n:void 0,animate:Qo(r)?r:void 0}}return e.inherit!==!1?t:{}}function yE(e){const{initial:t,animate:n}=gE(e,b.useContext(Fl));return b.useMemo(()=>({initial:t,animate:n}),[xv(t),xv(n)])}function xv(e){return Array.isArray(e)?e.join(" "):e}const cn=e=>({isEnabled:t=>e.some(n=>!!t[n])}),Zo={measureLayout:cn(["layout","layoutId","drag"]),animation:cn(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:cn(["exit"]),drag:cn(["drag","dragControls"]),focus:cn(["whileFocus"]),hover:cn(["whileHover","onHoverStart","onHoverEnd"]),tap:cn(["whileTap","onTap","onTapStart","onTapCancel"]),pan:cn(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:cn(["whileInView","onViewportEnter","onViewportLeave"])};function wE(e){for(const t in e)t==="projectionNodeConstructor"?Zo.projectionNodeConstructor=e[t]:Zo[t].Component=e[t]}function Wl(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Co={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let SE=1;function bE(){return Wl(()=>{if(Co.hasEverUpdated)return SE++})}const Fp=b.createContext({});class xE extends B.Component{getSnapshotBeforeUpdate(){const{visualElement:t,props:n}=this.props;return t&&t.setProps(n),null}componentDidUpdate(){}render(){return this.props.children}}const cw=b.createContext({}),OE=Symbol.for("motionComponentSymbol");function CE({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&wE(e);function a(l,u){const c={...b.useContext($p),...l,layoutId:EE(l)},{isStatic:f}=c;let d=null;const h=yE(l),v=f?void 0:bE(),g=i(l,f);if(!f&&zl){h.visualElement=hE(o,g,c,t);const S=b.useContext(lw).strict,p=b.useContext(cw);h.visualElement&&(d=h.visualElement.loadFeatures(c,S,e,v,n||Zo.projectionNodeConstructor,p))}return b.createElement(xE,{visualElement:h.visualElement,props:c},d,b.createElement(Fl.Provider,{value:h},r(o,l,v,mE(g,h.visualElement,u),g,f,h.visualElement)))}const s=b.forwardRef(a);return s[OE]=o,s}function EE({layoutId:e}){const t=b.useContext(Fp).id;return t&&e!==void 0?t+"-"+e:e}function PE(e){function t(r,i={}){return CE(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const TE=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zp(e){return typeof e!="string"||e.includes("-")?!1:!!(TE.indexOf(e)>-1||/[A-Z]/.test(e))}const el={};function _E(e){Object.assign(el,e)}const tl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zr=new Set(tl);function fw(e,{layout:t,layoutId:n}){return zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!el[e]||e==="opacity")}const gt=e=>!!(e!=null&&e.getVelocity),kE={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},DE=(e,t)=>tl.indexOf(e)-tl.indexOf(t);function LE({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";t.sort(DE);for(const s of t)a+=`${kE[s]||s}(${e[s]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}function dw(e){return e.startsWith("--")}const NE=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ri=(e,t,n)=>Math.min(Math.max(n,e),t),Br={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Eo={...Br,transform:e=>Ri(0,1,e)},es={...Br,default:1},Po=e=>Math.round(e*1e5)/1e5,Jo=/(-)?([\d]*\.?[\d])+/g,Uf=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,AE=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ya(e){return typeof e=="string"}const wa=e=>({test:t=>ya(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dn=wa("deg"),rn=wa("%"),Q=wa("px"),RE=wa("vh"),ME=wa("vw"),Ov={...rn,parse:e=>rn.parse(e)/100,transform:e=>rn.transform(e*100)},Cv={...Br,transform:Math.round},pw={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:Dn,rotateX:Dn,rotateY:Dn,rotateZ:Dn,scale:es,scaleX:es,scaleY:es,scaleZ:es,skew:Dn,skewX:Dn,skewY:Dn,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:Eo,originX:Ov,originY:Ov,originZ:Q,zIndex:Cv,fillOpacity:Eo,strokeOpacity:Eo,numOctaves:Cv};function Bp(e,t,n,r){const{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,f=!0;for(const d in t){const h=t[d];if(dw(d)){o[d]=h;continue}const v=pw[d],g=NE(h,v);if(zr.has(d)){if(u=!0,a[d]=g,s.push(d),!f)continue;h!==(v.default||0)&&(f=!1)}else d.startsWith("origin")?(c=!0,l[d]=g):i[d]=g}if(t.transform||(u||r?i.transform=LE(e,n,f,r):i.transform&&(i.transform="none")),c){const{originX:d="50%",originY:h="50%",originZ:v=0}=l;i.transformOrigin=`${d} ${h} ${v}`}}const Up=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function hw(e,t,n){for(const r in t)!gt(t[r])&&!fw(r,n)&&(e[r]=t[r])}function jE({transformTemplate:e},t,n){return b.useMemo(()=>{const r=Up();return Bp(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function IE(e,t,n){const r=e.style||{},i={};return hw(i,r,e),Object.assign(i,jE(e,t,n)),e.transformValues?e.transformValues(i):i}function VE(e,t,n){const r={},i=IE(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),r.style=i,r}const $E=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],FE=["whileTap","onTap","onTapStart","onTapCancel"],zE=["onPan","onPanStart","onPanSessionStart","onPanEnd"],BE=["whileInView","onViewportEnter","onViewportLeave","viewport"],UE=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","layoutScroll","layoutRoot","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd",...BE,...FE,...$E,...zE]);function nl(e){return UE.has(e)}let mw=e=>!nl(e);function WE(e){e&&(mw=t=>t.startsWith("on")?!nl(t):e(t))}try{WE(require("@emotion/is-prop-valid").default)}catch{}function HE(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(mw(i)||n===!0&&nl(i)||!t&&!nl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Ev(e,t,n){return typeof e=="string"?e:Q.transform(t+n*e)}function GE(e,t,n){const r=Ev(t,e.x,e.width),i=Ev(n,e.y,e.height);return`${r} ${i}`}const YE={offset:"stroke-dashoffset",array:"stroke-dasharray"},KE={offset:"strokeDashoffset",array:"strokeDasharray"};function qE(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?YE:KE;e[o.offset]=Q.transform(-r);const a=Q.transform(t),s=Q.transform(n);e[o.array]=`${a} ${s}`}function Wp(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c,f){if(Bp(e,l,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:v}=e;d.transform&&(v&&(h.transform=d.transform),delete d.transform),v&&(r!==void 0||i!==void 0||h.transform)&&(h.transformOrigin=GE(v,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),o!==void 0&&qE(d,o,a,s,!1)}const vw=()=>({...Up(),attrs:{}}),Hp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function XE(e,t,n,r){const i=b.useMemo(()=>{const o=vw();return Wp(o,t,{enableHardwareAcceleration:!1},Hp(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};hw(o,e.style,e),i.style={...o,...i.style}}return i}function QE(e=!1){return(n,r,i,o,{latestValues:a},s)=>{const u=(zp(n)?XE:VE)(r,a,s,n),f={...HE(r,typeof n=="string",e),...u,ref:o},{children:d}=r,h=b.useMemo(()=>gt(d)?d.get():d,[d]);return i&&(f["data-projection-id"]=i),b.createElement(n,{...f,children:h})}}const Gp=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function gw(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const yw=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ww(e,t,n,r){gw(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(yw.has(i)?i:Gp(i),t.attrs[i])}function Yp(e,t){const{style:n}=e,r={};for(const i in n)(gt(n[i])||t.style&>(t.style[i])||fw(i,e))&&(r[i]=n[i]);return r}function Sw(e,t){const n=Yp(e,t);for(const r in e)if(gt(e[r])||gt(t[r])){const i=r==="x"||r==="y"?"attr"+r.toUpperCase():r;n[i]=e[r]}return n}function Kp(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}const rl=e=>Array.isArray(e),ZE=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),JE=e=>rl(e)?e[e.length-1]||0:e;function Ss(e){const t=gt(e)?e.get():e;return ZE(t)?t.toValue():t}function eP({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:tP(r,i,o,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const bw=e=>(t,n)=>{const r=b.useContext(Fl),i=b.useContext(ga),o=()=>eP(e,t,r,i);return n?o():Wl(o)};function tP(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Ss(o[d]);let{initial:a,animate:s}=e;const l=Ul(e),u=uw(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!Bl(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const v=Kp(e,h);if(!v)return;const{transitionEnd:g,transition:S,...p}=v;for(const m in p){let y=p[m];if(Array.isArray(y)){const w=c?y.length-1:0;y=y[w]}y!==null&&(i[m]=y)}for(const m in g)i[m]=g[m]}),i}const nP={useVisualState:bw({scrapeMotionValuesFromProps:Sw,createRenderState:vw,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Wp(n,r,{enableHardwareAcceleration:!1},Hp(t.tagName),e.transformTemplate),ww(t,n)}})},rP={useVisualState:bw({scrapeMotionValuesFromProps:Yp,createRenderState:Up})};function iP(e,{forwardMotionProps:t=!1},n,r,i){return{...zp(e)?nP:rP,preloadedFeatures:n,useRender:QE(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}}var de;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(de||(de={}));function Hl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Wf(e,t,n,r){b.useEffect(()=>{const i=e.current;if(n&&i)return Hl(i,t,n,r)},[e,t,n,r])}function oP({whileFocus:e,visualElement:t}){const{animationState:n}=t,r=b.useCallback(()=>{n&&n.setActive(de.Focus,!0)},[n]),i=b.useCallback(()=>{n&&n.setActive(de.Focus,!1)},[n]);Wf(t,"focus",e?r:void 0),Wf(t,"blur",e?i:void 0)}const xw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qp(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Ow=e=>t=>xw(t)&&e(t,qp(t));function bi(e,t,n,r){return Hl(e,t,Ow(n),r)}function il(e,t,n,r){return Wf(e,t,n&&Ow(n),r)}function Cw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Pv=Cw("dragHorizontal"),Tv=Cw("dragVertical");function Ew(e){let t=!1;if(e==="y")t=Tv();else if(e==="x")t=Pv();else{const n=Pv(),r=Tv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Pw(){const e=Ew(!0);return e?(e(),!1):!0}function _v(e,t,n,r){return(i,o)=>{i.type==="touch"||Pw()||(n&&e.animationState&&e.animationState.setActive(de.Hover,t),r&&r(i,o))}}function aP({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){il(r,"pointerenter",b.useMemo(()=>e||n?_v(r,!0,Boolean(n),e):void 0,[e,Boolean(n),r]),{passive:!e}),il(r,"pointerleave",b.useMemo(()=>t||n?_v(r,!1,Boolean(n),t):void 0,[e,Boolean(n),r]),{passive:!t})}const Tw=(e,t)=>t?e===t?!0:Tw(e,t.parentElement):!1;function Xp(e){return b.useEffect(()=>()=>e(),[])}const sP=(e,t)=>n=>t(e(n)),Gl=(...e)=>e.reduce(sP);function lP({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i,...o}){const a=e||t||n||r,s=b.useRef(!1),l=b.useRef(null),u={passive:!(t||e||n||o.onPointerDown)};function c(){l.current&&l.current(),l.current=null}function f(){return c(),s.current=!1,i.getProps().whileTap&&i.animationState&&i.animationState.setActive(de.Tap,!1),!Pw()}function d(g,S){var p,m,y,w;f()&&(Tw(i.current,g.target)?(w=(y=i.getProps()).onTap)===null||w===void 0||w.call(y,g,S):(m=(p=i.getProps()).onTapCancel)===null||m===void 0||m.call(p,g,S))}function h(g,S){var p,m;f()&&((m=(p=i.getProps()).onTapCancel)===null||m===void 0||m.call(p,g,S))}const v=b.useCallback((g,S)=>{var p;if(c(),s.current)return;s.current=!0,l.current=Gl(bi(window,"pointerup",d,u),bi(window,"pointercancel",h,u));const m=i.getProps();m.whileTap&&i.animationState&&i.animationState.setActive(de.Tap,!0),(p=m.onTapStart)===null||p===void 0||p.call(m,g,S)},[Boolean(t),i]);il(i,"pointerdown",a?v:void 0,u),Xp(c)}const Hf=new WeakMap,ac=new WeakMap,uP=e=>{const t=Hf.get(e.target);t&&t(e)},cP=e=>{e.forEach(uP)};function fP({root:e,...t}){const n=e||document;ac.has(n)||ac.set(n,{});const r=ac.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(cP,{root:e,...t})),r[i]}function dP(e,t,n){const r=fP(t);return Hf.set(e,n),r.observe(e),()=>{Hf.delete(e),r.unobserve(e)}}function pP({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){const o=b.useRef({hasEnteredView:!1,isInView:!1});let a=Boolean(t||n||r);i.once&&o.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?vP:mP)(a,o.current,e,i)}const hP={some:0,all:1};function mP(e,t,n,{root:r,margin:i,amount:o="some",once:a}){b.useEffect(()=>{if(!e||!n.current)return;const s={root:r==null?void 0:r.current,rootMargin:i,threshold:typeof o=="number"?o:hP[o]},l=u=>{const{isIntersecting:c}=u;if(t.isInView===c||(t.isInView=c,a&&!c&&t.hasEnteredView))return;c&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(de.InView,c);const f=n.getProps(),d=c?f.onViewportEnter:f.onViewportLeave;d&&d(u)};return dP(n.current,s,l)},[e,r,i,o])}function vP(e,t,n,{fallback:r=!0}){b.useEffect(()=>{!e||!r||requestAnimationFrame(()=>{t.hasEnteredView=!0;const{onViewportEnter:i}=n.getProps();i&&i(null),n.animationState&&n.animationState.setActive(de.InView,!0)})},[e])}const Fn=e=>t=>(e(t),null),gP={inView:Fn(pP),tap:Fn(lP),focus:Fn(oP),hover:Fn(aP)};function _w(){const e=b.useContext(ga);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=b.useId();return b.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function kw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const yP=e=>/^\-?\d*\.?\d+$/.test(e),wP=e=>/^0[^.\s]+$/.test(e),vn={delta:0,timestamp:0},Dw=1/60*1e3,SP=typeof performance<"u"?()=>performance.now():()=>Date.now(),Lw=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(SP()),Dw);function bP(e){let t=[],n=[],r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&a.add(l),d.indexOf(l)===-1&&(d.push(l),f&&i&&(r=t.length)),l},cancel:l=>{const u=n.indexOf(l);u!==-1&&n.splice(u,1),a.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let u=0;u<r;u++){const c=t[u];c(l),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(l))}};return s}const xP=40;let Gf=!0,ea=!1,Yf=!1;const Sa=["read","update","preRender","render","postRender"],Yl=Sa.reduce((e,t)=>(e[t]=bP(()=>ea=!0),e),{}),it=Sa.reduce((e,t)=>{const n=Yl[t];return e[t]=(r,i=!1,o=!1)=>(ea||CP(),n.schedule(r,i,o)),e},{}),er=Sa.reduce((e,t)=>(e[t]=Yl[t].cancel,e),{}),sc=Sa.reduce((e,t)=>(e[t]=()=>Yl[t].process(vn),e),{}),OP=e=>Yl[e].process(vn),Nw=e=>{ea=!1,vn.delta=Gf?Dw:Math.max(Math.min(e-vn.timestamp,xP),1),vn.timestamp=e,Yf=!0,Sa.forEach(OP),Yf=!1,ea&&(Gf=!1,Lw(Nw))},CP=()=>{ea=!0,Gf=!0,Yf||Lw(Nw)};function Qp(e,t){e.indexOf(t)===-1&&e.push(t)}function Zp(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Jp{constructor(){this.subscriptions=[]}add(t){return Qp(this.subscriptions,t),()=>Zp(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eh(e,t){return t?e*(1e3/t):0}const EP=e=>!isNaN(parseFloat(e));class PP{constructor(t,n={}){this.version="8.5.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=vn;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,it.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>it.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=EP(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Jp);const r=this.events[t].add(n);return t==="change"?()=>{r(),it.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=t,this.timeDelta=r}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?eh(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mi(e,t){return new PP(e,t)}const th=(e,t)=>n=>Boolean(ya(n)&&AE.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Aw=(e,t,n)=>r=>{if(!ya(r))return r;const[i,o,a,s]=r.match(Jo);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},TP=e=>Ri(0,255,e),lc={...Br,transform:e=>Math.round(TP(e))},Sr={test:th("rgb","red"),parse:Aw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lc.transform(e)+", "+lc.transform(t)+", "+lc.transform(n)+", "+Po(Eo.transform(r))+")"};function _P(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Kf={test:th("#"),parse:_P,transform:Sr.transform},di={test:th("hsl","hue"),parse:Aw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+rn.transform(Po(t))+", "+rn.transform(Po(n))+", "+Po(Eo.transform(r))+")"},at={test:e=>Sr.test(e)||Kf.test(e)||di.test(e),parse:e=>Sr.test(e)?Sr.parse(e):di.test(e)?di.parse(e):Kf.parse(e),transform:e=>ya(e)?e:e.hasOwnProperty("red")?Sr.transform(e):di.transform(e)},Rw="${c}",Mw="${n}";function kP(e){var t,n;return isNaN(e)&&ya(e)&&(((t=e.match(Jo))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Uf))===null||n===void 0?void 0:n.length)||0)>0}function ol(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0,r=0;const i=e.match(Uf);i&&(n=i.length,e=e.replace(Uf,Rw),t.push(...i.map(at.parse)));const o=e.match(Jo);return o&&(r=o.length,e=e.replace(Jo,Mw),t.push(...o.map(Br.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function jw(e){return ol(e).values}function Iw(e){const{values:t,numColors:n,tokenised:r}=ol(e),i=t.length;return o=>{let a=r;for(let s=0;s<i;s++)a=a.replace(s<n?Rw:Mw,s<n?at.transform(o[s]):Po(o[s]));return a}}const DP=e=>typeof e=="number"?0:e;function LP(e){const t=jw(e);return Iw(e)(t.map(DP))}const tr={test:kP,parse:jw,createTransformer:Iw,getAnimatableNone:LP},NP=new Set(["brightness","contrast","saturate","opacity"]);function AP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Jo)||[];if(!r)return e;const i=n.replace(r,"");let o=NP.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const RP=/([a-z-]*)\(.*?\)/g,qf={...tr,getAnimatableNone:e=>{const t=e.match(RP);return t?t.map(AP).join(" "):e}},MP={...pw,color:at,backgroundColor:at,outlineColor:at,fill:at,stroke:at,borderColor:at,borderTopColor:at,borderRightColor:at,borderBottomColor:at,borderLeftColor:at,filter:qf,WebkitFilter:qf},nh=e=>MP[e];function rh(e,t){var n;let r=nh(e);return r!==qf&&(r=tr),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}const Vw=e=>t=>t.test(e),jP={test:e=>e==="auto",parse:e=>e},$w=[Br,Q,rn,Dn,ME,RE,jP],no=e=>$w.find(Vw(e)),IP=[...$w,at,tr],VP=e=>IP.find(Vw(e));function $P(e){const t={};return e.values.forEach((n,r)=>t[r]=n.get()),t}function FP(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Kl(e,t,n){const r=e.getProps();return Kp(r,t,n!==void 0?n:r.custom,$P(e),FP(e))}function zP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mi(n))}function BP(e,t){const n=Kl(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const s=JE(o[a]);zP(e,a,s)}}function UP(e,t,n){var r,i;const o=Object.keys(t).filter(s=>!e.hasValue(s)),a=o.length;if(a)for(let s=0;s<a;s++){const l=o[s],u=t[l];let c=null;Array.isArray(u)&&(c=u[0]),c===null&&(c=(i=(r=n[l])!==null&&r!==void 0?r:e.readValue(l))!==null&&i!==void 0?i:t[l]),c!=null&&(typeof c=="string"&&(yP(c)||wP(c))?c=parseFloat(c):!VP(c)&&tr.test(u)&&(c=rh(l,u)),e.addValue(l,Mi(c,{owner:e})),n[l]===void 0&&(n[l]=c),c!==null&&e.setBaseTarget(l,c))}}function WP(e,t){return t?(t[e]||t.default||t).from:void 0}function HP(e,t,n){var r;const i={};for(const o in e){const a=WP(o,t);i[o]=a!==void 0?a:(r=n.getValue(o))===null||r===void 0?void 0:r.get()}return i}function al(e){return Boolean(gt(e)&&e.add)}const GP=(e,t)=>`${e}: ${t}`;function YP(e,t,n){const{MotionAppearAnimations:r}=window,i=GP(e,zr.has(t)?"transform":t),o=r&&r.get(i);if(o){const a=performance.now();return it.update(()=>{n.animation&&(n.animation.currentTime=performance.now()-a)}),it.render(()=>{r.delete(i);try{o.cancel()}catch{}}),o.currentTime||0}else return 0}const KP="framerAppearId",qP="data-"+Gp(KP);var XP=function(){},sl=function(){};const bs=e=>e*1e3,QP={current:!1},ih=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oh=e=>t=>1-e(1-t),ah=e=>e*e,ZP=oh(ah),sh=ih(ah),Te=(e,t,n)=>-n*e+n*t+e;function uc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function JP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=uc(l,s,e+1/3),o=uc(l,s,e),a=uc(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const cc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},eT=[Kf,Sr,di],tT=e=>eT.find(t=>t.test(e));function kv(e){const t=tT(e);let n=t.parse(e);return t===di&&(n=JP(n)),n}const Fw=(e,t)=>{const n=kv(e),r=kv(t),i={...n};return o=>(i.red=cc(n.red,r.red,o),i.green=cc(n.green,r.green,o),i.blue=cc(n.blue,r.blue,o),i.alpha=Te(n.alpha,r.alpha,o),Sr.transform(i))};function zw(e,t){return typeof e=="number"?n=>Te(e,t,n):at.test(e)?Fw(e,t):Uw(e,t)}const Bw=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,a)=>zw(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},nT=(e,t)=>{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=zw(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Uw=(e,t)=>{const n=tr.createTransformer(t),r=ol(e),i=ol(t);return r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Gl(Bw(r.values,i.values),n):a=>`${a>0?t:e}`},ll=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Dv=(e,t)=>n=>Te(e,t,n);function rT(e){return typeof e=="number"?Dv:typeof e=="string"?at.test(e)?Fw:Uw:Array.isArray(e)?Bw:typeof e=="object"?nT:Dv}function iT(e,t,n){const r=[],i=n||rT(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]:t;s=Gl(l,s)}r.push(s)}return r}function Ww(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;sl(o===t.length),sl(!r||!Array.isArray(r)||r.length===o-1),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=iT(t,r,i),s=a.length,l=u=>{let c=0;if(s>1)for(;c<e.length-2&&!(u<e[c+1]);c++);const f=ll(e[c],e[c+1],u);return a[c](f)};return n?u=>l(Ri(e[0],e[o-1],u)):l}const lh=e=>e,Hw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,oT=1e-7,aT=12;function sT(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=Hw(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>oT&&++s<aT);return a}function Gw(e,t,n,r){if(e===t&&n===r)return lh;const i=o=>sT(o,0,1,e,n);return o=>o===0||o===1?o:Hw(i(o),t,r)}const Yw=e=>1-Math.sin(Math.acos(e)),uh=oh(Yw),lT=ih(uh),Kw=Gw(.33,1.53,.69,.99),ch=oh(Kw),uT=ih(ch),cT=e=>(e*=2)<1?.5*ch(e):.5*(2-Math.pow(2,-10*(e-1))),fT={linear:lh,easeIn:ah,easeInOut:sh,easeOut:ZP,circIn:Yw,circInOut:lT,circOut:uh,backIn:ch,backInOut:uT,backOut:Kw,anticipate:cT},Lv=e=>{if(Array.isArray(e)){sl(e.length===4);const[t,n,r,i]=e;return Gw(t,n,r,i)}else if(typeof e=="string")return fT[e];return e},dT=e=>Array.isArray(e)&&typeof e[0]!="number";function pT(e,t){return e.map(()=>t||sh).splice(0,e.length-1)}function hT(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function mT(e,t){return e.map(n=>n*t)}function Xf({keyframes:e,ease:t=sh,times:n,duration:r=300}){e=[...e];const i=dT(t)?t.map(Lv):Lv(t),o={done:!1,value:e[0]},a=mT(n&&n.length===e.length?n:hT(e),r);function s(){return Ww(a,e,{ease:Array.isArray(i)?i:pT(e,i)})}let l=s();return{next:u=>(o.value=l(u),o.done=u>=r,o),flipTarget:()=>{e.reverse(),l=s()}}}const fc=.001,vT=.01,Nv=10,gT=.05,yT=1;function wT({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;XP(e<=Nv*1e3);let a=1-t;a=Ri(gT,yT,a),e=Ri(vT,Nv,e/1e3),a<1?(i=u=>{const c=u*a,f=c*e,d=c-n,h=Qf(u,a),v=Math.exp(-f);return fc-d/h*v},o=u=>{const f=u*a*e,d=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,v=Math.exp(-f),g=Qf(Math.pow(u,2),a);return(-i(u)+fc>0?-1:1)*((d-h)*v)/g}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-fc+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=bT(i,o,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const ST=12;function bT(e,t,n){let r=n;for(let i=1;i<ST;i++)r=r-e(r)/t(r);return r}function Qf(e,t){return e*Math.sqrt(1-t*t)}const xT=["duration","bounce"],OT=["stiffness","damping","mass"];function Av(e,t){return t.some(n=>e[n]!==void 0)}function CT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Av(e,OT)&&Av(e,xT)){const n=wT(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}const ET=5;function qw({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let i=e[0],o=e[e.length-1];const a={done:!1,value:i},{stiffness:s,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=CT(r);let h=PT,v=c?-(c/1e3):0;const g=l/(2*Math.sqrt(s*u));function S(){const p=o-i,m=Math.sqrt(s/u)/1e3;if(n===void 0&&(n=Math.min(Math.abs(o-i)/100,.4)),g<1){const y=Qf(m,g);h=w=>{const C=Math.exp(-g*m*w);return o-C*((v+g*m*p)/y*Math.sin(y*w)+p*Math.cos(y*w))}}else if(g===1)h=y=>o-Math.exp(-m*y)*(p+(v+m*p)*y);else{const y=m*Math.sqrt(g*g-1);h=w=>{const C=Math.exp(-g*m*w),O=Math.min(y*w,300);return o-C*((v+g*m*p)*Math.sinh(O)+y*p*Math.cosh(O))/y}}}return S(),{next:p=>{const m=h(p);if(d)a.done=p>=f;else{let y=v;if(p!==0)if(g<1){const O=Math.max(0,p-ET);y=eh(m-h(O),p-O)}else y=0;const w=Math.abs(y)<=t,C=Math.abs(o-m)<=n;a.done=w&&C}return a.value=a.done?o:m,a},flipTarget:()=>{v=-v,[i,o]=[o,i],S()}}}qw.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const PT=e=>0;function TT({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const a=e[0],s={done:!1,value:a};let l=n*t;const u=a+l,c=o===void 0?u:o(u);return c!==u&&(l=c-a),{next:f=>{const d=-l*Math.exp(-f/r);return s.done=!(d>i||d<-i),s.value=s.done?c:c+d,s},flipTarget:()=>{}}}const _T={decay:TT,keyframes:Xf,tween:Xf,spring:qw};function Xw(e,t,n=0){return e-t-n}function kT(e,t=0,n=0,r=!0){return r?Xw(t+-e,t,n):t-(e-t)+n}function DT(e,t,n,r){return r?e>=t+n:e<=-n}const LT=e=>{const t=({delta:n})=>e(n);return{start:()=>it.update(t,!0),stop:()=>er.update(t)}};function ul({duration:e,driver:t=LT,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:o=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:f,onUpdate:d,type:h="keyframes",...v}){var g,S;const p=n;let m,y=0,w=e,C=!1,O=!0,P;const E=_T[a.length>2?"keyframes":h]||Xf,A=a[0],I=a[a.length-1];let k={done:!1,value:A};!((S=(g=E).needsInterpolation)===null||S===void 0)&&S.call(g,A,I)&&(P=Ww([0,100],[A,I],{clamp:!1}),a=[0,100]);const L=E({...v,duration:e,keyframes:a});function U(){y++,i==="reverse"?(O=y%2===0,n=kT(n,w,o,O)):(n=Xw(n,w,o),i==="mirror"&&L.flipTarget()),C=!1,f&&f()}function X(){m&&m.stop(),c&&c()}function Z(J){O||(J=-J),n+=J,C||(k=L.next(Math.max(0,n)),P&&(k.value=P(k.value)),C=O?k.done:n<=0),d&&d(k.value),C&&(y===0&&(w=w!==void 0?w:n),y<r?DT(n,w,o,O)&&U():X())}function H(){l&&l(),m=t(Z),m.start()}return s&&H(),{stop:()=>{u&&u(),m&&m.stop()},set currentTime(J){n=p,Z(J)},sample:J=>{n=p;const R=e&&typeof e=="number"?Math.max(e*.5,50):50;let $=0;for(Z(0);$<=J;){const W=J-$;Z(Math.min(W,R)),$+=R}return k}}}function NT(e){return!e||Array.isArray(e)||typeof e=="string"&&Qw[e]}const po=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Qw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:po([0,.65,.55,1]),circOut:po([.55,0,1,.45]),backIn:po([.31,.01,.66,-.59]),backOut:po([.33,1.53,.69,.99])};function AT(e){if(e)return Array.isArray(e)?po(e):Qw[e]}function RT(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:i,easing:AT(s),fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Rv={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},dc={},Zw={};for(const e in Rv)Zw[e]=()=>(dc[e]===void 0&&(dc[e]=Rv[e]()),dc[e]);function MT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const jT=new Set(["opacity"]),ts=10;function IT(e,t,{onUpdate:n,onComplete:r,...i}){if(!(Zw.waapi()&&jT.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0))return!1;let{keyframes:a,duration:s=300,elapsed:l=0,ease:u}=i;if(i.type==="spring"||!NT(i.ease)){if(i.repeat===1/0)return;const f=ul({...i,elapsed:0});let d={done:!1,value:a[0]};const h=[];let v=0;for(;!d.done&&v<2e4;)d=f.sample(v),h.push(d.value),v+=ts;a=h,s=v-ts,u="linear"}const c=RT(e.owner.current,t,a,{...i,delay:-l,duration:s,ease:u});return c.onfinish=()=>{e.set(MT(a,i)),r&&r()},{get currentTime(){return c.currentTime||0},set currentTime(f){c.currentTime=f},stop:()=>{const{currentTime:f}=c;if(f){const d=ul({...i,autoplay:!1});e.setWithVelocity(d.sample(f-ts).value,d.sample(f).value,ts)}it.update(()=>c.cancel())}}}function Jw(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(er.read(r),e(o-t))};return it.read(r,!0),()=>er.read(r)}function VT({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){const i=()=>{n&&n(e[e.length-1]),r&&r()};return t?{stop:Jw(i,-t)}:i()}function $T({keyframes:e,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:f,onComplete:d,onStop:h}){const v=e[0];let g;function S(w){return n!==void 0&&w<n||r!==void 0&&w>r}function p(w){return n===void 0?r:r===void 0||Math.abs(n-w)<Math.abs(r-w)?n:r}function m(w){g==null||g.stop(),g=ul({keyframes:[0,1],velocity:0,...w,driver:c,onUpdate:C=>{var O;f==null||f(C),(O=w.onUpdate)===null||O===void 0||O.call(w,C)},onComplete:d,onStop:h})}function y(w){m({type:"spring",stiffness:a,damping:s,restDelta:l,...w})}if(S(v))y({velocity:t,keyframes:[v,p(v)]});else{let w=i*t+v;typeof u<"u"&&(w=u(w));const C=p(w),O=C===n?-1:1;let P,E;const A=I=>{P=E,E=I,t=eh(I-P,vn.delta),(O===1&&I>C||O===-1&&I<C)&&y({keyframes:[I,C],velocity:t})};m({type:"decay",keyframes:[v,0],velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:S(w)?A:void 0})}return{stop:()=>g==null?void 0:g.stop()}}const cr=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ns=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pc=()=>({type:"keyframes",ease:"linear",duration:.3}),FT={type:"keyframes",duration:.8},Mv={x:cr,y:cr,z:cr,rotate:cr,rotateX:cr,rotateY:cr,rotateZ:cr,scaleX:ns,scaleY:ns,scale:ns,opacity:pc,backgroundColor:pc,color:pc,default:ns},zT=(e,{keyframes:t})=>t.length>2?FT:(Mv[e]||Mv.default)(t[1]),Zf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&tr.test(t)&&!t.startsWith("url("));function BT({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function jv(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Iv(e){return typeof e=="number"?0:rh("",e)}function eS(e,t){return e[t]||e.default||e}function UT(e,t,n,r){const i=Zf(t,n);let o=r.from!==void 0?r.from:e.get();return o==="none"&&i&&typeof n=="string"?o=rh(t,n):jv(o)&&typeof n=="string"?o=Iv(n):!Array.isArray(n)&&jv(n)&&typeof o=="string"&&(n=Iv(o)),Array.isArray(n)?(n[0]===null&&(n[0]=o),n):[o,n]}const fh=(e,t,n,r={})=>i=>{const o=eS(r,e)||{},a=o.delay||r.delay||0;let{elapsed:s=0}=r;s=s-bs(a);const l=UT(t,e,n,o),u=l[0],c=l[l.length-1],f=Zf(e,u),d=Zf(e,c);let h={keyframes:l,velocity:t.getVelocity(),...o,elapsed:s,onUpdate:S=>{t.set(S),o.onUpdate&&o.onUpdate(S)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!f||!d||QP.current||o.type===!1)return VT(h);if(o.type==="inertia")return $T(h);BT(o)||(h={...h,...zT(e,h)}),h.duration&&(h.duration=bs(h.duration)),h.repeatDelay&&(h.repeatDelay=bs(h.repeatDelay));const v=t.owner,g=v&&v.current;if(v&&g instanceof HTMLElement&&!(v!=null&&v.getProps().onUpdate)){const S=IT(t,e,h);if(S)return S}return ul(h)};function WT(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Jf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Jf(e,t,n);else{const i=typeof t=="function"?Kl(e,t,n.custom):t;r=tS(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))}function Jf(e,t,n={}){var r;const i=Kl(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>tS(e,i,n):()=>Promise.resolve(),s=!((r=e.variantChildren)===null||r===void 0)&&r.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return HT(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(c)}else return Promise.all([a(),s(n.delay)])}function tS(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t);const u=e.getValue("willChange");r&&(a=r);const c=[],f=i&&((o=e.animationState)===null||o===void 0?void 0:o.getState()[i]);for(const d in l){const h=e.getValue(d),v=l[d];if(!h||v===void 0||f&&YT(f,d))continue;const g={delay:n,elapsed:0,...a};if(!h.hasAnimated){const p=e.getProps()[qP];p&&(g.elapsed=YP(p,d,h))}let S=h.start(fh(d,h,v,e.shouldReduceMotion&&zr.has(d)?{type:!1}:g));al(u)&&(u.add(d),S=S.then(()=>u.remove(d))),c.push(S)}return Promise.all(c).then(()=>{s&&BP(e,s)})}function HT(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(GT).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Jf(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function GT(e,t){return e.sortNodePosition(t)}function YT({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}const dh=[de.Animate,de.InView,de.Focus,de.Hover,de.Tap,de.Drag,de.Exit],KT=[...dh].reverse(),qT=dh.length;function XT(e){return t=>Promise.all(t.map(({animation:n,options:r})=>WT(e,n,r)))}function QT(e){let t=XT(e);const n=JT();let r=!0;const i=(l,u)=>{const c=Kl(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;l={...l,...h,...d}}return l};function o(l){t=l(e)}function a(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let v={},g=1/0;for(let p=0;p<qT;p++){const m=KT[p],y=n[m],w=c[m]!==void 0?c[m]:f[m],C=Qo(w),O=m===u?y.isActive:null;O===!1&&(g=p);let P=w===f[m]&&w!==c[m]&&C;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),y.protectedKeys={...v},!y.isActive&&O===null||!w&&!y.prevProp||Bl(w)||typeof w=="boolean")continue;const E=ZT(y.prevProp,w);let A=E||m===u&&y.isActive&&!P&&C||p>g&&C;const I=Array.isArray(w)?w:[w];let k=I.reduce(i,{});O===!1&&(k={});const{prevResolvedValues:L={}}=y,U={...L,...k},X=Z=>{A=!0,h.delete(Z),y.needsAnimating[Z]=!0};for(const Z in U){const H=k[Z],J=L[Z];v.hasOwnProperty(Z)||(H!==J?rl(H)&&rl(J)?!kw(H,J)||E?X(Z):y.protectedKeys[Z]=!0:H!==void 0?X(Z):h.add(Z):H!==void 0&&h.has(Z)?X(Z):y.protectedKeys[Z]=!0)}y.prevProp=w,y.prevResolvedValues=k,y.isActive&&(v={...v,...k}),r&&e.blockInitialAnimation&&(A=!1),A&&!P&&d.push(...I.map(Z=>({animation:Z,options:{type:m,...l}})))}if(h.size){const p={};h.forEach(m=>{const y=e.getBaseTarget(m);y!==void 0&&(p[m]=y)}),d.push({animation:p})}let S=Boolean(d.length);return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(S=!1),r=!1,S?t(d):Promise.resolve()}function s(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var v;return(v=h.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=a(c,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n}}function ZT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kw(t,e):!1}function fr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JT(){return{[de.Animate]:fr(!0),[de.InView]:fr(),[de.Hover]:fr(),[de.Tap]:fr(),[de.Drag]:fr(),[de.Focus]:fr(),[de.Exit]:fr()}}const e9={animation:Fn(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=QT(e)),Bl(t)&&b.useEffect(()=>t.subscribe(e),[t])}),exit:Fn(e=>{const{custom:t,visualElement:n}=e,[r,i]=_w(),o=b.useContext(ga);b.useEffect(()=>{n.isPresent=r;const a=n.animationState&&n.animationState.setActive(de.Exit,!r,{custom:o&&o.custom||t});a&&!r&&a.then(i)},[r])})},Vv=(e,t)=>Math.abs(e-t);function t9(e,t){const n=Vv(e.x,t.x),r=Vv(e.y,t.y);return Math.sqrt(n**2+r**2)}class nS{constructor(t,n,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=mc(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=t9(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=vn;this.history.push({...d,timestamp:h});const{onStart:v,onMove:g}=this.handlers;c||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=hc(c,this.transformPagePoint),it.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=mc(u.type==="pointercancel"?this.lastMoveEventInfo:hc(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!xw(t))return;this.handlers=n,this.transformPagePoint=r;const i=qp(t),o=hc(i,this.transformPagePoint),{point:a}=o,{timestamp:s}=vn;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=n;l&&l(t,mc(o,this.history)),this.removeListeners=Gl(bi(window,"pointermove",this.handlePointerMove),bi(window,"pointerup",this.handlePointerUp),bi(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),er.update(this.updatePoint)}}function hc(e,t){return t?{point:t(e.point)}:e}function $v(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mc({point:e},t){return{point:e,delta:$v(e,rS(t)),offset:$v(e,n9(t)),velocity:r9(t,.1)}}function n9(e){return e[0]}function rS(e){return e[e.length-1]}function r9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=rS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>bs(t)));)n--;if(!r)return{x:0,y:0};const o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Et(e){return e.max-e.min}function ed(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fv(e,t,n,r=.5){e.origin=r,e.originPoint=Te(t.min,t.max,e.origin),e.scale=Et(n)/Et(t),(ed(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Te(n.min,n.max,e.origin)-e.originPoint,(ed(e.translate)||isNaN(e.translate))&&(e.translate=0)}function To(e,t,n,r){Fv(e.x,t.x,n.x,r==null?void 0:r.originX),Fv(e.y,t.y,n.y,r==null?void 0:r.originY)}function zv(e,t,n){e.min=n.min+t.min,e.max=e.min+Et(t)}function i9(e,t,n){zv(e.x,t.x,n.x),zv(e.y,t.y,n.y)}function Bv(e,t,n){e.min=t.min-n.min,e.max=e.min+Et(t)}function _o(e,t,n){Bv(e.x,t.x,n.x),Bv(e.y,t.y,n.y)}function o9(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Te(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Te(n,e,r.max):Math.min(e,n)),e}function Uv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function a9(e,{top:t,left:n,bottom:r,right:i}){return{x:Uv(e.x,n,i),y:Uv(e.y,t,r)}}function Wv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function s9(e,t){return{x:Wv(e.x,t.x),y:Wv(e.y,t.y)}}function l9(e,t){let n=.5;const r=Et(e),i=Et(t);return i>r?n=ll(t.min,t.max-r,e.min):r>i&&(n=ll(e.min,e.max-i,t.min)),Ri(0,1,n)}function u9(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const td=.35;function c9(e=td){return e===!1?e=0:e===!0&&(e=td),{x:Hv(e,"left","right"),y:Hv(e,"top","bottom")}}function Hv(e,t,n){return{min:Gv(e,t),max:Gv(e,n)}}function Gv(e,t){return typeof e=="number"?e:e[t]||0}const Yv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ko=()=>({x:Yv(),y:Yv()}),Kv=()=>({min:0,max:0}),Ie=()=>({x:Kv(),y:Kv()});function Zt(e){return[e("x"),e("y")]}function iS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function f9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function d9(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function vc(e){return e===void 0||e===1}function nd({scale:e,scaleX:t,scaleY:n}){return!vc(e)||!vc(t)||!vc(n)}function mr(e){return nd(e)||oS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function oS(e){return qv(e.x)||qv(e.y)}function qv(e){return e&&e!=="0%"}function cl(e,t,n){const r=e-n,i=t*r;return n+i}function Xv(e,t,n,r,i){return i!==void 0&&(e=cl(e,i,r)),cl(e,n,r)+t}function rd(e,t=0,n=1,r,i){e.min=Xv(e.min,t,n,r,i),e.max=Xv(e.max,t,n,r,i)}function aS(e,{x:t,y:n}){rd(e.x,t.translate,t.scale,t.originPoint),rd(e.y,n.translate,n.scale,n.originPoint)}function p9(e,t,n,r=!1){var i,o;const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let u=0;u<a;u++)s=n[u],l=s.projectionDelta,((o=(i=s.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&pi(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,aS(e,l)),r&&mr(s.latestValues)&&pi(e,s.latestValues));t.x=Qv(t.x),t.y=Qv(t.y)}function Qv(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function An(e,t){e.min=e.min+t,e.max=e.max+t}function Zv(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=Te(e.min,e.max,o);rd(e,t[n],t[r],a,t.scale)}const h9=["x","scaleX","originX"],m9=["y","scaleY","originY"];function pi(e,t){Zv(e.x,t,h9),Zv(e.y,t,m9)}function sS(e,t){return iS(d9(e.getBoundingClientRect(),t))}function v9(e,t,n){const r=sS(e,n),{scroll:i}=t;return i&&(An(r.x,i.offset.x),An(r.y,i.offset.y)),r}const g9=new WeakMap;class y9{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){if(this.visualElement.isPresent===!1)return;const r=s=>{this.stopAnimation(),n&&this.snapToCursor(qp(s,"page").point)},i=(s,l)=>{var u;const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ew(c),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zt(h=>{var v,g;let S=this.getAxisMotionValue(h).get()||0;if(rn.test(S)){const p=(g=(v=this.visualElement.projection)===null||v===void 0?void 0:v.layout)===null||g===void 0?void 0:g.layoutBox[h];p&&(S=Et(p)*(parseFloat(S)/100))}this.originPoint[h]=S}),d==null||d(s,l),(u=this.visualElement.animationState)===null||u===void 0||u.setActive(de.Drag,!0))},o=(s,l)=>{const{dragPropagation:u,dragDirectionLock:c,onDirectionLock:f,onDrag:d}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:h}=l;if(c&&this.currentDirection===null){this.currentDirection=w9(h),this.currentDirection!==null&&(f==null||f(this.currentDirection));return}this.updateAxis("x",l.point,h),this.updateAxis("y",l.point,h),this.visualElement.render(),d==null||d(s,l)},a=(s,l)=>this.stop(s,l);this.panSession=new nS(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o==null||o(t,n)}cancel(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(de.Drag,!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!rs(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=o9(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=a9(r.layoutBox,t):this.constraints=!1,this.elastic=c9(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Zt(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=u9(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=v9(r,i.root,this.visualElement.getTransformPagePoint());let a=s9(i.layout.layoutBox,o);if(n){const s=n(f9(a));this.hasMutatedConstraints=!!s,s&&(a=iS(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Zt(c=>{if(!rs(c,n,this.currentDirection))return;let f=(l==null?void 0:l[c])||{};a&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(fh(t,r,0,n))}stopAnimation(){Zt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var n;const r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,((n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])||0)}snapToCursor(t){Zt(n=>{const{drag:r}=this.getProps();if(!rs(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-Te(a,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;const{drag:n,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!fi(r)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Zt(s=>{const l=this.getAxisMotionValue(s);if(l){const u=l.get();o[s]=l9({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout(),this.resolveConstraints(),Zt(s=>{if(!rs(s,n,null))return;const l=this.getAxisMotionValue(s),{min:u,max:c}=this.constraints[s];l.set(Te(u,c,o[s]))})}addListeners(){var t;if(!this.visualElement.current)return;g9.set(this.visualElement,this);const n=this.visualElement.current,r=bi(n,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(u)}),i=()=>{const{dragConstraints:u}=this.getProps();fi(u)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&((t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout()),i();const s=Hl(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(Zt(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=u[f].translate,d.set(d.get()+u[f].translate))}),this.visualElement.render())});return()=>{s(),r(),a(),l==null||l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=td,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function rs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function w9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function S9(e){const{dragControls:t,visualElement:n}=e,r=Wl(()=>new y9(n));b.useEffect(()=>t&&t.subscribe(r),[r,t]),b.useEffect(()=>r.addListeners(),[r])}function b9({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){const o=e||t||n||r,a=b.useRef(null),{transformPagePoint:s}=b.useContext($p),l={onSessionStart:r,onStart:t,onMove:e,onEnd:(c,f)=>{a.current=null,n&&n(c,f)}};b.useEffect(()=>{a.current!==null&&a.current.updateHandlers(l)});function u(c){a.current=new nS(c,l,{transformPagePoint:s})}il(i,"pointerdown",o&&u),Xp(()=>a.current&&a.current.end())}const x9={pan:Fn(b9),drag:Fn(S9)};function id(e){return typeof e=="string"&&e.startsWith("var(--")}const lS=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function O9(e){const t=lS.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function od(e,t,n=1){const[r,i]=O9(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():id(i)?od(i,t,n+1):i}function C9(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach(i=>{const o=i.get();if(!id(o))return;const a=od(o,r);a&&i.set(a)});for(const i in t){const o=t[i];if(!id(o))continue;const a=od(o,r);a&&(t[i]=a,n&&n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const E9=new Set(["width","height","top","left","right","bottom","x","y"]),uS=e=>E9.has(e),P9=e=>Object.keys(e).some(uS),Jv=e=>e===Br||e===Q;var eg;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(eg||(eg={}));const tg=(e,t)=>parseFloat(e.split(", ")[t]),ng=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return tg(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?tg(o[1],e):0}},T9=new Set(["x","y","z"]),_9=tl.filter(e=>!T9.has(e));function k9(e){const t=[];return _9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}const rg={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ng(4,13),y:ng(5,14)},D9=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{s[u]=rg[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(s[u]),e[u]=rg[u](l,o)}),e},L9=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(uS);let o=[],a=!1;const s=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=no(c);const d=t[l];let h;if(rl(d)){const v=d.length,g=d[0]===null?1:0;c=d[g],f=no(c);for(let S=g;S<v;S++)h?sl(no(d[S])===h):h=no(d[S])}else h=no(d);if(f!==h)if(Jv(f)&&Jv(h)){const v=u.get();typeof v=="string"&&u.set(parseFloat(v)),typeof d=="string"?t[l]=parseFloat(d):Array.isArray(d)&&h===Q&&(t[l]=d.map(parseFloat))}else f!=null&&f.transform&&(h!=null&&h.transform)&&(c===0||d===0)?c===0?u.set(h.transform(c)):t[l]=f.transform(d):(a||(o=k9(e),a=!0),s.push(l),r[l]=r[l]!==void 0?r[l]:t[l],u.jump(d))}),s.length){const l=s.indexOf("height")>=0?window.pageYOffset:null,u=D9(t,e,s);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),zl&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function N9(e,t,n,r){return P9(t)?L9(e,t,n,r):{target:t,transitionEnd:r}}const A9=(e,t,n,r)=>{const i=C9(e,t,r);return t=i.target,r=i.transitionEnd,N9(e,t,n,r)},ad={current:null},cS={current:!1};function R9(){if(cS.current=!0,!!zl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ad.current=e.matches;e.addListener(t),t()}else ad.current=!1}function M9(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(gt(o))e.addValue(i,o),al(r)&&r.add(i);else if(gt(a))e.addValue(i,Mi(o,{owner:e})),al(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Mi(s!==void 0?s:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const fS=Object.keys(Zo),j9=fS.length,ig=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class I9{constructor({parent:t,props:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>it.render(this.render,!1,!0);const{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=s,this.parent=t,this.props=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=Ul(n),this.isVariantNode=uw(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(n,{});for(const c in u){const f=u[c];a[c]!==void 0&>(f)&&(f.set(a[c],!1),al(l)&&l.add(c))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){var n;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(n=this.parent)===null||n===void 0?void 0:n.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),cS.current||R9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ad.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,n,r;(t=this.projection)===null||t===void 0||t.unmount(),er.update(this.notifyUpdate),er.render(this.render),this.valueSubscriptions.forEach(i=>i()),(n=this.removeFromVariantTree)===null||n===void 0||n.call(this),(r=this.parent)===null||r===void 0||r.children.delete(this);for(const i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(t,n){const r=zr.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&it.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o,a,s){const l=[];for(let u=0;u<j9;u++){const c=fS[u],{isEnabled:f,Component:d}=Zo[c];f(n)&&d&&l.push(b.createElement(d,{key:c,...n,visualElement:this}))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:u,layout:c,drag:f,dragConstraints:d,layoutScroll:h,layoutRoot:v}=n;this.projection.setOptions({layoutId:u,layout:c,alwaysMeasureLayout:Boolean(f)||d&&fi(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:h,layoutRoot:v})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const n=this.props;this.props=t;for(let r=0;r<ig.length;r++){const i=ig[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=t["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=M9(this,this.scrapeMotionValuesFromProps(t,n),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){var n;return(n=this.props.variants)===null||n===void 0?void 0:n[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var n,r;if(t)return(n=this.parent)===null||n===void 0?void 0:n.getVariantContext();if(!this.isControllingVariants){const o=((r=this.parent)===null||r===void 0?void 0:r.getVariantContext())||{};return this.props.initial!==void 0&&(o.initial=this.props.initial),o}const i={};for(let o=0;o<V9;o++){const a=dS[o],s=this.props[a];(Qo(s)||s===!1)&&(i[a]=s)}return i}addVariantChild(t){var n;const r=this.getClosestVariantNode();if(r)return(n=r.variantChildren)===null||n===void 0||n.add(t),()=>r.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){var n;this.values.delete(t),(n=this.valueSubscriptions.get(t))===null||n===void 0||n(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Kp(this.props,r))===null||n===void 0?void 0:n[t]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!gt(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Jp),this.events[t].add(n)}notify(t,...n){var r;(r=this.events[t])===null||r===void 0||r.notify(...n)}}const dS=["initial",...dh],V9=dS.length;class pS extends I9{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){var r;return(r=t.style)===null||r===void 0?void 0:r[n]}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let a=HP(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){UP(this,r,a);const s=A9(this,r,a,n);n=s.transitionEnd,r=s.target}return{transition:t,transitionEnd:n,...r}}}function $9(e){return window.getComputedStyle(e)}class F9 extends pS{readValueFromInstance(t,n){if(zr.has(n)){const r=nh(n);return r&&r.default||0}else{const r=$9(t),i=(dw(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return sS(t,n)}build(t,n,r,i){Bp(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Yp(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){gw(t,n,r,i)}}class z9 extends pS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){var r;return zr.has(n)?((r=nh(n))===null||r===void 0?void 0:r.default)||0:(n=yw.has(n)?n:Gp(n),t.getAttribute(n))}measureInstanceViewportBox(){return Ie()}scrapeMotionValuesFromProps(t,n){return Sw(t,n)}build(t,n,r,i){Wp(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){ww(t,n,r,i)}mount(t){this.isSVGTag=Hp(t.tagName),super.mount(t)}}const B9=(e,t)=>zp(e)?new z9(t,{enableHardwareAcceleration:!1}):new F9(t,{enableHardwareAcceleration:!0});function og(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ro={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=og(e,t.target.x),r=og(e,t.target.y);return`${n}% ${r}%`}},ag="_$css",U9={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=e.includes("var("),o=[];i&&(e=e.replace(lS,h=>(o.push(h),ag)));const a=tr.parse(e);if(a.length>5)return r;const s=tr.createTransformer(e),l=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;const f=Te(u,c,.5);typeof a[2+l]=="number"&&(a[2+l]/=f),typeof a[3+l]=="number"&&(a[3+l]/=f);let d=s(a);if(i){let h=0;d=d.replace(ag,()=>{const v=o[h];return h++,v})}return d}};class W9 extends B.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_E(G9),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Co.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||it.postRender(()=>{var s;!((s=a.getStack())===null||s===void 0)&&s.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n!=null&&n.group&&n.group.remove(i),r!=null&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t==null||t()}render(){return null}}function H9(e){const[t,n]=_w(),r=b.useContext(Fp);return B.createElement(W9,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(cw),isPresent:t,safeToRemove:n})}const G9={borderRadius:{...ro,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ro,borderTopRightRadius:ro,borderBottomLeftRadius:ro,borderBottomRightRadius:ro,boxShadow:U9},Y9={measureLayout:H9};function K9(e,t,n={}){const r=gt(e)?e:Mi(e);return r.start(fh("",r,t,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}const hS=["TopLeft","TopRight","BottomLeft","BottomRight"],q9=hS.length,sg=e=>typeof e=="string"?parseFloat(e):e,lg=e=>typeof e=="number"||Q.test(e);function X9(e,t,n,r,i,o){i?(e.opacity=Te(0,n.opacity!==void 0?n.opacity:1,Q9(r)),e.opacityExit=Te(t.opacity!==void 0?t.opacity:1,0,Z9(r))):o&&(e.opacity=Te(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<q9;a++){const s=`border${hS[a]}Radius`;let l=ug(t,s),u=ug(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||lg(l)===lg(u)?(e[s]=Math.max(Te(sg(l),sg(u),r),0),(rn.test(u)||rn.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||n.rotate)&&(e.rotate=Te(t.rotate||0,n.rotate||0,r))}function ug(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Q9=mS(0,.5,uh),Z9=mS(.5,.95,lh);function mS(e,t,n){return r=>r<e?0:r>t?1:n(ll(e,t,r))}function cg(e,t){e.min=t.min,e.max=t.max}function $t(e,t){cg(e.x,t.x),cg(e.y,t.y)}function fg(e,t,n,r,i){return e-=t,e=cl(e,1/n,r),i!==void 0&&(e=cl(e,1/i,r)),e}function J9(e,t=0,n=1,r=.5,i,o=e,a=e){if(rn.test(t)&&(t=parseFloat(t),t=Te(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Te(o.min,o.max,r);e===o&&(s-=t),e.min=fg(e.min,t,n,s,i),e.max=fg(e.max,t,n,s,i)}function dg(e,t,[n,r,i],o,a){J9(e,t[n],t[r],t[i],t.scale,o,a)}const e_=["x","scaleX","originX"],t_=["y","scaleY","originY"];function pg(e,t,n,r){dg(e.x,t,e_,n==null?void 0:n.x,r==null?void 0:r.x),dg(e.y,t,t_,n==null?void 0:n.y,r==null?void 0:r.y)}function hg(e){return e.translate===0&&e.scale===1}function vS(e){return hg(e.x)&&hg(e.y)}function gS(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function mg(e){return Et(e.x)/Et(e.y)}class n_{constructor(){this.members=[]}add(t){Qp(this.members,t),t.scheduleRender()}remove(t){if(Zp(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){var r;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function vg(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:l,rotateX:u,rotateY:c}=n;l&&(r+=`rotate(${l}deg) `),u&&(r+=`rotateX(${u}deg) `),c&&(r+=`rotateY(${c}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(r+=`scale(${a}, ${s})`),r||"none"}const r_=(e,t)=>e.depth-t.depth;class i_{constructor(){this.children=[],this.isDirty=!1}add(t){Qp(this.children,t),this.isDirty=!0}remove(t){Zp(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(r_),this.isDirty=!1,this.children.forEach(t)}}const gg=["","X","Y","Z"],yg=1e3;let o_=0;function yS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a,s={},l=t==null?void 0:t()){this.id=o_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(l_),this.nodes.forEach(f_),this.nodes.forEach(d_)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new i_)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Jp),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l==null||l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}registerPotentialNode(a,s){this.potentialNodes.set(a,s)}mount(a,s=!1){var l;if(this.instance)return;this.isSVG=a instanceof SVGElement&&a.tagName!=="svg",this.instance=a;const{layoutId:u,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),(l=this.parent)===null||l===void 0||l.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),s&&(c||u)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Jw(h,250),Co.hasAnimatedSinceResize&&(Co.hasAnimatedSinceResize=!1,this.nodes.forEach(Sg))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:v,layout:g})=>{var S,p,m,y,w;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=(p=(S=this.options.transition)!==null&&S!==void 0?S:f.getDefaultTransition())!==null&&p!==void 0?p:g_,{onLayoutAnimationStart:O,onLayoutAnimationComplete:P}=f.getProps(),E=!this.targetLayout||!gS(this.targetLayout,g)||v,A=!h&&v;if(this.options.layoutRoot||!((m=this.resumeFrom)===null||m===void 0)&&m.instance||A||h&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,A);const I={...eS(C,"layout"),onPlay:O,onComplete:P};(f.shouldReduceMotion||this.options.layoutRoot)&&(I.delay=0,I.type=!1),this.startAnimation(I)}else!h&&this.animationProgress===0&&Sg(this),this.isLead()&&((w=(y=this.options).onExitComplete)===null||w===void 0||w.call(y));this.targetLayout=g})}unmount(){var a,s;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(s=this.parent)===null||s===void 0||s.children.delete(this),this.instance=void 0,er.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(p_),this.animationId++)}getTransformTemplate(){var a;return(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate}willUpdate(a=!0){var s,l,u;if(this.root.isUpdateBlocked()){(l=(s=this.options).onExitComplete)===null||l===void 0||l.call(s);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;c===void 0&&!f||(this.prevTransformTemplateValue=(u=this.getTransformTemplate())===null||u===void 0?void 0:u(this.latestValues,""),this.updateSnapshot(),a&&this.notifyListeners("willUpdate"))}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(wg);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(y_),this.potentialNodes.clear()),this.nodes.forEach(c_),this.nodes.forEach(a_),this.nodes.forEach(s_),this.clearAllSnapshots(),sc.update(),sc.preRender(),sc.render())}clearAllSnapshots(){this.nodes.forEach(u_),this.sharedNodes.forEach(h_)}scheduleUpdateProjection(){it.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){it.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ie(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(a=this.options.visualElement)===null||a===void 0||a.notify("LayoutMeasure",this.layout.layoutBox,s==null?void 0:s.layoutBox)}updateScroll(a="measure"){let s=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){var a;if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!vS(this.projectionDelta),u=(a=this.getTransformTemplate())===null||a===void 0?void 0:a(this.latestValues,""),c=u!==this.prevTransformTemplateValue;s&&(l||mr(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),w_(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Ie();const s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(An(s.x,l.offset.x),An(s.y,l.offset.y)),s}removeElementScroll(a){const s=Ie();$t(s,a);for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:c,options:f}=u;if(u!==this.root&&c&&f.layoutScroll){if(c.isRoot){$t(s,a);const{scroll:d}=this.root;d&&(An(s.x,-d.offset.x),An(s.y,-d.offset.y))}An(s.x,c.offset.x),An(s.y,c.offset.y)}}return s}applyTransform(a,s=!1){const l=Ie();$t(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];!s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&pi(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),mr(c.latestValues)&&pi(l,c.latestValues)}return mr(this.latestValues)&&pi(l,this.latestValues),l}removeTransform(a){var s;const l=Ie();$t(l,a);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!mr(c.latestValues))continue;nd(c.latestValues)&&c.updateSnapshot();const f=Ie(),d=c.measurePageBox();$t(f,d),pg(l,c.latestValues,(s=c.snapshot)===null||s===void 0?void 0:s.layoutBox,f)}return mr(this.latestValues)&&pg(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var a;const s=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;const{layout:l,layoutId:u}=this.options;if(!(!this.layout||!(l||u))){if(!this.targetDelta&&!this.relativeTarget){const c=this.getClosestProjectingParent();c&&c.layout?(this.relativeParent=c,this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),_o(this.relativeTargetOrigin,this.layout.layoutBox,c.layout.layoutBox),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ie(),this.targetWithTransforms=Ie()),this.relativeTarget&&this.relativeTargetOrigin&&(!((a=this.relativeParent)===null||a===void 0)&&a.target)?i9(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):$t(this.target,this.layout.layoutBox),aS(this.target,this.targetDelta)):$t(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const c=this.getClosestProjectingParent();c&&Boolean(c.resumingFrom)===Boolean(this.resumingFrom)&&!c.options.layoutScroll&&c.target?(this.relativeParent=c,this.relativeTarget=Ie(),this.relativeTargetOrigin=Ie(),_o(this.relativeTargetOrigin,this.target,c.target),$t(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nd(this.parent.latestValues)||oS(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta||this.parent.options.layoutRoot)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var a;const{isProjectionDirty:s,isTransformDirty:l}=this;this.isProjectionDirty=this.isTransformDirty=!1;const u=this.getLead(),c=Boolean(this.resumingFrom)||this!==u;let f=!0;if(s&&(f=!1),c&&l&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=Boolean(((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;$t(this.layoutCorrected,this.layout.layoutBox),p9(this.layoutCorrected,this.treeScale,this.path,c);const{target:v}=u;if(!v)return;this.projectionDelta||(this.projectionDelta=ko(),this.projectionDeltaWithTransform=ko());const g=this.treeScale.x,S=this.treeScale.y,p=this.projectionTransform;To(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=vg(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==g||this.treeScale.y!==S)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s,l,u;(l=(s=this.options).scheduleRender)===null||l===void 0||l.call(s),a&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){var l,u;const c=this.snapshot,f=(c==null?void 0:c.latestValues)||{},d={...this.latestValues},h=ko();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const v=Ie(),g=(c==null?void 0:c.source)!==((l=this.layout)===null||l===void 0?void 0:l.source),S=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,p=Boolean(g&&!S&&this.options.crossfade===!0&&!this.path.some(v_));this.animationProgress=0,this.mixTargetDelta=m=>{var y;const w=m/1e3;bg(h.x,a.x,w),bg(h.y,a.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(!((y=this.relativeParent)===null||y===void 0)&&y.layout)&&(_o(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),m_(this.relativeTarget,this.relativeTargetOrigin,v,w)),g&&(this.animationValues=d,X9(d,f,this.latestValues,w,p,S)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l;this.notifyListeners("animationStart"),(s=this.currentAnimation)===null||s===void 0||s.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(er.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=it.update(()=>{Co.hasAnimatedSinceResize=!0,this.currentAnimation=K9(0,yg,{...a,onUpdate:u=>{var c;this.mixTargetDelta(u),(c=a.onUpdate)===null||c===void 0||c.call(a,u)},onComplete:()=>{var u;(u=a.onComplete)===null||u===void 0||u.call(a),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,yg),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&wS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ie();const f=Et(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=Et(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}$t(s,l),pi(s,c),To(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){var l,u,c;this.sharedNodes.has(a)||this.sharedNodes.set(a,new n_),this.sharedNodes.get(a).add(s),s.promote({transition:(l=s.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(c=(u=s.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||c===void 0?void 0:c.call(u,s)})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;const u={};for(let c=0;c<gg.length;c++){const f="rotate"+gg[c];l[f]&&(u[f]=l[f],a.setStaticValue(f,0))}a==null||a.render();for(const c in u)a.setStaticValue(c,u[c]);a.scheduleRender()}getProjectionStyles(a={}){var s,l;const u={};if(!this.instance||this.isSVG)return u;if(this.isVisible)u.visibility="";else return{visibility:"hidden"};const c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Ss(a.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Ss(a.pointerEvents)||""),this.hasProjected&&!mr(this.latestValues)&&(g.transform=c?c({},""):"none",this.hasProjected=!1),g}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=vg(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y:v}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${v.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(s=d.opacity)!==null&&s!==void 0?s:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in el){if(d[g]===void 0)continue;const{correct:S,applyTo:p}=el[g],m=u.transform==="none"?d[g]:S(d[g],f);if(p){const y=p.length;for(let w=0;w<y;w++)u[p[w]]=m}else u[g]=m}return this.options.layoutId&&(u.pointerEvents=f===this?Ss(a.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(wg),this.root.sharedNodes.clear()}}}function a_(e){e.updateLayout()}function s_(e){var t,n,r;const i=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:a}=e.layout,{animationType:s}=e.options,l=i.source!==e.layout.source;s==="size"?Zt(h=>{const v=l?i.measuredBox[h]:i.layoutBox[h],g=Et(v);v.min=o[h].min,v.max=v.min+g}):wS(s,i.layoutBox,o)&&Zt(h=>{const v=l?i.measuredBox[h]:i.layoutBox[h],g=Et(o[h]);v.max=v.min+g});const u=ko();To(u,o,i.layoutBox);const c=ko();l?To(c,e.applyTransform(a,!0),i.measuredBox):To(c,o,i.layoutBox);const f=!vS(u);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:v,layout:g}=h;if(v&&g){const S=Ie();_o(S,i.layoutBox,v.layoutBox);const p=Ie();_o(p,o,g.layoutBox),gS(S,p)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=S,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:o,snapshot:i,delta:c,layoutDelta:u,hasLayoutChanged:f,hasRelativeTargetChanged:d})}else e.isLead()&&((r=(n=e.options).onExitComplete)===null||r===void 0||r.call(n));e.options.transition=void 0}function l_(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function u_(e){e.clearSnapshot()}function wg(e){e.clearMeasurements()}function c_(e){const{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function f_(e){e.resolveTargetDelta()}function d_(e){e.calcProjection()}function p_(e){e.resetRotation()}function h_(e){e.removeLeadSnapshot()}function bg(e,t,n){e.translate=Te(t.translate,0,n),e.scale=Te(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xg(e,t,n,r){e.min=Te(t.min,n.min,r),e.max=Te(t.max,n.max,r)}function m_(e,t,n,r){xg(e.x,t.x,n.x,r),xg(e.y,t.y,n.y,r)}function v_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const g_={duration:.45,ease:[.4,0,.1,1]};function y_(e,t){let n=e.root;for(let o=e.path.length-1;o>=0;o--)if(Boolean(e.path[o].instance)){n=e.path[o];break}const i=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);i&&e.mount(i,!0)}function Og(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function w_(e){Og(e.x),Og(e.y)}function wS(e,t,n){return e==="position"||e==="preserve-aspect"&&!ed(mg(t),mg(n),.2)}const S_=yS({attachResizeListener:(e,t)=>Hl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gc={current:void 0},b_=yS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gc.current){const e=new S_(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),gc.current=e}return gc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")}),x_={...e9,...gP,...x9,...Y9},We=PE((e,t)=>iP(e,t,x_,B9,b_));function SS(){const e=b.useRef(!1);return Js(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function O_(){const e=SS(),[t,n]=b.useState(0),r=b.useCallback(()=>{e.current&&n(t+1)},[t]);return[b.useCallback(()=>it.postRender(r),[r]),t]}class C_ extends b.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function E_({children:e,isPresent:t}){const n=b.useId(),r=b.useRef(null),i=b.useRef({width:0,height:0,top:0,left:0});return b.useInsertionEffect(()=>{const{width:o,height:a,top:s,left:l}=i.current;if(t||!r.current||!o||!a)return;r.current.dataset.motionPopId=n;const u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
|
||
[data-motion-pop-id="${n}"] {
|
||
position: absolute !important;
|
||
width: ${o}px !important;
|
||
height: ${a}px !important;
|
||
top: ${s}px !important;
|
||
left: ${l}px !important;
|
||
}
|
||
`),()=>{document.head.removeChild(u)}},[t]),b.createElement(C_,{isPresent:t,childRef:r,sizeRef:i},b.cloneElement(e,{ref:r}))}const yc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=Wl(P_),l=b.useId(),u=b.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{s.set(c,!0);for(const f of s.values())if(!f)return;r&&r()},register:c=>(s.set(c,!1),()=>s.delete(c))}),o?void 0:[n]);return b.useMemo(()=>{s.forEach((c,f)=>s.set(f,!1))},[n]),b.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),a==="popLayout"&&(e=b.createElement(E_,{isPresent:n},e)),b.createElement(ga.Provider,{value:u},e)};function P_(){return new Map}const Qr=e=>e.key||"";function T_(e,t){e.forEach(n=>{const r=Qr(n);t.set(r,n)})}function __(e){const t=[];return b.Children.forEach(e,n=>{b.isValidElement(n)&&t.push(n)}),t}const k_=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait");let[s]=O_();const l=b.useContext(Fp).forceRender;l&&(s=l);const u=SS(),c=__(e);let f=c;const d=new Set,h=b.useRef(f),v=b.useRef(new Map).current,g=b.useRef(!0);if(Js(()=>{g.current=!1,T_(c,v),h.current=f}),Xp(()=>{g.current=!0,v.clear(),d.clear()}),g.current)return b.createElement(b.Fragment,null,f.map(y=>b.createElement(yc,{key:Qr(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:a},y)));f=[...f];const S=h.current.map(Qr),p=c.map(Qr),m=S.length;for(let y=0;y<m;y++){const w=S[y];p.indexOf(w)===-1&&d.add(w)}return a==="wait"&&d.size&&(f=[]),d.forEach(y=>{if(p.indexOf(y)!==-1)return;const w=v.get(y);if(!w)return;const C=S.indexOf(y),O=()=>{v.delete(y),d.delete(y);const P=h.current.findIndex(E=>E.key===y);if(h.current.splice(P,1),!d.size){if(h.current=c,u.current===!1)return;s(),r&&r()}};f.splice(C,0,b.createElement(yc,{key:Qr(w),isPresent:!1,onExitComplete:O,custom:t,presenceAffectsLayout:o,mode:a},w))}),f=f.map(y=>{const w=y.key;return d.has(w)?y:b.createElement(yc,{key:Qr(y),isPresent:!0,presenceAffectsLayout:o,mode:a},y)}),b.createElement(b.Fragment,null,d.size?f:f.map(y=>b.cloneElement(y)))},D_=({children:e})=>{const t=Fr();return b.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[t.pathname]),e};const ph=({givenClass:e,title:t,linkData:n})=>q("div",{className:`${e?e+"-title":""} section-title`,children:[x("h2",{children:t}),n?x(xe,{to:n.link,children:n.title}):null]});var On={},L_={get exports(){return On},set exports(e){On=e}};(()=>{var e={296:(i,o,a)=>{var s=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,h=typeof self=="object"&&self&&self.Object===Object&&self,v=d||h||Function("return this")(),g=Object.prototype.toString,S=Math.max,p=Math.min,m=function(){return v.Date.now()};function y(C){var O=typeof C;return!!C&&(O=="object"||O=="function")}function w(C){if(typeof C=="number")return C;if(function(E){return typeof E=="symbol"||function(A){return!!A&&typeof A=="object"}(E)&&g.call(E)=="[object Symbol]"}(C))return NaN;if(y(C)){var O=typeof C.valueOf=="function"?C.valueOf():C;C=y(O)?O+"":O}if(typeof C!="string")return C===0?C:+C;C=C.replace(s,"");var P=u.test(C);return P||c.test(C)?f(C.slice(2),P?2:8):l.test(C)?NaN:+C}i.exports=function(C,O,P){var E,A,I,k,L,U,X=0,Z=!1,H=!1,J=!0;if(typeof C!="function")throw new TypeError("Expected a function");function R(ie){var je=E,_e=A;return E=A=void 0,X=ie,k=C.apply(_e,je)}function $(ie){return X=ie,L=setTimeout(ee,O),Z?R(ie):k}function W(ie){var je=ie-U;return U===void 0||je>=O||je<0||H&&ie-X>=I}function ee(){var ie=m();if(W(ie))return te(ie);L=setTimeout(ee,function(je){var _e=O-(je-U);return H?p(_e,I-(je-X)):_e}(ie))}function te(ie){return L=void 0,J&&E?R(ie):(E=A=void 0,k)}function Me(){var ie=m(),je=W(ie);if(E=arguments,A=this,U=ie,je){if(L===void 0)return $(U);if(H)return L=setTimeout(ee,O),R(U)}return L===void 0&&(L=setTimeout(ee,O)),k}return O=w(O)||0,y(P)&&(Z=!!P.leading,I=(H="maxWait"in P)?S(w(P.maxWait)||0,O):I,J="trailing"in P?!!P.trailing:J),Me.cancel=function(){L!==void 0&&clearTimeout(L),X=0,E=U=A=L=void 0},Me.flush=function(){return L===void 0?k:te(m())},Me}},96:(i,o,a)=>{var s="Expected a function",l=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,d=parseInt,h=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g,v=typeof self=="object"&&self&&self.Object===Object&&self,g=h||v||Function("return this")(),S=Object.prototype.toString,p=Math.max,m=Math.min,y=function(){return g.Date.now()};function w(O){var P=typeof O;return!!O&&(P=="object"||P=="function")}function C(O){if(typeof O=="number")return O;if(function(A){return typeof A=="symbol"||function(I){return!!I&&typeof I=="object"}(A)&&S.call(A)=="[object Symbol]"}(O))return NaN;if(w(O)){var P=typeof O.valueOf=="function"?O.valueOf():O;O=w(P)?P+"":P}if(typeof O!="string")return O===0?O:+O;O=O.replace(l,"");var E=c.test(O);return E||f.test(O)?d(O.slice(2),E?2:8):u.test(O)?NaN:+O}i.exports=function(O,P,E){var A=!0,I=!0;if(typeof O!="function")throw new TypeError(s);return w(E)&&(A="leading"in E?!!E.leading:A,I="trailing"in E?!!E.trailing:I),function(k,L,U){var X,Z,H,J,R,$,W=0,ee=!1,te=!1,Me=!0;if(typeof k!="function")throw new TypeError(s);function ie(Le){var ft=X,un=Z;return X=Z=void 0,W=Le,J=k.apply(un,ft)}function je(Le){return W=Le,R=setTimeout(yt,L),ee?ie(Le):J}function _e(Le){var ft=Le-$;return $===void 0||ft>=L||ft<0||te&&Le-W>=H}function yt(){var Le=y();if(_e(Le))return Yr(Le);R=setTimeout(yt,function(ft){var un=L-(ft-$);return te?m(un,H-(ft-W)):un}(Le))}function Yr(Le){return R=void 0,Me&&X?ie(Le):(X=Z=void 0,J)}function Tn(){var Le=y(),ft=_e(Le);if(X=arguments,Z=this,$=Le,ft){if(R===void 0)return je($);if(te)return R=setTimeout(yt,L),ie($)}return R===void 0&&(R=setTimeout(yt,L)),J}return L=C(L)||0,w(U)&&(ee=!!U.leading,H=(te="maxWait"in U)?p(C(U.maxWait)||0,L):H,Me="trailing"in U?!!U.trailing:Me),Tn.cancel=function(){R!==void 0&&clearTimeout(R),W=0,X=$=Z=R=void 0},Tn.flush=function(){return R===void 0?J:Yr(y())},Tn}(O,P,{leading:A,maxWait:P,trailing:I})}},703:(i,o,a)=>{var s=a(414);function l(){}function u(){}u.resetWarningCache=l,i.exports=function(){function c(h,v,g,S,p,m){if(m!==s){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function f(){return c}c.isRequired=c;var d={array:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:f,element:c,elementType:c,instanceOf:f,node:c,objectOf:f,oneOf:f,oneOfType:f,shape:f,exact:f,checkPropTypes:u,resetWarningCache:l};return d.PropTypes=d,d}},697:(i,o,a)=>{i.exports=a(703)()},414:i=>{i.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},t={};function n(i){var o=t[i];if(o!==void 0)return o.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=i=>{var o=i&&i.__esModule?()=>i.default:()=>i;return n.d(o,{a:o}),o},n.d=(i,o)=>{for(var a in o)n.o(o,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:o[a]})},n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),n.o=(i,o)=>Object.prototype.hasOwnProperty.call(i,o),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{n.r(r),n.d(r,{LazyLoadComponent:()=>Zh,LazyLoadImage:()=>Ax,trackWindowScroll:()=>ee});const i=b;var o=n.n(i),a=n(697);const s=No;var l=n.n(s);function u(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(M){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function f(M,_){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);_&&(F=F.filter(function(Be){return Object.getOwnPropertyDescriptor(M,Be).enumerable})),z.push.apply(z,F)}return z}function d(M,_,z){return _ in M?Object.defineProperty(M,_,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[_]=z,M}function h(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function v(M,_){return(v=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function g(M,_){if(_&&(c(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(M)}function S(M){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var p=function(M){M.forEach(function(_){_.isIntersecting&&_.target.onVisible()})},m={},y=function(M){(function(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),j&&v(N,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var N,j=S(F);if(Be){var Y=S(this).constructor;N=Reflect.construct(j,arguments,Y)}else N=j.apply(this,arguments);return g(this,N)});function fe(N){var j;if(function(K,ne){if(!(K instanceof ne))throw new TypeError("Cannot call a class as a function")}(this,fe),(j=Yt.call(this,N)).supportsObserver=!N.scrollPosition&&N.useIntersectionObserver&&u(),j.supportsObserver){var Y=N.threshold;j.observer=function(K){return m[K]=m[K]||new IntersectionObserver(p,{rootMargin:K+"px"}),m[K]}(Y)}return j}return _=fe,(z=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,j=this.placeholder.getBoundingClientRect(),Y=l().findDOMNode(this.placeholder).style,K={left:parseInt(Y.getPropertyValue("margin-left"),10)||0,top:parseInt(Y.getPropertyValue("margin-top"),10)||0};return{bottom:N.y+j.bottom+K.top,left:N.x+j.left+K.left,right:N.x+j.right+K.left,top:N.y+j.top+K.top}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var N=this.props,j=N.scrollPosition,Y=N.threshold,K=this.getPlaceholderBoundingBox(j),ne=j.y+window.innerHeight,ce=j.x,Se=j.x+window.innerWidth,be=j.y;return Boolean(be-Y<=K.bottom&&ne+Y>=K.top&&ce-Y<=K.right&&Se+Y>=K.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var N=this,j=this.props,Y=j.className,K=j.height,ne=j.placeholder,ce=j.style,Se=j.width;if(ne&&typeof ne.type!="function")return o().cloneElement(ne,{ref:function(he){return N.placeholder=he}});var be=function(he){for(var Ye=1;Ye<arguments.length;Ye++){var Ae=arguments[Ye]!=null?arguments[Ye]:{};Ye%2?f(Object(Ae),!0).forEach(function(Ze){d(he,Ze,Ae[Ze])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Ae)):f(Object(Ae)).forEach(function(Ze){Object.defineProperty(he,Ze,Object.getOwnPropertyDescriptor(Ae,Ze))})}return he}({display:"inline-block"},ce);return Se!==void 0&&(be.width=Se),K!==void 0&&(be.height=K),o().createElement("span",{className:Y,ref:function(he){return N.placeholder=he},style:be},ne)}}])&&h(_.prototype,z),fe}(o().Component);y.propTypes={onVisible:a.PropTypes.func.isRequired,className:a.PropTypes.string,height:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string]),placeholder:a.PropTypes.element,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,scrollPosition:a.PropTypes.shape({x:a.PropTypes.number.isRequired,y:a.PropTypes.number.isRequired}),width:a.PropTypes.oneOfType([a.PropTypes.number,a.PropTypes.string])},y.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const w=y;var C=n(296),O=n.n(C),P=n(96),E=n.n(P),A=function(M){var _=getComputedStyle(M,null);return _.getPropertyValue("overflow")+_.getPropertyValue("overflow-y")+_.getPropertyValue("overflow-x")};const I=function(M){if(!(M instanceof HTMLElement))return window;for(var _=M;_&&_ instanceof HTMLElement;){if(/(scroll|auto)/.test(A(_)))return _;_=_.parentNode}return window};function k(M){return(k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}var L=["delayMethod","delayTime"];function U(){return(U=Object.assign||function(M){for(var _=1;_<arguments.length;_++){var z=arguments[_];for(var F in z)Object.prototype.hasOwnProperty.call(z,F)&&(M[F]=z[F])}return M}).apply(this,arguments)}function X(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function Z(M,_){return(Z=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function H(M,_){if(_&&(k(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return J(M)}function J(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function R(M){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var $=function(){return typeof window>"u"?0:window.scrollX||window.pageXOffset},W=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const ee=function(M){var _=function(z){(function(Y,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");Y.prototype=Object.create(K&&K.prototype,{constructor:{value:Y,writable:!0,configurable:!0}}),K&&Z(Y,K)})(j,z);var F,Be,Yt,fe,N=(Yt=j,fe=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var Y,K=R(Yt);if(fe){var ne=R(this).constructor;Y=Reflect.construct(K,arguments,ne)}else Y=K.apply(this,arguments);return H(this,Y)});function j(Y){var K;if(function(ce,Se){if(!(ce instanceof Se))throw new TypeError("Cannot call a class as a function")}(this,j),(K=N.call(this,Y)).useIntersectionObserver=Y.useIntersectionObserver&&u(),K.useIntersectionObserver)return H(K);var ne=K.onChangeScroll.bind(J(K));return Y.delayMethod==="debounce"?K.delayedScroll=O()(ne,Y.delayTime):Y.delayMethod==="throttle"&&(K.delayedScroll=E()(ne,Y.delayTime)),K.state={scrollPosition:{x:$(),y:W()}},K.baseComponentRef=o().createRef(),K}return F=j,(Be=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||I(l().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=I(l().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:$(),y:W()}})}},{key:"render",value:function(){var Y=this.props,K=(Y.delayMethod,Y.delayTime,function(ce,Se){if(ce==null)return{};var be,he,Ye=function(Ze,qr){if(Ze==null)return{};var ur,Ra,rm={},im=Object.keys(Ze);for(Ra=0;Ra<im.length;Ra++)ur=im[Ra],qr.indexOf(ur)>=0||(rm[ur]=Ze[ur]);return rm}(ce,Se);if(Object.getOwnPropertySymbols){var Ae=Object.getOwnPropertySymbols(ce);for(he=0;he<Ae.length;he++)be=Ae[he],Se.indexOf(be)>=0||Object.prototype.propertyIsEnumerable.call(ce,be)&&(Ye[be]=ce[be])}return Ye}(Y,L)),ne=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(M,U({forwardRef:this.baseComponentRef,scrollPosition:ne},K))}}])&&X(F.prototype,Be),j}(o().Component);return _.propTypes={delayMethod:a.PropTypes.oneOf(["debounce","throttle"]),delayTime:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool},_.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},_};function te(M){return(te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function Me(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function ie(M,_){return(ie=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function je(M,_){if(_&&(te(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(M)}function _e(M){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var yt=function(M){(function(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),j&&ie(N,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var N,j=_e(F);if(Be){var Y=_e(this).constructor;N=Reflect.construct(j,arguments,Y)}else N=j.apply(this,arguments);return je(this,N)});function fe(N){return function(j,Y){if(!(j instanceof Y))throw new TypeError("Cannot call a class as a function")}(this,fe),Yt.call(this,N)}return _=fe,(z=[{key:"render",value:function(){return o().createElement(w,this.props)}}])&&Me(_.prototype,z),fe}(o().Component);const Yr=ee(yt);function Tn(M){return(Tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}function Le(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function ft(M,_){return(ft=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function un(M,_){if(_&&(Tn(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aa(M)}function Aa(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function Ne(M){return(Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var Kr=function(M){(function(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),j&&ft(N,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var N,j=Ne(F);if(Be){var Y=Ne(this).constructor;N=Reflect.construct(j,arguments,Y)}else N=j.apply(this,arguments);return un(this,N)});function fe(N){var j;(function(Se,be){if(!(Se instanceof be))throw new TypeError("Cannot call a class as a function")})(this,fe),j=Yt.call(this,N);var Y=N.afterLoad,K=N.beforeLoad,ne=N.scrollPosition,ce=N.visibleByDefault;return j.state={visible:ce},ce&&(K(),Y()),j.onVisible=j.onVisible.bind(Aa(j)),j.isScrollTracked=Boolean(ne&&Number.isFinite(ne.x)&&ne.x>=0&&Number.isFinite(ne.y)&&ne.y>=0),j}return _=fe,(z=[{key:"componentDidUpdate",value:function(N,j){j.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var N=this.props,j=N.className,Y=N.delayMethod,K=N.delayTime,ne=N.height,ce=N.placeholder,Se=N.scrollPosition,be=N.style,he=N.threshold,Ye=N.useIntersectionObserver,Ae=N.width;return this.isScrollTracked||Ye&&u()?o().createElement(w,{className:j,height:ne,onVisible:this.onVisible,placeholder:ce,scrollPosition:Se,style:be,threshold:he,useIntersectionObserver:Ye,width:Ae}):o().createElement(Yr,{className:j,delayMethod:Y,delayTime:K,height:ne,onVisible:this.onVisible,placeholder:ce,style:be,threshold:he,width:Ae})}}])&&Le(_.prototype,z),fe}(o().Component);Kr.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool},Kr.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const Zh=Kr;function Jh(M){return(Jh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(M)}var kx=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function em(M,_){var z=Object.keys(M);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(M);_&&(F=F.filter(function(Be){return Object.getOwnPropertyDescriptor(M,Be).enumerable})),z.push.apply(z,F)}return z}function tm(M){for(var _=1;_<arguments.length;_++){var z=arguments[_]!=null?arguments[_]:{};_%2?em(Object(z),!0).forEach(function(F){Dx(M,F,z[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(z)):em(Object(z)).forEach(function(F){Object.defineProperty(M,F,Object.getOwnPropertyDescriptor(z,F))})}return M}function Dx(M,_,z){return _ in M?Object.defineProperty(M,_,{value:z,enumerable:!0,configurable:!0,writable:!0}):M[_]=z,M}function ku(){return(ku=Object.assign||function(M){for(var _=1;_<arguments.length;_++){var z=arguments[_];for(var F in z)Object.prototype.hasOwnProperty.call(z,F)&&(M[F]=z[F])}return M}).apply(this,arguments)}function Lx(M,_){for(var z=0;z<_.length;z++){var F=_[z];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(M,F.key,F)}}function nm(M,_){return(nm=Object.setPrototypeOf||function(z,F){return z.__proto__=F,z})(M,_)}function Nx(M,_){if(_&&(Jh(_)==="object"||typeof _=="function"))return _;if(_!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}(M)}function Du(M){return(Du=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)})(M)}var Lu=function(M){(function(N,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(j&&j.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),j&&nm(N,j)})(fe,M);var _,z,F,Be,Yt=(F=fe,Be=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var N,j=Du(F);if(Be){var Y=Du(this).constructor;N=Reflect.construct(j,arguments,Y)}else N=j.apply(this,arguments);return Nx(this,N)});function fe(N){var j;return function(Y,K){if(!(Y instanceof K))throw new TypeError("Cannot call a class as a function")}(this,fe),(j=Yt.call(this,N)).state={loaded:!1},j}return _=fe,(z=[{key:"onImageLoad",value:function(){var N=this;return this.state.loaded?null:function(){N.props.afterLoad(),N.setState({loaded:!0})}}},{key:"getImg",value:function(){var N=this.props,j=(N.afterLoad,N.beforeLoad,N.delayMethod,N.delayTime,N.effect,N.placeholder,N.placeholderSrc,N.scrollPosition,N.threshold,N.useIntersectionObserver,N.visibleByDefault,N.wrapperClassName,N.wrapperProps,function(Y,K){if(Y==null)return{};var ne,ce,Se=function(he,Ye){if(he==null)return{};var Ae,Ze,qr={},ur=Object.keys(he);for(Ze=0;Ze<ur.length;Ze++)Ae=ur[Ze],Ye.indexOf(Ae)>=0||(qr[Ae]=he[Ae]);return qr}(Y,K);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(Y);for(ce=0;ce<be.length;ce++)ne=be[ce],K.indexOf(ne)>=0||Object.prototype.propertyIsEnumerable.call(Y,ne)&&(Se[ne]=Y[ne])}return Se}(N,kx));return o().createElement("img",ku({onLoad:this.onImageLoad()},j))}},{key:"getLazyLoadImage",value:function(){var N=this.props,j=N.beforeLoad,Y=N.className,K=N.delayMethod,ne=N.delayTime,ce=N.height,Se=N.placeholder,be=N.scrollPosition,he=N.style,Ye=N.threshold,Ae=N.useIntersectionObserver,Ze=N.visibleByDefault,qr=N.width;return o().createElement(Zh,{beforeLoad:j,className:Y,delayMethod:K,delayTime:ne,height:ce,placeholder:Se,scrollPosition:be,style:he,threshold:Ye,useIntersectionObserver:Ae,visibleByDefault:Ze,width:qr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(N){var j=this.props,Y=j.effect,K=j.height,ne=j.placeholderSrc,ce=j.width,Se=j.wrapperClassName,be=j.wrapperProps,he=this.state.loaded,Ye=he?" lazy-load-image-loaded":"",Ae=he||!ne?{}:{backgroundImage:"url(".concat(ne,")"),backgroundSize:"100% 100%"};return o().createElement("span",ku({className:Se+" lazy-load-image-background "+Y+Ye,style:tm(tm({},Ae),{},{color:"transparent",display:"inline-block",height:K,width:ce})},be),N)}},{key:"render",value:function(){var N=this.props,j=N.effect,Y=N.placeholderSrc,K=N.visibleByDefault,ne=N.wrapperClassName,ce=N.wrapperProps,Se=this.getLazyLoadImage();return(j||Y)&&!K||ne||ce?this.getWrappedLazyLoadImage(Se):Se}}])&&Lx(_.prototype,z),fe}(o().Component);Lu.propTypes={afterLoad:a.PropTypes.func,beforeLoad:a.PropTypes.func,delayMethod:a.PropTypes.string,delayTime:a.PropTypes.number,effect:a.PropTypes.string,placeholderSrc:a.PropTypes.string,threshold:a.PropTypes.number,useIntersectionObserver:a.PropTypes.bool,visibleByDefault:a.PropTypes.bool,wrapperClassName:a.PropTypes.string,wrapperProps:a.PropTypes.object},Lu.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const Ax=Lu})(),L_.exports=r})();const bS=({title:e})=>x("p",{className:"news-category",children:e}),xS=({date:e})=>x("h3",{className:"news-date",children:e}),io=({title:e,date:t,img:n,category:r,link:i})=>x(xe,{to:i,className:"aside-news",children:q("div",{className:"aside-news-wrapper",children:[x("div",{className:"aside-news-image",children:x(On.LazyLoadImage,{src:n,alt:n,useIntersectionObserver:!0,effect:"blur"})}),x("div",{className:"aside-news-info",children:q("div",{className:"aside-news-info-inner",children:[q("div",{className:"aside-news-status",children:[x(bS,{title:r}),x(xS,{date:t})]}),x("h2",{className:"aside-news-title",children:e})]})})]})});var T={},N_={get exports(){return T},set exports(e){T=e}},A_="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",R_=A_,M_=R_;function OS(){}function CS(){}CS.resetWarningCache=OS;var j_=function(){function e(r,i,o,a,s,l){if(l!==M_){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:CS,resetWarningCache:OS};return n.PropTypes=n,n};N_.exports=j_();function ES(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ES(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ql(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ES(e))&&(r&&(r+=" "),r+=t);return r}var I_="Expected a function",PS="__lodash_hash_undefined__",V_="[object Function]",$_="[object GeneratorFunction]",F_=/[\\^$.*+?()[\]{}|]/g,z_=/^\[object .+?Constructor\]$/,B_=typeof ja=="object"&&ja&&ja.Object===Object&&ja,U_=typeof self=="object"&&self&&self.Object===Object&&self,TS=B_||U_||Function("return this")();function W_(e,t){return e==null?void 0:e[t]}function H_(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var G_=Array.prototype,Y_=Function.prototype,_S=Object.prototype,wc=TS["__core-js_shared__"],Cg=function(){var e=/[^.]+$/.exec(wc&&wc.keys&&wc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kS=Y_.toString,hh=_S.hasOwnProperty,K_=_S.toString,q_=RegExp("^"+kS.call(hh).replace(F_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X_=G_.splice,Q_=DS(TS,"Map"),ta=DS(Object,"create");function Dr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z_(){this.__data__=ta?ta(null):{}}function J_(e){return this.has(e)&&delete this.__data__[e]}function ek(e){var t=this.__data__;if(ta){var n=t[e];return n===PS?void 0:n}return hh.call(t,e)?t[e]:void 0}function tk(e){var t=this.__data__;return ta?t[e]!==void 0:hh.call(t,e)}function nk(e,t){var n=this.__data__;return n[e]=ta&&t===void 0?PS:t,this}Dr.prototype.clear=Z_;Dr.prototype.delete=J_;Dr.prototype.get=ek;Dr.prototype.has=tk;Dr.prototype.set=nk;function Ui(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function rk(){this.__data__=[]}function ik(e){var t=this.__data__,n=Xl(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():X_.call(t,n,1),!0}function ok(e){var t=this.__data__,n=Xl(t,e);return n<0?void 0:t[n][1]}function ak(e){return Xl(this.__data__,e)>-1}function sk(e,t){var n=this.__data__,r=Xl(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Ui.prototype.clear=rk;Ui.prototype.delete=ik;Ui.prototype.get=ok;Ui.prototype.has=ak;Ui.prototype.set=sk;function Ur(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function lk(){this.__data__={hash:new Dr,map:new(Q_||Ui),string:new Dr}}function uk(e){return Ql(this,e).delete(e)}function ck(e){return Ql(this,e).get(e)}function fk(e){return Ql(this,e).has(e)}function dk(e,t){return Ql(this,e).set(e,t),this}Ur.prototype.clear=lk;Ur.prototype.delete=uk;Ur.prototype.get=ck;Ur.prototype.has=fk;Ur.prototype.set=dk;function Xl(e,t){for(var n=e.length;n--;)if(gk(e[n][0],t))return n;return-1}function pk(e){if(!LS(e)||mk(e))return!1;var t=yk(e)||H_(e)?q_:z_;return t.test(vk(e))}function Ql(e,t){var n=e.__data__;return hk(t)?n[typeof t=="string"?"string":"hash"]:n.map}function DS(e,t){var n=W_(e,t);return pk(n)?n:void 0}function hk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function mk(e){return!!Cg&&Cg in e}function vk(e){if(e!=null){try{return kS.call(e)}catch{}try{return e+""}catch{}}return""}function mh(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(I_);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(mh.Cache||Ur),n}mh.Cache=Ur;function gk(e,t){return e===t||e!==e&&t!==t}function yk(e){var t=LS(e)?K_.call(e):"";return t==V_||t==$_}function LS(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}var NS=mh;function AS(e){return JSON.stringify(e)}function wk(e){return e.filter(function(t,n){return t&&e.indexOf(t)===n})}function Sk(e){return e.map(function(t){if(!t||t.indexOf("-")===-1||t.toLowerCase()!==t)return t;var n=t.split("-");return n[0]+"-"+n[1].toUpperCase()})}function bk(e){var t=e===void 0?{}:e,n=t.useFallbackLocale,r=n===void 0?!0:n,i=t.fallbackLocale,o=i===void 0?"en-US":i,a=[];if(typeof window<"u"){var s=window,l=s.navigator;a=a.concat(l.languages,l.language,l.userLanguage,l.browserLanguage,l.systemLanguage)}return r&&a.push(o),Sk(wk(a))}var xk=NS(bk,AS);function Ok(e){return xk(e)[0]||null}var RS=NS(Ok,AS);function En(e,t,n){return function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,a=e(i)+o;return t(a)}}function ba(e){return function(n){return new Date(e(n).getTime()-1)}}function xa(e){return function(n){return e.map(function(r){return r(n)})}}function we(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;var t=parseInt(e,10);if(typeof e=="string"&&!isNaN(t))return t;throw new Error("Failed to get year from date: ".concat(e,"."))}function sr(e){if(e instanceof Date)return e.getMonth();throw new Error("Failed to get month from date: ".concat(e,"."))}function Zl(e){if(e instanceof Date)return e.getDate();throw new Error("Failed to get year from date: ".concat(e,"."))}function Oa(e){var t=we(e),n=t+(-t+1)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var Ck=En(we,Oa,-100),MS=En(we,Oa,100),vh=ba(MS),Ek=En(we,vh,-100),jS=xa([Oa,vh]);function Wr(e){var t=we(e),n=t+(-t+1)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var IS=En(we,Wr,-10),gh=En(we,Wr,10),Jl=ba(gh),VS=En(we,Jl,-10),$S=xa([Wr,Jl]);function Ca(e){var t=we(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var FS=En(we,Ca,-1),yh=En(we,Ca,1),eu=ba(yh),zS=En(we,eu,-1),Pk=xa([Ca,eu]);function wh(e,t){return function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=we(r),a=sr(r)+i,s=new Date;return s.setFullYear(o,a,1),s.setHours(0,0,0,0),e(s)}}function Wi(e){var t=we(e),n=sr(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var BS=wh(Wi,-1),Sh=wh(Wi,1),Ea=ba(Sh),US=wh(Ea,-1),Tk=xa([Wi,Ea]);function _k(e,t){return function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,o=we(r),a=sr(r),s=Zl(r)+i,l=new Date;return l.setFullYear(o,a,s),l.setHours(0,0,0,0),e(l)}}function tu(e){var t=we(e),n=sr(e),r=Zl(e),i=new Date;return i.setFullYear(t,n,r),i.setHours(0,0,0,0),i}var kk=_k(tu,1),bh=ba(kk),Dk=xa([tu,bh]);function WS(e){return Zl(Ea(e))}var oo;function Lk(e){return Mk(e)||Rk(e)||Ak(e)||Nk()}function Nk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ak(e,t){if(e){if(typeof e=="string")return sd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sd(e,t)}}function Rk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mk(e){if(Array.isArray(e))return sd(e)}function sd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var De={ARABIC:"Arabic",HEBREW:"Hebrew",ISO_8601:"ISO 8601",US:"US"},Eg=(oo={},Sc(oo,De.US,["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"]),Sc(oo,De.ARABIC,["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]),Sc(oo,De.HEBREW,["he","he-IL"]),oo),xh=Lk(Array(7)).map(function(e,t){return t}),bc=new Map;function jk(e){return function(t,n){var r=t||RS();bc.has(r)||bc.set(r,new Map);var i=bc.get(r);return i.has(e)||i.set(e,new Intl.DateTimeFormat(r,e).format),i.get(e)(n)}}function Ik(e){var t=new Date(e);return new Date(t.setHours(12))}function Hr(e){return function(t,n){return jk(e)(t,Ik(n))}}var Vk={day:"numeric"},$k={day:"numeric",month:"long",year:"numeric"},Fk={month:"long"},zk={month:"long",year:"numeric"},Bk={weekday:"short"},Uk={weekday:"long"},Wk={year:"numeric"},Hk=Hr(Vk),Gk=Hr($k),Yk=Hr(Fk),HS=Hr(zk),Kk=Hr(Bk),qk=Hr(Uk),nu=Hr(Wk),Xk=xh[0],Qk=xh[5],Pg=xh[6];function na(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=e.getDay();switch(t){case De.ISO_8601:return(n+6)%7;case De.ARABIC:return(n+1)%7;case De.HEBREW:case De.US:return n;default:throw new Error("Unsupported calendar type.")}}function Zk(e){var t=Oa(e);return we(t)}function Jk(e){var t=Wr(e);return we(t)}function ld(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=we(e),r=sr(e),i=e.getDate()-na(e,t);return new Date(n,r,i)}function eD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=t===De.US?De.US:De.ISO_8601,r=ld(e,t),i=we(e)+1,o,a;do o=new Date(i,0,n===De.ISO_8601?4:1),a=ld(o,t),i-=1;while(e<a);return Math.round((r-a)/(864e5*7))+1}function Or(e,t){switch(e){case"century":return Oa(t);case"decade":return Wr(t);case"year":return Ca(t);case"month":return Wi(t);case"day":return tu(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function tD(e,t){switch(e){case"century":return Ck(t);case"decade":return IS(t);case"year":return FS(t);case"month":return BS(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function GS(e,t){switch(e){case"century":return MS(t);case"decade":return gh(t);case"year":return yh(t);case"month":return Sh(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var nD=function(t,n){switch(t){case"decade":return IS(n,-100);case"year":return FS(n,-10);case"month":return BS(n,-12);default:throw new Error("Invalid rangeType: ".concat(t))}},rD=function(t,n){switch(t){case"decade":return gh(n,100);case"year":return yh(n,10);case"month":return Sh(n,12);default:throw new Error("Invalid rangeType: ".concat(t))}};function YS(e,t){switch(e){case"century":return vh(t);case"decade":return Jl(t);case"year":return eu(t);case"month":return Ea(t);case"day":return bh(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function iD(e,t){switch(e){case"century":return Ek(t);case"decade":return VS(t);case"year":return zS(t);case"month":return US(t);default:throw new Error("Invalid rangeType: ".concat(e))}}var oD=function(t,n){switch(t){case"decade":return VS(n,-100);case"year":return zS(n,-10);case"month":return US(n,-12);default:throw new Error("Invalid rangeType: ".concat(t))}};function Tg(e,t){switch(e){case"century":return jS(t);case"decade":return $S(t);case"year":return Pk(t);case"month":return Tk(t);case"day":return Dk(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function aD(e,t,n){var r=[t,n].sort(function(i,o){return i-o});return[Or(e,r[0]),YS(e,r[1])]}function KS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nu,n=arguments.length>2?arguments[2]:void 0;return n.map(function(r){return t(e,r)}).join(" – ")}function sD(e,t,n){return KS(e,t,jS(n))}function qS(e,t,n){return KS(e,t,$S(n))}function XS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:De.ISO_8601,n=e.getDay();switch(t){case De.ARABIC:case De.HEBREW:return n===Qk||n===Pg;case De.ISO_8601:case De.US:return n===Pg||n===Xk;default:throw new Error("Unsupported calendar type.")}}function ji(e){return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}var lD=Object.values(De),QS=["century","decade","year","month"],Pa=T.oneOf(lD),fl=T.oneOfType([T.string,T.arrayOf(T.string)]),Oh=function(t,n,r){var i=t[n];if(!i)return null;if(!(i instanceof Date))return new Error("Invalid prop `".concat(n,"` of type `").concat(ji(i),"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=t.maxDate;return o&&i>o?new Error("Invalid prop `".concat(n,"` of type `").concat(ji(i),"` supplied to `").concat(r,"`, minDate cannot be larger than maxDate.")):null},Ch=function(t,n,r){var i=t[n];if(!i)return null;if(!(i instanceof Date))return new Error("Invalid prop `".concat(n,"` of type `").concat(ji(i),"` supplied to `").concat(r,"`, expected instance of `Date`."));var o=t.minDate;return o&&i<o?new Error("Invalid prop `".concat(n,"` of type `").concat(ji(i),"` supplied to `").concat(r,"`, maxDate cannot be smaller than minDate.")):null},uD=T.oneOfType([T.func,T.shape({current:T.any})]),ZS=T.oneOfType([T.instanceOf(Date),T.arrayOf(T.instanceOf(Date))]),cD=T.arrayOf(T.oneOf(QS)),ra=function(t,n,r){var i=t[n],o=t.views,a=o||QS;return i!==void 0&&a.indexOf(i)===-1?new Error("Invalid prop `".concat(n,"` of value `").concat(i,"` supplied to `").concat(r,"`, expected one of [").concat(a.map(function(s){return'"'.concat(s,'"')}).join(", "),"].")):null};ra.isRequired=function(e,t,n){var r=e[t];return r?ra(e,t,n):new Error("The prop `".concat(t,"` is marked as required in `").concat(n,"`, but its value is `").concat(r,"`."))};var Ta={activeStartDate:T.instanceOf(Date).isRequired,hover:T.instanceOf(Date),locale:T.string,maxDate:Ch,minDate:Oh,onClick:T.func,onMouseOver:T.func,tileClassName:T.oneOfType([T.func,fl]),tileContent:T.oneOfType([T.func,T.node]),value:ZS,valueType:T.string},_a={activeStartDate:T.instanceOf(Date).isRequired,classes:T.arrayOf(T.string).isRequired,date:T.instanceOf(Date).isRequired,locale:T.string,maxDate:Ch,minDate:Oh,onClick:T.func,onMouseOver:T.func,style:T.objectOf(T.oneOfType([T.string,T.number])),tileClassName:T.oneOfType([T.func,fl]),tileContent:T.oneOfType([T.func,T.node]),tileDisabled:T.func},qt="react-calendar__navigation";function JS(e){var t=e.activeStartDate,n=e.drillUp,r=e.formatMonthYear,i=r===void 0?HS:r,o=e.formatYear,a=o===void 0?nu:o,s=e.locale,l=e.maxDate,u=e.minDate,c=e.navigationAriaLabel,f=c===void 0?"":c,d=e.navigationAriaLive,h=e.navigationLabel,v=e.next2AriaLabel,g=v===void 0?"":v,S=e.next2Label,p=S===void 0?"»":S,m=e.nextAriaLabel,y=m===void 0?"":m,w=e.nextLabel,C=w===void 0?"›":w,O=e.prev2AriaLabel,P=O===void 0?"":O,E=e.prev2Label,A=E===void 0?"«":E,I=e.prevAriaLabel,k=I===void 0?"":I,L=e.prevLabel,U=L===void 0?"‹":L,X=e.setActiveStartDate,Z=e.showDoubleView,H=e.view,J=e.views,R=J.indexOf(H)>0,$=H!=="century",W=tD(H,t),ee=$&&nD(H,t),te=GS(H,t),Me=$&&rD(H,t),ie=function(){if(W.getFullYear()<0)return!0;var Ne=iD(H,t);return u&&u>=Ne}(),je=$&&function(){if(ee.getFullYear()<0)return!0;var Ne=oD(H,t);return u&&u>=Ne}(),_e=l&&l<te,yt=$&&l&&l<Me;function Yr(){X(W,"prev")}function Tn(){X(ee,"prev2")}function Le(){X(te,"next")}function ft(){X(Me,"next2")}function un(Ne){var Kr=function(){switch(H){case"century":return sD(s,a,Ne);case"decade":return qS(s,a,Ne);case"year":return a(s,Ne);case"month":return i(s,Ne);default:throw new Error("Invalid view: ".concat(H,"."))}}();return h?h({date:Ne,label:Kr,locale:s||RS(),view:H}):Kr}function Aa(){var Ne="".concat(qt,"__label");return B.createElement("button",{"aria-label":f,"aria-live":d,className:Ne,disabled:!R,onClick:n,style:{flexGrow:1},type:"button"},B.createElement("span",{className:"".concat(Ne,"__labelText ").concat(Ne,"__labelText--from")},un(t)),Z&&B.createElement(B.Fragment,null,B.createElement("span",{className:"".concat(Ne,"__divider")}," – "),B.createElement("span",{className:"".concat(Ne,"__labelText ").concat(Ne,"__labelText--to")},un(te))))}return B.createElement("div",{className:qt},A!==null&&$&&B.createElement("button",{"aria-label":P,className:"".concat(qt,"__arrow ").concat(qt,"__prev2-button"),disabled:je,onClick:Tn,type:"button"},A),U!==null&&B.createElement("button",{"aria-label":k,className:"".concat(qt,"__arrow ").concat(qt,"__prev-button"),disabled:ie,onClick:Yr,type:"button"},U),Aa(),C!==null&&B.createElement("button",{"aria-label":y,className:"".concat(qt,"__arrow ").concat(qt,"__next-button"),disabled:_e,onClick:Le,type:"button"},C),p!==null&&$&&B.createElement("button",{"aria-label":g,className:"".concat(qt,"__arrow ").concat(qt,"__next2-button"),disabled:yt,onClick:ft,type:"button"},p))}JS.propTypes={activeStartDate:T.instanceOf(Date).isRequired,drillUp:T.func.isRequired,formatMonthYear:T.func,formatYear:T.func,locale:T.string,maxDate:T.instanceOf(Date),minDate:T.instanceOf(Date),navigationAriaLabel:T.string,navigationAriaLive:T.string,navigationLabel:T.func,next2AriaLabel:T.string,next2Label:T.node,nextAriaLabel:T.string,nextLabel:T.node,prev2AriaLabel:T.string,prev2Label:T.node,prevAriaLabel:T.string,prevLabel:T.node,setActiveStartDate:T.func.isRequired,showDoubleView:T.bool,view:ra.isRequired,views:cD.isRequired};var fD=["children","className","direction","count","offset","style","wrap"];function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ud.apply(this,arguments)}function _g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(n),!0).forEach(function(r){dD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pD(e,t){if(e==null)return{};var n=hD(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function kg(e){return"".concat(e,"%")}function ru(e){var t=e.children,n=e.className,r=e.direction,i=e.count,o=e.offset,a=e.style,s=e.wrap,l=pD(e,fD);return B.createElement("div",ud({className:n,style:xc({display:"flex",flexDirection:r,flexWrap:s?"wrap":"no-wrap"},a)},l),B.Children.map(t,function(u,c){return B.cloneElement(u,xc(xc({},u.props),{},{style:{flexBasis:kg(100/i),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:o&&c===0?kg(100*o/i):null}}))}))}ru.propTypes={children:T.node,className:T.string,count:T.number.isRequired,direction:T.string,offset:T.number,style:T.objectOf(T.oneOfType([T.string,T.number])),wrap:T.bool};function Dg(e){return yD(e)||gD(e)||vD(e)||mD()}function mD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vD(e,t){if(e){if(typeof e=="string")return cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cd(e,t)}}function gD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yD(e){if(Array.isArray(e))return cd(e)}function cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wD(e,t,n){return t&&t>e?t:n&&n<e?n:e}function ia(e,t){return t[0]<=e&&t[1]>=e}function SD(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function eb(e,t){return ia(e[0],t)||ia(e[1],t)}function Lg(e,t,n){var r=eb(t,e),i=[];if(r){i.push(n);var o=ia(e[0],t),a=ia(e[1],t);o&&i.push("".concat(n,"Start")),a&&i.push("".concat(n,"End")),o&&a&&i.push("".concat(n,"BothEnds"))}return i}function bD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.value,n=e.valueType,r=e.date,i=e.dateType,o=e.hover,a="react-calendar__tile",s=[a];if(!r)return s;if(!Array.isArray(r)&&!i)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var l=new Date,u=Array.isArray(r)?r:Tg(i,r);if(ia(l,u)&&s.push("".concat(a,"--now")),!t)return s;if(!Array.isArray(t)&&!n)throw new Error("getTileClasses(): Unable to get tile activity classes because one or more required arguments were not passed.");var c=Array.isArray(t)?t:Tg(n,t);SD(c,u)?s.push("".concat(a,"--active")):eb(c,u)&&s.push("".concat(a,"--hasActive"));var f=Lg(c,u,"".concat(a,"--range"));s.push.apply(s,Dg(f));var d=[].concat(t);if(o&&d.length===1){var h=o>c[0]?[c[0],o]:[o,c[0]],v=Lg(h,u,"".concat(a,"--hover"));s.push.apply(s,Dg(v))}return s}var xD=["className","count","dateTransform","dateType","end","hover","offset","start","step","tile","value","valueType"];function Ng(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ng(Object(n),!0).forEach(function(r){OD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fd(){return fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fd.apply(this,arguments)}function CD(e,t){if(e==null)return{};var n=ED(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ED(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ka(e){for(var t=e.className,n=e.count,r=n===void 0?3:n,i=e.dateTransform,o=e.dateType,a=e.end,s=e.hover,l=e.offset,u=e.start,c=e.step,f=c===void 0?1:c,d=e.tile,h=e.value,v=e.valueType,g=CD(e,xD),S=[],p=u;p<=a;p+=f){var m=i(p);S.push(B.createElement(d,fd({key:m.getTime(),classes:bD({value:h,valueType:v,date:m,dateType:o,hover:s}),date:m,point:p},g)))}return B.createElement(ru,{className:t,count:r,offset:l,wrap:!0},S)}ka.propTypes=Ag(Ag({},Ta),{},{activeStartDate:T.instanceOf(Date),count:T.number,dateTransform:T.func.isRequired,dateType:T.string,offset:T.number,step:T.number,tile:T.func.isRequired});function dd(e){return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}function Rg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rg(Object(n),!0).forEach(function(r){nb(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TD(e,t,n){return t&&jg(e.prototype,t),n&&jg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _D(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pd(e,t)}function pd(e,t){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pd(e,t)}function kD(e){var t=LD();return function(){var r=dl(e),i;if(t){var o=dl(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return DD(this,i)}}function DD(e,t){if(t&&(dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tb(e)}function tb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dl(e)}function nb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ig(e,t){return e&&!t||!e&&t||e&&t&&e.getTime()!==t.getTime()}function Vg(e,t){var n=e.activeStartDate,r=e.date,i=e.view;return typeof t=="function"?t({activeStartDate:n,date:r,view:i}):t}var Da=function(e){_D(n,e);var t=kD(n);function n(){var r;PD(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),nb(tb(r),"state",{}),r}return TD(n,[{key:"render",value:function(){var i=this.props,o=i.activeStartDate,a=i.children,s=i.classes,l=i.date,u=i.formatAbbr,c=i.locale,f=i.maxDate,d=i.maxDateTransform,h=i.minDate,v=i.minDateTransform,g=i.onClick,S=i.onMouseOver,p=i.style,m=i.tileDisabled,y=i.view,w=this.state,C=w.tileClassName,O=w.tileContent;return B.createElement("button",{className:ql(s,C),disabled:h&&v(h)>l||f&&d(f)<l||m&&m({activeStartDate:o,date:l,view:y}),onClick:g&&function(P){return g(l,P)},onFocus:S&&function(){return S(l)},onMouseOver:S&&function(){return S(l)},style:p,type:"button"},u?B.createElement("abbr",{"aria-label":u(c,l)},a):a,O)}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=i.activeStartDate,s=i.tileClassName,l=i.tileContent,u={};return(s!==o.tileClassNameProps||Ig(a,o.activeStartDateProps))&&(u.tileClassName=Vg(i,s),u.tileClassNameProps=s),(l!==o.tileContentProps||Ig(a,o.activeStartDateProps))&&(u.tileContent=Vg(i,l),u.tileContentProps=l),u.activeStartDateProps=a,u}}]),n}(b.Component);Da.propTypes=Mg(Mg({},_a),{},{children:T.node.isRequired,formatAbbr:T.func,maxDateTransform:T.func.isRequired,minDateTransform:T.func.isRequired});var ND=["classes","formatYear"];function $g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(n),!0).forEach(function(r){AD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$g(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hd.apply(this,arguments)}function RD(e,t){if(e==null)return{};var n=MD(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var jD="react-calendar__century-view__decades__decade";function rb(e){var t=e.classes,n=e.formatYear,r=n===void 0?nu:n,i=RD(e,ND),o=i.date,a=i.locale;return B.createElement(Da,hd({},i,{classes:[].concat(t,jD),maxDateTransform:Jl,minDateTransform:Wr,view:"century"}),qS(a,r,o))}rb.propTypes=Fg(Fg({},_a),{},{formatYear:T.func});function zg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ID(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(n),!0).forEach(function(r){VD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function md(){return md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},md.apply(this,arguments)}function ib(e){var t=e.activeStartDate,n=Zk(t),r=n+99;return B.createElement(ka,md({},e,{className:"react-calendar__century-view__decades",dateTransform:Wr,dateType:"decade",end:r,start:n,step:10,tile:rb}))}ib.propTypes=ID({},Ta);function $D(e){function t(){return B.createElement(ib,e)}return B.createElement("div",{className:"react-calendar__century-view"},t())}var FD=["classes","formatYear"];function Bg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(n),!0).forEach(function(r){zD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vd.apply(this,arguments)}function BD(e,t){if(e==null)return{};var n=UD(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var WD="react-calendar__decade-view__years__year";function ob(e){var t=e.classes,n=e.formatYear,r=n===void 0?nu:n,i=BD(e,FD),o=i.date,a=i.locale;return B.createElement(Da,vd({},i,{classes:[].concat(t,WD),maxDateTransform:eu,minDateTransform:Ca,view:"decade"}),r(a,o))}ob.propTypes=Ug(Ug({},_a),{},{formatYear:T.func});function Wg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function HD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(n),!0).forEach(function(r){GD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gd(){return gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(this,arguments)}function ab(e){var t=e.activeStartDate,n=Jk(t),r=n+9;return B.createElement(ka,gd({},e,{className:"react-calendar__decade-view__years",dateTransform:function(o){var a=new Date;return a.setFullYear(o,0,1),a.setHours(0,0,0,0),a},dateType:"year",end:r,start:n,tile:ob}))}ab.propTypes=HD({},Ta);function YD(e){function t(){return B.createElement(ab,e)}return B.createElement("div",{className:"react-calendar__decade-view"},t())}var KD=["classes","formatMonth","formatMonthYear"];function Hg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(n),!0).forEach(function(r){qD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yd(){return yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yd.apply(this,arguments)}function XD(e,t){if(e==null)return{};var n=QD(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ZD="react-calendar__year-view__months__month";function sb(e){var t=e.classes,n=e.formatMonth,r=n===void 0?Yk:n,i=e.formatMonthYear,o=i===void 0?HS:i,a=XD(e,KD),s=a.date,l=a.locale;return B.createElement(Da,yd({},a,{classes:[].concat(t,ZD),formatAbbr:o,maxDateTransform:Ea,minDateTransform:Wi,view:"year"}),r(l,s))}sb.propTypes=Gg(Gg({},_a),{},{formatMonth:T.func,formatMonthYear:T.func});function Yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yg(Object(n),!0).forEach(function(r){JD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wd(){return wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wd.apply(this,arguments)}function lb(e){var t=e.activeStartDate,n=0,r=11,i=we(t);return B.createElement(ka,wd({},e,{className:"react-calendar__year-view__months",dateTransform:function(a){var s=new Date;return s.setFullYear(i,a,1),s.setHours(0,0,0,0),s},dateType:"month",end:r,start:n,tile:sb}))}lb.propTypes=Kg(Kg({},Ta),{},{locale:T.string});function e3(e){function t(){return B.createElement(lb,e)}return B.createElement("div",{className:"react-calendar__year-view"},t())}var t3=["formatDay","formatLongDate","calendarType","classes","currentMonthIndex"];function qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qg(Object(n),!0).forEach(function(r){n3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sd(){return Sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sd.apply(this,arguments)}function r3(e,t){if(e==null)return{};var n=i3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Oc="react-calendar__month-view__days__day";function ub(e){var t=e.formatDay,n=t===void 0?Hk:t,r=e.formatLongDate,i=r===void 0?Gk:r,o=e.calendarType,a=e.classes,s=e.currentMonthIndex,l=r3(e,t3),u=l.date,c=l.locale;return B.createElement(Da,Sd({},l,{classes:[].concat(a,Oc,XS(u,o)?"".concat(Oc,"--weekend"):null,u.getMonth()!==s?"".concat(Oc,"--neighboringMonth"):null),formatAbbr:i,maxDateTransform:bh,minDateTransform:tu,view:"month"}),n(c,u))}ub.propTypes=Xg(Xg({},_a),{},{currentMonthIndex:T.number.isRequired,formatDay:T.func,formatLongDate:T.func});var o3=["showFixedNumberOfWeeks","showNeighboringMonth"];function Qg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function a3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qg(Object(n),!0).forEach(function(r){s3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bd(){return bd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bd.apply(this,arguments)}function l3(e,t){if(e==null)return{};var n=u3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cb(e){var t=e.activeStartDate,n=e.calendarType,r=e.showFixedNumberOfWeeks,i=e.showNeighboringMonth,o=l3(e,o3),a=we(t),s=sr(t),l=r||i,u=na(t,n),c=l?0:u,f=(l?-u:0)+1,d=function(){if(r)return f+6*7-1;var h=WS(t);if(i){var v=new Date;v.setFullYear(a,s,h),v.setHours(0,0,0,0);var g=7-na(v,n)-1;return h+g}return h}();return B.createElement(ka,bd({},o,{className:"react-calendar__month-view__days",count:7,currentMonthIndex:s,dateTransform:function(v){var g=new Date;return g.setFullYear(a,s,v),g.setHours(0,0,0,0),g},dateType:"day",end:d,offset:c,start:f,tile:ub}))}cb.propTypes=a3({calendarType:Pa.isRequired,showFixedNumberOfWeeks:T.bool,showNeighboringMonth:T.bool},Ta);var fb="react-calendar__month-view__weekdays",Zg="".concat(fb,"__weekday");function db(e){for(var t=e.calendarType,n=e.formatShortWeekday,r=n===void 0?Kk:n,i=e.formatWeekday,o=i===void 0?qk:i,a=e.locale,s=e.onMouseLeave,l=new Date,u=Wi(l),c=we(u),f=sr(u),d=[],h=1;h<=7;h+=1){var v=new Date(c,f,h-na(u,t)),g=o(a,v);d.push(B.createElement("div",{key:h,className:ql(Zg,XS(v,t)&&"".concat(Zg,"--weekend"))},B.createElement("abbr",{"aria-label":g,title:g},r(a,v).replace(".",""))))}return B.createElement(ru,{className:fb,count:7,onFocus:s,onMouseOver:s},d)}db.propTypes={calendarType:Pa.isRequired,formatShortWeekday:T.func,formatWeekday:T.func,locale:T.string,onMouseLeave:T.func};var c3=["date","onClickWeekNumber","weekNumber"];function xd(){return xd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xd.apply(this,arguments)}function Jg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function f3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jg(Object(n),!0).forEach(function(r){d3(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p3(e,t){if(e==null)return{};var n=h3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function h3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var m3="react-calendar__tile";function pb(e){var t=e.date,n=e.onClickWeekNumber,r=e.weekNumber,i=p3(e,c3),o=f3({className:m3},i),a=B.createElement("span",null,r);return n?B.createElement("button",xd({},o,{onClick:function(l){return n(r,t,l)},type:"button"}),a):B.createElement("div",o,a)}pb.propTypes={date:T.instanceOf(Date).isRequired,onClickWeekNumber:T.func,weekNumber:T.node.isRequired};function hb(e){var t=e.activeStartDate,n=e.calendarType,r=e.onClickWeekNumber,i=e.onMouseLeave,o=e.showFixedNumberOfWeeks,a=function(){if(o)return 6;var u=WS(t),c=na(t,n),f=u-(7-c);return 1+Math.ceil(f/7)}(),s=function(){for(var u=we(t),c=sr(t),f=Zl(t),d=[],h=0;h<a;h+=1)d.push(ld(new Date(u,c,f+h*7),n));return d}(),l=s.map(function(u){return eD(u,n)});return B.createElement(ru,{className:"react-calendar__month-view__weekNumbers",count:a,direction:"column",onFocus:i,onMouseOver:i,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0}},l.map(function(u,c){return B.createElement(pb,{key:u,date:s[c],onClickWeekNumber:r,weekNumber:u})}))}hb.propTypes={activeStartDate:T.instanceOf(Date).isRequired,calendarType:Pa.isRequired,onClickWeekNumber:T.func,onMouseLeave:T.func,showFixedNumberOfWeeks:T.bool};var v3=["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"];function Od(){return Od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function g3(e,t){if(e==null)return{};var n=y3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function y3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function w3(e){return Object.keys(Eg).find(function(t){return Eg[t].includes(e)})||De.ISO_8601}function mb(e){var t=e.activeStartDate,n=e.locale,r=e.onMouseLeave,i=e.showFixedNumberOfWeeks,o=e.calendarType,a=o===void 0?w3(n):o,s=e.formatShortWeekday,l=e.formatWeekday,u=e.onClickWeekNumber,c=e.showWeekNumbers,f=g3(e,v3);function d(){return B.createElement(db,{calendarType:a,formatShortWeekday:s,formatWeekday:l,locale:n,onMouseLeave:r})}function h(){return c?B.createElement(hb,{activeStartDate:t,calendarType:a,onClickWeekNumber:u,onMouseLeave:r,showFixedNumberOfWeeks:i}):null}function v(){return B.createElement(cb,Od({calendarType:a},f))}var g="react-calendar__month-view";return B.createElement("div",{className:ql(g,c?"".concat(g,"--weekNumbers"):"")},B.createElement("div",{style:{display:"flex",alignItems:"flex-end"}},h(),B.createElement("div",{style:{flexGrow:1,width:"100%"}},d(),v())))}mb.propTypes={activeStartDate:T.instanceOf(Date).isRequired,calendarType:Pa,formatShortWeekday:T.func,formatWeekday:T.func,locale:T.string,onClickWeekNumber:T.func,onMouseLeave:T.func,showFixedNumberOfWeeks:T.bool,showWeekNumbers:T.bool};var S3=["activeStartDate","defaultActiveStartDate","defaultValue","defaultView","maxDetail","minDetail","value","view"];function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(this,arguments)}function oa(e){return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function b3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ey(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x3(e,t,n){return t&&ey(e.prototype,t),n&&ey(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cd(e,t)}function Cd(e,t){return Cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cd(e,t)}function C3(e){var t=P3();return function(){var r=pl(e),i;if(t){var o=pl(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return E3(this,i)}}function E3(e,t){if(t&&(oa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tt(e)}function tt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pl(e){return pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pl(e)}function ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ed(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ty(Object(n),!0).forEach(function(r){Xt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ty(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T3(e,t){if(e==null)return{};var n=_3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function k3(e){return A3(e)||N3(e)||L3(e)||D3()}function D3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L3(e,t){if(e){if(typeof e=="string")return Pd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pd(e,t)}}function N3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A3(e){if(Array.isArray(e))return Pd(e)}function Pd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Eh=new Date;Eh.setFullYear(1,0,1);Eh.setHours(0,0,0,0);var R3=new Date(864e13),is="react-calendar",Cr=["century","decade","year","month"],M3=[].concat(k3(Cr.slice(1)),["day"]);function j3(e){return e instanceof Date?e:new Date(e)}function vb(e,t){return Cr.slice(Cr.indexOf(e),Cr.indexOf(t)+1)}function I3(e,t,n){var r=vb(t,n);return r.indexOf(e)!==-1}function Ph(e,t,n){return I3(e,t,n)?e:n}function gb(e){return M3[Cr.indexOf(e)]}function V3(e,t){if(!e)return null;var n=Array.isArray(e)&&e.length===2?e[t]:e;if(!n)return null;var r=j3(n);if(isNaN(r.getTime()))throw new Error("Invalid date: ".concat(e));return r}function yb(e,t){var n=e.value,r=e.minDate,i=e.maxDate,o=e.maxDetail,a=V3(n,t);if(!a)return null;var s=gb(o),l=[Or,YS][t](s,a);return wD(l,r,i)}var Th=function(t){return yb(t,0)},wb=function(t){return yb(t,1)},$3=function(t){var n=t.value;return Array.isArray(n)?n:[Th,wb].map(function(r){return r(t)})};function Sb(e){var t=e.maxDate,n=e.maxDetail,r=e.minDate,i=e.minDetail,o=e.value,a=e.view,s=Ph(a,i,n),l=Th({value:o,minDate:r,maxDate:t,maxDetail:n})||new Date;return Or(s,l)}function F3(e){var t=e.activeStartDate,n=e.defaultActiveStartDate,r=e.defaultValue,i=e.defaultView,o=e.maxDetail,a=e.minDetail,s=e.value,l=e.view,u=T3(e,S3),c=Ph(l,a,o),f=t||n;return f?Or(c,f):Sb(Ed({maxDetail:o,minDetail:a,value:s||r,view:l||i},u))}var Cc=function(t){return t&&[].concat(t).length===1},_h=function(e){O3(n,e);var t=C3(n);function n(){var r;b3(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Xt(tt(r),"state",{activeStartDate:r.props.defaultActiveStartDate,value:r.props.defaultValue,view:r.props.defaultView}),Xt(tt(r),"setStateAndCallCallbacks",function(s,l,u){var c=tt(r),f=c.activeStartDate,d=c.view,h=r.props,v=h.allowPartialRange,g=h.onActiveStartDateChange,S=h.onChange,p=h.onViewChange,m=h.selectRange,y={activeStartDate:f,view:d};r.setState(s,function(){var w={action:s.action,activeStartDate:s.activeStartDate||r.activeStartDate,value:s.value||r.value,view:s.view||r.view};function C(P){return P in s&&(oa(s[P])!==oa(y[P])||(s[P]instanceof Date?s[P].getTime()!==y[P].getTime():s[P]!==y[P]))}if(C("activeStartDate")&&g&&g(w),C("view")&&p&&p(w),C("value")&&S)if(m){var O=Cc(s.value);O?v&&S([s.value],l):S(s.value,l)}else S(s.value,l);u&&u(w)})}),Xt(tt(r),"setActiveStartDate",function(s,l){r.setStateAndCallCallbacks({action:l,activeStartDate:s})}),Xt(tt(r),"drillDown",function(s,l){if(r.drillDownAvailable){r.onClickTile(s,l);var u=tt(r),c=u.view,f=u.views,d=r.props.onDrillDown,h=f[f.indexOf(c)+1];r.setStateAndCallCallbacks({action:"drillDown",activeStartDate:s,view:h},void 0,d)}}),Xt(tt(r),"drillUp",function(){if(r.drillUpAvailable){var s=tt(r),l=s.activeStartDate,u=s.view,c=s.views,f=r.props.onDrillUp,d=c[c.indexOf(u)-1],h=Or(d,l);r.setStateAndCallCallbacks({action:"drillUp",activeStartDate:h,view:d},void 0,f)}}),Xt(tt(r),"onChange",function(s,l){var u=tt(r),c=u.value,f=r.props,d=f.goToRangeStartOnSelect,h=f.selectRange;r.onClickTile(s,l);var v=h&&!Cc(c),g;if(h){var S=tt(r),p=S.valueType;v?g=Or(p,s):g=aD(p,c,s)}else g=r.getProcessedValue(s);var m=!h||v||d?Sb(Ed(Ed({},r.props),{},{value:g})):null;l.persist(),r.setStateAndCallCallbacks({action:"onChange",activeStartDate:m,value:g},l)}),Xt(tt(r),"onClickTile",function(s,l){var u=tt(r),c=u.view,f=r.props,d=f.onClickDay,h=f.onClickDecade,v=f.onClickMonth,g=f.onClickYear,S=function(){switch(c){case"century":return h;case"decade":return g;case"year":return v;case"month":return d;default:throw new Error("Invalid view: ".concat(c,"."))}}();S&&S(s,l)}),Xt(tt(r),"onMouseOver",function(s){r.setState(function(l){return l.hover&&l.hover.getTime()===s.getTime()?null:{hover:s}})}),Xt(tt(r),"onMouseLeave",function(){r.setState({hover:null})}),r}return x3(n,[{key:"activeStartDate",get:function(){var i=this.props.activeStartDate,o=this.state.activeStartDate;return i||o||F3(this.props)}},{key:"value",get:function(){var i=this.props,o=i.selectRange,a=i.value,s=this.state.value;return o&&Cc(s)?s:a!==void 0?a:s}},{key:"valueType",get:function(){var i=this.props.maxDetail;return gb(i)}},{key:"view",get:function(){var i=this.props,o=i.minDetail,a=i.maxDetail,s=i.view,l=this.state.view;return Ph(s||l,o,a)}},{key:"views",get:function(){var i=this.props,o=i.minDetail,a=i.maxDetail;return vb(o,a)}},{key:"hover",get:function(){var i=this.props.selectRange,o=this.state.hover;return i?o:null}},{key:"drillDownAvailable",get:function(){var i=this.view,o=this.views;return o.indexOf(i)<o.length-1}},{key:"drillUpAvailable",get:function(){var i=this.view,o=this.views;return o.indexOf(i)>0}},{key:"getProcessedValue",value:function(i){var o=this.props,a=o.minDate,s=o.maxDate,l=o.maxDetail,u=o.returnValue,c=function(){switch(u){case"start":return Th;case"end":return wb;case"range":return $3;default:throw new Error("Invalid returnValue.")}}();return c({value:i,minDate:a,maxDate:s,maxDetail:l})}},{key:"renderContent",value:function(i){var o=this.activeStartDate,a=this.onMouseOver,s=this.valueType,l=this.value,u=this.view,c=this.props,f=c.calendarType,d=c.locale,h=c.maxDate,v=c.minDate,g=c.selectRange,S=c.tileClassName,p=c.tileContent,m=c.tileDisabled,y=this.hover,w=i?GS(u,o):Or(u,o),C=this.drillDownAvailable?this.drillDown:this.onChange,O={activeStartDate:w,hover:y,locale:d,maxDate:h,minDate:v,onClick:C,onMouseOver:g?a:null,tileClassName:S,tileContent:p,tileDisabled:m,value:l,valueType:s};switch(u){case"century":{var P=this.props.formatYear;return B.createElement($D,hi({formatYear:P},O))}case"decade":{var E=this.props.formatYear;return B.createElement(YD,hi({formatYear:E},O))}case"year":{var A=this.props,I=A.formatMonth,k=A.formatMonthYear;return B.createElement(e3,hi({formatMonth:I,formatMonthYear:k},O))}case"month":{var L=this.props,U=L.formatDay,X=L.formatLongDate,Z=L.formatShortWeekday,H=L.formatWeekday,J=L.onClickWeekNumber,R=L.showDoubleView,$=L.showFixedNumberOfWeeks,W=L.showNeighboringMonth,ee=L.showWeekNumbers,te=this.onMouseLeave;return B.createElement(mb,hi({calendarType:f,formatDay:U,formatLongDate:X,formatShortWeekday:Z,formatWeekday:H,onClickWeekNumber:J,onMouseLeave:g?te:null,showFixedNumberOfWeeks:typeof $<"u"?$:R,showNeighboringMonth:W,showWeekNumbers:ee},O))}default:throw new Error("Invalid view: ".concat(u,"."))}}},{key:"renderNavigation",value:function(){var i=this.props.showNavigation;if(!i)return null;var o=this.activeStartDate,a=this.view,s=this.views,l=this.props,u=l.formatMonthYear,c=l.formatYear,f=l.locale,d=l.maxDate,h=l.minDate,v=l.navigationAriaLabel,g=l.navigationAriaLive,S=l.navigationLabel,p=l.next2AriaLabel,m=l.next2Label,y=l.nextAriaLabel,w=l.nextLabel,C=l.prev2AriaLabel,O=l.prev2Label,P=l.prevAriaLabel,E=l.prevLabel,A=l.showDoubleView;return B.createElement(JS,{activeStartDate:o,drillUp:this.drillUp,formatMonthYear:u,formatYear:c,locale:f,maxDate:d,minDate:h,navigationAriaLabel:v,navigationAriaLive:g,navigationLabel:S,next2AriaLabel:p,next2Label:m,nextAriaLabel:y,nextLabel:w,prev2AriaLabel:C,prev2Label:O,prevAriaLabel:P,prevLabel:E,setActiveStartDate:this.setActiveStartDate,showDoubleView:A,view:a,views:s})}},{key:"render",value:function(){var i=this.props,o=i.className,a=i.inputRef,s=i.selectRange,l=i.showDoubleView,u=this.onMouseLeave,c=this.value,f=[].concat(c);return B.createElement("div",{className:ql(is,s&&f.length===1&&"".concat(is,"--selectRange"),l&&"".concat(is,"--doubleView"),o),ref:a},this.renderNavigation(),B.createElement("div",{className:"".concat(is,"__viewContainer"),onBlur:s?u:null,onMouseLeave:s?u:null},this.renderContent(),l&&this.renderContent(!0)))}}]),n}(b.Component);_h.defaultProps={goToRangeStartOnSelect:!0,maxDate:R3,maxDetail:"month",minDate:Eh,minDetail:"century",returnValue:"start",showNavigation:!0,showNeighboringMonth:!0};var ny=T.instanceOf(Date),ry=T.oneOfType([T.string,ZS]);_h.propTypes={activeStartDate:ny,allowPartialRange:T.bool,calendarType:Pa,className:fl,defaultActiveStartDate:ny,defaultValue:ry,defaultView:ra,formatDay:T.func,formatLongDate:T.func,formatMonth:T.func,formatMonthYear:T.func,formatShortWeekday:T.func,formatWeekday:T.func,formatYear:T.func,goToRangeStartOnSelect:T.bool,inputRef:uD,locale:T.string,maxDate:Ch,maxDetail:T.oneOf(Cr),minDate:Oh,minDetail:T.oneOf(Cr),navigationAriaLabel:T.string,navigationAriaLive:T.oneOf(["off","polite","assertive"]),navigationLabel:T.func,next2AriaLabel:T.string,next2Label:T.node,nextAriaLabel:T.string,nextLabel:T.node,onActiveStartDateChange:T.func,onChange:T.func,onClickDay:T.func,onClickDecade:T.func,onClickMonth:T.func,onClickWeekNumber:T.func,onClickYear:T.func,onDrillDown:T.func,onDrillUp:T.func,onViewChange:T.func,prev2AriaLabel:T.string,prev2Label:T.node,prevAriaLabel:T.string,prevLabel:T.node,returnValue:T.oneOf(["start","end","range"]),selectRange:T.bool,showDoubleView:T.bool,showFixedNumberOfWeeks:T.bool,showNavigation:T.bool,showNeighboringMonth:T.bool,showWeekNumbers:T.bool,tileClassName:T.oneOfType([T.func,fl]),tileContent:T.oneOfType([T.func,T.node]),tileDisabled:T.func,value:ry,view:ra};const z3=()=>{const[e,t]=b.useState(new Date);return x("div",{className:"calendar",children:x(On.LazyLoadComponent,{useIntersectionObserver:!0,children:x(_h,{value:e,onChange:t})})})},kh=()=>q("div",{className:"aside",children:[q("div",{className:"aside-wrapper",children:[x(ph,{title:"Самое читаемое"}),q("div",{className:"aside-inner",children:[x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""}),x(io,{title:"Президент Туркменистана провёл рабочее совещание по цифровой системе",date:"12.01.2023",category:"Политика",img:"",link:""})]})]}),x("div",{className:"aside-calendar",children:x(z3,{})})]});let os;const B3=new Uint8Array(16);function U3(){if(!os&&(os=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!os))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return os(B3)}const Ke=[];for(let e=0;e<256;++e)Ke.push((e+256).toString(16).slice(1));function W3(e,t=0){return(Ke[e[t+0]]+Ke[e[t+1]]+Ke[e[t+2]]+Ke[e[t+3]]+"-"+Ke[e[t+4]]+Ke[e[t+5]]+"-"+Ke[e[t+6]]+Ke[e[t+7]]+"-"+Ke[e[t+8]]+Ke[e[t+9]]+"-"+Ke[e[t+10]]+Ke[e[t+11]]+Ke[e[t+12]]+Ke[e[t+13]]+Ke[e[t+14]]+Ke[e[t+15]]).toLowerCase()}const H3=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),iy={randomUUID:H3};function ln(e,t,n){if(iy.randomUUID&&!t&&!e)return iy.randomUUID();e=e||{};const r=e.random||(e.rng||U3)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return W3(r)}var Td={},G3={get exports(){return Td},set exports(e){Td=e}},bb={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Ii=b;function Y3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var K3=typeof Object.is=="function"?Object.is:Y3,q3=Ii.useState,X3=Ii.useEffect,Q3=Ii.useLayoutEffect,Z3=Ii.useDebugValue;function J3(e,t){var n=t(),r=q3({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Q3(function(){i.value=n,i.getSnapshot=t,Ec(i)&&o({inst:i})},[e,n,t]),X3(function(){return Ec(i)&&o({inst:i}),e(function(){Ec(i)&&o({inst:i})})},[e]),Z3(n),n}function Ec(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!K3(e,n)}catch{return!0}}function e4(e,t){return t()}var t4=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?e4:J3;bb.useSyncExternalStore=Ii.useSyncExternalStore!==void 0?Ii.useSyncExternalStore:t4;(function(e){e.exports=bb})(G3);var _d={},n4={get exports(){return _d},set exports(e){_d=e}},xb={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var iu=b,r4=Td;function i4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var o4=typeof Object.is=="function"?Object.is:i4,a4=r4.useSyncExternalStore,s4=iu.useRef,l4=iu.useEffect,u4=iu.useMemo,c4=iu.useDebugValue;xb.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=s4(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=u4(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&a.hasValue){var v=a.value;if(i(v,h))return f=v}return f=h}if(v=f,o4(c,h))return v;var g=r(h);return i!==void 0&&i(v,g)?v:(c=h,f=g)}var u=!1,c,f,d=n===void 0?null:n;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,n,r,i]);var s=a4(e,o[0],o[1]);return l4(function(){a.hasValue=!0,a.value=s},[s]),c4(s),s};(function(e){e.exports=xb})(n4);function f4(e){e()}let Ob=f4;const d4=e=>Ob=e,p4=()=>Ob,nr=b.createContext(null);function Cb(){return b.useContext(nr)}const h4=()=>{throw new Error("uSES not initialized!")};let Eb=h4;const m4=e=>{Eb=e},v4=(e,t)=>e===t;function g4(e=nr){const t=e===nr?Cb:()=>b.useContext(e);return function(r,i=v4){const{store:o,subscription:a,getServerState:s}=t(),l=Eb(a.addNestedSub,o.getState,s||o.getState,r,i);return b.useDebugValue(l),l}}const sn=g4();var kd={},y4={get exports(){return kd},set exports(e){kd=e}},le={};/** @license React v16.13.1
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Ge=typeof Symbol=="function"&&Symbol.for,Dh=Ge?Symbol.for("react.element"):60103,Lh=Ge?Symbol.for("react.portal"):60106,ou=Ge?Symbol.for("react.fragment"):60107,au=Ge?Symbol.for("react.strict_mode"):60108,su=Ge?Symbol.for("react.profiler"):60114,lu=Ge?Symbol.for("react.provider"):60109,uu=Ge?Symbol.for("react.context"):60110,Nh=Ge?Symbol.for("react.async_mode"):60111,cu=Ge?Symbol.for("react.concurrent_mode"):60111,fu=Ge?Symbol.for("react.forward_ref"):60112,du=Ge?Symbol.for("react.suspense"):60113,w4=Ge?Symbol.for("react.suspense_list"):60120,pu=Ge?Symbol.for("react.memo"):60115,hu=Ge?Symbol.for("react.lazy"):60116,S4=Ge?Symbol.for("react.block"):60121,b4=Ge?Symbol.for("react.fundamental"):60117,x4=Ge?Symbol.for("react.responder"):60118,O4=Ge?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Dh:switch(e=e.type,e){case Nh:case cu:case ou:case su:case au:case du:return e;default:switch(e=e&&e.$$typeof,e){case uu:case fu:case hu:case pu:case lu:return e;default:return t}}case Lh:return t}}}function Pb(e){return kt(e)===cu}le.AsyncMode=Nh;le.ConcurrentMode=cu;le.ContextConsumer=uu;le.ContextProvider=lu;le.Element=Dh;le.ForwardRef=fu;le.Fragment=ou;le.Lazy=hu;le.Memo=pu;le.Portal=Lh;le.Profiler=su;le.StrictMode=au;le.Suspense=du;le.isAsyncMode=function(e){return Pb(e)||kt(e)===Nh};le.isConcurrentMode=Pb;le.isContextConsumer=function(e){return kt(e)===uu};le.isContextProvider=function(e){return kt(e)===lu};le.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Dh};le.isForwardRef=function(e){return kt(e)===fu};le.isFragment=function(e){return kt(e)===ou};le.isLazy=function(e){return kt(e)===hu};le.isMemo=function(e){return kt(e)===pu};le.isPortal=function(e){return kt(e)===Lh};le.isProfiler=function(e){return kt(e)===su};le.isStrictMode=function(e){return kt(e)===au};le.isSuspense=function(e){return kt(e)===du};le.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ou||e===cu||e===su||e===au||e===du||e===w4||typeof e=="object"&&e!==null&&(e.$$typeof===hu||e.$$typeof===pu||e.$$typeof===lu||e.$$typeof===uu||e.$$typeof===fu||e.$$typeof===b4||e.$$typeof===x4||e.$$typeof===O4||e.$$typeof===S4)};le.typeOf=kt;(function(e){e.exports=le})(y4);var Tb=kd,C4={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E4={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_b={};_b[Tb.ForwardRef]=C4;_b[Tb.Memo]=E4;var oy={},P4={get exports(){return oy},set exports(e){oy=e}},ue={};/**
|
||
* @license React
|
||
* react-is.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Ah=Symbol.for("react.element"),Rh=Symbol.for("react.portal"),mu=Symbol.for("react.fragment"),vu=Symbol.for("react.strict_mode"),gu=Symbol.for("react.profiler"),yu=Symbol.for("react.provider"),wu=Symbol.for("react.context"),T4=Symbol.for("react.server_context"),Su=Symbol.for("react.forward_ref"),bu=Symbol.for("react.suspense"),xu=Symbol.for("react.suspense_list"),Ou=Symbol.for("react.memo"),Cu=Symbol.for("react.lazy"),_4=Symbol.for("react.offscreen"),kb;kb=Symbol.for("react.module.reference");function It(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ah:switch(e=e.type,e){case mu:case gu:case vu:case bu:case xu:return e;default:switch(e=e&&e.$$typeof,e){case T4:case wu:case Su:case Cu:case Ou:case yu:return e;default:return t}}case Rh:return t}}}ue.ContextConsumer=wu;ue.ContextProvider=yu;ue.Element=Ah;ue.ForwardRef=Su;ue.Fragment=mu;ue.Lazy=Cu;ue.Memo=Ou;ue.Portal=Rh;ue.Profiler=gu;ue.StrictMode=vu;ue.Suspense=bu;ue.SuspenseList=xu;ue.isAsyncMode=function(){return!1};ue.isConcurrentMode=function(){return!1};ue.isContextConsumer=function(e){return It(e)===wu};ue.isContextProvider=function(e){return It(e)===yu};ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ah};ue.isForwardRef=function(e){return It(e)===Su};ue.isFragment=function(e){return It(e)===mu};ue.isLazy=function(e){return It(e)===Cu};ue.isMemo=function(e){return It(e)===Ou};ue.isPortal=function(e){return It(e)===Rh};ue.isProfiler=function(e){return It(e)===gu};ue.isStrictMode=function(e){return It(e)===vu};ue.isSuspense=function(e){return It(e)===bu};ue.isSuspenseList=function(e){return It(e)===xu};ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===mu||e===gu||e===vu||e===bu||e===xu||e===_4||typeof e=="object"&&e!==null&&(e.$$typeof===Cu||e.$$typeof===Ou||e.$$typeof===yu||e.$$typeof===wu||e.$$typeof===Su||e.$$typeof===kb||e.getModuleId!==void 0)};ue.typeOf=It;(function(e){e.exports=ue})(P4);function k4(){const e=p4();let t=null,n=null;return{clear(){t=null,n=null},notify(){e(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){let r=[],i=t;for(;i;)r.push(i),i=i.next;return r},subscribe(r){let i=!0,o=n={callback:r,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const ay={notify(){},get:()=>[]};function D4(e,t){let n,r=ay;function i(f){return l(),r.subscribe(f)}function o(){r.notify()}function a(){c.onStateChange&&c.onStateChange()}function s(){return Boolean(n)}function l(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=k4())}function u(){n&&(n(),n=void 0,r.clear(),r=ay)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:a,isSubscribed:s,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const L4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",N4=L4?b.useLayoutEffect:b.useEffect;function A4({store:e,context:t,children:n,serverState:r}){const i=b.useMemo(()=>{const s=D4(e);return{store:e,subscription:s,getServerState:r?()=>r:void 0}},[e,r]),o=b.useMemo(()=>e.getState(),[e]);N4(()=>{const{subscription:s}=i;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),o!==e.getState()&&s.notifyNestedSubs(),()=>{s.tryUnsubscribe(),s.onStateChange=void 0}},[i,o]);const a=t||nr;return B.createElement(a.Provider,{value:i},n)}function Db(e=nr){const t=e===nr?Cb:()=>b.useContext(e);return function(){const{store:r}=t();return r}}const R4=Db();function M4(e=nr){const t=e===nr?R4:Db(e);return function(){return t().dispatch}}const Gr=M4();m4(_d.useSyncExternalStoreWithSelector);d4(No.unstable_batchedUpdates);const Lb=({id:e,title:t,text:n,categories:r,date:i,img:o})=>x(xe,{to:`/news/${e}`,children:q("div",{className:"news-wrapper",children:[x("div",{className:"news-image",children:x(On.LazyLoadImage,{src:o,alt:o,useIntersectionObserver:!0,effect:"blur"})}),x("div",{className:"news-info",children:q("div",{className:"news-info-inner",children:[x("h2",{className:"news-title",children:t}),q("div",{className:"news-status",children:[x("div",{className:"news-status-left",children:r.map(a=>x(bS,{title:a.name},ln()))}),x("div",{className:"news-status-right",children:x(xS,{date:i})})]}),x("div",{className:"news-text",dangerouslySetInnerHTML:{__html:n}})]})})]})});var j4={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function I4(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var r=(e.match(/[^0-9]*$/)||"").toString();return j4[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function Pc(e){var t=I4(e);return"".concat(t.value).concat(t.unit)}var V4=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return r;var i=document.createElement("style");document.head.appendChild(i);var o=i.sheet,a=`
|
||
@keyframes `.concat(r,` {
|
||
`).concat(t,`
|
||
}
|
||
`);return o&&o.insertRule(a,0),r},hl=globalThis&&globalThis.__assign||function(){return hl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},hl.apply(this,arguments)},$4=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},F4=V4("PulseLoader","0% {transform: scale(1); opacity: 1} 45% {transform: scale(0.1); opacity: 0.7} 80% {transform: scale(1); opacity: 1}","pulse");function z4(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,i=r===void 0?"#000000":r,o=e.speedMultiplier,a=o===void 0?1:o,s=e.cssOverride,l=s===void 0?{}:s,u=e.size,c=u===void 0?15:u,f=e.margin,d=f===void 0?2:f,h=$4(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),v=hl({display:"inherit"},l),g=function(S){return{backgroundColor:i,width:Pc(c),height:Pc(c),margin:Pc(d),borderRadius:"100%",display:"inline-block",animation:"".concat(F4," ").concat(.75/a,"s ").concat(S*.12/a,"s infinite cubic-bezier(0.2, 0.68, 0.18, 1.08)"),animationFillMode:"both"}};return n?b.createElement("span",hl({style:v},h),b.createElement("span",{style:g(1)}),b.createElement("span",{style:g(2)}),b.createElement("span",{style:g(3)})):null}const Lr=()=>x("div",{className:"loader",children:x(z4,{color:"#38a39d",loading:!0,cssOverride:{display:"block",margin:"10 auto",borderColor:"red",height:"100%"},"aria-label":"loader","data-testid":"loader"})}),Hi="https://turkmenistaninfo.gov.tm/app/api/v1";function Nb(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ab}=Object.prototype,{getPrototypeOf:Mh}=Object,jh=(e=>t=>{const n=Ab.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Pn=e=>(e=e.toLowerCase(),t=>jh(t)===e),Eu=e=>t=>typeof t===e,{isArray:Gi}=Array,aa=Eu("undefined");function B4(e){return e!==null&&!aa(e)&&e.constructor!==null&&!aa(e.constructor)&&Nr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rb=Pn("ArrayBuffer");function U4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rb(e.buffer),t}const W4=Eu("string"),Nr=Eu("function"),Mb=Eu("number"),Ih=e=>e!==null&&typeof e=="object",H4=e=>e===!0||e===!1,xs=e=>{if(jh(e)!=="object")return!1;const t=Mh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},G4=Pn("Date"),Y4=Pn("File"),K4=Pn("Blob"),q4=Pn("FileList"),X4=e=>Ih(e)&&Nr(e.pipe),Q4=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Ab.call(e)===t||Nr(e.toString)&&e.toString()===t)},Z4=Pn("URLSearchParams"),J4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function La(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Gi(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(r=0;r<a;r++)s=o[r],t.call(null,e[s],s,e)}}function jb(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ib=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Vb=e=>!aa(e)&&e!==Ib;function Dd(){const{caseless:e}=Vb(this)&&this||{},t={},n=(r,i)=>{const o=e&&jb(t,i)||i;xs(t[o])&&xs(r)?t[o]=Dd(t[o],r):xs(r)?t[o]=Dd({},r):Gi(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&La(arguments[r],n);return t}const e8=(e,t,n,{allOwnKeys:r}={})=>(La(t,(i,o)=>{n&&Nr(i)?e[o]=Nb(i,n):e[o]=i},{allOwnKeys:r}),e),t8=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),n8=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},r8=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Mh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},i8=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},o8=e=>{if(!e)return null;if(Gi(e))return e;let t=e.length;if(!Mb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},a8=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mh(Uint8Array)),s8=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},l8=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},u8=Pn("HTMLFormElement"),c8=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),sy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),f8=Pn("RegExp"),$b=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};La(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},d8=e=>{$b(e,(t,n)=>{if(Nr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nr(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},p8=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Gi(e)?r(e):r(String(e).split(t)),n},h8=()=>{},m8=(e,t)=>(e=+e,Number.isFinite(e)?e:t),v8=e=>{const t=new Array(10),n=(r,i)=>{if(Ih(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=Gi(r)?[]:{};return La(r,(a,s)=>{const l=n(a,i+1);!aa(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},D={isArray:Gi,isArrayBuffer:Rb,isBuffer:B4,isFormData:Q4,isArrayBufferView:U4,isString:W4,isNumber:Mb,isBoolean:H4,isObject:Ih,isPlainObject:xs,isUndefined:aa,isDate:G4,isFile:Y4,isBlob:K4,isRegExp:f8,isFunction:Nr,isStream:X4,isURLSearchParams:Z4,isTypedArray:a8,isFileList:q4,forEach:La,merge:Dd,extend:e8,trim:J4,stripBOM:t8,inherits:n8,toFlatObject:r8,kindOf:jh,kindOfTest:Pn,endsWith:i8,toArray:o8,forEachEntry:s8,matchAll:l8,isHTMLForm:u8,hasOwnProperty:sy,hasOwnProp:sy,reduceDescriptors:$b,freezeMethods:d8,toObjectSet:p8,toCamelCase:c8,noop:h8,toFiniteNumber:m8,findKey:jb,global:Ib,isContextDefined:Vb,toJSONObject:v8};function oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(oe,Error,{toJSON:function(){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:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fb=oe.prototype,zb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zb[e]={value:e}});Object.defineProperties(oe,zb);Object.defineProperty(Fb,"isAxiosError",{value:!0});oe.from=(e,t,n,r,i,o)=>{const a=Object.create(Fb);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),oe.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var g8=typeof self=="object"?self.FormData:window.FormData;const y8=g8;function Ld(e){return D.isPlainObject(e)||D.isArray(e)}function Bb(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function ly(e,t,n){return e?e.concat(t).map(function(i,o){return i=Bb(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function w8(e){return D.isArray(e)&&!e.some(Ld)}const S8=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function b8(e){return e&&D.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Pu(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new(y8||FormData),n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,S){return!D.isUndefined(S[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b8(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(D.isDate(v))return v.toISOString();if(!l&&D.isBlob(v))throw new oe("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(v)||D.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,g,S){let p=v;if(v&&!S&&typeof v=="object"){if(D.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(D.isArray(v)&&w8(v)||D.isFileList(v)||D.endsWith(g,"[]")&&(p=D.toArray(v)))return g=Bb(g),p.forEach(function(y,w){!(D.isUndefined(y)||y===null)&&t.append(a===!0?ly([g],w,o):a===null?g:g+"[]",u(y))}),!1}return Ld(v)?!0:(t.append(ly(S,g,o),u(v)),!1)}const f=[],d=Object.assign(S8,{defaultVisitor:c,convertValue:u,isVisitable:Ld});function h(v,g){if(!D.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),D.forEach(v,function(p,m){(!(D.isUndefined(p)||p===null)&&i.call(t,p,D.isString(m)?m.trim():m,g,d))===!0&&h(p,g?g.concat(m):[m])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return h(e),t}function uy(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vh(e,t){this._pairs=[],e&&Pu(e,this,t)}const Ub=Vh.prototype;Ub.append=function(t,n){this._pairs.push([t,n])};Ub.toString=function(t){const n=t?function(r){return t.call(this,r,uy)}:uy;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function x8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wb(e,t,n){if(!t)return e;const r=n&&n.encode||x8,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Vh(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class O8{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cy=O8,Hb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},C8=typeof URLSearchParams<"u"?URLSearchParams:Vh,E8=FormData,P8=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),T8=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),en={isBrowser:!0,classes:{URLSearchParams:C8,FormData:E8,Blob},isStandardBrowserEnv:P8,isStandardBrowserWebWorkerEnv:T8,protocols:["http","https","file","blob","url","data"]};function _8(e,t){return Pu(e,new en.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return en.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function k8(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function D8(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}function Gb(e){function t(n,r,i,o){let a=n[o++];const s=Number.isFinite(+a),l=o>=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=D8(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(k8(r),i,n,0)}),n}return null}const L8={"Content-Type":void 0};function N8(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Tu={transitional:Hb,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i&&i?JSON.stringify(Gb(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _8(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Pu(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),N8(t)):t}],transformResponse:[function(t){const n=this.transitional||Tu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?oe.from(s,oe.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:en.classes.FormData,Blob:en.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};D.forEach(["delete","get","head"],function(t){Tu.headers[t]={}});D.forEach(["post","put","patch"],function(t){Tu.headers[t]=D.merge(L8)});const $h=Tu,A8=D.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"]),R8=e=>{const t={};let n,r,i;return e&&e.split(`
|
||
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&A8[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fy=Symbol("internals");function ao(e){return e&&String(e).trim().toLowerCase()}function Os(e){return e===!1||e==null?e:D.isArray(e)?e.map(Os):String(e)}function M8(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function j8(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function dy(e,t,n,r){if(D.isFunction(r))return r.call(this,t,n);if(D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function I8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function V8(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class _u{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=ao(l);if(!c)throw new Error("header name must be a non-empty string");const f=D.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Os(s))}const a=(s,l)=>D.forEach(s,(u,c)=>o(u,c,l));return D.isPlainObject(t)||t instanceof this.constructor?a(t,n):D.isString(t)&&(t=t.trim())&&!j8(t)?a(R8(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=ao(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return M8(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ao(t),t){const r=D.findKey(this,t);return!!(r&&(!n||dy(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=ao(a),a){const s=D.findKey(r,a);s&&(!n||dy(r,r[s],s,n))&&(delete r[s],i=!0)}}return D.isArray(t)?t.forEach(o):o(t),i}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return D.forEach(this,(i,o)=>{const a=D.findKey(r,o);if(a){n[a]=Os(i),delete n[o];return}const s=t?I8(o):String(o).trim();s!==o&&delete n[o],n[s]=Os(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[fy]=this[fy]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=ao(a);r[s]||(V8(i,a),r[s]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}}_u.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);D.freezeMethods(_u.prototype);D.freezeMethods(_u);const gn=_u;function Tc(e,t){const n=this||$h,r=t||n,i=gn.from(r.headers);let o=r.data;return D.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Yb(e){return!!(e&&e.__CANCEL__)}function Na(e,t,n){oe.call(this,e??"canceled",oe.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(Na,oe,{__CANCEL__:!0});const $8=null;function F8(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new oe("Request failed with status code "+n.status,[oe.ERR_BAD_REQUEST,oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const z8=en.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),D.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),D.isString(o)&&l.push("path="+o),D.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function B8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function U8(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Kb(e,t){return e&&!B8(t)?U8(e,t):t}const W8=en.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=D.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function H8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function G8(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a<t)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function py(e,t){let n=0;const r=G8(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s),u=o<=a;n=o;const c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const Y8=typeof XMLHttpRequest<"u",K8=Y8&&function(e){return new Promise(function(n,r){let i=e.data;const o=gn.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}D.isFormData(i)&&(en.isStandardBrowserEnv||en.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+v))}const c=Kb(e.baseURL,e.url);u.open(e.method.toUpperCase(),Wb(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=gn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};F8(function(p){n(p),l()},function(p){r(p),l()},g),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new oe("Request aborted",oe.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new oe("Network Error",oe.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||Hb;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new oe(v,g.clarifyTimeoutError?oe.ETIMEDOUT:oe.ECONNABORTED,e,u)),u=null},en.isStandardBrowserEnv){const h=(e.withCredentials||W8(c))&&e.xsrfCookieName&&z8.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&D.forEach(o.toJSON(),function(v,g){u.setRequestHeader(g,v)}),D.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",py(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",py(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=h=>{u&&(r(!h||h.type?new Na(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const d=H8(c);if(d&&en.protocols.indexOf(d)===-1){r(new oe("Unsupported protocol "+d+":",oe.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Cs={http:$8,xhr:K8};D.forEach(Cs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const q8={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;i<t&&(n=e[i],!(r=D.isString(n)?Cs[n.toLowerCase()]:n));i++);if(!r)throw r===!1?new oe(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(D.hasOwnProp(Cs,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!D.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Cs};function _c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Na(null,e)}function hy(e){return _c(e),e.headers=gn.from(e.headers),e.data=Tc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q8.getAdapter(e.adapter||$h.adapter)(e).then(function(r){return _c(e),r.data=Tc.call(e,e.transformResponse,r),r.headers=gn.from(r.headers),r},function(r){return Yb(r)||(_c(e),r&&r.response&&(r.response.data=Tc.call(e,e.transformResponse,r.response),r.response.headers=gn.from(r.response.headers))),Promise.reject(r)})}const my=e=>e instanceof gn?e.toJSON():e;function Vi(e,t){t=t||{};const n={};function r(u,c,f){return D.isPlainObject(u)&&D.isPlainObject(c)?D.merge.call({caseless:f},u,c):D.isPlainObject(c)?D.merge({},c):D.isArray(c)?c.slice():c}function i(u,c,f){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!D.isUndefined(c))return r(void 0,c)}function a(u,c){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(my(u),my(c),!0)};return D.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);D.isUndefined(d)&&f!==s||(n[c]=d)}),n}const qb="1.2.3",Fh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Fh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vy={};Fh.transitional=function(t,n,r){function i(o,a){return"[Axios v"+qb+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new oe(i(a," has been removed"+(n?" in "+n:"")),oe.ERR_DEPRECATED);return n&&!vy[a]&&(vy[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function X8(e,t,n){if(typeof e!="object")throw new oe("options must be an object",oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new oe("option "+o+" must be "+l,oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new oe("Unknown option "+o,oe.ERR_BAD_OPTION)}}const Nd={assertOptions:X8,validators:Fh},kn=Nd.validators;class ml{constructor(t){this.defaults=t,this.interceptors={request:new cy,response:new cy}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Nd.assertOptions(r,{silentJSONParsing:kn.transitional(kn.boolean),forcedJSONParsing:kn.transitional(kn.boolean),clarifyTimeoutError:kn.transitional(kn.boolean)},!1),i!==void 0&&Nd.assertOptions(i,{encode:kn.function,serialize:kn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=o&&D.merge(o.common,o[n.method]),a&&D.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=gn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){const v=[hy.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const v=s[f++],g=s[f++];try{h=v(h)}catch(S){g.call(this,S);break}}try{c=hy.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Vi(this.defaults,t);const n=Kb(t.baseURL,t.url);return Wb(n,t.params,t.paramsSerializer)}}D.forEach(["delete","get","head","options"],function(t){ml.prototype[t]=function(n,r){return this.request(Vi(r||{},{method:t,url:n,data:(r||{}).data}))}});D.forEach(["post","put","patch"],function(t){function n(r){return function(o,a,s){return this.request(Vi(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}ml.prototype[t]=n(),ml.prototype[t+"Form"]=n(!0)});const Es=ml;class zh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(i=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new Na(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new zh(function(i){t=i}),cancel:t}}}const Q8=zh;function Z8(e){return function(n){return e.apply(null,n)}}function J8(e){return D.isObject(e)&&e.isAxiosError===!0}const Ad={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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};Object.entries(Ad).forEach(([e,t])=>{Ad[t]=e});const eL=Ad;function Xb(e){const t=new Es(e),n=Nb(Es.prototype.request,t);return D.extend(n,Es.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Xb(Vi(e,i))},n}const ze=Xb($h);ze.Axios=Es;ze.CanceledError=Na;ze.CancelToken=Q8;ze.isCancel=Yb;ze.VERSION=qb;ze.toFormData=Pu;ze.AxiosError=oe;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=Z8;ze.isAxiosError=J8;ze.mergeConfig=Vi;ze.AxiosHeaders=gn;ze.formToJSON=e=>Gb(D.isHTMLForm(e)?new FormData(e):e);ze.HttpStatusCode=eL;ze.default=ze;const tL=ze,nL=(e,t,n)=>{if(t=t+`?${e.name}=${e.value.toLowerCase()}`,!n)return t;let r="";return n.forEach(i=>{r=r+`&${i.name}=${i.value}`}),t+r};class lr{constructor(t,n){Ma(this,"url","");Ma(this,"params");Ma(this,"language",sn(t=>t.language.title));this.url=t,this.params=n}get(t,n){const r={name:"locale",value:this.language};tL.get(nL(r,this.url,this.params)).then(i=>{n(i.data)}).catch(i=>{throw new Error(i)})}}const rL=[{name:"count",value:5},{name:"page",value:1}],iL=[{name:"count",value:7},{name:"page",value:1}],oL=[{name:"count",value:5},{name:"page",value:1},{name:"featured",value:"true"}],gy=e=>({type:"SET_NEWS_SCROLL",payload:e}),yy=e=>({type:"SET_SEARCH_DATA",payload:e}),aL=e=>({type:"SET_POST",payload:e}),sL=e=>({type:"SET_FEATURED",payload:e}),Qb=({title:e,category:t})=>{const n=rL.slice();t&&n.push({name:"category",value:t});const r=new lr(Hi+"/posts",n),i=r.language,[o,a]=b.useState(i),s=sn(f=>f.newsScroll.data),l=Gr();b.useEffect(()=>{r.get(s,f=>l(gy(f))),a(i)},[t]),b.useEffect(()=>{s.length>0&&(s[0].id>-1&&o===i||(r.get(s,f=>l(gy(f))),a(i)))},[i,o]);const[u,c]=b.useState(s);return b.useEffect(()=>{const f=s.filter((d,h)=>{if(h>0)return d});c(f)},[s]),x("div",{className:"news-scroll",children:q("div",{className:"news-scroll-wrapper",children:[e===!0?x(ph,{title:"Лента новостей",linkData:{link:"/all/null",title:"Посмотреть все"}}):null,x("div",{className:"news-scroll-inner",children:u.length>0?u[0].id>-1?u.map((f,d)=>x(Lb,{id:f.id,title:f.title,text:f.excerpt,date:f.published_at,categories:f.categories,img:f.featured_images[0]?f.featured_images[0].path:""},ln())):x(Lr,{}):x("p",{className:"scroll-empty",children:"Нет новостей в этой категории"})})]})})},Zr=({type:e="small",img:t,title:n,id:r})=>q("div",{className:`main-content-item main-content-item__${e}`,children:[x(On.LazyLoadImage,{src:t,alt:t,effect:"blur",useIntersectionObserver:!0,style:{background:`url(${t})`}}),x(xe,{to:`/news/${r}`,className:"main-content-item-overlay",children:x("h2",{children:n})})]});function wy(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Bh(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:wy(t[n])&&wy(e[n])&&Object.keys(t[n]).length>0&&Bh(e[n],t[n])})}const Zb={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function on(){const e=typeof document<"u"?document:{};return Bh(e,Zb),e}const lL={document:Zb,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Dt(){const e=typeof window<"u"?window:{};return Bh(e,lL),e}function uL(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Rd(e,t=0){return setTimeout(e,t)}function sa(){return Date.now()}function cL(e){const t=Dt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function fL(e,t="x"){const n=Dt();let r,i,o;const a=cL(e);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(s=>s.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix(i==="none"?"":i)):(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=o.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=o.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function as(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function dL(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function bt(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const i=e[r];if(i!=null&&!dL(i)){const o=Object.keys(Object(i)).filter(a=>n.indexOf(a)<0);for(let a=0,s=o.length;a<s;a+=1){const l=o[a],u=Object.getOwnPropertyDescriptor(i,l);u!==void 0&&u.enumerable&&(as(t[l])&&as(i[l])?i[l].__swiper__?t[l]=i[l]:bt(t[l],i[l]):!as(t[l])&&as(i[l])?(t[l]={},i[l].__swiper__?t[l]=i[l]:bt(t[l],i[l])):t[l]=i[l])}}}return t}function ss(e,t,n){e.style.setProperty(t,n)}function Jb({swiper:e,targetPosition:t,side:n}){const r=Dt(),i=-e.translate;let o=null,a;const s=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>i?"next":"prev",u=(f,d)=>l==="next"&&f>=d||l==="prev"&&f<=d,c=()=>{a=new Date().getTime(),o===null&&(o=a);const f=Math.max(Math.min((a-o)/s,1),0),d=.5-Math.cos(f*Math.PI)/2;let h=i+d*(t-i);if(u(h,t)&&(h=t),e.wrapperEl.scrollTo({[n]:h}),u(h,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:h})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(c)};c()}function yn(e,t=""){return[...e.children].filter(n=>n.matches(t))}function ex(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function pL(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function hL(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function zn(e,t){return Dt().getComputedStyle(e,null).getPropertyValue(t)}function rr(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function tx(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Md(e,t,n){const r=Dt();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let kc;function mL(){const e=Dt(),t=on();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function nx(){return kc||(kc=mL()),kc}let Dc;function vL({userAgent:e}={}){const t=nx(),n=Dt(),r=n.navigator.platform,i=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,s=n.screen.height,l=i.match(/(Android);?[\s\/]+([\d.]+)?/);let u=i.match(/(iPad).*OS\s([\d_]+)/);const c=i.match(/(iPod)(.*OS\s([\d_]+))?/),f=!u&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),d=r==="Win32";let h=r==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&h&&t.touch&&v.indexOf(`${a}x${s}`)>=0&&(u=i.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),h=!1),l&&!d&&(o.os="android",o.android=!0),(u||f||c)&&(o.os="ios",o.ios=!0),o}function gL(e={}){return Dc||(Dc=vL(e)),Dc}let Lc;function yL(){const e=Dt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[i,o]=r.split("Version/")[1].split(" ")[0].split(".").map(a=>Number(a));t=i<16||i===16&&o<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function wL(){return Lc||(Lc=yL()),Lc}function SL({swiper:e,on:t,emit:n}){const r=Dt();let i=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},s=()=>{!e||e.destroyed||!e.initialized||(i=new ResizeObserver(c=>{o=r.requestAnimationFrame(()=>{const{width:f,height:d}=e;let h=f,v=d;c.forEach(({contentBoxSize:g,contentRect:S,target:p})=>{p&&p!==e.el||(h=S?S.width:(g[0]||g).inlineSize,v=S?S.height:(g[0]||g).blockSize)}),(h!==f||v!==d)&&a()})}),i.observe(e.el))},l=()=>{o&&r.cancelAnimationFrame(o),i&&i.unobserve&&e.el&&(i.unobserve(e.el),i=null)},u=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){s();return}r.addEventListener("resize",a),r.addEventListener("orientationchange",u)}),t("destroy",()=>{l(),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",u)})}function bL({swiper:e,extendParams:t,on:n,emit:r}){const i=[],o=Dt(),a=(u,c={})=>{const f=o.MutationObserver||o.WebkitMutationObserver,d=new f(h=>{if(h.length===1){r("observerUpdate",h[0]);return}const v=function(){r("observerUpdate",h[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});d.observe(u,{attributes:typeof c.attributes>"u"?!0:c.attributes,childList:typeof c.childList>"u"?!0:c.childList,characterData:typeof c.characterData>"u"?!0:c.characterData}),i.push(d)},s=()=>{if(e.params.observer){if(e.params.observeParents){const u=tx(e.el);for(let c=0;c<u.length;c+=1)a(u[c])}a(e.el,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},l=()=>{i.forEach(u=>{u.disconnect()}),i.splice(0,i.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",s),n("destroy",l)}const xL={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const i=n?"unshift":"push";return e.split(" ").forEach(o=>{r.eventsListeners[o]||(r.eventsListeners[o]=[]),r.eventsListeners[o][i](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function i(...o){r.off(e,i),i.__emitterProxy&&delete i.__emitterProxy,t.apply(r,o)}return i.__emitterProxy=t,r.on(e,i,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,o)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[r].splice(o,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,i;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),i=t):(n=e[0].events,r=e[0].data,i=e[0].context||t),r.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(a=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(s=>{s.apply(i,[a,...r])}),t.eventsListeners&&t.eventsListeners[a]&&t.eventsListeners[a].forEach(s=>{s.apply(i,r)})}),t}};function OL(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(zn(r,"padding-left")||0,10)-parseInt(zn(r,"padding-right")||0,10),n=n-parseInt(zn(r,"padding-top")||0,10)-parseInt(zn(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 CL(){const e=this;function t(k){return e.isHorizontal()?k:{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"}[k]}function n(k,L){return parseFloat(k.getPropertyValue(t(L))||0)}const r=e.params,{wrapperEl:i,slidesEl:o,size:a,rtlTranslate:s,wrongRTL:l}=e,u=e.virtual&&r.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,f=yn(o,`.${e.params.slideClass}, swiper-slide`),d=u?e.virtual.slides.length:f.length;let h=[];const v=[],g=[];let S=r.slidesOffsetBefore;typeof S=="function"&&(S=r.slidesOffsetBefore.call(e));let p=r.slidesOffsetAfter;typeof p=="function"&&(p=r.slidesOffsetAfter.call(e));const m=e.snapGrid.length,y=e.slidesGrid.length;let w=r.spaceBetween,C=-S,O=0,P=0;if(typeof a>"u")return;typeof w=="string"&&w.indexOf("%")>=0&&(w=parseFloat(w.replace("%",""))/100*a),e.virtualSize=-w,f.forEach(k=>{s?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(ss(i,"--swiper-centered-offset-before",""),ss(i,"--swiper-centered-offset-after",""));const E=r.grid&&r.grid.rows>1&&e.grid;E&&e.grid.initSlides(d);let A;const I=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(k=>typeof r.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k<d;k+=1){A=0;let L;if(f[k]&&(L=f[k]),E&&e.grid.updateSlide(k,L,d,t),!(f[k]&&zn(L,"display")==="none")){if(r.slidesPerView==="auto"){I&&(f[k].style[t("width")]="");const U=getComputedStyle(L),X=L.style.transform,Z=L.style.webkitTransform;if(X&&(L.style.transform="none"),Z&&(L.style.webkitTransform="none"),r.roundLengths)A=e.isHorizontal()?Md(L,"width",!0):Md(L,"height",!0);else{const H=n(U,"width"),J=n(U,"padding-left"),R=n(U,"padding-right"),$=n(U,"margin-left"),W=n(U,"margin-right"),ee=U.getPropertyValue("box-sizing");if(ee&&ee==="border-box")A=H+$+W;else{const{clientWidth:te,offsetWidth:Me}=L;A=H+J+R+$+W+(Me-te)}}X&&(L.style.transform=X),Z&&(L.style.webkitTransform=Z),r.roundLengths&&(A=Math.floor(A))}else A=(a-(r.slidesPerView-1)*w)/r.slidesPerView,r.roundLengths&&(A=Math.floor(A)),f[k]&&(f[k].style[t("width")]=`${A}px`);f[k]&&(f[k].swiperSlideSize=A),g.push(A),r.centeredSlides?(C=C+A/2+O/2+w,O===0&&k!==0&&(C=C-a/2-w),k===0&&(C=C-a/2-w),Math.abs(C)<1/1e3&&(C=0),r.roundLengths&&(C=Math.floor(C)),P%r.slidesPerGroup===0&&h.push(C),v.push(C)):(r.roundLengths&&(C=Math.floor(C)),(P-Math.min(e.params.slidesPerGroupSkip,P))%e.params.slidesPerGroup===0&&h.push(C),v.push(C),C=C+A+w),e.virtualSize+=A+w,O=A,P+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+p,s&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(i.style.width=`${e.virtualSize+r.spaceBetween}px`),r.setWrapperSize&&(i.style[t("width")]=`${e.virtualSize+r.spaceBetween}px`),E&&e.grid.updateWrapperSize(A,h,t),!r.centeredSlides){const k=[];for(let L=0;L<h.length;L+=1){let U=h[L];r.roundLengths&&(U=Math.floor(U)),h[L]<=e.virtualSize-a&&k.push(U)}h=k,Math.floor(e.virtualSize-a)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-a)}if(u&&r.loop){const k=g[0]+w;if(r.slidesPerGroup>1){const L=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),U=k*r.slidesPerGroup;for(let X=0;X<L;X+=1)h.push(h[h.length-1]+U)}for(let L=0;L<e.virtual.slidesBefore+e.virtual.slidesAfter;L+=1)r.slidesPerGroup===1&&h.push(h[h.length-1]+k),v.push(v[v.length-1]+k),e.virtualSize+=k}if(h.length===0&&(h=[0]),r.spaceBetween!==0){const k=e.isHorizontal()&&s?"marginLeft":t("marginRight");f.filter((L,U)=>!r.cssMode||r.loop?!0:U!==f.length-1).forEach(L=>{L.style[k]=`${w}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let k=0;g.forEach(U=>{k+=U+(r.spaceBetween?r.spaceBetween:0)}),k-=r.spaceBetween;const L=k-a;h=h.map(U=>U<0?-S:U>L?L+p:U)}if(r.centerInsufficientSlides){let k=0;if(g.forEach(L=>{k+=L+(r.spaceBetween?r.spaceBetween:0)}),k-=r.spaceBetween,k<a){const L=(a-k)/2;h.forEach((U,X)=>{h[X]=U-L}),v.forEach((U,X)=>{v[X]=U+L})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:v,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){ss(i,"--swiper-centered-offset-before",`${-h[0]}px`),ss(i,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const k=-e.snapGrid[0],L=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(U=>U+k),e.slidesGrid=e.slidesGrid.map(U=>U+L)}if(d!==c&&e.emit("slidesLengthChange"),h.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==y&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const k=`${r.containerModifierClass}backface-hidden`,L=e.el.classList.contains(k);d<=r.maxBackfaceHiddenSlides?L||e.el.classList.add(k):L&&e.el.classList.remove(k)}}function EL(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let i=0,o;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const a=s=>r?t.slides.filter(l=>parseInt(l.getAttribute("data-swiper-slide-index"),10)===s)[0]:t.slides[s];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(s=>{n.push(s)});else for(o=0;o<Math.ceil(t.params.slidesPerView);o+=1){const s=t.activeIndex+o;if(s>t.slides.length&&!r)break;n.push(a(s))}else n.push(a(t.activeIndex));for(o=0;o<n.length;o+=1)if(typeof n[o]<"u"){const s=n[o].offsetHeight;i=s>i?s:i}(i||i===0)&&(t.wrapperEl.style.height=`${i}px`)}function PL(){const 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}function TL(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:i,snapGrid:o}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;i&&(a=e),r.forEach(s=>{s.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let s=0;s<r.length;s+=1){const l=r[s];let u=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const c=(a+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),f=(a-o[0]+(n.centeredSlides?t.minTranslate():0)-u)/(l.swiperSlideSize+n.spaceBetween),d=-(a-u),h=d+t.slidesSizesGrid[s];(d>=0&&d<t.size-1||h>1&&h<=t.size||d<=0&&h>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(s),r[s].classList.add(n.slideVisibleClass)),l.progress=i?-c:c,l.originalProgress=i?-f:f}}function _L(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:i,isBeginning:o,isEnd:a,progressLoop:s}=t;const l=o,u=a;if(r===0)i=0,o=!0,a=!0;else{i=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;o=c||i<=0,a=f||i>=1,c&&(i=0),f&&(i=1)}if(n.loop){const c=rr(t.slides.filter(S=>S.getAttribute("data-swiper-slide-index")==="0")[0]),f=rr(t.slides.filter(S=>S.getAttribute("data-swiper-slide-index")*1===t.slides.length-1)[0]),d=t.slidesGrid[c],h=t.slidesGrid[f],v=t.slidesGrid[t.slidesGrid.length-1],g=Math.abs(e);g>=d?s=(g-d)/v:s=(g+v-h)/v,s>1&&(s-=1)}Object.assign(t,{progress:i,progressLoop:s,isBeginning:o,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!o||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)}function kL(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:i}=e,o=e.virtual&&n.virtual.enabled,a=l=>yn(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let s;if(o)if(n.loop){let l=i-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),s=a(`[data-swiper-slide-index="${l}"]`)}else s=a(`[data-swiper-slide-index="${i}"]`);else s=t[i];if(s){s.classList.add(n.slideActiveClass);let l=hL(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let u=pL(s,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}function DL(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let i;for(let o=0;o<t.length;o+=1)typeof t[o+1]<"u"?r>=t[o]&&r<t[o+1]-(t[o+1]-t[o])/2?i=o:r>=t[o]&&r<t[o+1]&&(i=o+1):r>=t[o]&&(i=o);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function LL(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:i,activeIndex:o,realIndex:a,snapIndex:s}=t;let l=e,u;const c=d=>{let h=d-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof l>"u"&&(l=DL(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const d=Math.min(i.slidesPerGroupSkip,l);u=d+Math.floor((l-d)/i.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),l===o){u!==s&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=c(l));return}let f;t.virtual&&i.virtual.enabled&&i.loop?f=c(l):t.slides[l]?f=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):f=l,Object.assign(t,{snapIndex:u,realIndex:f,previousIndex:o,activeIndex:l}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),a!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function NL(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let i=!1,o;if(r){for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===r){i=!0,o=a;break}}if(r&&i)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const AL={updateSize:OL,updateSlides:CL,updateAutoHeight:EL,updateSlidesOffset:PL,updateSlidesProgress:TL,updateProgress:_L,updateSlidesClasses:kL,updateActiveIndex:LL,updateClickedSlide:NL};function RL(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:o}=t;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let a=fL(o,e);return r&&(a=-a),a||0}function ML(e,t){const n=this,{rtlTranslate:r,params:i,wrapperEl:o,progress:a}=n;let s=0,l=0;const u=0;n.isHorizontal()?s=r?-e:e:l=e,i.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),i.cssMode?o[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-s:-l:i.virtualTranslate||(o.style.transform=`translate3d(${s}px, ${l}px, ${u}px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:l;let c;const f=n.maxTranslate()-n.minTranslate();f===0?c=0:c=(e-n.minTranslate())/f,c!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function jL(){return-this.snapGrid[0]}function IL(){return-this.snapGrid[this.snapGrid.length-1]}function VL(e=0,t=this.params.speed,n=!0,r=!0,i){const o=this,{params:a,wrapperEl:s}=o;if(o.animating&&a.preventInteractionOnTransition)return!1;const l=o.minTranslate(),u=o.maxTranslate();let c;if(r&&e>l?c=l:r&&e<u?c=u:c=e,o.updateProgress(c),a.cssMode){const f=o.isHorizontal();if(t===0)s[f?"scrollLeft":"scrollTop"]=-c;else{if(!o.support.smoothScroll)return Jb({swiper:o,targetPosition:-c,side:f?"left":"top"}),!0;s.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(o.setTransition(0),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(c),n&&(o.emit("beforeTransitionStart",t,i),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(d){!o||o.destroyed||d.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}const $L={getTranslate:RL,setTranslate:ML,minTranslate:jL,maxTranslate:IL,translateTo:VL};function FL(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function rx({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:i,previousIndex:o}=e;let a=n;if(a||(i>o?a="next":i<o?a="prev":a="reset"),e.emit(`transition${r}`),t&&i!==o){if(a==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),a==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function zL(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),rx({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function BL(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),rx({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const UL={setTransition:FL,transitionStart:zL,transitionEnd:BL};function WL(e=0,t=this.params.speed,n=!0,r,i){typeof e=="string"&&(e=parseInt(e,10));const o=this;let a=e;a<0&&(a=0);const{params:s,snapGrid:l,slidesGrid:u,previousIndex:c,activeIndex:f,rtlTranslate:d,wrapperEl:h,enabled:v}=o;if(o.animating&&s.preventInteractionOnTransition||!v&&!r&&!i)return!1;const g=Math.min(o.params.slidesPerGroupSkip,a);let S=g+Math.floor((a-g)/o.params.slidesPerGroup);S>=l.length&&(S=l.length-1);const p=-l[S];if(s.normalizeSlideIndex)for(let y=0;y<u.length;y+=1){const w=-Math.floor(p*100),C=Math.floor(u[y]*100),O=Math.floor(u[y+1]*100);typeof u[y+1]<"u"?w>=C&&w<O-(O-C)/2?a=y:w>=C&&w<O&&(a=y+1):w>=C&&(a=y)}if(o.initialized&&a!==f&&(!o.allowSlideNext&&p<o.translate&&p<o.minTranslate()||!o.allowSlidePrev&&p>o.translate&&p>o.maxTranslate()&&(f||0)!==a))return!1;a!==(c||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(p);let m;if(a>f?m="next":a<f?m="prev":m="reset",d&&-p===o.translate||!d&&p===o.translate)return o.updateActiveIndex(a),s.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),s.effect!=="slide"&&o.setTranslate(p),m!=="reset"&&(o.transitionStart(n,m),o.transitionEnd(n,m)),!1;if(s.cssMode){const y=o.isHorizontal(),w=d?p:-p;if(t===0){const C=o.virtual&&o.params.virtual.enabled;C&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),C&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[y?"scrollLeft":"scrollTop"]=w})):h[y?"scrollLeft":"scrollTop"]=w,C&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Jb({swiper:o,targetPosition:w,side:y?"left":"top"}),!0;h.scrollTo({[y?"left":"top"]:w,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(p),o.updateActiveIndex(a),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,m),t===0?o.transitionEnd(n,m):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(w){!o||o.destroyed||w.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,m))}),o.wrapperEl.addEventListener("transitionend",o.onSlideToWrapperTransitionEnd)),!0}function HL(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?o=o+i.virtual.slidesBefore:o=rr(i.slides.filter(a=>a.getAttribute("data-swiper-slide-index")*1===o)[0])),i.slideTo(o,t,n,r)}function GL(e=this.params.speed,t=!0,n){const r=this,{enabled:i,params:o,animating:a}=r;if(!i)return r;let s=o.slidesPerGroup;o.slidesPerView==="auto"&&o.slidesPerGroup===1&&o.slidesPerGroupAuto&&(s=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<o.slidesPerGroupSkip?1:s,u=r.virtual&&o.virtual.enabled;if(o.loop){if(a&&!u&&o.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return o.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function YL(e=this.params.speed,t=!0,n){const r=this,{params:i,snapGrid:o,slidesGrid:a,rtlTranslate:s,enabled:l,animating:u}=r;if(!l)return r;const c=r.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=s?r.translate:-r.translate;function d(p){return p<0?-Math.floor(Math.abs(p)):Math.floor(p)}const h=d(f),v=o.map(p=>d(p));let g=o[v.indexOf(h)-1];if(typeof g>"u"&&i.cssMode){let p;o.forEach((m,y)=>{h>=m&&(p=y)}),typeof p<"u"&&(g=o[p>0?p-1:p])}let S=0;if(typeof g<"u"&&(S=a.indexOf(g),S<0&&(S=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(S=S-r.slidesPerViewDynamic("previous",!0)+1,S=Math.max(S,0))),i.rewind&&r.isBeginning){const p=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(p,e,t,n)}return r.slideTo(S,e,t,n)}function KL(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function qL(e=this.params.speed,t=!0,n,r=.5){const i=this;let o=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,o),s=a+Math.floor((o-a)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[s]){const u=i.snapGrid[s],c=i.snapGrid[s+1];l-u>(c-u)*r&&(o+=i.params.slidesPerGroup)}else{const u=i.snapGrid[s-1],c=i.snapGrid[s];l-u<=(c-u)*r&&(o-=i.params.slidesPerGroup)}return o=Math.max(o,0),o=Math.min(o,i.slidesGrid.length-1),i.slideTo(o,e,t,n)}function XL(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let i=e.clickedIndex,o;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;o=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?i<e.loopedSlides-r/2||i>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),i=rr(yn(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),Rd(()=>{e.slideTo(i)})):e.slideTo(i):i>e.slides.length-r?(e.loopFix(),i=rr(yn(n,`${a}[data-swiper-slide-index="${o}"]`)[0]),Rd(()=>{e.slideTo(i)})):e.slideTo(i)}else e.slideTo(i)}const QL={slideTo:WL,slideToLoop:HL,slideNext:GL,slidePrev:YL,slideReset:KL,slideToClosest:qL,slideToClickedSlide:XL};function ZL(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;yn(r,`.${n.slideClass}, swiper-slide`).forEach((o,a)=>{o.setAttribute("data-swiper-slide-index",a)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function JL({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:i,byController:o,byMousewheel:a}={}){const s=this;if(!s.params.loop)return;s.emit("beforeLoopFix");const{slides:l,allowSlidePrev:u,allowSlideNext:c,slidesEl:f,params:d}=s;if(s.allowSlidePrev=!0,s.allowSlideNext=!0,s.virtual&&d.virtual.enabled){t&&(!d.centeredSlides&&s.snapIndex===0?s.slideTo(s.virtual.slides.length,0,!1,!0):d.centeredSlides&&s.snapIndex<d.slidesPerView?s.slideTo(s.virtual.slides.length+s.snapIndex,0,!1,!0):s.snapIndex===s.snapGrid.length-1&&s.slideTo(s.virtual.slidesBefore,0,!1,!0)),s.allowSlidePrev=u,s.allowSlideNext=c,s.emit("loopFix");return}const h=d.slidesPerView==="auto"?s.slidesPerViewDynamic():Math.ceil(parseFloat(d.slidesPerView,10));let v=d.loopedSlides||h;v%d.slidesPerGroup!==0&&(v+=d.slidesPerGroup-v%d.slidesPerGroup),s.loopedSlides=v;const g=[],S=[];let p=s.activeIndex;typeof i>"u"?i=rr(s.slides.filter(O=>O.classList.contains("swiper-slide-active"))[0]):p=i;const m=n==="next"||!n,y=n==="prev"||!n;let w=0,C=0;if(i<v){w=v-i;for(let O=0;O<v-i;O+=1){const P=O-Math.floor(O/l.length)*l.length;g.push(l.length-P-1)}}else if(i>s.slides.length-v*2){C=i-(s.slides.length-v*2);for(let O=0;O<C;O+=1){const P=O-Math.floor(O/l.length)*l.length;S.push(P)}}if(y&&g.forEach(O=>{f.prepend(s.slides[O])}),m&&S.forEach(O=>{f.append(s.slides[O])}),s.recalcSlides(),d.watchSlidesProgress&&s.updateSlidesOffset(),t){if(g.length>0&&y)if(typeof e>"u"){const O=s.slidesGrid[p],E=s.slidesGrid[p+w]-O;a?s.setTranslate(s.translate-E):(s.slideTo(p+w,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=E))}else r&&s.slideToLoop(e,0,!1,!0);else if(S.length>0&&m)if(typeof e>"u"){const O=s.slidesGrid[p],E=s.slidesGrid[p-C]-O;a?s.setTranslate(s.translate-E):(s.slideTo(p-C,0,!1,!0),r&&(s.touches[s.isHorizontal()?"startX":"startY"]+=E))}else s.slideToLoop(e,0,!1,!0)}if(s.allowSlidePrev=u,s.allowSlideNext=c,s.controller&&s.controller.control&&!o){const O={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:i,byController:!0};Array.isArray(s.controller.control)?s.controller.control.forEach(P=>{P.params.loop&&P.loopFix(O)}):s.controller.control instanceof s.constructor&&s.controller.control.params.loop&&s.controller.control.loopFix(O)}s.emit("loopFix")}function e5(){const e=this,{slides:t,params:n,slidesEl:r}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];t.forEach(o=>{const a=typeof o.swiperSlideIndex>"u"?o.getAttribute("data-swiper-slide-index")*1:o.swiperSlideIndex;i[a]=o}),t.forEach(o=>{o.removeAttribute("data-swiper-slide-index")}),i.forEach(o=>{r.append(o)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const t5={loopCreate:ZL,loopFix:JL,loopDestroy:e5};function n5(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"}function r5(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="")}const i5={setGrabCursor:n5,unsetGrabCursor:r5};function o5(e,t=this){function n(r){if(!r||r===on()||r===Dt())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(e);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(t)}function a5(e){const t=this,n=on(),r=Dt(),i=t.touchEventsData;i.evCache.push(e);const{params:o,touches:a,enabled:s}=t;if(!s||!o.simulateTouch&&e.pointerType==="mouse"||t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let u=l.target;if(o.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const c=!!o.noSwipingClass&&o.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;c&&l.target&&l.target.shadowRoot&&f&&(u=f[0]);const d=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(o.noSwiping&&(h?o5(d,u):u.closest(d))){t.allowClick=!0;return}if(o.swipeHandler&&!u.closest(o.swipeHandler))return;a.currentX=l.pageX,a.currentY=l.pageY;const v=a.currentX,g=a.currentY,S=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,p=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(S&&(v<=p||v>=r.innerWidth-p))if(S==="prevent")e.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=v,a.startY=g,i.touchStartTime=sa(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(i.allowThresholdMove=!1);let m=!0;u.matches(i.focusableElements)&&(m=!1,u.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const y=m&&t.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||y)&&!u.isContentEditable&&l.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function s5(e){const t=on(),n=this,r=n.touchEventsData,{params:i,touches:o,rtlTranslate:a,enabled:s}=n;if(!s||!i.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const u=r.evCache.findIndex(O=>O.pointerId===l.pointerId);u>=0&&(r.evCache[u]=l);const c=r.evCache.length>1?r.evCache[0]:l,f=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){o.startX=f,o.startY=d;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(o,{startX:f,startY:d,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:d}),r.touchStartTime=sa());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(d<o.startY&&n.translate<=n.maxTranslate()||d>o.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(f<o.startX&&n.translate<=n.maxTranslate()||f>o.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;o.currentX=f,o.currentY=d;const h=o.currentX-o.startX,v=o.currentY-o.startY;if(n.params.threshold&&Math.sqrt(h**2+v**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let O;n.isHorizontal()&&o.currentY===o.startY||n.isVertical()&&o.currentX===o.startX?r.isScrolling=!1:h*h+v*v>=25&&(O=Math.atan2(Math.abs(v),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?O>i.touchAngle:90-O>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(o.currentX!==o.startX||o.currentY!==o.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let g=n.isHorizontal()?h:v,S=n.isHorizontal()?o.currentX-o.previousX:o.currentY-o.previousY;i.oneWayMovement&&(g=Math.abs(g)*(a?1:-1),S=Math.abs(S)*(a?1:-1)),o.diff=g,g*=i.touchRatio,a&&(g=-g,S=-S);const p=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=S>0?"prev":"next";const m=n.params.loop&&!i.cssMode;if(!r.isMoved){if(m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const O=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(O)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let y;r.isMoved&&p!==n.touchesDirection&&m&&Math.abs(g)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),y=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let w=!0,C=i.resistanceRatio;if(i.touchReleaseOnEdges&&(C=0),g>0?(m&&!y&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**C))):g<0&&(m&&!y&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(w=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-g)**C))),w&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(g)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,r.currentTranslate=r.startTranslate,o.diff=n.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function l5(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(y=>y.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type))return;const{params:i,touches:o,rtlTranslate:a,slidesGrid:s,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),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);const c=sa(),f=c-n.touchStartTime;if(t.allowClick){const y=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(y&&y[0]||u.target),t.emit("tap click",u),f<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=sa(),Rd(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||o.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let d;if(i.followFinger?d=a?t.translate:-t.translate:d=-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:d});return}let h=0,v=t.slidesSizesGrid[0];for(let y=0;y<s.length;y+=y<i.slidesPerGroupSkip?1:i.slidesPerGroup){const w=y<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;typeof s[y+w]<"u"?d>=s[y]&&d<s[y+w]&&(h=y,v=s[y+w]-s[y]):d>=s[y]&&(h=y,v=s[s.length-1]-s[s.length-2])}let g=null,S=null;i.rewind&&(t.isBeginning?S=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const p=(d-s[h])/v,m=h<i.slidesPerGroupSkip-1?1:i.slidesPerGroup;if(f>i.longSwipesMs){if(!i.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(p>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?g:h+m):t.slideTo(h)),t.swipeDirection==="prev"&&(p>1-i.longSwipesRatio?t.slideTo(h+m):S!==null&&p<0&&Math.abs(p)>i.longSwipesRatio?t.slideTo(S):t.slideTo(h))}else{if(!i.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+m):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:h+m),t.swipeDirection==="prev"&&t.slideTo(S!==null?S:h))}}let Sy;function by(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:o}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=a&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!s?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(Sy),Sy=setTimeout(()=>{e.autoplay.resume()},500)),e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&o!==e.snapGrid&&e.checkOverflow()}function u5(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function c5(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let i;const o=e.maxTranslate()-e.minTranslate();o===0?i=0:i=(e.translate-e.minTranslate())/o,i!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}const Ps=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const i=r.querySelector(`.${e.params.lazyPreloaderClass}`);i&&i.remove()}};function f5(e){const t=this;Ps(t,e.target),t.update()}let xy=!1;function d5(){}const ix=(e,t)=>{const n=on(),{params:r,el:i,wrapperEl:o,device:a}=e,s=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",u=t;i[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:s}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[l]("click",e.onClick,!0),r.cssMode&&o[l]("scroll",e.onScroll),r.updateOnWindowResize?e[u](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",by,!0):e[u]("observerUpdate",by,!0),i[l]("load",e.onLoad,{capture:!0})};function p5(){const e=this,t=on(),{params:n}=e;e.onTouchStart=a5.bind(e),e.onTouchMove=s5.bind(e),e.onTouchEnd=l5.bind(e),n.cssMode&&(e.onScroll=c5.bind(e)),e.onClick=u5.bind(e),e.onLoad=f5.bind(e),xy||(t.addEventListener("touchstart",d5),xy=!0),ix(e,"on")}function h5(){ix(this,"off")}const m5={attachEvents:p5,detachEvents:h5},Oy=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function v5(){const e=this,{realIndex:t,initialized:n,params:r,el:i}=e,o=r.breakpoints;if(!o||o&&Object.keys(o).length===0)return;const a=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!a||e.currentBreakpoint===a)return;const l=(a in o?o[a]:void 0)||e.originalParams,u=Oy(e,r),c=Oy(e,l),f=r.enabled;u&&!c?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(i.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{const S=r[g]&&r[g].enabled,p=l[g]&&l[g].enabled;S&&!p&&e[g].disable(),!S&&p&&e[g].enable()});const d=l.direction&&l.direction!==r.direction,h=r.loop&&(l.slidesPerView!==r.slidesPerView||d);d&&n&&e.changeDirection(),bt(e.params,l);const v=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=a,e.emit("_beforeBreakpoint",l),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function g5(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const i=Dt(),o=t==="window"?i.innerHeight:n.clientHeight,a=Object.keys(e).map(s=>{if(typeof s=="string"&&s.indexOf("@")===0){const l=parseFloat(s.substr(1));return{value:o*l,point:s}}return{value:s,point:s}});a.sort((s,l)=>parseInt(s.value,10)-parseInt(l.value,10));for(let s=0;s<a.length;s+=1){const{point:l,value:u}=a[s];t==="window"?i.matchMedia(`(min-width: ${u}px)`).matches&&(r=l):u<=n.clientWidth&&(r=l)}return r||"max"}const y5={setBreakpoint:v5,getBreakpoint:g5};function w5(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(t+i)}):typeof r=="string"&&n.push(t+r)}),n}function S5(){const e=this,{classNames:t,params:n,rtl:r,el:i,device:o}=e,a=w5(["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:o.android},{ios:o.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),i.classList.add(...t),e.emitContainerClasses()}function b5(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const x5={addClasses:S5,removeClasses:b5};function O5(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const i=e.slides.length-1,o=e.slidesGrid[i]+e.slidesSizesGrid[i]+r*2;e.isLocked=e.size>o}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")}const C5={checkOverflow:O5},Cy={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,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,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,loopedSlides:null,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",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",runCallbacksOnInit:!0,_emitClasses:!1};function E5(e,t){return function(r={}){const i=Object.keys(r)[0],o=r[i];if(typeof o!="object"||o===null){bt(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(i)>=0&&e[i]===!0&&(e[i]={auto:!0}),!(i in e&&"enabled"in o)){bt(t,r);return}e[i]===!0&&(e[i]={enabled:!0}),typeof e[i]=="object"&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),bt(t,r)}}const Nc={eventsEmitter:xL,update:AL,translate:$L,transition:UL,slide:QL,loop:t5,grabCursor:i5,events:m5,breakpoints:y5,checkOverflow:C5,classes:x5},Ac={};let St=class{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=bt({},r),n&&!r.el&&(r.el=n);const i=on();if(r.el&&typeof r.el=="string"&&i.querySelectorAll(r.el).length>1){const l=[];return i.querySelectorAll(r.el).forEach(u=>{const c=bt({},r,{el:u});l.push(new St(c))}),l}const o=this;o.__swiper__=!0,o.support=nx(),o.device=gL({userAgent:r.userAgent}),o.browser=wL(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],r.modules&&Array.isArray(r.modules)&&o.modules.push(...r.modules);const a={};o.modules.forEach(l=>{l({params:r,swiper:o,extendParams:E5(r,a),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const s=bt({},Cy,a);return o.params=bt({},s,Ac,r),o.originalParams=bt({},o.params),o.passedParams=bt({},r),o.params&&o.params.on&&Object.keys(o.params.on).forEach(l=>{o.on(l,o.params.on[l])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.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:o.params.focusableElements,lastClickTime:sa(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=yn(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const i=r.minTranslate(),a=(r.maxTranslate()-i)*t+i;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const i=t.getSlideClasses(r);n.push({slideEl:r,classNames:i}),t.emit("_slideClass",r,i)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:i,slides:o,slidesGrid:a,slidesSizesGrid:s,size:l,activeIndex:u}=r;let c=1;if(i.centeredSlides){let f=o[u].swiperSlideSize,d;for(let h=u+1;h<o.length;h+=1)o[h]&&!d&&(f+=o[h].swiperSlideSize,c+=1,f>l&&(d=!0));for(let h=u-1;h>=0;h-=1)o[h]&&!d&&(f+=o[h].swiperSlideSize,c+=1,f>l&&(d=!0))}else if(t==="current")for(let f=u+1;f<o.length;f+=1)(n?a[f]+s[f]-a[u]<l:a[f]-a[u]<l)&&(c+=1);else for(let f=u-1;f>=0;f-=1)a[u]-a[f]<l&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&Ps(t,a)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function i(){const a=t.rtlTranslate?t.translate*-1:t.translate,s=Math.min(Math.max(a,t.maxTranslate()),t.minTranslate());t.setTranslate(s),t.updateActiveIndex(),t.updateSlidesClasses()}let o;t.params.freeMode&&t.params.freeMode.enabled?(i(),t.params.autoHeight&&t.updateAutoHeight()):((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?o=t.slideTo(t.slides.length-1,0,!1,!0):o=t.slideTo(t.activeIndex,0,!1,!0),o||i()),r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,i=r.params.direction;return t||(t=i==="horizontal"?"vertical":"horizontal"),t===i||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(o=>{t==="vertical"?o.style.width="":o.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):yn(r,i())[0])();return!a&&n.params.createElements&&(a=ex("div",n.params.wrapperClass),r.append(a),yn(r,`.${n.params.slideClass}`).forEach(s=>{a.append(s)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement?r:a,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||zn(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||zn(r,"direction")==="rtl"),wrongRTL:zn(a,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(i=>{i.complete?Ps(n,i):i.addEventListener("load",o=>{Ps(n,o.target)})}),n.initialized=!0,n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:i,el:o,wrapperEl:a,slides:s}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),o.removeAttribute("style"),a.removeAttribute("style"),s&&s.length&&s.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,uL(r)),r.destroyed=!0),null}static extendDefaults(t){bt(Ac,t)}static get extendedDefaults(){return Ac}static get defaults(){return Cy}static installModule(t){St.prototype.__modules__||(St.prototype.__modules__=[]);const n=St.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>St.installModule(n)),St):(St.installModule(t),St)}};Object.keys(Nc).forEach(e=>{Object.keys(Nc[e]).forEach(t=>{St.prototype[t]=Nc[e][t]})});St.use([SL,bL]);function ox(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&n.auto===!0){let o=yn(e.el,`.${r[i]}`)[0];o||(o=ex("div",r[i]),o.className=r[i],e.el.append(o)),n[i]=o,t[i]=o}}),n}function ax({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const i=v=>(Array.isArray(v)||(v=[v].filter(g=>!!g)),v);function o(v){let g;return v&&typeof v=="string"&&e.isElement&&(g=e.el.shadowRoot.querySelector(v),g)?g:(v&&(typeof v=="string"&&(g=[...document.querySelectorAll(v)]),e.params.uniqueNavElements&&typeof v=="string"&&g.length>1&&e.el.querySelectorAll(v).length===1&&(g=e.el.querySelector(v))),v&&!g?v:g)}function a(v,g){const S=e.params.navigation;v=i(v),v.forEach(p=>{p&&(p.classList[g?"add":"remove"](...S.disabledClass.split(" ")),p.tagName==="BUTTON"&&(p.disabled=g),e.params.watchOverflow&&e.enabled&&p.classList[e.isLocked?"add":"remove"](S.lockClass))})}function s(){const{nextEl:v,prevEl:g}=e.navigation;if(e.params.loop){a(g,!1),a(v,!1);return}a(g,e.isBeginning&&!e.params.rewind),a(v,e.isEnd&&!e.params.rewind)}function l(v){v.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function u(v){v.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function c(){const v=e.params.navigation;if(e.params.navigation=ox(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(v.nextEl||v.prevEl))return;let g=o(v.nextEl),S=o(v.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:S}),g=i(g),S=i(S);const p=(m,y)=>{m&&m.addEventListener("click",y==="next"?u:l),!e.enabled&&m&&m.classList.add(...v.lockClass.split(" "))};g.forEach(m=>p(m,"next")),S.forEach(m=>p(m,"prev"))}function f(){let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g);const S=(p,m)=>{p.removeEventListener("click",m==="next"?u:l),p.classList.remove(...e.params.navigation.disabledClass.split(" "))};v.forEach(p=>S(p,"next")),g.forEach(p=>S(p,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?h():(c(),s())}),n("toEdge fromEdge lock unlock",()=>{s()}),n("destroy",()=>{f()}),n("enable disable",()=>{let{nextEl:v,prevEl:g}=e.navigation;v=i(v),g=i(g),[...v,...g].filter(S=>!!S).forEach(S=>S.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(v,g)=>{let{nextEl:S,prevEl:p}=e.navigation;S=i(S),p=i(p);const m=g.target;if(e.params.navigation.hideOnClick&&!p.includes(m)&&!S.includes(m)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===m||e.pagination.el.contains(m)))return;let y;S.length?y=S[0].classList.contains(e.params.navigation.hiddenClass):p.length&&(y=p[0].classList.contains(e.params.navigation.hiddenClass)),r(y===!0?"navigationShow":"navigationHide"),[...S,...p].filter(w=>!!w).forEach(w=>w.classList.toggle(e.params.navigation.hiddenClass))}});const d=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),c(),s()},h=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:d,disable:h,update:s,init:c,destroy:f})}function so(e=""){return`.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}`}function sx({swiper:e,extendParams:t,on:n,emit:r}){const 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:p=>p,formatFractionTotal:p=>p,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 o,a=0;const s=p=>(Array.isArray(p)||(p=[p].filter(m=>!!m)),p);function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function u(p,m){const{bulletActiveClass:y}=e.params.pagination;p&&(p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&(p.classList.add(`${y}-${m}`),p=p[`${m==="prev"?"previous":"next"}ElementSibling`],p&&p.classList.add(`${y}-${m}-${m}`)))}function c(p){if(!p.target.matches(so(e.params.pagination.bulletClass)))return;p.preventDefault();const y=rr(p.target)*e.params.slidesPerGroup;e.params.loop?e.slideToLoop(y):e.slideTo(y)}function f(){const p=e.rtl,m=e.params.pagination;if(l())return;let y=e.pagination.el;y=s(y);let w;const C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,O=e.params.loop?Math.ceil(C/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?w=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex:typeof e.snapIndex<"u"?w=e.snapIndex:w=e.activeIndex||0,m.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const P=e.pagination.bullets;let E,A,I;if(m.dynamicBullets&&(o=Md(P[0],e.isHorizontal()?"width":"height",!0),y.forEach(k=>{k.style[e.isHorizontal()?"width":"height"]=`${o*(m.dynamicMainBullets+4)}px`}),m.dynamicMainBullets>1&&e.previousIndex!==void 0&&(a+=w-(e.previousIndex||0),a>m.dynamicMainBullets-1?a=m.dynamicMainBullets-1:a<0&&(a=0)),E=Math.max(w-a,0),A=E+(Math.min(P.length,m.dynamicMainBullets)-1),I=(A+E)/2),P.forEach(k=>{k.classList.remove(...["","-next","-next-next","-prev","-prev-prev","-main"].map(L=>`${m.bulletActiveClass}${L}`))}),y.length>1)P.forEach(k=>{const L=rr(k);L===w&&k.classList.add(m.bulletActiveClass),m.dynamicBullets&&(L>=E&&L<=A&&k.classList.add(`${m.bulletActiveClass}-main`),L===E&&u(k,"prev"),L===A&&u(k,"next"))});else{const k=P[w];if(k&&k.classList.add(m.bulletActiveClass),m.dynamicBullets){const L=P[E],U=P[A];for(let X=E;X<=A;X+=1)P[X].classList.add(`${m.bulletActiveClass}-main`);u(L,"prev"),u(U,"next")}}if(m.dynamicBullets){const k=Math.min(P.length,m.dynamicMainBullets+4),L=(o*k-o)/2-I*o,U=p?"right":"left";P.forEach(X=>{X.style[e.isHorizontal()?U:"top"]=`${L}px`})}}y.forEach((P,E)=>{if(m.type==="fraction"&&(P.querySelectorAll(so(m.currentClass)).forEach(A=>{A.textContent=m.formatFractionCurrent(w+1)}),P.querySelectorAll(so(m.totalClass)).forEach(A=>{A.textContent=m.formatFractionTotal(O)})),m.type==="progressbar"){let A;m.progressbarOpposite?A=e.isHorizontal()?"vertical":"horizontal":A=e.isHorizontal()?"horizontal":"vertical";const I=(w+1)/O;let k=1,L=1;A==="horizontal"?k=I:L=I,P.querySelectorAll(so(m.progressbarFillClass)).forEach(U=>{U.style.transform=`translate3d(0,0,0) scaleX(${k}) scaleY(${L})`,U.style.transitionDuration=`${e.params.speed}ms`})}m.type==="custom"&&m.renderCustom?(P.innerHTML=m.renderCustom(e,w+1,O),E===0&&r("paginationRender",P)):(E===0&&r("paginationRender",P),r("paginationUpdate",P)),e.params.watchOverflow&&e.enabled&&P.classList[e.isLocked?"add":"remove"](m.lockClass)})}function d(){const p=e.params.pagination;if(l())return;const m=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let y=e.pagination.el;y=s(y);let w="";if(p.type==="bullets"){let C=e.params.loop?Math.ceil(m/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&C>m&&(C=m);for(let O=0;O<C;O+=1)p.renderBullet?w+=p.renderBullet.call(e,O,p.bulletClass):w+=`<${p.bulletElement} class="${p.bulletClass}"></${p.bulletElement}>`}p.type==="fraction"&&(p.renderFraction?w=p.renderFraction.call(e,p.currentClass,p.totalClass):w=`<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`),p.type==="progressbar"&&(p.renderProgressbar?w=p.renderProgressbar.call(e,p.progressbarFillClass):w=`<span class="${p.progressbarFillClass}"></span>`),y.forEach(C=>{p.type!=="custom"&&(C.innerHTML=w||""),p.type==="bullets"&&(e.pagination.bullets=[...C.querySelectorAll(so(p.bulletClass))])}),p.type!=="custom"&&r("paginationRender",y[0])}function h(){e.params.pagination=ox(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const p=e.params.pagination;if(!p.el)return;let m;typeof p.el=="string"&&e.isElement&&(m=e.el.shadowRoot.querySelector(p.el)),!m&&typeof p.el=="string"&&(m=[...document.querySelectorAll(p.el)]),m||(m=p.el),!(!m||m.length===0)&&(e.params.uniqueNavElements&&typeof p.el=="string"&&Array.isArray(m)&&m.length>1&&(m=[...e.el.querySelectorAll(p.el)],m.length>1&&(m=m.filter(y=>tx(y,".swiper")[0]===e.el)[0])),Array.isArray(m)&&m.length===1&&(m=m[0]),Object.assign(e.pagination,{el:m}),m=s(m),m.forEach(y=>{p.type==="bullets"&&p.clickable&&y.classList.add(p.clickableClass),y.classList.add(p.modifierClass+p.type),y.classList.add(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.type==="bullets"&&p.dynamicBullets&&(y.classList.add(`${p.modifierClass}${p.type}-dynamic`),a=0,p.dynamicMainBullets<1&&(p.dynamicMainBullets=1)),p.type==="progressbar"&&p.progressbarOpposite&&y.classList.add(p.progressbarOppositeClass),p.clickable&&y.addEventListener("click",c),e.enabled||y.classList.add(p.lockClass)}))}function v(){const p=e.params.pagination;if(l())return;let m=e.pagination.el;m&&(m=s(m),m.forEach(y=>{y.classList.remove(p.hiddenClass),y.classList.remove(p.modifierClass+p.type),y.classList.remove(e.isHorizontal()?p.horizontalClass:p.verticalClass),p.clickable&&y.removeEventListener("click",c)})),e.pagination.bullets&&e.pagination.bullets.forEach(y=>y.classList.remove(p.bulletActiveClass))}n("init",()=>{e.params.pagination.enabled===!1?S():(h(),d(),f())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{d(),f()}),n("destroy",()=>{v()}),n("enable disable",()=>{let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{f()}),n("click",(p,m)=>{const y=m.target;let{el:w}=e.pagination;if(Array.isArray(w)||(w=[w].filter(C=>!!C)),e.params.pagination.el&&e.params.pagination.hideOnClick&&w&&w.length>0&&!y.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&y===e.navigation.nextEl||e.navigation.prevEl&&y===e.navigation.prevEl))return;const C=w[0].classList.contains(e.params.pagination.hiddenClass);r(C===!0?"paginationShow":"paginationHide"),w.forEach(O=>O.classList.toggle(e.params.pagination.hiddenClass))}});const g=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList.remove(e.params.pagination.paginationDisabledClass))),h(),d(),f()},S=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:p}=e.pagination;p&&(p=s(p),p.forEach(m=>m.classList.add(e.params.pagination.paginationDisabledClass))),v()};Object.assign(e.pagination,{enable:g,disable:S,render:d,update:f,init:h,destroy:v})}function lx({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:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,s=i&&i.autoplay?i.autoplay.delay:3e3,l=i&&i.autoplay?i.autoplay.delay:3e3,u,c=new Date().getTime,f,d,h,v,g,S;function p(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",p),E())}const m=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?f=!0:f&&(l=u,f=!1);const H=e.autoplay.paused?u:c+l-new Date().getTime();e.autoplay.timeLeft=H,r("autoplayTimeLeft",H,H/s),a=requestAnimationFrame(()=>{m()})},y=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.filter(R=>R.classList.contains("swiper-slide-active"))[0]:H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},w=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),m();let J=typeof H>"u"?e.params.autoplay.delay:H;s=e.params.autoplay.delay,l=e.params.autoplay.delay;const R=y();!Number.isNaN(R)&&R>0&&typeof H>"u"&&(J=R,s=R,l=R),u=J;const $=e.params.speed,W=()=>{e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev($,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,$,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext($,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,$,!0,!0),r("autoplay")),e.params.cssMode&&(c=new Date().getTime(),requestAnimationFrame(()=>{w()}))};return J>0?(clearTimeout(o),o=setTimeout(()=>{W()},J)):requestAnimationFrame(()=>{W()}),J},C=()=>{e.autoplay.running=!0,w(),r("autoplayStart")},O=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),r("autoplayStop")},P=(H,J)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),H||(S=!0);const R=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",p):E()};if(e.autoplay.paused=!0,J){g&&(u=e.params.autoplay.delay),g=!1,R();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-c),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),R())},E=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(c=new Date().getTime(),S?(S=!1,w(u)):w(),e.autoplay.paused=!1,r("autoplayResume"))},A=()=>{if(e.destroyed||!e.autoplay.running)return;const H=on();H.visibilityState==="hidden"&&(S=!0,P(!0)),H.visibilityState==="visible"&&E()},I=H=>{H.pointerType==="mouse"&&(S=!0,P(!0))},k=H=>{H.pointerType==="mouse"&&e.autoplay.paused&&E()},L=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",I),e.el.addEventListener("pointerleave",k))},U=()=>{e.el.removeEventListener("pointerenter",I),e.el.removeEventListener("pointerleave",k)},X=()=>{on().addEventListener("visibilitychange",A)},Z=()=>{on().removeEventListener("visibilitychange",A)};n("init",()=>{e.params.autoplay.enabled&&(L(),X(),c=new Date().getTime(),C())}),n("destroy",()=>{U(),Z(),e.autoplay.running&&O()}),n("beforeTransitionStart",(H,J,R)=>{e.destroyed||!e.autoplay.running||(R||!e.params.autoplay.disableOnInteraction?P(!0,!0):O())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){O();return}d=!0,h=!1,S=!1,v=setTimeout(()=>{S=!0,h=!0,P(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!d)){if(clearTimeout(v),clearTimeout(o),e.params.autoplay.disableOnInteraction){h=!1,d=!1;return}h&&e.params.cssMode&&E(),h=!1,d=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(g=!0)}),Object.assign(e.autoplay,{start:C,stop:O,pause:P,resume:E})}function Ar(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Bn(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Ar(t[r])&&Ar(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Bn(e[r],t[r]):e[r]=t[r]})}function ux(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function cx(e={}){return e.pagination&&typeof e.pagination.el>"u"}function fx(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function dx(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function P5(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const px=["modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_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","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","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","injectStyles","injectStylesUrls"];function T5(e={},t=!0){const n={on:{}},r={},i={};Bn(n,St.defaults),Bn(n,St.extendedDefaults),n._emitClasses=!0,n.init=!1;const o={},a=px.map(l=>l.replace(/_/,"")),s=Object.assign({},e);return Object.keys(s).forEach(l=>{typeof e[l]>"u"||(a.indexOf(l)>=0?Ar(e[l])?(n[l]={},i[l]={},Bn(n[l],e[l]),Bn(i[l],e[l])):(n[l]=e[l],i[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:o[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:i,rest:o,events:r}}function _5({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:i,swiper:o},a){ux(a)&&t&&n&&(o.params.navigation.nextEl=t,o.originalParams.navigation.nextEl=t,o.params.navigation.prevEl=n,o.originalParams.navigation.prevEl=n),cx(a)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),fx(a)&&i&&(o.params.scrollbar.el=i,o.originalParams.scrollbar.el=i),o.init(e)}function k5(e,t,n,r,i){const o=[];if(!t)return o;const a=l=>{o.indexOf(l)<0&&o.push(l)};if(n&&r){const l=r.map(i),u=n.map(i);l.join("")!==u.join("")&&a("children"),r.length!==n.length&&a("children")}return px.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Ar(e[l])&&Ar(t[l])){const u=Object.keys(e[l]),c=Object.keys(t[l]);u.length!==c.length?a(l):(u.forEach(f=>{e[l][f]!==t[l][f]&&a(l)}),c.forEach(f=>{e[l][f]!==t[l][f]&&a(l)}))}else e[l]!==t[l]&&a(l)}),o}function hx(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function mx(e){const t=[];return B.Children.toArray(e).forEach(n=>{hx(n)?t.push(n):n.props&&n.props.children&&mx(n.props.children).forEach(r=>t.push(r))}),t}function D5(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return B.Children.toArray(e).forEach(r=>{if(hx(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const i=mx(r.props.children);i.length>0?i.forEach(o=>t.push(o)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function L5({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:i,prevEl:o,scrollbarEl:a,paginationEl:s}){const l=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:u,pagination:c,navigation:f,scrollbar:d,virtual:h,thumbs:v}=e;let g,S,p,m,y,w,C,O;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&u.thumbs&&!u.thumbs.swiper&&(g=!0),r.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(S=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||s)&&(u.pagination||u.pagination===!1)&&c&&!c.el&&(p=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(u.scrollbar||u.scrollbar===!1)&&d&&!d.el&&(m=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||i)&&(u.navigation||u.navigation===!1)&&f&&!f.prevEl&&!f.nextEl&&(y=!0);const P=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),u[E].prevEl=void 0,u[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),u[E].el=void 0,e[E].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!n.loop?w=!0:!u.loop&&n.loop?C=!0:O=!0),l.forEach(E=>{if(Ar(u[E])&&Ar(n[E]))Bn(u[E],n[E]);else{const A=n[E];(A===!0||A===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?A===!1&&P(E):u[E]=n[E]}}),l.includes("controller")&&!S&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&h&&u.virtual.enabled&&(h.slides=t,h.update(!0)),r.includes("children")&&t&&u.loop&&(O=!0),g&&v.init()&&v.update(!0),S&&(e.controller.control=u.controller.control),p&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(s)),s&&(u.pagination.el=s),c.init(),c.render(),c.update()),m&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(a)),a&&(u.scrollbar.el=a),d.init(),d.updateSize(),d.setTranslate()),y&&(e.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(o))),i&&(u.navigation.nextEl=i),o&&(u.navigation.prevEl=o),f.init(),f.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(w||O)&&e.loopDestroy(),(C||O)&&e.loopCreate(),e.update()}function N5(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},i=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:o,to:a}=n,s=e.params.loop?-t.length:0,l=e.params.loop?t.length*2:t.length,u=[];for(let c=s;c<l;c+=1)c>=o&&c<=a&&u.push(t[r(c)]);return u.map(c=>B.cloneElement(c,{swiper:e,style:i}))}const A5=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function Do(e,t){return typeof window>"u"?b.useEffect(e,t):b.useLayoutEffect(e,t)}const Ey=b.createContext(null),R5=b.createContext(null);function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(this,arguments)}const Uh=b.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:i="div",children:o,onSwiper:a,...s}=e===void 0?{}:e,l=!1;const[u,c]=b.useState("swiper"),[f,d]=b.useState(null),[h,v]=b.useState(!1),g=b.useRef(!1),S=b.useRef(null),p=b.useRef(null),m=b.useRef(null),y=b.useRef(null),w=b.useRef(null),C=b.useRef(null),O=b.useRef(null),P=b.useRef(null),{params:E,passedParams:A,rest:I,events:k}=T5(s),{slides:L,slots:U}=D5(o),X=()=>{v(!h)};Object.assign(E.on,{_containerClasses($,W){c(W)}});const Z=()=>{Object.assign(E.on,k),l=!0;const $={...E};if(delete $.wrapperClass,p.current=new St($),p.current.virtual&&p.current.params.virtual.enabled){p.current.virtual.slides=L;const W={cache:!1,slides:L,renderExternal:d,renderExternalUpdate:!1};Bn(p.current.params.virtual,W),Bn(p.current.originalParams.virtual,W)}};S.current||Z(),p.current&&p.current.on("_beforeBreakpoint",X);const H=()=>{l||!k||!p.current||Object.keys(k).forEach($=>{p.current.on($,k[$])})},J=()=>{!k||!p.current||Object.keys(k).forEach($=>{p.current.off($,k[$])})};b.useEffect(()=>()=>{p.current&&p.current.off("_beforeBreakpoint",X)}),b.useEffect(()=>{!g.current&&p.current&&(p.current.emitSlidesClasses(),g.current=!0)}),Do(()=>{if(t&&(t.current=S.current),!!S.current)return p.current.destroyed&&Z(),_5({el:S.current,nextEl:w.current,prevEl:C.current,paginationEl:O.current,scrollbarEl:P.current,swiper:p.current},E),a&&a(p.current),()=>{p.current&&!p.current.destroyed&&p.current.destroy(!0,!1)}},[]),Do(()=>{H();const $=k5(A,m.current,L,y.current,W=>W.key);return m.current=A,y.current=L,$.length&&p.current&&!p.current.destroyed&&L5({swiper:p.current,slides:L,passedParams:A,changedParams:$,nextEl:w.current,prevEl:C.current,scrollbarEl:P.current,paginationEl:O.current}),()=>{J()}}),Do(()=>{A5(p.current)},[f]);function R(){return E.virtual?N5(p.current,L,f):L.map(($,W)=>B.cloneElement($,{swiper:p.current,swiperSlideIndex:W}))}return B.createElement(r,jd({ref:S,className:dx(`${u}${n?` ${n}`:""}`)},I),B.createElement(R5.Provider,{value:p.current},U["container-start"],B.createElement(i,{className:P5(E.wrapperClass)},U["wrapper-start"],R(),U["wrapper-end"]),ux(E)&&B.createElement(B.Fragment,null,B.createElement("div",{ref:C,className:"swiper-button-prev"}),B.createElement("div",{ref:w,className:"swiper-button-next"})),fx(E)&&B.createElement("div",{ref:P,className:"swiper-scrollbar"}),cx(E)&&B.createElement("div",{ref:O,className:"swiper-pagination"}),U["container-end"]))});Uh.displayName="Swiper";function Id(){return Id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}const Wh=b.forwardRef(function(e,t){let{tag:n="div",children:r,className:i="",swiper:o,zoom:a,lazy:s,virtualIndex:l,swiperSlideIndex:u,...c}=e===void 0?{}:e;const f=b.useRef(null),[d,h]=b.useState("swiper-slide"),[v,g]=b.useState(!1);function S(w,C,O){C===f.current&&h(O)}Do(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!o)){if(o.destroyed){d!=="swiper-slide"&&h("swiper-slide");return}return o.on("_slideClass",S),()=>{o&&o.off("_slideClass",S)}}}),Do(()=>{o&&f.current&&!o.destroyed&&h(o.getSlideClasses(f.current))},[o]);const p={isActive:d.indexOf("swiper-slide-active")>=0,isVisible:d.indexOf("swiper-slide-visible")>=0,isPrev:d.indexOf("swiper-slide-prev")>=0,isNext:d.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(p):r,y=()=>{g(!0)};return B.createElement(n,Id({ref:f,className:dx(`${d}${i?` ${i}`:""}`),"data-swiper-slide-index":l,onLoad:y},c),a&&B.createElement(Ey.Provider,{value:p},B.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof a=="number"?a:void 0},m(),s&&!v&&B.createElement("div",{className:"swiper-lazy-preloader"}))),!a&&B.createElement(Ey.Provider,{value:p},m(),s&&!v&&B.createElement("div",{className:"swiper-lazy-preloader"})))});Wh.displayName="SwiperSlide";const M5=({data:e})=>x("div",{className:"main-content-slider",children:x(Uh,{spaceBetween:24,slidesPerView:1,loop:!0,autoplay:{delay:3e3,disableOnInteraction:!1},modules:[ax,sx,lx],pagination:{type:"bullets",clickable:!0},children:e.map(t=>x(Wh,{children:x(Zr,{id:t.id,type:"big",img:t.featured_images?t.featured_images[0].path:"",title:t.title})},ln()))})}),j5=()=>{const e=Gr(),t=sn(s=>s.featured.data),n=new lr(Hi+"/posts",oL),r=n.language,[i,o]=b.useState(r),a=()=>{n.get(t,s=>e(sL(s)))};return b.useEffect(()=>{t.length>0&&(t[0].id>-1&&r===i||(a(),o(r)))},[r,i]),x(Yd,{children:x(On.LazyLoadComponent,{useIntersectionObserver:!0,children:t[0].id>-1?t.length>=5?q("div",{className:"main-content",children:[x(ph,{title:"Главное"}),x(M5,{data:t}),q("div",{className:"main-content-top",children:[x(Zr,{id:t[0].id,type:"big",img:t[0].featured_images?t[0].featured_images[0].path:"",title:t[0].title}),x(Zr,{id:t[1].id,img:t[1].featured_images?t[1].featured_images[0].path:"",title:t[1].title})]}),q("div",{className:"main-content-bottom",children:[x(Zr,{id:t[2].id,img:t[2].featured_images?t[2].featured_images[0].path:"",title:t[2].title}),x(Zr,{id:t[3].id,img:t[3].featured_images?t[3].featured_images[0].path:"",title:t[3].title}),x(Zr,{id:t[4].id,img:t[4].featured_images?t[4].featured_images[0].path:"",title:t[4].title})]})]}):x(Lr,{}):x(Lr,{})})})},I5=()=>q(We.main,{className:"main",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:[x("h1",{style:{display:"none"},children:"Туркменистан новостной портал"}),x("div",{className:"news-section",children:x("div",{className:"container",children:q("div",{className:"news-inner",children:[x(j5,{}),q("div",{className:"news-outer-wrapper",children:[x(Qb,{title:!0}),x(kh,{})]})]})})})]}),V5=({img:e})=>x("div",{className:"news-article-image",children:x(On.LazyLoadImage,{src:e,alt:e,effect:"blur",useIntersectionObserver:!0})}),$5=({images:e})=>{let t=e.length>1;return x("div",{className:"news-article-slider",children:x(Uh,{spaceBetween:24,slidesPerView:1,loop:t,autoplay:{delay:3e3,disableOnInteraction:!1},modules:[ax,sx,lx],pagination:{type:"bullets",clickable:!0},children:e.map(n=>x(Wh,{children:x(V5,{img:n.path})},ln()))})})},F5=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_138_728)"},b.createElement("path",{d:"M17.9995 15.0001C17.2139 15.0008 16.4599 15.3095 15.8995 15.8601L7.99955 12.3401V12.0001V11.6701L15.8995 8.14012C16.3944 8.62513 17.0418 8.92392 17.7319 8.98573C18.4221 9.04753 19.1123 8.86855 19.6854 8.47918C20.2585 8.08981 20.6792 7.51406 20.876 6.8497C21.0728 6.18535 21.0336 5.47337 20.7649 4.83467C20.4963 4.19597 20.0149 3.66994 19.4025 3.34593C18.79 3.02191 18.0843 2.91988 17.4051 3.05716C16.726 3.19445 16.1153 3.56259 15.6768 4.09905C15.2383 4.63552 14.999 5.30723 14.9995 6.00011V6.34011L7.09955 9.86011C6.67791 9.44587 6.14329 9.16541 5.56281 9.05394C4.98233 8.94247 4.38186 9.00497 3.83677 9.23358C3.29169 9.46219 2.82628 9.84673 2.49898 10.3389C2.17168 10.8311 1.99707 11.409 1.99707 12.0001C1.99707 12.5912 2.17168 13.1691 2.49898 13.6613C2.82628 14.1535 3.29169 14.538 3.83677 14.7666C4.38186 14.9953 4.98233 15.0578 5.56281 14.9463C6.14329 14.8348 6.67791 14.5544 7.09955 14.1401L14.9995 17.6701V18.0001C14.9995 18.5935 15.1755 19.1735 15.5051 19.6668C15.8348 20.1602 16.3033 20.5447 16.8515 20.7718C17.3997 20.9988 18.0029 21.0582 18.5848 20.9425C19.1668 20.8267 19.7013 20.541 20.1209 20.1214C20.5404 19.7019 20.8261 19.1673 20.9419 18.5854C21.0577 18.0034 20.9982 17.4002 20.7712 16.8521C20.5441 16.3039 20.1596 15.8354 19.6663 15.5057C19.1729 15.1761 18.5929 15.0001 17.9995 15.0001ZM17.9995 5.00011C18.1973 5.00011 18.3907 5.05876 18.5551 5.16865C18.7196 5.27853 18.8477 5.43471 18.9234 5.61743C18.9991 5.80016 19.0189 6.00122 18.9803 6.1952C18.9417 6.38919 18.8465 6.56737 18.7067 6.70722C18.5668 6.84707 18.3886 6.94231 18.1946 6.9809C18.0007 7.01949 17.7996 6.99968 17.6169 6.92399C17.4341 6.84831 17.278 6.72013 17.1681 6.55568C17.0582 6.39124 16.9995 6.1979 16.9995 6.00011C16.9995 5.7349 17.1049 5.48054 17.2924 5.29301C17.48 5.10547 17.7343 5.00011 17.9995 5.00011ZM4.99955 13.0001C4.80176 13.0001 4.60842 12.9415 4.44397 12.8316C4.27953 12.7217 4.15135 12.5655 4.07567 12.3828C3.99998 12.2001 3.98017 11.999 4.01876 11.805C4.05734 11.611 4.15259 11.4329 4.29244 11.293C4.43229 11.1532 4.61047 11.0579 4.80445 11.0193C4.99844 10.9807 5.1995 11.0005 5.38223 11.0762C5.56495 11.1519 5.72113 11.2801 5.83101 11.4445C5.9409 11.609 5.99955 11.8023 5.99955 12.0001C5.99955 12.2653 5.89419 12.5197 5.70665 12.7072C5.51912 12.8948 5.26476 13.0001 4.99955 13.0001ZM17.9995 19.0001C17.8018 19.0001 17.6084 18.9415 17.444 18.8316C17.2795 18.7217 17.1514 18.5655 17.0757 18.3828C17 18.2001 16.9802 17.999 17.0188 17.805C17.0573 17.611 17.1526 17.4329 17.2924 17.293C17.4323 17.1532 17.6105 17.0579 17.8045 17.0193C17.9984 16.9807 18.1995 17.0005 18.3822 17.0762C18.565 17.1519 18.7211 17.2801 18.831 17.4445C18.9409 17.609 18.9995 17.8023 18.9995 18.0001C18.9995 18.2653 18.8942 18.5197 18.7067 18.7072C18.5191 18.8948 18.2648 19.0001 17.9995 19.0001Z",fill:"white"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_138_728"},b.createElement("rect",{width:24,height:24,fill:"white"})))),z5=()=>{const{id:e}=$l(),t=new lr(`${Hi}/posts/${e}`),n=t.language,[r,i]=b.useState(n),o=sn(s=>s.post.data),a=Gr();return b.useEffect(()=>{o.data.id===parseInt(e)&&r===n||(t.get(o,s=>a(aL(s))),i(n))},[n,r]),b.useEffect(()=>{const s=document.querySelector("meta#meta-description"),l=document.querySelector("meta#meta-keywords"),u=document.querySelector("title");try{u.innerText=o.data.powerseo_title,s.content=o.data.powerseo_description,l.content=o.data.powerseo_keywords}catch(c){console.log(c)}},[o]),x(We.div,{className:"news-article",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:x("div",{className:"container",children:q("div",{className:"news-article-inner",children:[o.data.id>-1?q("div",{className:"news-article-content",children:[q("div",{className:"news-article-info",children:[q("div",{className:"news-article-status",children:[x("div",{className:"news-article-left",children:o.data.categories.map(s=>x(xe,{to:`/category/${s.id}`,className:"news-article-category",children:s.name},ln()))}),x("div",{className:"news-article-right",children:x("h3",{className:"news-article-date",children:o.data.published_at})})]}),x("h2",{className:"news-article-title",children:o.data.title})]}),x("div",{className:"news-article-slider-wrapper",children:x($5,{images:o.data.featured_images})}),x("p",{className:"news-article-text",dangerouslySetInnerHTML:{__html:o.data.content_html}}),q("button",{className:"share-btn",children:[x(F5,{})," ",x("span",{children:"Поделиться"})]})]}):x(Lr,{}),x(kh,{})]})})})},B5=()=>{const e=sn(t=>t.newsScroll.data);return x(Yd,{children:e.length>0&&e[0].id>-1?q(xe,{to:`/news/${e[0].id}`,className:"main-img",children:[x(On.LazyLoadImage,{src:e[0].featured_images.length>0?e[0].featured_images[0].path:"",alt:e[0].featured_images.length>0?e[0].featured_images[0].file_name:"",useIntersectionObserver:!0,effect:"blur"}),q("div",{className:"main-img-overlay",children:[x("h2",{children:e[0].title}),q("div",{className:"main-img-overlay-wrapper",children:[x("p",{className:"cats",children:e[0].categories.map(t=>x("span",{children:t.name},ln()))}),x("span",{className:"date",children:e[0].published_at})]})]})]}):""})},U5=()=>{let{category:e}=$l();return x(We.main,{className:"category",initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1,transition:{duration:.15}},exit:{opacity:0,scale:.8,transition:{duration:.15}},children:x("div",{className:"container",children:q("div",{className:"category-inner",children:[q("div",{className:"category-left",children:[x(B5,{}),x(Qb,{title:!1,category:parseInt(e)})]}),x("div",{className:"category-right",children:x(kh,{})})]})})})},W5=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M21.999 22L19.999 20M11.499 21C12.7466 21 13.9819 20.7543 15.1345 20.2769C16.2871 19.7994 17.3344 19.0997 18.2165 18.2175C19.0987 17.3354 19.7985 16.2881 20.2759 15.1355C20.7533 13.9829 20.999 12.7476 20.999 11.5C20.999 10.2524 20.7533 9.0171 20.2759 7.86451C19.7985 6.71191 19.0987 5.66464 18.2165 4.78249C17.3344 3.90033 16.2871 3.20056 15.1345 2.72314C13.9819 2.24572 12.7466 2 11.499 2C8.97947 2 6.56311 3.00089 4.78151 4.78249C2.99991 6.56408 1.99902 8.98044 1.99902 11.5C1.99902 14.0196 2.99991 16.4359 4.78151 18.2175C6.56311 19.9991 8.97947 21 11.499 21V21Z",stroke:"#272727",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Py=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_136_1482)"},b.createElement("rect",{width:24,height:24,transform:"translate(24 24) rotate(-180)",fill:"#38A39D"}),b.createElement("path",{d:"M10.1703 4.99997C10.3197 4.99946 10.4673 5.03243 10.6023 5.09646C10.7373 5.16049 10.8562 5.25395 10.9503 5.36997L15.7803 11.37C15.9274 11.5489 16.0078 11.7733 16.0078 12.005C16.0078 12.2366 15.9274 12.461 15.7803 12.64L10.7803 18.64C10.6106 18.8442 10.3667 18.9726 10.1022 18.997C9.83782 19.0214 9.57454 18.9397 9.37033 18.77C9.16611 18.6002 9.03768 18.3563 9.0133 18.0919C8.98893 17.8275 9.07059 17.5642 9.24033 17.36L13.7103 12L9.39033 6.63997C9.26804 6.49318 9.19037 6.31444 9.16649 6.12489C9.14261 5.93534 9.17352 5.74292 9.25558 5.57039C9.33764 5.39786 9.4674 5.25245 9.62951 5.15136C9.79162 5.05027 9.97929 4.99773 10.1703 4.99997Z",fill:"white"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_136_1482"},b.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(24 24) rotate(-180)"})))),H5={rest:{border:"rgba(56,163,157, 0) 0.1rem solid",color:"#272727",background:"#fff",type:"spring"},active:{border:"rgba(56,163,157, 1) 0.1rem solid",color:"#ffffff",background:"#38a39d",type:"spring"}},G5=({pages:e,activePage:t,setActivePage:n})=>{const r=i=>{n(i)};return q("div",{className:"pagination-wrapper",children:[x("button",{disabled:t-1<1,onClick:()=>r(t-1),children:x(Py,{className:"pagination-arr pagination-arr-left"})}),x("div",{className:"pagination-nums",children:Array.from(Array(typeof e=="string"?parseInt(e):e).keys()).map(i=>x(We.div,{className:"pagination-nums-item",onClick:()=>r(i+1),variants:H5,initial:"rest",animate:t===i+1?"active":"rest",children:x("span",{children:i+1})},ln()))}),x("button",{disabled:t+1>e,onClick:()=>r(t+1),children:x(Py,{className:"pagination-arr pagination-arr-right"})})]})},vx=({data:e,word:t,pagination:n=!1})=>{const[r,i]=b.useState(1),o=b.useMemo(()=>({activePage:r,setActivePage:i}),[r,i]);return x("div",{className:"news-scroll",children:q("div",{className:"news-scroll-wrapper",children:[x("div",{className:"news-scroll-inner",children:e.length>0?e[0].id>-1?e.map(a=>x(Lb,{id:a.id,title:a.title,text:a.excerpt,date:a.published_at,categories:a.categories,img:a.featured_images[0]?a.featured_images[0].path:""},ln())):x(Lr,{}):q("p",{className:"scroll-empty",children:['Нет новостей для "',t||"",'" ']})}),n?x(G5,{pages:3,activePage:o.activePage,setActivePage:o.setActivePage}):null]})})},Y5=()=>{const{word:e}=$l(),[t,n]=b.useState([{name:"search",value:e||""},{name:"count",value:10},{name:"page",value:1}]),r=new lr(Hi+"/posts",t),i=r.language,[o,a]=b.useState(i),s=sn(u=>u.searchData.data),l=Gr();return b.useEffect(()=>{r.get(s,u=>l(yy(u)))},[t]),b.useEffect(()=>{i!==o&&r.get(s,u=>l(yy(u)))},[i,o]),x("main",{className:"sresult",children:x("div",{className:"container",children:q("div",{className:"sresult-inner",children:[q("div",{className:"sresult-title",children:[x(W5,{}),q("h1",{children:['Результаты по поиску "',e,'"']})]}),x("div",{className:"sresult-content",children:x(vx,{pagination:!1,data:s,word:e})})]})})})},K5=()=>{const{category:e}=$l(),t=e!=="null"?e:"",[n,r]=b.useState(e!=="null"?[{name:"count",value:10},{name:"page",value:1},{name:"category",value:t}]:[{name:"count",value:10},{name:"page",value:1}]),i=new lr(Hi+"/posts",n),o=i.language,[a,s]=b.useState(o),[l,u]=b.useState();return b.useEffect(()=>{i.get(l,u)},[n]),b.useEffect(()=>{o!==a&&(i.get(l,u),s(o))},[o,a]),x("main",{className:"all",children:x("div",{className:"container",children:x("div",{className:"all-inner",children:l?x(vx,{data:l,pagination:!1}):x(Lr,{})})})})},q5="/assets/404-b9c88abe.svg",X5=()=>x("main",{className:"not-found",children:x("div",{className:"container",children:q("div",{className:"not-found-inner",children:[q("div",{className:"not-found-left",children:[x("h1",{children:"Page not found!"}),x("h3",{children:"Oops! We coudn't find the page you were looking for"}),x("h4",{children:x(xe,{to:"/",children:"Go to home page"})})]}),x("div",{className:"not-found-right",children:x("img",{src:q5,alt:"404"})})]})})}),gx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M7.68043 1.44C4.24002 1.44 1.44043 4.23959 1.44043 7.68V16.32C1.44043 19.7604 4.24002 22.56 7.68043 22.56H16.3204C19.7608 22.56 22.5604 19.7604 22.5604 16.32V7.68C22.5604 4.23959 19.7608 1.44 16.3204 1.44H7.68043ZM7.68043 2.4H16.3204C19.2419 2.4 21.6004 4.75849 21.6004 7.68V16.32C21.6004 19.2415 19.2419 21.6 16.3204 21.6H7.68043C4.75892 21.6 2.40043 19.2415 2.40043 16.32V7.68C2.40043 4.75849 4.75892 2.4 7.68043 2.4ZM17.7604 5.28C17.5058 5.28 17.2616 5.38115 17.0816 5.56118C16.9016 5.74122 16.8004 5.98539 16.8004 6.24C16.8004 6.49461 16.9016 6.73879 17.0816 6.91883C17.2616 7.09886 17.5058 7.2 17.7604 7.2C18.015 7.2 18.2592 7.09886 18.4393 6.91883C18.6193 6.73879 18.7204 6.49461 18.7204 6.24C18.7204 5.98539 18.6193 5.74122 18.4393 5.56118C18.2592 5.38115 18.015 5.28 17.7604 5.28ZM12.0004 6.72C9.09005 6.72 6.72043 9.08962 6.72043 12C6.72043 14.9104 9.09005 17.28 12.0004 17.28C14.9108 17.28 17.2804 14.9104 17.2804 12C17.2804 9.08962 14.9108 6.72 12.0004 6.72ZM12.0004 7.68C14.392 7.68 16.3204 9.60845 16.3204 12C16.3204 14.3916 14.392 16.32 12.0004 16.32C9.60887 16.32 7.68043 14.3916 7.68043 12C7.68043 9.60845 9.60887 7.68 12.0004 7.68Z"})),yx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.31992 1.91998C3.00015 1.91998 1.91992 3.00022 1.91992 4.31998V19.68C1.91992 20.9998 3.00015 22.08 4.31992 22.08H12.3993C12.4511 22.0886 12.504 22.0886 12.5559 22.08H15.2793C15.3311 22.0886 15.384 22.0886 15.4359 22.08H19.6799C20.9997 22.08 22.0799 20.9998 22.0799 19.68V4.31998C22.0799 3.00022 20.9997 1.91998 19.6799 1.91998H4.31992ZM4.31992 2.87998H19.6799C20.4808 2.87998 21.1199 3.51911 21.1199 4.31998V19.68C21.1199 20.4809 20.4808 21.12 19.6799 21.12H15.8399V14.4H17.6737L18.3459 11.04H15.8399V10.08C15.8399 9.81239 15.8654 9.79147 15.9552 9.73311C16.0451 9.67475 16.3227 9.59998 16.7999 9.59998H18.2399V6.89717L17.9662 6.76686C17.9662 6.76686 16.8636 6.23998 15.3599 6.23998C14.2799 6.23998 13.3927 6.67028 12.8249 7.37998C12.2572 8.08969 11.9999 9.03998 11.9999 10.08V11.04H10.5599V14.4H11.9999V21.12H4.31992C3.51905 21.12 2.87992 20.4809 2.87992 19.68V4.31998C2.87992 3.51911 3.51905 2.87998 4.31992 2.87998ZM15.3599 7.19998C16.3579 7.19998 16.9859 7.42004 17.2799 7.53655V8.63998H16.7999C16.2475 8.63998 15.8049 8.68568 15.4321 8.9278C15.0594 9.16991 14.8799 9.6295 14.8799 10.08V12H17.174L16.8862 13.44H14.8799V21.12H12.9599V13.44H11.5199V12H12.9599V10.08C12.9599 9.19998 13.1827 8.47028 13.5749 7.97998C13.9672 7.48969 14.5199 7.19998 15.3599 7.19998Z"})),wx=e=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M4.31992 1.91998C2.99972 1.91998 1.91992 2.99978 1.91992 4.31998V19.68C1.91992 21.0002 2.99972 22.08 4.31992 22.08H19.6799C21.0001 22.08 22.0799 21.0002 22.0799 19.68V4.31998C22.0799 2.99978 21.0001 1.91998 19.6799 1.91998H4.31992ZM4.31992 2.87998H19.6799C20.4823 2.87998 21.1199 3.51763 21.1199 4.31998V19.68C21.1199 20.4823 20.4823 21.12 19.6799 21.12H4.31992C3.51757 21.12 2.87992 20.4823 2.87992 19.68V4.31998C2.87992 3.51763 3.51757 2.87998 4.31992 2.87998ZM12.5005 4.79998C12.3734 4.8 12.2515 4.85044 12.1615 4.94025C12.0715 5.03007 12.0208 5.15191 12.0205 5.27905C12.0205 5.27905 12.0153 7.61915 12.0102 9.96467C12.0077 11.1374 12.0046 12.3114 12.0027 13.1953C12.0008 14.0792 11.9999 14.6385 11.9999 14.685C11.9999 15.5563 11.2086 16.2684 10.3068 16.2684C9.41218 16.2684 8.69805 15.5534 8.69805 14.6587C8.69805 13.7641 9.41218 13.05 10.3068 13.05C10.3371 13.05 10.3982 13.0599 10.5027 13.0725C10.5702 13.0806 10.6385 13.0743 10.7033 13.054C10.7682 13.0337 10.8279 12.9998 10.8787 12.9547C10.9295 12.9096 10.9701 12.8543 10.9979 12.7923C11.0257 12.7304 11.04 12.6632 11.0399 12.5953V10.5787C11.0399 10.4566 10.9934 10.3391 10.9098 10.2501C10.8262 10.1611 10.7118 10.1073 10.5899 10.0997C10.5151 10.095 10.421 10.0856 10.3068 10.0856C7.78702 10.0856 5.73367 12.139 5.73367 14.6587C5.73367 17.1785 7.78702 19.2319 10.3068 19.2319C12.8265 19.2319 14.8799 17.1785 14.8799 14.6587V10.3153C15.5781 10.8737 16.4483 11.2275 17.4093 11.2275C17.5404 11.2275 17.665 11.2197 17.7843 11.2087C17.9035 11.1977 18.0143 11.1426 18.0949 11.0541C18.1756 10.9657 18.2203 10.8503 18.2202 10.7306V8.48905C18.2203 8.36769 18.1744 8.25082 18.0918 8.16194C18.0092 8.07306 17.896 8.01876 17.7749 8.00998C16.2655 7.90169 15.0622 6.72585 14.9052 5.2303C14.8929 5.11228 14.8374 5.00299 14.7493 4.92353C14.6611 4.84406 14.5467 4.80005 14.428 4.79998H12.5005ZM12.9796 5.75998H14.0746C14.4235 7.34336 15.6608 8.5509 17.2602 8.85373V10.229C16.2336 10.1769 15.3318 9.66476 14.8012 8.85748C14.7444 8.77109 14.6613 8.70533 14.5641 8.66997C14.467 8.63462 14.361 8.63157 14.262 8.66128C14.163 8.69098 14.0762 8.75185 14.0146 8.83484C13.953 8.91782 13.9198 9.01849 13.9199 9.12186V14.6587C13.9199 16.6596 12.3077 18.2719 10.3068 18.2719C8.30593 18.2719 6.69367 16.6596 6.69367 14.6587C6.69367 12.7385 8.19164 11.2143 10.0799 11.0915V12.1359C8.7774 12.2571 7.73805 13.3259 7.73805 14.6587C7.73805 16.072 8.89358 17.2284 10.3068 17.2284C11.7128 17.2284 12.9599 16.1215 12.9599 14.685C12.9599 14.7085 12.9608 14.0811 12.9627 13.1972C12.9646 12.3133 12.9677 11.1393 12.9702 9.96655C12.9747 7.86083 12.9787 6.1676 12.9796 5.75998Z"})),Q5={rest:{transform:"translateY(0rem)",opacity:1,type:"spring"},active:{transform:"translateX(6rem)",opacity:0,type:"tween"}},xi={rest:{width:"5rem",right:"8rem",type:"spring",borderColor:"rgba(166, 166, 166, 0)"},active:{width:"100%",right:"0",type:"spring",borderColor:"rgba(166, 166, 166, 1)"},logoRest:{display:"block",opacity:1,transform:"translateX(0%) translateY(-50%)",type:"spring"},logoActive:{opacity:0,transform:"translateX(-150%) translateY(-50%)",type:"spring"},langRest:{opacity:1,transform:"translateX(0%)",type:"spring"},langActive:{opacity:0,transform:"translateX(150%)",type:"spring"},loopRest:{width:"2rem",height:"2rem",type:"spring"},loopActive:{width:"1.3rem",height:"1.4rem",type:"spring"},placeholderRest:{opacity:0},placeholderActive:{opacity:1},borderRest:{borderColor:"rgba(166, 166, 166, 0)"},borderActive:{borderColor:"rgba(166, 166, 166, 1)"}},Z5=e=>({type:"SET_SEARCH",payload:e}),Ty=({isSmall:e,isInputFocused:t,setIsInputFocused:n})=>{const r=l=>{i(Z5(l))},i=Gr(),o=sn(l=>l.search.value),a=aw(),s=b.useRef(null);return q(We.form,{ref:s,className:"search",onSubmit:l=>{l.preventDefault(),a(`/search/${o}`)},variants:xi,initial:e?"borderRest":{},animate:e?t?"borderActive":"borderRest":{},children:[x("input",{type:"text",value:o,onChange:l=>r(l.target.value),onFocus:()=>{n(!0)},onBlur:()=>{n(!1),r("")}}),q(We.div,{className:"search-content",initial:"rest",animate:o.length>0?"active":"rest",variants:Q5,children:[q(We.svg,{width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",variants:xi,initial:e?"loopRest":"loopActive",animate:e?t?"loopActive":"loopRest":"loopActive",children:[x("g",{clipPath:"url(#clip0_138_523)",children:x("path",{d:"M11.9163 12.8394L10.833 11.7561M6.22884 12.2978C6.9046 12.2978 7.57375 12.1647 8.19807 11.9061C8.82239 11.6475 9.38966 11.2684 9.8675 10.7906C10.3453 10.3128 10.7244 9.74548 10.983 9.12116C11.2416 8.49684 11.3747 7.8277 11.3747 7.15194C11.3747 6.47618 11.2416 5.80703 10.983 5.18271C10.7244 4.55839 10.3453 3.99112 9.8675 3.51328C9.38966 3.03545 8.82239 2.65641 8.19807 2.39781C7.57375 2.1392 6.9046 2.0061 6.22884 2.0061C4.86408 2.0061 3.55522 2.54825 2.59019 3.51328C1.62516 4.47831 1.08301 5.78718 1.08301 7.15194C1.08301 8.5167 1.62516 9.82556 2.59019 10.7906C3.55522 11.7556 4.86408 12.2978 6.22884 12.2978V12.2978Z",stroke:"#A6A6A6",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),x("defs",{children:x("clipPath",{id:"clip0_138_523",children:x("rect",{width:"13",height:"13",fill:"white",transform:"translate(0 0.922791)"})})})]}),x(We.span,{variants:xi,initial:e?"placeholderRest":{},animate:e?t?"placeholderActive":"placeholderRest":{},children:"Search"})]})]})},J5=e=>b.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("g",{clipPath:"url(#clip0_138_516)"},b.createElement("path",{d:"M12.0003 16.4228C11.7666 16.4232 11.5402 16.3418 11.3603 16.1928L5.36028 11.1928C5.15606 11.023 5.02763 10.7791 5.00325 10.5147C4.97888 10.2503 5.06054 9.98698 5.23028 9.78276C5.40001 9.57854 5.64393 9.45012 5.90835 9.42574C6.17278 9.40136 6.43606 9.48302 6.64028 9.65276L12.0003 14.1328L17.3603 9.81276C17.4626 9.7297 17.5803 9.66766 17.7066 9.63023C17.8329 9.5928 17.9654 9.58071 18.0965 9.59465C18.2275 9.60858 18.3545 9.64828 18.4701 9.71146C18.5857 9.77463 18.6878 9.86003 18.7703 9.96276C18.8619 10.0656 18.9312 10.1862 18.974 10.3171C19.0168 10.448 19.0321 10.5863 19.019 10.7233C19.0058 10.8604 18.9645 10.9933 18.8976 11.1136C18.8307 11.234 18.7397 11.3392 18.6303 11.4228L12.6303 16.2528C12.4452 16.3783 12.2234 16.4381 12.0003 16.4228Z",fill:"#272727"})),b.createElement("defs",null,b.createElement("clipPath",{id:"clip0_138_516"},b.createElement("rect",{width:24,height:24,fill:"white",transform:"translate(0 0.422791)"})))),Rc={rest:{maxHeight:"0",pointerEvents:"none",overflow:"hidden",opacity:0},active:{maxHeight:"20rem",pointerEvents:"all",overflow:"visible",opacity:1},arrowRest:{transform:"rotateX(0deg)"},arrowActive:{transform:"rotateX(180deg)"},wrapperRest:{background:"rgba(255, 255, 255, 0)"},wrapperActive:{background:"#f1f1f1"}},e6=e=>(localStorage.setItem("savedLanguage",e),e),t6=e=>({type:"SET_LANGUAGE",payload:e6(e)}),n6=[{title:"RU"},{title:"EN"},{title:"TM"}],_y=({isSmall:e,isInputFocused:t})=>{const[n,r]=b.useState(!1),i=sn(s=>s.language.title),o=Gr(),a=s=>{o(t6(s))};return x(We.div,{initial:e?"langRest":{},animate:e?t?"langActive":"langRest":{},variants:xi,children:q(We.div,{className:"language",onClick:()=>r(!n),initial:"wrapperRest",animate:n?"wrapperActive":"wrapperRest",variants:Rc,children:[x("span",{children:i}),x(We.div,{className:"icon-wrapper",initial:"arrowRest",animate:n?"arrowActive":"arrowRest",variants:Rc,children:x(J5,{})}),x(We.ul,{className:"language-dropdown",variants:Rc,initial:"rest",animate:n?"active":"rest",children:n6.map(s=>x("li",{children:x(We.button,{type:"button",initial:{background:"#ffffff",type:"tween"},whileHover:{background:"#f1f1f1",type:"spring"},onClick:()=>a(s.title),children:s.title})},ln()))})]})})},r6=e=>{const[t,n]=b.useState(!1);return b.useEffect(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const i=()=>{n(r.matches)};return r.addListener(i),()=>r.removeListener(i)},[t,e]),t},i6=()=>{const e=r6("(max-width: 850px)"),[t,n]=b.useState(!1),r=new lr("").language;return x("nav",{className:"nav",children:x("div",{className:"container",children:e?q(We.div,{className:"nav-inner mobile",children:[x(We.div,{className:"nav-mid",initial:e?"logoRest":{},animate:e?t?"logoActive":"logoRest":{},variants:xi,children:x(xe,{to:"/",children:x("h1",{children:r==="TM"?"Türkmenistan Habarlar Portaly":r==="RU"?"Туркменистан новостной портал":r==="EN"?"Turkmenistan news portal":""})})}),x(We.div,{className:"search-wrap",initial:e?"rest":{},animate:e?t?"active":"rest":{},variants:xi,children:x(Ty,{isSmall:e,isInputFocused:t,setIsInputFocused:n})}),x("div",{className:"lang-wrap",children:x(_y,{isSmall:e,isInputFocused:t})})]}):q("div",{className:"nav-inner",children:[q("div",{className:"nav-left",children:[x(Ty,{isSmall:e,isInputFocused:t,setIsInputFocused:n}),x(_y,{isSmall:e,isInputFocused:t})]}),x("div",{className:"nav-mid",children:x(xe,{to:"/",children:x("h1",{children:r==="TM"?"Türkmenistan Habarlar Portaly":r==="RU"?"Туркменистан новостной портал":r==="EN"?"Turkmenistan news portal":""})})}),x("div",{className:"nav-right",children:q("ul",{children:[x("li",{children:x("a",{href:"#",target:"_blank",children:x(gx,{})})}),x("li",{children:x("a",{href:"#",target:"_blank",children:x(yx,{})})}),x("li",{children:x("a",{href:"#",target:"_blank",children:x(wx,{})})})]})})]})})})},o6=e=>({type:"SET_ACTIVE_LINK",payload:e}),Mc={rest:{fontWeight:"normal",background:"rgba(241,241, 241, 1)",type:"tween"},active:{fontWeight:"bold",background:"rgba(56,163,157, 1)",color:"#ffffff",type:"spring"}},a6=({activeLink:e,dataEl:t,onClickLink:n,isNotCategory:r})=>x(We.li,{initial:Mc.rest,animate:e===t.id?Mc.active:Mc.rest,children:x(We.div,{children:x(xe,{to:r?"/":`/category/${t.id}`,onClick:()=>n(t.id),className:e===t.id?"active":"",children:t.name})})}),s6=()=>{const e=sn(l=>l.activeLink.active),t=sn(l=>l.language.title),n=Gr(),r=l=>{n(o6(l))},[i,o]=b.useState(),a=new lr(Hi+"/categories",iL);b.useEffect(()=>{a.get(i,o)},[t]);const s=Fr();return b.useEffect(()=>{if(!s.pathname.includes("category")){r(0);return}const l=s.pathname.split("/")[s.pathname.split("/").length-1];r(parseInt(l))},[s]),x("nav",{className:"subnav",children:x("div",{className:"container",children:x("ul",{className:"subnav-inner",children:i?x(Yd,{children:i.data.map(l=>x(a6,{dataEl:l,activeLink:e,onClickLink:r},ln()))}):x(Lr,{})})})})},l6=()=>q("header",{className:"header",children:[x(i6,{}),x(s6,{})]}),u6="/assets/phone-a547e55c.svg",c6="/assets/mail-df8b0af1.svg",f6="/assets/location-c549270d.svg",d6=()=>x("footer",{className:"footer",children:x("div",{className:"container",children:q("div",{className:"footer-wrapper",children:[x("nav",{className:"footer-nav",children:q("ul",{className:"footer-nav-list",children:[x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"В Туркменистане"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Политика"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Общество"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Статьи"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Культура"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Новости"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Экономика"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Наука и технологии"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Медиа"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"В мире"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Спорт"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Здоровье и медицина"})}),x("li",{className:"footer-nav-list-item",children:x(xe,{to:"/",children:"Погода"})})]})}),q("div",{className:"footer-info",children:[q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:u6,alt:"phone"})}),x("h3",{className:"footer-info-item-title",children:"+(993) 12 68-07-92, 94-08-01 "})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:c6,alt:"mail"})}),x("h3",{className:"footer-info-item-title",children:"turkmen@info.tm"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x("img",{src:f6,alt:"location"})}),x("h3",{className:"footer-info-item-title",children:"115184, Ашхабад, Битарап шаелы, 25 (Центр телерадиовещания Туркменистана)"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(gx,{})}),x("h3",{className:"footer-info-item-title",children:"hhm@inst.com"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(yx,{})}),x("h3",{className:"footer-info-item-title",children:"hhm@face.com"})]}),q("div",{className:"footer-info-item",children:[x("div",{className:"footer-info-item-icon",children:x(wx,{})}),x("h3",{className:"footer-info-item-title",children:"@hhm"})]}),x("div",{className:"footer-info-item",children:x("h3",{className:"footer-info-item-title",children:"Реклама на ТВ и радио: (993) 12 78-13-99"})}),x("div",{className:"footer-info-item",children:x("h3",{className:"footer-info-item-title",children:"Реклама на сайте: (993) 12 78-13-99"})})]})]})})}),p6=()=>{const e=Fr(),t=new lr("").language;return b.useEffect(()=>{try{const n=document.querySelector("title");t==="EN"?n.innerText="Turkmenistan News Portal":t==="RU"?n.innerText="Туркменистан новостной портал":t==="TM"&&(n.innerText="Türkmenistan Habarlar Portaly")}catch(n){console.log(n)}},[t]),x(D_,{children:q("div",{className:"App",children:[x(l6,{}),x(k_,{mode:"wait",initial:!1,children:q(aE,{location:e,children:[x(hr,{path:"/",element:x(I5,{})}),x(hr,{path:"/category/:category",element:x(U5,{})}),x(hr,{path:"/news/:id",element:x(z5,{})}),x(hr,{path:"/search/:word",element:x(Y5,{})}),x(hr,{path:"/all/:category",element:x(K5,{})}),x(hr,{path:"*",element:x(X5,{})})]},e.pathname)}),x(d6,{})]})})};function Ut(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Rr(e){return!!e&&!!e[ge]}function Mr(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var i=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===x6}(e)||Array.isArray(e)||!!e[My]||!!(!((t=e.constructor)===null||t===void 0)&&t[My])||Hh(e)||Gh(e))}function jr(e,t,n){n===void 0&&(n=!1),Yi(e)===0?(n?Object.keys:Ci)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,i){return t(i,r,e)})}function Yi(e){var t=e[ge];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Hh(e)?2:Gh(e)?3:0}function Oi(e,t){return Yi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function h6(e,t){return Yi(e)===2?e.get(t):e[t]}function Sx(e,t,n){var r=Yi(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function bx(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Hh(e){return S6&&e instanceof Map}function Gh(e){return b6&&e instanceof Set}function vr(e){return e.o||e.t}function Yh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ox(e);delete t[ge];for(var n=Ci(t),r=0;r<n.length;r++){var i=n[r],o=t[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function Kh(e,t){return t===void 0&&(t=!1),qh(e)||Rr(e)||!Mr(e)||(Yi(e)>1&&(e.set=e.add=e.clear=e.delete=m6),Object.freeze(e),t&&jr(e,function(n,r){return Kh(r,!0)},!0)),e}function m6(){Ut(2)}function qh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function an(e){var t=zd[e];return t||Ut(18,e),t}function v6(e,t){zd[e]||(zd[e]=t)}function Vd(){return la}function jc(e,t){t&&(an("Patches"),e.u=[],e.s=[],e.v=t)}function vl(e){$d(e),e.p.forEach(g6),e.p=null}function $d(e){e===la&&(la=e.l)}function ky(e){return la={p:[],l:la,h:e,m:!0,_:0}}function g6(e){var t=e[ge];t.i===0||t.i===1?t.j():t.O=!0}function Ic(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||an("ES5").S(t,e,r),r?(n[ge].P&&(vl(t),Ut(4)),Mr(e)&&(e=gl(t,e),t.l||yl(t,e)),t.u&&an("Patches").M(n[ge].t,e,t.u,t.s)):e=gl(t,n,[]),vl(t),t.u&&t.v(t.u,t.s),e!==xx?e:void 0}function gl(e,t,n){if(qh(t))return t;var r=t[ge];if(!r)return jr(t,function(s,l){return Dy(e,r,t,s,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return yl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Yh(r.k):r.o,o=i,a=!1;r.i===3&&(o=new Set(i),i.clear(),a=!0),jr(o,function(s,l){return Dy(e,r,i,s,l,n,a)}),yl(e,i,!1),n&&e.u&&an("Patches").N(r,n,e.u,e.s)}return r.o}function Dy(e,t,n,r,i,o,a){if(Rr(i)){var s=gl(e,i,o&&t&&t.i!==3&&!Oi(t.R,r)?o.concat(r):void 0);if(Sx(n,r,s),!Rr(s))return;e.m=!1}else a&&n.add(i);if(Mr(i)&&!qh(i)){if(!e.h.D&&e._<1)return;gl(e,i),t&&t.A.l||yl(e,i)}}function yl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Kh(t,n)}function Vc(e,t){var n=e[ge];return(n?vr(n):e)[t]}function Ly(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function jn(e){e.P||(e.P=!0,e.l&&jn(e.l))}function $c(e){e.o||(e.o=Yh(e.t))}function Fd(e,t,n){var r=Hh(t)?an("MapSet").F(t,n):Gh(t)?an("MapSet").T(t,n):e.g?function(i,o){var a=Array.isArray(i),s={i:a?1:0,A:o?o.A:Vd(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=s,u=ua;a&&(l=[s],u=ho);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return s.k=d,s.j=f,d}(t,n):an("ES5").J(t,n);return(n?n.A:Vd()).p.push(r),r}function y6(e){return Rr(e)||Ut(22,e),function t(n){if(!Mr(n))return n;var r,i=n[ge],o=Yi(n);if(i){if(!i.P&&(i.i<4||!an("ES5").K(i)))return i.t;i.I=!0,r=Ny(n,o),i.I=!1}else r=Ny(n,o);return jr(r,function(a,s){i&&h6(i.t,a)===s||Sx(r,a,t(s))}),o===3?new Set(r):r}(e)}function Ny(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Yh(e)}function w6(){function e(o,a){var s=i[o];return s?s.enumerable=a:i[o]=s={configurable:!0,enumerable:a,get:function(){var l=this[ge];return ua.get(l,o)},set:function(l){var u=this[ge];ua.set(u,o,l)}},s}function t(o){for(var a=o.length-1;a>=0;a--){var s=o[a][ge];if(!s.P)switch(s.i){case 5:r(s)&&jn(s);break;case 4:n(s)&&jn(s)}}}function n(o){for(var a=o.t,s=o.k,l=Ci(s),u=l.length-1;u>=0;u--){var c=l[u];if(c!==ge){var f=a[c];if(f===void 0&&!Oi(a,c))return!0;var d=s[c],h=d&&d[ge];if(h?h.t!==f:!bx(d,f))return!0}}var v=!!a[ge];return l.length!==Ci(a).length+(v?0:1)}function r(o){var a=o.k;if(a.length!==o.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var l=0;l<a.length;l++)if(!a.hasOwnProperty(l))return!0;return!1}var i={};v6("ES5",{J:function(o,a){var s=Array.isArray(o),l=function(c,f){if(c){for(var d=Array(f.length),h=0;h<f.length;h++)Object.defineProperty(d,""+h,e(h,!0));return d}var v=Ox(f);delete v[ge];for(var g=Ci(v),S=0;S<g.length;S++){var p=g[S];v[p]=e(p,c||!!v[p].enumerable)}return Object.create(Object.getPrototypeOf(f),v)}(s,o),u={i:s?5:4,A:a?a.A:Vd(),P:!1,I:!1,R:{},l:a,t:o,k:l,o:null,O:!1,C:!1};return Object.defineProperty(l,ge,{value:u,writable:!0}),l},S:function(o,a,s){s?Rr(a)&&a[ge].A===o&&t(o.p):(o.u&&function l(u){if(u&&typeof u=="object"){var c=u[ge];if(c){var f=c.t,d=c.k,h=c.R,v=c.i;if(v===4)jr(d,function(y){y!==ge&&(f[y]!==void 0||Oi(f,y)?h[y]||l(d[y]):(h[y]=!0,jn(c)))}),jr(f,function(y){d[y]!==void 0||Oi(d,y)||(h[y]=!1,jn(c))});else if(v===5){if(r(c)&&(jn(c),h.length=!0),d.length<f.length)for(var g=d.length;g<f.length;g++)h[g]=!1;else for(var S=f.length;S<d.length;S++)h[S]=!0;for(var p=Math.min(d.length,f.length),m=0;m<p;m++)d.hasOwnProperty(m)||(h[m]=!0),h[m]===void 0&&l(d[m])}}}}(o.p[0]),t(o.p))},K:function(o){return o.i===4?n(o):r(o)}})}var Ay,la,Xh=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",S6=typeof Map<"u",b6=typeof Set<"u",Ry=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",xx=Xh?Symbol.for("immer-nothing"):((Ay={})["immer-nothing"]=!0,Ay),My=Xh?Symbol.for("immer-draftable"):"__$immer_draftable",ge=Xh?Symbol.for("immer-state"):"__$immer_state",x6=""+Object.prototype.constructor,Ci=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Ox=Object.getOwnPropertyDescriptors||function(e){var t={};return Ci(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},zd={},ua={get:function(e,t){if(t===ge)return e;var n=vr(e);if(!Oi(n,t))return function(i,o,a){var s,l=Ly(o,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(i.k):void 0}(e,n,t);var r=n[t];return e.I||!Mr(r)?r:r===Vc(e.t,t)?($c(e),e.o[t]=Fd(e.A.h,r,e)):r},has:function(e,t){return t in vr(e)},ownKeys:function(e){return Reflect.ownKeys(vr(e))},set:function(e,t,n){var r=Ly(vr(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Vc(vr(e),t),o=i==null?void 0:i[ge];if(o&&o.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(bx(n,i)&&(n!==void 0||Oi(e.t,t)))return!0;$c(e),jn(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Vc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,$c(e),jn(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=vr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){Ut(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ut(12)}},ho={};jr(ua,function(e,t){ho[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ho.deleteProperty=function(e,t){return ho.set.call(this,e,t,void 0)},ho.set=function(e,t,n){return ua.set.call(this,e[0],t,n,e[0])};var O6=function(){function e(n){var r=this;this.g=Ry,this.D=!0,this.produce=function(i,o,a){if(typeof i=="function"&&typeof o!="function"){var s=o;o=i;var l=r;return function(g){var S=this;g===void 0&&(g=s);for(var p=arguments.length,m=Array(p>1?p-1:0),y=1;y<p;y++)m[y-1]=arguments[y];return l.produce(g,function(w){var C;return(C=o).call.apply(C,[S,w].concat(m))})}}var u;if(typeof o!="function"&&Ut(6),a!==void 0&&typeof a!="function"&&Ut(7),Mr(i)){var c=ky(r),f=Fd(r,i,void 0),d=!0;try{u=o(f),d=!1}finally{d?vl(c):$d(c)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(g){return jc(c,a),Ic(g,c)},function(g){throw vl(c),g}):(jc(c,a),Ic(u,c))}if(!i||typeof i!="object"){if((u=o(i))===void 0&&(u=i),u===xx&&(u=void 0),r.D&&Kh(u,!0),a){var h=[],v=[];an("Patches").M(i,u,h,v),a(h,v)}return u}Ut(21,i)},this.produceWithPatches=function(i,o){if(typeof i=="function")return function(u){for(var c=arguments.length,f=Array(c>1?c-1:0),d=1;d<c;d++)f[d-1]=arguments[d];return r.produceWithPatches(u,function(h){return i.apply(void 0,[h].concat(f))})};var a,s,l=r.produce(i,o,function(u,c){a=u,s=c});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,a,s]}):[l,a,s]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){Mr(n)||Ut(8),Rr(n)&&(n=y6(n));var r=ky(this),i=Fd(this,n,void 0);return i[ge].C=!0,$d(r),i},t.finishDraft=function(n,r){var i=n&&n[ge],o=i.A;return jc(o,r),Ic(void 0,o)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!Ry&&Ut(20),this.g=n},t.applyPatches=function(n,r){var i;for(i=r.length-1;i>=0;i--){var o=r[i];if(o.path.length===0&&o.op==="replace"){n=o.value;break}}i>-1&&(r=r.slice(i+1));var a=an("Patches").$;return Rr(n)?a(n,r):this.produce(n,function(s){return a(s,r)})},e}(),Pt=new O6;Pt.produce;Pt.produceWithPatches.bind(Pt);Pt.setAutoFreeze.bind(Pt);Pt.setUseProxies.bind(Pt);Pt.applyPatches.bind(Pt);Pt.createDraft.bind(Pt);Pt.finishDraft.bind(Pt);function ca(e){return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function C6(e,t){if(ca(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ca(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function E6(e){var t=C6(e,"string");return ca(t)==="symbol"?t:String(t)}function P6(e,t,n){return t=E6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Iy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jy(Object(n),!0).forEach(function(r){P6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Vy=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fc=function(){return Math.random().toString(36).substring(7).split("").join(".")},wl={INIT:"@@redux/INIT"+Fc(),REPLACE:"@@redux/REPLACE"+Fc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Fc()}};function T6(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Cx(e,t,n){var r;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(nt(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(nt(1));return n(Cx)(e,t)}if(typeof e!="function")throw new Error(nt(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(nt(3));return o}function f(g){if(typeof g!="function")throw new Error(nt(4));if(l)throw new Error(nt(5));var S=!0;return u(),s.push(g),function(){if(S){if(l)throw new Error(nt(6));S=!1,u();var m=s.indexOf(g);s.splice(m,1),a=null}}}function d(g){if(!T6(g))throw new Error(nt(7));if(typeof g.type>"u")throw new Error(nt(8));if(l)throw new Error(nt(9));try{l=!0,o=i(o,g)}finally{l=!1}for(var S=a=s,p=0;p<S.length;p++){var m=S[p];m()}return g}function h(g){if(typeof g!="function")throw new Error(nt(10));i=g,d({type:wl.REPLACE})}function v(){var g,S=f;return g={subscribe:function(m){if(typeof m!="object"||m===null)throw new Error(nt(11));function y(){m.next&&m.next(c())}y();var w=S(y);return{unsubscribe:w}}},g[Vy]=function(){return this},g}return d({type:wl.INIT}),r={dispatch:d,subscribe:f,getState:c,replaceReducer:h},r[Vy]=v,r}function _6(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:wl.INIT});if(typeof r>"u")throw new Error(nt(12));if(typeof n(void 0,{type:wl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nt(13))})}function Ex(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];typeof e[i]=="function"&&(n[i]=e[i])}var o=Object.keys(n),a;try{_6(n)}catch(s){a=s}return function(l,u){if(l===void 0&&(l={}),a)throw a;for(var c=!1,f={},d=0;d<o.length;d++){var h=o[d],v=n[h],g=l[h],S=v(g,u);if(typeof S>"u")throw u&&u.type,new Error(nt(14));f[h]=S,c=c||S!==g}return c=c||o.length!==Object.keys(l).length,c?f:l}}function Sl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length===0?function(r){return r}:t.length===1?t[0]:t.reduce(function(r,i){return function(){return r(i.apply(void 0,arguments))}})}function k6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return function(){var i=r.apply(void 0,arguments),o=function(){throw new Error(nt(15))},a={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},s=t.map(function(l){return l(a)});return o=Sl.apply(void 0,s)(i.dispatch),Iy(Iy({},i),{},{dispatch:o})}}}function Px(e){var t=function(r){var i=r.dispatch,o=r.getState;return function(a){return function(s){return typeof s=="function"?s(i,o,e):a(s)}}};return t}var Tx=Px();Tx.withExtraArgument=Px;const $y=Tx;var D6=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),L6=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Bd=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},N6=Object.defineProperty,A6=Object.defineProperties,R6=Object.getOwnPropertyDescriptors,Fy=Object.getOwnPropertySymbols,M6=Object.prototype.hasOwnProperty,j6=Object.prototype.propertyIsEnumerable,zy=function(e,t,n){return t in e?N6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ei=function(e,t){for(var n in t||(t={}))M6.call(t,n)&&zy(e,n,t[n]);if(Fy)for(var r=0,i=Fy(t);r<i.length;r++){var n=i[r];j6.call(t,n)&&zy(e,n,t[n])}return e},zc=function(e,t){return A6(e,R6(t))},I6=function(e,t,n){return new Promise(function(r,i){var o=function(l){try{s(n.next(l))}catch(u){i(u)}},a=function(l){try{s(n.throw(l))}catch(u){i(u)}},s=function(l){return l.done?r(l.value):Promise.resolve(l.value).then(o,a)};s((n=n.apply(e,t)).next())})},V6=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sl:Sl.apply(null,arguments)};function $6(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return t===n}var F6=function(e){D6(t,e);function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=e.apply(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.prototype.concat.apply(this,n)},t.prototype.prepend=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length===1&&Array.isArray(n[0])?new(t.bind.apply(t,Bd([void 0],n[0].concat(this)))):new(t.bind.apply(t,Bd([void 0],n.concat(this))))},t}(Array);function z6(e){return typeof e=="boolean"}function B6(){return function(t){return U6(t)}}function U6(e){e===void 0&&(e={});var t=e.thunk,n=t===void 0?!0:t;e.immutableCheck,e.serializableCheck;var r=new F6;return n&&(z6(n)?r.push($y):r.push($y.withExtraArgument(n.extraArgument))),r}var W6=!0;function H6(e){var t=B6(),n=e||{},r=n.reducer,i=r===void 0?void 0:r,o=n.middleware,a=o===void 0?t():o,s=n.devTools,l=s===void 0?!0:s,u=n.preloadedState,c=u===void 0?void 0:u,f=n.enhancers,d=f===void 0?void 0:f,h;if(typeof i=="function")h=i;else if($6(i))h=Ex(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=a;typeof v=="function"&&(v=v(t));var g=k6.apply(void 0,v),S=Sl;l&&(S=V6(Ei({trace:!W6},typeof l=="object"&&l)));var p=[g];Array.isArray(d)?p=Bd([g],d):typeof d=="function"&&(p=d(p));var m=S.apply(void 0,p);return Cx(h,c,m)}function Pi(e,t){function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t){var o=t.apply(void 0,r);if(!o)throw new Error("prepareAction did not return an object");return Ei(Ei({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:r[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(r){return r.type===e},n}var G6="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Y6=function(e){e===void 0&&(e=21);for(var t="",n=e;n--;)t+=G6[Math.random()*64|0];return t},K6=["name","message","stack","code"],Bc=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),By=function(){function e(t,n){this.payload=t,this.meta=n}return e}(),q6=function(e){if(typeof e=="object"&&e!==null){for(var t={},n=0,r=K6;n<r.length;n++){var i=r[n];typeof e[i]=="string"&&(t[i]=e[i])}return t}return{message:String(e)}};(function(){function e(t,n,r){var i=Pi(t+"/fulfilled",function(u,c,f,d){return{payload:u,meta:zc(Ei({},d||{}),{arg:f,requestId:c,requestStatus:"fulfilled"})}}),o=Pi(t+"/pending",function(u,c,f){return{payload:void 0,meta:zc(Ei({},f||{}),{arg:c,requestId:u,requestStatus:"pending"})}}),a=Pi(t+"/rejected",function(u,c,f,d,h){return{payload:d,error:(r&&r.serializeError||q6)(u||"Rejected"),meta:zc(Ei({},h||{}),{arg:f,requestId:c,rejectedWithValue:!!d,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"})}}),s=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function l(u){return function(c,f,d){var h=r!=null&&r.idGenerator?r.idGenerator(u):Y6(),v=new s,g;function S(m){g=m,v.abort()}var p=function(){return I6(this,null,function(){var m,y,w,C,O,P,E;return L6(this,function(A){switch(A.label){case 0:return A.trys.push([0,4,,5]),C=(m=r==null?void 0:r.condition)==null?void 0:m.call(r,u,{getState:f,extra:d}),Q6(C)?[4,C]:[3,2];case 1:C=A.sent(),A.label=2;case 2:if(C===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return O=new Promise(function(I,k){return v.signal.addEventListener("abort",function(){return k({name:"AbortError",message:g||"Aborted"})})}),c(o(h,u,(y=r==null?void 0:r.getPendingMeta)==null?void 0:y.call(r,{requestId:h,arg:u},{getState:f,extra:d}))),[4,Promise.race([O,Promise.resolve(n(u,{dispatch:c,getState:f,extra:d,requestId:h,signal:v.signal,abort:S,rejectWithValue:function(I,k){return new Bc(I,k)},fulfillWithValue:function(I,k){return new By(I,k)}})).then(function(I){if(I instanceof Bc)throw I;return I instanceof By?i(I.payload,h,u,I.meta):i(I,h,u)})])];case 3:return w=A.sent(),[3,5];case 4:return P=A.sent(),w=P instanceof Bc?a(null,h,u,P.payload,P.meta):a(P,h,u),[3,5];case 5:return E=r&&!r.dispatchConditionRejection&&a.match(w)&&w.meta.condition,E||c(w),[2,w]}})})}();return Object.assign(p,{abort:S,requestId:h,arg:u,unwrap:function(){return p.then(X6)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:i,typePrefix:t})}return e.withTypes=function(){return e},e})();function X6(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Q6(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Qh="listenerMiddleware";Pi(Qh+"/add");Pi(Qh+"/removeAll");Pi(Qh+"/remove");var Uy;typeof queueMicrotask=="function"&&queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis);w6();const Z6={active:0},J6=(e=Z6,t)=>{switch(t.type){case"SET_ACTIVE_LINK":return{...e,active:t.payload};default:return e}},eN=()=>localStorage.getItem("savedLanguage")||"TM",tN={title:eN()},nN=(e=tN,t)=>{switch(t.type){case"SET_LANGUAGE":return{...e,title:t.payload};default:return e}},_x={data:[{id:-1,title:"",slug:"",excerpt:"",published_at:"",featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],video:null,powerseo_title:"",powerseo_description:"",powerseo_keywords:""}]},rN=(e=_x,t)=>{switch(t.type){case"SET_NEWS_SCROLL":return{...e,data:t.payload};default:return e}},iN={data:{data:{id:-1,title:"",slug:"",excerpt:"",published_at:"",video:null,featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}}},oN=(e=iN,t)=>{switch(t.type){case"SET_POST":return{...e,data:t.payload};default:return e}},aN={data:[{id:-1,title:"",slug:"",excerpt:"",published_at:"",video:null,featured_images:[{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""},{id:-1,disk_name:"",file_name:"",path:"",extension:""}],content_html:"",categories:[{id:-1,name:""}],powerseo_title:"",powerseo_description:"",powerseo_keywords:""}]},sN=(e=aN,t)=>{switch(t.type){case"SET_FEATURED":return{...e,data:t.payload};default:return e}},lN=(e=_x,t)=>{switch(t.type){case"SET_SEARCH_DATA":return{data:t.payload};default:return e}},uN={value:""},cN=(e=uN,t)=>{switch(t.type){case"SET_SEARCH":return{value:t.payload};default:return e}},fN=Ex({activeLink:J6,language:nN,newsScroll:rN,post:oN,search:cN,searchData:lN,featured:sN}),dN=H6({reducer:fN}),pN=Wc.createRoot(document.getElementById("root"));pN.render(x(B.StrictMode,{children:x(fE,{children:x(A4,{store:dN,children:x(p6,{})})})}));
|