diff --git a/assets/DiscoverVideosPage-426a6f64.css b/assets/DiscoverVideosPage-426a6f64.css new file mode 100644 index 0000000..814deac --- /dev/null +++ b/assets/DiscoverVideosPage-426a6f64.css @@ -0,0 +1 @@ +._wrapper-discover_17did_1{position:relative}._wrapper-discover_show_17did_4:before{position:absolute;content:"";inset:0;background-color:transparent;z-index:2}._wrapper-discover_17did_1 ._select-group_17did_11{display:flex;flex-direction:column;gap:5px;width:95%;border-radius:30px;padding:10px;top:90px;background:var(--bg-body);border:1px solid gray;position:absolute;z-index:10}@media only screen and (min-width: 639px){._wrapper-discover_17did_1 ._select-group_17did_11{margin-top:20px;position:static;display:flex;gap:15px;flex-direction:row;justify-content:flex-end}}._wrapper-discover_17did_1 ._select-group-hidden_17did_34{visibility:hidden;height:0;opacity:0}@media only screen and (min-width: 639px){._wrapper-discover_17did_1 ._select-group-hidden_17did_34{visibility:visible;height:auto;display:flex;opacity:1}}._wrapper-discover_17did_1 ._select-group_17did_11 ._select_17did_11{width:100%;border-radius:20px;height:40px}@media only screen and (min-width: 639px){._wrapper-discover_17did_1 ._select-group_17did_11 ._select_17did_11{width:50%}}@media only screen and (min-width: 1023px){._wrapper-discover_17did_1 ._select-group_17did_11 ._select_17did_11{width:100%}}._select-group_17did_11 ._select_17did_11 .ant-select-selector{border-radius:20px;height:100%;display:flex;align-items:center;background-color:#dabe95;font-size:16px}._select-group_17did_11 ._select_17did_11 .ant-select-selector:hover,._select-group_17did_11 ._select_17did_11 .ant-select-selector:focus-visible,._select-group_17did_11 ._select_17did_11 .ant-select-selector:focus-within{background-color:snow}._select-group_17did_11 ._select_17did_11 .ant-select-selector .ant-select-selection-search{display:flex;align-items:center}._select-group_17did_11 ._select_17did_11 .ant-select-selector .ant-select-selection-search input{font-size:16px}._select-group_17did_11 ._select_17did_11 .ant-select-selector .ant-select-selection-placeholder,._select-group_17did_11 ._select_17did_11 .ant-select-arrow{color:#000}._select-group_17did_11 ._select_17did_11 .ant-select-clear{border-radius:50%}._select-group_17did_11 ._select_17did_11 .ant-select-clear>span{color:#000}.ant-select-dropdown{background-color:var(--main)}.ant-select-item.ant-select-item-option{display:flex;align-items:center;height:40px;color:var(--secondary)}.ant-select-item.ant-select-item-option.ant-select-item-option-active{background-color:var(--secondary);color:var(--main)}.ant-select-selection-placeholder{color:var(--secondary)}._sort-popup_17did_111{width:fit-content;position:relative;display:flex}._sort-popup_17did_111 ._sort-popup_btn_17did_116{position:relative;width:120px;margin-top:20px;background:var(--bg-body);color:var(--secondary);border:1px solid gray}._sort-popup_17did_111 ._sort-popup_btn_17did_116>span{fill:var(--secondary)}._sort-popup_17did_111 ._sort-popup_btn_17did_116>span>svg{width:25%}@media only screen and (min-width: 639px){._sort-popup_17did_111 ._sort-popup_btn_17did_116{display:none}} diff --git a/assets/DiscoverVideosPage-ec13bc9f.js b/assets/DiscoverVideosPage-ec13bc9f.js new file mode 100644 index 0000000..ebb718d --- /dev/null +++ b/assets/DiscoverVideosPage-ec13bc9f.js @@ -0,0 +1,165 @@ +import{r as l,u as nu,_ as ru,a as au,b as qe,g as ou,R as Lt,c as fs,d as iu,e as _,f as Fe,h as X,i as ds,j as vs,k as hs,l as su,m as ht,E as lu}from"./index-6d8ecf0d.js";import{I as uu}from"./index-04924070.js";import{B as cu}from"./index-d98d5432.js";function fu(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o=0)&&(n[a]=e[a]);return n}const du="_select_17did_11",Yt={"wrapper-discover":"_wrapper-discover_17did_1","wrapper-discover_show":"_wrapper-discover_show_17did_4","select-group":"_select-group_17did_11","select-group-hidden":"_select-group-hidden_17did_34",select:du,"sort-popup":"_sort-popup_17did_111","sort-popup_btn":"_sort-popup_btn_17did_116"},vu=e=>{const[t,n]=l.useState({}),{videos:r,error:a,isError:o,isLoading:i,isFetching:s,fetchNextPage:u,hasNextPage:c,dataPages:d,total_results:f,isSuccess:v}=nu().useDiscover(`/discover/${e}`,t,`discover_${e}`,t),[h,m]=l.useState(!1),g=l.useCallback(()=>{m(p=>!p)},[]),y=l.useCallback(p=>{h&&(p.target.classList.contains(Yt["wrapper-discover_show"])||p.code==="Escape")&&m(!1)},[h]);return l.useEffect(()=>{n({})},[e]),l.useEffect(()=>(document.documentElement.addEventListener("keydown",y),()=>{document.documentElement.removeEventListener("keydown",y)}),[h,y]),{videos:r,error:a,isError:o,isLoading:i,isFetching:s,fetchNextPage:u,hasNextPage:c,dataPages:d,total_results:f,isSuccess:v,show:h,setShow:m,setSelectedOption:n,toggleVisibleSelects:g,hiddenSelects:y}};function kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jo(e,t){for(var n=0;n"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 Gr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gu(e,t){if(t&&(qe(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gr(e)}function Cr(e){var t=hu();return function(){var r=qr(e),a;if(t){var o=qr(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return gu(this,a)}}var gs={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return Lt.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(gr(r)):fs.isFragment(r)&&r.props?n=n.concat(gr(r.props.children,t)):n.push(r))}),n}var Ka={},pu=function(t){};function yu(e,t){}function bu(e,t){}function Su(){Ka={}}function ms(e,t,n){!t&&!Ka[n]&&(e(!1,n),Ka[n]=!0)}function Rt(e,t){ms(yu,e,t)}function wu(e,t){ms(bu,e,t)}Rt.preMessage=pu;Rt.resetWarned=Su;Rt.noteOnce=wu;function sa(e,t,n){var r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}function Io(e,t){typeof e=="function"?e(t):qe(e)==="object"&&e&&"current"in e&&(e.current=t)}function la(){for(var e=arguments.length,t=new Array(e),n=0;n0},e.prototype.connect_=function(){!qa||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Pu?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!qa||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,a=Ru.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ys=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Bn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new Lu(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Bn(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new Du(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Ss=typeof WeakMap<"u"?new WeakMap:new ps,ws=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Ou.getInstance(),r=new ku(t,n,this);Ss.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ws.prototype[e]=function(){var t;return(t=Ss.get(this))[e].apply(t,arguments)}});var Hu=function(){return typeof Qr.ResizeObserver<"u"?Qr.ResizeObserver:ws}(),un=new Map;function Vu(e){e.forEach(function(t){var n,r=t.target;(n=un.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var Cs=new Hu(Vu);function ju(e,t){un.has(e)||(un.set(e,new Set),Cs.observe(e)),un.get(e).add(t)}function zu(e,t){un.has(e)&&(un.get(e).delete(t),un.get(e).size||(Cs.unobserve(e),un.delete(e)))}var Wu=function(e){wr(n,e);var t=Cr(n);function n(){return kt(this,n),t.apply(this,arguments)}return Ht(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component),Ga=l.createContext(null);function Bu(e){var t=e.children,n=e.onBatchResize,r=l.useRef(0),a=l.useRef([]),o=l.useContext(Ga),i=l.useCallback(function(s,u,c){r.current+=1;var d=r.current;a.current.push({size:s,element:u,data:c}),Promise.resolve().then(function(){d===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(s,u,c)},[n,o]);return l.createElement(Ga.Provider,{value:i},t)}function Uu(e,t){var n=e.children,r=e.disabled,a=l.useRef(null),o=l.useRef(null),i=l.useContext(Ga),s=typeof n=="function",u=s?n(a):n,c=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&l.isValidElement(u)&&ua(u),f=d?u.ref:null,v=l.useMemo(function(){return la(f,a)},[f,a]),h=function(){return Yr(a.current)||Yr(o.current)};l.useImperativeHandle(t,function(){return h()});var m=l.useRef(e);m.current=e;var g=l.useCallback(function(y){var p=m.current,b=p.onResize,w=p.data,x=y.getBoundingClientRect(),P=x.width,R=x.height,M=y.offsetWidth,$=y.offsetHeight,N=Math.floor(P),I=Math.floor(R);if(c.current.width!==N||c.current.height!==I||c.current.offsetWidth!==M||c.current.offsetHeight!==$){var A={width:N,height:I,offsetWidth:M,offsetHeight:$};c.current=A;var C=M===Math.round(P)?P:M,S=$===Math.round(R)?R:$,E=_(_({},A),{},{offsetWidth:C,offsetHeight:S});i==null||i(E,y,w),b&&Promise.resolve().then(function(){b(E,y)})}},[]);return l.useEffect(function(){var y=h();return y&&!r&&ju(y,g),function(){return zu(y,g)}},[a.current,r]),l.createElement(Wu,{ref:o},d?l.cloneElement(u,{ref:v}):u)}var Ku=l.forwardRef(Uu),qu="rc-observer-key";function Gu(e,t){var n=e.children,r=typeof n=="function"?[n]:gr(n);return r.map(function(a,o){var i=(a==null?void 0:a.key)||"".concat(qu,"-").concat(o);return l.createElement(Ku,Fe({},e,{key:i,ref:o===0?t:void 0}),a)})}var Gn=l.forwardRef(Gu);Gn.Collection=Bu;function Es(e,t){var n=_({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}function Xa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;ti+=1;var r=ti;function a(o){if(o===0)Ps(r),t();else{var i=Ms(function(){a(o-1)});$o.set(r,i)}}return a(n),r};Et.cancel=function(e){var t=$o.get(e);return Ps(t),Rs(t)};function _o(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function tt(e,t){if(e==null)return{};var n=fu(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Os(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(o,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,u=r.has(o);if(Rt(!u,"Warning: There may be circular references"),u)return!1;if(o===i)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(i)||o.length!==i.length)return!1;for(var d=0;d0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):tc}function fa(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function nc(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ts(e){return Array.from((Qa.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Fs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xt())return null;var n=t.csp,r=t.prepend,a=document.createElement("style");a.setAttribute(ri,nc(r)),n!=null&&n.nonce&&(a.nonce=n==null?void 0:n.nonce),a.innerHTML=e;var o=fa(t),i=o.firstChild;if(r){if(r==="queue"){var s=Ts(o).filter(function(u){return["prepend","prependQueue"].includes(u.getAttribute(ri))});if(s.length)return o.insertBefore(a,s[s.length-1].nextSibling),a}o.insertBefore(a,i)}else o.appendChild(a);return a}function $s(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=fa(t);return Ts(n).find(function(r){return r.getAttribute(Is(t))===e})}function Jr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$s(e,t);if(n){var r=fa(t);r.removeChild(n)}}function rc(e,t){var n=Qa.get(e);if(!n||!ec(document,n)){var r=Fs("",t),a=r.parentNode;Qa.set(e,a),e.removeChild(r)}}function Un(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=fa(n);rc(r,n);var a=$s(t,n);if(a){var o,i;if((o=n.csp)!==null&&o!==void 0&&o.nonce&&a.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)){var s;a.nonce=(s=n.csp)===null||s===void 0?void 0:s.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Fs(e,n);return u.setAttribute(Is(n),t),u}function ea(e){var t="";return Object.keys(e).forEach(function(n){var r=e[n];t+=n,r&&qe(r)==="object"?t+=ea(r):t+=r}),t}function ac(e,t){return _o("".concat(t,"_").concat(ea(e)))}var cr="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),_s="_bAmBoO_";function oc(e,t,n){if(xt()){var r,a;Un(e,cr);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",t==null||t(o),document.body.appendChild(o);var i=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(_s);return(a=o.parentNode)===null||a===void 0||a.removeChild(o),Jr(cr),i}return!1}var xa=void 0;function ic(){return xa===void 0&&(xa=oc("@layer ".concat(cr," { .").concat(cr,' { content: "').concat(_s,'"!important; } }'),function(e){e.className=cr})),xa}function Ns(e){if(Array.isArray(e))return e}function sc(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,i,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(d){c=!0,a=d}finally{try{if(!u&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}function As(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(e,t){return Ns(e)||sc(e,t)||Fo(e,t)||As()}var ai=xt()?l.useLayoutEffect:l.useEffect,et=function(t,n){var r=l.useRef(!0);ai(function(){return t(r.current)},n),ai(function(){return r.current=!1,function(){r.current=!0}},[])},oi=function(t,n){et(function(r){if(!r)return t()},n)},lc=_({},ds),ii=lc.useInsertionEffect,uc=function(t,n,r){l.useMemo(t,r),et(function(){return n(!0)},r)},cc=ii?function(e,t,n){return ii(function(){return e(),t()},n)}:uc;const fc=cc;function Ls(e,t,n,r,a){var o=l.useContext(No),i=o.cache,s=[e].concat(ie(t)),u=s.join("_"),c=function(v){i.update(s,function(h){var m=h||[],g=D(m,2),y=g[0],p=y===void 0?0:y,b=g[1],w=b,x=w||n(),P=[p,x];return v?v(P):P})};l.useMemo(function(){return c()},[u]);var d=i.get(s)[1];return fc(function(){a==null||a(d)},function(f){return c(function(v){var h=D(v,2),m=h[0],g=h[1];return f&&m===0&&(a==null||a(d)),[m+1,g]}),function(){i.update(s,function(v){var h=v||[],m=D(h,2),g=m[0],y=g===void 0?0:g,p=m[1],b=y-1;return b===0?(r==null||r(p,!1),null):[y-1,p]})}},[u]),d}var dc={},vc="css",mn=new Map;function hc(e){mn.set(e,(mn.get(e)||0)+1)}function gc(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ya,'="').concat(e,'"]'));n.forEach(function(r){if(r[Hn]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var mc=0;function pc(e,t){mn.set(e,(mn.get(e)||0)-1);var n=Array.from(mn.keys()),r=n.filter(function(a){var o=mn.get(a)||0;return o<=0});n.length-r.length>mc&&r.forEach(function(a){gc(a,t),mn.delete(a)})}var yc=function(t,n,r,a){var o=r.getDerivativeToken(t),i=_(_({},o),n);return a&&(i=a(i)),i};function bc(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=l.useContext(No),a=r.cache.instanceId,o=n.salt,i=o===void 0?"":o,s=n.override,u=s===void 0?dc:s,c=n.formatToken,d=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat(ie(t)))},[t]),f=l.useMemo(function(){return ea(d)},[d]),v=l.useMemo(function(){return ea(u)},[u]),h=Ls("token",[i,e.id,f,v],function(){var m=yc(d,u,e,c),g=ac(m,i);m._tokenKey=g,hc(g);var y="".concat(vc,"-").concat(_o(g));return m._hashId=y,[m,y]},function(m){pc(m[0]._tokenKey,a)});return h}var Sc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ds="comm",ks="rule",Hs="decl",wc="@import",Cc="@keyframes",Ec="@layer",xc=Math.abs,Ao=String.fromCharCode;function Vs(e){return e.trim()}function zr(e,t,n){return e.replace(t,n)}function Mc(e,t){return e.indexOf(t)}function mr(e,t){return e.charCodeAt(t)|0}function pr(e,t,n){return e.slice(t,n)}function ln(e){return e.length}function js(e){return e.length}function Fr(e,t){return t.push(e),e}var da=1,Kn=1,zs=0,Dt=0,it=0,Xn="";function Lo(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:da,column:Kn,length:i,return:""}}function Rc(){return it}function Pc(){return it=Dt>0?mr(Xn,--Dt):0,Kn--,it===10&&(Kn=1,da--),it}function Kt(){return it=Dt2||Za(it)>3?"":" "}function Fc(e,t){for(;--t&&Kt()&&!(it<48||it>102||it>57&&it<65||it>70&&it<97););return va(e,Wr()+(t<6&&wn()==32&&Kt()==32))}function Ja(e){for(;Kt();)switch(it){case e:return Dt;case 34:case 39:e!==34&&e!==39&&Ja(it);break;case 40:e===41&&Ja(e);break;case 92:Kt();break}return Dt}function $c(e,t){for(;Kt()&&e+it!==47+10;)if(e+it===42+42&&wn()===47)break;return"/*"+va(t,Dt-1)+"*"+Ao(e===47?e:Kt())}function _c(e){for(;!Za(wn());)Kt();return va(e,Dt)}function Nc(e){return Ic(Br("",null,null,null,[""],e=Oc(e),0,[0],e))}function Br(e,t,n,r,a,o,i,s,u){for(var c=0,d=0,f=i,v=0,h=0,m=0,g=1,y=1,p=1,b=0,w="",x=a,P=o,R=r,M=w;y;)switch(m=b,b=Kt()){case 40:if(m!=108&&mr(M,f-1)==58){Mc(M+=zr(Ma(b),"&","&\f"),"&\f")!=-1&&(p=-1);break}case 34:case 39:case 91:M+=Ma(b);break;case 9:case 10:case 13:case 32:M+=Tc(m);break;case 92:M+=Fc(Wr()-1,7);continue;case 47:switch(wn()){case 42:case 47:Fr(Ac($c(Kt(),Wr()),t,n),u);break;default:M+="/"}break;case 123*g:s[c++]=ln(M)*p;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:p==-1&&(M=zr(M,/\f/g,"")),h>0&&ln(M)-f&&Fr(h>32?li(M+";",r,n,f-1):li(zr(M," ","")+";",r,n,f-2),u);break;case 59:M+=";";default:if(Fr(R=si(M,t,n,c,d,a,s,w,x=[],P=[],f),o),b===123)if(d===0)Br(M,t,R,R,x,o,f,s,P);else switch(v===99&&mr(M,3)===110?100:v){case 100:case 108:case 109:case 115:Br(e,R,R,r&&Fr(si(e,R,R,0,0,a,s,w,a,x=[],f),P),a,P,f,s,r?x:P);break;default:Br(M,R,R,R,[""],P,0,s,P)}}c=d=h=0,g=p=1,w=M="",f=i;break;case 58:f=1+ln(M),h=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&Pc()==125)continue}switch(M+=Ao(b),b*g){case 38:p=d>0?1:(M+="\f",-1);break;case 44:s[c++]=(ln(M)-1)*p,p=1;break;case 64:wn()===45&&(M+=Ma(Kt())),v=wn(),d=f=ln(w=M+=_c(Wr())),b++;break;case 45:m===45&&ln(M)==2&&(g=0)}}return o}function si(e,t,n,r,a,o,i,s,u,c,d){for(var f=a-1,v=a===0?o:[""],h=js(v),m=0,g=0,y=0;m0?v[p]+" "+b:zr(b,/&\f/g,v[p])))&&(u[y++]=w);return Lo(e,t,n,a===0?ks:s,u,c,d)}function Ac(e,t,n){return Lo(e,t,n,Ds,Ao(Rc()),pr(e,2,-2),0)}function li(e,t,n,r){return Lo(e,t,n,Hs,pr(e,0,r),pr(e,r+1,-1),r)}function eo(e,t){for(var n="",r=js(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,o=r.injectHash,i=r.parentSelectors,s=n.hashId,u=n.layer;n.path;var c=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var v="",h={};function m(w){var x=w.getName(s);if(!h[x]){var P=e(w.style,n,{root:!1,parentSelectors:i}),R=D(P,1),M=R[0];h[x]="@keyframes ".concat(w.getName(s)).concat(M)}}function g(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return w.forEach(function(P){Array.isArray(P)?g(P,x):P&&x.push(P)}),x}var y=g(Array.isArray(t)?t:[t]);if(y.forEach(function(w){var x=typeof w=="string"&&!a?{}:w;if(typeof x=="string")v+="".concat(x,` +`);else if(x._keyframe)m(x);else{var P=f.reduce(function(R,M){var $;return(M==null||($=M.visit)===null||$===void 0?void 0:$.call(M,R))||R},x);Object.keys(P).forEach(function(R){var M=P[R];if(qe(M)==="object"&&M&&(R!=="animationName"||!M._keyframe)&&!jc(M)){var $=!1,N=R.trim(),I=!1;(a||o)&&s?N.startsWith("@")?$=!0:N=zc(R,s,c):a&&!s&&(N==="&"||N==="")&&(N="",I=!0);var A=e(M,n,{root:I,injectHash:$,parentSelectors:[].concat(ie(i),[N])}),C=D(A,2),S=C[0],E=C[1];h=_(_({},h),E),v+="".concat(N).concat(S)}else{let F=function(L,V){var q=L.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),J=V;!Sc[L]&&typeof J=="number"&&J!==0&&(J="".concat(J,"px")),L==="animationName"&&V!==null&&V!==void 0&&V._keyframe&&(m(V),J=V.getName(s)),v+="".concat(q,":").concat(J,";")};var T,O=(T=M==null?void 0:M.value)!==null&&T!==void 0?T:M;qe(M)==="object"&&M!==null&&M!==void 0&&M[Us]&&Array.isArray(O)?O.forEach(function(L){F(R,L)}):F(R,O)}})}}),!a)v="{".concat(v,"}");else if(u&&ic()){var p=u.split(","),b=p[p.length-1].trim();v="@layer ".concat(b," {").concat(v,"}"),p.length>1&&(v="@layer ".concat(u,"{%%%:%}").concat(v))}return[v,h]};function Bc(e,t){return _o("".concat(e.join("%")).concat(t))}function Uc(){return null}function to(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,i=e.nonce,s=l.useContext(No),u=s.autoClear;s.mock;var c=s.defaultCache,d=s.hashPriority,f=s.container,v=s.ssrInline,h=s.transformers,m=s.linters,g=s.cache,y=n._tokenKey,p=[y].concat(ie(r)),b=ci,w=Ls("style",p,function(){var $=p.join("|");if(kc($)){var N=Hc($),I=D(N,2),A=I[0],C=I[1];if(A)return[A,y,C,{}]}var S=t(),E=Wc(S,{hashId:a,hashPriority:d,layer:o,path:r.join("-"),transformers:h,linters:m}),T=D(E,2),O=T[0],F=T[1],L=fi(O),V=Bc(p,L);return[L,y,V,F]},function($,N){var I=D($,3),A=I[2];(N||u)&&ci&&Jr(A,{mark:Sn})},function($){var N=D($,4),I=N[0];N[1];var A=N[2],C=N[3];if(b&&I!==Ws){var S={mark:Sn,prepend:"queue",attachTo:f},E=typeof i=="function"?i():i;E&&(S.csp={nonce:E});var T=Un(I,A,S);T[Hn]=g.instanceId,T.setAttribute(Ya,y),Object.keys(C).forEach(function(O){Un(fi(C[O]),"_effect-".concat(O),S)})}}),x=D(w,3),P=x[0],R=x[1],M=x[2];return function($){var N;if(!v||b||!c)N=l.createElement(Uc,null);else{var I;N=l.createElement("style",Fe({},(I={},X(I,Ya,R),X(I,Sn,M),I),{dangerouslySetInnerHTML:{__html:P}}))}return l.createElement(l.Fragment,null,N,$)}}var St=function(){function e(t,n){kt(this,e),X(this,"name",void 0),X(this,"style",void 0),X(this,"_keyframe",!0),this.name=t,this.style=n}return Ht(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function Kc(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return n.forEach(function(s){if(!i)i=void 0;else{var u,c;i=(u=i)===null||u===void 0||(c=u.map)===null||c===void 0?void 0:c.get(s)}}),(r=i)!==null&&r!==void 0&&r.value&&o&&(i.value[1]=this.cacheCallTimes++),(a=i)===null||a===void 0?void 0:a.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,d){var f=D(c,2),v=f[1];return a.internalGet(d)[1]0,void 0),di+=1}return Ht(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),Ra=new Do;function Ks(e){var t=Array.isArray(e)?e:[e];return Ra.has(t)||Ra.set(t,new qc(t)),Ra.get(t)}function $n(e){return e.notSplit=!0,e}$n(["borderTop","borderBottom"]),$n(["borderTop"]),$n(["borderBottom"]),$n(["borderLeft","borderRight"]),$n(["borderLeft"]),$n(["borderRight"]);var Gc=l.createContext({});const ko=Gc;function qs(e){return Ns(e)||xs(e)||Fo(e)||As()}function Ut(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ut(e,t.slice(0,-1))?e:Gs(e,t,n,r)}function Xc(e){return qe(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function vi(e){return Array.isArray(e)?[]:{}}var Yc=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Vn(){for(var e=arguments.length,t=new Array(e),n=0;n{const n=l.useContext(Ho),r=l.useMemo(()=>{var o;const i=t||yr[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,n]),a=l.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?yr.locale:o},[n]);return[r,a]},of=af,sf="internalMark",lf=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>(gi(t&&t.Modal),()=>{gi()}),[t]);const a=l.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return l.createElement(Ho.Provider,{value:a},n)},uf=lf,cf="5.7.3";function mt(e,t){ff(e)&&(e="100%");var n=df(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function $r(e){return Math.min(1,Math.max(0,e))}function ff(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function df(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ys(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function _r(e){return e<=1?"".concat(Number(e)*100,"%"):e}function pn(e){return e.length===1?"0"+e:String(e)}function vf(e,t,n){return{r:mt(e,255)*255,g:mt(t,255)*255,b:mt(n,255)*255}}function mi(e,t,n){e=mt(e,255),t=mt(t,255),n=mt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=0,s=(r+a)/2;if(r===a)i=0,o=0;else{var u=r-a;switch(i=s>.5?u/(2-r-a):u/(r+a),r){case e:o=(t-n)/u+(t1&&(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 hf(e,t,n){var r,a,o;if(e=mt(e,360),t=mt(t,100),n=mt(n,100),t===0)a=n,o=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,s=2*n-i;r=Oa(s,i,e+1/3),a=Oa(s,i,e),o=Oa(s,i,e-1/3)}return{r:r*255,g:a*255,b:o*255}}function no(e,t,n){e=mt(e,255),t=mt(t,255),n=mt(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),o=0,i=r,s=r-a,u=r===0?0:s/r;if(r===a)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var ao={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function kn(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=wf(e)),typeof e=="object"&&(nn(e.r)&&nn(e.g)&&nn(e.b)?(t=vf(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):nn(e.h)&&nn(e.s)&&nn(e.v)?(r=_r(e.s),a=_r(e.v),t=gf(e.h,r,a),i=!0,s="hsv"):nn(e.h)&&nn(e.s)&&nn(e.l)&&(r=_r(e.s),o=_r(e.l),t=hf(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ys(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var bf="[-\\+]?\\d+%?",Sf="[-\\+]?\\d*\\.\\d+%?",cn="(?:".concat(Sf,")|(?:").concat(bf,")"),Ia="[\\s|\\(]+(".concat(cn,")[,|\\s]+(").concat(cn,")[,|\\s]+(").concat(cn,")\\s*\\)?"),Ta="[\\s|\\(]+(".concat(cn,")[,|\\s]+(").concat(cn,")[,|\\s]+(").concat(cn,")[,|\\s]+(").concat(cn,")\\s*\\)?"),zt={CSS_UNIT:new RegExp(cn),rgb:new RegExp("rgb"+Ia),rgba:new RegExp("rgba"+Ta),hsl:new RegExp("hsl"+Ia),hsla:new RegExp("hsla"+Ta),hsv:new RegExp("hsv"+Ia),hsva:new RegExp("hsva"+Ta),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function wf(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ao[e])e=ao[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=zt.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=zt.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=zt.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=zt.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=zt.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=zt.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=zt.hex8.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),a:pi(n[4]),format:t?"name":"hex8"}:(n=zt.hex6.exec(e),n?{r:Ft(n[1]),g:Ft(n[2]),b:Ft(n[3]),format:t?"name":"hex"}:(n=zt.hex4.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),a:pi(n[4]+n[4]),format:t?"name":"hex8"}:(n=zt.hex3.exec(e),n?{r:Ft(n[1]+n[1]),g:Ft(n[2]+n[2]),b:Ft(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function nn(e){return!!zt.CSS_UNIT.exec(String(e))}var gt=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=yf(t)),this.originalInput=t;var a=kn(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,a,o=t.r/255,i=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Ys(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=no(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=no(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=mi(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=mi(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),ro(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),mf(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(mt(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(mt(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+ro(this.r,this.g,this.b,!1),n=0,r=Object.entries(ao);n=0,o=!n&&a&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=$r(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=$r(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=$r(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=$r(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,o=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,o=n.v,i=[],s=1/t;t--;)i.push(new e({h:r,s:a,v:o})),o=(o+s)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],o=360/t,i=1;i=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Nr*t:Math.round(e.h)+Nr*t:r=n?Math.round(e.h)+Nr*t:Math.round(e.h)-Nr*t,r<0?r+=360:r>=360&&(r-=360),r}function wi(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-yi*t:t===Zs?r=e.s+yi:r=e.s+Cf*t,r>1&&(r=1),n&&t===Qs&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Ci(e,t,n){var r;return n?r=e.v+Ef*t:r=e.v-xf*t,r>1&&(r=1),Number(r.toFixed(2))}function En(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=kn(e),a=Qs;a>0;a-=1){var o=bi(r),i=Ar(kn({h:Si(o,a,!0),s:wi(o,a,!0),v:Ci(o,a,!0)}));n.push(i)}n.push(Ar(r));for(var s=1;s<=Zs;s+=1){var u=bi(r),c=Ar(kn({h:Si(u,s),s:wi(u,s),v:Ci(u,s)}));n.push(c)}return t.theme==="dark"?Mf.map(function(d){var f=d.index,v=d.opacity,h=Ar(Rf(kn(t.backgroundColor||"#141414"),kn(n[f]),v*100));return h}):n}var Fa={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ur={},$a={};Object.keys(Fa).forEach(function(e){Ur[e]=En(Fa[e]),Ur[e].primary=Ur[e][5],$a[e]=En(Fa[e],{theme:"dark",backgroundColor:"#141414"}),$a[e].primary=$a[e][5]});var Pf=Ur.blue;const Of=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},If=Of;function Tf(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Js={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},Ff=Object.assign(Object.assign({},Js),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),ha=Ff;function $f(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:i,colorInfo:s,colorPrimary:u,colorBgBase:c,colorTextBase:d}=e,f=n(u),v=n(a),h=n(o),m=n(i),g=n(s),y=r(c,d),p=e.colorLink||e.colorInfo,b=n(p);return Object.assign(Object.assign({},y),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new gt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const _f=e=>{let t=e,n=e,r=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}},Nf=_f;function Af(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:a+1},Nf(r))}const rn=(e,t)=>new gt(e).setAlpha(t).toRgbString(),or=(e,t)=>new gt(e).darken(t).toHexString(),Lf=e=>{const t=En(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},Df=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:rn(r,.88),colorTextSecondary:rn(r,.65),colorTextTertiary:rn(r,.45),colorTextQuaternary:rn(r,.25),colorFill:rn(r,.15),colorFillSecondary:rn(r,.06),colorFillTertiary:rn(r,.04),colorFillQuaternary:rn(r,.02),colorBgLayout:or(n,4),colorBgContainer:or(n,0),colorBgElevated:or(n,0),colorBgSpotlight:rn(r,.85),colorBorder:or(n,15),colorBorderSecondary:or(n,6)}};function kf(e){const t=new Array(10).fill(null).map((n,r)=>{const a=r-1,o=e*Math.pow(2.71828,a/5),i=r>1?Math.floor(o):Math.ceil(o);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const Hf=e=>{const t=kf(e),n=t.map(a=>a.size),r=t.map(a=>a.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},Vf=Hf;function jf(e){const t=Object.keys(Js).map(n=>{const r=En(e[n]);return new Array(10).fill(1).reduce((a,o,i)=>(a[`${n}-${i+1}`]=r[i],a[`${n}${i+1}`]=r[i],a),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),$f(e,{generateColorPalettes:Lf,generateNeutralColorPalettes:Df})),Vf(e.fontSize)),Tf(e)),If(e)),Af(e))}const zf=Ks(jf),el={token:ha,hashed:!0},tl=Lt.createContext(el);function _a(e){return e>=0&&e<=255}function Lr(e,t){const{r:n,g:r,b:a,a:o}=new gt(e).toRgb();if(o<1)return e;const{r:i,g:s,b:u}=new gt(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((n-i*(1-c))/c),f=Math.round((r-s*(1-c))/c),v=Math.round((a-u*(1-c))/c);if(_a(d)&&_a(f)&&_a(v))return new gt({r:d,g:f,b:v,a:Math.round(c*100)/100}).toRgbString()}return new gt({r:n,g:r,b:a,a:1}).toRgbString()}var Wf=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 a=0,r=Object.getOwnPropertySymbols(e);a{delete r[v]});const a=Object.assign(Object.assign({},n),r),o=480,i=576,s=768,u=992,c=1200,d=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Lr(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Lr(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Lr(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*4,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Lr(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:o,screenXSMin:o,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:u-1,screenLG:u,screenLGMin:u,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new gt("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new gt("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new gt("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}function Er(){const{token:e,hashed:t,theme:n,components:r}=Lt.useContext(tl),a=`${cf}-${t||""}`,o=n||zf,[i,s]=bc(o,[ha,e],{salt:a,override:Object.assign({override:e},r),formatToken:Bf});return[o,i,t?s:""]}function Xt(e){var t=l.useRef();t.current=e;var n=l.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),i=0;it||(e?`ant-${e}`:"ant"),fn=l.createContext({getPrefixCls:Uf,iconPrefixCls:nl}),oo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Vo=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),jo=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Kf=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),qf=(e,t)=>{const{fontFamily:n,fontSize:r}=e,a=`[class^="${t}"], [class*=" ${t}"]`;return{[a]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[a]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},rl=typeof CSSINJS_STATISTIC<"u";let io=!0;function qt(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(a).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>a[i]})})}),io=!0,r}function Gf(){}function Xf(e){let t,n=e,r=Gf;return rl&&(t=new Set,n=new Proxy(e,{get(a,o){return io&&t.add(o),a[o]}}),r=(a,o)=>{Array.from(t)}),{token:n,keys:t,flush:r}}function al(e,t,n,r){return a=>{const[o,i,s]=Er(),{getPrefixCls:u,iconPrefixCls:c,csp:d}=l.useContext(fn),f=u(),v={theme:o,token:i,hashId:s,nonce:()=>d==null?void 0:d.nonce};return to(Object.assign(Object.assign({},v),{path:["Shared",f]}),()=>[{"&":Kf(i)}]),[to(Object.assign(Object.assign({},v),{path:[e,a,c]}),()=>{const{token:h,flush:m}=Xf(i),g=Object.assign({},i[e]);if(r!=null&&r.deprecatedTokens){const{deprecatedTokens:P}=r;P.forEach(R=>{let[M,$]=R;var N;(g!=null&&g[M]||g!=null&&g[$])&&((N=g[$])!==null&&N!==void 0||(g[$]=g==null?void 0:g[M]))})}const y=typeof n=="function"?n(qt(h,g??{})):n,p=Object.assign(Object.assign({},y),g),b=`.${a}`,w=qt(h,{componentCls:b,prefixCls:a,iconCls:`.${c}`,antCls:`.${f}`},p),x=t(w,{hashId:s,prefixCls:a,rootPrefixCls:f,iconPrefixCls:c,overrideComponentToken:g});return m(e,p),[(r==null?void 0:r.resetStyle)===!1?null:qf(i,a),x]}),s]}}const Yf=`-ant-${Date.now()}-${Math.random()}`;function Qf(e,t){const n={},r=(i,s)=>{let u=i.clone();return u=(s==null?void 0:s(u))||u,u.toRgbString()},a=(i,s)=>{const u=new gt(i),c=En(u.toRgbString());n[`${s}-color`]=r(u),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=u.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const i=new gt(t.primaryColor),s=En(i.toRgbString());s.forEach((c,d)=>{n[`primary-${d+1}`]=c}),n["primary-color-deprecated-l-35"]=r(i,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(i,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(i,c=>c.setAlpha(c.getAlpha()*.12));const u=new gt(s[0]);n["primary-color-active-deprecated-f-30"]=r(u,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(u,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(` +`)} + } + `.trim()}function Zf(e,t){const n=Qf(e,t);xt()&&Un(n,`${Yf}-dynamic-theme`)}const so=l.createContext(!1),Jf=e=>{let{children:t,disabled:n}=e;const r=l.useContext(so);return l.createElement(so.Provider,{value:n??r},t)},ol=so,lo=l.createContext(void 0),ed=e=>{let{children:t,size:n}=e;const r=l.useContext(lo);return l.createElement(lo.Provider,{value:n||r},t)},ga=lo;function td(){const e=l.useContext(ol),t=l.useContext(ga);return{componentDisabled:e,componentSize:t}}function nd(e,t){const n=e||{},r=n.inherit===!1||!t?el:t;return sa(()=>{if(!e)return t;const o=Object.assign({},r.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i])}),Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:o})},[n,r],(o,i)=>o.some((s,u)=>{const c=i[u];return!Os(s,c,!0)}))}var rd=["children"],il=l.createContext({});function ad(e){var t=e.children,n=tt(e,rd);return l.createElement(il.Provider,{value:n},t)}var od=function(e){wr(n,e);var t=Cr(n);function n(){return kt(this,n),t.apply(this,arguments)}return Ht(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component),gn="none",Dr="appear",kr="enter",Hr="leave",Ei="none",Bt="prepare",jn="start",zn="active",zo="end",sl="prepared";function xi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function id(e,t){var n={animationend:xi("Animation","AnimationEnd"),transitionend:xi("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var sd=id(xt(),typeof window<"u"?window:{}),ll={};if(xt()){var ld=document.createElement("div");ll=ld.style}var Vr={};function ul(e){if(Vr[e])return Vr[e];var t=sd[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Et(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return l.useEffect(function(){return function(){t()}},[]),[n,t]};var fd=[Bt,jn,zn,zo],dd=[Bt,sl],hl=!1,vd=!0;function gl(e){return e===zn||e===zo}const hd=function(e,t,n){var r=Wn(Ei),a=D(r,2),o=a[0],i=a[1],s=cd(),u=D(s,2),c=u[0],d=u[1];function f(){i(Bt,!0)}var v=t?dd:fd;return vl(function(){if(o!==Ei&&o!==zo){var h=v.indexOf(o),m=v[h+1],g=n(o);g===hl?i(m,!0):m&&c(function(y){function p(){y.isCanceled()||i(m,!0)}g===!0?p():Promise.resolve(g).then(p)})}},[e,o]),l.useEffect(function(){return function(){d()}},[]),[f,o]};function gd(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,i=r.motionAppear,s=i===void 0?!0:i,u=r.motionLeave,c=u===void 0?!0:u,d=r.motionDeadline,f=r.motionLeaveImmediately,v=r.onAppearPrepare,h=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,y=r.onEnterStart,p=r.onLeaveStart,b=r.onAppearActive,w=r.onEnterActive,x=r.onLeaveActive,P=r.onAppearEnd,R=r.onEnterEnd,M=r.onLeaveEnd,$=r.onVisibleChanged,N=Wn(),I=D(N,2),A=I[0],C=I[1],S=Wn(gn),E=D(S,2),T=E[0],O=E[1],F=Wn(null),L=D(F,2),V=L[0],q=L[1],J=l.useRef(!1),K=l.useRef(null);function ee(){return n()}var ne=l.useRef(!1);function pe(){O(gn,!0),q(null,!0)}function xe(ge){var te=ee();if(!(ge&&!ge.deadline&&ge.target!==te)){var se=ne.current,Oe;T===Dr&&se?Oe=P==null?void 0:P(te,ge):T===kr&&se?Oe=R==null?void 0:R(te,ge):T===Hr&&se&&(Oe=M==null?void 0:M(te,ge)),T!==gn&&se&&Oe!==!1&&pe()}}var Z=ud(xe),z=D(Z,1),G=z[0],he=function(te){var se,Oe,Ve;switch(te){case Dr:return se={},X(se,Bt,v),X(se,jn,g),X(se,zn,b),se;case kr:return Oe={},X(Oe,Bt,h),X(Oe,jn,y),X(Oe,zn,w),Oe;case Hr:return Ve={},X(Ve,Bt,m),X(Ve,jn,p),X(Ve,zn,x),Ve;default:return{}}},le=l.useMemo(function(){return he(T)},[T]),Y=hd(T,!e,function(ge){if(ge===Bt){var te=le[Bt];return te?te(ee()):hl}if(de in le){var se;q(((se=le[de])===null||se===void 0?void 0:se.call(le,ee(),null))||null)}return de===zn&&(G(ee()),d>0&&(clearTimeout(K.current),K.current=setTimeout(function(){xe({deadline:!0})},d))),de===sl&&pe(),vd}),re=D(Y,2),W=re[0],de=re[1],ve=gl(de);ne.current=ve,vl(function(){C(t);var ge=J.current;J.current=!0;var te;!ge&&t&&s&&(te=Dr),ge&&t&&o&&(te=kr),(ge&&!t&&c||!ge&&f&&!t&&c)&&(te=Hr);var se=he(te);te&&(e||se[Bt])?(O(te),W()):O(gn)},[t]),l.useEffect(function(){(T===Dr&&!s||T===kr&&!o||T===Hr&&!c)&&O(gn)},[s,o,c]),l.useEffect(function(){return function(){J.current=!1,clearTimeout(K.current)}},[]);var Re=l.useRef(!1);l.useEffect(function(){A&&(Re.current=!0),A!==void 0&&T===gn&&((Re.current||A)&&($==null||$(A)),Re.current=!0)},[A,T]);var ye=V;return le[Bt]&&de===jn&&(ye=_({transition:"none"},ye)),[T,de,ye,A??t]}function md(e){var t=e;qe(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=l.forwardRef(function(a,o){var i=a.visible,s=i===void 0?!0:i,u=a.removeOnLeave,c=u===void 0?!0:u,d=a.forceRender,f=a.children,v=a.motionName,h=a.leavedClassName,m=a.eventProps,g=l.useContext(il),y=g.motion,p=n(a,y),b=l.useRef(),w=l.useRef();function x(){try{return b.current instanceof HTMLElement?b.current:Yr(w.current)}catch{return null}}var P=gd(p,s,x,a),R=D(P,4),M=R[0],$=R[1],N=R[2],I=R[3],A=l.useRef(I);I&&(A.current=!0);var C=l.useCallback(function(q){b.current=q,Io(o,q)},[o]),S,E=_(_({},m),{},{visible:s});if(!f)S=null;else if(M===gn)I?S=f(_({},E),C):!c&&A.current&&h?S=f(_(_({},E),{},{className:h}),C):d||!c&&!h?S=f(_(_({},E),{},{style:{display:"none"}}),C):S=null;else{var T,O;$===Bt?O="prepare":gl($)?O="active":$===jn&&(O="start");var F=Pi(v,"".concat(M,"-").concat(O));S=f(_(_({},E),{},{className:He(Pi(v,M),(T={},X(T,F,F&&O),X(T,v,typeof v=="string"),T)),style:N}),C)}if(l.isValidElement(S)&&ua(S)){var L=S,V=L.ref;V||(S=l.cloneElement(S,{ref:C}))}return l.createElement(od,{ref:w},S)});return r.displayName="CSSMotion",r}const Wo=md(dl);var uo="add",co="keep",fo="remove",Aa="removed";function pd(e){var t;return e&&qe(e)==="object"&&"key"in e?t=e:t={key:e},_(_({},t),{},{key:String(t.key)})}function vo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(pd)}function yd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=vo(e),i=vo(t);o.forEach(function(c){for(var d=!1,f=r;f1});return u.forEach(function(c){n=n.filter(function(d){var f=d.key,v=d.status;return f!==c||v!==fo}),n.forEach(function(d){d.key===c&&(d.status=co)})}),n}var bd=["component","children","onVisibleChanged","onAllRemoved"],Sd=["status"],wd=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Cd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wo,n=function(r){wr(o,r);var a=Cr(o);function o(){var i;kt(this,o);for(var s=arguments.length,u=new Array(s),c=0;c{const[n,r]=Er();return to({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},jo()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Md=xd;var Rd=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 a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const Fd=e=>{let{prefixCls:t,iconPrefixCls:n,theme:r}=e;t!==void 0&&(ml=t),r&&Td(r)&&Zf(Id(),r)},$d=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:i,locale:s,componentSize:u,direction:c,space:d,virtual:f,dropdownMatchSelectWidth:v,popupMatchSelectWidth:h,popupOverflow:m,legacyLocale:g,parentContext:y,iconPrefixCls:p,theme:b,componentDisabled:w,segmented:x,statistic:P,spin:R,calendar:M,carousel:$,cascader:N,collapse:I,typography:A,checkbox:C,descriptions:S,divider:E,drawer:T,skeleton:O,steps:F,image:L,layout:V,list:q,mentions:J,modal:K,progress:ee,result:ne,slider:pe,breadcrumb:xe,menu:Z,pagination:z,input:G,empty:he,badge:le,radio:Y,rate:re,switch:W,transfer:de,avatar:ve,message:Re,tag:ye,table:ge,card:te,tabs:se,timeline:Oe,timePicker:Ve,upload:_e,notification:Se,tree:je,colorPicker:Ge,datePicker:nt}=e,Ne=l.useCallback((Ce,me)=>{const{prefixCls:ze}=e;if(me)return me;const We=ze||y.getPrefixCls("");return Ce?`${We}-${Ce}`:We},[y.getPrefixCls,e.prefixCls]),Ie=p||y.iconPrefixCls||nl,Ae=Ie!==y.iconPrefixCls,vt=n||y.csp,Be=Md(Ie,vt),B=nd(b,y.theme),Q={csp:vt,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:s||g,direction:c,space:d,virtual:f,popupMatchSelectWidth:h??v,popupOverflow:m,getPrefixCls:Ne,iconPrefixCls:Ie,theme:B,segmented:x,statistic:P,spin:R,calendar:M,carousel:$,cascader:N,collapse:I,typography:A,checkbox:C,descriptions:S,divider:E,drawer:T,skeleton:O,steps:F,image:L,input:G,layout:V,list:q,mentions:J,modal:K,progress:ee,result:ne,slider:pe,breadcrumb:xe,menu:Z,pagination:z,empty:he,badge:le,radio:Y,rate:re,switch:W,transfer:de,avatar:ve,message:Re,tag:ye,table:ge,card:te,tabs:se,timeline:Oe,timePicker:Ve,upload:_e,notification:Se,tree:je,colorPicker:Ge,datePicker:nt},Le=Object.assign({},y);Object.keys(Q).forEach(Ce=>{Q[Ce]!==void 0&&(Le[Ce]=Q[Ce])}),Pd.forEach(Ce=>{const me=e[Ce];me&&(Le[Ce]=me)});const $e=sa(()=>Le,Le,(Ce,me)=>{const ze=Object.keys(Ce),We=Object.keys(me);return ze.length!==We.length||ze.some(st=>Ce[st]!==me[st])}),De=l.useMemo(()=>({prefixCls:Ie,csp:vt}),[Ie,vt]);let ue=Ae?Be(t):t;const Me=l.useMemo(()=>{var Ce,me,ze,We;return Vn(((Ce=yr.Form)===null||Ce===void 0?void 0:Ce.defaultValidateMessages)||{},((ze=(me=$e.locale)===null||me===void 0?void 0:me.Form)===null||ze===void 0?void 0:ze.defaultValidateMessages)||{},((We=$e.form)===null||We===void 0?void 0:We.validateMessages)||{},(i==null?void 0:i.validateMessages)||{})},[$e,i==null?void 0:i.validateMessages]);Object.keys(Me).length>0&&(ue=l.createElement(Qc.Provider,{value:Me},t)),s&&(ue=l.createElement(uf,{locale:s,_ANT_MARK__:sf},ue)),(Ie||vt)&&(ue=l.createElement(ko.Provider,{value:De},ue)),u&&(ue=l.createElement(ed,{size:u},ue)),ue=l.createElement(Ed,null,ue);const Ue=l.useMemo(()=>{const Ce=B||{},{algorithm:me,token:ze}=Ce,We=Rd(Ce,["algorithm","token"]),st=me&&(!Array.isArray(me)||me.length>0)?Ks(me):void 0;return Object.assign(Object.assign({},We),{theme:st,token:Object.assign(Object.assign({},ha),ze)})},[B]);return b&&(ue=l.createElement(tl.Provider,{value:Ue},ue)),w!==void 0&&(ue=l.createElement(Jf,{disabled:w},ue)),l.createElement(fn.Provider,{value:$e},ue)},Yn=e=>{const t=l.useContext(fn),n=l.useContext(Ho);return l.createElement($d,Object.assign({parentContext:t,legacyLocale:n},e))};Yn.ConfigContext=fn;Yn.SizeContext=ga;Yn.config=Fd;Yn.useConfig=td;Object.defineProperty(Yn,"SizeContext",{get:()=>ga});const _d=Yn;function pl(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Nd(e){return pl(e)!==(e==null?void 0:e.ownerDocument)}function na(e){return Nd(e)?pl(e):null}function Ad(e,t){Rt(e,"[@ant-design/icons] ".concat(t))}function Oi(e){return qe(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(qe(e.icon)==="object"||typeof e.icon=="function")}function Ii(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:t[n]=r}return t},{})}function ho(e,t,n){return n?Lt.createElement(e.tag,_(_({key:t},Ii(e.attrs)),n),(e.children||[]).map(function(r,a){return ho(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):Lt.createElement(e.tag,_({key:t},Ii(e.attrs)),(e.children||[]).map(function(r,a){return ho(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function yl(e){return En(e)[0]}function bl(e){return e?Array.isArray(e)?e:[e]:[]}var Ld=` +.anticon { + display: inline-block; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,Dd=function(t){var n=l.useContext(ko),r=n.csp,a=n.prefixCls,o=Ld;a&&(o=o.replace(/anticon/g,a)),l.useEffect(function(){var i=t.current,s=na(i);Un(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},kd=["icon","className","onClick","style","primaryColor","secondaryColor"],fr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Hd(e){var t=e.primaryColor,n=e.secondaryColor;fr.primaryColor=t,fr.secondaryColor=n||yl(t),fr.calculated=!!n}function Vd(){return _({},fr)}var ma=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,i=t.primaryColor,s=t.secondaryColor,u=tt(t,kd),c=l.useRef(),d=fr;if(i&&(d={primaryColor:i,secondaryColor:s||yl(i)}),Dd(c),Ad(Oi(n),"icon should be icon definiton, but got ".concat(n)),!Oi(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=_(_({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),ho(f.icon,"svg-".concat(f.name),_(_({className:r,onClick:a,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};ma.displayName="IconReact";ma.getTwoToneColors=Vd;ma.setTwoToneColors=Hd;const Bo=ma;function Sl(e){var t=bl(e),n=D(t,2),r=n[0],a=n[1];return Bo.setTwoToneColors({primaryColor:r,secondaryColor:a})}function jd(){var e=Bo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var zd=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Sl(Pf.primary);var pa=l.forwardRef(function(e,t){var n,r=e.className,a=e.icon,o=e.spin,i=e.rotate,s=e.tabIndex,u=e.onClick,c=e.twoToneColor,d=tt(e,zd),f=l.useContext(ko),v=f.prefixCls,h=v===void 0?"anticon":v,m=f.rootClassName,g=He(m,h,(n={},X(n,"".concat(h,"-").concat(a.name),!!a.name),X(n,"".concat(h,"-spin"),!!o||a.name==="loading"),n),r),y=s;y===void 0&&u&&(y=-1);var p=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=bl(c),w=D(b,2),x=w[0],P=w[1];return l.createElement("span",Fe({role:"img","aria-label":a.name},d,{ref:t,tabIndex:y,onClick:u,className:g}),l.createElement(Bo,{icon:a,primaryColor:x,secondaryColor:P,style:p}))});pa.displayName="AntdIcon";pa.getTwoToneColor=jd;pa.setTwoToneColor=Sl;const Qn=pa;var Wd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const Bd=Wd;var Ud=function(t,n){return l.createElement(Qn,Fe({},t,{ref:n,icon:Bd}))};const Kd=l.forwardRef(Ud);var qd={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const Gd=qd;var Xd=function(t,n){return l.createElement(Qn,Fe({},t,{ref:n,icon:Gd}))};const Yd=l.forwardRef(Xd);var Qd=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,Zd=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Jd="".concat(Qd," ").concat(Zd).split(/[\s\n]+/),ev="aria-",tv="data-";function Ti(e,t){return e.indexOf(t)===0}function ra(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=_({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||Ti(a,ev))||n.data&&Ti(a,tv)||n.attr&&Jd.includes(a))&&(r[a]=e[a])}),r}var H={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=H.F1&&n<=H.F12)return!1;switch(n){case H.ALT:case H.CAPS_LOCK:case H.CONTEXT_MENU:case H.CTRL:case H.DOWN:case H.END:case H.ESC:case H.HOME:case H.INSERT:case H.LEFT:case H.MAC_FF_META:case H.META:case H.NUMLOCK:case H.NUM_CENTER:case H.PAGE_DOWN:case H.PAGE_UP:case H.PAUSE:case H.PRINT_SCREEN:case H.RIGHT:case H.SHIFT:case H.UP:case H.WIN_KEY:case H.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=H.ZERO&&t<=H.NINE||t>=H.NUM_ZERO&&t<=H.NUM_MULTIPLY||t>=H.A&&t<=H.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case H.SPACE:case H.QUESTION_MARK:case H.NUM_PLUS:case H.NUM_MINUS:case H.NUM_PERIOD:case H.NUM_DIVISION:case H.SEMICOLON:case H.DASH:case H.EQUALS:case H.COMMA:case H.PERIOD:case H.SLASH:case H.APOSTROPHE:case H.SINGLE_QUOTE:case H.OPEN_SQUARE_BRACKET:case H.BACKSLASH:case H.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},nv={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const rv=nv;var av=function(t,n){return l.createElement(Qn,Fe({},t,{ref:n,icon:rv}))};const ov=l.forwardRef(av);function an(){an=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(C,S,E){C[S]=E.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function u(C,S,E){return Object.defineProperty(C,S,{value:E,enumerable:!0,configurable:!0,writable:!0}),C[S]}try{u({},"")}catch{u=function(E,T,O){return E[T]=O}}function c(C,S,E,T){var O=S&&S.prototype instanceof v?S:v,F=Object.create(O.prototype),L=new N(T||[]);return r(F,"_invoke",{value:P(C,E,L)}),F}function d(C,S,E){try{return{type:"normal",arg:C.call(S,E)}}catch(T){return{type:"throw",arg:T}}}e.wrap=c;var f={};function v(){}function h(){}function m(){}var g={};u(g,o,function(){return this});var y=Object.getPrototypeOf,p=y&&y(y(I([])));p&&p!==t&&n.call(p,o)&&(g=p);var b=m.prototype=v.prototype=Object.create(g);function w(C){["next","throw","return"].forEach(function(S){u(C,S,function(E){return this._invoke(S,E)})})}function x(C,S){function E(O,F,L,V){var q=d(C[O],C,F);if(q.type!=="throw"){var J=q.arg,K=J.value;return K&&qe(K)=="object"&&n.call(K,"__await")?S.resolve(K.__await).then(function(ee){E("next",ee,L,V)},function(ee){E("throw",ee,L,V)}):S.resolve(K).then(function(ee){J.value=ee,L(J)},function(ee){return E("throw",ee,L,V)})}V(q.arg)}var T;r(this,"_invoke",{value:function(F,L){function V(){return new S(function(q,J){E(F,L,q,J)})}return T=T?T.then(V,V):V()}})}function P(C,S,E){var T="suspendedStart";return function(O,F){if(T==="executing")throw new Error("Generator is already running");if(T==="completed"){if(O==="throw")throw F;return A()}for(E.method=O,E.arg=F;;){var L=E.delegate;if(L){var V=R(L,E);if(V){if(V===f)continue;return V}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(T==="suspendedStart")throw T="completed",E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);T="executing";var q=d(C,S,E);if(q.type==="normal"){if(T=E.done?"completed":"suspendedYield",q.arg===f)continue;return{value:q.arg,done:E.done}}q.type==="throw"&&(T="completed",E.method="throw",E.arg=q.arg)}}}function R(C,S){var E=S.method,T=C.iterator[E];if(T===void 0)return S.delegate=null,E==="throw"&&C.iterator.return&&(S.method="return",S.arg=void 0,R(C,S),S.method==="throw")||E!=="return"&&(S.method="throw",S.arg=new TypeError("The iterator does not provide a '"+E+"' method")),f;var O=d(T,C.iterator,S.arg);if(O.type==="throw")return S.method="throw",S.arg=O.arg,S.delegate=null,f;var F=O.arg;return F?F.done?(S[C.resultName]=F.value,S.next=C.nextLoc,S.method!=="return"&&(S.method="next",S.arg=void 0),S.delegate=null,f):F:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,f)}function M(C){var S={tryLoc:C[0]};1 in C&&(S.catchLoc=C[1]),2 in C&&(S.finallyLoc=C[2],S.afterLoc=C[3]),this.tryEntries.push(S)}function $(C){var S=C.completion||{};S.type="normal",delete S.arg,C.completion=S}function N(C){this.tryEntries=[{tryLoc:"root"}],C.forEach(M,this),this.reset(!0)}function I(C){if(C){var S=C[o];if(S)return S.call(C);if(typeof C.next=="function")return C;if(!isNaN(C.length)){var E=-1,T=function O(){for(;++E=0;--O){var F=this.tryEntries[O],L=F.completion;if(F.tryLoc==="root")return T("end");if(F.tryLoc<=this.prev){var V=n.call(F,"catchLoc"),q=n.call(F,"finallyLoc");if(V&&q){if(this.prev=0;--T){var O=this.tryEntries[T];if(O.tryLoc<=this.prev&&n.call(O,"finallyLoc")&&this.prev=0;--E){var T=this.tryEntries[E];if(T.finallyLoc===S)return this.complete(T.completion,T.afterLoc),$(T),f}},catch:function(S){for(var E=this.tryEntries.length-1;E>=0;--E){var T=this.tryEntries[E];if(T.tryLoc===S){var O=T.completion;if(O.type==="throw"){var F=O.arg;$(T)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(S,E,T){return this.delegate={iterator:I(S),resultName:E,nextLoc:T},this.method==="next"&&(this.arg=void 0),f}},e}function Fi(e,t,n,r,a,o,i){try{var s=e[o](i),u=s.value}catch(c){n(c);return}s.done?t(u):Promise.resolve(u).then(r,a)}function ya(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function i(u){Fi(o,r,a,i,s,"next",u)}function s(u){Fi(o,r,a,i,s,"throw",u)}i(void 0)})}}const iv=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),o=a.width,i=a.height;if(o||i)return!0}}return!1},sv=e=>{const t=Lt.useContext(ga);return Lt.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},lv=sv;globalThis&&globalThis.__rest;const uv=l.createContext(null),cv=(e,t)=>{const n=l.useContext(uv),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:i}=n,s=a==="vertical"?"-vertical-":"-";return He(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}};function fv(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,i=o?"> *":"",s=["hover",a?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function dv(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function vv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},fv(e,r,t)),dv(n,r,t))}}const hv=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",gv=(e,t,n)=>n!==void 0?n:`${e}-${t}`;var mv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const pv=mv;var yv=function(t,n){return l.createElement(Qn,Fe({},t,{ref:n,icon:pv}))};const bv=l.forwardRef(yv);var Sv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const wv=Sv;var Cv=function(t,n){return l.createElement(Qn,Fe({},t,{ref:n,icon:wv}))};const Ev=l.forwardRef(Cv);var xv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const Mv=xv;var Rv=function(t,n){return l.createElement(Qn,Fe({},t,{ref:n,icon:Mv}))};const Pv=l.forwardRef(Rv);var wl=l.createContext(null),$i=[];function Ov(e,t){var n=l.useState(function(){if(!xt())return null;var m=document.createElement("div");return m}),r=D(n,1),a=r[0],o=l.useRef(!1),i=l.useContext(wl),s=l.useState($i),u=D(s,2),c=u[0],d=u[1],f=i||(o.current?void 0:function(m){d(function(g){var y=[m].concat(ie(g));return y})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function h(){var m;(m=a.parentElement)===null||m===void 0||m.removeChild(a),o.current=!1}return et(function(){return e?i?i(v):v():h(),h},[e]),et(function(){c.length&&(c.forEach(function(m){return m()}),d($i))},[c]),[a,f]}var La;function Iv(e){if(typeof document>"u")return 0;if(e||La===void 0){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var a=t.offsetWidth;n.style.overflow="scroll";var o=t.offsetWidth;a===o&&(o=n.clientWidth),document.body.removeChild(n),La=a-o}return La}function _i(e){var t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?Iv():n}function Tv(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:_i(n),height:_i(r)}}function Fv(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var $v="rc-util-locker-".concat(Date.now()),Ni=0;function _v(e){var t=!!e,n=l.useState(function(){return Ni+=1,"".concat($v,"_").concat(Ni)}),r=D(n,1),a=r[0];et(function(){if(t){var o=Tv(document.body).width,i=Fv();Un(` +html body { + overflow-y: hidden; + `.concat(i?"width: calc(100% - ".concat(o,"px);"):"",` +}`),a)}else Jr(a);return function(){Jr(a)}},[t,a])}var Ai=!1;function Nv(e){return typeof e=="boolean"&&(Ai=e),Ai}var Li=function(t){return t===!1?!1:!xt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Cl=l.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,i=o===void 0?!0:o,s=e.children,u=l.useState(n),c=D(u,2),d=c[0],f=c[1],v=d||n;l.useEffect(function(){(i||n)&&f(n)},[n,i]);var h=l.useState(function(){return Li(a)}),m=D(h,2),g=m[0],y=m[1];l.useEffect(function(){var A=Li(a);y(A??null)});var p=Ov(v&&!g),b=D(p,2),w=b[0],x=b[1],P=g??w;_v(r&&n&&xt()&&(P===w||P===document.body));var R=null;if(s&&ua(s)&&t){var M=s;R=M.ref}var $=To(R,t);if(!v||!xt()||g===void 0)return null;var N=P===!1||Nv(),I=s;return t&&(I=l.cloneElement(s,{ref:$})),l.createElement(wl.Provider,{value:x},N?I:vs.createPortal(I,P))});function Av(){var e=_({},ds);return e.useId}var Di=0;function Lv(e){var t=l.useState("ssr-id"),n=D(t,2),r=n[0],a=n[1],o=Av(),i=o==null?void 0:o();return l.useEffect(function(){if(!o){var s=Di;Di+=1,a("rc_unique_".concat(s))}},[]),e||i||r}var yn="RC_FORM_INTERNAL_HOOKS",ke=function(){Rt(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},qn=l.createContext({getFieldValue:ke,getFieldsValue:ke,getFieldError:ke,getFieldWarning:ke,getFieldsError:ke,isFieldsTouched:ke,isFieldTouched:ke,isFieldValidating:ke,isFieldsValidating:ke,resetFields:ke,setFields:ke,setFieldValue:ke,setFieldsValue:ke,validateFields:ke,submit:ke,getInternalHooks:function(){return ke(),{dispatch:ke,initEntityValue:ke,registerField:ke,useSubscribe:ke,setInitialValues:ke,destroyForm:ke,setCallbacks:ke,registerWatch:ke,getFields:ke,setValidateMessages:ke,setPreserve:ke,getInitialValue:ke}}}),aa=l.createContext(null);function go(e){return e==null?[]:Array.isArray(e)?e:[e]}function Dv(e){return e&&!!e._init}function bn(){return bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Kr(e,t,n){return Hv()?Kr=Reflect.construct.bind():Kr=function(a,o,i){var s=[null];s.push.apply(s,o);var u=Function.bind.apply(a,s),c=new u;return i&&br(c,i.prototype),c},Kr.apply(null,arguments)}function Vv(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function po(e){var t=typeof Map=="function"?new Map:void 0;return po=function(r){if(r===null||!Vv(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return Kr(r,arguments,mo(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),br(a,r)},po(e)}var jv=/%[sdj%]/g,zv=function(){};typeof process<"u"&&process.env;function yo(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function $t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Wv(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ct(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Wv(t)&&typeof e=="string"&&!e)}function Bv(e,t,n){var r=[],a=0,o=e.length;function i(s){r.push.apply(r,s||[]),a++,a===o&&n(r)}e.forEach(function(s){t(s,i)})}function ki(e,t,n){var r=0,a=e.length;function o(i){if(i&&i.length){n(i);return}var s=r;r=r+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ur={integer:function(t){return ur.number(t)&&parseInt(t,10)===t},float:function(t){return ur.number(t)&&!ur.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ur.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(zi.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Yv())},hex:function(t){return typeof t=="string"&&!!t.match(zi.hex)}},Qv=function(t,n,r,a,o){if(t.required&&n===void 0){El(t,n,r,a,o);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?ur[s](n)||a.push($t(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push($t(o.messages.types[s],t.fullField,t.type))},Zv=function(t,n,r,a,o){var i=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,v=typeof n=="number",h=typeof n=="string",m=Array.isArray(n);if(v?f="number":h?f="string":m&&(f="array"),!f)return!1;m&&(d=n.length),h&&(d=n.replace(c,"_").length),i?d!==t.len&&a.push($t(o.messages[f].len,t.fullField,t.len)):s&&!u&&dt.max?a.push($t(o.messages[f].max,t.fullField,t.max)):s&&u&&(dt.max)&&a.push($t(o.messages[f].range,t.fullField,t.min,t.max))},_n="enum",Jv=function(t,n,r,a,o){t[_n]=Array.isArray(t[_n])?t[_n]:[],t[_n].indexOf(n)===-1&&a.push($t(o.messages[_n],t.fullField,t[_n].join(", ")))},eh=function(t,n,r,a,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push($t(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||a.push($t(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Pe={required:El,whitespace:Xv,type:Qv,range:Zv,enum:Jv,pattern:eh},th=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n,"string")&&!t.required)return r();Pe.required(t,n,a,i,o,"string"),ct(n,"string")||(Pe.type(t,n,a,i,o),Pe.range(t,n,a,i,o),Pe.pattern(t,n,a,i,o),t.whitespace===!0&&Pe.whitespace(t,n,a,i,o))}r(i)},nh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),n!==void 0&&Pe.type(t,n,a,i,o)}r(i)},rh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),n!==void 0&&(Pe.type(t,n,a,i,o),Pe.range(t,n,a,i,o))}r(i)},ah=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),n!==void 0&&Pe.type(t,n,a,i,o)}r(i)},oh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),ct(n)||Pe.type(t,n,a,i,o)}r(i)},ih=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),n!==void 0&&(Pe.type(t,n,a,i,o),Pe.range(t,n,a,i,o))}r(i)},sh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),n!==void 0&&(Pe.type(t,n,a,i,o),Pe.range(t,n,a,i,o))}r(i)},lh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Pe.required(t,n,a,i,o,"array"),n!=null&&(Pe.type(t,n,a,i,o),Pe.range(t,n,a,i,o))}r(i)},uh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),n!==void 0&&Pe.type(t,n,a,i,o)}r(i)},ch="enum",fh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o),n!==void 0&&Pe[ch](t,n,a,i,o)}r(i)},dh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n,"string")&&!t.required)return r();Pe.required(t,n,a,i,o),ct(n,"string")||Pe.pattern(t,n,a,i,o)}r(i)},vh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n,"date")&&!t.required)return r();if(Pe.required(t,n,a,i,o),!ct(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Pe.type(t,u,a,i,o),u&&Pe.range(t,u.getTime(),a,i,o)}}r(i)},hh=function(t,n,r,a,o){var i=[],s=Array.isArray(n)?"array":typeof n;Pe.required(t,n,a,i,o,s),r(i)},Da=function(t,n,r,a,o){var i=t.type,s=[],u=t.required||!t.required&&a.hasOwnProperty(t.field);if(u){if(ct(n,i)&&!t.required)return r();Pe.required(t,n,a,s,o,i),ct(n,i)||Pe.type(t,n,a,s,o)}r(s)},gh=function(t,n,r,a,o){var i=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(ct(n)&&!t.required)return r();Pe.required(t,n,a,i,o)}r(i)},dr={string:th,method:nh,number:rh,boolean:ah,regexp:oh,integer:ih,float:sh,array:lh,object:uh,enum:fh,pattern:dh,date:vh,url:Da,hex:Da,email:Da,required:hh,any:gh};function bo(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var So=bo(),xr=function(){function e(n){this.rules=null,this._messages=So,this.define(n)}var t=e.prototype;return t.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var i=r[o];a.rules[o]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=ji(bo(),r)),this._messages},t.validate=function(r,a,o){var i=this;a===void 0&&(a={}),o===void 0&&(o=function(){});var s=r,u=a,c=o;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(g){var y=[],p={};function b(x){if(Array.isArray(x)){var P;y=(P=y).concat.apply(P,x)}else y.push(x)}for(var w=0;w=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(ie(e.slice(0,n)),[a],ie(e.slice(n,t)),ie(e.slice(t+1,r))):o<0?[].concat(ie(e.slice(0,t)),ie(e.slice(t+1,n+1)),[a],ie(e.slice(n+1,r))):e}var Ch=["name"],At=[];function qi(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var Uo=function(e){wr(n,e);var t=Cr(n);function n(r){var a;if(kt(this,n),a=t.call(this,r),a.state={resetCount:0},a.cancelRegisterFunc=null,a.mounted=!1,a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.prevValidating=void 0,a.errors=At,a.warnings=At,a.cancelRegister=function(){var u=a.props,c=u.preserve,d=u.isListField,f=u.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,c,Je(f)),a.cancelRegisterFunc=null},a.getNamePath=function(){var u=a.props,c=u.name,d=u.fieldContext,f=d.prefixName,v=f===void 0?[]:f;return c!==void 0?[].concat(ie(v),ie(c)):[]},a.getRules=function(){var u=a.props,c=u.rules,d=c===void 0?[]:c,f=u.fieldContext;return d.map(function(v){return typeof v=="function"?v(f):v})},a.refresh=function(){a.mounted&&a.setState(function(u){var c=u.resetCount;return{resetCount:c+1}})},a.metaCache=null,a.triggerMetaEvent=function(u){var c=a.props.onMetaChange;if(c){var d=_(_({},a.getMeta()),{},{destroy:u});Os(a.metaCache,d)||c(d),a.metaCache=d}else a.metaCache=null},a.onStoreChange=function(u,c,d){var f=a.props,v=f.shouldUpdate,h=f.dependencies,m=h===void 0?[]:h,g=f.onReset,y=d.store,p=a.getNamePath(),b=a.getValue(u),w=a.getValue(y),x=c&&vr(c,p);switch(d.type==="valueUpdate"&&d.source==="external"&&b!==w&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=At,a.warnings=At,a.triggerMetaEvent()),d.type){case"reset":if(!c||x){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=At,a.warnings=At,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(v){a.reRender();return}break}case"setField":{if(x){var P=d.data;"touched"in P&&(a.touched=P.touched),"validating"in P&&!("originRCField"in P)&&(a.validatePromise=P.validating?Promise.resolve([]):null),"errors"in P&&(a.errors=P.errors||At),"warnings"in P&&(a.warnings=P.warnings||At),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}if(v&&!p.length&&qi(v,u,y,b,w,d)){a.reRender();return}break}case"dependenciesUpdate":{var R=m.map(Je);if(R.some(function(M){return vr(d.relatedFields,M)})){a.reRender();return}break}default:if(x||(!m.length||p.length||v)&&qi(v,u,y,b,w,d)){a.reRender();return}break}v===!0&&a.reRender()},a.validateRules=function(u){var c=a.getNamePath(),d=a.getValue(),f=u||{},v=f.triggerName,h=f.validateOnly,m=h===void 0?!1:h,g=Promise.resolve().then(function(){if(!a.mounted)return[];var y=a.props,p=y.validateFirst,b=p===void 0?!1:p,w=y.messageVariables,x=a.getRules();v&&(x=x.filter(function(R){return R}).filter(function(R){var M=R.validateTrigger;if(!M)return!0;var $=go(M);return $.includes(v)}));var P=ph(c,d,x,u,b,w);return P.catch(function(R){return R}).then(function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:At;if(a.validatePromise===g){var M;a.validatePromise=null;var $=[],N=[];(M=R.forEach)===null||M===void 0||M.call(R,function(I){var A=I.rule.warningOnly,C=I.errors,S=C===void 0?At:C;A?N.push.apply(N,ie(S)):$.push.apply($,ie(S))}),a.errors=$,a.warnings=N,a.triggerMetaEvent(),a.reRender()}}),P});return m||(a.validatePromise=g,a.dirty=!0,a.errors=At,a.warnings=At,a.triggerMetaEvent(),a.reRender()),g},a.isFieldValidating=function(){return!!a.validatePromise},a.isFieldTouched=function(){return a.touched},a.isFieldDirty=function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var u=a.props.fieldContext,c=u.getInternalHooks(yn),d=c.getInitialValue;return d(a.getNamePath())!==void 0},a.getErrors=function(){return a.errors},a.getWarnings=function(){return a.warnings},a.isListField=function(){return a.props.isListField},a.isList=function(){return a.props.isList},a.isPreserve=function(){return a.props.preserve},a.getMeta=function(){a.prevValidating=a.isFieldValidating();var u={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return u},a.getOnlyChild=function(u){if(typeof u=="function"){var c=a.getMeta();return _(_({},a.getOnlyChild(u(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var d=gr(u);return d.length!==1||!l.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}},a.getValue=function(u){var c=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Ut(u||c(!0),d)},a.getControlled=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,d=c.trigger,f=c.validateTrigger,v=c.getValueFromEvent,h=c.normalize,m=c.valuePropName,g=c.getValueProps,y=c.fieldContext,p=f!==void 0?f:y.validateTrigger,b=a.getNamePath(),w=y.getInternalHooks,x=y.getFieldsValue,P=w(yn),R=P.dispatch,M=a.getValue(),$=g||function(C){return X({},m,C)},N=u[d],I=_(_({},u),$(M));I[d]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var C,S=arguments.length,E=new Array(S),T=0;T=0&&A<=C.length?(f.keys=[].concat(ie(f.keys.slice(0,A)),[f.id],ie(f.keys.slice(A))),x([].concat(ie(C.slice(0,A)),[I],ie(C.slice(A))))):(f.keys=[].concat(ie(f.keys),[f.id]),x([].concat(ie(C),[I]))),f.id+=1},remove:function(I){var A=R(),C=new Set(Array.isArray(I)?I:[I]);C.size<=0||(f.keys=f.keys.filter(function(S,E){return!C.has(E)}),x(A.filter(function(S,E){return!C.has(E)})))},move:function(I,A){if(I!==A){var C=R();I<0||I>=C.length||A<0||A>=C.length||(f.keys=Ki(f.keys,I,A),x(Ki(C,I,A)))}}},$=w||[];return Array.isArray($)||($=[]),a($.map(function(N,I){var A=f.keys[I];return A===void 0&&(f.keys[I]=f.id,A=f.keys[I],f.id+=1),{name:I,key:A,isListField:!0}}),M,p)})))};function xh(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(i,s){i.catch(function(u){return t=!0,u}).then(function(u){n-=1,r[s]=u,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var Pl="__@field_split__";function ka(e){return e.map(function(t){return"".concat(qe(t),":").concat(t)}).join(Pl)}var Nn=function(){function e(){kt(this,e),this.kvs=new Map}return Ht(e,[{key:"set",value:function(n,r){this.kvs.set(ka(n),r)}},{key:"get",value:function(n){return this.kvs.get(ka(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ka(n))}},{key:"map",value:function(n){return ie(this.kvs.entries()).map(function(r){var a=D(r,2),o=a[0],i=a[1],s=o.split(Pl);return n({key:s.map(function(u){var c=u.match(/^([^:]*):(.*)$/),d=D(c,3),f=d[1],v=d[2];return f==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),Mh=["name"],Rh=Ht(function e(t){var n=this;kt(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(r){return r===yn?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Rt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){n.subscribable=r},this.prevWithoutPreserves=null,this.setInitialValues=function(r,a){if(n.initialValues=r||{},a){var o,i=Vn(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var u=s.key;i=Wt(i,u,Ut(r,u))}),n.prevWithoutPreserves=null,n.updateStore(i)}},this.destroyForm=function(){var r=new Nn;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||r.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=r},this.getInitialValue=function(r){var a=Ut(n.initialValues,r);return r.length?Vn(a):a},this.setCallbacks=function(r){n.callbacks=r},this.setValidateMessages=function(r){n.validateMessages=r},this.setPreserve=function(r){n.preserve=r},this.watchList=[],this.registerWatch=function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(i){i(a,o,r)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){n.store=r},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Nn;return n.getFieldEntities(r).forEach(function(o){var i=o.getNamePath();a.set(i,o)}),a},this.getFieldEntitiesForNamePathList=function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var i=Je(o);return a.get(i)||{INVALIDATE_NAME_PATH:Je(o)}})},this.getFieldsValue=function(r,a){if(n.warningUnhooked(),r===!0&&!a)return n.store;var o=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),i=[];return o.forEach(function(s){var u,c="INVALIDATE_NAME_PATH"in s?s.INVALIDATE_NAME_PATH:s.getNamePath();if(!(!r&&(!((u=s.isListField)===null||u===void 0)&&u.call(s))))if(!a)i.push(c);else{var d="getMeta"in s?s.getMeta():null;a(d)&&i.push(c)}}),Ui(n.store,i.map(Je))},this.getFieldValue=function(r){n.warningUnhooked();var a=Je(r);return Ut(n.store,a)},this.getFieldsError=function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,i){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Je(r[i]),errors:[],warnings:[]}})},this.getFieldError=function(r){n.warningUnhooked();var a=Je(r),o=n.getFieldsError([a])[0];return o.errors},this.getFieldWarning=function(r){n.warningUnhooked();var a=Je(r),o=n.getFieldsError([a])[0];return o.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new Nn,o=n.getFieldEntities(!0);o.forEach(function(u){var c=u.props.initialValue,d=u.getNamePath();if(c!==void 0){var f=a.get(d)||new Set;f.add({entity:u,value:c}),a.set(d,f)}});var i=function(c){c.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var v=d.getNamePath(),h=n.getInitialValue(v);if(h!==void 0)Rt(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var m=a.get(v);if(m&&m.size>1)Rt(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(v);(!r.skipExist||g===void 0)&&n.updateStore(Wt(n.store,v,ie(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(u){var c=a.get(u);if(c){var d;(d=s).push.apply(d,ie(ie(c).map(function(f){return f.entity})))}})):s=o,i(s)},this.resetFields=function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Vn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Je);o.forEach(function(i){var s=n.getInitialValue(i);n.updateStore(Wt(n.store,i,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)},this.setFields=function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(i){var s=i.name,u=tt(i,Mh),c=Je(s);o.push(c),"value"in u&&n.updateStore(Wt(n.store,c,u.value)),n.notifyObservers(a,[c],{type:"setField",data:i})}),n.notifyWatch(o)},this.getFields=function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var i=o.getNamePath(),s=o.getMeta(),u=_(_({},s),{},{name:i,value:n.getFieldValue(i)});return Object.defineProperty(u,"originRCField",{value:!0}),u});return a},this.initEntityValue=function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),i=Ut(n.store,o);i===void 0&&n.updateStore(Wt(n.store,o,a))}},this.isMergedPreserve=function(r){var a=r!==void 0?r:n.preserve;return a??!0},this.registerField=function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!i||u.length>1)){var c=i?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==c&&n.fieldEntities.every(function(f){return!Ml(f.getNamePath(),a)})){var d=n.store;n.updateStore(Wt(d,a,c,!0)),n.notifyObservers(d,[a],{type:"remove"}),n.triggerDependenciesUpdate(d,a)}}n.notifyWatch([a])}},this.dispatch=function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var i=r.namePath,s=r.triggerName;n.validateFields([i],{triggerName:s});break}}},this.notifyObservers=function(r,a,o){if(n.subscribable){var i=_(_({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var u=s.onStoreChange;u(r,a,i)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(ie(o))}),o},this.updateValue=function(r,a){var o=Je(r),i=n.store;n.updateStore(Wt(n.store,o,a)),n.notifyObservers(i,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(i,o),u=n.callbacks.onValuesChange;if(u){var c=Ui(n.store,[o]);u(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ie(s)))},this.setFieldsValue=function(r){n.warningUnhooked();var a=n.store;if(r){var o=Vn(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(r,a){n.setFields([{name:r,value:a}])},this.getDependencyChildrenFields=function(r){var a=new Set,o=[],i=new Nn;n.getFieldEntities().forEach(function(u){var c=u.props.dependencies;(c||[]).forEach(function(d){var f=Je(d);i.update(f,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(u),v})})});var s=function u(c){var d=i.get(c)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var v=f.getNamePath();f.isFieldDirty()&&v.length&&(o.push(v),u(v))}})};return s(r),o},this.triggerOnFieldsChange=function(r,a){var o=n.callbacks.onFieldsChange;if(o){var i=n.getFields();if(a){var s=new Nn;a.forEach(function(c){var d=c.name,f=c.errors;s.set(d,f)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var u=i.filter(function(c){var d=c.name;return vr(r,d)});u.length&&o(u,i)}},this.validateFields=function(r,a){n.warningUnhooked();var o,i;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,i=a):i=r;var s=!!o,u=s?o.map(Je):[],c=[],d=String(Date.now()),f=new Set;n.getFieldEntities(!0).forEach(function(g){var y;if(s||u.push(g.getNamePath()),!((y=i)===null||y===void 0)&&y.recursive&&s){var p=g.getNamePath();p.every(function(x,P){return o[P]===x||o[P]===void 0})&&u.push(p)}if(!(!g.props.rules||!g.props.rules.length)){var b=g.getNamePath();if(f.add(b.join(d)),!s||vr(u,b)){var w=g.validateRules(_({validateMessages:_(_({},xl),n.validateMessages)},i));c.push(w.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(x){var P,R=[],M=[];return(P=x.forEach)===null||P===void 0||P.call(x,function($){var N=$.rule.warningOnly,I=$.errors;N?M.push.apply(M,ie(I)):R.push.apply(R,ie(I))}),R.length?Promise.reject({name:b,errors:R,warnings:M}):{name:b,errors:R,warnings:M}}))}}});var v=xh(c);n.lastValidatePromise=v,v.catch(function(g){return g}).then(function(g){var y=g.map(function(p){var b=p.name;return b});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,g)});var h=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(u)):Promise.reject([])}).catch(function(g){var y=g.filter(function(p){return p&&p.errors.length});return Promise.reject({values:n.getFieldsValue(u),errorFields:y,outOfDate:n.lastValidatePromise!==v})});h.catch(function(g){return g});var m=u.filter(function(g){return f.has(g.join(d))});return n.triggerOnFieldsChange(m),h},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})},this.forceRootUpdate=t});function Ol(e){var t=l.useRef(),n=l.useState({}),r=D(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},i=new Rh(o);t.current=i.getForm()}return[t.current]}var Mo=l.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ph=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,i=l.useContext(Mo),s=l.useRef({});return l.createElement(Mo.Provider,{value:_(_({},i),{},{validateMessages:_(_({},i.validateMessages),n),triggerFormChange:function(c,d){r&&r(c,{changedFields:d,forms:s.current}),i.triggerFormChange(c,d)},triggerFormFinish:function(c,d){a&&a(c,{values:d,forms:s.current}),i.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(s.current=_(_({},s.current),{},X({},c,d))),i.registerForm(c,d)},unregisterForm:function(c){var d=_({},s.current);delete d[c],s.current=d,i.unregisterForm(c)}})},o)},Oh=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Ih=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,i=t.form,s=t.preserve,u=t.children,c=t.component,d=c===void 0?"form":c,f=t.validateMessages,v=t.validateTrigger,h=v===void 0?"onChange":v,m=t.onValuesChange,g=t.onFieldsChange,y=t.onFinish,p=t.onFinishFailed,b=tt(t,Oh),w=l.useContext(Mo),x=Ol(i),P=D(x,1),R=P[0],M=R.getInternalHooks(yn),$=M.useSubscribe,N=M.setInitialValues,I=M.setCallbacks,A=M.setValidateMessages,C=M.setPreserve,S=M.destroyForm;l.useImperativeHandle(n,function(){return R}),l.useEffect(function(){return w.registerForm(r,R),function(){w.unregisterForm(r)}},[w,R,r]),A(_(_({},w.validateMessages),f)),I({onValuesChange:m,onFieldsChange:function(K){if(w.triggerFormChange(r,K),g){for(var ee=arguments.length,ne=new Array(ee>1?ee-1:0),pe=1;pe({animationDuration:e,animationFillMode:"both"}),Nh=e=>({animationDuration:e,animationFillMode:"both"}),Il=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${o}${e}-enter, + ${o}${e}-appear + `]:Object.assign(Object.assign({},_h(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Nh(r)),{animationPlayState:"paused"}),[` + ${o}${e}-enter${e}-enter-active, + ${o}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Ah=new St("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Lh=new St("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Dh=new St("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kh=new St("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Hh=new St("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vh=new St("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),jh=new St("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zh=new St("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Wh={"move-up":{inKeyframes:jh,outKeyframes:zh},"move-down":{inKeyframes:Ah,outKeyframes:Lh},"move-left":{inKeyframes:Dh,outKeyframes:kh},"move-right":{inKeyframes:Hh,outKeyframes:Vh}},Xi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Wh[t];return[Il(r,a,o,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Tl=new St("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Fl=new St("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),$l=new St("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),_l=new St("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Bh=new St("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Uh=new St("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kh=new St("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),qh=new St("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Gh={"slide-up":{inKeyframes:Tl,outKeyframes:Fl},"slide-down":{inKeyframes:$l,outKeyframes:_l},"slide-left":{inKeyframes:Bh,outKeyframes:Uh},"slide-right":{inKeyframes:Kh,outKeyframes:qh}},Yi=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=Gh[t];return[Il(r,a,o,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]};function Xh(e,t,n,r){return function(o){const{prefixCls:i,style:s}=o,u=l.useRef(null),[c,d]=l.useState(0),[f,v]=l.useState(0),[h,m]=ta(!1,{value:o.open}),{getPrefixCls:g}=l.useContext(fn),y=g(t||"select",i);l.useEffect(()=>{if(m(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(x=>{const P=x[0].target;d(P.offsetHeight+8),v(P.offsetWidth)}),w=setInterval(()=>{var x;const P=n?`.${n(y)}`:`.${y}-dropdown`,R=(x=u.current)===null||x===void 0?void 0:x.querySelector(P);R&&(clearInterval(w),b.observe(R))},10);return()=>{clearInterval(w),b.disconnect()}}},[]);let p=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},s),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});return r&&(p=r(p)),l.createElement(_d,{theme:{token:{motion:!1}}},l.createElement("div",{ref:u,style:{paddingBottom:c,position:"relative",minWidth:f}},l.createElement(e,Object.assign({},p))))}}const Nl=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var Al=l.createContext(null);function Yh(){return l.useContext(Al)}function Qh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=l.useState(!1),n=D(t,2),r=n[0],a=n[1],o=l.useRef(null),i=function(){window.clearTimeout(o.current)};l.useEffect(function(){return i},[]);var s=function(c,d){i(),o.current=window.setTimeout(function(){a(c),d&&d()},e)};return[r,s,i]}function Ll(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=l.useRef(null),n=l.useRef(null);l.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function Zh(e,t,n,r){var a=l.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},l.useEffect(function(){function o(i){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var u=i.target;u.shadowRoot&&i.composed&&(u=i.composedPath()[0]||u),a.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(u)&&c!==u})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}var Jh=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],An=void 0;function eg(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,i=e.responsive,s=e.responsiveDisabled,u=e.registerSize,c=e.itemKey,d=e.className,f=e.style,v=e.children,h=e.display,m=e.order,g=e.component,y=g===void 0?"div":g,p=tt(e,Jh),b=i&&!h;function w($){u(c,$)}l.useEffect(function(){return function(){w(null)}},[]);var x=o&&a!==An?o(a):v,P;r||(P={opacity:b?0:1,height:b?0:An,overflowY:b?"hidden":An,order:i?m:An,pointerEvents:b?"none":An,position:b?"absolute":An});var R={};b&&(R["aria-hidden"]=!0);var M=l.createElement(y,Fe({className:He(!r&&n,d),style:_(_({},P),f)},R,p,{ref:t}),x);return i&&(M=l.createElement(Gn,{onResize:function(N){var I=N.offsetWidth;w(I)},disabled:s},M)),M}var hr=l.forwardRef(eg);hr.displayName="Item";function tg(e){if(typeof MessageChannel>"u")Et(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function ng(){var e=l.useRef(null),t=function(r){e.current||(e.current=[],tg(function(){vs.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function ir(e,t){var n=l.useState(t),r=D(n,2),a=r[0],o=r[1],i=Xt(function(s){e(function(){o(s)})});return[a,i]}var oa=Lt.createContext(null),rg=["component"],ag=["className"],og=["className"],ig=function(t,n){var r=l.useContext(oa);if(!r){var a=t.component,o=a===void 0?"div":a,i=tt(t,rg);return l.createElement(o,Fe({},i,{ref:n}))}var s=r.className,u=tt(r,ag),c=t.className,d=tt(t,og);return l.createElement(oa.Provider,{value:null},l.createElement(hr,Fe({ref:n,className:He(s,c)},u,d)))},Dl=l.forwardRef(ig);Dl.displayName="RawItem";var sg=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],kl="responsive",Hl="invalidate";function lg(e){return"+ ".concat(e.length," ...")}function ug(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,i=e.renderItem,s=e.renderRawItem,u=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,f=e.ssr,v=e.style,h=e.className,m=e.maxCount,g=e.renderRest,y=e.renderRawRest,p=e.suffix,b=e.component,w=b===void 0?"div":b,x=e.itemComponent,P=e.onVisibleChange,R=tt(e,sg),M=f==="full",$=ng(),N=ir($,null),I=D(N,2),A=I[0],C=I[1],S=A||0,E=ir($,new Map),T=D(E,2),O=T[0],F=T[1],L=ir($,0),V=D(L,2),q=V[0],J=V[1],K=ir($,0),ee=D(K,2),ne=ee[0],pe=ee[1],xe=ir($,0),Z=D(xe,2),z=Z[0],G=Z[1],he=l.useState(null),le=D(he,2),Y=le[0],re=le[1],W=l.useState(null),de=D(W,2),ve=de[0],Re=de[1],ye=l.useMemo(function(){return ve===null&&M?Number.MAX_SAFE_INTEGER:ve||0},[ve,A]),ge=l.useState(!1),te=D(ge,2),se=te[0],Oe=te[1],Ve="".concat(r,"-item"),_e=Math.max(q,ne),Se=m===kl,je=o.length&&Se,Ge=m===Hl,nt=je||typeof m=="number"&&o.length>m,Ne=l.useMemo(function(){var ce=o;return je?A===null&&M?ce=o:ce=o.slice(0,Math.min(o.length,S/d)):typeof m=="number"&&(ce=o.slice(0,m)),ce},[o,d,A,m,je]),Ie=l.useMemo(function(){return je?o.slice(ye+1):o.slice(Ne.length)},[o,Ne,je,ye]),Ae=l.useCallback(function(ce,j){var k;return typeof u=="function"?u(ce):(k=u&&(ce==null?void 0:ce[u]))!==null&&k!==void 0?k:j},[u]),vt=l.useCallback(i||function(ce){return ce},[i]);function Be(ce,j,k){ve===ce&&(j===void 0||j===Y)||(Re(ce),k||(Oe(ceS){Be(U-1,ce-ae-z+ne);break}}p&&De(0)+z>S&&re(null)}},[S,O,ne,z,Ae,Ne]);var ue=se&&!!Ie.length,Me={};Y!==null&&je&&(Me={position:"absolute",left:Y,top:0});var Ue={prefixCls:Ve,responsive:je,component:x,invalidate:Ge},Ce=s?function(ce,j){var k=Ae(ce,j);return l.createElement(oa.Provider,{key:k,value:_(_({},Ue),{},{order:j,item:ce,itemKey:k,registerSize:Q,display:j<=ye})},s(ce,j))}:function(ce,j){var k=Ae(ce,j);return l.createElement(hr,Fe({},Ue,{order:j,key:k,item:ce,renderItem:vt,itemKey:k,registerSize:Q,display:j<=ye}))},me,ze={order:ue?ye:Number.MAX_SAFE_INTEGER,className:"".concat(Ve,"-rest"),registerSize:Le,display:ue};if(y)y&&(me=l.createElement(oa.Provider,{value:_(_({},Ue),ze)},y(Ie)));else{var We=g||lg;me=l.createElement(hr,Fe({},Ue,ze),typeof We=="function"?We(Ie):We)}var st=l.createElement(w,Fe({className:He(!Ge&&r,h),style:v,ref:t},R),Ne.map(Ce),nt?me:null,p&&l.createElement(hr,Fe({},Ue,{responsive:Se,responsiveDisabled:!je,order:ye,className:"".concat(Ve,"-suffix"),registerSize:$e,display:!0,style:Me}),p));return Se&&(st=l.createElement(Gn,{onResize:B,disabled:!je},st)),st}var Rr=l.forwardRef(ug);Rr.displayName="Overflow";Rr.Item=Dl;Rr.RESPONSIVE=kl;Rr.INVALIDATE=Hl;var ia=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.onMouseDown,i=t.onClick,s=t.children,u;return typeof r=="function"?u=r(a):u=r,l.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),o&&o(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},u!==void 0?u:l.createElement("span",{className:He(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},s))},cg=function(t,n){var r,a,o=t.prefixCls,i=t.id,s=t.inputElement,u=t.disabled,c=t.tabIndex,d=t.autoFocus,f=t.autoComplete,v=t.editable,h=t.activeDescendantId,m=t.value,g=t.maxLength,y=t.onKeyDown,p=t.onMouseDown,b=t.onChange,w=t.onPaste,x=t.onCompositionStart,P=t.onCompositionEnd,R=t.open,M=t.attrs,$=s||l.createElement("input",null),N=$,I=N.ref,A=N.props,C=A.onKeyDown,S=A.onChange,E=A.onMouseDown,T=A.onCompositionStart,O=A.onCompositionEnd,F=A.style;return"maxLength"in $.props,$=l.cloneElement($,_(_(_({type:"search"},A),{},{id:i,ref:la(n,I),disabled:u,tabIndex:c,autoComplete:f||"off",autoFocus:d,className:He("".concat(o,"-selection-search-input"),(r=$)===null||r===void 0||(a=r.props)===null||a===void 0?void 0:a.className),role:"combobox","aria-expanded":R,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":h},M),{},{value:v?m:"",maxLength:g,readOnly:!v,unselectable:v?null:"on",style:_(_({},F),{},{opacity:v?null:0}),onKeyDown:function(V){y(V),C&&C(V)},onMouseDown:function(V){p(V),E&&E(V)},onChange:function(V){b(V),S&&S(V)},onCompositionStart:function(V){x(V),T&&T(V)},onCompositionEnd:function(V){P(V),O&&O(V)},onPaste:w})),$},Ko=l.forwardRef(cg);Ko.displayName="Input";function Vl(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var fg=typeof window<"u"&&window.document&&window.document.documentElement,dg=fg;function vg(e){return e!=null}function Qi(e){return["string","number"].includes(qe(e))}function jl(e){var t=void 0;return e&&(Qi(e.title)?t=e.title.toString():Qi(e.label)&&(t=e.label.toString())),t}function hg(e,t){dg?l.useLayoutEffect(e,t):l.useEffect(e,t)}function gg(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Zi=function(t){t.preventDefault(),t.stopPropagation()},mg=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,i=t.searchValue,s=t.autoClearSearchValue,u=t.inputRef,c=t.placeholder,d=t.disabled,f=t.mode,v=t.showSearch,h=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,y=t.tabIndex,p=t.removeIcon,b=t.maxTagCount,w=t.maxTagTextLength,x=t.maxTagPlaceholder,P=x===void 0?function(re){return"+ ".concat(re.length," ...")}:x,R=t.tagRender,M=t.onToggleOpen,$=t.onRemove,N=t.onInputChange,I=t.onInputPaste,A=t.onInputKeyDown,C=t.onInputMouseDown,S=t.onInputCompositionStart,E=t.onInputCompositionEnd,T=l.useRef(null),O=l.useState(0),F=D(O,2),L=F[0],V=F[1],q=l.useState(!1),J=D(q,2),K=J[0],ee=J[1],ne="".concat(r,"-selection"),pe=o||f==="multiple"&&s===!1||f==="tags"?i:"",xe=f==="tags"||f==="multiple"&&s===!1||v&&(o||K);hg(function(){V(T.current.scrollWidth)},[pe]);function Z(re,W,de,ve,Re){return l.createElement("span",{className:He("".concat(ne,"-item"),X({},"".concat(ne,"-item-disabled"),de)),title:jl(re)},l.createElement("span",{className:"".concat(ne,"-item-content")},W),ve&&l.createElement(ia,{className:"".concat(ne,"-item-remove"),onMouseDown:Zi,onClick:Re,customizeIcon:p},"×"))}function z(re,W,de,ve,Re){var ye=function(te){Zi(te),M(!o)};return l.createElement("span",{onMouseDown:ye},R({label:W,value:re,disabled:de,closable:ve,onClose:Re}))}function G(re){var W=re.disabled,de=re.label,ve=re.value,Re=!d&&!W,ye=de;if(typeof w=="number"&&(typeof de=="string"||typeof de=="number")){var ge=String(ye);ge.length>w&&(ye="".concat(ge.slice(0,w),"..."))}var te=function(Oe){Oe&&Oe.stopPropagation(),$(re)};return typeof R=="function"?z(ve,ye,W,Re,te):Z(re,ye,W,Re,te)}function he(re){var W=typeof P=="function"?P(re):P;return Z({title:W},W,!1)}var le=l.createElement("div",{className:"".concat(ne,"-search"),style:{width:L},onFocus:function(){ee(!0)},onBlur:function(){ee(!1)}},l.createElement(Ko,{ref:u,open:o,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:h,autoComplete:m,editable:xe,activeDescendantId:g,value:pe,onKeyDown:A,onMouseDown:C,onChange:N,onPaste:I,onCompositionStart:S,onCompositionEnd:E,tabIndex:y,attrs:ra(t,!0)}),l.createElement("span",{ref:T,className:"".concat(ne,"-search-mirror"),"aria-hidden":!0},pe," ")),Y=l.createElement(Rr,{prefixCls:"".concat(ne,"-overflow"),data:a,renderItem:G,renderRest:he,suffix:le,itemKey:gg,maxCount:b});return l.createElement(l.Fragment,null,Y,!a.length&&!pe&&l.createElement("span",{className:"".concat(ne,"-placeholder")},c))},pg=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,i=t.disabled,s=t.autoFocus,u=t.autoComplete,c=t.activeDescendantId,d=t.mode,f=t.open,v=t.values,h=t.placeholder,m=t.tabIndex,g=t.showSearch,y=t.searchValue,p=t.activeValue,b=t.maxLength,w=t.onInputKeyDown,x=t.onInputMouseDown,P=t.onInputChange,R=t.onInputPaste,M=t.onInputCompositionStart,$=t.onInputCompositionEnd,N=t.title,I=l.useState(!1),A=D(I,2),C=A[0],S=A[1],E=d==="combobox",T=E||g,O=v[0],F=y||"";E&&p&&!C&&(F=p),l.useEffect(function(){E&&S(!1)},[E,p]);var L=d!=="combobox"&&!f&&!g?!1:!!F,V=N===void 0?jl(O):N,q=function(){if(O)return null;var K=L?{visibility:"hidden"}:void 0;return l.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:K},h)};return l.createElement(l.Fragment,null,l.createElement("span",{className:"".concat(r,"-selection-search")},l.createElement(Ko,{ref:o,prefixCls:r,id:a,open:f,inputElement:n,disabled:i,autoFocus:s,autoComplete:u,editable:T,activeDescendantId:c,value:F,onKeyDown:w,onMouseDown:x,onChange:function(K){S(!0),P(K)},onPaste:R,onCompositionStart:M,onCompositionEnd:$,tabIndex:m,attrs:ra(t,!0),maxLength:E?b:void 0})),!E&&O?l.createElement("span",{className:"".concat(r,"-selection-item"),title:V,style:L?{visibility:"hidden"}:void 0},O.label):null,q())};function yg(e){return![H.ESC,H.SHIFT,H.BACKSPACE,H.TAB,H.WIN_KEY,H.ALT,H.META,H.WIN_KEY_RIGHT,H.CTRL,H.SEMICOLON,H.EQUALS,H.CAPS_LOCK,H.CONTEXT_MENU,H.F1,H.F2,H.F3,H.F4,H.F5,H.F6,H.F7,H.F8,H.F9,H.F10,H.F11,H.F12].includes(e)}var bg=function(t,n){var r=l.useRef(null),a=l.useRef(!1),o=t.prefixCls,i=t.open,s=t.mode,u=t.showSearch,c=t.tokenWithEnter,d=t.autoClearSearchValue,f=t.onSearch,v=t.onSearchSubmit,h=t.onToggleOpen,m=t.onInputKeyDown,g=t.domRef;l.useImperativeHandle(n,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var y=Ll(0),p=D(y,2),b=p[0],w=p[1],x=function(F){var L=F.which;(L===H.UP||L===H.DOWN)&&F.preventDefault(),m&&m(F),L===H.ENTER&&s==="tags"&&!a.current&&!i&&(v==null||v(F.target.value)),yg(L)&&h(!0)},P=function(){w(!0)},R=l.useRef(null),M=function(F){f(F,!0,a.current)!==!1&&h(!0)},$=function(){a.current=!0},N=function(F){a.current=!1,s!=="combobox"&&M(F.target.value)},I=function(F){var L=F.target.value;if(c&&R.current&&/[\r\n]/.test(R.current)){var V=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");L=L.replace(V,R.current)}R.current=null,M(L)},A=function(F){var L=F.clipboardData,V=L.getData("text");R.current=V},C=function(F){var L=F.target;if(L!==r.current){var V=document.body.style.msTouchAction!==void 0;V?setTimeout(function(){r.current.focus()}):r.current.focus()}},S=function(F){var L=b();F.target!==r.current&&!L&&s!=="combobox"&&F.preventDefault(),(s!=="combobox"&&(!u||!L)||!i)&&(i&&d!==!1&&f("",!0,!1),h())},E={inputRef:r,onInputKeyDown:x,onInputMouseDown:P,onInputChange:I,onInputPaste:A,onInputCompositionStart:$,onInputCompositionEnd:N},T=s==="multiple"||s==="tags"?l.createElement(mg,Fe({},t,E)):l.createElement(pg,Fe({},t,E));return l.createElement("div",{ref:g,className:"".concat(o,"-selector"),onClick:C,onMouseDown:S},T)},zl=l.forwardRef(bg);zl.displayName="Selector";var Ji=l.createContext(null);function es(e){return e?Array.isArray(e)?e:[e]:[]}function Sg(e,t,n,r){return l.useMemo(function(){var a=es(n??t),o=es(r??t),i=new Set(a),s=new Set(o);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,n,r])}function wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Cg(e,t,n,r){for(var a=n.points,o=Object.keys(e),i=0;i1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function sr(e){return Sr(parseFloat(e),0)}function ns(e,t){var n=_({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement)){var a=Pr(r).getComputedStyle(r),o=a.overflow,i=a.overflowClipMargin,s=a.borderTopWidth,u=a.borderBottomWidth,c=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),v=r.offsetHeight,h=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,y=sr(s),p=sr(u),b=sr(c),w=sr(d),x=Sr(Math.round(f.width/m*1e3)/1e3),P=Sr(Math.round(f.height/v*1e3)/1e3),R=(m-g-b-w)*x,M=(v-h-y-p)*P,$=y*P,N=p*P,I=b*x,A=w*x,C=0,S=0;if(o==="clip"){var E=sr(i);C=E*x,S=E*P}var T=f.x+I-C,O=f.y+$-S,F=T+f.width+2*C-I-A-R,L=O+f.height+2*S-$-N-M;n.left=Math.max(n.left,T),n.top=Math.max(n.top,O),n.right=Math.min(n.right,F),n.bottom=Math.min(n.bottom,L)}}),n}function rs(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function as(e,t){var n=t||[],r=D(n,2),a=r[0],o=r[1];return[rs(e.width,a),rs(e.height,o)]}function os(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ln(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function sn(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function Eg(e,t,n,r,a,o,i){var s=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),u=D(s,2),c=u[0],d=u[1],f=l.useRef(0),v=l.useMemo(function(){return t?Ro(t):[]},[t]),h=l.useRef({}),m=function(){h.current={}};e||m();var g=Xt(function(){if(t&&n&&e){let Ze=function(Ot,bt){var tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de,nr=C.x+Ot,rr=C.y+bt,ar=nr+ne,Or=rr+ee,ba=Math.max(nr,tn.left),Sa=Math.max(rr,tn.top),wa=Math.min(ar,tn.right),Ca=Math.min(Or,tn.bottom);return Math.max(0,(wa-ba)*(Ca-Sa))},Mt=function(){Te=C.y+Me,ft=Te+ee,lt=C.x+ue,pt=lt+ne};var b=t,w=b.style.left,x=b.style.top,P=b.style.right,R=b.style.bottom,M=b.ownerDocument,$=Pr(b),N=_(_({},a[r]),o);b.style.left="0",b.style.top="0",b.style.right="auto",b.style.bottom="auto";var I;if(Array.isArray(n))I={x:n[0],y:n[1],width:0,height:0};else{var A=n.getBoundingClientRect();I={x:A.x,y:A.y,width:A.width,height:A.height}}var C=b.getBoundingClientRect(),S=$.getComputedStyle(b),E=S.width,T=S.height,O=M.documentElement,F=O.clientWidth,L=O.clientHeight,V=O.scrollWidth,q=O.scrollHeight,J=O.scrollTop,K=O.scrollLeft,ee=C.height,ne=C.width,pe=I.height,xe=I.width,Z={left:0,top:0,right:F,bottom:L},z={left:-K,top:-J,right:V-K,bottom:q-J},G=N.htmlRegion,he="visible",le="visibleFirst";G!=="scroll"&&G!==le&&(G=he);var Y=G===le,re=ns(z,v),W=ns(Z,v),de=G===he?W:re,ve=Y?W:de;b.style.left="auto",b.style.top="auto",b.style.right="0",b.style.bottom="0";var Re=b.getBoundingClientRect();b.style.left=w,b.style.top=x,b.style.right=P,b.style.bottom=R;var ye=Sr(Math.round(ne/parseFloat(E)*1e3)/1e3),ge=Sr(Math.round(ee/parseFloat(T)*1e3)/1e3);if(ye===0||ge===0||Xr(n)&&!iv(n))return;var te=N.offset,se=N.targetOffset,Oe=as(C,te),Ve=D(Oe,2),_e=Ve[0],Se=Ve[1],je=as(I,se),Ge=D(je,2),nt=Ge[0],Ne=Ge[1];I.x-=nt,I.y-=Ne;var Ie=N.points||[],Ae=D(Ie,2),vt=Ae[0],Be=Ae[1],B=os(Be),Q=os(vt),Le=Ln(I,B),$e=Ln(C,Q),De=_({},N),ue=Le.x-$e.x+_e,Me=Le.y-$e.y+Se,Ue=Ze(ue,Me),Ce=Ze(ue,Me,W),me=Ln(I,["t","l"]),ze=Ln(C,["t","l"]),We=Ln(I,["b","r"]),st=Ln(C,["b","r"]),ce=N.overflow||{},j=ce.adjustX,k=ce.adjustY,U=ce.shiftX,ae=ce.shiftY,we=function(bt){return typeof bt=="boolean"?bt:bt>=0},Te,ft,lt,pt;Mt();var Xe=we(k),Pt=Q[0]===B[0];if(Xe&&Q[0]==="t"&&(ft>ve.bottom||h.current.bt)){var _t=Me;Pt?_t-=ee-pe:_t=me.y-st.y-Se;var Qt=Ze(ue,_t),xn=Ze(ue,_t,W);Qt>Ue||Qt===Ue&&(!Y||xn>=Ce)?(h.current.bt=!0,Me=_t,De.points=[sn(Q,0),sn(B,0)]):h.current.bt=!1}if(Xe&&Q[0]==="b"&&(TeUe||yt===Ue&&(!Y||Ct>=Ce)?(h.current.tb=!0,Me=wt,De.points=[sn(Q,0),sn(B,0)]):h.current.tb=!1}var Mn=we(j),Vt=Q[1]===B[1];if(Mn&&Q[1]==="l"&&(pt>ve.right||h.current.rl)){var Zt=ue;Vt?Zt-=ne-xe:Zt=me.x-st.x-_e;var Rn=Ze(Zt,Me),Pn=Ze(Zt,Me,W);Rn>Ue||Rn===Ue&&(!Y||Pn>=Ce)?(h.current.rl=!0,ue=Zt,De.points=[sn(Q,1),sn(B,1)]):h.current.rl=!1}if(Mn&&Q[1]==="r"&&(ltUe||On===Ue&&(!Y||Jn>=Ce)?(h.current.lr=!0,ue=Gt,De.points=[sn(Q,1),sn(B,1)]):h.current.lr=!1}Mt();var Jt=U===!0?0:U;typeof Jt=="number"&&(ltW.right&&(ue-=pt-W.right,I.x>W.right-Jt&&(ue+=I.x-W.right+Jt)));var Nt=ae===!0?0:ae;typeof Nt=="number"&&(TeW.bottom&&(Me-=ft-W.bottom-Se,I.y>W.bottom-Nt&&(Me+=I.y-W.bottom+Nt)));var en=C.x+ue,jt=en+ne,dn=C.y+Me,In=dn+ee,vn=I.x,Tn=vn+xe,hn=I.y,er=hn+pe,tr=Math.max(en,vn),Fn=Math.min(jt,Tn),on=(tr+Fn)/2,be=on-en,fe=Math.max(dn,hn),rt=Math.min(In,er),dt=(fe+rt)/2,Ke=dt-dn;i==null||i(t,De);var at=Re.right-C.x-(ue+C.width),ut=Re.bottom-C.y-(Me+C.height);d({ready:!0,offsetX:ue/ye,offsetY:Me/ge,offsetR:at/ye,offsetB:ut/ge,arrowX:be/ye,arrowY:Ke/ge,scaleX:ye,scaleY:ge,align:De})}}),y=function(){f.current+=1;var w=f.current;Promise.resolve().then(function(){f.current===w&&g()})},p=function(){d(function(w){return _(_({},w),{},{ready:!1})})};return et(p,[r]),et(function(){e||p()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,y]}function xg(e,t,n,r){et(function(){if(e&&t&&n){let d=function(){r()};var a=t,o=n,i=Ro(a),s=Ro(o),u=Pr(o),c=new Set([u].concat(ie(i),ie(s)));return c.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),u.addEventListener("resize",d,{passive:!0}),r(),function(){c.forEach(function(f){f.removeEventListener("scroll",d),u.removeEventListener("resize",d)})}}},[e,t,n])}function Mg(e,t,n,r,a,o,i,s){var u=l.useRef(e),c=l.useRef(!1);u.current!==e&&(c.current=!0,u.current=e),l.useEffect(function(){var d=Et(function(){c.current=!1});return function(){Et.cancel(d)}},[e]),l.useEffect(function(){if(t&&r&&(!a||o)){var d=function(){var R=!1,M=function(I){var A=I.target;R=i(A)},$=function(I){var A=I.target;!c.current&&u.current&&!R&&!i(A)&&s(!1)};return[M,$]},f=d(),v=D(f,2),h=v[0],m=v[1],g=d(),y=D(g,2),p=y[0],b=y[1],w=Pr(r);w.addEventListener("mousedown",h,!0),w.addEventListener("click",m,!0),w.addEventListener("contextmenu",m,!0);var x=na(n);return x&&(x.addEventListener("mousedown",p,!0),x.addEventListener("click",b,!0),x.addEventListener("contextmenu",b,!0)),function(){w.removeEventListener("mousedown",h,!0),w.removeEventListener("click",m,!0),w.removeEventListener("contextmenu",m,!0),x&&(x.removeEventListener("mousedown",p,!0),x.removeEventListener("click",b,!0),x.removeEventListener("contextmenu",b,!0))}}},[t,n,r,a,o])}function Rg(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},i=o.className,s=o.content,u=a.x,c=u===void 0?0:u,d=a.y,f=d===void 0?0:d,v=l.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],y=m[0],p=m[1],b=g[0],w=g[1];y===b||!["t","b"].includes(y)?h.top=f:y==="t"?h.top=0:h.bottom=0,p===w||!["l","r"].includes(p)?h.left=c:p==="l"?h.left=0:h.right=0}return l.createElement("div",{ref:v,className:He("".concat(t,"-arrow"),i),style:h},s)}function Pg(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?l.createElement(Wo,Fe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(i){var s=i.className;return l.createElement("div",{style:{zIndex:r},className:He("".concat(t,"-mask"),s)})}):null}var Og=l.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),Ig=l.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,i=e.target,s=e.onVisibleChanged,u=e.open,c=e.keepDom,d=e.onClick,f=e.mask,v=e.arrow,h=e.arrowPos,m=e.align,g=e.motion,y=e.maskMotion,p=e.forceRender,b=e.getPopupContainer,w=e.autoDestroy,x=e.portal,P=e.zIndex,R=e.onMouseEnter,M=e.onMouseLeave,$=e.ready,N=e.offsetX,I=e.offsetY,A=e.offsetR,C=e.offsetB,S=e.onAlign,E=e.onPrepare,T=e.stretch,O=e.targetWidth,F=e.targetHeight,L=typeof n=="function"?n():n,V=u||c,q=(b==null?void 0:b.length)>0,J=l.useState(!b||!q),K=D(J,2),ee=K[0],ne=K[1];if(et(function(){!ee&&q&&i&&ne(!0)},[ee,q,i]),!ee)return null;var pe="auto",xe={left:"-1000vw",top:"-1000vh",right:pe,bottom:pe};if($||!u){var Z=m.points,z=m._experimental,G=z==null?void 0:z.dynamicInset,he=G&&Z[0][1]==="r",le=G&&Z[0][0]==="b";he?(xe.right=A,xe.left=pe):(xe.left=N,xe.right=pe),le?(xe.bottom=C,xe.top=pe):(xe.top=I,xe.bottom=pe)}var Y={};return T&&(T.includes("height")&&F?Y.height=F:T.includes("minHeight")&&F&&(Y.minHeight=F),T.includes("width")&&O?Y.width=O:T.includes("minWidth")&&O&&(Y.minWidth=O)),u||(Y.pointerEvents="none"),l.createElement(x,{open:p||V,getContainer:b&&function(){return b(i)},autoDestroy:w},l.createElement(Pg,{prefixCls:a,open:u,zIndex:P,mask:f,motion:y}),l.createElement(Gn,{onResize:S,disabled:!u},function(re){return l.createElement(Wo,Fe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:p,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:E,onEnterPrepare:E,visible:u,onVisibleChanged:function(de){var ve;g==null||(ve=g.onVisibleChanged)===null||ve===void 0||ve.call(g,de),s(de)}}),function(W,de){var ve=W.className,Re=W.style,ye=He(a,ve,r);return l.createElement("div",{ref:la(re,t,de),className:ye,style:_(_(_(_({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},xe),Y),Re),{},{boxSizing:"border-box",zIndex:P},o),onMouseEnter:R,onMouseLeave:M,onClick:d},v&&l.createElement(Rg,{prefixCls:a,arrow:v,arrowPos:h,align:m}),l.createElement(Og,{cache:!u},L))})}))}),Tg=l.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=ua(n),o=l.useCallback(function(s){Io(t,r?r(s):s)},[r]),i=To(o,n.ref);return a?l.cloneElement(n,{ref:i}):n}),Fg=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function $g(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cl,t=l.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,i=n.children,s=n.action,u=s===void 0?"hover":s,c=n.showAction,d=n.hideAction,f=n.popupVisible,v=n.defaultPopupVisible,h=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,y=n.mouseLeaveDelay,p=y===void 0?.1:y,b=n.focusDelay,w=n.blurDelay,x=n.mask,P=n.maskClosable,R=P===void 0?!0:P,M=n.getPopupContainer,$=n.forceRender,N=n.autoDestroy,I=n.destroyPopupOnHide,A=n.popup,C=n.popupClassName,S=n.popupStyle,E=n.popupPlacement,T=n.builtinPlacements,O=T===void 0?{}:T,F=n.popupAlign,L=n.zIndex,V=n.stretch,q=n.getPopupClassNameFromAlign,J=n.alignPoint,K=n.onPopupClick,ee=n.onPopupAlign,ne=n.arrow,pe=n.popupMotion,xe=n.maskMotion,Z=n.popupTransitionName,z=n.popupAnimation,G=n.maskTransitionName,he=n.maskAnimation,le=n.className,Y=n.getTriggerDOMNode,re=tt(n,Fg),W=N||I||!1,de=l.useState(!1),ve=D(de,2),Re=ve[0],ye=ve[1];et(function(){ye(Nl())},[]);var ge=l.useRef({}),te=l.useContext(Ji),se=l.useMemo(function(){return{registerSubPopup:function(Ee,Ye){ge.current[Ee]=Ye,te==null||te.registerSubPopup(Ee,Ye)}}},[te]),Oe=Lv(),Ve=l.useState(null),_e=D(Ve,2),Se=_e[0],je=_e[1],Ge=Xt(function(oe){Xr(oe)&&Se!==oe&&je(oe),te==null||te.registerSubPopup(Oe,oe)}),nt=l.useState(null),Ne=D(nt,2),Ie=Ne[0],Ae=Ne[1],vt=Xt(function(oe){Xr(oe)&&Ie!==oe&&Ae(oe)}),Be=l.Children.only(i),B=(Be==null?void 0:Be.props)||{},Q={},Le=Xt(function(oe){var Ee,Ye,ot=Ie;return(ot==null?void 0:ot.contains(oe))||((Ee=na(ot))===null||Ee===void 0?void 0:Ee.host)===oe||oe===ot||(Se==null?void 0:Se.contains(oe))||((Ye=na(Se))===null||Ye===void 0?void 0:Ye.host)===oe||oe===Se||Object.values(ge.current).some(function(Qe){return(Qe==null?void 0:Qe.contains(oe))||oe===Qe})}),$e=ts(o,pe,z,Z),De=ts(o,xe,he,G),ue=l.useState(v||!1),Me=D(ue,2),Ue=Me[0],Ce=Me[1],me=f??Ue,ze=Xt(function(oe){f===void 0&&Ce(oe)});et(function(){Ce(f||!1)},[f]);var We=l.useRef(me);We.current=me;var st=Xt(function(oe){me!==oe&&(ze(oe),h==null||h(oe))}),ce=l.useRef(),j=function(){clearTimeout(ce.current)},k=function(Ee){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;j(),Ye===0?st(Ee):ce.current=setTimeout(function(){st(Ee)},Ye*1e3)};l.useEffect(function(){return j},[]);var U=l.useState(!1),ae=D(U,2),we=ae[0],Te=ae[1];et(function(oe){(!oe||me)&&Te(!0)},[me]);var ft=l.useState(null),lt=D(ft,2),pt=lt[0],Xe=lt[1],Pt=l.useState([0,0]),_t=D(Pt,2),Qt=_t[0],xn=_t[1],wt=function(Ee){xn([Ee.clientX,Ee.clientY])},yt=Eg(me,Se,J?Qt:Ie,E,O,F,ee),Ct=D(yt,11),Mn=Ct[0],Vt=Ct[1],Zt=Ct[2],Rn=Ct[3],Pn=Ct[4],Gt=Ct[5],On=Ct[6],Jn=Ct[7],Jt=Ct[8],Nt=Ct[9],en=Ct[10],jt=Xt(function(){we||en()});xg(me,Ie,Se,jt),et(function(){jt()},[Qt,E]),et(function(){me&&!(O!=null&&O[E])&&jt()},[JSON.stringify(F)]);var dn=l.useMemo(function(){var oe=Cg(O,o,Nt,J);return He(oe,q==null?void 0:q(Nt))},[Nt,q,O,o,J]);l.useImperativeHandle(r,function(){return{forceAlign:jt}});var In=function(Ee){Te(!1),en(),m==null||m(Ee)},vn=function(){return new Promise(function(Ee){Xe(function(){return Ee})})};et(function(){pt&&(en(),pt(),Xe(null))},[pt]);var Tn=l.useState(0),hn=D(Tn,2),er=hn[0],tr=hn[1],Fn=l.useState(0),on=D(Fn,2),be=on[0],fe=on[1],rt=function(Ee,Ye){if(jt(),V){var ot=Ye.getBoundingClientRect();tr(ot.width),fe(ot.height)}},dt=Sg(Re,u,c,d),Ke=D(dt,2),at=Ke[0],ut=Ke[1],Ze=function(Ee,Ye,ot,Qe){Q[Ee]=function(Qo){var Ir;Qe==null||Qe(Qo),k(Ye,ot);for(var Ea=arguments.length,Zo=new Array(Ea>1?Ea-1:0),Tr=1;Tr1?Ye-1:0),Qe=1;Qe1?Ye-1:0),Qe=1;Qe1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=Bl(n,!1),i=o.label,s=o.value,u=o.options,c=o.groupLabel;function d(f,v){f.forEach(function(h){if(v||!(u in h)){var m=h[s];a.push({key:is(h,a.length),groupOption:v,data:h,label:h[i],value:m})}else{var g=h[c];g===void 0&&r&&(g=h.label),a.push({key:is(h,a.length),group:!0,data:h,label:g}),d(h[u],!0)}})}return d(e,!1),a}function Po(e){var t=_({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Rt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function kg(e,t){if(!t||!t.length)return null;var n=!1;function r(o,i){var s=qs(i),u=s[0],c=s.slice(1);if(!u)return[o];var d=o.split(u);return n=n||d.length>1,d.reduce(function(f,v){return[].concat(ie(f),ie(r(v,c)))},[]).filter(function(f){return f})}var a=r(e,t);return n?a:null}var Hg=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Vg=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Oo(e){return e==="tags"||e==="multiple"}var jg=l.forwardRef(function(e,t){var n,r,a=e.id,o=e.prefixCls,i=e.className,s=e.showSearch,u=e.tagRender,c=e.direction,d=e.omitDomProps,f=e.displayValues,v=e.onDisplayValuesChange,h=e.emptyOptions,m=e.notFoundContent,g=m===void 0?"Not Found":m,y=e.onClear,p=e.mode,b=e.disabled,w=e.loading,x=e.getInputElement,P=e.getRawInputElement,R=e.open,M=e.defaultOpen,$=e.onDropdownVisibleChange,N=e.activeValue,I=e.onActiveValueChange,A=e.activeDescendantId,C=e.searchValue,S=e.autoClearSearchValue,E=e.onSearch,T=e.onSearchSplit,O=e.tokenSeparators,F=e.allowClear,L=e.showArrow,V=e.inputIcon,q=e.clearIcon,J=e.OptionList,K=e.animation,ee=e.transitionName,ne=e.dropdownStyle,pe=e.dropdownClassName,xe=e.dropdownMatchSelectWidth,Z=e.dropdownRender,z=e.dropdownAlign,G=e.placement,he=e.builtinPlacements,le=e.getPopupContainer,Y=e.showAction,re=Y===void 0?[]:Y,W=e.onFocus,de=e.onBlur,ve=e.onKeyUp,Re=e.onKeyDown,ye=e.onMouseDown,ge=tt(e,Hg),te=Oo(p),se=(s!==void 0?s:te)||p==="combobox",Oe=_({},ge);Vg.forEach(function(be){delete Oe[be]}),d==null||d.forEach(function(be){delete Oe[be]});var Ve=l.useState(!1),_e=D(Ve,2),Se=_e[0],je=_e[1];l.useEffect(function(){je(Nl())},[]);var Ge=l.useRef(null),nt=l.useRef(null),Ne=l.useRef(null),Ie=l.useRef(null),Ae=l.useRef(null),vt=Qh(),Be=D(vt,3),B=Be[0],Q=Be[1],Le=Be[2];l.useImperativeHandle(t,function(){var be,fe;return{focus:(be=Ie.current)===null||be===void 0?void 0:be.focus,blur:(fe=Ie.current)===null||fe===void 0?void 0:fe.blur,scrollTo:function(dt){var Ke;return(Ke=Ae.current)===null||Ke===void 0?void 0:Ke.scrollTo(dt)}}});var $e=l.useMemo(function(){var be;if(p!=="combobox")return C;var fe=(be=f[0])===null||be===void 0?void 0:be.value;return typeof fe=="string"||typeof fe=="number"?String(fe):""},[C,p,f]),De=p==="combobox"&&typeof x=="function"&&x()||null,ue=typeof P=="function"&&P(),Me=To(nt,ue==null||(n=ue.props)===null||n===void 0?void 0:n.ref),Ue=l.useState(!1),Ce=D(Ue,2),me=Ce[0],ze=Ce[1];et(function(){ze(!0)},[]);var We=ta(!1,{defaultValue:M,value:R}),st=D(We,2),ce=st[0],j=st[1],k=me?ce:!1,U=!g&&h;(b||U&&k&&p==="combobox")&&(k=!1);var ae=U?!1:k,we=l.useCallback(function(be){var fe=be!==void 0?be:!k;b||(j(fe),k!==fe&&($==null||$(fe)))},[b,k,j,$]),Te=l.useMemo(function(){return(O||[]).some(function(be){return[` +`,`\r +`].includes(be)})},[O]),ft=function(fe,rt,dt){var Ke=!0,at=fe;I==null||I(null);var ut=dt?null:kg(fe,O);return p!=="combobox"&&ut&&(at="",T==null||T(ut),we(!1),Ke=!1),E&&$e!==at&&E(at,{source:rt?"typing":"effect"}),Ke},lt=function(fe){!fe||!fe.trim()||E(fe,{source:"submit"})};l.useEffect(function(){!k&&!te&&p!=="combobox"&&ft("",!1,!1)},[k]),l.useEffect(function(){ce&&b&&j(!1),b&&Q(!1)},[b]);var pt=Ll(),Xe=D(pt,2),Pt=Xe[0],_t=Xe[1],Qt=function(fe){var rt=Pt(),dt=fe.which;if(dt===H.ENTER&&(p!=="combobox"&&fe.preventDefault(),k||we(!0)),_t(!!$e),dt===H.BACKSPACE&&!rt&&te&&!$e&&f.length){for(var Ke=ie(f),at=null,ut=Ke.length-1;ut>=0;ut-=1){var Ze=Ke[ut];if(!Ze.disabled){Ke.splice(ut,1),at=Ze;break}}at&&v(Ke,{type:"remove",values:[at]})}for(var Mt=arguments.length,Ot=new Array(Mt>1?Mt-1:0),bt=1;bt1?rt-1:0),Ke=1;Ke1?ut-1:0),Mt=1;Mt1&&arguments[1]!==void 0?arguments[1]:!1;return gr(e).map(function(n,r){if(!l.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,i=a.key,s=a.props,u=s.children,c=tt(s,Gg);return t||!o?Xg(n):_(_({key:"__RC_SELECT_GRP__".concat(i===null?r:i,"__"),label:i},c),{},{options:Ul(u)})}).filter(function(n){return n})}function Yg(e,t,n,r,a){return l.useMemo(function(){var o=e,i=!e;i&&(o=Ul(t));var s=new Map,u=new Map,c=function(v,h,m){m&&typeof m=="string"&&v.set(h[m],h)};function d(f){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;hu},r}return Ht(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(a){a.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){var a,o;this.removeEvents(),(a=this.scrollbarRef.current)===null||a===void 0||a.removeEventListener("touchstart",this.onScrollbarTouchStart),(o=this.thumbRef.current)===null||o===void 0||o.removeEventListener("touchstart",this.onMouseDown),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var a=this.state,o=a.dragging,i=a.visible,s=this.props,u=s.prefixCls,c=s.direction,d=this.getSpinHeight(),f=this.getTop(),v=this.showScroll(),h=v&&i,m=c==="rtl"?{left:0}:{right:0};return l.createElement("div",{ref:this.scrollbarRef,className:He("".concat(u,"-scrollbar"),X({},"".concat(u,"-scrollbar-show"),v)),style:_(_({width:8,top:0,bottom:0},m),{},{position:"absolute",display:h?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},l.createElement("div",{ref:this.thumbRef,className:He("".concat(u,"-scrollbar-thumb"),X({},"".concat(u,"-scrollbar-thumb-moving"),o)),style:{width:"100%",height:d,top:f,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(l.Component);function Jg(e){var t=e.children,n=e.setRef,r=l.useCallback(function(a){n(a)},[]);return l.cloneElement(t,{ref:r})}function em(e,t,n,r,a,o){var i=o.getKey;return e.slice(t,n+1).map(function(s,u){var c=t+u,d=a(s,c,{}),f=i(s);return l.createElement(Jg,{key:f,setRef:function(h){return r(s,h)}},d)})}var tm=function(){function e(){kt(this,e),this.maps=void 0,this.maps=Object.create(null)}return Ht(e,[{key:"set",value:function(n,r){this.maps[n]=r}},{key:"get",value:function(n){return this.maps[n]}}]),e}();function nm(e,t,n){var r=l.useState(0),a=D(r,2),o=a[0],i=a[1],s=l.useRef(new Map),u=l.useRef(new tm),c=l.useRef();function d(){Et.cancel(c.current)}function f(){d(),c.current=Et(function(){s.current.forEach(function(h,m){if(h&&h.offsetParent){var g=Yr(h),y=g.offsetHeight;u.current.get(m)!==y&&u.current.set(m,g.offsetHeight)}}),i(function(h){return h+1})})}function v(h,m){var g=e(h),y=s.current.get(g);m?(s.current.set(g,m),f()):s.current.delete(g),!y!=!m&&(m?t==null||t(h):n==null||n(h))}return l.useEffect(function(){return d},[]),[v,f,u.current,o]}function rm(e,t,n,r,a,o,i,s){var u=l.useRef();return function(c){if(c==null){s();return}if(Et.cancel(u.current),typeof c=="number")i(c);else if(c&&qe(c)==="object"){var d,f=c.align;"index"in c?d=c.index:d=t.findIndex(function(g){return a(g)===c.key});var v=c.offset,h=v===void 0?0:v,m=function g(y,p){if(!(y<0||!e.current)){var b=e.current.clientHeight,w=!1,x=p;if(b){for(var P=p||f,R=0,M=0,$=0,N=Math.min(t.length,d),I=0;I<=N;I+=1){var A=a(t[I]);M=R;var C=n.get(A);$=M+(C===void 0?r:C),R=$,I===d&&C===void 0&&(w=!0)}var S=null;switch(P){case"top":S=M-h;break;case"bottom":S=$-b+h;break;default:{var E=e.current.scrollTop,T=E+b;MT&&(x="bottom")}}S!==null&&S!==e.current.scrollTop&&i(S)}u.current=Et(function(){w&&o(),g(y-1,x)},2)}};m(3)}}}function am(e,t,n){var r=e.length,a=t.length,o,i;if(r===0&&a===0)return null;r"u"?"undefined":qe(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const ql=function(e,t){var n=l.useRef(!1),r=l.useRef(null);function a(){clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)}var o=l.useRef({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=i<0&&o.current.top||i>0&&o.current.bottom;return s&&u?(clearTimeout(r.current),n.current=!1):(!u||n.current)&&a(),!n.current&&u}};function sm(e,t,n,r){var a=l.useRef(0),o=l.useRef(null),i=l.useRef(null),s=l.useRef(!1),u=ql(t,n);function c(f){if(e){Et.cancel(o.current);var v=f.deltaY;a.current+=v,i.current=v,!u(v)&&(im||f.preventDefault(),o.current=Et(function(){var h=s.current?10:1;r(a.current*h),a.current=0}))}}function d(f){e&&(s.current=f.detail===i.current)}return[c,d]}var lm=14/15;function um(e,t,n){var r=l.useRef(!1),a=l.useRef(0),o=l.useRef(null),i=l.useRef(null),s,u=function(v){if(r.current){var h=Math.ceil(v.touches[0].pageY),m=a.current-h;a.current=h,n(m)&&v.preventDefault(),clearInterval(i.current),i.current=setInterval(function(){m*=lm,(!n(m,!0)||Math.abs(m)<=.1)&&clearInterval(i.current)},16)}},c=function(){r.current=!1,s()},d=function(v){s(),v.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(v.touches[0].pageY),o.current=v.target,o.current.addEventListener("touchmove",u),o.current.addEventListener("touchend",c))};s=function(){o.current&&(o.current.removeEventListener("touchmove",u),o.current.removeEventListener("touchend",c))},et(function(){return e&&t.current.addEventListener("touchstart",d),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",d),s(),clearInterval(i.current)}},[e])}var cm=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],fm=[],dm={overflowY:"auto",overflowAnchor:"none"};function vm(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,i=e.itemHeight,s=e.fullHeight,u=s===void 0?!0:s,c=e.style,d=e.data,f=e.children,v=e.itemKey,h=e.virtual,m=e.direction,g=e.component,y=g===void 0?"div":g,p=e.onScroll,b=e.onVisibleChange,w=e.innerProps,x=tt(e,cm),P=!!(h!==!1&&o&&i),R=P&&d&&i*d.length>o,M=l.useState(0),$=D(M,2),N=$[0],I=$[1],A=l.useState(!1),C=D(A,2),S=C[0],E=C[1],T=He(r,X({},"".concat(r,"-rtl"),m==="rtl"),a),O=d||fm,F=l.useRef(),L=l.useRef(),V=l.useRef(),q=l.useCallback(function(B){return typeof v=="function"?v(B):B==null?void 0:B[v]},[v]),J={getKey:q};function K(B){I(function(Q){var Le;typeof B=="function"?Le=B(Q):Le=B;var $e=se(Le);return F.current.scrollTop=$e,$e})}var ee=l.useRef({start:0,end:O.length}),ne=l.useRef(),pe=om(O,q),xe=D(pe,1),Z=xe[0];ne.current=Z;var z=nm(q,null,null),G=D(z,4),he=G[0],le=G[1],Y=G[2],re=G[3],W=l.useMemo(function(){if(!P)return{scrollHeight:void 0,start:0,end:O.length-1,offset:void 0};if(!R){var B;return{scrollHeight:((B=L.current)===null||B===void 0?void 0:B.offsetHeight)||0,start:0,end:O.length-1,offset:void 0}}for(var Q=0,Le,$e,De,ue=O.length,Me=0;Me=N&&Le===void 0&&(Le=Me,$e=Q),ze>N+o&&De===void 0&&(De=Me),Q=ze}return Le===void 0&&(Le=0,$e=0,De=Math.ceil(o/i)),De===void 0&&(De=O.length-1),De=Math.min(De+1,O.length),{scrollHeight:Q,start:Le,end:De,offset:$e}},[R,P,N,O,re,o]),de=W.scrollHeight,ve=W.start,Re=W.end,ye=W.offset;ee.current.start=ve,ee.current.end=Re;var ge=de-o,te=l.useRef(ge);te.current=ge;function se(B){var Q=B;return Number.isNaN(te.current)||(Q=Math.min(Q,te.current)),Q=Math.max(Q,0),Q}var Oe=N<=0,Ve=N>=ge,_e=ql(Oe,Ve);function Se(B){var Q=B;K(Q)}function je(B){var Q=B.currentTarget.scrollTop;Q!==N&&K(Q),p==null||p(B)}var Ge=sm(P,Oe,Ve,function(B){K(function(Q){var Le=Q+B;return Le})}),nt=D(Ge,2),Ne=nt[0],Ie=nt[1];um(P,F,function(B,Q){return _e(B,Q)?!1:(Ne({preventDefault:function(){},deltaY:B}),!0)}),et(function(){function B(Q){P&&Q.preventDefault()}return F.current.addEventListener("wheel",Ne),F.current.addEventListener("DOMMouseScroll",Ie),F.current.addEventListener("MozMousePixelScroll",B),function(){F.current&&(F.current.removeEventListener("wheel",Ne),F.current.removeEventListener("DOMMouseScroll",Ie),F.current.removeEventListener("MozMousePixelScroll",B))}},[P]);var Ae=rm(F,O,Y,i,q,le,K,function(){var B;(B=V.current)===null||B===void 0||B.delayHidden()});l.useImperativeHandle(t,function(){return{scrollTo:Ae}}),et(function(){if(b){var B=O.slice(ve,Re+1);b(B,O)}},[ve,Re,O]);var vt=em(O,ve,Re,he,f,J),Be=null;return o&&(Be=_(X({},u?"height":"maxHeight",o),dm),P&&(Be.overflowY="hidden",S&&(Be.pointerEvents="none"))),l.createElement("div",Fe({style:_(_({},c),{},{position:"relative"}),className:T},x),l.createElement(y,{className:"".concat(r,"-holder"),style:Be,ref:F,onScroll:je},l.createElement(Kl,{prefixCls:r,height:de,offset:ye,onInnerResize:le,ref:L,innerProps:w},vt)),P&&l.createElement(Zg,{ref:V,prefixCls:r,scrollTop:N,height:o,scrollHeight:de,count:O.length,direction:m,onScroll:Se,onStartMove:function(){E(!0)},onStopMove:function(){E(!1)}}))}var Gl=l.forwardRef(vm);Gl.displayName="List";var Xl=l.createContext(null);function hm(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var gm=["disabled","title","children","style","className"];function cs(e){return typeof e=="string"||typeof e=="number"}var mm=function(t,n){var r=Yh(),a=r.prefixCls,o=r.id,i=r.open,s=r.multiple,u=r.mode,c=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,v=r.onPopupScroll,h=l.useContext(Xl),m=h.flattenOptions,g=h.onActiveValue,y=h.defaultActiveFirstOption,p=h.onSelect,b=h.menuItemSelectedIcon,w=h.rawValues,x=h.fieldNames,P=h.virtual,R=h.direction,M=h.listHeight,$=h.listItemHeight,N="".concat(a,"-item"),I=sa(function(){return m},[i,m],function(Z,z){return z[0]&&Z[1]!==z[1]}),A=l.useRef(null),C=function(z){z.preventDefault()},S=function(z){A.current&&A.current.scrollTo(typeof z=="number"?{index:z}:z)},E=function(z){for(var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,he=I.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;L(z);var he={source:G?"keyboard":"mouse"},le=I[z];if(!le){g(null,-1,he);return}g(le.value,z,he)};l.useEffect(function(){V(y!==!1?E(0):-1)},[I.length,c]);var q=l.useCallback(function(Z){return w.has(Z)&&u!=="combobox"},[u,ie(w).toString(),w.size]);l.useEffect(function(){var Z=setTimeout(function(){if(!s&&i&&w.size===1){var G=Array.from(w)[0],he=I.findIndex(function(le){var Y=le.data;return Y.value===G});he!==-1&&(V(he),S(he))}});if(i){var z;(z=A.current)===null||z===void 0||z.scrollTo(void 0)}return function(){return clearTimeout(Z)}},[i,c,m.length]);var J=function(z){z!==void 0&&p(z,{selected:!w.has(z)}),s||d(!1)};if(l.useImperativeHandle(n,function(){return{onKeyDown:function(z){var G=z.which,he=z.ctrlKey;switch(G){case H.N:case H.P:case H.UP:case H.DOWN:{var le=0;if(G===H.UP?le=-1:G===H.DOWN?le=1:hm()&&he&&(G===H.N?le=1:G===H.P&&(le=-1)),le!==0){var Y=E(F+le,le);S(Y),V(Y,!0)}break}case H.ENTER:{var re=I[F];re&&!re.data.disabled?J(re.value):J(void 0),i&&z.preventDefault();break}case H.ESC:d(!1),i&&z.stopPropagation()}},onKeyUp:function(){},scrollTo:function(z){S(z)}}}),I.length===0)return l.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(N,"-empty"),onMouseDown:C},f);var K=Object.keys(x).map(function(Z){return x[Z]}),ee=function(z){return z.label};function ne(Z,z){var G=Z.group;return{role:G?"presentation":"option",id:"".concat(o,"_list_").concat(z)}}var pe=function(z){var G=I[z];if(!G)return null;var he=G.data||{},le=he.value,Y=G.group,re=ra(he,!0),W=ee(G);return G?l.createElement("div",Fe({"aria-label":typeof W=="string"&&!Y?W:null},re,{key:z},ne(G,z),{"aria-selected":q(le)}),le):null},xe={role:"listbox",id:"".concat(o,"_list")};return l.createElement(l.Fragment,null,P&&l.createElement("div",Fe({},xe,{style:{height:0,width:0,overflow:"hidden"}}),pe(F-1),pe(F),pe(F+1)),l.createElement(Gl,{itemKey:"key",ref:A,data:I,height:M,itemHeight:$,fullHeight:!1,onMouseDown:C,onScroll:v,virtual:P,direction:R,innerProps:P?null:xe},function(Z,z){var G,he=Z.group,le=Z.groupOption,Y=Z.data,re=Z.label,W=Z.value,de=Y.key;if(he){var ve,Re=(ve=Y.title)!==null&&ve!==void 0?ve:cs(re)?re.toString():void 0;return l.createElement("div",{className:He(N,"".concat(N,"-group")),title:Re},re!==void 0?re:de)}var ye=Y.disabled,ge=Y.title;Y.children;var te=Y.style,se=Y.className,Oe=tt(Y,gm),Ve=Es(Oe,K),_e=q(W),Se="".concat(N,"-option"),je=He(N,Se,se,(G={},X(G,"".concat(Se,"-grouped"),le),X(G,"".concat(Se,"-active"),F===z&&!ye),X(G,"".concat(Se,"-disabled"),ye),X(G,"".concat(Se,"-selected"),_e),G)),Ge=ee(Z),nt=!b||typeof b=="function"||_e,Ne=typeof Ge=="number"?Ge:Ge||W,Ie=cs(Ne)?Ne.toString():void 0;return ge!==void 0&&(Ie=ge),l.createElement("div",Fe({},ra(Ve),P?{}:ne(Z,z),{"aria-selected":_e,className:je,title:Ie,onMouseMove:function(){F===z||ye||V(z)},onClick:function(){ye||J(W)},style:te}),l.createElement("div",{className:"".concat(Se,"-content")},Ne),l.isValidElement(b)||_e,nt&&l.createElement(ia,{className:"".concat(N,"-option-state"),customizeIcon:b,customizeIconProps:{isSelected:_e}},_e?"✓":null))}))},Yl=l.forwardRef(mm);Yl.displayName="OptionList";var pm=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],ym=["inputValue"];function bm(e){return!e||qe(e)!=="object"}var Sm=l.forwardRef(function(e,t){var n=e.id,r=e.mode,a=e.prefixCls,o=a===void 0?"rc-select":a,i=e.backfill,s=e.fieldNames,u=e.inputValue,c=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,v=f===void 0?!0:f,h=e.onSelect,m=e.onDeselect,g=e.dropdownMatchSelectWidth,y=g===void 0?!0:g,p=e.filterOption,b=e.filterSort,w=e.optionFilterProp,x=e.optionLabelProp,P=e.options,R=e.children,M=e.defaultActiveFirstOption,$=e.menuItemSelectedIcon,N=e.virtual,I=e.direction,A=e.listHeight,C=A===void 0?200:A,S=e.listItemHeight,E=S===void 0?20:S,T=e.value,O=e.defaultValue,F=e.labelInValue,L=e.onChange,V=tt(e,pm),q=Kg(n),J=Oo(r),K=!!(!P&&R),ee=l.useMemo(function(){return p===void 0&&r==="combobox"?!1:p},[p,r]),ne=l.useMemo(function(){return Bl(s,K)},[JSON.stringify(s),K]),pe=ta("",{value:c!==void 0?c:u,postState:function(k){return k||""}}),xe=D(pe,2),Z=xe[0],z=xe[1],G=Yg(P,R,ne,w,x),he=G.valueOptions,le=G.labelOptions,Y=G.options,re=l.useCallback(function(j){var k=Vl(j);return k.map(function(U){var ae,we,Te,ft,lt;if(bm(U))ae=U;else{var pt;Te=U.key,we=U.label,ae=(pt=U.value)!==null&&pt!==void 0?pt:Te}var Xe=he.get(ae);if(Xe){var Pt;we===void 0&&(we=Xe==null?void 0:Xe[x||ne.label]),Te===void 0&&(Te=(Pt=Xe==null?void 0:Xe.key)!==null&&Pt!==void 0?Pt:ae),ft=Xe==null?void 0:Xe.disabled,lt=Xe==null?void 0:Xe.title}return{label:we,value:ae,key:Te,disabled:ft,title:lt}})},[ne,x,he]),W=ta(O,{value:T}),de=D(W,2),ve=de[0],Re=de[1],ye=l.useMemo(function(){var j,k=re(ve);return r==="combobox"&&!((j=k[0])!==null&&j!==void 0&&j.value)?[]:k},[ve,re,r]),ge=zg(ye,he),te=D(ge,2),se=te[0],Oe=te[1],Ve=l.useMemo(function(){if(!r&&se.length===1){var j=se[0];if(j.value===null&&(j.label===null||j.label===void 0))return[]}return se.map(function(k){var U;return _(_({},k),{},{label:(U=k.label)!==null&&U!==void 0?U:k.value})})},[r,se]),_e=l.useMemo(function(){return new Set(se.map(function(j){return j.value}))},[se]);l.useEffect(function(){if(r==="combobox"){var j,k=(j=se[0])===null||j===void 0?void 0:j.value;z(vg(k)?String(k):"")}},[se]);var Se=ls(function(j,k){var U,ae=k??j;return U={},X(U,ne.value,j),X(U,ne.label,ae),U}),je=l.useMemo(function(){if(r!=="tags")return Y;var j=ie(Y),k=function(ae){return he.has(ae)};return ie(se).sort(function(U,ae){return U.value2&&arguments[2]!==void 0?arguments[2]:{},ae=U.source,we=ae===void 0?"keyboard":ae;ue(k),i&&r==="combobox"&&j!==null&&we==="keyboard"&&Q(String(j))},[i,r]),Ce=function(k,U,ae){var we=function(){var wt,yt=Oe(k);return[F?{label:yt==null?void 0:yt[ne.label],value:k,key:(wt=yt==null?void 0:yt.key)!==null&&wt!==void 0?wt:k}:k,Po(yt)]};if(U&&h){var Te=we(),ft=D(Te,2),lt=ft[0],pt=ft[1];h(lt,pt)}else if(!U&&m&&ae!=="clear"){var Xe=we(),Pt=D(Xe,2),_t=Pt[0],Qt=Pt[1];m(_t,Qt)}},me=ls(function(j,k){var U,ae=J?k.selected:!0;ae?U=J?[].concat(ie(se),[j]):[j]:U=se.filter(function(we){return we.value!==j}),Ae(U),Ce(j,ae),r==="combobox"?Q(""):(!Oo||v)&&(z(""),Q(""))}),ze=function(k,U){Ae(k);var ae=U.type,we=U.values;(ae==="remove"||ae==="clear")&&we.forEach(function(Te){Ce(Te.value,!1,ae)})},We=function(k,U){if(z(k),Q(null),U.source==="submit"){var ae=(k||"").trim();if(ae){var we=Array.from(new Set([].concat(ie(_e),[ae])));Ae(we),Ce(ae,!0),z("")}return}U.source!=="blur"&&(r==="combobox"&&Ae(k),d==null||d(k))},st=function(k){var U=k;r!=="tags"&&(U=k.map(function(we){var Te=le.get(we);return Te==null?void 0:Te.value}).filter(function(we){return we!==void 0}));var ae=Array.from(new Set([].concat(ie(_e),ie(U))));Ae(ae),ae.forEach(function(we){Ce(we,!0)})},ce=l.useMemo(function(){var j=N!==!1&&y!==!1;return _(_({},G),{},{flattenOptions:Ie,onActiveValue:Ue,defaultActiveFirstOption:Me,onSelect:me,menuItemSelectedIcon:$,rawValues:_e,fieldNames:ne,virtual:j,direction:I,listHeight:C,listItemHeight:E,childrenAsData:K})},[G,Ie,Ue,Me,me,$,_e,ne,N,y,C,E,K]);return l.createElement(Xl.Provider,{value:ce},l.createElement(jg,Fe({},V,{id:q,prefixCls:o,ref:t,omitDomProps:ym,mode:r,displayValues:Ve,onDisplayValuesChange:ze,direction:I,searchValue:Z,onSearch:We,autoClearSearchValue:v,onSearchSplit:st,dropdownMatchSelectWidth:y,OptionList:Yl,emptyOptions:!Ie.length,activeValue:B,activeDescendantId:"".concat(q,"_list_").concat(De)})))}),Xo=Sm;Xo.Option=Go;Xo.OptGroup=qo;function wm(e,t,n){return He({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Cm=(e,t)=>t||e,Em=()=>{const[,e]=Er(),n=new gt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),l.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),l.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),l.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),l.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xm=Em,Mm=()=>{const[,e]=Er(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:a}=e,{borderColor:o,shadowColor:i,contentColor:s}=l.useMemo(()=>({borderColor:new gt(t).onBackground(a).toHexShortString(),shadowColor:new gt(n).onBackground(a).toHexShortString(),contentColor:new gt(r).onBackground(a).toHexShortString()}),[t,n,r,a]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:o},l.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),l.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},Rm=Mm,Pm=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Om=al("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=qt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[Pm(r)]});var Im=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 a=0,r=Object.getOwnPropertySymbols(e);a{var{className:t,rootClassName:n,prefixCls:r,image:a=Ql,description:o,children:i,imageStyle:s,style:u}=e,c=Im(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:d,direction:f,empty:v}=l.useContext(fn),h=d("empty",r),[m,g]=Om(h),[y]=of("Empty"),p=typeof o<"u"?o:y==null?void 0:y.description,b=typeof p=="string"?p:"empty";let w=null;return typeof a=="string"?w=l.createElement("img",{alt:b,src:a}):w=a,m(l.createElement("div",Object.assign({className:He(g,h,v==null?void 0:v.className,{[`${h}-normal`]:a===Zl,[`${h}-rtl`]:f==="rtl"},t,n),style:Object.assign(Object.assign({},v==null?void 0:v.style),u)},c),l.createElement("div",{className:`${h}-image`,style:s},w),p&&l.createElement("div",{className:`${h}-description`},p),i&&l.createElement("div",{className:`${h}-footer`},i)))};Yo.PRESENTED_IMAGE_DEFAULT=Ql;Yo.PRESENTED_IMAGE_SIMPLE=Zl;const lr=Yo,Tm=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(fn),r=n("empty");switch(t){case"Table":case"List":return Lt.createElement(lr,{image:lr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Lt.createElement(lr,{image:lr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return Lt.createElement(lr,null)}},Fm=Tm,$m=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},_m=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Vo(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft + `]:{animationName:Tl},[` + &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, + &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft + `]:{animationName:$l},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Fl},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:_l},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},$m(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},oo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},Yi(e,"slide-up"),Yi(e,"slide-down"),Xi(e,"move-up"),Xi(e,"move-down")]},Nm=_m,Dn=2,Jl=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const a=(n-t)/2-r,o=Math.ceil(a/2);return[a,o]};function Va(e,t){const{componentCls:n,iconCls:r}=e,a=`${n}-selection-overflow`,o=e.controlHeightSM,[i]=Jl(e),s=t?`${n}-${t}`:"";return{[`${n}-multiple${s}`]:{fontSize:e.fontSize,[a]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${i-Dn}px ${Dn*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Dn}px 0`,lineHeight:`${o}px`,visibility:"hidden",content:'"\\a0"'}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:Dn,marginBottom:Dn,lineHeight:`${o-e.lineWidth*2}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Dn*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},jo()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${a}-item + ${a}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:`${o}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}const Am=e=>{const{componentCls:t}=e,n=qt(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=qt(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,a]=Jl(e);return[Va(e),Va(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:a}}},Va(r,"lg")]},Lm=Am;function ja(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),s=t?`${n}-${t}`:"";return{[`${n}-single${s}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},Vo(e)),{display:"flex",borderRadius:a,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{padding:0,lineHeight:`${o}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${o}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:`${o}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function Dm(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[ja(e),ja(qt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.fontSize*1.5}}}},ja(qt(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const km=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},za=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:a,outlineColor:o,antCls:i}=t,s=n?{[`${r}-selector`]:{borderColor:a}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:Object.assign(Object.assign({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:a,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${o}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:a}})}}},Hm=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},Vm=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},Vo(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},km(e)),Hm(e)),[`${t}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},oo),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},oo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},jo()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXS}}}},jm=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},Vm(e),Dm(e),Lm(e),Nm(e),{[`${t}-rtl`]:{direction:"rtl"}},za(t,qt(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),za(`${t}-status-error`,qt(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),za(`${t}-status-warning`,qt(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),vv(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},zm=al("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=qt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[jm(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Wm=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function Bm(e,t){return e||Wm(t)}function Um(e){return e??!0}function Km(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:i,hasFeedback:s,prefixCls:u,showArrow:c,feedbackIcon:d}=e;const f=n??l.createElement(Kd,null),v=y=>l.createElement(l.Fragment,null,c!==!1&&y,s&&d);let h=null;if(t!==void 0)h=v(t);else if(o)h=v(l.createElement(ov,{spin:!0}));else{const y=`${u}-suffix`;h=p=>{let{open:b,showSearch:w}=p;return v(b&&w?l.createElement(Pv,{className:y}):l.createElement(Ev,{className:y}))}}let m=null;r!==void 0?m=r:i?m=l.createElement(bv,null):m=null;let g=null;return a!==void 0?g=a:g=l.createElement(Yd,null),{clearIcon:f,suffixIcon:h,itemIcon:m,removeIcon:g}}var qm=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n,{prefixCls:r,bordered:a=!0,className:o,rootClassName:i,getPopupContainer:s,popupClassName:u,dropdownClassName:c,listHeight:d=256,placement:f,listItemHeight:v=24,size:h,disabled:m,notFoundContent:g,status:y,showArrow:p,builtinPlacements:b,dropdownMatchSelectWidth:w,popupMatchSelectWidth:x,direction:P,style:R}=e,M=qm(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style"]);const{getPopupContainer:$,getPrefixCls:N,renderEmpty:I,direction:A,virtual:C,popupMatchSelectWidth:S,popupOverflow:E,select:T}=l.useContext(fn),O=N("select",r),F=N(),L=P??A,{compactSize:V,compactItemClassnames:q}=cv(O,L),[J,K]=zm(O),ee=l.useMemo(()=>{const{mode:Se}=M;if(Se!=="combobox")return Se===eu?"combobox":Se},[M.mode]),ne=ee==="multiple"||ee==="tags",pe=Um(p),xe=(n=x??w)!==null&&n!==void 0?n:S,{status:Z,hasFeedback:z,isFormItemInput:G,feedbackIcon:he}=l.useContext($h),le=Cm(Z,y);let Y;g!==void 0?Y=g:ee==="combobox"?Y=null:Y=(I==null?void 0:I("Select"))||l.createElement(Fm,{componentName:"Select"});const{suffixIcon:re,itemIcon:W,removeIcon:de,clearIcon:ve}=Km(Object.assign(Object.assign({},M),{multiple:ne,hasFeedback:z,feedbackIcon:he,showArrow:pe,prefixCls:O})),Re=Es(M,["suffixIcon","itemIcon"]),ye=He(u||c,{[`${O}-dropdown-${L}`]:L==="rtl"},i,K),ge=lv(Se=>{var je;return(je=h??V)!==null&&je!==void 0?je:Se}),te=l.useContext(ol),se=m??te,Oe=He({[`${O}-lg`]:ge==="large",[`${O}-sm`]:ge==="small",[`${O}-rtl`]:L==="rtl",[`${O}-borderless`]:!a,[`${O}-in-form-item`]:G},wm(O,le,z),q,T==null?void 0:T.className,o,i,K),Ve=l.useMemo(()=>f!==void 0?f:L==="rtl"?"bottomRight":"bottomLeft",[f,L]),_e=Bm(b,E);return J(l.createElement(Xo,Object.assign({ref:t,virtual:C,showSearch:T==null?void 0:T.showSearch},Re,{style:Object.assign(Object.assign({},T==null?void 0:T.style),R),dropdownMatchSelectWidth:xe,builtinPlacements:_e,transitionName:gv(F,hv(f),M.transitionName),listHeight:d,listItemHeight:v,mode:ee,prefixCls:O,placement:Ve,direction:L,inputIcon:re,menuItemSelectedIcon:W,removeIcon:de,clearIcon:ve,notFoundContent:Y,className:Oe,getPopupContainer:s||$,dropdownClassName:ye,showArrow:z||pe,disabled:se})))},Zn=l.forwardRef(Gm),Xm=Xh(Zn);Zn.SECRET_COMBOBOX_MODE_DO_NOT_USE=eu;Zn.Option=Go;Zn.OptGroup=qo;Zn._InternalPanelDoNotUseOrYouWillBeFired=Xm;const Wa=Zn,Ym=(e,t)=>({handleChangeSortBy:o=>{t(o?i=>({...i,sort_by:o}):i=>{const{sort_by:s,...u}=i;return u})},handleChangeSortYear:o=>{const i=e==="movie"?"primary_release_year":"first_air_date_year";t(o?s=>({...s,[i]:o}):s=>{const u={...s};return delete u[i],u})},handleChangeSortGenres:o=>{o!=null&&o.length?t(i=>({...i,with_genres:String(o)})):t(i=>{const{with_genres:s,...u}=i;return u})}}),tu=[];for(let e=1901;e<=new Date().getFullYear();e++){const t=e;tu.push({label:String(t),value:String(t),filter:"year"})}const Qm=[{label:"Popularity Descending",value:"popularity.desc",filter:"sort_by"},{label:"Popularity Ascending",value:"popularity.asc",filter:"sort_by"},{label:"Rating Descending",value:"vote_average.desc",filter:"sort_by"},{label:"Rating Ascending",value:"vote_average.asc",filter:"sort_by"},{label:"Release Date Descending",value:"primary_release_date.desc",filter:"sort_by"},{label:"Release Date Ascending",value:"primary_release_date.asc",filter:"sort_by"},{label:"Title (A-Z)",value:"original_title.asc",filter:"sort_by"}],Ba=(e,t)=>((t==null?void 0:t.label)??"").includes(e),Ua=(e,t)=>((e==null?void 0:e.label)??"").toLowerCase().localeCompare(((t==null?void 0:t.label)??"").toLowerCase()),Zm=l.memo(({show:e,setSelectedOption:t})=>{const{movieType:n}=hs(),r=su(s=>s.genres[n]),{handleChangeSortBy:a,handleChangeSortYear:o,handleChangeSortGenres:i}=Ym(n,t);return ht.jsxs("div",{className:`${Yt["select-group"]} ${!e&&Yt["select-group-hidden"]}`,children:[ht.jsx(Wa,{allowClear:!0,showSearch:!0,className:Yt.select,filterOption:Ba,filterSort:Ua,optionFilterProp:"children",options:Qm,placeholder:"Sort by...",onChange:a},`${n}_sort`),ht.jsx(Wa,{allowClear:!0,showSearch:!0,className:Yt.select,filterOption:Ba,filterSort:Ua,optionFilterProp:"children",options:tu,placeholder:"Select to year",onChange:o},`${n}_year`),ht.jsx(Wa,{allowClear:!0,showSearch:!0,className:Yt.select,filterOption:Ba,filterSort:Ua,mode:"multiple",optionFilterProp:"children",options:r,placeholder:"Select to genres",onChange:i},`${n}_genres`)]})}),Jm=()=>{const{movieType:e}=hs(),{videos:t,error:n,isError:r,isLoading:a,isFetching:o,fetchNextPage:i,hasNextPage:s,dataPages:u,total_results:c,isSuccess:d,show:f,setShow:v,setSelectedOption:h,toggleVisibleSelects:m,hiddenSelects:g}=vu(e);return ht.jsxs("main",{className:`${Yt["wrapper-discover"]} ${f?Yt["wrapper-discover_show"]:null} wrapper main`,onClick:g,children:[ht.jsxs("h1",{className:"title-article",children:["Discovery ",e==="tv"?"TV Shows":"Movies"]}),ht.jsx("div",{className:Yt["sort-popup"],onClick:m,children:ht.jsx(cu,{classname:Yt["sort-popup_btn"],children:ht.jsxs("span",{children:["Sort by",ht.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[ht.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),ht.jsx("path",{d:"M12 3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 14c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})]})]})})}),ht.jsx(Zm,{setSelectedOption:h,setShow:v,show:f}),d&&!c?ht.jsx("h2",{className:"title-article",children:"Nothing was found for your query"}):null,ht.jsx(lu,{classname:"non-padding",error:n,isError:r,children:ht.jsx(uu,{data:t,dataPages:u,fetchNextPage:i,hasNextPage:s,isFetching:o,isLoading:a})})]})},rp=()=>ht.jsx(Jm,{});export{rp as default}; diff --git a/assets/MovieSinglePage-5dc11257.js b/assets/MovieSinglePage-5dc11257.js new file mode 100644 index 0000000..0ff22a1 --- /dev/null +++ b/assets/MovieSinglePage-5dc11257.js @@ -0,0 +1,6 @@ +import{r as z,n as Rr,o as He,g as Er,m as _,E as xe,k as se,p as ft,q as $t,t as Tr,l as Ue,I as Pe,u as $e,G as kr,s as Dr,P as Lr,L as Ar,w as Vt,v as Wt,S as Ht,N as Mr}from"./index-6d8ecf0d.js";import{B as Ir,a as jr}from"./avatar-26fbfa6a.js";var qt={},Bt={},F={},Cr=function(o,u,l){var g=document.head||document.getElementsByTagName("head")[0],w=document.createElement("script");typeof u=="function"&&(l=u,u={}),u=u||{},l=l||function(){},w.type=u.type||"text/javascript",w.charset=u.charset||"utf8",w.async="async"in u?!!u.async:!0,w.src=o,u.attrs&&Nr(w,u.attrs),u.text&&(w.text=""+u.text);var T="onload"in w?ht:xr;T(w,l),w.onload||ht(w,l),g.appendChild(w)};function Nr(n,o){for(var u in o)n.setAttribute(u,o[u])}function ht(n,o){n.onload=function(){this.onerror=this.onload=null,o(null,n)},n.onerror=function(){this.onerror=this.onload=null,o(new Error("Failed to load "+this.src),n)}}function xr(n,o){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,o(null,n))}}var Ur=function(o){return $r(o)&&!Vr(o)};function $r(n){return!!n&&typeof n=="object"}function Vr(n){var o=Object.prototype.toString.call(n);return o==="[object RegExp]"||o==="[object Date]"||qr(n)}var Wr=typeof Symbol=="function"&&Symbol.for,Hr=Wr?Symbol.for("react.element"):60103;function qr(n){return n.$$typeof===Hr}function Br(n){return Array.isArray(n)?[]:{}}function De(n,o){return o.clone!==!1&&o.isMergeableObject(n)?be(Br(n),n,o):n}function Fr(n,o,u){return n.concat(o).map(function(l){return De(l,u)})}function Kr(n,o){if(!o.customMerge)return be;var u=o.customMerge(n);return typeof u=="function"?u:be}function zr(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(o){return Object.propertyIsEnumerable.call(n,o)}):[]}function mt(n){return Object.keys(n).concat(zr(n))}function Ft(n,o){try{return o in n}catch{return!1}}function Yr(n,o){return Ft(n,o)&&!(Object.hasOwnProperty.call(n,o)&&Object.propertyIsEnumerable.call(n,o))}function Gr(n,o,u){var l={};return u.isMergeableObject(n)&&mt(n).forEach(function(g){l[g]=De(n[g],u)}),mt(o).forEach(function(g){Yr(n,g)||(Ft(n,g)&&u.isMergeableObject(o[g])?l[g]=Kr(g,u)(n[g],o[g],u):l[g]=De(o[g],u))}),l}function be(n,o,u){u=u||{},u.arrayMerge=u.arrayMerge||Fr,u.isMergeableObject=u.isMergeableObject||Ur,u.cloneUnlessOtherwiseSpecified=De;var l=Array.isArray(o),g=Array.isArray(n),w=l===g;return w?l?u.arrayMerge(n,o,u):Gr(n,o,u):De(o,u)}be.all=function(o,u){if(!Array.isArray(o))throw new Error("first argument should be an array");return o.reduce(function(l,g){return be(l,g,u)},{})};var Xr=be,Kt=Xr;Object.defineProperty(F,"__esModule",{value:!0});F.parseStartTime=sn;F.parseEndTime=cn;F.randomString=fn;F.queryString=pn;F.getSDK=yn;F.getConfig=dn;F.omit=hn;F.callPlayer=mn;F.isMediaStream=vn;F.isBlobUrl=_n;F.supportsWebKitPresentationMode=gn;var Zr=zt(Cr),Qr=zt(Kt);function zt(n){return n&&n.__esModule?n:{default:n}}function Jr(n,o){return nn(n)||rn(n,o)||tn(n,o)||en()}function en(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tn(n,o){if(n){if(typeof n=="string")return vt(n,o);var u=Object.prototype.toString.call(n).slice(8,-1);if(u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set")return Array.from(n);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return vt(n,o)}}function vt(n,o){(o==null||o>n.length)&&(o=n.length);for(var u=0,l=new Array(o);u"u"||!(Symbol.iterator in Object(n)))){var u=[],l=!0,g=!1,w=void 0;try{for(var T=n[Symbol.iterator](),E;!(l=(E=T.next()).done)&&(u.push(E.value),!(o&&u.length===o));l=!0);}catch(b){g=!0,w=b}finally{try{!l&&T.return!=null&&T.return()}finally{if(g)throw w}}return u}}function nn(n){if(Array.isArray(n))return n}var on=/[?&#](?:start|t)=([0-9hms]+)/,an=/[?&#]end=([0-9hms]+)/,ut=/(\d+)(h|m|s)/g,un=/^\d+$/;function Yt(n,o){if(!(n instanceof Array)){var u=n.match(o);if(u){var l=u[1];if(l.match(ut))return ln(l);if(un.test(l))return parseInt(l)}}}function ln(n){for(var o=0,u=ut.exec(n);u!==null;){var l=u,g=Jr(l,3),w=g[1],T=g[2];T==="h"&&(o+=parseInt(w,10)*60*60),T==="m"&&(o+=parseInt(w,10)*60),T==="s"&&(o+=parseInt(w,10)),u=ut.exec(n)}return o}function sn(n){return Yt(n,on)}function cn(n){return Yt(n,an)}function fn(){return Math.random().toString(36).substr(2,5)}function pn(n){return Object.keys(n).map(function(o){return"".concat(o,"=").concat(n[o])}).join("&")}function qe(n){return window[n]?window[n]:window.exports&&window.exports[n]?window.exports[n]:window.module&&window.module.exports&&window.module.exports[n]?window.module.exports[n]:null}var _e={};function yn(n,o){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},g=arguments.length>4&&arguments[4]!==void 0?arguments[4]:Zr.default,w=qe(o);return w&&l(w)?Promise.resolve(w):new Promise(function(T,E){if(_e[n]){_e[n].push({resolve:T,reject:E});return}_e[n]=[{resolve:T,reject:E}];var b=function(H){_e[n].forEach(function(N){return N.resolve(H)})};if(u){var D=window[u];window[u]=function(){D&&D(),b(qe(o))}}g(n,function(A){A?(_e[n].forEach(function(H){return H.reject(A)}),_e[n]=null):u||b(qe(o))})})}function dn(n,o){return(0,Qr.default)(o.config,n.config)}function hn(n){for(var o,u=arguments.length,l=new Array(u>1?u-1:0),g=1;g1?l-1:0),w=1;w0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),o=/iPhone|iPod/.test(navigator.userAgent)===!1;return n.webkitSupportsPresentationMode&&typeof n.webkitSetPresentationMode=="function"&&o}var W={};Object.defineProperty(W,"__esModule",{value:!0});W.canPlay=W.FLV_EXTENSIONS=W.DASH_EXTENSIONS=W.HLS_EXTENSIONS=W.VIDEO_EXTENSIONS=W.AUDIO_EXTENSIONS=W.MATCH_URL_KALTURA=W.MATCH_URL_VIDYARD=W.MATCH_URL_MIXCLOUD=W.MATCH_URL_DAILYMOTION=W.MATCH_URL_TWITCH_CHANNEL=W.MATCH_URL_TWITCH_VIDEO=W.MATCH_URL_WISTIA=W.MATCH_URL_STREAMABLE=W.MATCH_URL_FACEBOOK_WATCH=W.MATCH_URL_FACEBOOK=W.MATCH_URL_VIMEO=W.MATCH_URL_SOUNDCLOUD=W.MATCH_URL_YOUTUBE=void 0;var _t=F;function Pn(n,o){var u;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(u=bn(n))||o&&n&&typeof n.length=="number"){u&&(n=u);var l=0,g=function(){};return{s:g,n:function(){return l>=n.length?{done:!0}:{done:!1,value:n[l++]}},e:function(D){throw D},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var w=!0,T=!1,E;return{s:function(){u=n[Symbol.iterator]()},n:function(){var D=u.next();return w=D.done,D},e:function(D){T=!0,E=D},f:function(){try{!w&&u.return!=null&&u.return()}finally{if(T)throw E}}}}function bn(n,o){if(n){if(typeof n=="string")return gt(n,o);var u=Object.prototype.toString.call(n).slice(8,-1);if(u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set")return Array.from(n);if(u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u))return gt(n,o)}}function gt(n,o){(o==null||o>n.length)&&(o=n.length);for(var u=0,l=new Array(o);uy.length)&&(P=y.length);for(var d=0,f=new Array(P);d"u"||!(Symbol.iterator in Object(y)))){var d=[],f=!0,S=!1,V=void 0;try{for(var j=y[Symbol.iterator](),B;!(f=(B=j.next()).done)&&(d.push(B.value),!(P&&d.length===P));f=!0);}catch(G){S=!0,V=G}finally{try{!f&&j.return!=null&&j.return()}finally{if(S)throw V}}return d}}function x(y){if(Array.isArray(y))return y}function U(y,P){if(!(y instanceof P))throw new TypeError("Cannot call a class as a function")}function L(y,P){for(var d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function e(y){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)},e(y)}function r(y,P,d){return P in y?Object.defineProperty(y,P,{value:d,enumerable:!0,configurable:!0,writable:!0}):y[P]=d,y}var t="https://www.youtube.com/iframe_api",i="YT",s="onYouTubeIframeAPIReady",v=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,c=/user\/([a-zA-Z0-9_-]+)\/?/,O=/youtube-nocookie\.com/,R="https://www.youtube-nocookie.com",m=function(y){M(d,y);var P=$(d);function d(){var f;U(this,d);for(var S=arguments.length,V=new Array(S),j=0;j"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(a){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},M(a)}function k(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var $="https://w.soundcloud.com/player/api.js",p="SC",h=function(a){N(r,a);var e=x(r);function r(){var t;D(this,r);for(var i=arguments.length,s=new Array(i),v=0;v"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(a){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},M(a)}function k(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var $="https://player.vimeo.com/api/player.js",p="Vimeo",h=function(a){N(r,a);var e=x(r);function r(){var t;D(this,r);for(var i=arguments.length,s=new Array(i),v=0;v"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},I(e)}function M(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var k="https://connect.facebook.net/en_US/sdk.js",$="FB",p="fbAsyncInit",h="facebook-player-",a=function(e){H(t,e);var r=C(t);function t(){var i;b(this,t);for(var s=arguments.length,v=new Array(s),c=0;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function L(p){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},L(p)}function I(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var M="https://cdn.embed.ly/player-0.1.0.min.js",k="playerjs",$=function(p){A(a,p);var h=N(a);function a(){var e;E(this,a);for(var r=arguments.length,t=new Array(r),i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},M(e)}function k(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var $="https://fast.wistia.com/assets/external/E-v1.js",p="Wistia",h="wistia-player-",a=function(e){N(t,e);var r=x(t);function t(){var i;D(this,t);for(var s=arguments.length,v=new Array(s),c=0;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},M(e)}function k(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var $="https://player.twitch.tv/js/embed/v1.js",p="Twitch",h="twitch-player-",a=function(e){N(t,e);var r=x(t);function t(){var i;D(this,t);for(var s=arguments.length,v=new Array(s),c=0;cc.length)&&(O=c.length);for(var R=0,m=new Array(O);R"u"||!(Symbol.iterator in Object(c)))){var R=[],m=!0,y=!1,P=void 0;try{for(var d=c[Symbol.iterator](),f;!(m=(f=d.next()).done)&&(R.push(f.value),!(O&&R.length===O));m=!0);}catch(S){y=!0,P=S}finally{try{!m&&d.return!=null&&d.return()}finally{if(y)throw P}}return R}}function x(c){if(Array.isArray(c))return c}function U(c,O){if(!(c instanceof O))throw new TypeError("Cannot call a class as a function")}function L(c,O){for(var R=0;R"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function e(c){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},e(c)}function r(c,O,R){return O in c?Object.defineProperty(c,O,{value:R,enumerable:!0,configurable:!0,writable:!0}):c[O]=R,c}var t="https://api.dmcdn.net/all.js",i="DM",s="dmAsyncInit",v=function(c){M(R,c);var O=$(R);function R(){var m;U(this,R);for(var y=arguments.length,P=new Array(y),d=0;d"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(a){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},M(a)}function k(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var $="https://widget.mixcloud.com/media/js/widgetApi.js",p="Mixcloud",h=function(a){N(r,a);var e=x(r);function r(){var t;D(this,r);for(var i=arguments.length,s=new Array(i),v=0;v"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},M(e)}function k(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var $="https://play.vidyard.com/embed/v4.js",p="VidyardV4",h="onVidyardAPI",a=function(e){N(t,e);var r=x(t);function t(){var i;D(this,t);for(var s=arguments.length,v=new Array(s),c=0;c"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function L(p){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},L(p)}function I(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var M="https://cdn.embed.ly/player-0.1.0.min.js",k="playerjs",$=function(p){A(a,p);var h=N(a);function a(){var e;E(this,a);for(var r=arguments.length,t=new Array(r),i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(m){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},I(m)}function M(m,y,P){return y in m?Object.defineProperty(m,y,{value:P,enumerable:!0,configurable:!0,writable:!0}):m[y]=P,m}var k=typeof navigator<"u",$=k&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,p=k&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||$)&&!window.MSStream,h=k&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,a="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",e="Hls",r="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",t="dashjs",i="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",s="flvjs",v=/www\.dropbox\.com\/.+/,c=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,O="https://videodelivery.net/{id}/manifest/video.m3u8",R=function(m){H(P,m);var y=C(P);function P(){var d;b(this,P);for(var f=arguments.length,S=new Array(f),V=0;V0?V.end(V.length-1):S}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var f=this.player.buffered;if(f.length===0)return 0;var S=f.end(f.length-1),V=this.getDuration();return S>V?V:S}},{key:"getSource",value:function(f){var S=this.shouldUseHLS(f),V=this.shouldUseDASH(f),j=this.shouldUseFLV(f);if(!(f instanceof Array||(0,l.isMediaStream)(f)||S||V||j))return v.test(f)?f.replace("www.dropbox.com","dl.dropboxusercontent.com"):f}},{key:"render",value:function(){var f=this.props,S=f.url,V=f.playing,j=f.loop,B=f.controls,G=f.muted,Y=f.config,K=f.width,Q=f.height,re=this.shouldUseAudio(this.props),ie=re?"audio":"video",me={width:K==="auto"?K:"100%",height:Q==="auto"?Q:"100%"};return u.default.createElement(ie,E({ref:this.ref,src:this.getSource(S),style:me,preload:"auto",autoPlay:V||void 0,controls:B,muted:G,loop:j},Y.attributes),S instanceof Array&&S.map(this.renderSourceElement),Y.tracks.map(this.renderTrack))}}]),P}(u.Component);n.default=R,M(R,"displayName","FilePlayer"),M(R,"canPlay",g.canPlay.file)}(tt)),tt}(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=z,u=F,l=W;function g(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(A){return typeof A}:g=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},g(b)}function w(){if(typeof WeakMap!="function")return null;var b=new WeakMap;return w=function(){return b},b}function T(b){if(b&&b.__esModule)return b;if(b===null||g(b)!=="object"&&typeof b!="function")return{default:b};var D=w();if(D&&D.has(b))return D.get(b);var A={},H=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in b)if(Object.prototype.hasOwnProperty.call(b,N)){var C=H?Object.getOwnPropertyDescriptor(b,N):null;C&&(C.get||C.set)?Object.defineProperty(A,N,C):A[N]=b[N]}return A.default=b,D&&D.set(b,A),A}var E=[{key:"youtube",name:"YouTube",canPlay:l.canPlay.youtube,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(Sn())})})},{key:"soundcloud",name:"SoundCloud",canPlay:l.canPlay.soundcloud,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(Rn())})})},{key:"vimeo",name:"Vimeo",canPlay:l.canPlay.vimeo,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(En())})})},{key:"facebook",name:"Facebook",canPlay:l.canPlay.facebook,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(Tn())})})},{key:"streamable",name:"Streamable",canPlay:l.canPlay.streamable,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(kn())})})},{key:"wistia",name:"Wistia",canPlay:l.canPlay.wistia,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(Dn())})})},{key:"twitch",name:"Twitch",canPlay:l.canPlay.twitch,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(Ln())})})},{key:"dailymotion",name:"DailyMotion",canPlay:l.canPlay.dailymotion,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(An())})})},{key:"mixcloud",name:"Mixcloud",canPlay:l.canPlay.mixcloud,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(Mn())})})},{key:"vidyard",name:"Vidyard",canPlay:l.canPlay.vidyard,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(In())})})},{key:"kaltura",name:"Kaltura",canPlay:l.canPlay.kaltura,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(jn())})})},{key:"file",name:"FilePlayer",canPlay:l.canPlay.file,canEnablePIP:function(D){return l.canPlay.file(D)&&(document.pictureInPictureEnabled||(0,u.supportsWebKitPresentationMode)())&&!l.AUDIO_EXTENSIONS.test(D)},lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return T(Cn())})})}];n.default=E})(Bt);var Ve={},Mt=Number.isNaN||function(o){return typeof o=="number"&&o!==o};function Nn(n,o){return!!(n===o||Mt(n)&&Mt(o))}function xn(n,o){if(n.length!==o.length)return!1;for(var u=0;u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function k(a){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},k(a)}function $(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var p=5e3,h=function(a){C(r,a);var e=U(r);function r(){var t;A(this,r);for(var i=arguments.length,s=new Array(i),v=0;v0&&i<1;if(c){var O=this.player.getDuration();if(!O){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(O*i);return}this.player.seekTo(i)}},{key:"render",value:function(){var i=this.props.activePlayer;return i?u.default.createElement(i,D({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),r}(u.Component);n.default=h,$(h,"displayName","Player"),$(h,"propTypes",g.propTypes),$(h,"defaultProps",g.defaultProps)})(yr);var nt={},jt;function Jn(){return jt||(jt=1,function(n){function o(p){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(a){return typeof a}:o=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},o(p)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=g(z);function l(){if(typeof WeakMap!="function")return null;var p=new WeakMap;return l=function(){return p},p}function g(p){if(p&&p.__esModule)return p;if(p===null||o(p)!=="object"&&typeof p!="function")return{default:p};var h=l();if(h&&h.has(p))return h.get(p);var a={},e=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in p)if(Object.prototype.hasOwnProperty.call(p,r)){var t=e?Object.getOwnPropertyDescriptor(p,r):null;t&&(t.get||t.set)?Object.defineProperty(a,r,t):a[r]=p[r]}return a.default=p,h&&h.set(p,a),a}function w(p,h){var a=Object.keys(p);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(p);h&&(e=e.filter(function(r){return Object.getOwnPropertyDescriptor(p,r).enumerable})),a.push.apply(a,e)}return a}function T(p){for(var h=1;h"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function L(p){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)},L(p)}function I(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var M="64px",k={},$=function(p){A(a,p);var h=N(a);function a(){var e;E(this,a);for(var r=arguments.length,t=new Array(r),i=0;in.length)&&(o=n.length);for(var u=0,l=new Array(o);u"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ne(n){return Ne=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},Ne(n)}function X(n,o,u){return o in n?Object.defineProperty(n,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[o]=u,n}function dr(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return dr=function(){return n},n}function hr(n){if(n&&n.__esModule)return n;if(n===null||Te(n)!=="object"&&typeof n!="function")return{default:n};var o=dr();if(o&&o.has(n))return o.get(n);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in n)if(Object.prototype.hasOwnProperty.call(n,g)){var w=l?Object.getOwnPropertyDescriptor(n,g):null;w&&(w.get||w.set)?Object.defineProperty(u,g,w):u[g]=n[g]}return u.default=n,o&&o.set(n,u),u}var yo=(0,ye.lazy)(function(){return Promise.resolve().then(function(){return hr(Jn())})}),ho=typeof window<"u"&&window.document,mo=typeof He<"u"&&He.window&&He.window.document,vo=Object.keys(Ee.propTypes),_o=ho||mo?ye.Suspense:function(){return null},Re=[],go=function(o,u){var l,g;return g=l=function(w){so(E,w);var T=co(E);function E(){var b;uo(this,E);for(var D=arguments.length,A=new Array(D),H=0;H0&&arguments[0]!==void 0?arguments[0]:"player";return b.player?b.player.getInternalPlayer(N):null}),X(ee(b),"seekTo",function(N,C){if(!b.player)return null;b.player.seekTo(N,C)}),X(ee(b),"handleReady",function(){b.props.onReady(ee(b))}),X(ee(b),"getActivePlayer",(0,ot.default)(function(N){for(var C=0,x=[].concat(Re,at(o));C{const w=()=>{o(!1),document.body.classList.remove("overflow-hidden"),l(null)};return _.jsxs("div",{className:`${Ie.video} ${n?Ie.visible:""}`,children:[_.jsx("div",{className:Ie["opacity-layer"],onClick:w}),_.jsxs("div",{className:Ie.player,children:[_.jsx(Ir,{close:w}),g?_.jsx(xe,{classname:"error-trailer",children:"Video not found"}):_.jsx(Po,{controls:!0,height:"100%",playing:!0,url:`https://www.youtube.com/watch?v=${u}`,width:"100%"})]})]})},Ro="_play_e2dga_1",Eo="_title_e2dga_15",To="_triangle_e2dga_19",ko="_circle_e2dga_26",Do="_play__btn_e2dga_32",Lo="_text_e2dga_32",Ao="_trailorPlay_e2dga_1",ke={play:Ro,title:Eo,triangle:To,circle:ko,play__btn:Do,text:Lo,trailorPlay:Ao,"play-item":"_play-item_e2dga_49"},Mo=()=>_.jsx("button",{className:ke.play__btn,title:"Watch Trailer",children:_.jsxs("svg",{enableBackground:"new 0 0 213.7 213.7",height:"80px",version:"1.1",viewBox:"0 0 213.7 213.7",width:"80px",x:"0px",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",y:"0px",children:[_.jsx("polygon",{className:ke.triangle,fill:"none",points:"73.5,62.5 148.5,105.8 73.5,149.1 ",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"7"}),_.jsx("circle",{className:ke.circle,cx:"106.8",cy:"106.8",fill:"none",r:"103.3",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:"10",strokeWidth:"7"})]})}),Io=["trailer","clip","teaser"],mr=({classname:n})=>{const{movieType:o,id:u}=se(),[l,g]=z.useState(!1),[w,T]=z.useState(null),{data:E,isError:b}=ft("trailer_key",`/${o}/${u}/videos`,u),D=(E==null?void 0:E.results.length)||w,A=()=>{const N=(E==null?void 0:E.results.find(C=>Io.includes(C.type.toLowerCase())))||(E==null?void 0:E.results[0]);N&&(T(N.key),document.body.classList.add("overflow-hidden"),g(!0))};return _.jsx(_.Fragment,{children:D?_.jsxs(_.Fragment,{children:[" ",_.jsxs("div",{className:ke[n],onClick:A,children:[_.jsx(Mo,{}),_.jsx("span",{className:ke.title,children:"Watch Trailer"})]}),_.jsx(So,{isError:b,setShow:g,setVideoId:T,show:l,videoId:w})]}):null})},jo="_info_gv81z_1",Co="_error_gv81z_9",No="_text_gv81z_20",xo="_bold_gv81z_25",Uo="_info__content_gv81z_29",pe={info:jo,error:Co,"border-none":"_border-none_gv81z_14",text:No,bold:xo,info__content:Uo},Le=({data:n,title:o,keyName:u="",list:l=!1,classname:g="",children:w})=>_.jsx(_.Fragment,{children:n>0||n!=null&&n.length?_.jsxs("div",{className:`${pe.info} ${pe[g]}`,children:[_.jsx("span",{className:`${pe.text} ${pe.bold}`,children:o}),_.jsx("div",{className:pe.info__content,children:l?n==null?void 0:n.map((T,E)=>_.jsxs("span",{className:pe.text,children:[T[u]||T,(n==null?void 0:n.length)-1!==E&&", "]},E)):_.jsx("span",{className:pe.text,children:w})})]}):null}),$o="_about_1twwv_1",Vo="_company_1twwv_9",Wo="_company__logo_1twwv_16",Ho="_profit_1twwv_49",qo="_item_1twwv_56",Bo="_item__title_1twwv_56",Fo="_item__amount_1twwv_59",Ko="_item__amount_budget_1twwv_62",zo="_item__amount_deficit_1twwv_66",Yo="_item__amount_profit_1twwv_69",te={about:$o,"info-group":"_info-group_1twwv_4",company:Vo,company__logo:Wo,"icon-placeholder":"_icon-placeholder_1twwv_35",profit:Ho,item:qo,item__title:Bo,item__amount:Fo,item__amount_budget:Ko,item__amount_deficit:zo,item__amount_profit:Yo},Go=[{title:"Status:",prop:"status",list:!1,keyName:"",classname:"",child(n){return n[this.prop]}},{title:"Release Date:",prop:"release_date",list:!1,keyName:"",classname:"",child(n){return $t(n[this.prop]).format("MMM D, YYYY")}},{title:"Runtime:",prop:"runtime",list:!1,keyName:"",classname:"",child(n){return Tr(n[this.prop])}},{title:"Country:",prop:"production_countries",list:!0,keyName:"name",classname:""},{title:"Creator:",prop:"created_by",list:!0,keyName:"name",classname:""}],Xo=[{title:"Director:",prop:"director",list:!0,keyName:"name",classname:""},{title:"Writers:",prop:"writers",list:!0,keyName:"name",classname:""}],Zo=[{title:"Seasons:",prop:"number_of_seasons",list:!1,keyName:"",classname:"",child(n){return n[this.prop]}},{title:"Number Episodes:",prop:"number_of_episodes",list:!1,keyName:"",classname:"",child(n){return n[this.prop]}},{title:"Air Date:",prop:"first_air_date",list:!1,keyName:"",classname:"",child(n){return n[this.prop]}}],Qo=z.memo(({movieDetails:n})=>{const{movieType:o}=se();return _.jsx(_.Fragment,{children:o==="tv"&&_.jsx("div",{className:te["info-group"],children:Zo.map(u=>_.jsx(Le,{classname:u.classname,data:n[u.prop],keyName:u.keyName,list:u.list,title:u.title,children:u.child?u.child(n):null},u.title))})})}),Jo="/assets/not_image-4020c0b8.svg",ea=z.memo(({movieDetails:n})=>{var u;const o=Ue(l=>{var g;return(g=l.urlBaseForImages.url)==null?void 0:g.backdrop});return _.jsx(Le,{classname:"border-none",data:n==null?void 0:n.production_companies,title:"Production companies",children:_.jsx("div",{className:te.company,children:(u=n==null?void 0:n.production_companies)==null?void 0:u.map(({name:l,logo_path:g})=>_.jsx("div",{className:te.company__logo,title:l,children:g?_.jsx(Pe,{src:o+g}):_.jsx("div",{className:te["icon-placeholder"],children:_.jsx("img",{alt:"Not image",src:Jo})})},l))})})}),ta=z.memo(({movieDetails:n})=>{const{movieType:o}=se(),{budget:u,revenue:l}=n;return _.jsx(_.Fragment,{children:o==="movie"&&u?_.jsxs("div",{className:te.profit,children:[" ",u?_.jsxs("div",{className:te.item,children:[_.jsx("span",{className:te.item__title,children:"Budget:"}),_.jsxs("span",{className:`${te.item__amount} ${te.item__amount_budget}`,children:[u," $"]})]}):null,l?_.jsxs("div",{className:te.item,children:[_.jsx("span",{className:te.item__title,children:"Revenue:"}),_.jsxs("span",{className:`${te.item__amount} ${u>l?te.item__amount_deficit:te.item__amount_profit}`,children:[l," $"]})]}):null," "]}):null})}),ra=z.memo(({movieDetails:n})=>_.jsx("div",{className:te["info-group"],children:Go.map(o=>_.jsx(Le,{classname:o.classname,data:n[o.prop],keyName:o.keyName,list:o.list,title:o.title,children:o.child?o.child(n):null},o.title))})),na=()=>{const{movieType:n,id:o}=se(),{writers:u,director:l,isError:g,error:w}=$e().useCrew(n,o),T={director:l,writers:u};return _.jsx(_.Fragment,{children:g?_.jsx(Le,{classname:"error",data:"error",list:!1,children:(w==null?void 0:w.message)||"Error receiving data"}):_.jsx(_.Fragment,{children:Xo.map(E=>_.jsx(Le,{classname:E.classname,data:T[E.prop],keyName:E.keyName,list:E.list,title:E.title,children:E.child?E.child(T):null},E.title))})})},oa=()=>{const{movieType:n,id:o}=se(),{data:u}=$e().useMovieDetails(n,o);return _.jsxs("div",{className:te.about,children:[_.jsx(ta,{movieDetails:u}),_.jsx(Qo,{movieDetails:u}),_.jsx(ra,{movieDetails:u}),_.jsx(na,{}),_.jsx(ea,{movieDetails:u})]})},aa="_details_18h59_1",ia="_backdrop_18h59_16",ua="_content_18h59_42",la="_indicators_18h59_47",sa="_poster_18h59_59",ca="_poster__img_18h59_62",fa="_describe_18h59_72",pa="_title_18h59_75",ya="_subtitle_18h59_89",da="_row_18h59_102",ha="_overview_18h59_108",ma="_heading_18h59_112",va="_description_18h59_116",_a="_skeleton_18h59_122",ga="_content__indicators_18h59_131",Pa="_left_18h59_143",ba="_right_18h59_159",Oa="_genres_18h59_174",wa="_row_short_18h59_181",Sa="_group_18h59_206",Ra="_circle_18h59_212",Ea="_describe__title_18h59_228",Ta="_describe__text_18h59_233",q={details:aa,backdrop:ia,"opacity-layer":"_opacity-layer_18h59_34",content:ua,indicators:la,poster:sa,poster__img:ca,describe:fa,title:pa,subtitle:ya,row:da,overview:ha,heading:ma,description:va,skeleton:_a,"content-skeleton":"_content-skeleton_18h59_126",content__indicators:ga,left:Pa,right:ba,genres:Oa,row_short:wa,group:Sa,circle:Ra,describe__title:Ea,describe__text:Ta},ka=({title:n,date:o,link:u,subTitle:l})=>_.jsx(_.Fragment,{children:_.jsx("h1",{className:q.title,children:_.jsxs("a",{href:u||null,rel:"noreferrer noopener",target:"_black",title:"Go to the movie's website",children:[`${n} (${$t(o).format("YYYY")})`,_.jsx("span",{className:q.subtitle,children:l})]})})}),Da=z.memo(({data:n})=>{const{homepage:o,name:u,title:l,genres:g,release_date:w,tagline:T,vote_average:E}=n,b=g==null?void 0:g.map(D=>D.id);return _.jsx(_.Fragment,{children:n&&_.jsxs("div",{className:q.describe,children:[_.jsx(ka,{date:w,link:o,subTitle:T,title:u||l}),_.jsx(kr,{classname:"genres_single-movie",genresMovie:b}),_.jsxs("div",{className:q.row,children:[_.jsx(Dr,{classname:"rating_single-movie",rating:E.toFixed(1)}),_.jsx(mr,{classname:"play"})]}),_.jsx(oa,{})]})})}),La="_poster_1nvim_1",Aa="_poster__img_1nvim_36",it={poster:La,poster__img:Aa},vr=z.memo(({poster:n})=>{vr.displayName="Poster";const o=Ue(u=>{var l;return(l=u.urlBaseForImages.url)==null?void 0:l.backdrop});return _.jsx("div",{className:it.poster,children:n?_.jsx(Pe,{className:it.poster__img,src:o+n}):_.jsx(Pe,{className:it.poster__img,src:Lr})})}),Ma=()=>_.jsx("div",{className:q.skeleton,children:_.jsxs("div",{className:q["content-skeleton"],children:[_.jsxs("div",{className:q.content__indicators,children:[_.jsx("div",{className:`${q.left} skeleton`}),_.jsxs("div",{className:q.right,children:[_.jsx("h1",{className:`${q.row} ${q.title} skeleton`}),_.jsx("div",{className:`${q.row} ${q.genres} skeleton`}),_.jsxs("div",{className:q.group,children:[_.jsx("div",{className:`${q.circle} skeleton`}),_.jsx("div",{className:`${q.circle} skeleton`})]}),_.jsx("div",{className:`${q.row} skeleton`}),_.jsx("div",{className:`${q.row} ${q.row_short} skeleton`}),_.jsx("div",{className:`${q.row} ${q.row_short} skeleton`}),_.jsx("div",{className:`${q.row} ${q.row_short} skeleton`}),_.jsx("div",{className:`${q.row} ${q.row_short} skeleton`}),_.jsx("div",{className:`${q.row} ${q.row_short} skeleton`}),_.jsx("div",{className:`${q.row} ${q.row_short} skeleton`})]})]}),_.jsxs("div",{className:q.describe,children:[_.jsx("div",{className:`${q.row} ${q.describe__title} skeleton`}),_.jsx("div",{className:`${q.row} ${q.describe__text} skeleton`})]})]})}),Ia=()=>{const{movieType:n,id:o}=se(),u=Ue(b=>{var D;return(D=b.urlBaseForImages.url)==null?void 0:D.backdrop}),{data:l,isLoading:g,isError:w,error:T,isFetching:E}=ft(n,`/${n}/${o}`,o);return _.jsx(xe,{classname:"main",error:T,isError:w,title:"Video description",children:_.jsxs("div",{className:q.details,children:[_.jsx("div",{className:q.backdrop,children:_.jsx(Pe,{src:`${u}${l==null?void 0:l.backdrop_path}`})}),_.jsx("div",{className:q["opacity-layer"]}),_.jsxs("div",{className:"wrapper",children:[_.jsx("h1",{className:"title-article",children:`${n.toUpperCase()} description`}),g||E?_.jsx(Ma,{}):_.jsxs("div",{className:q.content,children:[_.jsxs("div",{className:q.indicators,children:[_.jsx(vr,{poster:l==null?void 0:l.poster_path}),_.jsx(Da,{data:l})]}),_.jsxs("div",{className:q.overview,children:[_.jsx("div",{className:"title-article",children:"Overview"}),_.jsx("div",{className:q.description,children:l==null?void 0:l.overview})]})]})]})]})})},ja="_item_1u6iq_1",Ca="_avatar_1u6iq_16",Na="_name_1u6iq_49",xa="_character_1u6iq_61",Ua="_skeletons__item_1u6iq_77",$a="_circle_1u6iq_92",Va="_row_1u6iq_98",Wa="_row_last_1u6iq_104",fe={item:ja,avatar:Ca,name:Na,character:xa,skeletons__item:Ua,circle:$a,row:Va,row_last:Wa},Ha=({data:n})=>{const o=Ue(T=>{var E;return(E=T.urlBaseForImages.url)==null?void 0:E.profile}),{id:u,profile_path:l,name:g,character:w}=n;return _.jsxs("li",{className:fe.item,children:[_.jsx(Ar,{className:"link",to:`/person/${u}`}),_.jsx("p",{className:fe.avatar,children:_.jsx(Pe,{src:l?o+l:jr})}),_.jsx("p",{className:fe.name,children:g}),_.jsx("p",{className:fe.character,children:w})]})},qa=z.memo(({dataList:n})=>_.jsx(_.Fragment,{children:n.map((o,u)=>_.jsx(Ha,{data:o},o.id+u))})),Ba=Vt(qa),Fa=()=>{const n=+getComputedStyle(document.querySelector(":root")).getPropertyValue("--count-skeletons-actors");return _.jsx(_.Fragment,{children:Array(n).fill("skeleton").map((o,u)=>_.jsxs("div",{className:`${fe.skeletons__item}`,children:[_.jsx("div",{className:`${fe.circle} skeleton`}),_.jsx("div",{className:`${fe.row} skeleton`}),_.jsx("div",{className:`${fe.row_last} skeleton`})]},u))})},Ka=Wt(Fa),za=()=>{const{movieType:n,id:o}=se(),{actors:u,isError:l,error:g,isLoading:w}=$e().useCrew(n,o);return _.jsxs(xe,{error:g,isError:l,title:"Top actors",children:[_.jsx(Ka,{isLoading:w}),_.jsx(Ba,{data:u,dataList:u,title:"Top actors"})]})},Ya="_video_3cjdp_1",Ga="_video__thumbnail_3cjdp_31",Xa="_video__title_3cjdp_47",Za="_skeletons_3cjdp_59",Qa="_thumb_3cjdp_89",Ja="_row_3cjdp_96",de={video:Ya,video__thumbnail:Ga,video__title:Xa,skeletons:Za,"skeleton-card":"_skeleton-card_3cjdp_75",thumb:Qa,row:Ja},ei=()=>{const n=+getComputedStyle(document.querySelector(":root")).getPropertyValue("--count-skeletons-trailers");return _.jsx("div",{className:de.skeletons,children:new Array(n).fill("skeleton").map((o,u)=>_.jsxs("div",{className:de["skeleton-card"],children:[_.jsx("div",{className:`skeleton ${de.thumb}`}),_.jsx("div",{className:`skeleton ${de.row}`})]},u))})},ti=Wt(ei),ri=({data:n})=>{const{id:o,key:u,name:l}=n;return _.jsxs("li",{className:de.video,children:[_.jsxs("div",{className:de.video__thumbnail,children:[_.jsx(Pe,{src:`https://img.youtube.com/vi/${u}/mqdefault.jpg`}),_.jsx(mr,{classname:"play-item"})]}),_.jsx("div",{className:de.video__title,children:l})]},o)},ni=z.memo(({dataList:n})=>_.jsx(_.Fragment,{children:n.map(o=>_.jsx(ri,{data:o},o.id))})),oi=Vt(ni),ai=()=>{const{movieType:n,id:o}=se(),{data:u,isLoading:l,isError:g,error:w}=$e().useTrailersList(n,o);return _.jsxs(xe,{error:w,isError:g,title:"Official videos",children:[_.jsx(ti,{isLoading:l}),_.jsx(oi,{data:u==null?void 0:u.results,dataList:u==null?void 0:u.results,isLoading:l,title:"Official videos"})]})},ii=()=>{const{movieType:n}=se(),o=n==="tv"?"Similar TV Shows":"Similar Movies";return _.jsx(Ht,{keyApi:"useSimilar",title:o})},ui=()=>_.jsx(_.Fragment,{children:_.jsx(Ht,{keyApi:"useRecommendations",title:"Recommendations"})}),li=()=>{const{movieType:n,id:o}=se(),{error:u}=ft(n,`/${n}/${o}`,o);return _.jsxs(Mr,{error:u,children:[_.jsx(Ia,{}),_.jsx(za,{}),_.jsx(ai,{}),_.jsx(ii,{}),_.jsx(ui,{})]})},fi=()=>_.jsx(_.Fragment,{children:_.jsx(li,{})});export{fi as default}; diff --git a/assets/MovieSinglePage-b7c16fe2.css b/assets/MovieSinglePage-b7c16fe2.css new file mode 100644 index 0000000..afacfda --- /dev/null +++ b/assets/MovieSinglePage-b7c16fe2.css @@ -0,0 +1 @@ +._video_1irfm_1{display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:fixed;top:0;left:0;opacity:0;visibility:hidden;transition:all .3s ease-in-out;z-index:10}._video_1irfm_1 ._opacity-layer_1irfm_15{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.25);backdrop-filter:blur(3.5px);-webkit-backdrop-filter:blur(3.5px);opacity:0;transition:opacity .4s}._video_1irfm_1 ._player_1irfm_27{position:relative;width:800px;aspect-ratio:16/9;transform:scale(.2);transition:transform .25s}._video_1irfm_1 ._player_1irfm_27:before{content:"Loading...";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:28px;background-color:var(--main);color:var(--secondary);z-index:-1}._video_1irfm_1._visible_1irfm_46{opacity:1;visibility:visible}._video_1irfm_1._visible_1irfm_46 ._opacity-layer_1irfm_15{opacity:1}._video_1irfm_1._visible_1irfm_46 ._player_1irfm_27{transform:scale(1)}._play_e2dga_1{display:flex;align-items:center;gap:20px;cursor:pointer}._play_e2dga_1 svg{width:60px}@media only screen and (min-width: 767px){._play_e2dga_1 svg{width:80px}}._play_e2dga_1 ._title_e2dga_15{font-size:20px;transition:all .7s ease-in-out}._play_e2dga_1 ._triangle_e2dga_19{stroke-dasharray:240;stroke-dashoffset:480;stroke:var(--secondary);transform:translateY(0);transition:all .7s ease-in-out}._play_e2dga_1 ._circle_e2dga_26{stroke:var(--secondary);stroke-dasharray:650;stroke-dashoffset:1300;transition:all .5s ease-in-out}._play_e2dga_1 ._play__btn_e2dga_32:hover ._text_e2dga_32,._play_e2dga_1 ._play__btn_e2dga_32:focus-visible ._text_e2dga_32{color:var(--pink)}._play_e2dga_1 ._play__btn_e2dga_32:hover ._triangle_e2dga_19,._play_e2dga_1 ._play__btn_e2dga_32:focus-visible ._triangle_e2dga_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_e2dga_1 .7s ease-in-out}._play_e2dga_1 ._play__btn_e2dga_32:hover ._circle_e2dga_26,._play_e2dga_1 ._play__btn_e2dga_32:focus-visible ._circle_e2dga_26{stroke-dashoffset:0;stroke:var(--pink)}._play-item_e2dga_49{position:absolute;inset:0}._play-item_e2dga_49 svg{width:60px}@media only screen and (min-width: 767px){._play-item_e2dga_49 svg{width:80px}}._play-item_e2dga_49 ._title_e2dga_15{display:none}._play-item_e2dga_49 ._triangle_e2dga_19{stroke-dasharray:240;stroke-dashoffset:480;stroke:var(--secondary);transform:translateY(0);transition:all .7s ease-in-out}._play-item_e2dga_49 ._circle_e2dga_26{stroke:var(--secondary);stroke-dasharray:650;stroke-dashoffset:1300;transition:all .5s ease-in-out}._play-item_e2dga_49 ._play__btn_e2dga_32{position:absolute;inset:0}._play-item_e2dga_49 ._play__btn_e2dga_32:hover,._play-item_e2dga_49 ._play__btn_e2dga_32:focus-visible{background-color:#0707fd40}._play-item_e2dga_49 ._play__btn_e2dga_32:hover ._text_e2dga_32,._play-item_e2dga_49 ._play__btn_e2dga_32:focus-visible ._text_e2dga_32{color:var(--pink)}._play-item_e2dga_49 ._play__btn_e2dga_32:hover ._triangle_e2dga_19,._play-item_e2dga_49 ._play__btn_e2dga_32:focus-visible ._triangle_e2dga_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_e2dga_1 .7s ease-in-out}._play-item_e2dga_49 ._play__btn_e2dga_32:hover ._circle_e2dga_26,._play-item_e2dga_49 ._play__btn_e2dga_32:focus-visible ._circle_e2dga_26{stroke-dashoffset:0;stroke:var(--pink)}._info_gv81z_1{border-bottom:1px solid rgba(255,255,255,.1);padding:10px 0;display:flex;flex-wrap:wrap;align-items:center;flex-grow:1}._info_gv81z_1._error_gv81z_9{color:#ee5b5b;font-size:18px;justify-content:center}._info_gv81z_1._border-none_gv81z_14{border:none}._info_gv81z_1._border-none_gv81z_14:not(:last-child){margin-right:20px}._info_gv81z_1 ._text_gv81z_20{margin-right:10px;line-height:24px;text-transform:capitalize}._info_gv81z_1 ._text_gv81z_20._bold_gv81z_25{font-weight:600;opacity:1}._info__content_gv81z_29{display:flex;flex-wrap:wrap;align-items:center}._about_1twwv_1{color:var(--secondary)}._about_1twwv_1 ._info-group_1twwv_4{display:flex;flex-wrap:wrap;width:100%}._about_1twwv_1 ._company_1twwv_9{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0;align-items:center}._about_1twwv_1 ._company_1twwv_9 ._company__logo_1twwv_16{display:flex;height:50px;flex-shrink:0;background:#c6cacc;border-radius:15px}._about_1twwv_1 ._company_1twwv_9 ._company__logo_1twwv_16 span{display:flex;align-items:center;background:aliceblue;border-radius:15px}._about_1twwv_1 ._company_1twwv_9 ._company__logo_1twwv_16 span img{width:100px;height:100%;padding:5px 10px;object-fit:contain}._about_1twwv_1 ._company_1twwv_9 ._company__logo_1twwv_16 ._icon-placeholder_1twwv_35{height:100%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:aliceblue;border-radius:15px;color:#000}._about_1twwv_1 ._company_1twwv_9 ._company__logo_1twwv_16 ._icon-placeholder_1twwv_35 svg{width:100%;height:100%}._about_1twwv_1 ._profit_1twwv_49{display:flex;flex-wrap:wrap;gap:20px;border-bottom:1px solid rgba(255,255,255,.1);padding:10px 0}._about_1twwv_1 ._profit_1twwv_49 ._item_1twwv_56 ._item__title_1twwv_56{margin-right:10px}._about_1twwv_1 ._profit_1twwv_49 ._item_1twwv_56 ._item__amount_1twwv_59{white-space:nowrap}._about_1twwv_1 ._profit_1twwv_49 ._item_1twwv_56 ._item__amount_budget_1twwv_62{color:gold;text-shadow:0 0 5px black}._about_1twwv_1 ._profit_1twwv_49 ._item_1twwv_56 ._item__amount_deficit_1twwv_66{color:#d93030}._about_1twwv_1 ._profit_1twwv_49 ._item_1twwv_56 ._item__amount_profit_1twwv_69{color:#149687}._details_18h59_1{position:relative;width:100%;background-color:var(--main);padding-top:100px;padding-bottom:50px}@media only screen and (min-width: 639px){._details_18h59_1{margin-bottom:0;padding-top:120px;height:calc(100% + 220px);min-height:1000px}}._details_18h59_1 ._backdrop_18h59_16{width:100%;height:100%;position:absolute;inset:0;opacity:.25;overflow:hidden}._details_18h59_1 ._backdrop_18h59_16>span{width:100%;height:100%}._details_18h59_1 ._backdrop_18h59_16>span img{width:100%;height:100%;object-fit:cover;object-position:center}._details_18h59_1 ._opacity-layer_18h59_34{width:100%;height:250px;background:linear-gradient(180deg,rgba(4,21,45,0) 0%,var(--bg-body) 80%);position:absolute;bottom:0;left:0}._details_18h59_1 ._content_18h59_42{display:flex;flex-direction:column;gap:30px}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47{margin-top:40px;display:flex;position:relative;flex-direction:column;gap:25px}@media only screen and (min-width: 767px){._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47{flex-direction:row}}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._poster_18h59_59{flex-shrink:0}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._poster_18h59_59 ._poster__img_18h59_62{width:100%;display:block;border-radius:12px}@media only screen and (min-width: 639px){._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._poster_18h59_59 ._poster__img_18h59_62{max-width:350px}}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._describe_18h59_72{color:var(--secondary)}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._describe_18h59_72 ._title_18h59_75{font-size:28px;line-height:40px}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._describe_18h59_72 ._title_18h59_75 a{display:block;width:fit-content}@media only screen and (min-width: 767px){._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._describe_18h59_72 ._title_18h59_75{font-size:34px;line-height:44px}}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._describe_18h59_72 ._title_18h59_75 ._subtitle_18h59_89{display:block;font-size:16px;line-height:24px;margin-bottom:15px;font-style:italic}@media only screen and (min-width: 639px){._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._describe_18h59_72 ._title_18h59_75 ._subtitle_18h59_89{font-size:20px;line-height:28px}}._details_18h59_1 ._content_18h59_42 ._indicators_18h59_47 ._describe_18h59_72 ._row_18h59_102{display:flex;align-items:center;gap:25px;margin-bottom:20px}._details_18h59_1 ._content_18h59_42 ._overview_18h59_108{color:var(--secondary);margin-bottom:10px}._details_18h59_1 ._content_18h59_42 ._overview_18h59_108 ._heading_18h59_112{font-size:28px;margin-bottom:10px}._details_18h59_1 ._content_18h59_42 ._overview_18h59_108 ._description_18h59_116{padding-top:15px;font-size:1rem;line-height:30px;text-align:justify}._details_18h59_1 ._skeleton_18h59_122{position:relative;margin-top:40px}._details_18h59_1 ._skeleton_18h59_122 ._content-skeleton_18h59_126{display:flex;flex-direction:column;gap:25px}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131{margin:0;display:flex;position:relative;flex-direction:column;gap:25px}@media only screen and (min-width: 767px){._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131{flex-direction:row}}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._left_18h59_143{position:relative;flex-shrink:0;width:100%;height:100%;aspect-ratio:1/1.5;border-radius:12px;overflow:hidden}@media only screen and (min-width: 767px){._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._left_18h59_143{width:40%;max-height:700px;aspect-ratio:1/1.5}}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159{width:100%;display:flex;flex-direction:column;gap:15px}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102{width:100%;height:25px;border-radius:50px}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._title_18h59_75{width:75%;height:70px}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._genres_18h59_174{width:50%}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._overview_18h59_108{width:30%;height:40px}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._row_short_18h59_181:nth-child(odd){width:60%}@media only screen and (min-width: 767px){._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._row_short_18h59_181:nth-child(odd){width:40%}}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._row_short_18h59_181:nth-child(even){width:70%}@media only screen and (min-width: 767px){._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._row_short_18h59_181:nth-child(even){width:60%}}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._row_short_18h59_181:last-child{width:90%;height:60px}@media only screen and (min-width: 767px){._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._row_18h59_102._row_short_18h59_181:last-child{width:70%}}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._group_18h59_206{display:inline-flex;flex-grow:0;align-items:center;gap:20px}._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._group_18h59_206>._circle_18h59_212{border-radius:50%;height:60px;width:60px}@media only screen and (min-width: 767px){._details_18h59_1 ._skeleton_18h59_122 ._content__indicators_18h59_131 ._right_18h59_159 ._group_18h59_206>._circle_18h59_212{width:80px;height:80px}}._details_18h59_1 ._skeleton_18h59_122 ._describe_18h59_72{display:flex;flex-direction:column;gap:20px}._details_18h59_1 ._skeleton_18h59_122 ._describe__title_18h59_228{height:40px;width:150px;border-right:30px}._details_18h59_1 ._skeleton_18h59_122 ._describe__text_18h59_233{width:100%;height:150px}._poster_1nvim_1{position:relative;flex-shrink:0;width:100%;height:100%;background-color:var(--bg-skeleton);aspect-ratio:1/1.5;border-radius:12px;overflow:hidden;z-index:2}._poster_1nvim_1:before{content:"Wait...";position:absolute;inset:0;color:var(--secondary);font-size:28px;display:flex;align-items:center;justify-content:center}._poster_1nvim_1>span{height:100%;width:100%}._poster_1nvim_1>span img{width:100%}@media only screen and (min-width: 767px){._poster_1nvim_1{width:40%;max-height:700px;aspect-ratio:1/1.5}}._poster_1nvim_1 ._poster__img_1nvim_36{width:100%;display:block;border-radius:12px}._item_1u6iq_1{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;width:125px;color:var(--secondary)}@media only screen and (min-width: 767px){._item_1u6iq_1{width:175px}}._item_1u6iq_1 ._avatar_1u6iq_16{width:125px;height:125px;border-radius:50%;overflow:hidden;border:2px solid snow;background-color:var(--bg-skeleton)}@media only screen and (min-width: 767px){._item_1u6iq_1 ._avatar_1u6iq_16{width:175px;height:175px;margin-bottom:25px;border-radius:50%}}._item_1u6iq_1 ._avatar_1u6iq_16>span{width:125px;height:125px}@media only screen and (min-width: 767px){._item_1u6iq_1 ._avatar_1u6iq_16>span{width:175px;height:175px;margin-bottom:25px}}._item_1u6iq_1 ._avatar_1u6iq_16 img{width:100%;height:100%;object-fit:cover;display:block}._item_1u6iq_1 ._name_1u6iq_49{font-size:14px;line-height:20px;font-weight:600;flex-grow:1}@media only screen and (min-width: 767px){._item_1u6iq_1 ._name_1u6iq_49{font-size:18px;line-height:24px}}._item_1u6iq_1 ._character_1u6iq_61{font-size:14px;line-height:20px;flex-grow:1}._item_1u6iq_1 ._character_1u6iq_61 span{display:block;padding-right:5px}@media only screen and (min-width: 767px){._item_1u6iq_1 ._character_1u6iq_61{font-size:16px;line-height:24px}}._skeletons__item_1u6iq_77{width:100%;max-width:125px;position:relative;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0}@media only screen and (min-width: 767px){._skeletons__item_1u6iq_77{max-width:175px}}._skeletons__item_1u6iq_77 ._circle_1u6iq_92{width:100%;aspect-ratio:1/1;border-radius:50%;margin-bottom:25px}._skeletons__item_1u6iq_77 ._row_1u6iq_98{width:100%;height:20px;border-radius:10px;margin-bottom:16px}._skeletons__item_1u6iq_77 ._row_last_1u6iq_104{width:75%;height:20px;border-radius:10px;margin:0 auto}._video_3cjdp_1{position:relative;flex-grow:1;display:flex;gap:15px;flex-direction:column;justify-content:center;align-items:center;text-align:center;width:100%;height:100%;aspect-ratio:16/9;color:var(--secondary);flex-shrink:0}@media only screen and (min-width: 639px){._video_3cjdp_1{width:287px}}@media only screen and (min-width: 767px){._video_3cjdp_1{width:350px}}@media only screen and (min-width: 1023px){._video_3cjdp_1{width:273px}}._video_3cjdp_1 ._video__thumbnail_3cjdp_31{position:relative;width:100%;height:100%;aspect-ratio:16/9;background-color:var(--bg-skeleton)}._video_3cjdp_1 ._video__thumbnail_3cjdp_31>span{width:100%;height:100%}._video_3cjdp_1 ._video__thumbnail_3cjdp_31 img{width:100%;display:block;transition:all .7s ease-in-out}._video_3cjdp_1 ._video__title_3cjdp_47{font-size:14px;line-height:20px;flex-grow:1}@media only screen and (min-width: 767px){._video_3cjdp_1 ._video__title_3cjdp_47{font-size:16px;line-height:24px}}._skeletons_3cjdp_59{display:flex;gap:10px;width:100%;overflow-x:auto;margin-right:-20px;margin-left:-20px;padding:0 20px}@media only screen and (min-width: 767px){._skeletons_3cjdp_59{gap:20px;margin:0;padding:0}}._skeletons_3cjdp_59 ._skeleton-card_3cjdp_75{display:grid;grid-template-rows:1fr 20px;justify-items:center;gap:15px;width:220px;flex-shrink:0;flex-grow:1}@media only screen and (min-width: 767px){._skeletons_3cjdp_59 ._skeleton-card_3cjdp_75{width:280px}}._skeletons_3cjdp_59 ._skeleton-card_3cjdp_75 ._thumb_3cjdp_89{height:100%;width:100%;aspect-ratio:16/9;border-radius:12px;margin-bottom:10px}._skeletons_3cjdp_59 ._skeleton-card_3cjdp_75 ._row_3cjdp_96{height:20px;width:80%;border-radius:10px;margin-bottom:10px} diff --git a/assets/NotFoundPage-d6e1b37b.js b/assets/NotFoundPage-d6e1b37b.js new file mode 100644 index 0000000..9bd61e1 --- /dev/null +++ b/assets/NotFoundPage-d6e1b37b.js @@ -0,0 +1 @@ +import{m as o,N as t}from"./index-6d8ecf0d.js";const a=()=>o.jsx(t,{});export{a as default}; diff --git a/assets/PersonPage-c03d0b99.css b/assets/PersonPage-c03d0b99.css new file mode 100644 index 0000000..29d27f7 --- /dev/null +++ b/assets/PersonPage-c03d0b99.css @@ -0,0 +1 @@ +._opacity-backdrop_dx9nm_1{position:absolute;inset:0;opacity:.3;z-index:-1}._opacity-backdrop_dx9nm_1>span{width:100%;height:100%}._opacity-backdrop_dx9nm_1>span img{filter:blur(15px)}._profile_dx9nm_15{display:flex;flex-direction:column}._profile__content_dx9nm_19{padding:40px 0 50px;display:flex;flex-direction:column;width:100%;gap:30px;line-height:30px}@media only screen and (min-width: 639px){._profile__content_dx9nm_19{flex-direction:row;height:570px}}._profile__content__photo_dx9nm_33{min-width:240px;aspect-ratio:9/16;width:100%;border-radius:12px;background-color:var(--bg-skeleton);overflow:hidden;max-height:600px}@media only screen and (min-width: 767px){._profile__content__photo_dx9nm_33{width:65%;gap:10px}}@media only screen and (min-width: 1023px){._profile__content__photo_dx9nm_33{width:50%;gap:10px}}._profile__content__photo_dx9nm_33>span{width:100%;height:100%}._profile__content__photo_dx9nm_33>span img{border-radius:12px;object-position:top}._profile__content__info_dx9nm_62{height:fit-content;color:var(--secondary);width:100%}._profile__content__info_dx9nm_62 ._info-item_dx9nm_67,._profile__content__info_dx9nm_62 ._info-span_dx9nm_68{font-size:1rem;text-transform:uppercase}._profile__content__info_dx9nm_62 ._info-item_dx9nm_67 ._name_dx9nm_72,._profile__content__info_dx9nm_62 ._info-span_dx9nm_68 ._name_dx9nm_72{color:var(--text-person-name-span-color);text-shadow:1px 0 black}._profile__content__info_dx9nm_62 ._info-item_dx9nm_67 ._text_dx9nm_77,._profile__content__info_dx9nm_62 ._info-span_dx9nm_68 ._text_dx9nm_77{text-transform:initial;padding-left:5px;font-size:1.2rem;color:var(--secondary)}._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84{position:relative;text-align:start;padding-right:20px;display:-webkit-box;-webkit-line-clamp:6;margin:20px auto;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;color:var(--secondary)}._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96{width:50px;height:35px;position:absolute;bottom:2px;right:-35px;transform:translate(-50%);z-index:1;outline:none;border-radius:12px;font-size:1.2rem;transition:all .1s ease-in-out}._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:focus,._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:active,._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:focus-visible{outline:none}._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:hover,._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:focus-visible{bottom:0}._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:hover>svg,._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:focus-visible ._svg_dx9nm_115{transform:rotate(90deg);transition:all .1s ease-in-out}._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96:active svg{scale:1}._profile__content__info_dx9nm_62 ._biography_short_dx9nm_84 ._more__btn_dx9nm_96 svg{width:100%;height:100%}._profile__content__info_skeleton_dx9nm_126{display:grid;gap:10px}._profile__content__info_skeleton_dx9nm_126 ._info-item_skeleton_dx9nm_130{height:20px}._profile__content__info_skeleton_dx9nm_126 ._info-item_skeleton_dx9nm_130:first-child{width:70%}._profile__content__info_skeleton_dx9nm_126 ._info-item_skeleton_dx9nm_130:nth-child(2){width:145px}._profile__content__info_skeleton_dx9nm_126 ._info-item_skeleton_dx9nm_130:nth-child(3){width:200px}._profile__content__info_skeleton_dx9nm_126 ._info-item_skeleton_dx9nm_130:nth-child(4){width:220px}._profile__content__info_skeleton_dx9nm_126 ._info-item_skeleton_dx9nm_130:nth-child(5){width:100%}._profile__content__info_skeleton_dx9nm_126 ._info-item_skeleton_dx9nm_130:last-child{width:190px}._profile__content__info_skeleton_dx9nm_126 ._biography_skeleton_dx9nm_151{height:220px;margin-bottom:30px}._btn__group-skeleton_dx9nm_156{display:flex;flex-wrap:wrap;gap:10px;container:skeleton-container/inline-size}._btn__group-skeleton_dx9nm_156 ._btn__sort-skeleton_dx9nm_162{position:relative;min-width:135px;height:40px;display:grid;grid-auto-flow:column;border-radius:30px;overflow:hidden}._btn__group-skeleton_dx9nm_156 ._btn__sort-skeleton_dx9nm_162:nth-child(3){min-width:150px}._btn__group-skeleton_dx9nm_156 ._btn__sort-skeleton_dx9nm_162:last-child{min-width:130px}@container skeleton-container (width < 440px){._btn__group-skeleton_dx9nm_156 ._btn__sort-skeleton_dx9nm_162{justify-content:space-between;width:100%}}._modal_dx9nm_184{position:fixed;display:flex;align-items:center;justify-content:center;inset:0;background-color:#000000b3;z-index:30}._modal__content_dx9nm_193{position:absolute;width:90%;max-height:80vh;font-size:18px;top:50%;left:50%;color:#000;transform:translate(-50%,-50%)}._modal__content_dx9nm_193:before,._modal__content_dx9nm_193:after{content:"";position:absolute;left:0;right:0;height:30px;background-color:var(--main)}._modal__content_dx9nm_193:before{top:-1px;border-top-left-radius:20px;border-top-right-radius:20px}._modal__content_dx9nm_193:after{bottom:-6px;border-bottom-left-radius:20px;border-bottom-right-radius:20px}._modal__content_dx9nm_193 ._modal__text_dx9nm_221{max-height:inherit;overflow:auto;border-radius:20px;background-color:var(--main);color:var(--secondary);padding:20px;white-space:break-spaces}@media only screen and (min-width: 767px){._modal__content_dx9nm_193{width:70%}}._heading_dx9nm_236{display:flex;align-items:center;flex-direction:column;gap:20px;padding-top:20px;justify-content:space-between}@media only screen and (min-width: 479px){._heading_dx9nm_236{align-items:center;flex-direction:row}}._container-sort_dx9nm_251{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;container:sort-btn-container/inline-size}._link_pink_dx9nm_259:hover,._link_pink_dx9nm_259:focus-visible{color:var(--pink)}._grid_person-movies_dx9nm_264{margin-top:20px!important} diff --git a/assets/PersonPage-c2261f20.js b/assets/PersonPage-c2261f20.js new file mode 100644 index 0000000..cb461a3 --- /dev/null +++ b/assets/PersonPage-c2261f20.js @@ -0,0 +1 @@ +import{m as e,x,k as b,y as B,r as a,u as v,E as $,z as Q,A as D,V as I,B as Y,C as F,D as T,l as U,I as y,q as w,L as S,N as V}from"./index-6d8ecf0d.js";import{B as C}from"./index-d98d5432.js";import{B as W,a as G}from"./avatar-26fbfa6a.js";const J="data:image/webp;base64,UklGRpYAAABXRUJQVlA4WAoAAAAQAAAAFwAAFwAAQUxQSEYAAAABLyAQSPEomR4REQNWkWQ1WpIDBOR/6iSchrf+zZAxENH/CcCLdsoBQtIMJo8IaUaTR4RmYnKmKfeNgq8VYjr4qTEOBc8CVlA4ICoAAADwAgCdASoYABgAPpE6mEeloyKhMAgAsBIJaQAAe8jIAAD+9/D6/v1gAAA=",H="data:image/webp;base64,UklGRpoAAABXRUJQVlA4WAoAAAAQAAAAFwAAFwAAQUxQSEgAAAABLyAQSPEomR4REQMGsW1FecMrQARQA1hBE7C9/mk+a4GI/k8ATvxdR9CDJokASvkczDt5WkjoTUCTaHUuaWJH55LGns63a3NWUDggLAAAAPACAJ0BKhgAGAA+kTqXR6WjIiEwCACwEglpAAB7yMgAAP730+FQ3/7qaAAA",u=({toggleDirection:o,name:s,direction:l})=>e.jsx("div",{className:x["btn-wrapper"],children:e.jsxs(C,{classname:`${x["sort-btn"]} ${l[s]?"":x["sort-btn_inactive"]}`,name:s,onClick:o,children:[e.jsx("span",{children:s}),e.jsx("img",{alt:"Sort",className:x["sort-btn__img"],src:l[s]==="up"||l[s]===""?H:J})]})}),O=({clearSort:o})=>e.jsx(C,{classname:`${x["sort-btn"]} ${x["sort-btn_clear"]}`,onClick:()=>o(),children:e.jsx("span",{children:"Clear sort"})}),q="_profile_dx9nm_15",z="_profile__content_dx9nm_19",K="_profile__content__photo_dx9nm_33",X="_profile__content__info_dx9nm_62",Z="_name_dx9nm_72",ee="_text_dx9nm_77",se="_biography_short_dx9nm_84",ne="_more__btn_dx9nm_96",oe="_svg_dx9nm_115",te="_profile__content__info_skeleton_dx9nm_126",ie="_biography_skeleton_dx9nm_151",le="_modal_dx9nm_184",re="_modal__content_dx9nm_193",ae="_modal__text_dx9nm_221",ce="_heading_dx9nm_236",_e="_link_pink_dx9nm_259",n={"opacity-backdrop":"_opacity-backdrop_dx9nm_1",profile:q,profile__content:z,profile__content__photo:K,profile__content__info:X,"info-item":"_info-item_dx9nm_67","info-span":"_info-span_dx9nm_68",name:Z,text:ee,biography_short:se,more__btn:ne,svg:oe,profile__content__info_skeleton:te,"info-item_skeleton":"_info-item_skeleton_dx9nm_130",biography_skeleton:ie,"btn__group-skeleton":"_btn__group-skeleton_dx9nm_156","btn__sort-skeleton":"_btn__sort-skeleton_dx9nm_162",modal:le,modal__content:re,modal__text:ae,heading:ce,"container-sort":"_container-sort_dx9nm_251",link_pink:_e,"grid_person-movies":"_grid_person-movies_dx9nm_264"},me=({endpoints:o,media_type:s})=>{const{id:l}=b(),{endpoint:r,onTabChange:m}=B(o),[_,d]=a.useState([]),[t,p]=a.useState({title:"",date:"",rating:""}),{data:i,isLoading:h,isError:f,error:E,isFetching:M}=v().useVideoCreditsPerson(l,r[0],{onSuccess:c=>{c!=null&&c.cast&&d(c.cast)}}),j=c=>{const A=t[c.target.name]==="down"||t[c.target.name]===""?"up":"down";p(g=>({...g,[c.target.name]:A}))},P=()=>{p({title:"",date:"",rating:""})};return a.useEffect(()=>()=>p(t),[r]),a.useEffect(()=>{(()=>{const A=r[0]==="movie"?"title":"name",g=r[0]==="movie"?"release_date":"first_air_date",R="vote_average",L=i==null?void 0:i.cast.toSorted((N,k)=>Y(N,k,A,t.title)||F(N,k,g,t.date)||T(N,k,R,t.rating));d(L)})()},[t,r,i==null?void 0:i.cast]),e.jsxs($,{error:E,isError:f,title:"Profile",children:[e.jsx(Q,{isLoading:h,tabsNames:o}),e.jsxs("div",{className:"wrapper",children:[e.jsxs("div",{className:n["container-sort"],children:[e.jsx(u,{direction:t,name:"title",toggleDirection:j}),e.jsx(u,{direction:t,name:"date",toggleDirection:j}),e.jsx(u,{direction:t,name:"rating",toggleDirection:j}),e.jsx(O,{clearSort:P})]}),e.jsxs("div",{className:n.heading,children:[e.jsx("h2",{className:"title-article",children:r[0]==="movie"?"Movies":"TV Show"}),e.jsx(D,{data:s,onTabChange:m})]}),e.jsx("div",{className:`grid ${n["grid_person-movies"]}`,children:e.jsx(I,{classname:"skeletons__item_grid",classnameCard:"card_grid",dataList:_,endpointCard:r[0],isFetching:M,loading:h})})]})]})},de=a.memo(({data:o})=>{const s=a.useRef(null),l=a.useRef(null),[r,m]=a.useState(!1),[_,d]=a.useState(!1),t=()=>{m(!0),document.body.classList.add("overflow-hidden")},p=i=>{i.target.id!=="modal-biography"&&(m(!1),document.body.classList.remove("overflow-hidden"))};return a.useEffect(()=>{var h,f;const i=(h=s==null?void 0:s.current)==null?void 0:h.getBoundingClientRect();d(((f=s==null?void 0:s.current)==null?void 0:f.scrollHeight)>(i==null?void 0:i.height))},[_]),e.jsxs(e.Fragment,{children:[o?e.jsx("div",{className:n.biography,children:e.jsxs("p",{ref:s,className:`${n["info-item"]} ${n.biography_short}`,children:[e.jsx("span",{className:`${n["info-span"]}`,children:e.jsx("span",{className:n.name,children:"Biography: "})})," ",e.jsx("span",{ref:l,className:`${n.text} ${n.biography_content}`,children:o}),_?e.jsx("button",{className:n.more__btn,title:"Read more",onClick:t,children:e.jsxs("svg",{viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M0 0h256v256H0z",fill:"none"}),e.jsx("path",{d:"m96 48 80 80-80 80",fill:"none",stroke:"#ec5f2b",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"})]})}):null]})}):null,r?e.jsx("div",{className:n.modal,id:"modal",onClick:p,children:e.jsxs("div",{className:n.modal__content,children:[e.jsx(W,{close:p}),e.jsx("pre",{className:n.modal__text,id:"modal-biography",children:o})]})}):null]})}),pe=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:n.profile__content,children:[e.jsx("div",{className:`${n.profile__content__photo} skeleton`}),e.jsxs("div",{className:`${n.profile__content__info} ${n.profile__content__info_skeleton}`,children:[Array(6).fill("skeleton").map((o,s)=>e.jsx("p",{className:`${n["info-item"]} ${n["info-item_skeleton"]} skeleton`},s)),e.jsx("p",{className:`${n.biography_skeleton} skeleton`}),e.jsx("p",{className:`${n["info-item"]} ${n["info-item_skeleton"]} skeleton`})]})]}),e.jsxs("div",{className:n["btn__group-skeleton"],children:[e.jsx("div",{className:`${n["btn__sort-skeleton"]} skeleton`}),e.jsx("div",{className:`${n["btn__sort-skeleton"]} skeleton`}),e.jsx("div",{className:`${n["btn__sort-skeleton"]} skeleton`}),e.jsx("div",{className:`${n["btn__sort-skeleton"]} skeleton`})]})]}),xe=()=>{const{id:o}=b(),{data:s,isLoading:l,isError:r,error:m}=v().usePerson(o),_=U(d=>{var t;return(t=d.urlBaseForImages.url)==null?void 0:t.profile});return e.jsx($,{classname:"main",error:m,isError:r,title:"Profile",children:e.jsxs("div",{className:`${n.profile} wrapper`,children:[e.jsx("div",{className:n["opacity-backdrop"],children:e.jsx(y,{src:s!=null&&s.profile_path?_+(s==null?void 0:s.profile_path):null})}),e.jsx("h1",{className:"title-article",children:"Profile"}),l?e.jsx(pe,{}):e.jsxs("div",{className:n.profile__content,children:[e.jsx("div",{className:n.profile__content__photo,children:e.jsx(y,{src:s!=null&&s.profile_path?_+(s==null?void 0:s.profile_path):G})}),e.jsxs("div",{className:n.profile__content__info,children:[e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Name:"}),e.jsx("span",{className:n.text,children:s==null?void 0:s.name})]}),e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Gender:"}),e.jsx("span",{className:n.text,children:(s==null?void 0:s.gender)===1?"Female":"Male"})]}),s!=null&&s.birthday?e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Birthday: "}),e.jsx("span",{className:n.text,children:w(s==null?void 0:s.birthday).format("MMM D, YYYY")})]}):null,s!=null&&s.deathday?e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Deathday: "}),e.jsx("span",{className:n.text,children:w(s==null?void 0:s.deathday).format("MMM D, YYYY")})]}):null,s!=null&&s.imdb_id?e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Imdb_id : "}),e.jsx("span",{className:n.text,children:e.jsxs(S,{to:`https://www.imdb.com/name/${s.imdb_id}`,className:n.link_pink,title:"Go to imdb.com",children:["ID ",s.imdb_id]})})]}):null,s!=null&&s.place_of_birth?e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Place of birth: "}),e.jsx("span",{className:n.text,children:s==null?void 0:s.place_of_birth})]}):null,s!=null&&s.homepage?e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Homepage: "}),e.jsx("span",{className:n.text,children:e.jsx(S,{className:n.link_pink,to:s==null?void 0:s.homepage,title:"Go to the actor's home page",children:s==null?void 0:s.homepage})})]}):null,e.jsx(de,{data:s==null?void 0:s.biography}),s!=null&&s.popularity?e.jsxs("p",{className:n["info-item"],children:[e.jsx("span",{className:n.name,children:"Popularity:"}),e.jsx("span",{className:n.text,children:s==null?void 0:s.popularity})]}):null]})]})]})})},he=()=>{const{id:o}=b(),{endpoint:s}=B(["movie","tv"]),{error:l}=v().useVideoCreditsPerson(o,s[0]);return e.jsx(V,{error:l,children:e.jsxs("div",{className:"main",children:[e.jsx(xe,{}),e.jsx(me,{endpoints:["movie","tv"],media_type:["Movies","TV Shows"]})]})})},ge=()=>e.jsx(he,{});export{ge as default}; diff --git a/assets/SearchPage-6ff790d9.js b/assets/SearchPage-6ff790d9.js new file mode 100644 index 0000000..4bc155b --- /dev/null +++ b/assets/SearchPage-6ff790d9.js @@ -0,0 +1 @@ +import{k as d,u as x,m as t,E as h}from"./index-6d8ecf0d.js";import{I as m}from"./index-04924070.js";const u="_title__span_1xd32_1",g="_title__span_total_1xd32_5",j="_title__span_text_1xd32_9",N="_title__span_loading_1xd32_10",s={title__span:u,title__span_total:g,title__span_text:j,title__span_loading:N},f=()=>{const{query:a}=d(),{videos:n,error:l,isError:i,isLoading:r,fetchNextPage:c,hasNextPage:o,total_results:e,dataPages:p,isSuccess:_}=x().useSearchQuery("/search/multi",{query:a},"search_query",a);return t.jsx(h,{classname:"main",error:l,isError:i,title:"Search results: error in data collection",children:t.jsxs("div",{className:"main wrapper",children:[t.jsxs("h1",{className:"title-article",children:[t.jsx("span",{className:s.title__span,children:"Search results:"}),_&&!e?t.jsx("span",{className:s.title__span_loading,children:"Nothing was found for your query"}):t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:s.title__span_total,children:[e," "]}),t.jsx("span",{className:s.title__span_text,children:"matches"})]})]}),t.jsx(m,{data:n,dataPages:p,fetchNextPage:c,hasNextPage:o,isLoading:r,isSuccess:_})]})})},P=()=>t.jsx(f,{});export{P as default}; diff --git a/assets/SearchPage-85b80dd2.css b/assets/SearchPage-85b80dd2.css new file mode 100644 index 0000000..66c046f --- /dev/null +++ b/assets/SearchPage-85b80dd2.css @@ -0,0 +1 @@ +._title__span_1xd32_1{margin-right:10px}._title__span_total_1xd32_5{font-size:28px}._title__span_text_1xd32_9,._title__span_loading_1xd32_10{font-size:18px} diff --git a/assets/avatar-26fbfa6a.js b/assets/avatar-26fbfa6a.js new file mode 100644 index 0000000..aeff3c3 --- /dev/null +++ b/assets/avatar-26fbfa6a.js @@ -0,0 +1 @@ +import{m as s,x as t}from"./index-6d8ecf0d.js";const l=({close:a})=>s.jsx("button",{className:t.close,onClick:a,children:s.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2Zm3.21 11.79a1 1 0 0 1 0 1.42 1 1 0 0 1-1.42 0L12 13.41l-1.79 1.8a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l1.8-1.79-1.8-1.79a1 1 0 0 1 1.42-1.42l1.79 1.8 1.79-1.8a1 1 0 0 1 1.42 1.42L13.41 12Z",fill:"currentColor"})})}),r="/assets/avatar-8f109f91.webp";export{l as B,r as a}; diff --git a/assets/avatar-8f109f91.webp b/assets/avatar-8f109f91.webp new file mode 100644 index 0000000..9ec9014 Binary files /dev/null and b/assets/avatar-8f109f91.webp differ diff --git a/assets/background_poster-8cb8a4ba.webp b/assets/background_poster-8cb8a4ba.webp new file mode 100644 index 0000000..2ba3568 Binary files /dev/null and b/assets/background_poster-8cb8a4ba.webp differ diff --git a/assets/burger_menu-966ba508.svg b/assets/burger_menu-966ba508.svg new file mode 100644 index 0000000..d968c48 --- /dev/null +++ b/assets/burger_menu-966ba508.svg @@ -0,0 +1,4 @@ + + + diff --git a/assets/close_menu-de2cc81a.svg b/assets/close_menu-de2cc81a.svg new file mode 100644 index 0000000..46f5111 --- /dev/null +++ b/assets/close_menu-de2cc81a.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/index-04924070.js b/assets/index-04924070.js new file mode 100644 index 0000000..ff5f90c --- /dev/null +++ b/assets/index-04924070.js @@ -0,0 +1,19 @@ +import{R as p,r as y,m as l,F as x}from"./index-6d8ecf0d.js";/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var f=function(o,n){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},f(o,n)};function D(o,n){f(o,n);function t(){this.constructor=o}o.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}var h=function(){return h=Object.assign||function(n){for(var t,e=1,r=arguments.length;eo?u():n!==!0&&(r=setTimeout(e?L:u,e===void 0?o-m:o))}return d.cancel=T,d}var a={Pixel:"Pixel",Percent:"Percent"},v={unit:a.Percent,value:.8};function g(o){return typeof o=="number"?{unit:a.Percent,value:o*100}:typeof o=="string"?o.match(/^(\d*(\.\d+)?)px$/)?{unit:a.Pixel,value:parseFloat(o)}:o.match(/^(\d*(\.\d+)?)%$/)?{unit:a.Percent,value:parseFloat(o)}:(console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'),v):(console.warn("scrollThreshold should be string or number"),v)}var Y=function(o){D(n,o);function n(t){var e=o.call(this,t)||this;return e.lastScrollTop=0,e.actionTriggered=!1,e.startY=0,e.currentY=0,e.dragging=!1,e.maxPullDownDistance=0,e.getScrollableTarget=function(){return e.props.scrollableTarget instanceof HTMLElement?e.props.scrollableTarget:typeof e.props.scrollableTarget=="string"?document.getElementById(e.props.scrollableTarget):(e.props.scrollableTarget===null&&console.warn(`You are trying to pass scrollableTarget but it is null. This might + happen because the element may not have been added to DOM yet. + See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info. + `),null)},e.onStart=function(r){e.lastScrollTop||(e.dragging=!0,r instanceof MouseEvent?e.startY=r.pageY:r instanceof TouchEvent&&(e.startY=r.touches[0].pageY),e.currentY=e.startY,e._infScroll&&(e._infScroll.style.willChange="transform",e._infScroll.style.transition="transform 0.2s cubic-bezier(0,0,0.31,1)"))},e.onMove=function(r){e.dragging&&(r instanceof MouseEvent?e.currentY=r.pageY:r instanceof TouchEvent&&(e.currentY=r.touches[0].pageY),!(e.currentY=Number(e.props.pullDownToRefreshThreshold)&&e.setState({pullToRefreshThresholdBreached:!0}),!(e.currentY-e.startY>e.maxPullDownDistance*1.5)&&e._infScroll&&(e._infScroll.style.overflow="visible",e._infScroll.style.transform="translate3d(0px, "+(e.currentY-e.startY)+"px, 0px)")))},e.onEnd=function(){e.startY=0,e.currentY=0,e.dragging=!1,e.state.pullToRefreshThresholdBreached&&(e.props.refreshFunction&&e.props.refreshFunction(),e.setState({pullToRefreshThresholdBreached:!1})),requestAnimationFrame(function(){e._infScroll&&(e._infScroll.style.overflow="auto",e._infScroll.style.transform="none",e._infScroll.style.willChange="unset")})},e.onScrollListener=function(r){typeof e.props.onScroll=="function"&&setTimeout(function(){return e.props.onScroll&&e.props.onScroll(r)},0);var s=e.props.height||e._scrollableNode?r.target:document.documentElement.scrollTop?document.documentElement:document.body;if(!e.actionTriggered){var i=e.props.inverse?e.isElementAtTop(s,e.props.scrollThreshold):e.isElementAtBottom(s,e.props.scrollThreshold);i&&e.props.hasMore&&(e.actionTriggered=!0,e.setState({showLoader:!0}),e.props.next&&e.props.next()),e.lastScrollTop=s.scrollTop}},e.state={showLoader:!1,pullToRefreshThresholdBreached:!1,prevDataLength:t.dataLength},e.throttledOnScrollListener=b(150,e.onScrollListener).bind(e),e.onStart=e.onStart.bind(e),e.onMove=e.onMove.bind(e),e.onEnd=e.onEnd.bind(e),e}return n.prototype.componentDidMount=function(){if(typeof this.props.dataLength>"u")throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');if(this._scrollableNode=this.getScrollableTarget(),this.el=this.props.height?this._infScroll:this._scrollableNode||window,this.el&&this.el.addEventListener("scroll",this.throttledOnScrollListener),typeof this.props.initialScrollY=="number"&&this.el&&this.el instanceof HTMLElement&&this.el.scrollHeight>this.props.initialScrollY&&this.el.scrollTo(0,this.props.initialScrollY),this.props.pullDownToRefresh&&this.el&&(this.el.addEventListener("touchstart",this.onStart),this.el.addEventListener("touchmove",this.onMove),this.el.addEventListener("touchend",this.onEnd),this.el.addEventListener("mousedown",this.onStart),this.el.addEventListener("mousemove",this.onMove),this.el.addEventListener("mouseup",this.onEnd),this.maxPullDownDistance=this._pullDown&&this._pullDown.firstChild&&this._pullDown.firstChild.getBoundingClientRect().height||0,this.forceUpdate(),typeof this.props.refreshFunction!="function"))throw new Error(`Mandatory prop "refreshFunction" missing. + Pull Down To Refresh functionality will not work + as expected. Check README.md for usage'`)},n.prototype.componentWillUnmount=function(){this.el&&(this.el.removeEventListener("scroll",this.throttledOnScrollListener),this.props.pullDownToRefresh&&(this.el.removeEventListener("touchstart",this.onStart),this.el.removeEventListener("touchmove",this.onMove),this.el.removeEventListener("touchend",this.onEnd),this.el.removeEventListener("mousedown",this.onStart),this.el.removeEventListener("mousemove",this.onMove),this.el.removeEventListener("mouseup",this.onEnd)))},n.prototype.componentDidUpdate=function(t){this.props.dataLength!==t.dataLength&&(this.actionTriggered=!1,this.setState({showLoader:!1}))},n.getDerivedStateFromProps=function(t,e){var r=t.dataLength!==e.prevDataLength;return r?h(h({},e),{prevDataLength:t.dataLength}):null},n.prototype.isElementAtTop=function(t,e){e===void 0&&(e=.8);var r=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,s=g(e);return s.unit===a.Pixel?t.scrollTop<=s.value+r-t.scrollHeight+1:t.scrollTop<=s.value/100+r-t.scrollHeight+1},n.prototype.isElementAtBottom=function(t,e){e===void 0&&(e=.8);var r=t===document.body||t===document.documentElement?window.screen.availHeight:t.clientHeight,s=g(e);return s.unit===a.Pixel?t.scrollTop+r>=t.scrollHeight-s.value:t.scrollTop+r>=s.value/100*t.scrollHeight},n.prototype.render=function(){var t=this,e=h({height:this.props.height||"auto",overflow:"auto",WebkitOverflowScrolling:"touch"},this.props.style),r=this.props.hasChildren||!!(this.props.children&&this.props.children instanceof Array&&this.props.children.length),s=this.props.pullDownToRefresh&&this.props.height?{overflow:"auto"}:{};return p.createElement("div",{style:s,className:"infinite-scroll-component__outerdiv"},p.createElement("div",{className:"infinite-scroll-component "+(this.props.className||""),ref:function(i){return t._infScroll=i},style:e},this.props.pullDownToRefresh&&p.createElement("div",{style:{position:"relative"},ref:function(i){return t._pullDown=i}},p.createElement("div",{style:{position:"absolute",left:0,right:0,top:-1*this.maxPullDownDistance}},this.state.pullToRefreshThresholdBreached?this.props.releaseToRefreshContent:this.props.pullDownToRefreshContent)),this.props.children,!this.state.showLoader&&!r&&this.props.hasMore&&this.props.loader,this.state.showLoader&&this.props.hasMore&&this.props.loader,!this.props.hasMore&&this.props.endMessage))},n}(y.Component);const R="_loader_rjoc5_4",M="_move_rjoc5_1",w={"wrapper-loader":"_wrapper-loader_rjoc5_1",loader:R,move:M},E=()=>l.jsx("div",{className:w["wrapper-loader"],children:l.jsx("span",{className:w.loader})}),C=y.memo(({isLoading:o,hasNextPage:n,fetchNextPage:t,data:e,dataPages:r,isFetching:s})=>l.jsxs(l.Fragment,{children:[(o||s)&&l.jsx(E,{}),l.jsx(Y,{className:"grid",dataLength:e?e==null?void 0:e.results.length:0,hasMore:n||!1,loader:l.jsx(E,{}),next:t,scrollThreshold:.85,children:r==null?void 0:r.map(i=>i==null?void 0:i.results.map(c=>l.jsx(x,{classnameCard:"card_grid",data:c},c.id)))})]}));export{C as I}; diff --git a/assets/index-205ae9b3.css b/assets/index-205ae9b3.css new file mode 100644 index 0000000..47f3be2 --- /dev/null +++ b/assets/index-205ae9b3.css @@ -0,0 +1 @@ +._btn-gradient_1smtk_1{position:relative;border-radius:30px;height:40px;text-transform:uppercase;transition:all .2s ease-in-out;overflow:hidden;z-index:2}._btn-gradient_1smtk_1>span{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-weight:bolder;gap:10px;padding:0 10px;position:relative;z-index:2}._btn-gradient_1smtk_1>svg{height:100%;width:25%}._btn-gradient_1smtk_1:before{position:absolute;content:"";inset:0;width:0;background:var(--gradient);z-index:1;transition:all .2s ease-in-out}._btn-gradient_1smtk_1:after{position:absolute;content:"";inset:0;width:100%;height:100%;z-index:3}._btn-gradient_1smtk_1:active{scale:.9}._btn-gradient_1smtk_1:hover:before,._btn-gradient_1smtk_1:focus-visible:before{width:100%} diff --git a/assets/index-6d8ecf0d.js b/assets/index-6d8ecf0d.js new file mode 100644 index 0000000..11e5fee --- /dev/null +++ b/assets/index-6d8ecf0d.js @@ -0,0 +1,127 @@ +function SS(e,t){for(var n=0;nr[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 s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 xS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ud(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tA(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var wv={exports:{}},Ol={},Sv={exports:{}},de={};/** + * @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 ws=Symbol.for("react.element"),PS=Symbol.for("react.portal"),bS=Symbol.for("react.fragment"),_S=Symbol.for("react.strict_mode"),ES=Symbol.for("react.profiler"),CS=Symbol.for("react.provider"),OS=Symbol.for("react.context"),RS=Symbol.for("react.forward_ref"),TS=Symbol.for("react.suspense"),kS=Symbol.for("react.memo"),jS=Symbol.for("react.lazy"),Zh=Symbol.iterator;function DS(e){return e===null||typeof e!="object"?null:(e=Zh&&e[Zh]||e["@@iterator"],typeof e=="function"?e:null)}var xv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Pv=Object.assign,bv={};function Zi(e,t,n){this.props=e,this.context=t,this.refs=bv,this.updater=n||xv}Zi.prototype.isReactComponent={};Zi.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")};Zi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _v(){}_v.prototype=Zi.prototype;function cd(e,t,n){this.props=e,this.context=t,this.refs=bv,this.updater=n||xv}var fd=cd.prototype=new _v;fd.constructor=cd;Pv(fd,Zi.prototype);fd.isPureReactComponent=!0;var ep=Array.isArray,Ev=Object.prototype.hasOwnProperty,dd={current:null},Cv={key:!0,ref:!0,__self:!0,__source:!0};function Ov(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Ev.call(t,r)&&!Cv.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1>>1,ne=k[q];if(0>>1;qi(fe,z))gei(Qe,fe)?(k[q]=Qe,k[ge]=z,q=ge):(k[q]=fe,k[re]=z,q=re);else if(gei(Qe,z))k[q]=Qe,k[ge]=z,q=ge;else break e}}return F}function i(k,F){var z=k.sortIndex-F.sortIndex;return z!==0?z:k.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,p=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,g=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(k){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=k)r(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(u)}}function w(k){if(v=!1,y(k),!p)if(n(l)!==null)p=!0,B(E);else{var F=n(u);F!==null&&V(w,F.startTime-k)}}function E(k,F){p=!1,v&&(v=!1,g(R),R=-1),h=!0;var z=d;try{for(y(F),f=n(l);f!==null&&(!(f.expirationTime>F)||k&&!te());){var q=f.callback;if(typeof q=="function"){f.callback=null,d=f.priorityLevel;var ne=q(f.expirationTime<=F);F=e.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(l)&&r(l),y(F)}else r(l);f=n(l)}if(f!==null)var se=!0;else{var re=n(u);re!==null&&V(w,re.startTime-F),se=!1}return se}finally{f=null,d=z,h=!1}}var O=!1,j=null,R=-1,$=5,M=-1;function te(){return!(e.unstable_now()-M<$)}function J(){if(j!==null){var k=e.unstable_now();M=k;var F=!0;try{F=j(!0,k)}finally{F?K():(O=!1,j=null)}}else O=!1}var K;if(typeof m=="function")K=function(){m(J)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,A=N.port2;N.port1.onmessage=J,K=function(){A.postMessage(null)}}else K=function(){_(J,0)};function B(k){j=k,O||(O=!0,K())}function V(k,F){R=_(function(){k(e.unstable_now())},F)}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(k){k.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,B(E))},e.unstable_forceFrameRate=function(k){0>k||125q?(k.sortIndex=z,t(u,k),n(l)===null&&k===n(u)&&(v?(g(R),R=-1):v=!0,V(w,z-q))):(k.sortIndex=ne,t(l,k),p||h||(p=!0,B(E))),k},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(k){var F=d;return function(){var z=d;d=F;try{return k.apply(this,arguments)}finally{d=z}}}})(jv);kv.exports=jv;var WS=kv.exports;/** + * @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 Dv=P,Mt=WS;function H(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=Object.prototype.hasOwnProperty,HS=/^[: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]*$/,np={},rp={};function QS(e){return Dc.call(rp,e)?!0:Dc.call(np,e)?!1:HS.test(e)?rp[e]=!0:(np[e]=!0,!1)}function qS(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 KS(e,t,n,r){if(t===null||typeof t>"u"||qS(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 xt(e,t,n,r,i,o,s){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=s}var at={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){at[e]=new xt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];at[t]=new xt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){at[e]=new xt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){at[e]=new xt(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){at[e]=new xt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){at[e]=new xt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){at[e]=new xt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){at[e]=new xt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){at[e]=new xt(e,5,!1,e.toLowerCase(),null,!1,!1)});var pd=/[\-:]([a-z])/g;function md(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(pd,md);at[t]=new xt(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(pd,md);at[t]=new xt(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(pd,md);at[t]=new xt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){at[e]=new xt(e,1,!1,e.toLowerCase(),null,!1,!1)});at.xlinkHref=new xt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){at[e]=new xt(e,1,!1,e.toLowerCase(),null,!0,!0)});function yd(e,t,n,r){var i=at.hasOwnProperty(t)?at[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Mu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Co(e):""}function GS(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=Au(e.type,!1),e;case 11:return e=Au(e.type.render,!1),e;case 1:return e=Au(e.type,!0),e;default:return""}}function Nc(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 di:return"Fragment";case fi:return"Portal";case Mc:return"Profiler";case vd:return"StrictMode";case Ac:return"Suspense";case Lc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lv:return(e.displayName||"Context")+".Consumer";case Av:return(e._context.displayName||"Context")+".Provider";case gd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wd:return t=e.displayName||null,t!==null?t:Nc(e.type)||"Memo";case Wn:t=e._payload,e=e._init;try{return Nc(e(t))}catch{}}return null}function YS(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 Nc(t);case 8:return t===vd?"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 hr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function XS(e){var t=Fv(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(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Us(e){e._valueTracker||(e._valueTracker=XS(e))}function $v(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Aa(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 Fc(e,t){var n=t.checked;return Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function op(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hr(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 Iv(e,t){t=t.checked,t!=null&&yd(e,"checked",t,!1)}function $c(e,t){Iv(e,t);var n=hr(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")?Ic(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ic(e,t.type,hr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function sp(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 Ic(e,t,n){(t!=="number"||Aa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Oo=Array.isArray;function Ti(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=zs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Go(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Do={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},JS=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){JS.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function zv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Do.hasOwnProperty(e)&&Do[e]?(""+t).trim():t+"px"}function Wv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=zv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ZS=Ve({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 Uc(e,t){if(t){if(ZS[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function zc(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 Wc=null;function Sd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hc=null,ki=null,ji=null;function up(e){if(e=Ps(e)){if(typeof Hc!="function")throw Error(H(280));var t=e.stateNode;t&&(t=Dl(t),Hc(e.stateNode,e.type,t))}}function Hv(e){ki?ji?ji.push(e):ji=[e]:ki=e}function Qv(){if(ki){var e=ki,t=ji;if(ji=ki=null,up(e),t)for(e=0;e>>=0,e===0?32:31-(cx(e)/fx|0)|0}var Ws=64,Hs=4194304;function Ro(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 $a(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Ro(a):(o&=s,o!==0&&(r=Ro(o)))}else s=n&~i,s!==0?r=Ro(s):o!==0&&(r=Ro(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;0n;n++)t.push(e);return t}function Ss(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=n}function mx(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=Ao),gp=String.fromCharCode(32),wp=!1;function dg(e,t){switch(e){case"keyup":return zx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var hi=!1;function Hx(e,t){switch(e){case"compositionend":return hg(t);case"keypress":return t.which!==32?null:(wp=!0,gp);case"textInput":return e=t.data,e===gp&&wp?null:e;default:return null}}function Qx(e,t){if(hi)return e==="compositionend"||!Rd&&dg(e,t)?(e=cg(),pa=Ed=Jn=null,hi=!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)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=bp(n)}}function vg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gg(){for(var e=window,t=Aa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Aa(e.document)}return t}function Td(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 tP(e){var t=gg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vg(n.ownerDocument.documentElement,n)){if(r!==null&&Td(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=_p(n,o);var s=_p(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.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=document.documentMode,pi=null,Xc=null,No=null,Jc=!1;function Ep(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jc||pi==null||pi!==Aa(r)||(r=pi,"selectionStart"in r&&Td(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}),No&&ts(No,r)||(No=r,r=Ba(Xc,"onSelect"),0vi||(e.current=of[vi],of[vi]=null,vi--)}function _e(e,t){vi++,of[vi]=e.current,e.current=t}var pr={},mt=Sr(pr),_t=Sr(!1),$r=pr;function Ii(e,t){var n=e.type.contextTypes;if(!n)return pr;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 Et(e){return e=e.childContextTypes,e!=null}function za(){Te(_t),Te(mt)}function Dp(e,t,n){if(mt.current!==pr)throw Error(H(168));_e(mt,t),_e(_t,n)}function Og(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(H(108,YS(e)||"Unknown",i));return Ve({},n,r)}function Wa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pr,$r=mt.current,_e(mt,e),_e(_t,_t.current),!0}function Mp(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=Og(e,t,$r),r.__reactInternalMemoizedMergedChildContext=e,Te(_t),Te(mt),_e(mt,e)):Te(_t),_e(_t,n)}var xn=null,Ml=!1,Ku=!1;function Rg(e){xn===null?xn=[e]:xn.push(e)}function hP(e){Ml=!0,Rg(e)}function xr(){if(!Ku&&xn!==null){Ku=!0;var e=0,t=xe;try{var n=xn;for(xe=1;e>=s,i-=s,bn=1<<32-on(t)+i|n<R?($=j,j=null):$=j.sibling;var M=d(g,j,y[R],w);if(M===null){j===null&&(j=$);break}e&&j&&M.alternate===null&&t(g,j),m=o(M,m,R),O===null?E=M:O.sibling=M,O=M,j=$}if(R===y.length)return n(g,j),Ae&&Er(g,R),E;if(j===null){for(;RR?($=j,j=null):$=j.sibling;var te=d(g,j,M.value,w);if(te===null){j===null&&(j=$);break}e&&j&&te.alternate===null&&t(g,j),m=o(te,m,R),O===null?E=te:O.sibling=te,O=te,j=$}if(M.done)return n(g,j),Ae&&Er(g,R),E;if(j===null){for(;!M.done;R++,M=y.next())M=f(g,M.value,w),M!==null&&(m=o(M,m,R),O===null?E=M:O.sibling=M,O=M);return Ae&&Er(g,R),E}for(j=r(g,j);!M.done;R++,M=y.next())M=h(j,g,R,M.value,w),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?R:M.key),m=o(M,m,R),O===null?E=M:O.sibling=M,O=M);return e&&j.forEach(function(J){return t(g,J)}),Ae&&Er(g,R),E}function _(g,m,y,w){if(typeof y=="object"&&y!==null&&y.type===di&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Bs:e:{for(var E=y.key,O=m;O!==null;){if(O.key===E){if(E=y.type,E===di){if(O.tag===7){n(g,O.sibling),m=i(O,y.props.children),m.return=g,g=m;break e}}else if(O.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Wn&&Vp(E)===O.type){n(g,O.sibling),m=i(O,y.props),m.ref=po(g,O,y),m.return=g,g=m;break e}n(g,O);break}else t(g,O);O=O.sibling}y.type===di?(m=Fr(y.props.children,g.mode,w,y.key),m.return=g,g=m):(w=Pa(y.type,y.key,y.props,null,g.mode,w),w.ref=po(g,m,y),w.return=g,g=w)}return s(g);case fi: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(g,m.sibling),m=i(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=nc(y,g.mode,w),m.return=g,g=m}return s(g);case Wn:return O=y._init,_(g,m,O(y._payload),w)}if(Oo(y))return p(g,m,y,w);if(lo(y))return v(g,m,y,w);Js(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,y),m.return=g,g=m):(n(g,m),m=tc(y,g.mode,w),m.return=g,g=m),s(g)):n(g,m)}return _}var Bi=Ng(!0),Fg=Ng(!1),bs={},pn=Sr(bs),os=Sr(bs),ss=Sr(bs);function Dr(e){if(e===bs)throw Error(H(174));return e}function $d(e,t){switch(_e(ss,t),_e(os,e),_e(pn,bs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bc(t,e)}Te(pn),_e(pn,t)}function Ui(){Te(pn),Te(os),Te(ss)}function $g(e){Dr(ss.current);var t=Dr(pn.current),n=Bc(t,e.type);t!==n&&(_e(os,e),_e(pn,n))}function Id(e){os.current===e&&(Te(pn),Te(os))}var Fe=Sr(0);function Ya(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 Gu=[];function Vd(){for(var e=0;en?n:4,e(!0);var r=Yu.transition;Yu.transition={};try{e(!1),t()}finally{xe=n,Yu.transition=r}}function e0(){return Gt().memoizedState}function vP(e,t,n){var r=sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},t0(e))n0(t,n);else if(n=Dg(e,t,n,r),n!==null){var i=wt();sn(n,e,r,i),r0(n,t,r)}}function gP(e,t,n){var r=sr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(t0(e))n0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,an(a,s)){var l=t.interleaved;l===null?(i.next=i,Nd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Dg(e,t,i,r),n!==null&&(i=wt(),sn(n,e,r,i),r0(n,t,r))}}function t0(e){var t=e.alternate;return e===Ie||t!==null&&t===Ie}function n0(e,t){Fo=Xa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function r0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Pd(e,n)}}var Ja={readContext:Kt,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},wP={readContext:Kt,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Up,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ga(4194308,4,Gg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ga(4194308,4,e,t)},useInsertionEffect:function(e,t){return ga(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();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=vP.bind(null,Ie,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:Bp,useDebugValue:Hd,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=Bp(!1),t=e[0];return e=yP.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ie,i=un();if(Ae){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),nt===null)throw Error(H(349));Vr&30||Bg(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Up(zg.bind(null,r,o,e),[e]),r.flags|=2048,us(9,Ug.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=un(),t=nt.identifierPrefix;if(Ae){var n=_n,r=bn;n=(r&~(1<<32-on(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[fn]=t,e[is]=r,d0(e,t,!1,!1),t.stateNode=e;e:{switch(s=zc(n,r),n){case"dialog":Oe("cancel",e),Oe("close",e),i=r;break;case"iframe":case"object":case"embed":Oe("load",e),i=r;break;case"video":case"audio":for(i=0;iWi&&(t.flags|=128,r=!0,mo(o,!1),t.lanes=4194304)}else{if(!r)if(e=Ya(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ae)return ct(t),null}else 2*He()-o.renderingStartTime>Wi&&n!==1073741824&&(t.flags|=128,r=!0,mo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=He(),t.sibling=null,n=Fe.current,_e(Fe,r?n&1|2:n&1),t):(ct(t),null);case 22:case 23:return Xd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Tt&1073741824&&(ct(t),t.subtreeFlags&6&&(t.flags|=8192)):ct(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function OP(e,t){switch(jd(t),t.tag){case 1:return Et(t.type)&&za(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(),Te(_t),Te(mt),Vd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Id(t),null;case 13:if(Te(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Te(Fe),null;case 4:return Ui(),null;case 10:return Ld(t.type._context),null;case 22:case 23:return Xd(),null;case 24:return null;default:return null}}var ea=!1,pt=!1,RP=typeof WeakSet=="function"?WeakSet:Set,ee=null;function xi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ue(e,t,r)}else n.current=null}function vf(e,t,n){try{n()}catch(r){Ue(e,t,r)}}var Xp=!1;function TP(e,t){if(Zc=Ia,e=gg(),Td(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 s=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ef={focusedElem:e,selectionRange:n},Ia=!1,ee=t;ee!==null;)if(t=ee,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ee=e;else for(;ee!==null;){t=ee;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var v=p.memoizedProps,_=p.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Jt(t.type,v),_);g.__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(H(163))}}catch(w){Ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return p=Xp,Xp=!1,p}function $o(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&&vf(t,n,o)}i=i.next}while(i!==r)}}function Nl(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 gf(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 m0(e){var t=e.alternate;t!==null&&(e.alternate=null,m0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[fn],delete t[is],delete t[rf],delete t[fP],delete t[dP])),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 y0(e){return e.tag===5||e.tag===3||e.tag===4}function Jp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||y0(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 wf(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=Ua));else if(r!==4&&(e=e.child,e!==null))for(wf(e,t,n),e=e.sibling;e!==null;)wf(e,t,n),e=e.sibling}function Sf(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(Sf(e,t,n),e=e.sibling;e!==null;)Sf(e,t,n),e=e.sibling}var ot=null,Zt=!1;function Bn(e,t,n){for(n=n.child;n!==null;)v0(e,t,n),n=n.sibling}function v0(e,t,n){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 5:pt||xi(n,t);case 6:var r=ot,i=Zt;ot=null,Bn(e,t,n),ot=r,Zt=i,ot!==null&&(Zt?(e=ot,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ot.removeChild(n.stateNode));break;case 18:ot!==null&&(Zt?(e=ot,n=n.stateNode,e.nodeType===8?qu(e.parentNode,n):e.nodeType===1&&qu(e,n),Zo(e)):qu(ot,n.stateNode));break;case 4:r=ot,i=Zt,ot=n.stateNode.containerInfo,Zt=!0,Bn(e,t,n),ot=r,Zt=i;break;case 0:case 11:case 14:case 15:if(!pt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&vf(n,t,s),i=i.next}while(i!==r)}Bn(e,t,n);break;case 1:if(!pt&&(xi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ue(n,t,a)}Bn(e,t,n);break;case 21:Bn(e,t,n);break;case 22:n.mode&1?(pt=(r=pt)||n.memoizedState!==null,Bn(e,t,n),pt=r):Bn(e,t,n);break;default:Bn(e,t,n)}}function Zp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RP),t.forEach(function(r){var i=$P.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=He()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jP(r/1960))-r,10e?16:e,Zn===null)var r=!1;else{if(e=Zn,Zn=null,tl=0,ye&6)throw Error(H(331));var i=ye;for(ye|=4,ee=e.current;ee!==null;){var o=ee,s=o.child;if(ee.flags&16){var a=o.deletions;if(a!==null){for(var l=0;lHe()-Gd?Nr(e,0):Kd|=n),Ct(e,t)}function E0(e,t){t===0&&(e.mode&1?(t=Hs,Hs<<=1,!(Hs&130023424)&&(Hs=4194304)):t=1);var n=wt();e=Mn(e,t),e!==null&&(Ss(e,t,n),Ct(e,n))}function FP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),E0(e,n)}function $P(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(H(314))}r!==null&&r.delete(t),E0(e,n)}var C0;C0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)bt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return bt=!1,EP(e,t,n);bt=!!(e.flags&131072)}else bt=!1,Ae&&t.flags&1048576&&Tg(t,Qa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wa(e,t),e=t.pendingProps;var i=Ii(t,mt.current);Mi(t,n),i=Ud(null,t,r,e,i,n);var o=zd();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,Et(r)?(o=!0,Wa(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Fd(t),i.updater=Al,t.stateNode=i,i._reactInternals=t,cf(t,r,e,n),t=hf(null,t,r,!0,o,n)):(t.tag=0,Ae&&o&&kd(t),gt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=VP(r),e=Jt(r,e),i){case 0:t=df(null,t,r,e,n);break e;case 1:t=Kp(null,t,r,e,n);break e;case 11:t=Qp(null,t,r,e,n);break e;case 14:t=qp(null,t,r,Jt(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),df(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),Kp(e,t,r,i,n);case 3:e:{if(u0(t),e===null)throw Error(H(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Mg(e,t),Ga(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zi(Error(H(423)),t),t=Gp(e,t,r,n,i);break e}else if(r!==i){i=zi(Error(H(424)),t),t=Gp(e,t,r,n,i);break e}else for(jt=rr(t.stateNode.containerInfo.firstChild),Dt=t,Ae=!0,tn=null,n=Fg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vi(),r===i){t=An(e,t,n);break e}gt(e,t,r,n)}t=t.child}return t;case 5:return $g(t),e===null&&af(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,tf(r,i)?s=null:o!==null&&tf(r,o)&&(t.flags|=32),l0(e,t),gt(e,t,s,n),t.child;case 6:return e===null&&af(t),null;case 13:return c0(e,t,n);case 4:return $d(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bi(t,null,r,n):gt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),Qp(e,t,r,i,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,_e(qa,r._currentValue),r._currentValue=s,o!==null)if(an(o.value,s)){if(o.children===i.children&&!_t.current){t=An(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Cn(-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),lf(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(H(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),lf(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}gt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mi(t,n),i=Kt(i),r=r(i),t.flags|=1,gt(e,t,r,n),t.child;case 14:return r=t.type,i=Jt(r,t.pendingProps),i=Jt(r.type,i),qp(e,t,r,i,n);case 15:return s0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jt(r,i),wa(e,t),t.tag=1,Et(r)?(e=!0,Wa(t)):e=!1,Mi(t,n),Lg(t,r,i),cf(t,r,i,n),hf(null,t,r,!0,e,n);case 19:return f0(e,t,n);case 22:return a0(e,t,n)}throw Error(H(156,t.tag))};function O0(e,t){return Zv(e,t)}function IP(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 Ht(e,t,n,r){return new IP(e,t,n,r)}function Zd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function VP(e){if(typeof e=="function")return Zd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===gd)return 11;if(e===wd)return 14}return 2}function ar(e,t){var n=e.alternate;return n===null?(n=Ht(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 Pa(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")Zd(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case di:return Fr(n.children,i,o,t);case vd:s=8,i|=8;break;case Mc:return e=Ht(12,n,t,i|2),e.elementType=Mc,e.lanes=o,e;case Ac:return e=Ht(13,n,t,i),e.elementType=Ac,e.lanes=o,e;case Lc:return e=Ht(19,n,t,i),e.elementType=Lc,e.lanes=o,e;case Nv:return $l(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Av:s=10;break e;case Lv:s=9;break e;case gd:s=11;break e;case wd:s=14;break e;case Wn:s=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Ht(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fr(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function $l(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=Nv,e.lanes=n,e.stateNode={isHidden:!1},e}function tc(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function nc(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function BP(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=Nu(0),this.expirationTimes=Nu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function eh(e,t,n,r,i,o,s,a,l){return e=new BP(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Ht(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fd(o),e}function UP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(j0)}catch(e){console.error(e)}}j0(),Tv.exports=Nt;var Hi=Tv.exports;const qP=ud(Hi);var am=Hi;jc.createRoot=am.createRoot,jc.hydrateRoot=am.hydrateRoot;function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ef(e,t)}function no(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ef(e,t)}var _s=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(r){var i=this,o=r||function(){};return this.listeners.push(o),this.onSubscribe(),function(){i.listeners=i.listeners.filter(function(s){return s!==o}),i.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}();function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u";function ht(){}function KP(e,t){return typeof e=="function"?e(t):e}function Cf(e){return typeof e=="number"&&e>=0&&e!==1/0}function ol(e){return Array.isArray(e)?e:[e]}function D0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Bo(e,t,n){return zl(e)?typeof t=="function"?pe({},n,{queryKey:e,queryFn:t}):pe({},t,{queryKey:e}):e}function Qn(e,t,n){return zl(e)?[pe({},t,{queryKey:e}),n]:[e||{},t]}function GP(e,t){if(e===!0&&t===!0||e==null&&t==null)return"all";if(e===!1&&t===!1)return"none";var n=e??!t;return n?"active":"inactive"}function lm(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,s=e.predicate,a=e.queryKey,l=e.stale;if(zl(a)){if(r){if(t.queryHash!==ih(a,t.options))return!1}else if(!sl(t.queryKey,a))return!1}var u=GP(n,o);if(u==="none")return!1;if(u!=="all"){var c=t.isActive();if(u==="active"&&!c||u==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof i=="boolean"&&t.isFetching()!==i||s&&!s(t))}function um(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(zl(o)){if(!t.options.mutationKey)return!1;if(n){if(Mr(t.options.mutationKey)!==Mr(o))return!1}else if(!sl(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function ih(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Mr;return n(e)}function Mr(e){var t=ol(e);return YP(t)}function YP(e){return JSON.stringify(e,function(t,n){return Of(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function sl(e,t){return M0(ol(e),ol(t))}function M0(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(function(n){return!M0(e[n],t[n])}):!1}function al(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||Of(e)&&Of(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{},a=0,l=0;l"u")return!0;var n=t.prototype;return!(!cm(n)||!n.hasOwnProperty("isPrototypeOf"))}function cm(e){return Object.prototype.toString.call(e)==="[object Object]"}function zl(e){return typeof e=="string"||Array.isArray(e)}function JP(e){return new Promise(function(t){setTimeout(t,e)})}function fm(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function A0(){if(typeof AbortController=="function")return new AbortController}var ZP=function(e){no(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!il&&((o=window)!=null&&o.addEventListener)){var s=function(){return i()};return window.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1),function(){window.removeEventListener("visibilitychange",s),window.removeEventListener("focus",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,s=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(a){typeof a=="boolean"?s.setFocused(a):s.onFocus()})},n.setFocused=function(i){this.focused=i,i&&this.onFocus()},n.onFocus=function(){this.listeners.forEach(function(i){i()})},n.isFocused=function(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)},t}(_s),Uo=new ZP,eb=function(e){no(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!il&&((o=window)!=null&&o.addEventListener)){var s=function(){return i()};return window.addEventListener("online",s,!1),window.addEventListener("offline",s,!1),function(){window.removeEventListener("online",s),window.removeEventListener("offline",s)}}},r}var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){if(!this.hasListeners()){var i;(i=this.cleanup)==null||i.call(this),this.cleanup=void 0}},n.setEventListener=function(i){var o,s=this;this.setup=i,(o=this.cleanup)==null||o.call(this),this.cleanup=i(function(a){typeof a=="boolean"?s.setOnline(a):s.onOnline()})},n.setOnline=function(i){this.online=i,i&&this.onOnline()},n.onOnline=function(){this.listeners.forEach(function(i){i()})},n.isOnline=function(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine},t}(_s),ba=new eb;function tb(e){return Math.min(1e3*Math.pow(2,e),3e4)}function ll(e){return typeof(e==null?void 0:e.cancel)=="function"}var L0=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function _a(e){return e instanceof L0}var N0=function(t){var n=this,r=!1,i,o,s,a;this.abort=t.abort,this.cancel=function(d){return i==null?void 0:i(d)},this.cancelRetry=function(){r=!0},this.continueRetry=function(){r=!1},this.continue=function(){return o==null?void 0:o()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise(function(d,h){s=d,a=h});var l=function(h){n.isResolved||(n.isResolved=!0,t.onSuccess==null||t.onSuccess(h),o==null||o(),s(h))},u=function(h){n.isResolved||(n.isResolved=!0,t.onError==null||t.onError(h),o==null||o(),a(h))},c=function(){return new Promise(function(h){o=h,n.isPaused=!0,t.onPause==null||t.onPause()}).then(function(){o=void 0,n.isPaused=!1,t.onContinue==null||t.onContinue()})},f=function d(){if(!n.isResolved){var h;try{h=t.fn()}catch(p){h=Promise.reject(p)}i=function(v){if(!n.isResolved&&(u(new L0(v)),n.abort==null||n.abort(),ll(h)))try{h.cancel()}catch{}},n.isTransportCancelable=ll(h),Promise.resolve(h).then(l).catch(function(p){var v,_;if(!n.isResolved){var g=(v=t.retry)!=null?v:3,m=(_=t.retryDelay)!=null?_:tb,y=typeof m=="function"?m(n.failureCount,p):m,w=g===!0||typeof g=="number"&&n.failureCount"u"&&(a.exact=!0),this.queries.find(function(l){return lm(a,l)})},n.findAll=function(i,o){var s=Qn(i,o),a=s[0];return Object.keys(a).length>0?this.queries.filter(function(l){return lm(a,l)}):this.queries},n.notify=function(i){var o=this;ze.batch(function(){o.listeners.forEach(function(s){s(i)})})},n.onFocus=function(){var i=this;ze.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;ze.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},t}(_s),sb=function(){function e(n){this.options=pe({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||ab(),this.meta=n.meta}var t=e.prototype;return t.setState=function(r){this.dispatch({type:"setState",state:r})},t.addObserver=function(r){this.observers.indexOf(r)===-1&&this.observers.push(r)},t.removeObserver=function(r){this.observers=this.observers.filter(function(i){return i!==r})},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(ht).catch(ht)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var r=this,i,o=this.state.status==="loading",s=Promise.resolve();return o||(this.dispatch({type:"loading",variables:this.options.variables}),s=s.then(function(){r.mutationCache.config.onMutate==null||r.mutationCache.config.onMutate(r.state.variables,r)}).then(function(){return r.options.onMutate==null?void 0:r.options.onMutate(r.state.variables)}).then(function(a){a!==r.state.context&&r.dispatch({type:"loading",context:a,variables:r.state.variables})})),s.then(function(){return r.executeMutation()}).then(function(a){i=a,r.mutationCache.config.onSuccess==null||r.mutationCache.config.onSuccess(i,r.state.variables,r.state.context,r)}).then(function(){return r.options.onSuccess==null?void 0:r.options.onSuccess(i,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(i,null,r.state.variables,r.state.context)}).then(function(){return r.dispatch({type:"success",data:i}),i}).catch(function(a){return r.mutationCache.config.onError==null||r.mutationCache.config.onError(a,r.state.variables,r.state.context,r),ul().error(a),Promise.resolve().then(function(){return r.options.onError==null?void 0:r.options.onError(a,r.state.variables,r.state.context)}).then(function(){return r.options.onSettled==null?void 0:r.options.onSettled(void 0,a,r.state.variables,r.state.context)}).then(function(){throw r.dispatch({type:"error",error:a}),a})})},t.executeMutation=function(){var r=this,i;return this.retryer=new N0({fn:function(){return r.options.mutationFn?r.options.mutationFn(r.state.variables):Promise.reject("No mutationFn found")},onFail:function(){r.dispatch({type:"failed"})},onPause:function(){r.dispatch({type:"pause"})},onContinue:function(){r.dispatch({type:"continue"})},retry:(i=this.options.retry)!=null?i:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(r){var i=this;this.state=lb(this.state,r),ze.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},e}();function ab(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function lb(e,t){switch(t.type){case"failed":return pe({},e,{failureCount:e.failureCount+1});case"pause":return pe({},e,{isPaused:!0});case"continue":return pe({},e,{isPaused:!1});case"loading":return pe({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return pe({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return pe({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return pe({},e,t.state);default:return e}}var ub=function(e){no(t,e);function t(r){var i;return i=e.call(this)||this,i.config=r||{},i.mutations=[],i.mutationId=0,i}var n=t.prototype;return n.build=function(i,o,s){var a=new sb({mutationCache:this,mutationId:++this.mutationId,options:i.defaultMutationOptions(o),state:s,defaultOptions:o.mutationKey?i.getMutationDefaults(o.mutationKey):void 0,meta:o.meta});return this.add(a),a},n.add=function(i){this.mutations.push(i),this.notify(i)},n.remove=function(i){this.mutations=this.mutations.filter(function(o){return o!==i}),i.cancel(),this.notify(i)},n.clear=function(){var i=this;ze.batch(function(){i.mutations.forEach(function(o){i.remove(o)})})},n.getAll=function(){return this.mutations},n.find=function(i){return typeof i.exact>"u"&&(i.exact=!0),this.mutations.find(function(o){return um(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return um(i,o)})},n.notify=function(i){var o=this;ze.batch(function(){o.listeners.forEach(function(s){s(i)})})},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var i=this.mutations.filter(function(o){return o.state.isPaused});return ze.batch(function(){return i.reduce(function(o,s){return o.then(function(){return s.continue().catch(ht)})},Promise.resolve())})},t}(_s);function Rf(){return{onFetch:function(t){t.fetchFn=function(){var n,r,i,o,s,a,l=(n=t.fetchOptions)==null||(r=n.meta)==null?void 0:r.refetchPage,u=(i=t.fetchOptions)==null||(o=i.meta)==null?void 0:o.fetchMore,c=u==null?void 0:u.pageParam,f=(u==null?void 0:u.direction)==="forward",d=(u==null?void 0:u.direction)==="backward",h=((s=t.state.data)==null?void 0:s.pages)||[],p=((a=t.state.data)==null?void 0:a.pageParams)||[],v=A0(),_=v==null?void 0:v.signal,g=p,m=!1,y=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(N,A,B,V){return g=V?[A].concat(g):[].concat(g,[A]),V?[B].concat(N):[].concat(N,[B])},E=function(N,A,B,V){if(m)return Promise.reject("Cancelled");if(typeof B>"u"&&!A&&N.length)return Promise.resolve(N);var k={queryKey:t.queryKey,signal:_,pageParam:B,meta:t.meta},F=y(k),z=Promise.resolve(F).then(function(ne){return w(N,B,ne,V)});if(ll(F)){var q=z;q.cancel=F.cancel}return z},O;if(!h.length)O=E([]);else if(f){var j=typeof c<"u",R=j?c:Tf(t.options,h);O=E(h,j,R)}else if(d){var $=typeof c<"u",M=$?c:$0(t.options,h);O=E(h,$,M,!0)}else(function(){g=[];var K=typeof t.options.getNextPageParam>"u",N=l&&h[0]?l(h[0],0,h):!0;O=N?E([],K,p[0]):Promise.resolve(w([],p[0],h[0]));for(var A=function(k){O=O.then(function(F){var z=l&&h[k]?l(h[k],k,h):!0;if(z){var q=K?p[k]:Tf(t.options,F);return E(F,K,q)}return Promise.resolve(w(F,p[k],h[k]))})},B=1;B"u"&&(c.revert=!0);var f=ze.batch(function(){return s.queryCache.findAll(l).map(function(d){return d.cancel(c)})});return Promise.all(f).then(ht).catch(ht)},t.invalidateQueries=function(r,i,o){var s,a,l,u=this,c=Qn(r,i,o),f=c[0],d=c[1],h=pe({},f,{active:(s=(a=f.refetchActive)!=null?a:f.active)!=null?s:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return ze.batch(function(){return u.queryCache.findAll(f).forEach(function(p){p.invalidate()}),u.refetchQueries(h,d)})},t.refetchQueries=function(r,i,o){var s=this,a=Qn(r,i,o),l=a[0],u=a[1],c=ze.batch(function(){return s.queryCache.findAll(l).map(function(d){return d.fetch(void 0,pe({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(c).then(ht);return u!=null&&u.throwOnError||(f=f.catch(ht)),f},t.fetchQuery=function(r,i,o){var s=Bo(r,i,o),a=this.defaultQueryOptions(s);typeof a.retry>"u"&&(a.retry=!1);var l=this.queryCache.build(this,a);return l.isStaleByTime(a.staleTime)?l.fetch(a):Promise.resolve(l.state.data)},t.prefetchQuery=function(r,i,o){return this.fetchQuery(r,i,o).then(ht).catch(ht)},t.fetchInfiniteQuery=function(r,i,o){var s=Bo(r,i,o);return s.behavior=Rf(),this.fetchQuery(s)},t.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(ht).catch(ht)},t.cancelMutations=function(){var r=this,i=ze.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(ht).catch(ht)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(r){return this.mutationCache.build(this,r).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(r){this.defaultOptions=r},t.setQueryDefaults=function(r,i){var o=this.queryDefaults.find(function(s){return Mr(r)===Mr(s.queryKey)});o?o.defaultOptions=i:this.queryDefaults.push({queryKey:r,defaultOptions:i})},t.getQueryDefaults=function(r){var i;return r?(i=this.queryDefaults.find(function(o){return sl(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(s){return Mr(r)===Mr(s.mutationKey)});o?o.defaultOptions=i:this.mutationDefaults.push({mutationKey:r,defaultOptions:i})},t.getMutationDefaults=function(r){var i;return r?(i=this.mutationDefaults.find(function(o){return sl(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=pe({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=ih(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:pe({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),I0=function(e){no(t,e);function t(r,i){var o;return o=e.call(this)||this,o.client=r,o.options=i,o.trackedProps=[],o.selectError=null,o.bindMethods(),o.setOptions(i),o}var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){this.listeners.length===1&&(this.currentQuery.addObserver(this),dm(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return kf(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return kf(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(i,o){var s=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(i),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();var l=this.hasListeners();l&&hm(this.currentQuery,a,this.options,s)&&this.executeFetch(),this.updateResult(o),l&&(this.currentQuery!==a||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();var u=this.computeRefetchInterval();l&&(this.currentQuery!==a||this.options.enabled!==s.enabled||u!==this.currentRefetchInterval)&&this.updateRefetchInterval(u)},n.getOptimisticResult=function(i){var o=this.client.defaultQueryObserverOptions(i),s=this.client.getQueryCache().build(this.client,o);return this.createResult(s,o)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(i,o){var s=this,a={},l=function(c){s.trackedProps.includes(c)||s.trackedProps.push(c)};return Object.keys(i).forEach(function(u){Object.defineProperty(a,u,{configurable:!1,enumerable:!0,get:function(){return l(u),i[u]}})}),(o.useErrorBoundary||o.suspense)&&l("error"),a},n.getNextResult=function(i){var o=this;return new Promise(function(s,a){var l=o.subscribe(function(u){u.isFetching||(l(),u.isError&&(i!=null&&i.throwOnError)?a(u.error):s(u))})})},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(i){return this.fetch(pe({},i,{meta:{refetchPage:i==null?void 0:i.refetchPage}}))},n.fetchOptimistic=function(i){var o=this,s=this.client.defaultQueryObserverOptions(i),a=this.client.getQueryCache().build(this.client,s);return a.fetch().then(function(){return o.createResult(a,s)})},n.fetch=function(i){var o=this;return this.executeFetch(i).then(function(){return o.updateResult(),o.currentResult})},n.executeFetch=function(i){this.updateQuery();var o=this.currentQuery.fetch(this.options,i);return i!=null&&i.throwOnError||(o=o.catch(ht)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(il||this.currentResult.isStale||!Cf(this.options.staleTime))){var o=D0(this.currentResult.dataUpdatedAt,this.options.staleTime),s=o+1;this.staleTimeoutId=setTimeout(function(){i.currentResult.isStale||i.updateResult()},s)}},n.computeRefetchInterval=function(){var i;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(i=this.options.refetchInterval)!=null?i:!1},n.updateRefetchInterval=function(i){var o=this;this.clearRefetchInterval(),this.currentRefetchInterval=i,!(il||this.options.enabled===!1||!Cf(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||Uo.isFocused())&&o.executeFetch()},this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(i,o){var s=this.currentQuery,a=this.options,l=this.currentResult,u=this.currentResultState,c=this.currentResultOptions,f=i!==s,d=f?i.state:this.currentQueryInitialState,h=f?this.currentResult:this.previousQueryResult,p=i.state,v=p.dataUpdatedAt,_=p.error,g=p.errorUpdatedAt,m=p.isFetching,y=p.status,w=!1,E=!1,O;if(o.optimisticResults){var j=this.hasListeners(),R=!j&&dm(i,o),$=j&&hm(i,s,o,a);(R||$)&&(m=!0,v||(y="loading"))}if(o.keepPreviousData&&!p.dataUpdateCount&&(h!=null&&h.isSuccess)&&y!=="error")O=h.data,v=h.dataUpdatedAt,y=h.status,w=!0;else if(o.select&&typeof p.data<"u")if(l&&p.data===(u==null?void 0:u.data)&&o.select===this.selectFn)O=this.selectResult;else try{this.selectFn=o.select,O=o.select(p.data),o.structuralSharing!==!1&&(O=al(l==null?void 0:l.data,O)),this.selectResult=O,this.selectError=null}catch(J){ul().error(J),this.selectError=J}else O=p.data;if(typeof o.placeholderData<"u"&&typeof O>"u"&&(y==="loading"||y==="idle")){var M;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(c==null?void 0:c.placeholderData))M=l.data;else if(M=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof M<"u")try{M=o.select(M),o.structuralSharing!==!1&&(M=al(l==null?void 0:l.data,M)),this.selectError=null}catch(J){ul().error(J),this.selectError=J}typeof M<"u"&&(y="success",O=M,E=!0)}this.selectError&&(_=this.selectError,O=this.selectResult,g=Date.now(),y="error");var te={status:y,isLoading:y==="loading",isSuccess:y==="success",isError:y==="error",isIdle:y==="idle",data:O,dataUpdatedAt:v,error:_,errorUpdatedAt:g,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:m,isRefetching:m&&y!=="loading",isLoadingError:y==="error"&&p.dataUpdatedAt===0,isPlaceholderData:E,isPreviousData:w,isRefetchError:y==="error"&&p.dataUpdatedAt!==0,isStale:oh(i,o),refetch:this.refetch,remove:this.remove};return te},n.shouldNotifyListeners=function(i,o){if(!o)return!0;var s=this.options,a=s.notifyOnChangeProps,l=s.notifyOnChangePropsExclusions;if(!a&&!l||a==="tracked"&&!this.trackedProps.length)return!0;var u=a==="tracked"?this.trackedProps:a;return Object.keys(i).some(function(c){var f=c,d=i[f]!==o[f],h=u==null?void 0:u.some(function(v){return v===c}),p=l==null?void 0:l.some(function(v){return v===c});return d&&!p&&(!u||h)})},n.updateResult=function(i){var o=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!XP(this.currentResult,o)){var s={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(s.listeners=!0),this.notify(pe({},s,i))}},n.updateQuery=function(){var i=this.client.getQueryCache().build(this.client,this.options);if(i!==this.currentQuery){var o=this.currentQuery;this.currentQuery=i,this.currentQueryInitialState=i.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(o==null||o.removeObserver(this),i.addObserver(this))}},n.onQueryUpdate=function(i){var o={};i.type==="success"?o.onSuccess=!0:i.type==="error"&&!_a(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;ze.batch(function(){i.onSuccess?(o.options.onSuccess==null||o.options.onSuccess(o.currentResult.data),o.options.onSettled==null||o.options.onSettled(o.currentResult.data,null)):i.onError&&(o.options.onError==null||o.options.onError(o.currentResult.error),o.options.onSettled==null||o.options.onSettled(void 0,o.currentResult.error)),i.listeners&&o.listeners.forEach(function(s){s(o.currentResult)}),i.cache&&o.client.getQueryCache().notify({query:o.currentQuery,type:"observerResultsUpdated"})})},t}(_s);function hb(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function dm(e,t){return hb(e,t)||e.state.dataUpdatedAt>0&&kf(e,t,t.refetchOnMount)}function kf(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&oh(e,t)}return!1}function hm(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&oh(e,n)}function oh(e,t){return e.isStaleByTime(t.staleTime)}var pb=function(e){no(t,e);function t(r,i){return e.call(this,r,i)||this}var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(i,o){e.prototype.setOptions.call(this,pe({},i,{behavior:Rf()}),o)},n.getOptimisticResult=function(i){return i.behavior=Rf(),e.prototype.getOptimisticResult.call(this,i)},n.fetchNextPage=function(i){var o;return this.fetch({cancelRefetch:(o=i==null?void 0:i.cancelRefetch)!=null?o:!0,throwOnError:i==null?void 0:i.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:i==null?void 0:i.pageParam}}})},n.fetchPreviousPage=function(i){var o;return this.fetch({cancelRefetch:(o=i==null?void 0:i.cancelRefetch)!=null?o:!0,throwOnError:i==null?void 0:i.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:i==null?void 0:i.pageParam}}})},n.createResult=function(i,o){var s,a,l,u,c,f,d=i.state,h=e.prototype.createResult.call(this,i,o);return pe({},h,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:cb(o,(s=d.data)==null?void 0:s.pages),hasPreviousPage:fb(o,(a=d.data)==null?void 0:a.pages),isFetchingNextPage:d.isFetching&&((l=d.fetchMeta)==null||(u=l.fetchMore)==null?void 0:u.direction)==="forward",isFetchingPreviousPage:d.isFetching&&((c=d.fetchMeta)==null||(f=c.fetchMore)==null?void 0:f.direction)==="backward"})},t}(I0),mb=qP.unstable_batchedUpdates;ze.setBatchNotifyFunction(mb);var yb=console;rb(yb);var pm=Je.createContext(void 0),V0=Je.createContext(!1);function B0(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pm),window.ReactQueryClientContext):pm}var vb=function(){var t=Je.useContext(B0(Je.useContext(V0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},gb=function(t){var n=t.client,r=t.contextSharing,i=r===void 0?!1:r,o=t.children;Je.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=B0(i);return Je.createElement(V0.Provider,{value:i},Je.createElement(s.Provider,{value:n},o))};function wb(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var Sb=Je.createContext(wb()),xb=function(){return Je.useContext(Sb)};function Pb(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function U0(e,t){var n=Je.useRef(!1),r=Je.useState(0),i=r[1],o=vb(),s=xb(),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=ze.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=ze.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=ze.batchCalls(a.onSettled)),a.suspense&&(typeof a.staleTime!="number"&&(a.staleTime=1e3),a.cacheTime===0&&(a.cacheTime=1)),(a.suspense||a.useErrorBoundary)&&(s.isReset()||(a.retryOnMount=!1));var l=Je.useState(function(){return new t(o,a)}),u=l[0],c=u.getOptimisticResult(a);if(Je.useEffect(function(){n.current=!0,s.clearReset();var f=u.subscribe(ze.batchCalls(function(){n.current&&i(function(d){return d+1})}));return u.updateResult(),function(){n.current=!1,f()}},[s,u]),Je.useEffect(function(){u.setOptions(a,{listeners:!1})},[a,u]),a.suspense&&c.isLoading)throw u.fetchOptimistic(a).then(function(f){var d=f.data;a.onSuccess==null||a.onSuccess(d),a.onSettled==null||a.onSettled(d,null)}).catch(function(f){s.clearReset(),a.onError==null||a.onError(f),a.onSettled==null||a.onSettled(void 0,f)});if(c.isError&&!s.isReset()&&!c.isFetching&&Pb(a.suspense,a.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return a.notifyOnChangeProps==="tracked"&&(c=u.trackResult(c,a)),c}function bb(e,t,n){var r=Bo(e,t,n);return U0(r,I0)}function _b(e,t,n){var r=Bo(e,t,n);return U0(r,pb)}var z0={exports:{}},W0={};/** + * @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 Qi=P;function Eb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Cb=typeof Object.is=="function"?Object.is:Eb,Ob=Qi.useState,Rb=Qi.useEffect,Tb=Qi.useLayoutEffect,kb=Qi.useDebugValue;function jb(e,t){var n=t(),r=Ob({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return Tb(function(){i.value=n,i.getSnapshot=t,rc(i)&&o({inst:i})},[e,n,t]),Rb(function(){return rc(i)&&o({inst:i}),e(function(){rc(i)&&o({inst:i})})},[e]),kb(n),n}function rc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Cb(e,n)}catch{return!0}}function Db(e,t){return t()}var Mb=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Db:jb;W0.useSyncExternalStore=Qi.useSyncExternalStore!==void 0?Qi.useSyncExternalStore:Mb;z0.exports=W0;var Ab=z0.exports,H0={exports:{}},Q0={};/** + * @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 Wl=P,Lb=Ab;function Nb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Fb=typeof Object.is=="function"?Object.is:Nb,$b=Lb.useSyncExternalStore,Ib=Wl.useRef,Vb=Wl.useEffect,Bb=Wl.useMemo,Ub=Wl.useDebugValue;Q0.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Ib(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Bb(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return f=p}return f=h}if(p=f,Fb(c,h))return p;var v=r(h);return i!==void 0&&i(p,v)?p:(c=h,f=v)}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 a=$b(e,o[0],o[1]);return Vb(function(){s.hasValue=!0,s.value=a},[a]),Ub(a),a};H0.exports=Q0;var zb=H0.exports;function Wb(e){e()}let q0=Wb;const Hb=e=>q0=e,Qb=()=>q0,mm=Symbol.for(`react-redux-context-${P.version}`),ym=globalThis;function qb(){let e=ym[mm];return e||(e=P.createContext(null),ym[mm]=e),e}const mr=new Proxy({},new Proxy({},{get(e,t){const n=qb();return(r,...i)=>Reflect[t](n,...i)}}));function sh(e=mr){return function(){return P.useContext(e)}}const K0=sh(),Kb=()=>{throw new Error("uSES not initialized!")};let G0=Kb;const Gb=e=>{G0=e},Yb=(e,t)=>e===t;function Xb(e=mr){const t=e===mr?K0:sh(e);return function(r,i={}){const{equalityFn:o=Yb,stabilityCheck:s=void 0,noopCheck:a=void 0}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:u,getServerState:c,stabilityCheck:f,noopCheck:d}=t();P.useRef(!0);const h=P.useCallback({[r.name](v){return r(v)}}[r.name],[r,f,s]),p=G0(u.addNestedSub,l.getState,c||l.getState,h,o);return P.useDebugValue(p),p}}const ah=Xb();var Y0={exports:{}},Pe={};/** @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 rt=typeof Symbol=="function"&&Symbol.for,lh=rt?Symbol.for("react.element"):60103,uh=rt?Symbol.for("react.portal"):60106,Hl=rt?Symbol.for("react.fragment"):60107,Ql=rt?Symbol.for("react.strict_mode"):60108,ql=rt?Symbol.for("react.profiler"):60114,Kl=rt?Symbol.for("react.provider"):60109,Gl=rt?Symbol.for("react.context"):60110,ch=rt?Symbol.for("react.async_mode"):60111,Yl=rt?Symbol.for("react.concurrent_mode"):60111,Xl=rt?Symbol.for("react.forward_ref"):60112,Jl=rt?Symbol.for("react.suspense"):60113,Jb=rt?Symbol.for("react.suspense_list"):60120,Zl=rt?Symbol.for("react.memo"):60115,eu=rt?Symbol.for("react.lazy"):60116,Zb=rt?Symbol.for("react.block"):60121,e_=rt?Symbol.for("react.fundamental"):60117,t_=rt?Symbol.for("react.responder"):60118,n_=rt?Symbol.for("react.scope"):60119;function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lh:switch(e=e.type,e){case ch:case Yl:case Hl:case ql:case Ql:case Jl:return e;default:switch(e=e&&e.$$typeof,e){case Gl:case Xl:case eu:case Zl:case Kl:return e;default:return t}}case uh:return t}}}function X0(e){return $t(e)===Yl}Pe.AsyncMode=ch;Pe.ConcurrentMode=Yl;Pe.ContextConsumer=Gl;Pe.ContextProvider=Kl;Pe.Element=lh;Pe.ForwardRef=Xl;Pe.Fragment=Hl;Pe.Lazy=eu;Pe.Memo=Zl;Pe.Portal=uh;Pe.Profiler=ql;Pe.StrictMode=Ql;Pe.Suspense=Jl;Pe.isAsyncMode=function(e){return X0(e)||$t(e)===ch};Pe.isConcurrentMode=X0;Pe.isContextConsumer=function(e){return $t(e)===Gl};Pe.isContextProvider=function(e){return $t(e)===Kl};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lh};Pe.isForwardRef=function(e){return $t(e)===Xl};Pe.isFragment=function(e){return $t(e)===Hl};Pe.isLazy=function(e){return $t(e)===eu};Pe.isMemo=function(e){return $t(e)===Zl};Pe.isPortal=function(e){return $t(e)===uh};Pe.isProfiler=function(e){return $t(e)===ql};Pe.isStrictMode=function(e){return $t(e)===Ql};Pe.isSuspense=function(e){return $t(e)===Jl};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hl||e===Yl||e===ql||e===Ql||e===Jl||e===Jb||typeof e=="object"&&e!==null&&(e.$$typeof===eu||e.$$typeof===Zl||e.$$typeof===Kl||e.$$typeof===Gl||e.$$typeof===Xl||e.$$typeof===e_||e.$$typeof===t_||e.$$typeof===n_||e.$$typeof===Zb)};Pe.typeOf=$t;Y0.exports=Pe;var r_=Y0.exports,J0=r_,i_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Z0={};Z0[J0.ForwardRef]=i_;Z0[J0.Memo]=o_;var be={};/** + * @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 fh=Symbol.for("react.element"),dh=Symbol.for("react.portal"),tu=Symbol.for("react.fragment"),nu=Symbol.for("react.strict_mode"),ru=Symbol.for("react.profiler"),iu=Symbol.for("react.provider"),ou=Symbol.for("react.context"),s_=Symbol.for("react.server_context"),su=Symbol.for("react.forward_ref"),au=Symbol.for("react.suspense"),lu=Symbol.for("react.suspense_list"),uu=Symbol.for("react.memo"),cu=Symbol.for("react.lazy"),a_=Symbol.for("react.offscreen"),e1;e1=Symbol.for("react.module.reference");function Yt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fh:switch(e=e.type,e){case tu:case ru:case nu:case au:case lu:return e;default:switch(e=e&&e.$$typeof,e){case s_:case ou:case su:case cu:case uu:case iu:return e;default:return t}}case dh:return t}}}be.ContextConsumer=ou;be.ContextProvider=iu;be.Element=fh;be.ForwardRef=su;be.Fragment=tu;be.Lazy=cu;be.Memo=uu;be.Portal=dh;be.Profiler=ru;be.StrictMode=nu;be.Suspense=au;be.SuspenseList=lu;be.isAsyncMode=function(){return!1};be.isConcurrentMode=function(){return!1};be.isContextConsumer=function(e){return Yt(e)===ou};be.isContextProvider=function(e){return Yt(e)===iu};be.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fh};be.isForwardRef=function(e){return Yt(e)===su};be.isFragment=function(e){return Yt(e)===tu};be.isLazy=function(e){return Yt(e)===cu};be.isMemo=function(e){return Yt(e)===uu};be.isPortal=function(e){return Yt(e)===dh};be.isProfiler=function(e){return Yt(e)===ru};be.isStrictMode=function(e){return Yt(e)===nu};be.isSuspense=function(e){return Yt(e)===au};be.isSuspenseList=function(e){return Yt(e)===lu};be.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tu||e===ru||e===nu||e===au||e===lu||e===a_||typeof e=="object"&&e!==null&&(e.$$typeof===cu||e.$$typeof===uu||e.$$typeof===iu||e.$$typeof===ou||e.$$typeof===su||e.$$typeof===e1||e.getModuleId!==void 0)};be.typeOf=Yt;function l_(){const e=Qb();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 vm={notify(){},get:()=>[]};function u_(e,t){let n,r=vm;function i(f){return l(),r.subscribe(f)}function o(){r.notify()}function s(){c.onStateChange&&c.onStateChange()}function a(){return!!n}function l(){n||(n=t?t.addNestedSub(s):e.subscribe(s),r=l_())}function u(){n&&(n(),n=void 0,r.clear(),r=vm)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const c_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f_=c_?P.useLayoutEffect:P.useEffect;function d_({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=P.useMemo(()=>{const u=u_(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,noopCheck:o}},[e,r,i,o]),a=P.useMemo(()=>e.getState(),[e]);f_(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const l=t||mr;return Je.createElement(l.Provider,{value:s},n)}function t1(e=mr){const t=e===mr?K0:sh(e);return function(){const{store:r}=t();return r}}const h_=t1();function p_(e=mr){const t=e===mr?h_:t1(e);return function(){return t().dispatch}}const m_=p_();Gb(zb.useSyncExternalStoreWithSelector);Hb(Hi.unstable_batchedUpdates);/** + * @remix-run/router v1.7.1 + * + * 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 De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function qi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function v_(){return Math.random().toString(36).substr(2,8)}function wm(e,t){return{usr:e.state,key:e.key,idx:t}}function fs(e,t,n,r){return n===void 0&&(n=null),De({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$n(t):t,{state:n,key:t&&t.key||r||v_()})}function zr(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 $n(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 g_(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Ke.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(De({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=Ke.Pop;let _=c(),g=_==null?null:_-u;u=_,l&&l({action:a,location:v.location,delta:g})}function d(_,g){a=Ke.Push;let m=fs(v.location,_,g);n&&n(m,_),u=c()+1;let y=wm(m,u),w=v.createHref(m);try{s.pushState(y,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(w)}o&&l&&l({action:a,location:v.location,delta:1})}function h(_,g){a=Ke.Replace;let m=fs(v.location,_,g);n&&n(m,_),u=c();let y=wm(m,u),w=v.createHref(m);s.replaceState(y,"",w),o&&l&&l({action:a,location:v.location,delta:0})}function p(_){let g=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof _=="string"?_:zr(_);return ce(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let v={get action(){return a},get location(){return e(i,s)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(gm,f),l=_,()=>{i.removeEventListener(gm,f),l=null}},createHref(_){return t(i,_)},createURL:p,encodeLocation(_){let g=p(_);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:h,go(_){return s.go(_)}};return v}var Ye;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ye||(Ye={}));const w_=new Set(["lazy","caseSensitive","path","id","index","children"]);function S_(e){return e.index===!0}function jf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,o)=>{let s=[...n,o],a=typeof i.id=="string"?i.id:s.join("-");if(ce(i.index!==!0||!i.children,"Cannot specify children on an index route"),ce(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),S_(i)){let l=De({},i,t(i),{id:a});return r[a]=l,l}else{let l=De({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=jf(i.children,t,s,r)),l}})}function bi(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$n(t):t,i=Kr(r.pathname||"/",n);if(i==null)return null;let o=n1(e);x_(o);let s=null;for(let a=0;s==null&&a{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(ce(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=On([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(ce(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),n1(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:R_(u,o.index),routesMeta:c})};return e.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of r1(o.path))i(o,s,l)}),t}function r1(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 s=r1(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function x_(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:T_(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const P_=/^:\w+$/,b_=3,__=2,E_=1,C_=10,O_=-2,Sm=e=>e==="*";function R_(e,t){let n=e.split("/"),r=n.length;return n.some(Sm)&&(r+=O_),t&&(r+=__),n.filter(i=>!Sm(i)).reduce((i,o)=>i+(P_.test(o)?b_:o===""?E_:C_),r)}function T_(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 k_(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let s=0;s{if(c==="*"){let d=a[f]||"";s=o.slice(0,o.length-d.length).replace(/(.)\/+$/,"$1")}return u[c]=A_(a[f]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function D_(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),qi(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,(s,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function M_(e){try{return decodeURI(e)}catch(t){return qi(!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 A_(e,t){try{return decodeURIComponent(e)}catch(n){return qi(!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 Kr(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 L_(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?$n(e):e;return{pathname:n?n.startsWith("/")?n:N_(n,t):t,search:$_(r),hash:I_(i)}}function N_(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 and the router will parse it for you.'}function fu(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function hh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=$n(e):(i=De({},e),ce(!i.pathname||!i.pathname.includes("?"),ic("?","pathname","search",i)),ce(!i.pathname||!i.pathname.includes("#"),ic("#","pathname","hash",i)),ce(!i.search||!i.search.includes("#"),ic("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,a;if(r||s==null)a=n;else{let f=t.length-1;if(s.startsWith("..")){let d=s.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=L_(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const On=e=>e.join("/").replace(/\/\/+/g,"/"),F_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,I_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ph{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 i1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o1=["post","put","patch","delete"],V_=new Set(o1),B_=["get",...o1],U_=new Set(B_),z_=new Set([301,302,303,307,308]),W_=new Set([307,308]),oc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H_={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},s1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Q_=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function q_(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ce(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let S=e.detectErrorBoundary;i=x=>({hasErrorBoundary:S(x)})}else i=Q_;let o={},s=jf(e.routes,i,void 0,o),a,l=e.basename||"/",u=De({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,d=null,h=null,p=null,v=e.hydrationData!=null,_=bi(s,e.history.location,l),g=null;if(_==null){let S=Ut(404,{pathname:e.history.location.pathname}),{matches:x,route:C}=Rm(s);_=x,g={[C.id]:S}}let m=!_.some(S=>S.route.lazy)&&(!_.some(S=>S.route.loader)||e.hydrationData!=null),y,w={historyAction:e.history.action,location:e.history.location,matches:_,initialized:m,navigation:oc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},E=Ke.Pop,O=!1,j,R=!1,$=!1,M=[],te=[],J=new Map,K=0,N=-1,A=new Map,B=new Set,V=new Map,k=new Map,F=new Map,z=!1;function q(){return c=e.history.listen(S=>{let{action:x,location:C,delta:D}=S;if(z){z=!1;return}qi(F.size===0||D!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let I=U({currentLocation:w.location,nextLocation:C,historyAction:x});if(I&&D!=null){z=!0,e.history.go(D*-1),ri(I,{state:"blocked",location:C,proceed(){ri(I,{state:"proceeding",proceed:void 0,reset:void 0,location:C}),e.history.go(D)},reset(){let G=new Map(w.blockers);G.set(I,vo),re({blockers:G})}});return}return we(x,C)}),w.initialized||we(Ke.Pop,w.location),y}function ne(){c&&c(),f.clear(),j&&j.abort(),w.fetchers.forEach((S,x)=>oo(x)),w.blockers.forEach((S,x)=>ni(x))}function se(S){return f.add(S),()=>f.delete(S)}function re(S){w=De({},w,S),f.forEach(x=>x(w))}function fe(S,x){var C,D;let I=w.actionData!=null&&w.navigation.formMethod!=null&&en(w.navigation.formMethod)&&w.navigation.state==="loading"&&((C=S.state)==null?void 0:C._isRedirect)!==!0,G;x.actionData?Object.keys(x.actionData).length>0?G=x.actionData:G=null:I?G=w.actionData:G=null;let Z=x.loaderData?Om(w.loaderData,x.loaderData,x.matches||[],x.errors):w.loaderData,X=w.blockers;X.size>0&&(X=new Map(X),X.forEach((ae,ie)=>X.set(ie,vo)));let Y=O===!0||w.navigation.formMethod!=null&&en(w.navigation.formMethod)&&((D=S.state)==null?void 0:D._isRedirect)!==!0;a&&(s=a,a=void 0),R||E===Ke.Pop||(E===Ke.Push?e.history.push(S,S.state):E===Ke.Replace&&e.history.replace(S,S.state)),re(De({},x,{actionData:G,loaderData:Z,historyAction:E,location:S,initialized:!0,navigation:oc,revalidation:"idle",restoreScrollPosition:ue(S,x.matches||w.matches),preventScrollReset:Y,blockers:X})),E=Ke.Pop,O=!1,R=!1,$=!1,M=[],te=[]}async function ge(S,x){if(typeof S=="number"){e.history.go(S);return}let C=Df(w.location,w.matches,l,u.v7_prependBasename,S,x==null?void 0:x.fromRouteId,x==null?void 0:x.relative),{path:D,submission:I,error:G}=xm(u.v7_normalizeFormMethod,!1,C,x),Z=w.location,X=fs(w.location,D,x&&x.state);X=De({},X,e.history.encodeLocation(X));let Y=x&&x.replace!=null?x.replace:void 0,ae=Ke.Push;Y===!0?ae=Ke.Replace:Y===!1||I!=null&&en(I.formMethod)&&I.formAction===w.location.pathname+w.location.search&&(ae=Ke.Replace);let ie=x&&"preventScrollReset"in x?x.preventScrollReset===!0:void 0,Se=U({currentLocation:Z,nextLocation:X,historyAction:ae});if(Se){ri(Se,{state:"blocked",location:X,proceed(){ri(Se,{state:"proceeding",proceed:void 0,reset:void 0,location:X}),ge(S,x)},reset(){let Ce=new Map(w.blockers);Ce.set(Se,vo),re({blockers:Ce})}});return}return await we(ae,X,{submission:I,pendingError:G,preventScrollReset:ie,replace:x&&x.replace})}function Qe(){if(Zr(),re({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){we(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}we(E||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function we(S,x,C){j&&j.abort(),j=null,E=S,R=(C&&C.startUninterruptedRevalidation)===!0,le(w.location,w.matches),O=(C&&C.preventScrollReset)===!0;let D=a||s,I=C&&C.overrideNavigation,G=bi(D,x,l);if(!G){let Ce=Ut(404,{pathname:x.pathname}),{matches:Be,route:yt}=Rm(D);T(),fe(x,{matches:Be,loaderData:{},errors:{[yt.id]:Ce}});return}if(w.initialized&&!$&&J_(w.location,x)&&!(C&&C.submission&&en(C.submission.formMethod))){fe(x,{matches:G});return}j=new AbortController;let Z=wo(e.history,x,j.signal,C&&C.submission),X,Y;if(C&&C.pendingError)Y={[_i(G).route.id]:C.pendingError};else if(C&&C.submission&&en(C.submission.formMethod)){let Ce=await Ee(Z,x,C.submission,G,{replace:C.replace});if(Ce.shortCircuited)return;X=Ce.pendingActionData,Y=Ce.pendingActionError,I=ra(x,C.submission),Z=new Request(Z.url,{signal:Z.signal})}let{shortCircuited:ae,loaderData:ie,errors:Se}=await Ne(Z,x,G,I,C&&C.submission,C&&C.fetcherSubmission,C&&C.replace,X,Y);ae||(j=null,fe(x,De({matches:G},X?{actionData:X}:{},{loaderData:ie,errors:Se})))}async function Ee(S,x,C,D,I){I===void 0&&(I={}),Zr();let G=rE(x,C);re({navigation:G});let Z,X=Af(D,x);if(!X.route.action&&!X.route.lazy)Z={type:Ye.error,error:Ut(405,{method:S.method,pathname:x.pathname,routeId:X.route.id})};else if(Z=await go("action",S,X,D,o,i,l),S.signal.aborted)return{shortCircuited:!0};if(Li(Z)){let Y;return I&&I.replace!=null?Y=I.replace:Y=Z.location===w.location.pathname+w.location.search,await It(w,Z,{submission:C,replace:Y}),{shortCircuited:!0}}if(zo(Z)){let Y=_i(D,X.route.id);return(I&&I.replace)!==!0&&(E=Ke.Push),{pendingActionData:{},pendingActionError:{[Y.route.id]:Z.error}}}if(Ar(Z))throw Ut(400,{type:"defer-action"});return{pendingActionData:{[X.route.id]:Z.data}}}async function Ne(S,x,C,D,I,G,Z,X,Y){let ae=D||ra(x,I),ie=I||G||jm(ae),Se=a||s,[Ce,Be]=Pm(e.history,w,C,ie,x,$,M,te,V,B,Se,l,X,Y);if(T(je=>!(C&&C.some(Vt=>Vt.route.id===je))||Ce&&Ce.some(Vt=>Vt.route.id===je)),Ce.length===0&&Be.length===0){let je=so();return fe(x,De({matches:C,loaderData:{},errors:Y||null},X?{actionData:X}:{},je?{fetchers:new Map(w.fetchers)}:{})),{shortCircuited:!0}}if(!R){Be.forEach(Vt=>{let oi=w.fetchers.get(Vt.key),it=So(void 0,oi?oi.data:void 0);w.fetchers.set(Vt.key,it)});let je=X||w.actionData;re(De({navigation:ae},je?Object.keys(je).length===0?{actionData:null}:{actionData:je}:{},Be.length>0?{fetchers:new Map(w.fetchers)}:{}))}N=++K,Be.forEach(je=>{J.has(je.key)&&Rt(je.key),je.controller&&J.set(je.key,je.controller)});let yt=()=>Be.forEach(je=>Rt(je.key));j&&j.signal.addEventListener("abort",yt);let{results:Vn,loaderResults:ii,fetcherResults:Fs}=await Ls(w.matches,C,Ce,Be,S);if(S.signal.aborted)return{shortCircuited:!0};j&&j.signal.removeEventListener("abort",yt),Be.forEach(je=>J.delete(je.key));let gn=Tm(Vn);if(gn)return await It(w,gn,{replace:Z}),{shortCircuited:!0};let{loaderData:$s,errors:Ru}=Cm(w,C,Ce,ii,Y,Be,Fs,k);k.forEach((je,Vt)=>{je.subscribe(oi=>{(oi||je.done)&&k.delete(Vt)})});let Tu=so(),ku=ei(N),Is=Tu||ku||Be.length>0;return De({loaderData:$s,errors:Ru},Is?{fetchers:new Map(w.fetchers)}:{})}function he(S){return w.fetchers.get(S)||H_}function ke(S,x,C,D){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");J.has(S)&&Rt(S);let I=a||s,G=Df(w.location,w.matches,l,u.v7_prependBasename,C,x,D==null?void 0:D.relative),Z=bi(I,G,l);if(!Z){br(S,x,Ut(404,{pathname:G}));return}let{path:X,submission:Y,error:ae}=xm(u.v7_normalizeFormMethod,!0,G,D);if(ae){br(S,x,ae);return}let ie=Af(Z,X);if(O=(D&&D.preventScrollReset)===!0,Y&&en(Y.formMethod)){lt(S,x,X,ie,Z,Y);return}V.set(S,{routeId:x,path:X}),As(S,x,X,ie,Z,Y)}async function lt(S,x,C,D,I,G){if(Zr(),V.delete(S),!D.route.action&&!D.route.lazy){let it=Ut(405,{method:G.formMethod,pathname:C,routeId:x});br(S,x,it);return}let Z=w.fetchers.get(S),X=iE(G,Z);w.fetchers.set(S,X),re({fetchers:new Map(w.fetchers)});let Y=new AbortController,ae=wo(e.history,C,Y.signal,G);J.set(S,Y);let ie=await go("action",ae,D,I,o,i,l);if(ae.signal.aborted){J.get(S)===Y&&J.delete(S);return}if(Li(ie)){J.delete(S),B.add(S);let it=So(G);return w.fetchers.set(S,it),re({fetchers:new Map(w.fetchers)}),It(w,ie,{submission:G,isFetchActionRedirect:!0})}if(zo(ie)){br(S,x,ie.error);return}if(Ar(ie))throw Ut(400,{type:"defer-action"});let Se=w.navigation.location||w.location,Ce=wo(e.history,Se,Y.signal),Be=a||s,yt=w.navigation.state!=="idle"?bi(Be,w.navigation.location,l):w.matches;ce(yt,"Didn't find any matches after fetcher action");let Vn=++K;A.set(S,Vn);let ii=So(G,ie.data);w.fetchers.set(S,ii);let[Fs,gn]=Pm(e.history,w,yt,G,Se,$,M,te,V,B,Be,l,{[D.route.id]:ie.data},void 0);gn.filter(it=>it.key!==S).forEach(it=>{let ao=it.key,Jh=w.fetchers.get(ao),wS=So(void 0,Jh?Jh.data:void 0);w.fetchers.set(ao,wS),J.has(ao)&&Rt(ao),it.controller&&J.set(ao,it.controller)}),re({fetchers:new Map(w.fetchers)});let $s=()=>gn.forEach(it=>Rt(it.key));Y.signal.addEventListener("abort",$s);let{results:Ru,loaderResults:Tu,fetcherResults:ku}=await Ls(w.matches,yt,Fs,gn,Ce);if(Y.signal.aborted)return;Y.signal.removeEventListener("abort",$s),A.delete(S),J.delete(S),gn.forEach(it=>J.delete(it.key));let Is=Tm(Ru);if(Is)return It(w,Is);let{loaderData:je,errors:Vt}=Cm(w,w.matches,Fs,Tu,void 0,gn,ku,k);if(w.fetchers.has(S)){let it=Ea(ie.data);w.fetchers.set(S,it)}let oi=ei(Vn);w.navigation.state==="loading"&&Vn>N?(ce(E,"Expected pending action"),j&&j.abort(),fe(w.navigation.location,{matches:yt,loaderData:je,errors:Vt,fetchers:new Map(w.fetchers)})):(re(De({errors:Vt,loaderData:Om(w.loaderData,je,yt,Vt)},oi||gn.length>0?{fetchers:new Map(w.fetchers)}:{})),$=!1)}async function As(S,x,C,D,I,G){let Z=w.fetchers.get(S),X=So(G,Z?Z.data:void 0);w.fetchers.set(S,X),re({fetchers:new Map(w.fetchers)});let Y=new AbortController,ae=wo(e.history,C,Y.signal);J.set(S,Y);let ie=await go("loader",ae,D,I,o,i,l);if(Ar(ie)&&(ie=await u1(ie,ae.signal,!0)||ie),J.get(S)===Y&&J.delete(S),ae.signal.aborted)return;if(Li(ie)){B.add(S),await It(w,ie);return}if(zo(ie)){let Ce=_i(w.matches,x);w.fetchers.delete(S),re({fetchers:new Map(w.fetchers),errors:{[Ce.route.id]:ie.error}});return}ce(!Ar(ie),"Unhandled fetcher deferred data");let Se=Ea(ie.data);w.fetchers.set(S,Se),re({fetchers:new Map(w.fetchers)})}async function It(S,x,C){let{submission:D,replace:I,isFetchActionRedirect:G}=C===void 0?{}:C;x.revalidate&&($=!0);let Z=fs(S.location,x.location,De({_isRedirect:!0},G?{_isFetchActionRedirect:!0}:{}));if(ce(Z,"Expected a location on the redirect navigation"),s1.test(x.location)&&n){let ae=e.history.createURL(x.location),ie=Kr(ae.pathname,l)==null;if(t.location.origin!==ae.origin||ie){I?t.location.replace(x.location):t.location.assign(x.location);return}}j=null;let X=I===!0?Ke.Replace:Ke.Push,Y=D||jm(S.navigation);if(W_.has(x.status)&&Y&&en(Y.formMethod))await we(X,Z,{submission:De({},Y,{formAction:x.location}),preventScrollReset:O});else if(G)await we(X,Z,{overrideNavigation:ra(Z),fetcherSubmission:Y,preventScrollReset:O});else{let ae=ra(Z,Y);await we(X,Z,{overrideNavigation:ae,preventScrollReset:O})}}async function Ls(S,x,C,D,I){let G=await Promise.all([...C.map(Y=>go("loader",I,Y,x,o,i,l)),...D.map(Y=>Y.matches&&Y.match&&Y.controller?go("loader",wo(e.history,Y.path,Y.controller.signal),Y.match,Y.matches,o,i,l):{type:Ye.error,error:Ut(404,{pathname:Y.path})})]),Z=G.slice(0,C.length),X=G.slice(C.length);return await Promise.all([km(S,C,Z,Z.map(()=>I.signal),!1,w.loaderData),km(S,D.map(Y=>Y.match),X,D.map(Y=>Y.controller?Y.controller.signal:null),!0)]),{results:G,loaderResults:Z,fetcherResults:X}}function Zr(){$=!0,M.push(...T()),V.forEach((S,x)=>{J.has(x)&&(te.push(x),Rt(x))})}function br(S,x,C){let D=_i(w.matches,x);oo(S),re({errors:{[D.route.id]:C},fetchers:new Map(w.fetchers)})}function oo(S){let x=w.fetchers.get(S);J.has(S)&&!(x&&x.state==="loading"&&A.has(S))&&Rt(S),V.delete(S),A.delete(S),B.delete(S),w.fetchers.delete(S)}function Rt(S){let x=J.get(S);ce(x,"Expected fetch controller: "+S),x.abort(),J.delete(S)}function Ns(S){for(let x of S){let C=he(x),D=Ea(C.data);w.fetchers.set(x,D)}}function so(){let S=[],x=!1;for(let C of B){let D=w.fetchers.get(C);ce(D,"Expected fetcher: "+C),D.state==="loading"&&(B.delete(C),S.push(C),x=!0)}return Ns(S),x}function ei(S){let x=[];for(let[C,D]of A)if(D0}function ti(S,x){let C=w.blockers.get(S)||vo;return F.get(S)!==x&&F.set(S,x),C}function ni(S){w.blockers.delete(S),F.delete(S)}function ri(S,x){let C=w.blockers.get(S)||vo;ce(C.state==="unblocked"&&x.state==="blocked"||C.state==="blocked"&&x.state==="blocked"||C.state==="blocked"&&x.state==="proceeding"||C.state==="blocked"&&x.state==="unblocked"||C.state==="proceeding"&&x.state==="unblocked","Invalid blocker state transition: "+C.state+" -> "+x.state);let D=new Map(w.blockers);D.set(S,x),re({blockers:D})}function U(S){let{currentLocation:x,nextLocation:C,historyAction:D}=S;if(F.size===0)return;F.size>1&&qi(!1,"A router only supports one blocker at a time");let I=Array.from(F.entries()),[G,Z]=I[I.length-1],X=w.blockers.get(G);if(!(X&&X.state==="proceeding")&&Z({currentLocation:x,nextLocation:C,historyAction:D}))return G}function T(S){let x=[];return k.forEach((C,D)=>{(!S||S(D))&&(C.cancel(),x.push(D),k.delete(D))}),x}function W(S,x,C){if(d=S,p=x,h=C||null,!v&&w.navigation===oc){v=!0;let D=ue(w.location,w.matches);D!=null&&re({restoreScrollPosition:D})}return()=>{d=null,p=null,h=null}}function Q(S,x){return h&&h(S,x.map(D=>nE(D,w.loaderData)))||S.key}function le(S,x){if(d&&p){let C=Q(S,x);d[C]=p()}}function ue(S,x){if(d){let C=Q(S,x),D=d[C];if(typeof D=="number")return D}return null}function ve(S){o={},a=jf(S,i,void 0,o)}return y={get basename(){return l},get state(){return w},get routes(){return s},initialize:q,subscribe:se,enableScrollRestoration:W,navigate:ge,fetch:ke,revalidate:Qe,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:he,deleteFetcher:oo,dispose:ne,getBlocker:ti,deleteBlocker:ni,_internalFetchControllers:J,_internalActiveDeferreds:k,_internalSetRoutes:ve},y}function K_(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Df(e,t,n,r,i,o,s){let a,l;if(o!=null&&s!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===o){l=c;break}}else a=t,l=t[t.length-1];let u=hh(i||".",fu(a).map(c=>c.pathnameBase),Kr(e.pathname,n)||e.pathname,s==="path");return i==null&&(u.search=e.search,u.hash=e.hash),(i==null||i===""||i===".")&&l&&l.route.index&&!mh(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:On([n,u.pathname])),zr(u)}function xm(e,t,n,r){if(!r||!K_(r))return{path:n};if(r.formMethod&&!tE(r.formMethod))return{path:n,error:Ut(405,{method:r.formMethod})};let i=()=>({path:n,error:Ut(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=l1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!en(s))return i();let d=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((h,p)=>{let[v,_]=p;return""+h+v+"="+_+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:d}}}else if(r.formEncType==="application/json"){if(!en(s))return i();try{let d=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:a,formEncType:r.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}ce(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Mf(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Mf(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Em(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Em(l)}catch{return i()}let c={formMethod:s,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(en(c.formMethod))return{path:n,submission:c};let f=$n(n);return t&&f.search&&mh(f.search)&&l.append("index",""),f.search="?"+l,{path:zr(f),submission:c}}function G_(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Pm(e,t,n,r,i,o,s,a,l,u,c,f,d,h){let p=h?Object.values(h)[0]:d?Object.values(d)[0]:void 0,v=e.createURL(t.location),_=e.createURL(i),g=h?Object.keys(h)[0]:void 0,y=G_(n,g).filter((E,O)=>{if(E.route.lazy)return!0;if(E.route.loader==null)return!1;if(Y_(t.loaderData,t.matches[O],E)||s.some($=>$===E.route.id))return!0;let j=t.matches[O],R=E;return bm(E,De({currentUrl:v,currentParams:j.params,nextUrl:_,nextParams:R.params},r,{actionResult:p,defaultShouldRevalidate:o||v.pathname+v.search===_.pathname+_.search||v.search!==_.search||a1(j,R)}))}),w=[];return l.forEach((E,O)=>{if(!n.some(J=>J.route.id===E.routeId))return;let j=bi(c,E.path,f);if(!j){w.push({key:O,routeId:E.routeId,path:E.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get(O),$=R&&R.state!=="idle"&&R.data===void 0&&!u.has(O),M=Af(j,E.path);(a.includes(O)||$||bm(M,De({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:n[n.length-1].params},r,{actionResult:p,defaultShouldRevalidate:o})))&&w.push({key:O,routeId:E.routeId,path:E.path,matches:j,match:M,controller:new AbortController})}),[y,w]}function Y_(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function a1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function bm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function _m(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];ce(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";qi(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!w_.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,De({},t(i),{lazy:void 0}))}async function go(e,t,n,r,i,o,s,a){a===void 0&&(a={});let l,u,c,f=p=>{let v,_=new Promise((g,m)=>v=m);return c=()=>v(),t.signal.addEventListener("abort",c),Promise.race([p({request:t,params:n.params,context:a.requestContext}),_])};try{let p=n.route[e];if(n.route.lazy)if(p)u=(await Promise.all([f(p),_m(n.route,o,i)]))[0];else if(await _m(n.route,o,i),p=n.route[e],p)u=await f(p);else if(e==="action"){let v=new URL(t.url),_=v.pathname+v.search;throw Ut(405,{method:t.method,pathname:_,routeId:n.route.id})}else return{type:Ye.data,data:void 0};else if(p)u=await f(p);else{let v=new URL(t.url),_=v.pathname+v.search;throw Ut(404,{pathname:_})}ce(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(p){l=Ye.error,u=p}finally{c&&t.signal.removeEventListener("abort",c)}if(eE(u)){let p=u.status;if(z_.has(p)){let g=u.headers.get("Location");if(ce(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!s1.test(g))g=Df(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,g);else if(!a.isStaticRequest){let m=new URL(t.url),y=g.startsWith("//")?new URL(m.protocol+g):new URL(g),w=Kr(y.pathname,s)!=null;y.origin===m.origin&&w&&(g=y.pathname+y.search+y.hash)}if(a.isStaticRequest)throw u.headers.set("Location",g),u;return{type:Ye.redirect,status:p,location:g,revalidate:u.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:l||Ye.data,response:u};let v,_=u.headers.get("Content-Type");return _&&/\bapplication\/json\b/.test(_)?v=await u.json():v=await u.text(),l===Ye.error?{type:l,error:new ph(p,u.statusText,v),headers:u.headers}:{type:Ye.data,data:v,statusCode:u.status,headers:u.headers}}if(l===Ye.error)return{type:l,error:u};if(Z_(u)){var d,h;return{type:Ye.deferred,deferredData:u,statusCode:(d=u.init)==null?void 0:d.status,headers:((h=u.init)==null?void 0:h.headers)&&new Headers(u.init.headers)}}return{type:Ye.data,data:u}}function wo(e,t,n,r){let i=e.createURL(l1(t)).toString(),o={signal:n};if(r&&en(r.formMethod)){let{formMethod:s,formEncType:a}=r;o.method=s.toUpperCase(),a==="application/json"?(o.headers=new Headers({"Content-Type":a}),o.body=JSON.stringify(r.json)):a==="text/plain"?o.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?o.body=Mf(r.formData):o.body=r.formData}return new Request(i,o)}function Mf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Em(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function X_(e,t,n,r,i){let o={},s=null,a,l=!1,u={};return n.forEach((c,f)=>{let d=t[f].route.id;if(ce(!Li(c),"Cannot handle redirect results in processLoaderData"),zo(c)){let h=_i(e,d),p=c.error;r&&(p=Object.values(r)[0],r=void 0),s=s||{},s[h.route.id]==null&&(s[h.route.id]=p),o[d]=void 0,l||(l=!0,a=i1(c.error)?c.error.status:500),c.headers&&(u[d]=c.headers)}else Ar(c)?(i.set(d,c.deferredData),o[d]=c.deferredData.data):o[d]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(a=c.statusCode),c.headers&&(u[d]=c.headers)}),r&&(s=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:s,statusCode:a||200,loaderHeaders:u}}function Cm(e,t,n,r,i,o,s,a){let{loaderData:l,errors:u}=X_(t,n,r,i,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Rm(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ut(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,s="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?a="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"?a="defer() is not supported in actions":o==="invalid-body"&&(a="Unable to encode submission body")):e===403?(s="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",a='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?a="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new ph(e||500,s,new Error(a),!0)}function Tm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Li(n))return n}}function l1(e){let t=typeof e=="string"?$n(e):e;return zr(De({},t,{hash:""}))}function J_(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ar(e){return e.type===Ye.deferred}function zo(e){return e.type===Ye.error}function Li(e){return(e&&e.type)===Ye.redirect}function Z_(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function eE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function tE(e){return U_.has(e.toLowerCase())}function en(e){return V_.has(e.toLowerCase())}async function km(e,t,n,r,i,o){for(let s=0;sf.route.id===l.route.id),c=u!=null&&!a1(u,l)&&(o&&o[l.route.id])!==void 0;if(Ar(a)&&(i||c)){let f=r[s];ce(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await u1(a,f,i).then(d=>{d&&(n[s]=d||n[s])})}}}async function u1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ye.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ye.error,error:i}}return{type:Ye.data,data:e.deferredData.data}}}function mh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function nE(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Af(e,t){let n=typeof t=="string"?$n(t).search:t.search;if(e[e.length-1].route.index&&mh(n||""))return e[e.length-1];let r=fu(e);return r[r.length-1]}function jm(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:o,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:o,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function ra(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function rE(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function So(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t," _hasFetcherDoneAnything ":!0}}function iE(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0," _hasFetcherDoneAnything ":!0}}function Ea(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}/** + * React Router v6.14.1 + * + * 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 cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),s=P.useRef(!1);return f1(()=>{s.current=!0}),P.useCallback(function(l,u){if(u===void 0&&(u={}),!s.current)return;if(typeof l=="number"){n.go(l);return}let c=hh(l,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:On([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}const aE=P.createContext(null);function lE(e){let t=P.useContext(In).outlet;return t&&P.createElement(aE.Provider,{value:e},t)}function gh(){let{matches:e}=P.useContext(In),t=e[e.length-1];return t?t.params:{}}function d1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=P.useContext(In),{pathname:i}=Yr(),o=JSON.stringify(fu(r).map(s=>s.pathnameBase));return P.useMemo(()=>hh(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function uE(e,t,n){Cs()||ce(!1);let{navigator:r}=P.useContext(Gr),{matches:i}=P.useContext(In),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Yr(),u;if(t){var c;let v=typeof t=="string"?$n(t):t;a==="/"||(c=v.pathname)!=null&&c.startsWith(a)||ce(!1),u=v}else u=l;let f=u.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",h=bi(e,{pathname:d}),p=pE(h&&h.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:On([a,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:On([a,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,n);return t&&p?P.createElement(du.Provider,{value:{location:cl({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ke.Pop}},p):p}function cE(){let e=wE(),t=i1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:i},n):null,o)}const fE=P.createElement(cE,null);class dE extends P.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?P.createElement(In.Provider,{value:this.props.routeContext},P.createElement(c1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hE(e){let{routeContext:t,match:n,children:r}=e,i=P.useContext(Es);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),P.createElement(In.Provider,{value:t},r)}function pE(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let o=e,s=(r=n)==null?void 0:r.errors;if(s!=null){let a=o.findIndex(l=>l.route.id&&(s==null?void 0:s[l.route.id]));a>=0||ce(!1),o=o.slice(0,Math.min(o.length,a+1))}return o.reduceRight((a,l,u)=>{let c=l.route.id?s==null?void 0:s[l.route.id]:null,f=null;n&&(f=l.route.errorElement||fE);let d=t.concat(o.slice(0,u+1)),h=()=>{let p;return c?p=f:l.route.Component?p=P.createElement(l.route.Component,null):l.route.element?p=l.route.element:p=a,P.createElement(hE,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:p})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?P.createElement(dE,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:h(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):h()},null)}var Lf;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Lf||(Lf={}));var Wr;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(Wr||(Wr={}));function mE(e){let t=P.useContext(Es);return t||ce(!1),t}function wh(e){let t=P.useContext(yh);return t||ce(!1),t}function yE(e){let t=P.useContext(In);return t||ce(!1),t}function h1(e){let t=yE(),n=t.matches[t.matches.length-1];return n.route.id||ce(!1),n.route.id}function vE(){return wh(Wr.UseNavigation).navigation}function gE(){let{matches:e,loaderData:t}=wh(Wr.UseMatches);return P.useMemo(()=>e.map(n=>{let{pathname:r,params:i}=n;return{id:n.route.id,pathname:r,params:i,data:t[n.route.id],handle:n.route.handle}}),[e,t])}function wE(){var e;let t=P.useContext(c1),n=wh(Wr.UseRouteError),r=h1(Wr.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function SE(){let{router:e}=mE(Lf.UseNavigateStable),t=h1(Wr.UseNavigateStable),n=P.useRef(!1);return f1(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,cl({fromRouteId:t},o)))},[e,t])}const xE="startTransition",Dm=FS[xE];function PE(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=P.useState(n.state),{v7_startTransition:s}=r||{},a=P.useCallback(f=>{s&&Dm?Dm(()=>o(f)):o(f)},[o,s]);P.useLayoutEffect(()=>n.subscribe(a),[n,a]);let l=P.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:f=>n.navigate(f),push:(f,d,h)=>n.navigate(f,{state:d,preventScrollReset:h==null?void 0:h.preventScrollReset}),replace:(f,d,h)=>n.navigate(f,{replace:!0,state:d,preventScrollReset:h==null?void 0:h.preventScrollReset})}),[n]),u=n.basename||"/",c=P.useMemo(()=>({router:n,navigator:l,static:!1,basename:u}),[n,l,u]);return P.createElement(P.Fragment,null,P.createElement(Es.Provider,{value:c},P.createElement(yh.Provider,{value:i},P.createElement(EE,{basename:u,location:i.location,navigationType:i.historyAction,navigator:l},i.initialized?P.createElement(bE,{routes:n.routes,state:i}):t))),null)}function bE(e){let{routes:t,state:n}=e;return uE(t,void 0,n)}function _E(e){return lE(e.context)}function EE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ke.Pop,navigator:o,static:s=!1}=e;Cs()&&ce(!1);let a=t.replace(/^\/*/,"/"),l=P.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=$n(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,p=P.useMemo(()=>{let v=Kr(u,a);return v==null?null:{location:{pathname:v,search:c,hash:f,state:d,key:h},navigationType:i}},[a,u,c,f,d,h,i]);return p==null?null:P.createElement(Gr.Provider,{value:l},P.createElement(du.Provider,{children:n,value:p}))}var Mm;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Mm||(Mm={}));new Promise(()=>{});function CE(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:P.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:P.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.14.1 + * + * 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 Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function RE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function TE(e,t){return e.button===0&&(!t||t==="_self")&&!RE(e)}const kE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function jE(e,t){return q_({basename:t==null?void 0:t.basename,future:Ki({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:y_({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||DE(),routes:e,mapRouteProperties:CE}).initialize()}function DE(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ki({},t,{errors:ME(t.errors)})),t}function ME(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new ph(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let o=new Error(i.message);o.stack="",n[r]=o}else n[r]=i;return n}const AE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lr=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,f=OE(t,kE),{basename:d}=P.useContext(Gr),h,p=!1;if(typeof u=="string"&&LE.test(u)&&(h=u,AE))try{let m=new URL(window.location.href),y=u.startsWith("//")?new URL(m.protocol+u):new URL(u),w=Kr(y.pathname,d);y.origin===m.origin&&w!=null?u=w+y.search+y.hash:p=!0}catch{}let v=oE(u,{relative:i}),_=IE(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i});function g(m){r&&r(m),m.defaultPrevented||_(m)}return P.createElement("a",Ki({},f,{href:h||v,onClick:p||o?r:g,ref:n,target:l}))});function NE(e){let{getKey:t,storageKey:n}=e;return VE({getKey:t,storageKey:n}),null}var Nf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Nf||(Nf={}));var Ff;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ff||(Ff={}));function FE(e){let t=P.useContext(Es);return t||ce(!1),t}function $E(e){let t=P.useContext(yh);return t||ce(!1),t}function IE(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=vh(),l=Yr(),u=d1(e,{relative:s});return P.useCallback(c=>{if(TE(c,n)){c.preventDefault();let f=r!==void 0?r:zr(l)===zr(u);a(e,{replace:f,state:i,preventScrollReset:o,relative:s})}},[l,a,u,r,i,n,e,o,s])}const Am="react-router-scroll-positions";let ia={};function VE(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=FE(Nf.UseScrollRestoration),{restoreScrollPosition:i,preventScrollReset:o}=$E(Ff.UseScrollRestoration),{basename:s}=P.useContext(Gr),a=Yr(),l=gE(),u=vE();P.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),BE(P.useCallback(()=>{if(u.state==="idle"){let c=(t?t(a,l):null)||a.key;ia[c]=window.scrollY}sessionStorage.setItem(n||Am,JSON.stringify(ia)),window.history.scrollRestoration="auto"},[n,t,u.state,a,l])),typeof document<"u"&&(P.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(n||Am);c&&(ia=JSON.parse(c))}catch{}},[n]),P.useLayoutEffect(()=>{let c=t&&s!=="/"?(d,h)=>t(Ki({},d,{pathname:Kr(d.pathname,s)||d.pathname}),h):t,f=r==null?void 0:r.enableScrollRestoration(ia,()=>window.scrollY,c);return()=>f&&f()},[r,s,t]),P.useLayoutEffect(()=>{if(i!==!1){if(typeof i=="number"){window.scrollTo(0,i);return}if(a.hash){let c=document.getElementById(a.hash.slice(1));if(c){c.scrollIntoView();return}}o!==!0&&window.scrollTo(0,0)}},[a,i,o]))}function BE(e,t){let{capture:n}=t||{};P.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const UE="modulepreload",zE=function(e){return"/"+e},Lm={},Os=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=zE(o),o in Lm)return;Lm[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const f=i[c];if(f.href===o&&(!s||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":UE,s||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),s)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},WE="_error_13l6e_1",HE="_error__text_13l6e_19",oa={"error-wrapper":"_error-wrapper_13l6e_1","non-padding":"_non-padding_13l6e_5",error:WE,error__text:HE},QE="_main_7z31m_1",Nm={main:QE,"wrapper-page":"_wrapper-page_7z31m_11"},qE=({error:e,children:t})=>b.jsx(b.Fragment,{children:(e==null?void 0:e.response.status)===404?b.jsx("div",{className:Nm.main,children:b.jsx("div",{className:`wrapper ${Nm["wrapper-page"]}`,children:b.jsxs("h1",{children:["Page not found go back to the main page.",b.jsx("br",{})," To do this, click on the logo"]})})}):t}),ui=P.memo(({title:e,error:t,isError:n,children:r,classname:i})=>{var o,s;return(t==null?void 0:t.response.status)===404?b.jsx(qE,{}):b.jsx(b.Fragment,{children:n?b.jsxs("div",{className:`wrapper ${oa["error-wrapper"]} ${i==="main"?"main":oa[`${i}`]}`,children:[e?b.jsx("h3",{className:"title-article",children:e}):null,b.jsx("div",{className:oa.error,children:b.jsx("p",{className:oa.error__text,children:((s=(o=t==null?void 0:t.response)==null?void 0:o.data)==null?void 0:s.status_message)||t.message||"Sorry, something went wrong, go back to the main page"})})]}):r})});function rn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:Sh(e)?2:xh(e)?3:0}function Ni(e,t){return ro(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function KE(e,t){return ro(e)===2?e.get(t):e[t]}function p1(e,t,n){var r=ro(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function m1(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Sh(e){return eC&&e instanceof Map}function xh(e){return tC&&e instanceof Set}function Or(e){return e.o||e.t}function Ph(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=v1(e);delete t[Me];for(var n=Fi(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=GE),Object.freeze(e),t&&Hr(e,function(n,r){return bh(r,!0)},!0)),e}function GE(){rn(2)}function _h(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function mn(e){var t=Bf[e];return t||rn(18,e),t}function YE(e,t){Bf[e]||(Bf[e]=t)}function $f(){return ds}function sc(e,t){t&&(mn("Patches"),e.u=[],e.s=[],e.v=t)}function fl(e){If(e),e.p.forEach(XE),e.p=null}function If(e){e===ds&&(ds=e.l)}function Fm(e){return ds={p:[],l:ds,h:e,m:!0,_:0}}function XE(e){var t=e[Me];t.i===0||t.i===1?t.j():t.g=!0}function ac(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||mn("ES5").S(t,e,r),r?(n[Me].P&&(fl(t),rn(4)),Ln(e)&&(e=dl(t,e),t.l||hl(t,e)),t.u&&mn("Patches").M(n[Me].t,e,t.u,t.s)):e=dl(t,n,[]),fl(t),t.u&&t.v(t.u,t.s),e!==y1?e:void 0}function dl(e,t,n){if(_h(t))return t;var r=t[Me];if(!r)return Hr(t,function(a,l){return $m(e,r,t,a,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return hl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Ph(r.k):r.o,o=i,s=!1;r.i===3&&(o=new Set(i),i.clear(),s=!0),Hr(o,function(a,l){return $m(e,r,i,a,l,n,s)}),hl(e,i,!1),n&&e.u&&mn("Patches").N(r,n,e.u,e.s)}return r.o}function $m(e,t,n,r,i,o,s){if(yr(i)){var a=dl(e,i,o&&t&&t.i!==3&&!Ni(t.R,r)?o.concat(r):void 0);if(p1(n,r,a),!yr(a))return;e.m=!1}else s&&n.add(i);if(Ln(i)&&!_h(i)){if(!e.h.D&&e._<1)return;dl(e,i),t&&t.A.l||hl(e,i)}}function hl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&bh(t,n)}function lc(e,t){var n=e[Me];return(n?Or(n):e)[t]}function Im(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 Yn(e){e.P||(e.P=!0,e.l&&Yn(e.l))}function uc(e){e.o||(e.o=Ph(e.t))}function Vf(e,t,n){var r=Sh(t)?mn("MapSet").F(t,n):xh(t)?mn("MapSet").T(t,n):e.O?function(i,o){var s=Array.isArray(i),a={i:s?1:0,A:o?o.A:$f(),P:!1,I:!1,R:{},l:o,t:i,k:null,o:null,j:null,C:!1},l=a,u=hs;s&&(l=[a],u=ko);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):mn("ES5").J(t,n);return(n?n.A:$f()).p.push(r),r}function JE(e){return yr(e)||rn(22,e),function t(n){if(!Ln(n))return n;var r,i=n[Me],o=ro(n);if(i){if(!i.P&&(i.i<4||!mn("ES5").K(i)))return i.t;i.I=!0,r=Vm(n,o),i.I=!1}else r=Vm(n,o);return Hr(r,function(s,a){i&&KE(i.t,s)===a||p1(r,s,t(a))}),o===3?new Set(r):r}(e)}function Vm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ph(e)}function ZE(){function e(o,s){var a=i[o];return a?a.enumerable=s:i[o]=a={configurable:!0,enumerable:s,get:function(){var l=this[Me];return hs.get(l,o)},set:function(l){var u=this[Me];hs.set(u,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][Me];if(!a.P)switch(a.i){case 5:r(a)&&Yn(a);break;case 4:n(a)&&Yn(a)}}}function n(o){for(var s=o.t,a=o.k,l=Fi(a),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Me){var f=s[c];if(f===void 0&&!Ni(s,c))return!0;var d=a[c],h=d&&d[Me];if(h?h.t!==f:!m1(d,f))return!0}}var p=!!s[Me];return l.length!==Fi(s).length+(p?0:1)}function r(o){var s=o.k;if(s.length!==o.t.length)return!0;var a=Object.getOwnPropertyDescriptor(s,s.length-1);if(a&&!a.get)return!0;for(var l=0;l1?g-1:0),y=1;y1?c-1:0),d=1;d=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 s=mn("Patches").$;return yr(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),At=new rC,g1=At.produce;At.produceWithPatches.bind(At);At.setAutoFreeze.bind(At);At.setUseProxies.bind(At);At.applyPatches.bind(At);At.createDraft.bind(At);At.finishDraft.bind(At);function ps(e){"@babel/helpers - typeof";return ps=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},ps(e)}function iC(e,t){if(ps(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ps(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oC(e){var t=iC(e,"string");return ps(t)==="symbol"?t:String(t)}function sC(e,t,n){return t=oC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wm(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 Hm(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ft(1));return n(w1)(e,t)}if(typeof e!="function")throw new Error(ft(2));var i=e,o=t,s=[],a=s,l=!1;function u(){a===s&&(a=s.slice())}function c(){if(l)throw new Error(ft(3));return o}function f(v){if(typeof v!="function")throw new Error(ft(4));if(l)throw new Error(ft(5));var _=!0;return u(),a.push(v),function(){if(_){if(l)throw new Error(ft(6));_=!1,u();var m=a.indexOf(v);a.splice(m,1),s=null}}}function d(v){if(!aC(v))throw new Error(ft(7));if(typeof v.type>"u")throw new Error(ft(8));if(l)throw new Error(ft(9));try{l=!0,o=i(o,v)}finally{l=!1}for(var _=s=a,g=0;g<_.length;g++){var m=_[g];m()}return v}function h(v){if(typeof v!="function")throw new Error(ft(10));i=v,d({type:pl.REPLACE})}function p(){var v,_=f;return v={subscribe:function(m){if(typeof m!="object"||m===null)throw new Error(ft(11));function y(){m.next&&m.next(c())}y();var w=_(y);return{unsubscribe:w}}},v[Qm]=function(){return this},v}return d({type:pl.INIT}),r={dispatch:d,subscribe:f,getState:c,replaceReducer:h},r[Qm]=p,r}function lC(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:pl.INIT});if(typeof r>"u")throw new Error(ft(12));if(typeof n(void 0,{type:pl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ft(13))})}function uC(e){for(var t=Object.keys(e),n={},r=0;r"u")throw u&&u.type,new Error(ft(14));f[h]=_,c=c||_!==v}return c=c||o.length!==Object.keys(l).length,c?f:l}}function ml(){for(var e=arguments.length,t=new Array(e),n=0;n0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]t=>{const n=NC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),vn=e=>(e=e.toLowerCase(),t=>hu(t)===e),pu=e=>t=>typeof t===e,{isArray:io}=Array,ms=pu("undefined");function FC(e){return e!==null&&!ms(e)&&e.constructor!==null&&!ms(e.constructor)&&qt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O1=vn("ArrayBuffer");function $C(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&O1(e.buffer),t}const IC=pu("string"),qt=pu("function"),R1=pu("number"),mu=e=>e!==null&&typeof e=="object",VC=e=>e===!0||e===!1,Ca=e=>{if(hu(e)!=="object")return!1;const t=Oh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},BC=vn("Date"),UC=vn("File"),zC=vn("Blob"),WC=vn("FileList"),HC=e=>mu(e)&&qt(e.pipe),QC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qt(e.append)&&((t=hu(e))==="formdata"||t==="object"&&qt(e.toString)&&e.toString()==="[object FormData]"))},qC=vn("URLSearchParams"),KC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),io(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const k1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),j1=e=>!ms(e)&&e!==k1;function zf(){const{caseless:e}=j1(this)&&this||{},t={},n=(r,i)=>{const o=e&&T1(t,i)||i;Ca(t[o])&&Ca(r)?t[o]=zf(t[o],r):Ca(r)?t[o]=zf({},r):io(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Rs(t,(i,o)=>{n&&qt(i)?e[o]=C1(i,n):e[o]=i},{allOwnKeys:r}),e),YC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XC=(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)},JC=(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Oh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ZC=(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},eO=e=>{if(!e)return null;if(io(e))return e;let t=e.length;if(!R1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Oh(Uint8Array)),nO=(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])}},rO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},iO=vn("HTMLFormElement"),oO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Jm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sO=vn("RegExp"),D1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Rs(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},aO=e=>{D1(e,(t,n)=>{if(qt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(qt(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+"'")})}})},lO=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return io(e)?r(e):r(String(e).split(t)),n},uO=()=>{},cO=(e,t)=>(e=+e,Number.isFinite(e)?e:t),hc="abcdefghijklmnopqrstuvwxyz",Zm="0123456789",M1={DIGIT:Zm,ALPHA:hc,ALPHA_DIGIT:hc+hc.toUpperCase()+Zm},fO=(e=16,t=M1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function dO(e){return!!(e&&qt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hO=e=>{const t=new Array(10),n=(r,i)=>{if(mu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=io(r)?[]:{};return Rs(r,(s,a)=>{const l=n(s,i+1);!ms(l)&&(o[a]=l)}),t[i]=void 0,o}}return r};return n(e,0)},pO=vn("AsyncFunction"),mO=e=>e&&(mu(e)||qt(e))&&qt(e.then)&&qt(e.catch),L={isArray:io,isArrayBuffer:O1,isBuffer:FC,isFormData:QC,isArrayBufferView:$C,isString:IC,isNumber:R1,isBoolean:VC,isObject:mu,isPlainObject:Ca,isUndefined:ms,isDate:BC,isFile:UC,isBlob:zC,isRegExp:sO,isFunction:qt,isStream:HC,isURLSearchParams:qC,isTypedArray:tO,isFileList:WC,forEach:Rs,merge:zf,extend:GC,trim:KC,stripBOM:YC,inherits:XC,toFlatObject:JC,kindOf:hu,kindOfTest:vn,endsWith:ZC,toArray:eO,forEachEntry:nO,matchAll:rO,isHTMLForm:iO,hasOwnProperty:Jm,hasOwnProp:Jm,reduceDescriptors:D1,freezeMethods:aO,toObjectSet:lO,toCamelCase:oO,noop:uO,toFiniteNumber:cO,findKey:T1,global:k1,isContextDefined:j1,ALPHABET:M1,generateString:fO,isSpecCompliantForm:dO,toJSONObject:hO,isAsyncFn:pO,isThenable:mO};function me(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)}L.inherits(me,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:L.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const A1=me.prototype,L1={};["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=>{L1[e]={value:e}});Object.defineProperties(me,L1);Object.defineProperty(A1,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,o)=>{const s=Object.create(A1);return L.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),me.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const yO=null;function Wf(e){return L.isPlainObject(e)||L.isArray(e)}function N1(e){return L.endsWith(e,"[]")?e.slice(0,-2):e}function ey(e,t,n){return e?e.concat(t).map(function(i,o){return i=N1(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function vO(e){return L.isArray(e)&&!e.some(Wf)}const gO=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function yu(e,t,n){if(!L.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=L.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,_){return!L.isUndefined(_[v])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(t);if(!L.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(L.isDate(p))return p.toISOString();if(!l&&L.isBlob(p))throw new me("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(p)||L.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,_){let g=p;if(p&&!_&&typeof p=="object"){if(L.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(L.isArray(p)&&vO(p)||(L.isFileList(p)||L.endsWith(v,"[]"))&&(g=L.toArray(p)))return v=N1(v),g.forEach(function(y,w){!(L.isUndefined(y)||y===null)&&t.append(s===!0?ey([v],w,o):s===null?v:v+"[]",u(y))}),!1}return Wf(p)?!0:(t.append(ey(_,v,o),u(p)),!1)}const f=[],d=Object.assign(gO,{defaultVisitor:c,convertValue:u,isVisitable:Wf});function h(p,v){if(!L.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),L.forEach(p,function(g,m){(!(L.isUndefined(g)||g===null)&&i.call(t,g,L.isString(m)?m.trim():m,v,d))===!0&&h(g,v?v.concat(m):[m])}),f.pop()}}if(!L.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ty(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Rh(e,t){this._pairs=[],e&&yu(e,this,t)}const F1=Rh.prototype;F1.append=function(t,n){this._pairs.push([t,n])};F1.toString=function(t){const n=t?function(r){return t.call(this,r,ty)}:ty;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function wO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $1(e,t,n){if(!t)return e;const r=n&&n.encode||wO,i=n&&n.serialize;let o;if(i?o=i(t,n):o=L.isURLSearchParams(t)?t.toString():new Rh(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class SO{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){L.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ny=SO,I1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},xO=typeof URLSearchParams<"u"?URLSearchParams:Rh,PO=typeof FormData<"u"?FormData:null,bO=typeof Blob<"u"?Blob:null,_O=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),EO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),dn={isBrowser:!0,classes:{URLSearchParams:xO,FormData:PO,Blob:bO},isStandardBrowserEnv:_O,isStandardBrowserWebWorkerEnv:EO,protocols:["http","https","file","blob","url","data"]};function CO(e,t){return yu(e,new dn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return dn.isNode&&L.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function OO(e){return L.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function RO(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&L.isArray(i)?i.length:s,l?(L.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!L.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&L.isArray(i[s])&&(i[s]=RO(i[s])),!a)}if(L.isFormData(e)&&L.isFunction(e.entries)){const n={};return L.forEachEntry(e,(r,i)=>{t(OO(r),i,n,0)}),n}return null}const TO={"Content-Type":void 0};function kO(e,t,n){if(L.isString(e))try{return(t||JSON.parse)(e),L.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const vu={transitional:I1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=L.isObject(t);if(o&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return i&&i?JSON.stringify(V1(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return CO(t,this.formSerializer).toString();if((a=L.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return yu(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),kO(t)):t}],transformResponse:[function(t){const n=this.transitional||vu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&L.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?me.from(a,me.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dn.classes.FormData,Blob:dn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};L.forEach(["delete","get","head"],function(t){vu.headers[t]={}});L.forEach(["post","put","patch"],function(t){vu.headers[t]=L.merge(TO)});const Th=vu,jO=L.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"]),DO=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&jO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ry=Symbol("internals");function xo(e){return e&&String(e).trim().toLowerCase()}function Oa(e){return e===!1||e==null?e:L.isArray(e)?e.map(Oa):String(e)}function MO(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}const AO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pc(e,t,n,r,i){if(L.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!L.isString(t)){if(L.isString(r))return t.indexOf(r)!==-1;if(L.isRegExp(r))return r.test(t)}}function LO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function NO(e,t){const n=L.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}class gu{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=xo(l);if(!c)throw new Error("header name must be a non-empty string");const f=L.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=Oa(a))}const s=(a,l)=>L.forEach(a,(u,c)=>o(u,c,l));return L.isPlainObject(t)||t instanceof this.constructor?s(t,n):L.isString(t)&&(t=t.trim())&&!AO(t)?s(DO(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=xo(t),t){const r=L.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return MO(i);if(L.isFunction(n))return n.call(this,i,r);if(L.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=xo(t),t){const r=L.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||pc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=xo(s),s){const a=L.findKey(r,s);a&&(!n||pc(r,r[a],a,n))&&(delete r[a],i=!0)}}return L.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||pc(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return L.forEach(this,(i,o)=>{const s=L.findKey(r,o);if(s){n[s]=Oa(i),delete n[o];return}const a=t?LO(o):String(o).trim();a!==o&&delete n[o],n[a]=Oa(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return L.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&L.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[ry]=this[ry]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=xo(s);r[a]||(NO(i,s),r[a]=!0)}return L.isArray(t)?t.forEach(o):o(t),this}}gu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);L.freezeMethods(gu.prototype);L.freezeMethods(gu);const Rn=gu;function mc(e,t){const n=this||Th,r=t||n,i=Rn.from(r.headers);let o=r.data;return L.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function B1(e){return!!(e&&e.__CANCEL__)}function Ts(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}L.inherits(Ts,me,{__CANCEL__:!0});function FO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const $O=dn.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),L.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),L.isString(o)&&l.push("path="+o),L.isString(s)&&l.push("domain="+s),a===!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 IO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VO(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function U1(e,t){return e&&!IO(t)?VO(e,t):t}const BO=dn.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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(s){const a=L.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function UO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function zO(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];s||(s=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-s{const o=i.loaded,s=i.lengthComputable?i.total:void 0,a=o-n,l=r(a),u=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&u?(s-o)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const WO=typeof XMLHttpRequest<"u",HO=WO&&function(e){return new Promise(function(n,r){let i=e.data;const o=Rn.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}L.isFormData(i)&&(dn.isStandardBrowserEnv||dn.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+p))}const c=U1(e.baseURL,e.url);u.open(e.method.toUpperCase(),$1(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=Rn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};FO(function(g){n(g),l()},function(g){r(g),l()},v),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 me("Request aborted",me.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new me("Network Error",me.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||I1;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new me(p,v.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,u)),u=null},dn.isStandardBrowserEnv){const h=(e.withCredentials||BO(c))&&e.xsrfCookieName&&$O.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&L.forEach(o.toJSON(),function(p,v){u.setRequestHeader(v,p)}),L.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",iy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",iy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{u&&(r(!h||h.type?new Ts(null,e,u):h),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=UO(c);if(d&&dn.protocols.indexOf(d)===-1){r(new me("Unsupported protocol "+d+":",me.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Ra={http:yO,xhr:HO};L.forEach(Ra,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const QO={getAdapter:e=>{e=L.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof Rn?e.toJSON():e;function Yi(e,t){t=t||{};const n={};function r(u,c,f){return L.isPlainObject(u)&&L.isPlainObject(c)?L.merge.call({caseless:f},u,c):L.isPlainObject(c)?L.merge({},c):L.isArray(c)?c.slice():c}function i(u,c,f){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!L.isUndefined(c))return r(void 0,c)}function s(u,c){if(L.isUndefined(c)){if(!L.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,c)=>i(sy(u),sy(c),!0)};return L.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);L.isUndefined(d)&&f!==a||(n[c]=d)}),n}const z1="1.4.0",kh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{kh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ay={};kh.transitional=function(t,n,r){function i(o,s){return"[Axios v"+z1+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new me(i(s," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!ay[s]&&(ay[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function qO(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new me("option "+o+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const Hf={assertOptions:qO,validators:kh},Un=Hf.validators;class yl{constructor(t){this.defaults=t,this.interceptors={request:new ny,response:new ny}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Yi(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Hf.assertOptions(r,{silentJSONParsing:Un.transitional(Un.boolean),forcedJSONParsing:Un.transitional(Un.boolean),clarifyTimeoutError:Un.transitional(Un.boolean)},!1),i!=null&&(L.isFunction(i)?n.paramsSerializer={serialize:i}:Hf.assertOptions(i,{encode:Un.function,serialize:Un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=o&&L.merge(o.common,o[n.method]),s&&L.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=Rn.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const p=[oy.bind(this),void 0];for(p.unshift.apply(p,a),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{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 s=new Promise(a=>{r.subscribe(a),o=a}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,a){r.reason||(r.reason=new Ts(o,s,a),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 jh(function(i){t=i}),cancel:t}}}const KO=jh;function GO(e){return function(n){return e.apply(null,n)}}function YO(e){return L.isObject(e)&&e.isAxiosError===!0}const Qf={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(Qf).forEach(([e,t])=>{Qf[t]=e});const XO=Qf;function W1(e){const t=new Ta(e),n=C1(Ta.prototype.request,t);return L.extend(n,Ta.prototype,t,{allOwnKeys:!0}),L.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return W1(Yi(e,i))},n}const et=W1(Th);et.Axios=Ta;et.CanceledError=Ts;et.CancelToken=KO;et.isCancel=B1;et.VERSION=z1;et.toFormData=yu;et.AxiosError=me;et.Cancel=et.CanceledError;et.all=function(t){return Promise.all(t)};et.spread=GO;et.isAxiosError=YO;et.mergeConfig=Yi;et.AxiosHeaders=Rn;et.formToJSON=e=>V1(L.isHTMLForm(e)?new FormData(e):e);et.HttpStatusCode=XO;et.default=et;const JO=et,ZO="https://api.themoviedb.org/3",eR="eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI2YTNhYzU1Yzk1ODQ2YzFjZjQ1NGQ2ZDE1MzdhNzQ2NyIsInN1YiI6IjYyYmQ4ZGNiMDk3YzQ5MGJhNDhhN2I1ZSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.MUrmzeUnN8sUrLBszhX6hwcQEqMfWS2apcYE81kw6v8",wu=async(e,t={})=>{const n={method:"GET",url:ZO+e,params:t,headers:{accept:"application/json",Authorization:`Bearer ${eR}`}};return(await JO.request(n)).data},ka=E1("genresList/fetchAllGenres",async()=>{let e=[],t=["tv","movie"];try{return t.forEach(n=>{e.push(wu(`/genre/${n}/list`))}),await Promise.all(e)}catch(n){return n.response.data.status_message}}),tR={loading:"",error:"",all:{},tv:[],movie:[]},nR=_1({name:"genresList",initialState:tR,reducers:{},extraReducers:e=>{e.addCase(ka.pending,t=>{t.loading="loading",t.error=""}),e.addCase(ka.fulfilled,(t,n)=>{n.payload.map(({genres:r})=>r.map(i=>t.all[i.id]=i.name)),t.tv=n.payload[0].genres.map(r=>({label:r.name,value:r.id,filter:"with_genres"})),t.movie=n.payload[1].genres.map(r=>({label:r.name,value:r.id,filter:"with_genres"})),t.loading="fulfilled"}),e.addCase(ka.rejected,(t,n)=>{t.error=n.payload,t.loading="fulfilled"})}}),rR=nR.reducer,ja=E1("main/fetchUrl",async()=>wu("/configuration")),iR={url:null,loading:"loading",error:""},oR=_1({name:"main",initialState:iR,reducers:{},extraReducers:e=>{e.addCase(ja.pending,t=>{t.loading="loading",t.error=""}),e.addCase(ja.fulfilled,(t,n)=>{var r,i,o;t.url={backdrop:`${(r=n.payload.images)==null?void 0:r.secure_base_url}original`,poster:`${(i=n.payload.images)==null?void 0:i.secure_base_url}original`,profile:`${(o=n.payload.images)==null?void 0:o.secure_base_url}original`},t.loading="fulfilled"}),e.addCase(ja.rejected,(t,n)=>{t.error=n.payload,t.loading="fulfilled"})}}),sR=oR.reducer,aR=(e,t,n)=>{let r=[];const[i,o]=t;for(let s=0;s<(e==null?void 0:e.length)-1;s++){const a=e[s][i];!r.includes(a)&&n.includes(e[s][o])&&r.push(a)}return r},nA=e=>{const t=Math.floor(e/60),n=e%60;return`${t}h${n>0?` ${n}m`:""}`},lR=(e,t)=>{let n=null;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=null,e(r)},t)}},rA=(e,t,n,r)=>r==="up"?e[n].toLowerCase().localeCompare(t[n].toLowerCase()):r==="down"?t[n].toLowerCase().localeCompare(e[n].toLowerCase()):0,iA=(e,t,n,r)=>r==="up"?new Date(e[n])-new Date(t[n]):r==="down"?new Date(t[n])-new Date(e[n]):0,oA=(e,t,n,r)=>r==="up"?e[n]-t[n]:r==="down"?t[n]-e[n]:0,uR="_btn_u94b5_1",cR="_btn_theme_u94b5_20",fR="_btn_up_u94b5_29",dR="_close_u94b5_43",hR="_arrow_u94b5_70",vl={btn:uR,btn_theme:cR,btn_up:fR,close:dR,arrow:hR,"btn-wrapper":"_btn-wrapper_u94b5_74","sort-btn":"_sort-btn_u94b5_84","sort-btn_inactive":"_sort-btn_inactive_u94b5_104","sort-btn_clear":"_sort-btn_clear_u94b5_107","sort-btn__img":"_sort-btn__img_u94b5_116"},pR=()=>{const[e,t]=P.useState(),n=()=>{window.scrollTo(0,0)},r=lR(()=>{t(window.scrollY>1e3)},200);return P.useEffect(()=>(window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r))),b.jsx(b.Fragment,{children:e?b.jsx("button",{className:`${vl.btn} ${vl.btn_up}`,tabIndex:"1",onClick:n,children:b.jsx("svg",{baseProfile:"tiny",height:"24",version:"1.2",width:"24",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M12 3.172 5.586 9.586a2 2 0 1 0 2.828 2.828L10 10.828v7.242a2 2 0 0 0 4 0v-7.242l1.586 1.586c.391.391.902.586 1.414.586s1.023-.195 1.414-.586a2 2 0 0 0 0-2.828L12 3.172z"})})}):null})},mR=window.matchMedia("(prefers-color-scheme: dark)").matches,ly=mR?"dark":"light",yR=()=>{const[e,t]=P.useState(localStorage.getItem("theme")||"dark"),n=()=>{const r=e==="dark"?"light":"dark";document.body.dataset.theme=r,t(r),localStorage.setItem("theme",r)};return P.useLayoutEffect(()=>{document.body.dataset.theme=e||ly,t(e||ly)},[e]),b.jsx("button",{className:`${vl.btn} ${vl.btn_theme}`,tabIndex:"1",onClick:n,children:e==="light"?b.jsx("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M399.103 270.951a7.002 7.002 0 0 0-7.846.497 106.379 106.379 0 0 1-65.756 22.477A107.547 107.547 0 0 1 218.076 186.5a106.379 106.379 0 0 1 22.477-65.756 7 7 0 0 0-6.612-11.205 147.424 147.424 0 0 0-124.487 145.616c0 81.272 66.12 147.391 147.392 147.391A147.424 147.424 0 0 0 402.462 278.06a7 7 0 0 0-3.359-7.109Z"})}):b.jsxs("svg",{className:"feather feather-sun",fill:"none",height:"24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[b.jsx("circle",{cx:"12",cy:"12",r:"5"}),b.jsx("path",{d:"M12 1v2m0 18v2M4.22 4.22l1.42 1.42m12.72 12.72 1.42 1.42M1 12h2m18 0h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]})})},vR=[{icon:b.jsxs("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:[b.jsx("path",{d:"M512 256C512 114.615 397.385 0 256 0S0 114.615 0 256c0 127.777 93.616 233.685 216 252.89V330h-65v-74h65v-56.4c0-64.16 38.219-99.6 96.695-99.6 28.009 0 57.305 5 57.305 5v63h-32.281C305.918 168 296 187.733 296 207.978V256h71l-11.35 74H296v178.89C418.385 489.685 512 383.777 512 256Z",fill:"currentColor"}),b.jsx("path",{d:"M355.65 330 367 256h-71v-48.022c0-20.245 9.917-39.978 41.719-39.978H370v-63s-29.297-5-57.305-5C254.219 100 216 135.44 216 199.6V256h-65v74h65v178.89a257.912 257.912 0 0 0 40 3.11c13.608 0 26.966-1.065 40-3.11V330h59.65Z",fill:"transparent"})]}),path:"https://www.facebook.com/"},{icon:b.jsxs("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[b.jsx("path",{d:"M0 0h32v32H0z",fill:"none"}),b.jsxs("g",{"data-name":"Instagram",fill:"currentColor",children:[b.jsx("path",{d:"M20 9.4h-8A2.603 2.603 0 0 0 9.4 12v8a2.603 2.603 0 0 0 2.6 2.6h8a2.603 2.603 0 0 0 2.6-2.6v-8A2.603 2.603 0 0 0 20 9.4ZM16 20a4 4 0 1 1 4-4 4 4 0 0 1-4 4Zm4.253-7.279a1 1 0 1 1 1-1 1 1 0 0 1-1 1Z"}),b.jsx("path",{d:"M16 13.4a2.6 2.6 0 1 0 2.6 2.6 2.603 2.603 0 0 0-2.6-2.6Z"}),b.jsx("path",{d:"M16 2a14 14 0 1 0 14 14A14 14 0 0 0 16 2Zm8 18a4 4 0 0 1-4 4h-8a4 4 0 0 1-4-4v-8a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4Z"})]})]}),path:"https://www.instagram.com/"},{icon:b.jsxs("svg",{viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",children:[b.jsx("path",{d:"M500 0c276.1 0 500 223.9 500 500s-223.9 500-500 500S0 776.1 0 500 223.9 0 500 0z",fill:"currentColor"}),b.jsx("path",{d:"M384 754c235.8 0 364.9-195.4 364.9-364.9 0-5.5 0-11.1-.4-16.6 25.1-18.2 46.8-40.6 64-66.4-23.4 10.4-48.2 17.2-73.6 20.2 26.8-16 46.8-41.2 56.4-70.9-25.2 14.9-52.7 25.5-81.4 31.1-48.6-51.6-129.8-54.1-181.4-5.6-33.3 31.3-47.4 78-37.1 122.5-103.1-5.2-199.2-53.9-264.3-134-34 58.6-16.7 133.5 39.7 171.2-20.4-.6-40.4-6.1-58.2-16v1.6c0 61 43 113.6 102.9 125.7-18.9 5.1-38.7 5.9-57.9 2.2 16.8 52.2 64.9 88 119.8 89.1-45.4 35.7-101.5 55.1-159.2 55-10.2 0-20.4-.6-30.5-1.9C246.1 734 314.4 754 384 753.9",fill:"var(--main)"}),b.jsx("path",{d:"M500 0c276.1 0 500 223.9 500 500s-223.9 500-500 500S0 776.1 0 500 223.9 0 500 0z",fill:"none"})]}),path:"https://twitter.com/"},{icon:b.jsxs("svg",{version:"1.1",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:[b.jsx("path",{d:"M273 233.8v-.7c-.1.2-.3.5-.5.7h.5z"}),b.jsx("path",{d:"M447.7 29.6H64.2C45.9 29.6 31 44.1 31 62v388c0 17.9 14.9 32.4 33.2 32.4h383.5c18.4 0 33.3-14.5 33.3-32.4V62c0-17.9-14.9-32.4-33.3-32.4zM167.4 408.7h-68V204.2h68v204.5zm-34-232.5h-.4c-22.8 0-37.5-15.7-37.5-35.3 0-20.1 15.2-35.3 38.4-35.3 23.3 0 37.6 15.3 38 35.3 0 19.6-14.8 35.3-38.5 35.3zm279.1 232.5h-68V299.2c0-27.5-9.8-46.2-34.4-46.2-18.8 0-30 12.6-34.9 24.9-1.8 4.4-2.2 10.5-2.2 16.6v114.2h-68s.9-185.3 0-204.5h68v28.9c9-13.9 25.2-33.8 61.3-33.8 44.7 0 78.2 29.2 78.2 92.1v117.3z",fill:"currentColor"})]}),path:"https://www.linkedin.com/"}],gR="_footer_ehlkd_1",wR="_wrapper_ehlkd_6",SR="_nav_ehlkd_11",xR="_nav__item_ehlkd_35",PR="_info_ehlkd_52",bR="_social__icons_ehlkd_65",_R="_icon_ehlkd_71",ai={footer:gR,wrapper:wR,nav:SR,nav__item:xR,info:PR,social__icons:bR,icon:_R},ER=["Terms Of Use","Privacy-Policy","About","Blog","FAQ"],CR=()=>b.jsx("footer",{className:ai.footer,children:b.jsxs("div",{className:"wrapper",children:[b.jsx("ul",{className:ai.nav,children:ER.map(e=>b.jsx("li",{className:ai.nav__item,children:b.jsx(lr,{children:e})},e))}),b.jsx("div",{className:ai.info,children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."}),b.jsx("ul",{className:ai.social__icons,children:vR.map(e=>b.jsx(lr,{className:ai.icon,rel:"noopener noreferrer",target:"_blank",to:e.path,children:e.icon},e.path))})]})}),uy=(e,t,n,r)=>{P.useEffect(()=>{const i=s=>{var a;e&&(t!=null&&t.current)&&!((a=t==null?void 0:t.current)!=null&&a.contains(s.target))&&s.target!==(n==null?void 0:n.current)&&r()},o=s=>{e&&(t!=null&&t.current)&&s.code==="Escape"&&r()};return document.addEventListener("click",i),document.documentElement.addEventListener("keydown",o),()=>{document.removeEventListener("click",i),document.documentElement.removeEventListener("keydown",o)}},[e])},OR=(e,t,n,r)=>{const i=()=>{window.scrollY>200?window.scrollY>e&&!t?n("hide"):n("show"):n("top"),r(window.scrollY)};P.useEffect(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[e])},RR="/assets/burger_menu-966ba508.svg",cy="/assets/close_menu-de2cc81a.svg",H1="/assets/search-f9f75985.svg",Q1=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Su=P.createContext({}),xu=P.createContext(null),Pu=typeof document<"u",gl=Pu?P.useLayoutEffect:P.useEffect,q1=P.createContext({strict:!1});function TR(e,t,n,r){const{visualElement:i}=P.useContext(Su),o=P.useContext(q1),s=P.useContext(xu),a=P.useContext(Q1).reducedMotion,l=P.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));const u=l.current;return P.useInsertionEffect(()=>{u&&u.update(n,s)}),gl(()=>{u&&u.render()}),P.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?gl:P.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function Ei(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function kR(e,t,n){return P.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ei(n)&&(n.current=r))},[t])}function ys(e){return typeof e=="string"||Array.isArray(e)}function bu(e){return typeof e=="object"&&typeof e.start=="function"}const Dh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Mh=["initial",...Dh];function _u(e){return bu(e.animate)||Mh.some(t=>ys(e[t]))}function K1(e){return!!(_u(e)||e.variants)}function jR(e,t){if(_u(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ys(n)?n:void 0,animate:ys(r)?r:void 0}}return e.inherit!==!1?t:{}}function DR(e){const{initial:t,animate:n}=jR(e,P.useContext(Su));return P.useMemo(()=>({initial:t,animate:n}),[fy(t),fy(n)])}function fy(e){return Array.isArray(e)?e.join(" "):e}const dy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vs={};for(const e in dy)vs[e]={isEnabled:t=>dy[e].some(n=>!!t[n])};function MR(e){for(const t in e)vs[t]={...vs[t],...e[t]}}const Ah=P.createContext({}),G1=P.createContext({}),AR=Symbol.for("motionComponentSymbol");function LR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&MR(e);function o(a,l){let u;const c={...P.useContext(Q1),...a,layoutId:NR(a)},{isStatic:f}=c,d=DR(a),h=r(a,f);if(!f&&Pu){d.visualElement=TR(i,h,c,t);const p=P.useContext(G1),v=P.useContext(q1).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,v,e,p))}return P.createElement(Su.Provider,{value:d},u&&d.visualElement?P.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,a,kR(h,d.visualElement,l),h,f,d.visualElement))}const s=P.forwardRef(o);return s[AR]=i,s}function NR({layoutId:e}){const t=P.useContext(Ah).id;return t&&e!==void 0?t+"-"+e:e}function FR(e){function t(r,i={}){return LR(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 $R=["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 Lh(e){return typeof e!="string"||e.includes("-")?!1:!!($R.indexOf(e)>-1||/[A-Z]/.test(e))}const wl={};function IR(e){Object.assign(wl,e)}const ks=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xr=new Set(ks);function Y1(e,{layout:t,layoutId:n}){return Xr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wl[e]||e==="opacity")}const Ot=e=>!!(e&&e.getVelocity),VR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},BR=ks.length;function UR(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),J1=X1("--"),qf=X1("var(--"),zR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,WR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,vr=(e,t,n)=>Math.min(Math.max(n,e),t),Jr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Wo={...Jr,transform:e=>vr(0,1,e)},sa={...Jr,default:1},Ho=e=>Math.round(e*1e5)/1e5,Eu=/(-)?([\d]*\.?[\d])+/g,Z1=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,HR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function js(e){return typeof e=="string"}const Ds=e=>({test:t=>js(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zn=Ds("deg"),yn=Ds("%"),oe=Ds("px"),QR=Ds("vh"),qR=Ds("vw"),hy={...yn,parse:e=>yn.parse(e)/100,transform:e=>yn.transform(e*100)},py={...Jr,transform:Math.round},ew={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,size:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,rotate:zn,rotateX:zn,rotateY:zn,rotateZ:zn,scale:sa,scaleX:sa,scaleY:sa,scaleZ:sa,skew:zn,skewX:zn,skewY:zn,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:Wo,originX:hy,originY:hy,originZ:oe,zIndex:py,fillOpacity:Wo,strokeOpacity:Wo,numOctaves:py};function Nh(e,t,n,r){const{style:i,vars:o,transform:s,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if(J1(f)){o[f]=d;continue}const h=ew[f],p=WR(d,h);if(Xr.has(f)){if(l=!0,s[f]=p,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=p):i[f]=p}if(t.transform||(l||r?i.transform=UR(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;i.transformOrigin=`${f} ${d} ${h}`}}const Fh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tw(e,t,n){for(const r in t)!Ot(t[r])&&!Y1(r,n)&&(e[r]=t[r])}function KR({transformTemplate:e},t,n){return P.useMemo(()=>{const r=Fh();return Nh(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function GR(e,t,n){const r=e.style||{},i={};return tw(i,r,e),Object.assign(i,KR(e,t,n)),e.transformValues?e.transformValues(i):i}function YR(e,t,n){const r={},i=GR(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"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const XR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Sl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||XR.has(e)}let nw=e=>!Sl(e);function JR(e){e&&(nw=t=>t.startsWith("on")?!Sl(t):e(t))}try{JR(require("@emotion/is-prop-valid").default)}catch{}function ZR(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(nw(i)||n===!0&&Sl(i)||!t&&!Sl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function my(e,t,n){return typeof e=="string"?e:oe.transform(t+n*e)}function e2(e,t,n){const r=my(t,e.x,e.width),i=my(n,e.y,e.height);return`${r} ${i}`}const t2={offset:"stroke-dashoffset",array:"stroke-dasharray"},n2={offset:"strokeDashoffset",array:"strokeDasharray"};function r2(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?t2:n2;e[o.offset]=oe.transform(-r);const s=oe.transform(t),a=oe.transform(n);e[o.array]=`${s} ${a}`}function $h(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f,d){if(Nh(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:v}=e;h.transform&&(v&&(p.transform=h.transform),delete h.transform),v&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=e2(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&r2(h,s,a,l,!1)}const rw=()=>({...Fh(),attrs:{}}),Ih=e=>typeof e=="string"&&e.toLowerCase()==="svg";function i2(e,t,n,r){const i=P.useMemo(()=>{const o=rw();return $h(o,t,{enableHardwareAcceleration:!1},Ih(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};tw(o,e.style,e),i.style={...o,...i.style}}return i}function o2(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Lh(n)?i2:YR)(r,o,s,n),c={...ZR(r,typeof n=="string",e),...l,ref:i},{children:f}=r,d=P.useMemo(()=>Ot(f)?f.get():f,[f]);return P.createElement(n,{...c,children:d})}}const Vh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function iw(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 ow=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 sw(e,t,n,r){iw(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ow.has(i)?i:Vh(i),t.attrs[i])}function Bh(e,t){const{style:n}=e,r={};for(const i in n)(Ot(n[i])||t.style&&Ot(t.style[i])||Y1(i,e))&&(r[i]=n[i]);return r}function aw(e,t){const n=Bh(e,t);for(const r in e)if(Ot(e[r])||Ot(t[r])){const i=ks.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Uh(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}function lw(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const xl=e=>Array.isArray(e),s2=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),a2=e=>xl(e)?e[e.length-1]||0:e;function Da(e){const t=Ot(e)?e.get():e;return s2(t)?t.toValue():t}function l2({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:u2(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const uw=e=>(t,n)=>{const r=P.useContext(Su),i=P.useContext(xu),o=()=>l2(e,t,r,i);return n?o():lw(o)};function u2(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=Da(o[d]);let{initial:s,animate:a}=e;const l=_u(e),u=K1(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?a:s;return f&&typeof f!="boolean"&&!bu(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const p=Uh(e,h);if(!p)return;const{transitionEnd:v,transition:_,...g}=p;for(const m in g){let y=g[m];if(Array.isArray(y)){const w=c?y.length-1:0;y=y[w]}y!==null&&(i[m]=y)}for(const m in v)i[m]=v[m]}),i}const c2={useVisualState:uw({scrapeMotionValuesFromProps:aw,createRenderState:rw,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}}$h(n,r,{enableHardwareAcceleration:!1},Ih(t.tagName),e.transformTemplate),sw(t,n)}})},f2={useVisualState:uw({scrapeMotionValuesFromProps:Bh,createRenderState:Fh})};function d2(e,{forwardMotionProps:t=!1},n,r){return{...Lh(e)?c2:f2,preloadedFeatures:n,useRender:o2(t),createVisualElement:r,Component:e}}function En(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const cw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Cu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const h2=e=>t=>cw(t)&&e(t,Cu(t));function Tn(e,t,n,r){return En(e,t,h2(n),r)}const p2=(e,t)=>n=>t(e(n)),fr=(...e)=>e.reduce(p2);function fw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yy=fw("dragHorizontal"),vy=fw("dragVertical");function dw(e){let t=!1;if(e==="y")t=vy();else if(e==="x")t=yy();else{const n=yy(),r=vy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function hw(){const e=dw(!0);return e?(e(),!1):!0}class Pr{constructor(t){this.isMounted=!1,this.node=t}update(){}}const We=e=>e;function m2(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&s.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),s.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(f[d]=m2(()=>n=!0),f),{}),s=f=>o[f].process(i),a=f=>{n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,y2),1),i.timestamp=f,i.isProcessing=!0,aa.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:aa.reduce((f,d)=>{const h=o[d];return f[d]=(p,v=!1,_=!1)=>(n||l(),h.schedule(p,v,_)),f},{}),cancel:f=>aa.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:Le,cancel:Nn,state:dt,steps:vc}=v2(typeof requestAnimationFrame<"u"?requestAnimationFrame:We,!0);function gy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||hw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Le.update(()=>a[r](o,s))};return Tn(e.current,n,i,{passive:!e.getProps()[r]})}class g2 extends Pr{mount(){this.unmount=fr(gy(this.node,!0),gy(this.node,!1))}unmount(){}}class w2 extends Pr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fr(En(this.node.current,"focus",()=>this.onFocus()),En(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pw=(e,t)=>t?e===t?!0:pw(e,t.parentElement):!1;function gc(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Cu(n))}class S2 extends Pr{constructor(){super(...arguments),this.removeStartListeners=We,this.removeEndListeners=We,this.removeAccessibleListeners=We,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=Tn(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Le.update(()=>{pw(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=Tn(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=fr(o,s),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const s=a=>{a.key!=="Enter"||!this.checkPressEnd()||gc("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Le.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=En(this.node.current,"keyup",s),gc("down",(a,l)=>{this.startPress(a,l)})},n=En(this.node.current,"keydown",t),r=()=>{this.isPressing&&gc("cancel",(o,s)=>this.cancelPress(o,s))},i=En(this.node.current,"blur",r);this.removeAccessibleListeners=fr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Le.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Le.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Tn(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=En(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Kf=new WeakMap,wc=new WeakMap,x2=e=>{const t=Kf.get(e.target);t&&t(e)},P2=e=>{e.forEach(x2)};function b2({root:e,...t}){const n=e||document;wc.has(n)||wc.set(n,{});const r=wc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(P2,{root:e,...t})),r[i]}function _2(e,t,n){const r=b2(t);return Kf.set(e,n),r.observe(e),()=>{Kf.delete(e),r.unobserve(e)}}const E2={some:0,all:1};class C2 extends Pr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:E2[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return _2(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(O2(t,n))&&this.startObserver()}unmount(){}}function O2({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const R2={inView:{Feature:C2},tap:{Feature:S2},focus:{Feature:w2},hover:{Feature:g2}};function mw(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function k2(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ou(e,t,n){const r=e.getProps();return Uh(r,t,n!==void 0?n:r.custom,T2(e),k2(e))}const j2="framerAppearId",D2="data-"+Vh(j2);let M2=We,zh=We;const dr=e=>e*1e3,kn=e=>e/1e3,A2={current:!1},yw=e=>Array.isArray(e)&&typeof e[0]=="number";function vw(e){return!!(!e||typeof e=="string"&&gw[e]||yw(e)||Array.isArray(e)&&e.every(vw))}const jo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jo([0,.65,.55,1]),circOut:jo([.55,0,1,.45]),backIn:jo([.31,.01,.66,-.59]),backOut:jo([.33,1.53,.69,.99])};function ww(e){if(e)return yw(e)?jo(e):Array.isArray(e)?e.map(ww):gw[e]}function L2(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=ww(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function N2(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Sw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,F2=1e-7,$2=12;function I2(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Sw(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>F2&&++a<$2);return s}function Ms(e,t,n,r){if(e===t&&n===r)return We;const i=o=>I2(o,0,1,e,n);return o=>o===0||o===1?o:Sw(i(o),t,r)}const V2=Ms(.42,0,1,1),B2=Ms(0,0,.58,1),xw=Ms(.42,0,.58,1),U2=e=>Array.isArray(e)&&typeof e[0]!="number",Pw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bw=e=>t=>1-e(1-t),_w=e=>1-Math.sin(Math.acos(e)),Wh=bw(_w),z2=Pw(Wh),Ew=Ms(.33,1.53,.69,.99),Hh=bw(Ew),W2=Pw(Hh),H2=e=>(e*=2)<1?.5*Hh(e):.5*(2-Math.pow(2,-10*(e-1))),Q2={linear:We,easeIn:V2,easeInOut:xw,easeOut:B2,circIn:_w,circInOut:z2,circOut:Wh,backIn:Hh,backInOut:W2,backOut:Ew,anticipate:H2},wy=e=>{if(Array.isArray(e)){zh(e.length===4);const[t,n,r,i]=e;return Ms(t,n,r,i)}else if(typeof e=="string")return Q2[e];return e},Qh=(e,t)=>n=>!!(js(n)&&HR.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Cw=(e,t,n)=>r=>{if(!js(r))return r;const[i,o,s,a]=r.match(Eu);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},q2=e=>vr(0,255,e),Sc={...Jr,transform:e=>Math.round(q2(e))},Lr={test:Qh("rgb","red"),parse:Cw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sc.transform(e)+", "+Sc.transform(t)+", "+Sc.transform(n)+", "+Ho(Wo.transform(r))+")"};function K2(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 Gf={test:Qh("#"),parse:K2,transform:Lr.transform},Ci={test:Qh("hsl","hue"),parse:Cw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+yn.transform(Ho(t))+", "+yn.transform(Ho(n))+", "+Ho(Wo.transform(r))+")"},vt={test:e=>Lr.test(e)||Gf.test(e)||Ci.test(e),parse:e=>Lr.test(e)?Lr.parse(e):Ci.test(e)?Ci.parse(e):Gf.parse(e),transform:e=>js(e)?e:e.hasOwnProperty("red")?Lr.transform(e):Ci.transform(e)},$e=(e,t,n)=>-n*e+n*t+e;function xc(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 G2({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=xc(l,a,e+1/3),o=xc(l,a,e),s=xc(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Pc=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Y2=[Gf,Lr,Ci],X2=e=>Y2.find(t=>t.test(e));function Sy(e){const t=X2(e);let n=t.parse(e);return t===Ci&&(n=G2(n)),n}const Ow=(e,t)=>{const n=Sy(e),r=Sy(t),i={...n};return o=>(i.red=Pc(n.red,r.red,o),i.green=Pc(n.green,r.green,o),i.blue=Pc(n.blue,r.blue,o),i.alpha=$e(n.alpha,r.alpha,o),Lr.transform(i))};function J2(e){var t,n;return isNaN(e)&&js(e)&&(((t=e.match(Eu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Z1))===null||n===void 0?void 0:n.length)||0)>0}const Rw={regex:zR,countKey:"Vars",token:"${v}",parse:We},Tw={regex:Z1,countKey:"Colors",token:"${c}",parse:vt.parse},kw={regex:Eu,countKey:"Numbers",token:"${n}",parse:Jr.parse};function bc(e,{regex:t,countKey:n,token:r,parse:i}){const o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...o.map(i)))}function Pl(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&bc(n,Rw),bc(n,Tw),bc(n,kw),n}function jw(e){return Pl(e).values}function Dw(e){const{values:t,numColors:n,numVars:r,tokenised:i}=Pl(e),o=t.length;return s=>{let a=i;for(let l=0;ltypeof e=="number"?0:e;function eT(e){const t=jw(e);return Dw(e)(t.map(Z2))}const gr={test:J2,parse:jw,createTransformer:Dw,getAnimatableNone:eT},Mw=(e,t)=>n=>`${n>0?t:e}`;function Aw(e,t){return typeof e=="number"?n=>$e(e,t,n):vt.test(e)?Ow(e,t):e.startsWith("var(")?Mw(e,t):Nw(e,t)}const Lw=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Aw(o,t[s]));return o=>{for(let s=0;s{const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Aw(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Nw=(e,t)=>{const n=gr.createTransformer(t),r=Pl(e),i=Pl(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?fr(Lw(r.values,i.values),n):Mw(e,t)},gs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xy=(e,t)=>n=>$e(e,t,n);function nT(e){return typeof e=="number"?xy:typeof e=="string"?vt.test(e)?Ow:Nw:Array.isArray(e)?Lw:typeof e=="object"?tT:xy}function rT(e,t,n){const r=[],i=n||nT(e[0]),o=e.length-1;for(let s=0;st[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=rT(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(vr(e[0],e[o-1],u)):l}function iT(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=gs(0,t,r);e.push($e(n,1,i))}}function oT(e){const t=[0];return iT(t,e.length-1),t}function sT(e,t){return e.map(n=>n*t)}function aT(e,t){return e.map(()=>t||xw).splice(0,e.length-1)}function bl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=U2(r)?r.map(wy):wy(r),o={done:!1,value:t[0]},s=sT(n&&n.length===t.length?n:oT(t),e),a=Fw(s,t,{ease:Array.isArray(i)?i:aT(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function $w(e,t){return t?e*(1e3/t):0}const lT=5;function Iw(e,t,n){const r=Math.max(t-lT,0);return $w(n-e(r),t-r)}const _c=.001,uT=.01,Py=10,cT=.05,fT=1;function dT({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;M2(e<=dr(Py));let s=1-t;s=vr(cT,fT,s),e=vr(uT,Py,kn(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=Yf(u,s),p=Math.exp(-f);return _c-d/h*p},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,p=Math.exp(-f),v=Yf(Math.pow(u,2),s);return(-i(u)+_c>0?-1:1)*((d-h)*p)/v}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-_c+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=pT(i,o,a);if(e=dr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const hT=12;function pT(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function vT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!by(e,yT)&&by(e,mT)){const n=dT(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Vw({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:u,velocity:c,duration:f,isResolvedFromDuration:d}=vT(r),h=c?-kn(c):0,p=l/(2*Math.sqrt(a*u)),v=o-i,_=kn(Math.sqrt(a/u)),g=Math.abs(v)<5;n||(n=g?.01:2),t||(t=g?.005:.5);let m;if(p<1){const y=Yf(_,p);m=w=>{const E=Math.exp(-p*_*w);return o-E*((h+p*_*v)/y*Math.sin(y*w)+v*Math.cos(y*w))}}else if(p===1)m=y=>o-Math.exp(-_*y)*(v+(h+_*v)*y);else{const y=_*Math.sqrt(p*p-1);m=w=>{const E=Math.exp(-p*_*w),O=Math.min(y*w,300);return o-E*((h+p*_*v)*Math.sinh(O)+y*v*Math.cosh(O))/y}}return{calculatedDuration:d&&f||null,next:y=>{const w=m(y);if(d)s.done=y>=f;else{let E=h;y!==0&&(p<1?E=Iw(m,y,w):E=0);const O=Math.abs(E)<=n,j=Math.abs(o-w)<=t;s.done=O&&j}return s.value=s.done?o:w,s}}}function _y({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=R=>a!==void 0&&Rl,p=R=>a===void 0?l:l===void 0||Math.abs(a-R)-v*Math.exp(-R/r),y=R=>g+m(R),w=R=>{const $=m(R),M=y(R);d.done=Math.abs($)<=u,d.value=d.done?g:M};let E,O;const j=R=>{h(d.value)&&(E=R,O=Vw({keyframes:[d.value,p(d.value)],velocity:Iw(y,R,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:R=>{let $=!1;return!O&&E===void 0&&($=!0,w(R),j(R)),E!==void 0&&R>E?O.next(R-E):(!$&&w(R),d)}}}const gT=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Le.update(t,!0),stop:()=>Nn(t),now:()=>dt.isProcessing?dt.timestamp:performance.now()}},Ey=2e4;function Cy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Ey?1/0:t}const wT={decay:_y,inertia:_y,tween:bl,keyframes:bl,spring:Vw};function _l({autoplay:e=!0,delay:t=0,driver:n=gT,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:f,...d}){let h=1,p=!1,v,_;const g=()=>{_=new Promise(q=>{v=q})};g();let m;const y=wT[i]||bl;let w;y!==bl&&typeof r[0]!="number"&&(w=Fw([0,100],r,{clamp:!1}),r=[0,100]);const E=y({...d,keyframes:r});let O;a==="mirror"&&(O=y({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let j="idle",R=null,$=null,M=null;E.calculatedDuration===null&&o&&(E.calculatedDuration=Cy(E));const{calculatedDuration:te}=E;let J=1/0,K=1/0;te!==null&&(J=te+s,K=J*(o+1)-s);let N=0;const A=q=>{if($===null)return;h>0&&($=Math.min($,q)),h<0&&($=Math.min(q-K/h,$)),R!==null?N=R:N=Math.round(q-$)*h;const ne=N-t*(h>=0?1:-1),se=h>=0?ne<0:ne>K;N=Math.max(ne,0),j==="finished"&&R===null&&(N=K);let re=N,fe=E;if(o){const Ee=N/J;let Ne=Math.floor(Ee),he=Ee%1;!he&&Ee>=1&&(he=1),he===1&&Ne--,Ne=Math.min(Ne,o+1);const ke=!!(Ne%2);ke&&(a==="reverse"?(he=1-he,s&&(he-=s/J)):a==="mirror"&&(fe=O));let lt=vr(0,1,he);N>K&&(lt=a==="reverse"&&ke?1:0),re=lt*J}const ge=se?{done:!1,value:r[0]}:fe.next(re);w&&(ge.value=w(ge.value));let{done:Qe}=ge;!se&&te!==null&&(Qe=h>=0?N>=K:N<=0);const we=R===null&&(j==="finished"||j==="running"&&Qe);return f&&f(ge.value),we&&k(),ge},B=()=>{m&&m.stop(),m=void 0},V=()=>{j="idle",B(),v(),g(),$=M=null},k=()=>{j="finished",c&&c(),B(),v()},F=()=>{if(p)return;m||(m=n(A));const q=m.now();l&&l(),R!==null?$=q-R:(!$||j==="finished")&&($=q),j==="finished"&&g(),M=$,R=null,j="running",m.start()};e&&F();const z={then(q,ne){return _.then(q,ne)},get time(){return kn(N)},set time(q){q=dr(q),N=q,R!==null||!m||h===0?R=q:$=m.now()-q/h},get duration(){const q=E.calculatedDuration===null?Cy(E):E.calculatedDuration;return kn(q)},get speed(){return h},set speed(q){q===h||!m||(h=q,z.time=kn(N))},get state(){return j},play:F,pause:()=>{j="paused",R=N},stop:()=>{p=!0,j!=="idle"&&(j="idle",u&&u(),V())},cancel:()=>{M!==null&&A(M),V()},complete:()=>{j="finished"},sample:q=>($=0,A(q))};return z}function ST(e){let t;return()=>(t===void 0&&(t=e()),t)}const xT=ST(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),PT=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),la=10,bT=2e4,_T=(e,t)=>t.type==="spring"||e==="backgroundColor"||!vw(t.ease);function ET(e,t,{onUpdate:n,onComplete:r,...i}){if(!(xT()&&PT.has(t)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let s=!1,a,l;const u=()=>{l=new Promise(m=>{a=m})};u();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(_T(t,i)){const m=_l({...i,repeat:0,delay:0});let y={done:!1,value:c[0]};const w=[];let E=0;for(;!y.done&&Ep.cancel(),_=()=>{Le.update(v),a(),u()};return p.onfinish=()=>{e.set(N2(c,i)),r&&r(),_()},{then(m,y){return l.then(m,y)},attachTimeline(m){return p.timeline=m,p.onfinish=null,We},get time(){return kn(p.currentTime||0)},set time(m){p.currentTime=dr(m)},get speed(){return p.playbackRate},set speed(m){p.playbackRate=m},get duration(){return kn(f)},play:()=>{s||(p.play(),Nn(v))},pause:()=>p.pause(),stop:()=>{if(s=!0,p.playState==="idle")return;const{currentTime:m}=p;if(m){const y=_l({...i,autoplay:!1});e.setWithVelocity(y.sample(m-la).value,y.sample(m).value,la)}_()},complete:()=>p.finish(),cancel:_}}function CT({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const i=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:We,pause:We,stop:We,then:o=>(o(),Promise.resolve()),cancel:We,complete:We});return t?_l({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const OT={type:"spring",stiffness:500,damping:25,restSpeed:10},RT=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),TT={type:"keyframes",duration:.8},kT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},jT=(e,{keyframes:t})=>t.length>2?TT:Xr.has(e)?e.startsWith("scale")?RT(t[1]):OT:kT,Xf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(gr.test(t)||t==="0")&&!t.startsWith("url(")),DT=new Set(["brightness","contrast","saturate","opacity"]);function MT(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Eu)||[];if(!r)return e;const i=n.replace(r,"");let o=DT.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const AT=/([a-z-]*)\(.*?\)/g,Jf={...gr,getAnimatableNone:e=>{const t=e.match(AT);return t?t.map(MT).join(" "):e}},LT={...ew,color:vt,backgroundColor:vt,outlineColor:vt,fill:vt,stroke:vt,borderColor:vt,borderTopColor:vt,borderRightColor:vt,borderBottomColor:vt,borderLeftColor:vt,filter:Jf,WebkitFilter:Jf},qh=e=>LT[e];function Bw(e,t){let n=qh(e);return n!==Jf&&(n=gr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Uw=e=>/^0[^.\s]+$/.test(e);function NT(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Uw(e)}function FT(e,t,n,r){const i=Xf(t,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const s=r.from!==void 0?r.from:e.get();let a;const l=[];for(let u=0;ui=>{const o=zw(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-dr(s);const l=FT(t,e,n,o),u=l[0],c=l[l.length-1],f=Xf(e,u),d=Xf(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if($T(o)||(h={...h,...jT(e,h)}),h.duration&&(h.duration=dr(h.duration)),h.repeatDelay&&(h.repeatDelay=dr(h.repeatDelay)),!f||!d||A2.current||o.type===!1)return CT(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const p=ET(t,e,h);if(p)return p}return _l(h)};function El(e){return!!(Ot(e)&&e.add)}const IT=e=>/^\-?\d*\.?\d+$/.test(e);function Gh(e,t){e.indexOf(t)===-1&&e.push(t)}function Yh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Xh{constructor(){this.subscriptions=[]}add(t){return Gh(this.subscriptions,t),()=>Yh(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!isNaN(parseFloat(e));class BT{constructor(t,n={}){this.version="10.15.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:s}=dt;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Le.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=()=>Le.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=VT(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Xh);const r=this.events[t].add(n);return t==="change"?()=>{r(),Le.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?$w(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xi(e,t){return new BT(e,t)}const Ww=e=>t=>t.test(e),UT={test:e=>e==="auto",parse:e=>e},Hw=[Jr,oe,yn,zn,qR,QR,UT],Po=e=>Hw.find(Ww(e)),zT=[...Hw,vt,gr],WT=e=>zT.find(Ww(e));function HT(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xi(n))}function QT(e,t){const n=Ou(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=a2(o[s]);HT(e,s,a)}}function qT(e,t,n){var r,i;const o=Object.keys(t).filter(a=>!e.hasValue(a)),s=o.length;if(s)for(let a=0;al.remove(f))),u.push(v)}return s&&Promise.all(u).then(()=>{s&&QT(e,s)}),u}function Zf(e,t,n={}){const r=Ou(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Qw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return XT(e,t,u+l,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,u]=a==="beforeChildren"?[o,s]:[s,o];return l().then(()=>u())}else return Promise.all([o(),s(n.delay)])}function XT(e,t,n=0,r=0,i=1,o){const s=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(JT).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Zf(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function JT(e,t){return e.sortNodePosition(t)}function ZT(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Zf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Zf(e,t,n);else{const i=typeof t=="function"?Ou(e,t,n.custom):t;r=Promise.all(Qw(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const ek=[...Dh].reverse(),tk=Dh.length;function nk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ZT(e,n,r)))}function rk(e){let t=nk(e);const n=ok();let r=!0;const i=(l,u)=>{const c=Ou(e,u);if(c){const{transition:f,transitionEnd:d,...h}=c;l={...l,...h,...d}}return l};function o(l){t=l(e)}function s(l,u){const c=e.getProps(),f=e.getVariantContext(!0)||{},d=[],h=new Set;let p={},v=1/0;for(let g=0;gv&&E;const M=Array.isArray(w)?w:[w];let te=M.reduce(i,{});O===!1&&(te={});const{prevResolvedValues:J={}}=y,K={...J,...te},N=A=>{$=!0,h.delete(A),y.needsAnimating[A]=!0};for(const A in K){const B=te[A],V=J[A];p.hasOwnProperty(A)||(B!==V?xl(B)&&xl(V)?!mw(B,V)||R?N(A):y.protectedKeys[A]=!0:B!==void 0?N(A):h.add(A):B!==void 0&&h.has(A)?N(A):y.protectedKeys[A]=!0)}y.prevProp=w,y.prevResolvedValues=te,y.isActive&&(p={...p,...te}),r&&e.blockInitialAnimation&&($=!1),$&&!j&&d.push(...M.map(A=>({animation:A,options:{type:m,...l}})))}if(h.size){const g={};h.forEach(m=>{const y=e.getBaseTarget(m);y!==void 0&&(g[m]=y)}),d.push({animation:g})}let _=!!d.length;return r&&c.initial===!1&&!e.manuallyAnimateOnMount&&(_=!1),r=!1,_?t(d):Promise.resolve()}function a(l,u,c){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const d=s(c,l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function ik(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!mw(t,e):!1}function _r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ok(){return{animate:_r(!0),whileInView:_r(),whileHover:_r(),whileTap:_r(),whileDrag:_r(),whileFocus:_r(),exit:_r()}}class sk extends Pr{constructor(t){super(t),t.animationState||(t.animationState=rk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),bu(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let ak=0;class lk extends Pr{constructor(){super(...arguments),this.id=ak++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const o=this.node.animationState.setActive("exit",!t,{custom:r??this.node.getProps().custom});n&&!t&&o.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const uk={animation:{Feature:sk},exit:{Feature:lk}},Oy=(e,t)=>Math.abs(e-t);function ck(e,t){const n=Oy(e.x,t.x),r=Oy(e.y,t.y);return Math.sqrt(n**2+r**2)}class qw{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=Cc(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=ck(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=dt;this.history.push({...d,timestamp:h});const{onStart:p,onMove:v}=this.handlers;c||(p&&p(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Ec(c,this.transformPagePoint),Le.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Cc(u.type==="pointercancel"?this.lastMoveEventInfo:Ec(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!cw(t))return;this.handlers=n,this.transformPagePoint=r;const i=Cu(t),o=Ec(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=dt;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,Cc(o,this.history)),this.removeListeners=fr(Tn(window,"pointermove",this.handlePointerMove),Tn(window,"pointerup",this.handlePointerUp),Tn(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Nn(this.updatePoint)}}function Ec(e,t){return t?{point:t(e.point)}:e}function Ry(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Cc({point:e},t){return{point:e,delta:Ry(e,Kw(t)),offset:Ry(e,fk(t)),velocity:dk(t,.1)}}function fk(e){return e[0]}function Kw(e){return e[e.length-1]}function dk(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Kw(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>dr(t)));)n--;if(!r)return{x:0,y:0};const o=kn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Lt(e){return e.max-e.min}function ed(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ty(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=Lt(n)/Lt(t),(ed(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(ed(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Qo(e,t,n,r){Ty(e.x,t.x,n.x,r?r.originX:void 0),Ty(e.y,t.y,n.y,r?r.originY:void 0)}function ky(e,t,n){e.min=n.min+t.min,e.max=e.min+Lt(t)}function hk(e,t,n){ky(e.x,t.x,n.x),ky(e.y,t.y,n.y)}function jy(e,t,n){e.min=t.min-n.min,e.max=e.min+Lt(t)}function qo(e,t,n){jy(e.x,t.x,n.x),jy(e.y,t.y,n.y)}function pk(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function Dy(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 mk(e,{top:t,left:n,bottom:r,right:i}){return{x:Dy(e.x,n,i),y:Dy(e.y,t,r)}}function My(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=gs(t.min,t.max-r,e.min):r>i&&(n=gs(e.min,e.max-i,t.min)),vr(0,1,n)}function gk(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 wk(e=td){return e===!1?e=0:e===!0&&(e=td),{x:Ay(e,"left","right"),y:Ay(e,"top","bottom")}}function Ay(e,t,n){return{min:Ly(e,t),max:Ly(e,n)}}function Ly(e,t){return typeof e=="number"?e:e[t]||0}const Ny=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oi=()=>({x:Ny(),y:Ny()}),Fy=()=>({min:0,max:0}),qe=()=>({x:Fy(),y:Fy()});function cn(e){return[e("x"),e("y")]}function Gw({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Sk({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xk(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 Oc(e){return e===void 0||e===1}function nd({scale:e,scaleX:t,scaleY:n}){return!Oc(e)||!Oc(t)||!Oc(n)}function Rr(e){return nd(e)||Yw(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Yw(e){return $y(e.x)||$y(e.y)}function $y(e){return e&&e!=="0%"}function Cl(e,t,n){const r=e-n,i=t*r;return n+i}function Iy(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=Iy(e.min,t,n,r,i),e.max=Iy(e.max,t,n,r,i)}function Xw(e,{x:t,y:n}){rd(e.x,t.translate,t.scale,t.originPoint),rd(e.y,n.translate,n.scale,n.originPoint)}function Pk(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function qn(e,t){e.min=e.min+t,e.max=e.max+t}function By(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=$e(e.min,e.max,o);rd(e,t[n],t[r],s,t.scale)}const bk=["x","scaleX","originX"],_k=["y","scaleY","originY"];function Ri(e,t){By(e.x,t,bk),By(e.y,t,_k)}function Jw(e,t){return Gw(xk(e.getBoundingClientRect(),t))}function Ek(e,t,n){const r=Jw(e,n),{scroll:i}=t;return i&&(qn(r.x,i.offset.x),qn(r.y,i.offset.y)),r}const Ck=new WeakMap;class Ok{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=qe(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=l=>{this.stopAnimation(),n&&this.snapToCursor(Cu(l,"page").point)},o=(l,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dw(c),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),cn(p=>{let v=this.getAxisMotionValue(p).get()||0;if(yn.test(v)){const{projection:_}=this.visualElement;if(_&&_.layout){const g=_.layout.layoutBox[p];g&&(v=Lt(g)*(parseFloat(v)/100))}}this.originPoint[p]=v}),d&&Le.update(()=>d(l,u),!1,!0);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(l,u)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:p}=u;if(f&&this.currentDirection===null){this.currentDirection=Rk(p),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,p),this.updateAxis("y",u.point,p),this.visualElement.render(),h&&h(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new qw(t,{onSessionStart:i,onStart:o,onMove:s,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&&Le.update(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ua(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=pk(s,this.constraints[t],this.elastic[t])),o.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),{layout:r}=this.visualElement.projection||{},i=this.constraints;t&&Ei(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=mk(r.layoutBox,t):this.constraints=!1,this.elastic=wk(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&cn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=gk(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ei(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Ek(r,i.root,this.visualElement.getTransformPagePoint());let s=yk(i.layout.layoutBox,o);if(n){const a=n(Sk(s));this.hasMutatedConstraints=!!a,a&&(s=Gw(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=cn(c=>{if(!ua(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,p={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,p)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Kh(t,r,0,n))}stopAnimation(){cn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){cn(n=>{const{drag:r}=this.getProps();if(!ua(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:a}=i.layout.layoutBox[n];o.set(t[n]-$e(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ei(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};cn(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=vk({min:l,max:l},this.constraints[s])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),cn(s=>{if(!ua(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set($e(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;Ck.set(this.visualElement,this);const t=this.visualElement.current,n=Tn(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ei(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const s=En(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(cn(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:s=td,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function ua(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Rk(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Tk extends Pr{constructor(t){super(t),this.removeGroupControls=We,this.removeListeners=We,this.controls=new Ok(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||We}unmount(){this.removeGroupControls(),this.removeListeners()}}const Uy=e=>(t,n)=>{e&&Le.update(()=>e(t,n))};class kk extends Pr{constructor(){super(...arguments),this.removePointerDownListener=We}onPointerDown(t){this.session=new qw(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Uy(t),onStart:Uy(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Le.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=Tn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function jk(){const e=P.useContext(xu);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=P.useId();return P.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const Ma={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function zy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;const n=zy(e,t.target.x),r=zy(e,t.target.y);return`${n}% ${r}%`}},Dk={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=gr.parse(e);if(i.length>5)return r;const o=gr.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;const u=$e(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),o(i)}};class Mk extends Je.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;IR(Ak),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()})),Ma.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,s=r.projection;return s&&(s.isPresent=o,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?s.promote():s.relegate()||Le.postRender(()=>{const a=s.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Zw(e){const[t,n]=jk(),r=P.useContext(Ah);return Je.createElement(Mk,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(G1),isPresent:t,safeToRemove:n})}const Ak={borderRadius:{...bo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bo,borderTopRightRadius:bo,borderBottomLeftRadius:bo,borderBottomRightRadius:bo,boxShadow:Dk},eS=["TopLeft","TopRight","BottomLeft","BottomRight"],Lk=eS.length,Wy=e=>typeof e=="string"?parseFloat(e):e,Hy=e=>typeof e=="number"||oe.test(e);function Nk(e,t,n,r,i,o){i?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,Fk(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,$k(r))):o&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(gs(e,t,r))}function qy(e,t){e.min=t.min,e.max=t.max}function Bt(e,t){qy(e.x,t.x),qy(e.y,t.y)}function Ky(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 Ik(e,t=0,n=1,r=.5,i,o=e,s=e){if(yn.test(t)&&(t=parseFloat(t),t=$e(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=$e(o.min,o.max,r);e===o&&(a-=t),e.min=Ky(e.min,t,n,a,i),e.max=Ky(e.max,t,n,a,i)}function Gy(e,t,[n,r,i],o,s){Ik(e,t[n],t[r],t[i],t.scale,o,s)}const Vk=["x","scaleX","originX"],Bk=["y","scaleY","originY"];function Yy(e,t,n,r){Gy(e.x,t,Vk,n?n.x:void 0,r?r.x:void 0),Gy(e.y,t,Bk,n?n.y:void 0,r?r.y:void 0)}function Xy(e){return e.translate===0&&e.scale===1}function nS(e){return Xy(e.x)&&Xy(e.y)}function Uk(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 rS(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Jy(e){return Lt(e.x)/Lt(e.y)}class zk{constructor(){this.members=[]}add(t){Gh(this.members,t),t.scheduleRender()}remove(t){if(Yh(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){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Zy(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 s=e.x.scale*t.x,a=e.y.scale*t.y;return(s!==1||a!==1)&&(r+=`scale(${s}, ${a})`),r||"none"}const Wk=(e,t)=>e.depth-t.depth;class Hk{constructor(){this.children=[],this.isDirty=!1}add(t){Gh(this.children,t),this.isDirty=!0}remove(t){Yh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Wk),this.isDirty=!1,this.children.forEach(t)}}function Qk(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Nn(r),e(o-t))};return Le.read(r,!0),()=>Nn(r)}function qk(e){window.MotionDebug&&window.MotionDebug.record(e)}function Kk(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Gk(e,t,n){const r=Ot(e)?e:Xi(e);return r.start(Kh("",r,t,n)),r.animation}const ev=["","X","Y","Z"],tv=1e3;let Yk=0;const Tr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=Yk++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{Tr.totalNodes=Tr.resolvedTargetDeltas=Tr.recalculatedProjection=0,this.nodes.forEach(Zk),this.nodes.forEach(ij),this.nodes.forEach(oj),this.nodes.forEach(ej),qk(Tr)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Qk(d,250),Ma.hasAnimatedSinceResize&&(Ma.hasAnimatedSinceResize=!1,this.nodes.forEach(rv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const v=this.options.transition||c.getDefaultTransition()||cj,{onLayoutAnimationStart:_,onLayoutAnimationComplete:g}=c.getProps(),m=!this.targetLayout||!rS(this.targetLayout,p)||h,y=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||y||d&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,y);const w={...zw(v,"layout"),onPlay:_,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||rv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Nn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(sj),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach(tj),this.sharedNodes.forEach(aj)}scheduleUpdateProjection(){Le.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=w/1e3;iv(f.x,s.x,E),iv(f.y,s.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lj(this.relativeTarget,this.relativeTargetOrigin,d,E),y&&Uk(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=qe()),Bt(y,this.relativeTarget)),v&&(this.animationValues=c,Nk(c,u,this.latestValues,E,m,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Nn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Le.update(()=>{Ma.hasAnimatedSinceResize=!0,this.currentAnimation=Gk(0,tv,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(tv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=s;if(!(!a||!l||!u)){if(this!==s&&this.layout&&u&&oS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||qe();const f=Lt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=Lt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Bt(a,l),Ri(a,c),Qo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new zk),this.sharedNodes.get(s).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetRotation(){const{visualElement:s}=this.options;if(!s)return;let a=!1;const{latestValues:l}=s;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const u={};for(let c=0;c{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(nv),this.root.sharedNodes.clear()}}}function Xk(e){e.updateLayout()}function Jk(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?cn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Lt(d);d.min=r[f].min,d.max=d.min+h}):oS(o,n.layoutBox,r)&&cn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=Lt(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=Oi();Qo(a,r,n.layoutBox);const l=Oi();s?Qo(l,e.applyTransform(i,!0),n.measuredBox):Qo(l,r,n.layoutBox);const u=!nS(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const p=qe();qo(p,n.layoutBox,d.layoutBox);const v=qe();qo(v,r,h.layoutBox),rS(p,v)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function Zk(e){Tr.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ej(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function tj(e){e.clearSnapshot()}function nv(e){e.clearMeasurements()}function nj(e){e.isLayoutDirty=!1}function rj(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ij(e){e.resolveTargetDelta()}function oj(e){e.calcProjection()}function sj(e){e.resetRotation()}function aj(e){e.removeLeadSnapshot()}function iv(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ov(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function lj(e,t,n,r){ov(e.x,t.x,n.x,r),ov(e.y,t.y,n.y,r)}function uj(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cj={duration:.45,ease:[.4,0,.1,1]},sv=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),av=sv("applewebkit/")&&!sv("chrome/")?Math.round:We;function lv(e){e.min=av(e.min),e.max=av(e.max)}function fj(e){lv(e.x),lv(e.y)}function oS(e,t,n){return e==="position"||e==="preserve-aspect"&&!ed(Jy(t),Jy(n),.2)}const dj=iS({attachResizeListener:(e,t)=>En(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Rc={current:void 0},sS=iS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Rc.current){const e=new dj({});e.mount(window),e.setOptions({layoutScroll:!0}),Rc.current=e}return Rc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hj={pan:{Feature:kk},drag:{Feature:Tk,ProjectionNode:sS,MeasureLayout:Zw}},pj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function mj(e){const t=pj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function id(e,t,n=1){const[r,i]=mj(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():qf(i)?id(i,t,n+1):i}function yj(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(!qf(o))return;const s=id(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!qf(o))continue;const s=id(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const vj=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),aS=e=>vj.has(e),gj=e=>Object.keys(e).some(aS),uv=e=>e===Jr||e===oe,cv=(e,t)=>parseFloat(e.split(", ")[t]),fv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return cv(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?cv(o[1],e):0}},wj=new Set(["x","y","z"]),Sj=ks.filter(e=>!wj.has(e));function xj(e){const t=[];return Sj.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 Ji={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:fv(4,13),y:fv(5,14)};Ji.translateX=Ji.x;Ji.translateY=Ji.y;const Pj=(e,t,n)=>{const r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:s}=o,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(u=>{a[u]=Ji[u](r,o)}),t.render();const l=t.measureViewportBox();return n.forEach(u=>{const c=t.getValue(u);c&&c.jump(a[u]),e[u]=Ji[u](l,o)}),e},bj=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(aS);let o=[],s=!1;const a=[];if(i.forEach(l=>{const u=e.getValue(l);if(!e.hasValue(l))return;let c=n[l],f=Po(c);const d=t[l];let h;if(xl(d)){const p=d.length,v=d[0]===null?1:0;c=d[v],f=Po(c);for(let _=v;_=0?window.pageYOffset:null,u=Pj(t,e,a);return o.length&&o.forEach(([c,f])=>{e.getValue(c).set(f)}),e.render(),Pu&&l!==null&&window.scrollTo({top:l}),{target:u,transitionEnd:r}}else return{target:t,transitionEnd:r}};function _j(e,t,n,r){return gj(t)?bj(e,t,n,r):{target:t,transitionEnd:r}}const Ej=(e,t,n,r)=>{const i=yj(e,t,r);return t=i.target,r=i.transitionEnd,_j(e,t,n,r)},od={current:null},lS={current:!1};function Cj(){if(lS.current=!0,!!Pu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>od.current=e.matches;e.addListener(t),t()}else od.current=!1}function Oj(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(Ot(o))e.addValue(i,o),El(r)&&r.add(i);else if(Ot(s))e.addValue(i,Xi(o,{owner:e})),El(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){const a=e.getValue(i);!a.hasAnimated&&a.set(o)}else{const a=e.getStaticValue(i);e.addValue(i,Xi(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const dv=new WeakMap,uS=Object.keys(vs),Rj=uS.length,hv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Tj=Mh.length;class kj{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Le.render(this.render,!1,!0);const{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=n.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.isControllingVariants=_u(n),this.isVariantNode=K1(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(n,{});for(const f in c){const d=c[f];a[f]!==void 0&&Ot(d)&&(d.set(a[f],!1),El(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,dv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),lS.current||Cj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:od.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){dv.delete(this.current),this.projection&&this.projection.unmount(),Nn(this.notifyUpdate),Nn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Xr.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Le.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){let s,a;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:h})}return a}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qe()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}makeTargetAnimatable(t,n=!0){return this.makeTargetAnimatableFromInstance(t,this.props,n)}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.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){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(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=Xi(n,{owner:this}),this.addValue(t,r)),r}readValue(t){var n;return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n: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=Uh(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&&!Ot(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 Xh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class cS extends kj{sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:n,...r},{transformValues:i},o){let s=GT(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){qT(this,r,s);const a=Ej(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function jj(e){return window.getComputedStyle(e)}class Dj extends cS{readValueFromInstance(t,n){if(Xr.has(n)){const r=qh(n);return r&&r.default||0}else{const r=jj(t),i=(J1(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Jw(t,n)}build(t,n,r,i){Nh(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Bh(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){iw(t,n,r,i)}}class Mj extends cS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xr.has(n)){const r=qh(n);return r&&r.default||0}return n=ow.has(n)?n:Vh(n),t.getAttribute(n)}measureInstanceViewportBox(){return qe()}scrapeMotionValuesFromProps(t,n){return aw(t,n)}build(t,n,r,i){$h(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){sw(t,n,r,i)}mount(t){this.isSVGTag=Ih(t.tagName),super.mount(t)}}const Aj=(e,t)=>Lh(e)?new Mj(t,{enableHardwareAcceleration:!1}):new Dj(t,{enableHardwareAcceleration:!0}),Lj={layout:{ProjectionNode:sS,MeasureLayout:Zw}},Nj={...uk,...R2,...hj,...Lj},fS=FR((e,t)=>d2(e,t,Nj,Aj));function dS(){const e=P.useRef(!1);return gl(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Fj(){const e=dS(),[t,n]=P.useState(0),r=P.useCallback(()=>{e.current&&n(t+1)},[t]);return[P.useCallback(()=>Le.postRender(r),[r]),t]}class $j extends P.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 Ij({children:e,isPresent:t}){const n=P.useId(),r=P.useRef(null),i=P.useRef({width:0,height:0,top:0,left:0});return P.useInsertionEffect(()=>{const{width:o,height:s,top:a,left:l}=i.current;if(t||!r.current||!o||!s)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: ${s}px !important; + top: ${a}px !important; + left: ${l}px !important; + } + `),()=>{document.head.removeChild(u)}},[t]),P.createElement($j,{isPresent:t,childRef:r,sizeRef:i},P.cloneElement(e,{ref:r}))}const Tc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=lw(Vj),l=P.useId(),u=P.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c=>{a.set(c,!0);for(const f of a.values())if(!f)return;r&&r()},register:c=>(a.set(c,!1),()=>a.delete(c))}),o?void 0:[n]);return P.useMemo(()=>{a.forEach((c,f)=>a.set(f,!1))},[n]),P.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=P.createElement(Ij,{isPresent:n},e)),P.createElement(xu.Provider,{value:u},e)};function Vj(){return new Map}function Bj(e){return P.useEffect(()=>()=>e(),[])}const ci=e=>e.key||"";function Uj(e,t){e.forEach(n=>{const r=ci(n);t.set(r,n)})}function zj(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const hS=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=P.useContext(Ah).forceRender||Fj()[0],l=dS(),u=zj(e);let c=u;const f=P.useRef(new Map).current,d=P.useRef(c),h=P.useRef(new Map).current,p=P.useRef(!0);if(gl(()=>{p.current=!1,Uj(u,h),d.current=c}),Bj(()=>{p.current=!0,h.clear(),f.clear()}),p.current)return P.createElement(P.Fragment,null,c.map(m=>P.createElement(Tc,{key:ci(m),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},m)));c=[...c];const v=d.current.map(ci),_=u.map(ci),g=v.length;for(let m=0;m{if(_.indexOf(y)!==-1)return;const w=h.get(y);if(!w)return;const E=v.indexOf(y);let O=m;if(!O){const j=()=>{h.delete(y),f.delete(y);const R=d.current.findIndex($=>$.key===y);if(d.current.splice(R,1),!f.size){if(d.current=u,l.current===!1)return;a(),r&&r()}};O=P.createElement(Tc,{key:ci(w),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},w),f.set(y,O)}c.splice(E,0,O)}),c=c.map(m=>{const y=m.key;return f.has(y)?m:P.createElement(Tc,{key:ci(m),isPresent:!0,presenceAffectsLayout:o,mode:s},m)}),P.createElement(P.Fragment,null,f.size?c:c.map(m=>P.cloneElement(m)))},Wj="_header_nctbf_1",Hj="_top_nctbf_10",Qj="_show_nctbf_15",qj="_hide_nctbf_18",Kj="_mobile__view_nctbf_26",Gj="_nav_nctbf_29",Yj="_logo_nctbf_44",Xj="_nav__desktop_nctbf_78",Jj="_nav__desktop__item_nctbf_87",Zj="_nav__desktop__link_nctbf_90",eD="_buttons__mobile__menu_nctbf_117",tD="_list_nctbf_127",nD="_search_nctbf_142",rD="_form_nctbf_151",iD="_input_search_nctbf_164",oD="_nav__mobile_nctbf_185",sD="_nav__mobile__item_nctbf_198",aD="_nav__link_nctbf_208",lD="_button_nctbf_117",uD="_button_submit_nctbf_249",Re={header:Wj,top:Hj,show:Qj,hide:qj,mobile__view:Kj,nav:Gj,logo:Yj,nav__desktop:Xj,nav__desktop__item:Jj,nav__desktop__link:Zj,buttons__mobile__menu:eD,list:tD,search:nD,form:rD,input_search:iD,nav__mobile:oD,nav__mobile__item:sD,nav__link:aD,button:lD,button_submit:uD},cD=({isMenuOpen:e,setIsMenuOpen:t})=>{const{pathname:n}=Yr();return P.useEffect(()=>{t(!1)},[n,t]),b.jsx(hS,{children:e&&b.jsxs(fS.ul,{animate:{opacity:1},className:`${Re.list} ${Re.nav__mobile}`,exit:{opacity:0},initial:{opacity:0},transition:{duration:.2},children:[b.jsx("li",{className:Re.nav__mobile__item,children:b.jsx(lr,{className:Re.nav__link,to:"discover/movie",children:"Movies"})}),b.jsx("li",{className:Re.nav__mobile__item,children:b.jsx(lr,{className:Re.nav__link,to:"discover/tv",children:"TV Shows"})})]})})},fD=({isSearchOpen:e})=>{const t=P.useRef(null),n=vh(),r=i=>{i.preventDefault(),t.current.value&&n(`/search/${t.current.value}`)};return b.jsx(hS,{children:e&&b.jsx(fS.div,{animate:{opacity:1},className:`${Re.list} ${Re.search}`,exit:{opacity:0},initial:{opacity:0},transition:{duration:.2},children:b.jsxs("form",{action:"",className:Re.form,onSubmit:r,children:[b.jsx("input",{ref:t,className:Re.input_search,placeholder:"Search for a movie or tv show....",type:"text"}),b.jsx("button",{className:`${Re.button} ${Re.button_submit}`,children:b.jsx("img",{alt:"search",src:H1})})]})})})},dD=()=>{const{pathname:e}=Yr(),[t,n]=P.useState(!1),[r,i]=P.useState(!1),[o,s]=P.useState("top"),[a,l]=P.useState(0);P.useEffect(()=>{window.scrollTo(0,0),i(!1)},[e]);const u=P.useRef(null),c=P.useRef(null),f=P.useRef(null),d=P.useRef(null),h=()=>n(!1),p=()=>i(!1);return uy(t,u,c,h),uy(r,f,d,p),OR(a,t,s,l),b.jsxs("header",{className:`${Re.header} ${t?Re.mobile__view:""} ${Re[`${o}`]}`,children:[b.jsx("div",{className:"wrapper",children:b.jsxs("nav",{className:Re.nav,children:[b.jsx(lr,{className:Re.logo,to:"/",children:b.jsx("span",{children:"Movies App"})}),b.jsxs("ul",{className:Re.nav__desktop,children:[b.jsx("li",{className:Re.nav__desktop__item,children:b.jsx(lr,{className:Re.nav__desktop__link,to:"discover/movie",children:"Movies"})}),b.jsx("li",{className:Re.nav__desktop__item,children:b.jsx(lr,{className:Re.nav__desktop__link,to:"discover/tv",children:"TV Shows"})})]}),b.jsxs("div",{className:Re.buttons__mobile__menu,children:[b.jsx("button",{ref:d,className:Re.button,onClick:()=>i(!r),children:r?b.jsx("img",{alt:"Close",src:cy}):b.jsx("img",{alt:"Search",src:H1})}),b.jsx("button",{ref:c,className:Re.button,onClick:()=>n(!t),children:t?b.jsx("img",{alt:"Close",src:cy}):b.jsx("img",{alt:"Menu",src:RR})})]})]})}),b.jsx("div",{ref:f,children:b.jsx(fD,{isSearchOpen:r})}),b.jsx("div",{ref:u,children:b.jsx(cD,{isMenuOpen:t,setIsMenuOpen:n})})]})},hD=()=>{const e=m_();return P.useEffect(()=>{e(ja()),e(ka())},[e]),b.jsxs(b.Fragment,{children:[b.jsx(dD,{}),b.jsx(_E,{}),b.jsx(NE,{}),Hi.createPortal(b.jsx(pR,{}),document.getElementById("root"),"buttonUp"),Hi.createPortal(b.jsx(yR,{}),document.getElementById("root"),"themeSwitch"),b.jsx(CR,{})]})};var pS={exports:{}};(()=>{var e={296:(i,o,s)=>{var a=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,d=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,h=typeof self=="object"&&self&&self.Object===Object&&self,p=d||h||Function("return this")(),v=Object.prototype.toString,_=Math.max,g=Math.min,m=function(){return p.Date.now()};function y(E){var O=typeof E;return!!E&&(O=="object"||O=="function")}function w(E){if(typeof E=="number")return E;if(function(R){return typeof R=="symbol"||function($){return!!$&&typeof $=="object"}(R)&&v.call(R)=="[object Symbol]"}(E))return NaN;if(y(E)){var O=typeof E.valueOf=="function"?E.valueOf():E;E=y(O)?O+"":O}if(typeof E!="string")return E===0?E:+E;E=E.replace(a,"");var j=u.test(E);return j||c.test(E)?f(E.slice(2),j?2:8):l.test(E)?NaN:+E}i.exports=function(E,O,j){var R,$,M,te,J,K,N=0,A=!1,B=!1,V=!0;if(typeof E!="function")throw new TypeError("Expected a function");function k(se){var re=R,fe=$;return R=$=void 0,N=se,te=E.apply(fe,re)}function F(se){var re=se-K;return K===void 0||re>=O||re<0||B&&se-N>=M}function z(){var se=m();if(F(se))return q(se);J=setTimeout(z,function(re){var fe=O-(re-K);return B?g(fe,M-(re-N)):fe}(se))}function q(se){return J=void 0,V&&R?k(se):(R=$=void 0,te)}function ne(){var se=m(),re=F(se);if(R=arguments,$=this,K=se,re){if(J===void 0)return function(fe){return N=fe,J=setTimeout(z,O),A?k(fe):te}(K);if(B)return J=setTimeout(z,O),k(K)}return J===void 0&&(J=setTimeout(z,O)),te}return O=w(O)||0,y(j)&&(A=!!j.leading,M=(B="maxWait"in j)?_(w(j.maxWait)||0,O):M,V="trailing"in j?!!j.trailing:V),ne.cancel=function(){J!==void 0&&clearTimeout(J),N=0,R=K=$=J=void 0},ne.flush=function(){return J===void 0?te:q(m())},ne}},96:(i,o,s)=>{var a="Expected a function",l=NaN,u="[object Symbol]",c=/^\s+|\s+$/g,f=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,p=parseInt,v=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,_=typeof self=="object"&&self&&self.Object===Object&&self,g=v||_||Function("return this")(),m=Object.prototype.toString,y=Math.max,w=Math.min,E=function(){return g.Date.now()};function O(R){var $=typeof R;return!!R&&($=="object"||$=="function")}function j(R){if(typeof R=="number")return R;if(function(te){return typeof te=="symbol"||function(J){return!!J&&typeof J=="object"}(te)&&m.call(te)==u}(R))return l;if(O(R)){var $=typeof R.valueOf=="function"?R.valueOf():R;R=O($)?$+"":$}if(typeof R!="string")return R===0?R:+R;R=R.replace(c,"");var M=d.test(R);return M||h.test(R)?p(R.slice(2),M?2:8):f.test(R)?l:+R}i.exports=function(R,$,M){var te=!0,J=!0;if(typeof R!="function")throw new TypeError(a);return O(M)&&(te="leading"in M?!!M.leading:te,J="trailing"in M?!!M.trailing:J),function(K,N,A){var B,V,k,F,z,q,ne=0,se=!1,re=!1,fe=!0;if(typeof K!="function")throw new TypeError(a);function ge(he){var ke=B,lt=V;return B=V=void 0,ne=he,F=K.apply(lt,ke)}function Qe(he){var ke=he-q;return q===void 0||ke>=N||ke<0||re&&he-ne>=k}function we(){var he=E();if(Qe(he))return Ee(he);z=setTimeout(we,function(ke){var lt=N-(ke-q);return re?w(lt,k-(ke-ne)):lt}(he))}function Ee(he){return z=void 0,fe&&B?ge(he):(B=V=void 0,F)}function Ne(){var he=E(),ke=Qe(he);if(B=arguments,V=this,q=he,ke){if(z===void 0)return function(lt){return ne=lt,z=setTimeout(we,N),se?ge(lt):F}(q);if(re)return z=setTimeout(we,N),ge(q)}return z===void 0&&(z=setTimeout(we,N)),F}return N=j(N)||0,O(A)&&(se=!!A.leading,k=(re="maxWait"in A)?y(j(A.maxWait)||0,N):k,fe="trailing"in A?!!A.trailing:fe),Ne.cancel=function(){z!==void 0&&clearTimeout(z),ne=0,B=q=V=z=void 0},Ne.flush=function(){return z===void 0?F:Ee(E())},Ne}(R,$,{leading:te,maxWait:$,trailing:J})}},703:(i,o,s)=>{var a=s(414);function l(){}function u(){}u.resetWarningCache=l,i.exports=function(){function c(h,p,v,_,g,m){if(m!==a){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,bigint: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,s)=>{i.exports=s(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 s=t[i]={exports:{}};return e[i](s,s.exports,n),s.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 s in o)n.o(o,s)&&!n.o(i,s)&&Object.defineProperty(i,s,{enumerable:!0,get:o[s]})},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:()=>As,LazyLoadImage:()=>ri,trackWindowScroll:()=>q});const i=P;var o=n.n(i),s=n(697);const a=Hi;var l=n.n(a);function u(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(U){return c=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},c(U)}function f(U,T){var W=Object.keys(U);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(U);T&&(Q=Q.filter(function(le){return Object.getOwnPropertyDescriptor(U,le).enumerable})),W.push.apply(W,Q)}return W}function d(U,T,W){return(T=p(T))in U?Object.defineProperty(U,T,{value:W,enumerable:!0,configurable:!0,writable:!0}):U[T]=W,U}function h(U,T){for(var W=0;W"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 S,x=_(Q);if(le){var C=_(this).constructor;S=Reflect.construct(x,arguments,C)}else S=x.apply(this,arguments);return function(D,I){if(I&&(c(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(D)}(this,S)});function ve(S){var x;if(function(D,I){if(!(D instanceof I))throw new TypeError("Cannot call a class as a function")}(this,ve),(x=ue.call(this,S)).supportsObserver=!S.scrollPosition&&S.useIntersectionObserver&&u(),x.supportsObserver){var C=S.threshold;x.observer=function(D){return m[D]=m[D]||new IntersectionObserver(g,{rootMargin:D+"px"}),m[D]}(C)}return x}return T=ve,W=[{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 S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,x=this.placeholder.getBoundingClientRect(),C=l().findDOMNode(this.placeholder).style,D=parseInt(C.getPropertyValue("margin-left"),10)||0,I=parseInt(C.getPropertyValue("margin-top"),10)||0;return{bottom:S.y+x.bottom+I,left:S.x+x.left+D,right:S.x+x.right+D,top:S.y+x.top+I}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var S=this.props,x=S.scrollPosition,C=S.threshold,D=this.getPlaceholderBoundingBox(x),I=x.y+window.innerHeight,G=x.x,Z=x.x+window.innerWidth,X=x.y;return X-C<=D.bottom&&I+C>=D.top&&G-C<=D.right&&Z+C>=D.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var S=this,x=this.props,C=x.className,D=x.height,I=x.placeholder,G=x.style,Z=x.width;if(I&&typeof I.type!="function")return o().cloneElement(I,{ref:function(Y){return S.placeholder=Y}});var X=function(Y){for(var ae=1;ae"u"?0:window.scrollX||window.pageXOffset},z=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const q=function(U){var T=function(W){(function(C,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(D&&D.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),D&&A(C,D)})(x,W);var Q,le,ue,ve,S=(ue=x,ve=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 C,D=k(ue);if(ve){var I=k(this).constructor;C=Reflect.construct(D,arguments,I)}else C=D.apply(this,arguments);return B(this,C)});function x(C){var D;if(function(G,Z){if(!(G instanceof Z))throw new TypeError("Cannot call a class as a function")}(this,x),(D=S.call(this,C)).useIntersectionObserver=C.useIntersectionObserver&&u(),D.useIntersectionObserver)return B(D);var I=D.onChangeScroll.bind(V(D));return C.delayMethod==="debounce"?D.delayedScroll=O()(I,C.delayTime):C.delayMethod==="throttle"&&(D.delayedScroll=R()(I,C.delayTime)),D.state={scrollPosition:{x:F(),y:z()}},D.baseComponentRef=o().createRef(),D}return Q=x,(le=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||M(l().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=M(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:F(),y:z()}})}},{key:"render",value:function(){var C=this.props,D=(C.delayMethod,C.delayTime,function(G,Z){if(G==null)return{};var X,Y,ae=function(Se,Ce){if(Se==null)return{};var Be,yt,Vn={},ii=Object.keys(Se);for(yt=0;yt=0||(Vn[Be]=Se[Be]);return Vn}(G,Z);if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(G);for(Y=0;Y=0||Object.prototype.propertyIsEnumerable.call(G,X)&&(ae[X]=G[X])}return ae}(C,J)),I=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(U,K({forwardRef:this.baseComponentRef,scrollPosition:I},D))}}])&&N(Q.prototype,le),Object.defineProperty(Q,"prototype",{writable:!1}),x}(o().Component);return T.propTypes={delayMethod:s.PropTypes.oneOf(["debounce","throttle"]),delayTime:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool},T.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},T};function ne(U){return ne=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},ne(U)}function se(U,T){for(var W=0;W"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 S,x=fe(Q);if(le){var C=fe(this).constructor;S=Reflect.construct(x,arguments,C)}else S=x.apply(this,arguments);return function(D,I){if(I&&(ne(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(D)}(this,S)});function ve(S){return function(x,C){if(!(x instanceof C))throw new TypeError("Cannot call a class as a function")}(this,ve),ue.call(this,S)}return T=ve,(W=[{key:"render",value:function(){return o().createElement(w,this.props)}}])&&se(T.prototype,W),Object.defineProperty(T,"prototype",{writable:!1}),ve}(o().Component);const Qe=q(ge);function we(U){return we=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},we(U)}function Ee(U,T){for(var W=0;W"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 S,x=ke(Q);if(le){var C=ke(this).constructor;S=Reflect.construct(x,arguments,C)}else S=x.apply(this,arguments);return function(D,I){if(I&&(we(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return he(D)}(this,S)});function ve(S){var x;(function(Z,X){if(!(Z instanceof X))throw new TypeError("Cannot call a class as a function")})(this,ve),x=ue.call(this,S);var C=S.afterLoad,D=S.beforeLoad,I=S.scrollPosition,G=S.visibleByDefault;return x.state={visible:G},G&&(D(),C()),x.onVisible=x.onVisible.bind(he(x)),x.isScrollTracked=!!(I&&Number.isFinite(I.x)&&I.x>=0&&Number.isFinite(I.y)&&I.y>=0),x}return T=ve,(W=[{key:"componentDidUpdate",value:function(S,x){x.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 S=this.props,x=S.className,C=S.delayMethod,D=S.delayTime,I=S.height,G=S.placeholder,Z=S.scrollPosition,X=S.style,Y=S.threshold,ae=S.useIntersectionObserver,ie=S.width;return this.isScrollTracked||ae&&u()?o().createElement(w,{className:x,height:I,onVisible:this.onVisible,placeholder:G,scrollPosition:Z,style:X,threshold:Y,useIntersectionObserver:ae,width:ie}):o().createElement(Qe,{className:x,delayMethod:C,delayTime:D,height:I,onVisible:this.onVisible,placeholder:G,style:X,threshold:Y,width:ie})}}])&&Ee(T.prototype,W),Object.defineProperty(T,"prototype",{writable:!1}),ve}(o().Component);lt.propTypes={afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool},lt.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const As=lt;function It(U){return It=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},It(U)}var Ls=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Zr(U,T){var W=Object.keys(U);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(U);T&&(Q=Q.filter(function(le){return Object.getOwnPropertyDescriptor(U,le).enumerable})),W.push.apply(W,Q)}return W}function br(U){for(var T=1;T"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 S,x=ti(Q);if(le){var C=ti(this).constructor;S=Reflect.construct(x,arguments,C)}else S=x.apply(this,arguments);return function(D,I){if(I&&(It(I)==="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(G){if(G===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return G}(D)}(this,S)});function ve(S){var x;return function(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}(this,ve),(x=ue.call(this,S)).state={loaded:!1},x}return T=ve,(W=[{key:"onImageLoad",value:function(){var S=this;return this.state.loaded?null:function(x){S.props.onLoad(x),S.props.afterLoad(),S.setState({loaded:!0})}}},{key:"getImg",value:function(){var S=this.props,x=(S.afterLoad,S.beforeLoad,S.delayMethod,S.delayTime,S.effect,S.placeholder,S.placeholderSrc,S.scrollPosition,S.threshold,S.useIntersectionObserver,S.visibleByDefault,S.wrapperClassName,S.wrapperProps,function(C,D){if(C==null)return{};var I,G,Z=function(Y,ae){if(Y==null)return{};var ie,Se,Ce={},Be=Object.keys(Y);for(Se=0;Se=0||(Ce[ie]=Y[ie]);return Ce}(C,D);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(C);for(G=0;G=0||Object.prototype.propertyIsEnumerable.call(C,I)&&(Z[I]=C[I])}return Z}(S,Ls));return o().createElement("img",Rt({},x,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var S=this.props,x=S.beforeLoad,C=S.className,D=S.delayMethod,I=S.delayTime,G=S.height,Z=S.placeholder,X=S.scrollPosition,Y=S.style,ae=S.threshold,ie=S.useIntersectionObserver,Se=S.visibleByDefault,Ce=S.width;return o().createElement(As,{beforeLoad:x,className:C,delayMethod:D,delayTime:I,height:G,placeholder:Z,scrollPosition:X,style:Y,threshold:ae,useIntersectionObserver:ie,visibleByDefault:Se,width:Ce},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(S){var x=this.props,C=x.effect,D=x.height,I=x.placeholderSrc,G=x.width,Z=x.wrapperClassName,X=x.wrapperProps,Y=this.state.loaded,ae=Y?" lazy-load-image-loaded":"",ie=Y||!I?{}:{backgroundImage:"url(".concat(I,")"),backgroundSize:"100% 100%"};return o().createElement("span",Rt({className:Z+" lazy-load-image-background "+C+ae,style:br(br({},ie),{},{color:"transparent",display:"inline-block",height:D,width:G})},X),S)}},{key:"render",value:function(){var S=this.props,x=S.effect,C=S.placeholderSrc,D=S.visibleByDefault,I=S.wrapperClassName,G=S.wrapperProps,Z=this.getLazyLoadImage();return(x||C)&&!D||I||G?this.getWrappedLazyLoadImage(Z):Z}}])&&Ns(T.prototype,W),Object.defineProperty(T,"prototype",{writable:!1}),ve}(o().Component);ni.propTypes={onLoad:s.PropTypes.func,afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,delayMethod:s.PropTypes.string,delayTime:s.PropTypes.number,effect:s.PropTypes.string,placeholderSrc:s.PropTypes.string,threshold:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool,wrapperClassName:s.PropTypes.string,wrapperProps:s.PropTypes.object},ni.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const ri=ni})(),pS.exports=r})();var pD=pS.exports;const mS=({src:e,className:t=""})=>b.jsx(pD.LazyLoadImage,{alt:"Banner",className:t,effect:"blur",src:e}),Pn=(e,t,n=[],r={})=>bb([e,n],()=>wu(t),{...r}),mD=()=>{const[e,t]=P.useState(""),n=ah(a=>{var l;return(l=a.urlBaseForImages.url)==null?void 0:l.backdrop}),{data:r,isLoading:i,isError:o,error:s}=Pn("movies_upcoming","/movie/upcoming");return P.useEffect(()=>{(l=>{var u;if(l&&n){const c=`${n}${(u=l.results)==null?void 0:u[Math.floor(Math.random()*20)].backdrop_path}`;t(c)}})(r)},[r,n]),{banner:e,data:r,isLoading:i,isError:o,error:s}},kc=(e,t,n="",r="",i)=>{const{data:o,isError:s,error:a,status:l}=Pn(e,`/${n}${t}${r}`,t,i);return{data:o,isError:s,error:a,status:l}},yD=(e,t)=>{var u;const{data:n,isLoading:r,isError:i,error:o}=Pn("crew",`/${e}/${t}/credits`,t,{enabled:!!(e&&t)}),s=(u=n==null?void 0:n.crew)==null?void 0:u.filter(c=>c.job==="Director"),a=aR(n==null?void 0:n.crew,["name","job"],["Screenplay","Story","Writer"]),l=n==null?void 0:n.cast;return{writers:a,director:s,actors:l,isLoading:r,isError:i,error:o}},pv=(e,t,n,r)=>{var _;const i=({pageParam:g=1})=>wu(`${e}`,{...t,page:g}),{data:o,error:s,isLoading:a,fetchNextPage:l,hasNextPage:u,isError:c,isFetching:f,isSuccess:d}=_b([n,[r]],i,{getNextPageParam:g=>g.pageo==null?void 0:o.pages.reduce((g,m)=>({results:[...g.results,...m.results]})),[o]),p=(_=o==null?void 0:o.pages[0])==null?void 0:_.total_results,v=o==null?void 0:o.pages;return{videos:h,error:s,isError:c,isLoading:a,fetchNextPage:l,hasNextPage:u,total_results:p,dataPages:v,isFetching:f,isSuccess:d}},yS=()=>({useTopRated:e=>kc("top_movies",e,"","/top_rated",{enabled:!!e}),useTrending:e=>kc("trending_movies",e,"trending/movie/","",{enabled:!!e}),usePopular:e=>kc("popular_videos",e,"","/popular",{enabled:!!e}),useBanner:()=>mD(),useMovieDetails:(e,t)=>Pn(e,`/${e}/${t}`,t,{enabled:!!(e&&t)}),useCrew:(e,t)=>yD(e,t),usePerson:e=>Pn("person",`/person/${e}`,e),useTrailersList:(e,t)=>Pn("trailers_list",`/${e}/${t}/videos`,t,{enabled:!!(e&&t)}),useSimilar:(e,t)=>Pn("similar",`/${e}/${t}/similar`,t,{enabled:!!(e&&t)}),useRecommendations:(e,t)=>Pn("recommendations",`/${e}/${t}/recommendations`,t,{enabled:!!(e&&t)}),useVideoCreditsPerson:(e,t,n)=>Pn("movie_credits_person",`/person/${e}/${t}_credits`,[t,e],{enabled:!!(t&&e),...n}),useDiscover:(e,t,n,r)=>pv(e,t,n,r),useSearchQuery:(e,t,n,r)=>pv(e,t,n,r)}),vD="_banner__img_1cq81_1",gD="_banner_1cq81_1",wD="_banner__content_1cq81_42",SD="_title_1cq81_54",xD="_subtitle_1cq81_65",PD="_form_1cq81_75",bD="_form__btn_1cq81_121",Xn={banner__img:vD,banner:gD,"opacity-layer":"_opacity-layer_1cq81_34",banner__content:wD,title:SD,subtitle:xD,form:PD,form__btn:bD},_D=()=>{const{isLoading:e,banner:t}=yS().useBanner();return b.jsx(b.Fragment,{children:!e&&b.jsx("div",{className:Xn.banner__img,children:b.jsx(mS,{src:t})})})},ED=()=>{const e=P.useRef(null),t=vh(),n=r=>{r.preventDefault(),e.current.value&&t(`/search/${e.current.value}`)};return b.jsx(b.Fragment,{children:b.jsxs("div",{className:Xn.banner__content,children:[b.jsx("h1",{className:Xn.title,children:"Welcome."}),b.jsx("h2",{className:Xn.subtitle,children:"Millions of movies, TV shows and people to discover. Explore now."}),b.jsxs("form",{className:Xn.form,onSubmit:n,children:[b.jsx("input",{ref:e,placeholder:"Search for a movie or tv show....",type:"text"}),b.jsx("button",{className:Xn.form__btn,children:b.jsx("span",{children:"Search"})})]})]})})},CD=()=>b.jsxs("div",{className:Xn.banner,children:[b.jsx(_D,{}),b.jsx("div",{className:Xn["opacity-layer"]}),b.jsx(ED,{})]}),OD=e=>{const[t,n]=P.useState([e[0]]),r=P.useCallback(i=>{n(i?[e[1]]:[e[0]])},[e]);return{endpoint:t,onTabChange:r}},RD=e=>{switch(e){case"skeletons__item_grid":return+getComputedStyle(document.querySelector(":root")).getPropertyValue("--count-skeletons-grid");case"skeletons__item_flex":return+getComputedStyle(document.querySelector(":root")).getPropertyValue("--count-skeletons-flex");default:return 4}},TD="_heading_kbkkg_1",kD="_ellipse_kbkkg_15",jD="_title_kbkkg_21",DD="_slides_kbkkg_30",MD="_skeletons__item_kbkkg_41",AD="_skeletons__item_flex_kbkkg_50",LD="_poster_kbkkg_64",ND="_text_kbkkg_70",FD="_genre_kbkkg_79",$D="_date_kbkkg_84",kt={heading:TD,ellipse:kD,title:jD,switch:"_switch_kbkkg_25",slides:DD,skeletons__item:MD,skeletons__item_flex:AD,poster:LD,text:ND,genre:FD,date:$D},ID=({tabsNames:e=[],children:t})=>b.jsx(b.Fragment,{children:b.jsxs("div",{className:"wrapper",children:[b.jsxs("div",{className:kt.heading,children:[b.jsx("h3",{className:`title-article ${kt.title} ${kt.ellipse}`}),e.length?b.jsx("div",{className:`${kt.switch} ${kt.ellipse}`}):null]}),b.jsx("ul",{className:kt.slides,children:t})]})}),VD=e=>t=>{const{tabsNames:n=[],isLoading:r,...i}=t;return b.jsx(b.Fragment,{children:r&&b.jsx(ID,{tabsNames:n,children:b.jsx(e,{...i})})})},BD=({classname:e="skeletons__item_flex"})=>{const t=+RD(e);return b.jsx(b.Fragment,{children:Array(t).fill("skeleton").map((n,r)=>b.jsxs("div",{className:`${kt.skeletons__item} ${kt[e]}`,children:[b.jsx("div",{className:`${kt.poster} skeleton`}),b.jsxs("div",{className:kt.text,children:[b.jsx("div",{className:`${kt.title} skeleton`}),b.jsx("div",{className:`${kt.genre} skeleton`}),b.jsx("div",{className:`${kt.date} skeleton`})]})]},r))})},UD=VD(BD),zD="_heading_18uvb_5",WD="_slider_18uvb_1",HD="_wrapper_18uvb_19",QD="_slider__title_18uvb_22",qD="_arrow_18uvb_28",KD="_arrow_left_18uvb_68",GD="_arrow_right_18uvb_71",YD="_arrow_hidden_18uvb_74",XD="_slides_18uvb_77",nn={"slider-box":"_slider-box_18uvb_1",heading:zD,slider:WD,wrapper:HD,slider__title:QD,arrow:qD,arrow_left:KD,arrow_right:GD,arrow_hidden:YD,slides:XD},JD=P.forwardRef(({visible:e},t)=>{const[n,r]=P.useState("left"),i=o=>{const s=t==null?void 0:t.current;if(s){const a=o==="left"?s.scrollLeft-(s.offsetWidth+20):s.scrollLeft+(s.offsetWidth+20);a+s.offsetWidth+20>=s.scrollWidth?r("right"):a<=0?r("left"):r(""),s.style.transform=`translateX(${a})`,s.scrollTo({left:a,behavior:"smooth"})}};return P.useEffect(()=>{r("left")},[e]),b.jsx(b.Fragment,{children:e?b.jsxs(b.Fragment,{children:[b.jsx("button",{className:`${nn.arrow} ${nn.arrow_left} ${n==="left"&&nn.arrow_hidden}`,onClick:()=>i("left"),children:b.jsx("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"})})}),b.jsx("button",{className:`${nn.arrow} ${nn.arrow_right} ${n==="right"&&nn.arrow_hidden}`,onClick:()=>i("right"),children:b.jsx("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm150.6 278.6L303.5 381.7c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25L306.8 288H128c-17.7 0-32-14.3-32-32s14.31-32 32-32h178.8l-49.38-49.38c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l103.1 103.1C414.6 241.3 416 251.1 416 256c0 4.9-1.4 14.7-9.4 22.6z"})})})]}):null})}),ZD="_tab_gypaj_1",eM="_tab__wrapper_gypaj_7",tM="_tab__label_gypaj_17",nM="_active_gypaj_32",rM="_tab__item_gypaj_35",iM="_tab__radio_gypaj_39",oM="_slider_gypaj_57",sM="_slider_left_gypaj_67",aM="_slider_right_gypaj_70",wn={tab:ZD,tab__wrapper:eM,tab__label:tM,active:nM,tab__item:rM,tab__radio:iM,"tab__label-span":"_tab__label-span_gypaj_46",slider:oM,slider_left:sM,slider_right:aM},lM=({data:e,onTabChange:t})=>{const[n,r]=P.useState(0);function i(o){const s=Number(o.target.value);r(s),t(s)}return b.jsx("div",{className:wn.tab,children:b.jsxs("div",{className:wn.tab__wrapper,children:[e.map((o,s)=>b.jsxs("label",{className:`${wn.tab__label} ${n===s?wn.active:""}`,children:[b.jsx("input",{checked:n===s,className:wn.tab__radio,name:o,type:"radio",value:s,onChange:i}),b.jsx("span",{className:wn["tab__label-span"],children:o})]},o)),b.jsx("span",{className:`${wn.slider} ${n?wn.slider_right:wn.slider_left}`})]})})},uM=({endpoint:e="",title:t,onTabChange:n,tabsNames:r=[],data:i,children:o})=>{const{id:s}=gh(),a=P.useRef(null),[l,u]=P.useState(!1);return P.useEffect(()=>{var f,d;a.current&&(a.current.scrollLeft=0);const c=(f=a==null?void 0:a.current)==null?void 0:f.getBoundingClientRect();u(((d=a==null?void 0:a.current)==null?void 0:d.scrollWidth)>(c==null?void 0:c.width))},[e,l,s,i]),b.jsx(b.Fragment,{children:i!=null&&i.length?b.jsxs("div",{className:nn["slider-box"],children:[b.jsxs("div",{className:`${nn.heading} wrapper`,children:[b.jsx("h3",{className:"title-article",children:t}),r.length?b.jsx(lM,{data:r,onTabChange:n}):null]}),b.jsx("div",{className:nn.slider,children:b.jsxs("div",{className:`${nn.wrapper} wrapper`,children:[b.jsx(JD,{ref:a,visible:l}),b.jsx("ul",{ref:a,className:nn.slides,children:o})]})})]}):null})},cM=e=>t=>{const{endpoint:n="",title:r,onTabChange:i,tabsNames:o=[],data:s}=t,a={endpoint:n,title:r,onTabChange:i,tabsNames:o,data:s};return b.jsx(uM,{...a,children:b.jsx(e,{...t})})};var vS={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(xS,function(){var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",a="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",p="date",v="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var N=["th","st","nd","rd"],A=K%100;return"["+K+(N[(A-20)%10]||N[A]||N[0])+"]"}},y=function(K,N,A){var B=String(K);return!B||B.length>=N?K:""+Array(N+1-B.length).join(A)+K},w={s:y,z:function(K){var N=-K.utcOffset(),A=Math.abs(N),B=Math.floor(A/60),V=A%60;return(N<=0?"+":"-")+y(B,2,"0")+":"+y(V,2,"0")},m:function K(N,A){if(N.date()1)return K(F[0])}else{var z=N.name;O[z]=N,V=z}return!B&&V&&(E=V),V||!B&&E},$=function(K,N){if(j(K))return K.clone();var A=typeof N=="object"?N:{};return A.date=K,A.args=arguments,new te(A)},M=w;M.l=R,M.i=j,M.w=function(K,N){return $(K,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var te=function(){function K(A){this.$L=R(A.locale,null,!0),this.parse(A)}var N=K.prototype;return N.parse=function(A){this.$d=function(B){var V=B.date,k=B.utc;if(V===null)return new Date(NaN);if(M.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var F=V.match(_);if(F){var z=F[2]-1||0,q=(F[7]||"0").substring(0,3);return k?new Date(Date.UTC(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,q)):new Date(F[1],z,F[3]||1,F[4]||0,F[5]||0,F[6]||0,q)}}return new Date(V)}(A),this.$x=A.x||{},this.init()},N.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},N.$utils=function(){return M},N.isValid=function(){return this.$d.toString()!==v},N.isSame=function(A,B){var V=$(A);return this.startOf(B)<=V&&V<=this.endOf(B)},N.isAfter=function(A,B){return $(A){const n=ah(i=>i.genres.all),r=String(e==null?void 0:e.map(i=>n[i]));return b.jsx("div",{className:_o["genres-box"],title:r||"",children:e!=null&&e.length?b.jsx("div",{className:`${_o.genres} ${_o[t]}`,children:e==null?void 0:e.map(i=>b.jsx("div",{className:_o.genre,children:n[i]},i))}):b.jsx("div",{className:_o["genres-empty"]})})};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var sd=function(e,t){return sd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},sd(e,t)};function vM(e,t){sd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var gM=100,wM=100,mv=50,ad=50,ld=50;function yv(e){var t=e.className,n=e.counterClockwise,r=e.dashRatio,i=e.pathRadius,o=e.strokeWidth,s=e.style;return P.createElement("path",{className:t,style:Object.assign({},s,xM({pathRadius:i,dashRatio:r,counterClockwise:n})),d:SM({pathRadius:i,counterClockwise:n}),strokeWidth:o,fillOpacity:0})}function SM(e){var t=e.pathRadius,n=e.counterClockwise,r=t,i=n?1:0;return` + M `+ad+","+ld+` + m 0,-`+r+` + a `+r+","+r+" "+i+" 1 1 0,"+2*r+` + a `+r+","+r+" "+i+" 1 1 0,-"+2*r+` + `}function xM(e){var t=e.counterClockwise,n=e.dashRatio,r=e.pathRadius,i=Math.PI*2*r,o=(1-n)*i;return{strokeDasharray:i+"px "+i+"px",strokeDashoffset:(t?-o:o)+"px"}}var PM=function(e){vM(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getBackgroundPadding=function(){return this.props.background?this.props.backgroundPadding:0},t.prototype.getPathRadius=function(){return mv-this.props.strokeWidth/2-this.getBackgroundPadding()},t.prototype.getPathRatio=function(){var n=this.props,r=n.value,i=n.minValue,o=n.maxValue,s=Math.min(Math.max(r,i),o);return(s-i)/(o-i)},t.prototype.render=function(){var n=this.props,r=n.circleRatio,i=n.className,o=n.classes,s=n.counterClockwise,a=n.styles,l=n.strokeWidth,u=n.text,c=this.getPathRadius(),f=this.getPathRatio();return P.createElement("svg",{className:o.root+" "+i,style:a.root,viewBox:"0 0 "+gM+" "+wM,"data-test-id":"CircularProgressbar"},this.props.background?P.createElement("circle",{className:o.background,style:a.background,cx:ad,cy:ld,r:mv}):null,P.createElement(yv,{className:o.trail,counterClockwise:s,dashRatio:r,pathRadius:c,strokeWidth:l,style:a.trail}),P.createElement(yv,{className:o.path,counterClockwise:s,dashRatio:f*r,pathRadius:c,strokeWidth:l,style:a.path}),u?P.createElement("text",{className:o.text,style:a.text,x:ad,y:ld},u):null)},t.defaultProps={background:!1,backgroundPadding:0,circleRatio:1,classes:{root:"CircularProgressbar",trail:"CircularProgressbar-trail",path:"CircularProgressbar-path",text:"CircularProgressbar-text",background:"CircularProgressbar-background"},counterClockwise:!1,className:"",maxValue:100,minValue:0,strokeWidth:8,styles:{root:{},trail:{},path:{},text:{},background:{}},text:""},t}(P.Component);function bM(e){var t=e.rotation,n=e.strokeLinecap,r=e.textColor,i=e.textSize,o=e.pathColor,s=e.pathTransition,a=e.pathTransitionDuration,l=e.trailColor,u=e.backgroundColor,c=t==null?void 0:"rotate("+t+"turn)",f=t==null?void 0:"center center";return{root:{},path:ca({stroke:o,strokeLinecap:n,transform:c,transformOrigin:f,transition:s,transitionDuration:a==null?void 0:a+"s"}),trail:ca({stroke:l,strokeLinecap:n,transform:c,transformOrigin:f}),text:ca({fill:r,fontSize:i}),background:ca({fill:u})}}function ca(e){return Object.keys(e).forEach(function(t){e[t]==null&&delete e[t]}),e}const _M="_rating_13i4w_1",EM="_rating_card_13i4w_23",vv={rating:_M,rating_card:EM,"rating_single-movie":"_rating_single-movie_13i4w_34","CircularProgressbar-text":"_CircularProgressbar-text_13i4w_48"},CM=({rating:e,classname:t})=>b.jsx("div",{className:`${vv.rating} ${vv[t]}`,children:b.jsx(PM,{maxValue:10,styles:bM({pathColor:e<5?"red":e<7?"orange":"green"}),text:e,value:e})}),OM="/assets/loading-4e7d8d5a.gif",RM="/assets/no-poster-bd0e9dff.webp",TM="_poster_gh22o_1",kM="_card_gh22o_30",jM="_card_flex_gh22o_39",DM="_rating_card_gh22o_97",MM="_text_gh22o_107",AM="_title_gh22o_114",LM="_date_gh22o_129",li={poster:TM,card:kM,card_flex:jM,rating_card:DM,text:MM,title:AM,date:LM},gS=P.memo(({data:e,endpoint:t,classnameCard:n="card_flex"})=>{gS.displayName="VideoCard";const{movieType:r}=gh(),{id:i,poster_path:o,media_type:s,vote_average:a,genre_ids:l,title:u,name:c,release_date:f,first_air_date:d}=e,h=ah(g=>{var m;return(m=g.urlBaseForImages.url)==null?void 0:m.poster}),[p,v]=P.useState(OM),_=P.useMemo(()=>o?h&&`${h}${o}`:RM,[h,o]);return P.useEffect(()=>{v(_)},[_,e]),b.jsxs("li",{className:`${li.card} ${li[n]}`,children:[b.jsxs("div",{className:li.poster,children:[b.jsx(lr,{className:"link",to:`/${s||t||r}/${i}`}),b.jsx(mS,{className:"poster_img",src:p}),b.jsx(CM,{classname:"rating_card",rating:a==null?void 0:a.toFixed(1)})]}),b.jsxs("div",{className:li.text,children:[b.jsx("span",{className:li.title,children:u||c}),b.jsx(yM,{classname:"genres_card",genresMovie:(l==null?void 0:l.slice(0,2))||[]}),b.jsx("span",{className:li.date,children:dM(f||d).format("MMM D, YYYY")})]})]},i)}),NM=({dataList:e,endpointCard:t,classnameCard:n})=>b.jsx(b.Fragment,{children:e==null?void 0:e.map((r,i)=>b.jsx(gS,{classnameCard:n,data:r,endpoint:t},i))}),FM=P.memo(e=>b.jsx(NM,{...e})),$M=cM(FM),IM=({title:e,keyApi:t,endpoints:n=[],tabsNames:r=[],classname:i})=>{const{movieType:o,id:s}=gh(),[a,l]=P.useState(""),{endpoint:u,onTabChange:c}=OD(n);let{data:f,status:d,isError:h,error:p}=yS()[t](...a);return P.useEffect(()=>{(()=>{l(r.length?u:[o,s])})()},[o,s,u,r.length]),b.jsxs(ui,{error:p,isError:h,title:e,children:[b.jsx(UD,{classnameCard:i,isLoading:d!=="success",tabsNames:r}),b.jsx($M,{data:f==null?void 0:f.results,dataList:f==null?void 0:f.results,endpoint:u,endpointCard:u[0],tabsNames:r,title:e,onTabChange:c})]})},VM=[{title:"Trending",keyApi:"useTrending",endpoints:["day","week"],tabsNames:["Day","Week"]},{title:"Popular",keyApi:"usePopular",endpoints:["movie","tv"],tabsNames:["Movies","TV Shows"]},{title:"Top rated",keyApi:"useTopRated",endpoints:["movie","tv"],tabsNames:["Movies","TV Shows"]}],BM=()=>b.jsx(b.Fragment,{children:VM.map(e=>b.jsx(IM,{...e},e.keyApi))}),UM=()=>b.jsxs("div",{children:[b.jsx(CD,{}),b.jsx(BM,{})]}),zM="_wrapper_16gqh_1",WM="_loader_16gqh_6",HM="_animloader_16gqh_1",gv={wrapper:zM,loader:WM,animloader:HM},Eo=()=>b.jsx("div",{className:gv.wrapper,children:b.jsx("span",{className:gv.loader})}),QM=P.lazy(()=>Os(()=>import("./DiscoverVideosPage-ec13bc9f.js"),["assets/DiscoverVideosPage-ec13bc9f.js","assets/index-04924070.js","assets/index-b5b21cf7.css","assets/index-d98d5432.js","assets/index-205ae9b3.css","assets/DiscoverVideosPage-426a6f64.css"])),qM=P.lazy(()=>Os(()=>import("./MovieSinglePage-5dc11257.js"),["assets/MovieSinglePage-5dc11257.js","assets/avatar-26fbfa6a.js","assets/MovieSinglePage-b7c16fe2.css"])),KM=P.lazy(()=>Os(()=>import("./PersonPage-c2261f20.js"),["assets/PersonPage-c2261f20.js","assets/index-d98d5432.js","assets/index-205ae9b3.css","assets/avatar-26fbfa6a.js","assets/PersonPage-c03d0b99.css"])),GM=P.lazy(()=>Os(()=>import("./SearchPage-6ff790d9.js"),["assets/SearchPage-6ff790d9.js","assets/index-04924070.js","assets/index-b5b21cf7.css","assets/SearchPage-85b80dd2.css"])),YM=P.lazy(()=>Os(()=>import("./NotFoundPage-d6e1b37b.js"),[])),XM=jE([{path:"/",element:b.jsx(hD,{}),children:[{path:"/",element:b.jsx(UM,{}),errorElement:b.jsx(ui,{})},{path:"search/:query",element:b.jsx(P.Suspense,{fallback:b.jsx(Eo,{}),children:b.jsx(GM,{})}),errorElement:b.jsx(ui,{})},{path:":movieType/:id",element:b.jsx(P.Suspense,{fallback:b.jsx(Eo,{}),children:b.jsx(qM,{})}),errorElement:b.jsx(ui,{})},{path:"person/:id",element:b.jsx(P.Suspense,{fallback:b.jsx(Eo,{}),children:b.jsx(KM,{})}),errorElement:b.jsx(ui,{})},{path:"discover/:movieType",element:b.jsx(P.Suspense,{fallback:b.jsx(Eo,{}),children:b.jsx(QM,{})}),errorElement:b.jsx(ui,{})},{path:"*",element:b.jsx(P.Suspense,{fallback:b.jsx(Eo,{}),children:b.jsx(YM,{})})}]}],{basename:"/movix"}),JM=CC({reducer:{urlBaseForImages:sR,genres:rR}}),ZM=new db({defaultOptions:{queries:{staleTime:3e5,retry:3,keepPreviousData:!0}}});function eA(){return b.jsx(d_,{store:JM,children:b.jsx(gb,{client:ZM,children:b.jsx(PE,{router:XM})})})}jc.createRoot(document.getElementById("root")).render(b.jsx(Je.StrictMode,{children:b.jsx(eA,{})}));export{lM as A,rA as B,iA as C,oA as D,ui as E,gS as F,yM as G,mS as I,lr as L,qE as N,RM as P,Je as R,IM as S,NM as V,oC as _,Ef as a,ps as b,r_ as c,qP as d,Hm as e,pe as f,ud as g,sC as h,FS as i,Hi as j,gh as k,ah as l,b as m,tA as n,xS as o,Pn as p,dM as q,P as r,CM as s,nA as t,yS as u,VD as v,cM as w,vl as x,OD as y,UD as z}; diff --git a/assets/index-b5b21cf7.css b/assets/index-b5b21cf7.css new file mode 100644 index 0000000..8cb4723 --- /dev/null +++ b/assets/index-b5b21cf7.css @@ -0,0 +1 @@ +._wrapper-loader_rjoc5_1{grid-column:1/-1}._wrapper-loader_rjoc5_1 ._loader_rjoc5_4{display:block;margin:20px auto;width:16px;height:16px;position:relative;left:-32px;border-radius:50%;color:#fff;background:currentColor;box-shadow:32px 0,-32px 0,64px 0}._wrapper-loader_rjoc5_1 ._loader_rjoc5_4:after{content:"";position:absolute;left:-32px;top:0;width:16px;height:16px;border-radius:10px;background:#FF3D00;animation:_move_rjoc5_1 3s linear infinite alternate}@keyframes _move_rjoc5_1{0%,5%{left:-32px;width:16px}15%,20%{left:-32px;width:48px}30%,35%{left:0;width:16px}45%,50%{left:0;width:48px}60%,65%{left:32px;width:16px}75%,80%{left:32px;width:48px}95%,to{left:64px;width:16px}} diff --git a/assets/index-d8fd77ad.css b/assets/index-d8fd77ad.css new file mode 100644 index 0000000..58cf54d --- /dev/null +++ b/assets/index-d8fd77ad.css @@ -0,0 +1 @@ +._error-wrapper_13l6e_1{margin-top:100px;margin-bottom:60px}._error-wrapper_13l6e_1._non-padding_13l6e_5{padding:0}._error-wrapper_13l6e_1 ._error_13l6e_1{height:400px;margin:20px 0;width:100%;border-radius:15px;background-color:var(--bg-skeleton);color:#f0f8ff;display:flex;align-items:center;justify-content:center}._error-wrapper_13l6e_1 ._error__text_13l6e_19{display:flex;width:100%;align-items:center;justify-content:center;padding:10px;color:#961212;text-shadow:0 0 2px white;letter-spacing:5px;font-size:clamp(1rem,3vmax,3rem)}._main_7z31m_1{position:relative}._main_7z31m_1:before{content:"";position:absolute;inset:0;background:url(/assets/krasnaya-dorozhka-fon-6c70faa9.webp) center center/cover no-repeat;filter:blur(5px) grayscale(.5)}._main_7z31m_1 ._wrapper-page_7z31m_11{height:100%}._main_7z31m_1 ._wrapper-page_7z31m_11 h1{position:absolute;top:60%;left:50%;line-height:40px;transform:translate(-50%,-50%);width:80%;text-shadow:0 0 10px black;text-align:center;text-transform:uppercase;font-size:clamp(1.5rem,2vw,4rem)}._btn_u94b5_1{position:fixed;width:50px;height:50px;padding:10px;background-color:var(--main);border-radius:50%;z-index:20;box-shadow:0 0 2px 2px var(--secondary);transition:all .1s ease-in-out}._btn_u94b5_1:hover,._btn_u94b5_1:focus-visible{box-shadow:0 0 4px 4px #ff4500;scale:1.1}._btn_u94b5_1:active{box-shadow:0 0 4px 4px red;scale:.9}._btn_theme_u94b5_20{bottom:100px;right:20px}@media only screen and (min-width: 767px){._btn_theme_u94b5_20{right:50px}}._btn_up_u94b5_29{bottom:160px;right:20px;fill:var(--secondary)}@media only screen and (min-width: 767px){._btn_up_u94b5_29{right:50px}}._btn_u94b5_1 svg{scale:1.5}._close_u94b5_43{position:absolute;top:-50px;width:50px;height:50px;padding:5px;right:0;border-radius:50%;overflow:hidden;color:snow;cursor:pointer;transition:all .2s ease-in-out}._close_u94b5_43:before{content:"";position:absolute;inset:0}._close_u94b5_43:hover,._close_u94b5_43:focus-visible{color:#ff4500;scale:1.2}._close_u94b5_43:active{scale:.9;color:snow}._arrow_u94b5_70{fill:#fff}._btn-wrapper_u94b5_74{display:flex;position:relative}@container sort-btn-container (width < 440px){._btn-wrapper_u94b5_74{width:100%}}._sort-btn_u94b5_84{min-width:130px;height:50px;padding:0 10px 0 20px;display:grid;grid-auto-flow:column;background-color:var(--blue);color:snow;text-transform:uppercase;border-radius:30px;transition:all .1s ease-in-out;overflow:hidden;fill:var(--secondary)}@container sort-btn-container (width < 440px){._sort-btn_u94b5_84{justify-content:space-between;width:100%}}._sort-btn_inactive_u94b5_104{filter:grayscale(.8)}._sort-btn_clear_u94b5_107{padding:10px;display:flex;align-items:center;justify-content:center}._sort-btn_clear_u94b5_107>span{justify-content:center}._sort-btn__img_u94b5_116{position:relative;z-index:2;width:50px;height:40px;padding:10px}._footer_ehlkd_1{background-color:var(--bg-header-footer);padding:30px 0;position:relative}._footer_ehlkd_1 ._wrapper_ehlkd_6{display:flex;align-items:center;flex-direction:column}._footer_ehlkd_1 ._nav_ehlkd_11{display:grid;grid-template-columns:1fr 1fr;align-items:center;justify-content:center;justify-items:center;margin:0 auto 15px;gap:10px}@media only screen and (min-width: 320px){._footer_ehlkd_1 ._nav_ehlkd_11{list-style-type:none;display:flex;align-items:center;justify-content:space-between}}@media only screen and (min-width: 767px){._footer_ehlkd_1 ._nav_ehlkd_11{max-width:50%;margin-bottom:30px;gap:30px}}._footer_ehlkd_1 ._nav_ehlkd_11 ._nav__item_ehlkd_35{transition:all ease .3s;cursor:pointer;font-size:12px}._footer_ehlkd_1 ._nav_ehlkd_11 ._nav__item_ehlkd_35 a{white-space:nowrap;color:snow}@media only screen and (min-width: 767px){._footer_ehlkd_1 ._nav_ehlkd_11 ._nav__item_ehlkd_35 a{font-size:16px}}._footer_ehlkd_1 ._nav_ehlkd_11 ._nav__item_ehlkd_35 a:hover,._footer_ehlkd_1 ._nav_ehlkd_11 ._nav__item_ehlkd_35 a:focus-visible{color:var(--pink)}._footer_ehlkd_1 ._info_ehlkd_52{margin:0 auto 20px;font-size:12px;line-height:20px;text-align:center;max-width:800px}@media only screen and (min-width: 767px){._footer_ehlkd_1 ._info_ehlkd_52{font-size:14px;margin-bottom:30px}}._footer_ehlkd_1 ._social__icons_ehlkd_65{display:flex;align-items:center;justify-content:center;gap:20px}._footer_ehlkd_1 ._social__icons_ehlkd_65 ._icon_ehlkd_71{width:50px;height:50px;border-radius:50%;background-color:var(--main);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all ease .3s;outline:none}._footer_ehlkd_1 ._social__icons_ehlkd_65 ._icon_ehlkd_71:hover,._footer_ehlkd_1 ._social__icons_ehlkd_65 ._icon_ehlkd_71:focus-visible{scale:1.1;box-shadow:0 0 4px 4px #ff4500;color:var(--pink)}._footer_ehlkd_1 ._social__icons_ehlkd_65 ._icon_ehlkd_71 svg{scale:.5}._header_nctbf_1{position:fixed;width:100%;display:flex;align-items:center;height:auto;background-color:var(--bg-header-footer);z-index:25}._header_nctbf_1._top_nctbf_10{background-color:var(--bg-header-footer);backdrop-filter:blur(3.5px);-webkit-backdrop-filter:blur(3.5px)}._header_nctbf_1._show_nctbf_15{background-color:var(--bg-header-footer)}._header_nctbf_1._hide_nctbf_18{transform:translateY(-165px)}@media only screen and (min-width: 320px){._header_nctbf_1._hide_nctbf_18{transform:translateY(-60px)}}._header_nctbf_1._mobile__view_nctbf_26{background:var(--bg-header-footer)}._header_nctbf_1 ._nav_nctbf_29{display:flex;flex-direction:column;align-items:center;justify-content:space-between;margin:auto;gap:10px;padding:20px 0}@media only screen and (min-width: 320px){._header_nctbf_1 ._nav_nctbf_29{flex-direction:row;padding:10px 0}}._header_nctbf_1 ._nav_nctbf_29 ._logo_nctbf_44{position:relative;display:flex;height:50px;align-items:center;width:max-content;font-size:28px;background-image:var(--gradient);color:transparent;-webkit-background-clip:text;transition:all 1s ease-in-out}._header_nctbf_1 ._nav_nctbf_29 ._logo_nctbf_44:hover,._header_nctbf_1 ._nav_nctbf_29 ._logo_nctbf_44:focus-visible{background-image:var(--gradient-reverse)}._header_nctbf_1 ._nav_nctbf_29 ._logo_nctbf_44:hover:before,._header_nctbf_1 ._nav_nctbf_29 ._logo_nctbf_44:focus-visible:before{background-image:var(--gradient-reverse);width:100%;opacity:1}._header_nctbf_1 ._nav_nctbf_29 ._logo_nctbf_44:before{content:"";position:absolute;width:0;height:5px;bottom:5%;border-radius:20px;background-image:var(--gradient-reverse);opacity:0;transition:all .2s ease-in-out}._header_nctbf_1 ._nav_nctbf_29 ._logo_nctbf_44 img{height:50px}._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop_nctbf_78{display:none}@media only screen and (min-width: 479px){._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop_nctbf_78{display:flex;gap:20px}}._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop__item_nctbf_87{cursor:pointer}._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop__item_nctbf_87 ._nav__desktop__link_nctbf_90{padding:10px 0;display:block;position:relative;color:snow;text-transform:uppercase;transition:all .2s ease-in-out}._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop__item_nctbf_87 ._nav__desktop__link_nctbf_90:hover,._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop__item_nctbf_87 ._nav__desktop__link_nctbf_90:focus-visible{color:var(--pink)}._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop__item_nctbf_87 ._nav__desktop__link_nctbf_90:hover:before,._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop__item_nctbf_87 ._nav__desktop__link_nctbf_90:focus-visible:before{background-image:var(--gradient-reverse);width:100%;opacity:1}._header_nctbf_1 ._nav_nctbf_29 ._nav__desktop__item_nctbf_87 ._nav__desktop__link_nctbf_90:before{content:"";position:absolute;width:0;height:5px;bottom:0;border-radius:20px;background-image:var(--gradient-reverse);opacity:0;transition:all .2s ease-in-out}._header_nctbf_1 ._nav_nctbf_29 ._buttons__mobile__menu_nctbf_117{display:flex;gap:10px;align-items:center}@media only screen and (min-width: 479px){._header_nctbf_1 ._nav_nctbf_29 ._buttons__mobile__menu_nctbf_117{display:none}}._header_nctbf_1 ._list_nctbf_127{position:absolute;left:0;right:0;top:150px;margin:0;list-style-type:none;background-color:var(--main);box-shadow:0 6px 12px #0000002d}@media only screen and (min-width: 320px){._header_nctbf_1 ._list_nctbf_127{top:70px}}._header_nctbf_1 ._search_nctbf_142{padding:20px 10px;background-color:var(--bg-header-footer)}@media only screen and (min-width: 767px){._header_nctbf_1 ._search_nctbf_142{padding:30px 40px}}._header_nctbf_1 ._search_nctbf_142 ._form_nctbf_151{display:flex;gap:15px;flex-direction:column;align-items:center;width:100%}@media only screen and (min-width: 479px){._header_nctbf_1 ._search_nctbf_142 ._form_nctbf_151{flex-direction:row;align-items:start}}._header_nctbf_1 ._search_nctbf_142 ._form_nctbf_151 ._input_search_nctbf_164{position:relative;width:100%;height:50px;background-color:var(--secondary);outline:0;border:0;border-radius:30px;padding:0 15px;font-size:16px;color:var(--main)}._header_nctbf_1 ._search_nctbf_142 ._form_nctbf_151 ._input_search_nctbf_164:before{content:"";position:absolute;height:100%;right:0;width:50px;border-radius:30px 0 0 30px;background-color:var(--secondary)}._header_nctbf_1 ._nav__mobile_nctbf_185{display:flex;flex-direction:column;gap:10px;padding:20px 10px;height:auto;background-color:var(--bg-header-footer)}@media only screen and (min-width: 320px){._header_nctbf_1 ._nav__mobile_nctbf_185{height:150px}}._header_nctbf_1 ._nav__mobile__item_nctbf_198{color:snow;width:100%;font-size:20px;text-align:center;border-radius:12px;transition:all .2s ease-in-out;border-bottom:1px solid grey;border-top:1px solid grey}._header_nctbf_1 ._nav__mobile__item_nctbf_198 ._nav__link_nctbf_208{display:flex;align-items:center;justify-content:center;color:snow;width:100%;padding:15px 20px;border-radius:12px;transition:all .2s ease-in-out;text-transform:uppercase}._header_nctbf_1 ._nav__mobile__item_nctbf_198 ._nav__link_nctbf_208:hover,._header_nctbf_1 ._nav__mobile__item_nctbf_198 ._nav__link_nctbf_208:focus-visible{color:var(--pink);background-color:azure}._button_nctbf_117{position:relative;overflow:hidden;flex-shrink:0;width:50px;height:50px;border-radius:50%;padding:10px;background-color:#fff3;border:none;outline:none;cursor:pointer;transition:all .2s ease-in-out}._button_nctbf_117:before{content:"";position:absolute;inset:0}._button_nctbf_117:active{scale:.9}._button_nctbf_117:hover,._button_nctbf_117:focus-visible{background-image:var(--gradient-reverse)}._button_submit_nctbf_249{width:100px;border-radius:20px}._button_submit_nctbf_249>img{width:40px}@media only screen and (min-width: 479px){._button_submit_nctbf_249{width:50px;border-radius:50%}._button_submit_nctbf_249>img{width:100%}}.lazy-load-image-background.blur{filter:blur(15px)}.lazy-load-image-background.blur.lazy-load-image-loaded{filter:blur(0);transition:filter .3s}.lazy-load-image-background.blur>img{opacity:0}.lazy-load-image-background.blur.lazy-load-image-loaded>img{opacity:1;transition:opacity .3s}._banner__img_1cq81_1 .lazy-load-image-background{width:100%;height:100%}._banner__img_1cq81_1 .lazy-load-image-background img{width:100%;height:100%;object-fit:cover;object-position:center}._banner_1cq81_1{width:100%;height:450px;background-color:var(--main);display:flex;align-items:center;position:relative}@media only screen and (min-width: 767px){._banner_1cq81_1{height:700px}}._banner__img_1cq81_1{width:100%;height:100%;position:absolute;top:0;left:0;opacity:.8;overflow:hidden}._banner_1cq81_1 ._opacity-layer_1cq81_34{width:100%;height:220px;background:linear-gradient(180deg,rgba(4,21,45,0) 0%,var(--bg-body) 80%);position:absolute;bottom:0;left:0}._banner__content_1cq81_42{display:flex;flex-direction:column;align-items:center;color:var(--secondary);text-align:center;position:relative;width:100%;margin:0 auto;padding:20px;background-color:var(--bg-banner-text)}._banner__content_1cq81_42 ._title_1cq81_54{font-size:50px;font-weight:700;margin-bottom:10px}@media only screen and (min-width: 767px){._banner__content_1cq81_42 ._title_1cq81_54{margin-bottom:0;font-size:90px}}._banner__content_1cq81_42 ._subtitle_1cq81_65{font-size:18px;font-weight:500;margin-bottom:40px}@media only screen and (min-width: 767px){._banner__content_1cq81_42 ._subtitle_1cq81_65{font-size:24px}}._banner__content_1cq81_42 ._form_1cq81_75{position:relative;overflow:hidden;display:none;align-items:center;width:100%;max-width:800px;margin:auto;padding:5px;background:var(--gradient);border-radius:40px}@media only screen and (min-width: 479px){._banner__content_1cq81_42 ._form_1cq81_75{display:flex}}._banner__content_1cq81_42 ._form_1cq81_75 input{width:100%;height:50px;background-color:#dabe95;outline:0;border:0;border-radius:30px;padding:0 120px 0 15px;font-size:14px;color:#000}._banner__content_1cq81_42 ._form_1cq81_75 input:focus-visible{background-color:var(--secondary);color:var(--main)}._banner__content_1cq81_42 ._form_1cq81_75 input::placeholder{color:#000}._banner__content_1cq81_42 ._form_1cq81_75 input:focus-visible::placeholder{color:#757575}@media only screen and (min-width: 767px){._banner__content_1cq81_42 ._form_1cq81_75 input{width:100%;height:60px;font-size:20px;padding:0 170px 0 30px}}._banner__content_1cq81_42 ._form__btn_1cq81_121{position:absolute;right:6px;width:100px;height:46px;background-color:var(--blue);outline:0;border-radius:30px;font-size:16px;cursor:pointer;border:3px solid transparent;transition:all .3s ease-in-out;overflow:hidden}._banner__content_1cq81_42 ._form__btn_1cq81_121 span{position:relative;z-index:2;color:snow}._banner__content_1cq81_42 ._form__btn_1cq81_121:before{position:absolute;content:"";left:-100%;top:0;width:100%;height:100%;transition:all .2s ease-in-out;border-radius:30px}._banner__content_1cq81_42 ._form__btn_1cq81_121:hover,._banner__content_1cq81_42 ._form__btn_1cq81_121:focus-visible{border-color:var(--secondary)}._banner__content_1cq81_42 ._form__btn_1cq81_121:active{border-color:var(--secondary)}._banner__content_1cq81_42 ._form__btn_1cq81_121:active:before{width:100%;transform:translate(100%);background-color:#017000}@media only screen and (min-width: 767px){._banner__content_1cq81_42 ._form__btn_1cq81_121{width:150px;height:56px;font-size:18px}}._heading_kbkkg_1{display:flex;align-items:center;flex-direction:column;gap:20px;padding-top:20px;justify-content:space-between}@media only screen and (min-width: 479px){._heading_kbkkg_1{flex-direction:row;justify-content:space-between}}._heading_kbkkg_1 ._ellipse_kbkkg_15{display:flex;align-items:center;background-color:var(--bg-skeleton);border-radius:20px}._heading_kbkkg_1 ._title_kbkkg_21{height:36px;width:120px}._heading_kbkkg_1 ._switch_kbkkg_25{height:42px;width:208px}._slides_kbkkg_30{display:flex;gap:20px;padding:20px 0;overflow:hidden}@media only screen and (min-width: 479px){._slides_kbkkg_30{padding:40px 0}}._slides_kbkkg_30 ._skeletons__item_kbkkg_41{position:relative;width:100%;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0}._slides_kbkkg_30 ._skeletons__item_flex_kbkkg_50{flex-grow:1;max-width:216px}@media only screen and (min-width: 767px){._slides_kbkkg_30 ._skeletons__item_flex_kbkkg_50{max-width:314px}}@media only screen and (min-width: 1023px){._slides_kbkkg_30 ._skeletons__item_flex_kbkkg_50{max-width:274px}}._slides_kbkkg_30 ._skeletons__item_kbkkg_41 ._poster_kbkkg_64{border-radius:12px;width:100%;aspect-ratio:1/1.5;margin-bottom:30px}._slides_kbkkg_30 ._skeletons__item_kbkkg_41 ._text_kbkkg_70{display:flex;flex-direction:column}._slides_kbkkg_30 ._skeletons__item_kbkkg_41 ._text_kbkkg_70 ._title_kbkkg_21{width:100%;height:20px;margin-bottom:10px}._slides_kbkkg_30 ._skeletons__item_kbkkg_41 ._text_kbkkg_70 ._genre_kbkkg_79{width:100%;min-height:20px;margin-bottom:10px}._slides_kbkkg_30 ._skeletons__item_kbkkg_41 ._text_kbkkg_70 ._date_kbkkg_84{width:75%;height:20px}._slider-box_18uvb_1{padding-bottom:10px;position:relative}._slider-box_18uvb_1 ._heading_18uvb_5{display:flex;align-items:center;flex-direction:column;gap:20px;padding-top:20px;justify-content:space-between}@media only screen and (min-width: 479px){._slider-box_18uvb_1 ._heading_18uvb_5{align-items:center;flex-direction:row}}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19{position:relative}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._slider__title_18uvb_22{font-size:24px;color:var(--secondary);margin-bottom:20px;font-weight:400}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_18uvb_28{position:absolute;width:50px;height:50px;padding:10px;top:40%;display:none;border-radius:50%;transform:translateY(-50%);font-size:30px;fill:var(--main);z-index:3;transition:all .2s ease-in-out}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_18uvb_28:before{content:"";position:absolute;border-radius:50%;margin:5px;inset:0;z-index:-1;background-image:var(--gradient)}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_18uvb_28>svg{height:100%;width:100%}@media only screen and (min-width: 767px){._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_18uvb_28{display:block}}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_18uvb_28:disabled{opacity:.5}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_18uvb_28:hover,._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_18uvb_28:focus-visible{scale:1.2;opacity:1;fill:var(--secondary)}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_left_18uvb_68{left:30px}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_right_18uvb_71{right:30px}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._arrow_hidden_18uvb_74{display:none}._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._slides_18uvb_77{display:flex;gap:20px;overflow-y:hidden;padding:20px 5px;width:calc(100vw - 25px)}@media only screen and (min-width: 767px){._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._slides_18uvb_77{width:calc(100vw - 40px)}}@media only screen and (min-width: 1199px){._slider-box_18uvb_1 ._slider_18uvb_1 ._wrapper_18uvb_19 ._slides_18uvb_77{gap:20px;overflow:hidden;margin:0;padding:40px 5px;width:100%}}._tab_gypaj_1{padding:4px;width:fit-content;background-image:var(--gradient);border-radius:20px}._tab_gypaj_1 ._tab__wrapper_gypaj_7{position:relative;display:flex;align-items:center;justify-content:space-between;height:34px;width:200px;background-color:var(--main);border-radius:20px}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._tab__label_gypaj_17{position:relative;display:flex;align-items:center;justify-content:center;min-width:50%;height:34px;text-transform:uppercase;font-size:.9rem;border-radius:30px;color:var(--secondary);cursor:pointer;z-index:10;transition:color .3s ease-in-out}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._tab__label_gypaj_17._active_gypaj_32{color:snow}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._tab__label_gypaj_17 ._tab__item_gypaj_35{width:50%;text-align:center}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._tab__radio_gypaj_39{position:absolute;opacity:0;inset:0;border-radius:30px;cursor:pointer}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._tab__radio_gypaj_39:focus-visible+._tab__label-span_gypaj_46{border:4px solid orange}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._tab__label-span_gypaj_46{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:30px}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._slider_gypaj_57{position:absolute;background-color:var(--blue);left:0;width:50%;height:100%;border-radius:30px;cursor:pointer;transition:all .2s ease-in-out}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._slider_left_gypaj_67{transform:translate(0)}._tab_gypaj_1 ._tab__wrapper_gypaj_7 ._slider_right_gypaj_70{transform:translate(100%)}._genres-box_wrene_1{position:relative}._genres-box_wrene_1 ._genres_wrene_1{display:flex;flex-wrap:wrap;flex-grow:1;gap:10px;width:max-content;min-height:20px;align-content:flex-start}._genres-box_wrene_1 ._genres_wrene_1 ._genre_wrene_1{background-color:var(--pink);padding:5px;min-height:20px;font-size:12px;height:auto;border-radius:4px;color:snow;white-space:nowrap}._genres-box_wrene_1 ._genres_card_wrene_23{gap:5px;margin-bottom:10px}._genres-box_wrene_1 ._genres_single-movie_wrene_27{margin-bottom:20px;flex-flow:row wrap}._genres-box_wrene_1 ._genres_single-movie_wrene_27 ._genre_wrene_1{font-size:16px}._genres-box_wrene_1 ._genres-empty_wrene_34{width:60%;height:20px;margin-bottom:10px;background-color:gray;border-radius:12px}._genres-box_wrene_1 ._genres-tooltip_wrene_41{position:absolute;display:flex;align-items:center;top:0;left:0;max-width:100%}._genres-box_wrene_1 ._genres-tooltip_wrene_41 ._genres_wrene_1{margin:0}.CircularProgressbar{width:100%;vertical-align:middle}.CircularProgressbar .CircularProgressbar-path{stroke:#3e98c7;stroke-linecap:round;-webkit-transition:stroke-dashoffset .5s ease 0s;transition:stroke-dashoffset .5s ease 0s}.CircularProgressbar .CircularProgressbar-trail{stroke:#d6d6d6;stroke-linecap:round}.CircularProgressbar .CircularProgressbar-text{fill:#3e98c7;font-size:20px;dominant-baseline:middle;text-anchor:middle}.CircularProgressbar .CircularProgressbar-background{fill:#d6d6d6}.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-background{fill:#3e98c7}.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-text{fill:#fff}.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-path{stroke:#fff}.CircularProgressbar.CircularProgressbar-inverted .CircularProgressbar-trail{stroke:transparent}._rating_13i4w_1{position:relative;width:80px;height:80px;flex-shrink:0;background-color:var(--main);border-radius:50%;overflow:hidden;padding:2px}@media only screen and (min-width: 479px){._rating_13i4w_1{width:70px;height:70px}}@media only screen and (min-width: 1023px){._rating_13i4w_1{width:60px;height:60px}}._rating_card_13i4w_23{position:absolute;bottom:-20px;left:20px;background-color:var(--main)}._rating_card_13i4w_23:before{content:"";position:absolute;inset:0}._rating_single-movie_13i4w_34{position:static;width:60px;height:60px;padding:0;background-color:#041226}@media only screen and (min-width: 767px){._rating_single-movie_13i4w_34{max-width:90px;width:83px;height:83px}}._rating_single-movie_13i4w_34 ._CircularProgressbar-text_13i4w_48{fill:var(--secondary)}.CircularProgressbar .CircularProgressbar-text{font-size:26px}@media only screen and (min-width: 767px){.CircularProgressbar .CircularProgressbar-text{font-size:20px}}._poster_gh22o_1 span.lazy-load-image-background.blur{height:100%;position:absolute;width:100%;inset:0;filter:blur(0);border-radius:12px}._poster_gh22o_1 span.lazy-load-image-background.blur:after{content:"";position:absolute;display:block;color:var(--secondary);text-align:center;box-sizing:border-box;width:100%;padding:10px;top:50%;left:50%;transform:translate(-50%,-50%);will-change:transform}._poster_gh22o_1 span.lazy-load-image-background.blur img{position:relative;z-index:10;border-radius:12px;overflow:hidden}._card_gh22o_30{position:relative;width:100%;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0}._card_flex_gh22o_39{flex-grow:1;max-width:216px}@media only screen and (min-width: 767px){._card_flex_gh22o_39{max-width:314px}}@media only screen and (min-width: 1023px){._card_flex_gh22o_39{max-width:272px}}._card_gh22o_30 ._poster_gh22o_1{position:relative;width:100%;aspect-ratio:1/1.5;margin-bottom:30px;display:flex;align-items:flex-end;justify-content:space-between;border-radius:12px}._card_gh22o_30 ._poster_gh22o_1:before{content:"";position:absolute;border-radius:12px;inset:0;background:url(/assets/background_poster-8cb8a4ba.webp) center center/cover no-repeat;mix-blend-mode:exclusion}._card_gh22o_30 ._poster_gh22o_1 a{outline:none;z-index:2}._card_gh22o_30 ._poster_gh22o_1 a:before{content:"Go to the video page";position:absolute;inset:0;color:#f5f5f5;text-transform:uppercase;line-height:30px;padding:10%;text-align:center;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}._card_gh22o_30 ._poster_gh22o_1 a:hover:before,._card_gh22o_30 ._poster_gh22o_1 a:focus-visible:before{opacity:1;background-color:#000000b3;border-radius:12px;z-index:1}._card_gh22o_30 ._poster_gh22o_1 a:hover~._rating_card_gh22o_97:before,._card_gh22o_30 ._poster_gh22o_1 a:focus-visible~._rating_card_gh22o_97{background-color:#000000b3}._card_gh22o_30 ._poster_gh22o_1 a:hover~div:before,._card_gh22o_30 ._poster_gh22o_1:focus-visible~div:before{background-color:#000000b3}._card_gh22o_30 ._poster_gh22o_1 img{border-radius:12px;overflow:hidden}._card_gh22o_30 ._text_gh22o_107{color:var(--secondary);display:flex;flex-direction:column;flex-grow:1;padding:5px}._card_gh22o_30 ._text_gh22o_107 ._title_gh22o_114{font-size:24px;margin-bottom:10px;line-height:24px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}@media only screen and (min-width: 767px){._card_gh22o_30 ._text_gh22o_107 ._title_gh22o_114{font-size:20px}}._card_gh22o_30 ._text_gh22o_107 ._date_gh22o_129{font-size:14px}._wrapper_16gqh_1{display:flex;align-items:center;justify-content:center}._wrapper_16gqh_1 ._loader_16gqh_6{display:block;width:100px;height:100px;position:relative}._wrapper_16gqh_1 ._loader_16gqh_6:after,._wrapper_16gqh_1 ._loader_16gqh_6:before{content:"";box-sizing:border-box;width:100%;height:100%;border-radius:50%;background:var(--secondary);position:absolute;left:0;top:0;animation:_animloader_16gqh_1 2s linear infinite}._wrapper_16gqh_1 ._loader_16gqh_6:after{animation-delay:1s}@keyframes _animloader_16gqh_1{0%{transform:scale(0);opacity:1}to{transform:scale(1);opacity:0}}:root{font-family:Inter,Avenir,Helvetica,Arial,sans-serif;font-size:16px;line-height:1;font-weight:500;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;--main: #1d2329;--secondary: snow;--bg-body: var(--main);--bg-header-footer: #1f2833;--bg-skeleton: #0a2955;--bg-even-slider: var(--main);--bg-banner-text: rgba(0, 0, 0, .45);--text-person-name-span-color: #ec5f2b;--pink: #da2f68;--green: #076b3f;--blue: #1c2c93;--gradient: linear-gradient(98.37deg, #f89e00 .99%, #da2f68 100%);--gradient-reverse: linear-gradient(98.37deg, #da2f68 .99%, #f89e00 100%);--count-skeletons-grid: 2;--count-skeletons-flex: 2;--count-skeletons-actors: 3;--count-skeletons-trailers: 1;color-scheme:light dark}html{scroll-behavior:smooth}*{margin:0;padding:0;box-sizing:border-box}body{min-height:100vh;background-color:var(--bg-body)}body.overflow-hidden{overflow:hidden}#root{min-height:100dvh;display:grid;grid-template-rows:1fr auto}::-webkit-scrollbar{display:none}button{background:transparent;outline:none;border:none;cursor:pointer}img{width:100%;height:100%;object-fit:cover;object-position:center}a{text-decoration:none;color:var(--secondary)}ul{list-style:none}.wrapper{width:100%;max-width:1200px;margin:0 auto;padding:0 10px}@media only screen and (min-width: 767px){.wrapper{padding:0 20px}}.skeleton{position:relative;overflow:hidden;background-color:var(--bg-skeleton);border-radius:20px}.skeleton:after{position:absolute;top:0;right:0;bottom:0;left:0;transform:translate(-100%);background-image:linear-gradient(90deg,rgba(25,55,99,0) 0,rgba(25,55,99,.2) 20%,rgba(25,55,99,.5) 60%,rgba(25,55,99,0));animation:shimmer 2s infinite;content:""}@keyframes shimmer{to{transform:translate(100%)}}.link{position:absolute;inset:0;z-index:1}.title-article{text-transform:uppercase;font-size:24px;color:var(--secondary);font-weight:400}button,a,img{-webkit-user-select:none;user-select:none}.main{margin-top:170px}@media only screen and (min-width: 320px){.main{margin-top:100px}}.grid{display:grid;grid-template-columns:minmax(240px,1fr);align-items:center;margin:40px auto;gap:30px}@media only screen and (min-width: 479px){.grid{grid-template-columns:repeat(2,minmax(200px,1fr))}}@media only screen and (min-width: 767px){.grid{gap:15px;grid-template-columns:repeat(3,minmax(200px,1fr))}}@media only screen and (min-width: 1023px){.grid{grid-template-columns:repeat(4,minmax(200px,1fr))}}@media only screen and (min-width: 479px){:root{--count-skeletons-grid: 1;--count-skeletons-flex: 3;--count-skeletons-actors: 4}}@media only screen and (min-width: 639px){:root{--count-skeletons-grid: 4;--count-skeletons-actors: 6;--count-skeletons-trailers: 3}}@media only screen and (min-width: 767px){:root{--count-skeletons-grid: 6;--count-skeletons-flex: 3}}@media only screen and (min-width: 1023px){:root{--count-skeletons-grid: 8;--count-skeletons-flex: 4;--count-skeletons-trailers: 4}}[data-theme=light]{--main: snow;--secondary: #1d2329;--bg-body: #bccbde;--bg-header-footer: #48494b;--bg-banner-text: rgba(255, 255, 255, .4);--bg-skeleton: #acacb5;--bg-even-slider: #2aa57e47;--text-person-name-span-color: #136cb9;color-scheme:light}[data-theme=light] .skeleton:after{transform:translate(-100%);background-image:linear-gradient(90deg,rgba(106,106,110,0) 0,rgba(106,106,110,.2) 20%,rgba(110,110,112,.5) 80%,rgba(106,106,110,0))} diff --git a/assets/index-d98d5432.js b/assets/index-d98d5432.js new file mode 100644 index 0000000..9c5e664 --- /dev/null +++ b/assets/index-d98d5432.js @@ -0,0 +1 @@ +import{m as a}from"./index-6d8ecf0d.js";const o={"btn-gradient":"_btn-gradient_1smtk_1"},e=({classname:t,children:n,...s})=>a.jsx("button",{className:`${o["btn-gradient"]} ${t}`,...s,children:n});export{e as B}; diff --git a/assets/krasnaya-dorozhka-fon-6c70faa9.webp b/assets/krasnaya-dorozhka-fon-6c70faa9.webp new file mode 100644 index 0000000..76157d8 Binary files /dev/null and b/assets/krasnaya-dorozhka-fon-6c70faa9.webp differ diff --git a/assets/loading-4e7d8d5a.gif b/assets/loading-4e7d8d5a.gif new file mode 100644 index 0000000..8676212 Binary files /dev/null and b/assets/loading-4e7d8d5a.gif differ diff --git a/assets/no-poster-bd0e9dff.webp b/assets/no-poster-bd0e9dff.webp new file mode 100644 index 0000000..41b7a3a Binary files /dev/null and b/assets/no-poster-bd0e9dff.webp differ diff --git a/assets/not_image-4020c0b8.svg b/assets/not_image-4020c0b8.svg new file mode 100644 index 0000000..186145f --- /dev/null +++ b/assets/not_image-4020c0b8.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/search-f9f75985.svg b/assets/search-f9f75985.svg new file mode 100644 index 0000000..ac410d4 --- /dev/null +++ b/assets/search-f9f75985.svg @@ -0,0 +1,3 @@ + + + diff --git a/index.html b/index.html new file mode 100644 index 0000000..e7472bc --- /dev/null +++ b/index.html @@ -0,0 +1,23 @@ + + + + + + + + + + Movies App + + + + + +
+ + + diff --git a/movix-logo.png b/movix-logo.png new file mode 100644 index 0000000..c43b9f4 Binary files /dev/null and b/movix-logo.png differ