From 21e6a237e660023e4ec4e8997f75c833974749b6 Mon Sep 17 00:00:00 2001 From: Konst Date: Sun, 28 Jul 2024 22:49:01 +0300 Subject: [PATCH] Updates --- ...4bb6.js => DiscoverVideosPage-6dccba01.js} | 2 +- assets/DiscoverVideosPage-6f89ee68.css | 1 + assets/DiscoverVideosPage-e00dbed3.css | 1 - assets/MovieSinglePage-7a4da260.css | 1 - assets/MovieSinglePage-899146a8.css | 1 + ...bfeca9a.js => MovieSinglePage-cb99ed1d.js} | 12 +++--- assets/NotFoundPage-203d4425.js | 1 + assets/NotFoundPage-88b6d385.js | 1 - assets/PersonPage-1b00450a.js | 1 - assets/PersonPage-4f494bc7.js | 1 + assets/PersonPage-706301fa.css | 1 - assets/PersonPage-b8950eab.css | 1 + ...age-5b99ba14.js => SearchPage-1ae5dd5b.js} | 2 +- ...{avatar-7ac2a537.js => avatar-342a0f5c.js} | 2 +- assets/index-6e67b54d.css | 1 - assets/index-8036bca9.css | 1 + assets/index-80f42cfd.js | 1 - .../{index-7d94188f.js => index-82ab8266.js} | 2 +- assets/index-ab11bb85.css | 1 - .../{index-3c34359a.js => index-cde6f15b.js} | 38 +++++++++---------- assets/index-e1983a32.js | 1 + assets/index-eb53356e.css | 1 + index.html | 4 +- 23 files changed, 39 insertions(+), 39 deletions(-) rename assets/{DiscoverVideosPage-ee584bb6.js => DiscoverVideosPage-6dccba01.js} (99%) create mode 100644 assets/DiscoverVideosPage-6f89ee68.css delete mode 100644 assets/DiscoverVideosPage-e00dbed3.css delete mode 100644 assets/MovieSinglePage-7a4da260.css create mode 100644 assets/MovieSinglePage-899146a8.css rename assets/{MovieSinglePage-8bfeca9a.js => MovieSinglePage-cb99ed1d.js} (60%) create mode 100644 assets/NotFoundPage-203d4425.js delete mode 100644 assets/NotFoundPage-88b6d385.js delete mode 100644 assets/PersonPage-1b00450a.js create mode 100644 assets/PersonPage-4f494bc7.js delete mode 100644 assets/PersonPage-706301fa.css create mode 100644 assets/PersonPage-b8950eab.css rename assets/{SearchPage-5b99ba14.js => SearchPage-1ae5dd5b.js} (89%) rename assets/{avatar-7ac2a537.js => avatar-342a0f5c.js} (98%) delete mode 100644 assets/index-6e67b54d.css create mode 100644 assets/index-8036bca9.css delete mode 100644 assets/index-80f42cfd.js rename assets/{index-7d94188f.js => index-82ab8266.js} (99%) delete mode 100644 assets/index-ab11bb85.css rename assets/{index-3c34359a.js => index-cde6f15b.js} (53%) create mode 100644 assets/index-e1983a32.js create mode 100644 assets/index-eb53356e.css diff --git a/assets/DiscoverVideosPage-ee584bb6.js b/assets/DiscoverVideosPage-6dccba01.js similarity index 99% rename from assets/DiscoverVideosPage-ee584bb6.js rename to assets/DiscoverVideosPage-6dccba01.js index a9e028b..8dc65bb 100644 --- a/assets/DiscoverVideosPage-ee584bb6.js +++ b/assets/DiscoverVideosPage-6dccba01.js @@ -1,4 +1,4 @@ -import{r as l,u as nu,_ as ru,a as au,b as qe,c as qr,g as ou,R as Lt,d as fs,e as iu,f as _,h as Fe,i as X,j as ds,k as vs,l as hs,m as su,n as ht,E as lu}from"./index-3c34359a.js";import{I as uu}from"./index-7d94188f.js";import{B as cu}from"./index-80f42cfd.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_khwo0_11",Ut={"wrapper-discover":"_wrapper-discover_khwo0_1","wrapper-discover_show":"_wrapper-discover_show_khwo0_4","select-group":"_select-group_khwo0_11","select-group-hidden":"_select-group-hidden_khwo0_34",select:du,"sort-popup":"_sort-popup_khwo0_111","sort-popup_btn":"_sort-popup_btn_khwo0_116","title-article_center":"_title-article_center_khwo0_136"},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(Ut["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 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 qr(e)}function Cr(e){var t=hu();return function(){var r=Gr(e),a;if(t){var o=Gr(this).constructor;a=Reflect.construct(r,arguments,o)}else a=r.apply(this,arguments);return gu(this,a)}}var gs={exports:{}};/*! +import{r as l,u as nu,_ as ru,a as au,b as qe,c as qr,g as ou,R as Lt,d as fs,e as iu,f as _,h as Fe,i as X,j as ds,k as vs,l as hs,m as su,n as ht,E as lu}from"./index-cde6f15b.js";import{I as uu}from"./index-82ab8266.js";import{B as cu}from"./index-e1983a32.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_ssj72_11",Ut={"wrapper-discover":"_wrapper-discover_ssj72_1","wrapper-discover_show":"_wrapper-discover_show_ssj72_4","select-group":"_select-group_ssj72_11","select-group-hidden":"_select-group-hidden_ssj72_34",select:du,"sort-popup":"_sort-popup_ssj72_121","sort-popup_btn":"_sort-popup_btn_ssj72_126","title-article_center":"_title-article_center_ssj72_146"},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(Ut["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 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 qr(e)}function Cr(e){var t=hu();return function(){var r=Gr(e),a;if(t){var o=Gr(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 diff --git a/assets/DiscoverVideosPage-6f89ee68.css b/assets/DiscoverVideosPage-6f89ee68.css new file mode 100644 index 0000000..5957876 --- /dev/null +++ b/assets/DiscoverVideosPage-6f89ee68.css @@ -0,0 +1 @@ +._wrapper-discover_ssj72_1{position:relative}._wrapper-discover_show_ssj72_4:before{position:absolute;content:"";inset:0;background-color:transparent;z-index:2}._wrapper-discover_ssj72_1 ._select-group_ssj72_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_ssj72_1 ._select-group_ssj72_11{margin-top:20px;position:static;display:flex;gap:15px;flex-direction:row;justify-content:flex-end}}._wrapper-discover_ssj72_1 ._select-group-hidden_ssj72_34{visibility:hidden;height:0;opacity:0}@media only screen and (min-width: 639px){._wrapper-discover_ssj72_1 ._select-group-hidden_ssj72_34{visibility:visible;height:auto;display:flex;opacity:1}}._wrapper-discover_ssj72_1 ._select-group_ssj72_11 ._select_ssj72_11{width:100%;border-radius:20px;height:40px}@media only screen and (min-width: 639px){._wrapper-discover_ssj72_1 ._select-group_ssj72_11 ._select_ssj72_11{width:50%}}@media only screen and (min-width: 1023px){._wrapper-discover_ssj72_1 ._select-group_ssj72_11 ._select_ssj72_11{width:100%}}._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector{border-radius:20px;height:100%;display:flex;align-items:center;background-color:#dabe95;font-size:16px}@media (hover: hover){._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector:hover{background-color:snow}}@media (hover: none){._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector:active{background-color:snow}}._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector:focus-visible,._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector:focus-within{background-color:snow}._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector .ant-select-selection-search{display:flex;align-items:center}._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector .ant-select-selection-search input{font-size:16px}._select-group_ssj72_11 ._select_ssj72_11 .ant-select-selector .ant-select-selection-placeholder,._select-group_ssj72_11 ._select_ssj72_11 .ant-select-arrow{color:#000}._select-group_ssj72_11 ._select_ssj72_11 .ant-select-clear{border-radius:50%}._select-group_ssj72_11 ._select_ssj72_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_ssj72_121{width:fit-content;position:relative;display:flex}._sort-popup_ssj72_121 ._sort-popup_btn_ssj72_126{position:relative;width:120px;margin-top:20px;background:var(--bg-body);color:var(--secondary);border:1px solid gray}._sort-popup_ssj72_121 ._sort-popup_btn_ssj72_126>span{fill:var(--secondary)}._sort-popup_ssj72_121 ._sort-popup_btn_ssj72_126>span>svg{width:25%}@media only screen and (min-width: 639px){._sort-popup_ssj72_121 ._sort-popup_btn_ssj72_126{display:none}}._title-article_center_ssj72_146{text-align:center;padding-top:100px;font-size:clamp(24px,3vw,50px)} diff --git a/assets/DiscoverVideosPage-e00dbed3.css b/assets/DiscoverVideosPage-e00dbed3.css deleted file mode 100644 index b7ea9c7..0000000 --- a/assets/DiscoverVideosPage-e00dbed3.css +++ /dev/null @@ -1 +0,0 @@ -._wrapper-discover_khwo0_1{position:relative}._wrapper-discover_show_khwo0_4:before{position:absolute;content:"";inset:0;background-color:transparent;z-index:2}._wrapper-discover_khwo0_1 ._select-group_khwo0_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_khwo0_1 ._select-group_khwo0_11{margin-top:20px;position:static;display:flex;gap:15px;flex-direction:row;justify-content:flex-end}}._wrapper-discover_khwo0_1 ._select-group-hidden_khwo0_34{visibility:hidden;height:0;opacity:0}@media only screen and (min-width: 639px){._wrapper-discover_khwo0_1 ._select-group-hidden_khwo0_34{visibility:visible;height:auto;display:flex;opacity:1}}._wrapper-discover_khwo0_1 ._select-group_khwo0_11 ._select_khwo0_11{width:100%;border-radius:20px;height:40px}@media only screen and (min-width: 639px){._wrapper-discover_khwo0_1 ._select-group_khwo0_11 ._select_khwo0_11{width:50%}}@media only screen and (min-width: 1023px){._wrapper-discover_khwo0_1 ._select-group_khwo0_11 ._select_khwo0_11{width:100%}}._select-group_khwo0_11 ._select_khwo0_11 .ant-select-selector{border-radius:20px;height:100%;display:flex;align-items:center;background-color:#dabe95;font-size:16px}._select-group_khwo0_11 ._select_khwo0_11 .ant-select-selector:hover,._select-group_khwo0_11 ._select_khwo0_11 .ant-select-selector:focus-visible,._select-group_khwo0_11 ._select_khwo0_11 .ant-select-selector:focus-within{background-color:snow}._select-group_khwo0_11 ._select_khwo0_11 .ant-select-selector .ant-select-selection-search{display:flex;align-items:center}._select-group_khwo0_11 ._select_khwo0_11 .ant-select-selector .ant-select-selection-search input{font-size:16px}._select-group_khwo0_11 ._select_khwo0_11 .ant-select-selector .ant-select-selection-placeholder,._select-group_khwo0_11 ._select_khwo0_11 .ant-select-arrow{color:#000}._select-group_khwo0_11 ._select_khwo0_11 .ant-select-clear{border-radius:50%}._select-group_khwo0_11 ._select_khwo0_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_khwo0_111{width:fit-content;position:relative;display:flex}._sort-popup_khwo0_111 ._sort-popup_btn_khwo0_116{position:relative;width:120px;margin-top:20px;background:var(--bg-body);color:var(--secondary);border:1px solid gray}._sort-popup_khwo0_111 ._sort-popup_btn_khwo0_116>span{fill:var(--secondary)}._sort-popup_khwo0_111 ._sort-popup_btn_khwo0_116>span>svg{width:25%}@media only screen and (min-width: 639px){._sort-popup_khwo0_111 ._sort-popup_btn_khwo0_116{display:none}}._title-article_center_khwo0_136{text-align:center;padding-top:100px;font-size:clamp(24px,3vw,50px)} diff --git a/assets/MovieSinglePage-7a4da260.css b/assets/MovieSinglePage-7a4da260.css deleted file mode 100644 index aa2f78f..0000000 --- a/assets/MovieSinglePage-7a4da260.css +++ /dev/null @@ -1 +0,0 @@ -._video_wgdjx_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:100}._video_wgdjx_1 ._opacity-layer_wgdjx_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_wgdjx_1 ._player_wgdjx_27{position:relative;width:800px;aspect-ratio:16/9;transform:scale(.2);transition:transform .25s}._video_wgdjx_1 ._player_wgdjx_27:before{content:"Loading...";position:absolute;inset:0;display:flex;justify-content:center;align-items:center;font-size:28px;background-color:var(--main);color:var(--secondary);z-index:-1}._video_wgdjx_1._visible_wgdjx_46{opacity:1;visibility:visible}._video_wgdjx_1._visible_wgdjx_46 ._opacity-layer_wgdjx_15{opacity:1}._video_wgdjx_1._visible_wgdjx_46 ._player_wgdjx_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_k2wef_1{color:var(--secondary)}._about_k2wef_1 ._info-group_k2wef_4{display:flex;flex-wrap:wrap;width:100%}._about_k2wef_1 ._company_k2wef_9{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0;align-items:center}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16{display:flex;height:50px;flex-shrink:0;background:#c6cacc;border-radius:15px}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 span{display:flex;align-items:center;background:aliceblue;border-radius:15px}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 span img{width:100px;height:100%;padding:5px 10px;object-fit:contain}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 ._icon-placeholder_k2wef_35{height:100%;display:flex;justify-content:center;align-items:center;flex-shrink:0;background:aliceblue;border-radius:15px;color:#000}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 ._icon-placeholder_k2wef_35 svg{width:100%;height:100%}._about_k2wef_1 ._profit_k2wef_49{display:flex;flex-wrap:wrap;gap:20px;border-bottom:1px solid rgba(255,255,255,.1);padding:10px 0}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__title_k2wef_56{margin-right:10px}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__amount_k2wef_59{white-space:nowrap}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__amount_deficit_k2wef_62{color:#d93030}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__amount_profit_k2wef_65{color:#149687}._item__amount_budget_k2wef_69{color:gold;text-shadow:1px 1px 1px black;padding:3px 5px}[data-theme=light] ._item__amount_budget_k2wef_69{background:rgba(0,0,0,.5);border-radius:10px}._details_178x9_1{position:relative;width:100%;background-color:var(--main);padding-top:100px;padding-bottom:50px}@media only screen and (min-width: 639px){._details_178x9_1{margin-bottom:0;padding-top:120px;height:calc(100% + 220px);min-height:1000px}}._details_178x9_1 ._backdrop_178x9_16{width:100%;height:100%;position:absolute;inset:0;opacity:.25;overflow:hidden}._details_178x9_1 ._backdrop_178x9_16>span{width:100%;height:100%}._details_178x9_1 ._backdrop_178x9_16>span img{width:100%;height:100%;object-fit:cover;object-position:center}._details_178x9_1 ._opacity-layer_178x9_34{width:100%;height:100px;background:linear-gradient(180deg,rgba(4,21,45,0) 0%,var(--bg-body) 80%);position:absolute;bottom:0;left:0}@media only screen and (min-width: 639px){._details_178x9_1 ._opacity-layer_178x9_34{height:250px}}._details_178x9_1 ._content_178x9_47{display:flex;flex-direction:column;gap:30px}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52{margin-top:40px;display:flex;position:relative;flex-direction:column;gap:25px}@media only screen and (min-width: 767px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52{flex-direction:row}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._poster_178x9_64{flex-shrink:0}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._poster_178x9_64 ._poster__img_178x9_67{width:100%;display:block;border-radius:12px}@media only screen and (min-width: 639px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._poster_178x9_64 ._poster__img_178x9_67{max-width:350px}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77{color:var(--secondary)}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80{font-size:28px;line-height:40px}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80 a{display:block;width:fit-content}@media only screen and (min-width: 767px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80{font-size:34px;line-height:44px}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80 ._subtitle_178x9_94{display:block;font-size:16px;line-height:24px;margin-bottom:15px;font-style:italic}@media only screen and (min-width: 639px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80 ._subtitle_178x9_94{font-size:20px;line-height:28px}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._row_178x9_107{display:flex;align-items:center;gap:25px;margin-bottom:20px}._details_178x9_1 ._content_178x9_47 ._overview_178x9_113{color:var(--secondary);margin-bottom:10px}._details_178x9_1 ._content_178x9_47 ._overview_178x9_113 ._heading_178x9_117{font-size:28px;margin-bottom:10px}._details_178x9_1 ._content_178x9_47 ._overview_178x9_113 ._description_178x9_121{padding-top:15px;font-size:1rem;line-height:30px;text-align:justify}._details_178x9_1 ._skeleton_178x9_127{position:relative;margin-top:40px}._details_178x9_1 ._skeleton_178x9_127 ._content-skeleton_178x9_131{display:flex;flex-direction:column;gap:25px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136{margin:0;display:flex;position:relative;flex-direction:column;gap:25px}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136{flex-direction:row}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._left_178x9_148{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_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._left_178x9_148{width:40%;max-height:700px;aspect-ratio:1/1.5}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164{width:100%;display:flex;flex-direction:column;gap:15px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107{width:100%;height:25px;border-radius:50px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._title_178x9_80{width:75%;height:70px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._genres_178x9_179{width:50%}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._overview_178x9_113{width:30%;height:40px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(odd){width:60%}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(odd){width:40%}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(even){width:70%}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(even){width:60%}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:last-child{width:90%;height:60px}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:last-child{width:70%}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._group_178x9_211{display:inline-flex;flex-grow:0;align-items:center;gap:20px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._group_178x9_211>._circle_178x9_217{border-radius:50%;height:60px;width:60px}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._group_178x9_211>._circle_178x9_217{width:80px;height:80px}}._details_178x9_1 ._skeleton_178x9_127 ._describe_178x9_77{display:flex;flex-direction:column;gap:20px}._details_178x9_1 ._skeleton_178x9_127 ._describe__title_178x9_233{height:40px;width:150px;border-right:30px}._details_178x9_1 ._skeleton_178x9_127 ._describe__text_178x9_238{width:100%;height:150px}._poster_155qv_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_155qv_1:before{content:"Wait...";position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:var(--secondary);font-size:28px}._poster_155qv_1>span{height:100%;width:100%}._poster_155qv_1>span img{width:100%}@media only screen and (min-width: 767px){._poster_155qv_1{width:40%;max-height:700px;aspect-ratio:1/1.5}}._poster_155qv_1 ._poster__img_155qv_36{width:100%;display:block;border-radius:12px}._item_dzlp8_1{position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;width:175px;color:var(--secondary)}._item_dzlp8_1 ._avatar_dzlp8_11{width:180px;height:200px;margin-bottom:25px;border-radius:20px;overflow:hidden;border:2px solid snow;background-color:var(--bg-skeleton);filter:blur(10px)}._item_dzlp8_1 ._avatar_loaded_dzlp8_21{background:none;filter:none}@media only screen and (min-width: 639px){._item_dzlp8_1 ._avatar_dzlp8_11{width:175px;height:175px;border-radius:50%}}._item_dzlp8_1 ._avatar_dzlp8_11>span{width:100%;height:100%}._item_dzlp8_1 ._avatar_dzlp8_11 img{width:100%;height:100%;object-fit:cover;display:block}._item_dzlp8_1 ._name_dzlp8_42{font-size:14px;line-height:20px;font-weight:600;flex-grow:1}@media only screen and (min-width: 767px){._item_dzlp8_1 ._name_dzlp8_42{font-size:18px;line-height:24px}}._item_dzlp8_1 ._character_dzlp8_54{font-size:14px;line-height:20px;flex-grow:1}._item_dzlp8_1 ._character_dzlp8_54 span{display:block;padding-right:5px}@media only screen and (min-width: 767px){._item_dzlp8_1 ._character_dzlp8_54{font-size:16px;line-height:24px}}._skeletons__item_dzlp8_70{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_dzlp8_70{max-width:175px}}._skeletons__item_dzlp8_70 ._circle_dzlp8_85{width:100%;aspect-ratio:1/1;border-radius:50%;margin-bottom:25px}._skeletons__item_dzlp8_70 ._row_dzlp8_91{width:100%;height:20px;border-radius:10px;margin-bottom:16px}._skeletons__item_dzlp8_70 ._row_last_dzlp8_97{width:75%;height:20px;border-radius:10px;margin:0 auto}._trailers_1qg1q_1{display:flex;gap:15px;overflow-x:auto}._trailers_1qg1q_1 ._video_1qg1q_6{position:relative;flex-grow:1;gap:15px;display:grid;grid-auto-rows:175px max-content;width:100%;height:100%;max-height:220px;color:var(--secondary);flex-shrink:0}@media only screen and (min-width: 639px){._trailers_1qg1q_1 ._video_1qg1q_6{width:287px}}@media only screen and (min-width: 767px){._trailers_1qg1q_1 ._video_1qg1q_6{width:350px}}@media only screen and (min-width: 1023px){._trailers_1qg1q_1 ._video_1qg1q_6{width:273px}}._trailers_1qg1q_1 ._video_1qg1q_6 ._video__thumbnail_1qg1q_33{position:relative;width:100%;height:100%;border-radius:10px;background-color:var(--bg-skeleton);filter:blur(10px)}._trailers_1qg1q_1 ._video_1qg1q_6 ._video__thumbnail_loaded_1qg1q_41{background:none;filter:none}._trailers_1qg1q_1 ._video_1qg1q_6 ._video__thumbnail_1qg1q_33>span{width:100%;height:100%}._trailers_1qg1q_1 ._video_1qg1q_6 ._video__thumbnail_1qg1q_33 img{width:100%;display:block;transition:all .7s ease-in-out}._trailers_1qg1q_1 ._video_1qg1q_6 ._video__title_1qg1q_54{position:relative;font-size:14px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:center}@media only screen and (min-width: 767px){._trailers_1qg1q_1 ._video_1qg1q_6 ._video__title_1qg1q_54{font-size:16px;line-height:24px}}._trailers_1qg1q_1 ._skeletons_1qg1q_71{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){._trailers_1qg1q_1 ._skeletons_1qg1q_71{gap:20px;margin:0;padding:0}}._trailers_1qg1q_1 ._skeletons_1qg1q_71 ._skeleton-card_1qg1q_87{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){._trailers_1qg1q_1 ._skeletons_1qg1q_71 ._skeleton-card_1qg1q_87{width:280px}}._trailers_1qg1q_1 ._skeletons_1qg1q_71 ._skeleton-card_1qg1q_87 ._thumb_1qg1q_101{height:100%;width:100%;aspect-ratio:16/9;border-radius:12px;margin-bottom:10px}._trailers_1qg1q_1 ._skeletons_1qg1q_71 ._skeleton-card_1qg1q_87 ._row_1qg1q_108{height:20px;width:80%;border-radius:10px;margin-bottom:10px}@media (max-width: 1023px){._trailers_1qg1q_1::-webkit-scrollbar{display:none}}@media only screen and (min-width: 1023px){._trailers_1qg1q_1::-webkit-scrollbar{display:none}} diff --git a/assets/MovieSinglePage-899146a8.css b/assets/MovieSinglePage-899146a8.css new file mode 100644 index 0000000..bbd50cc --- /dev/null +++ b/assets/MovieSinglePage-899146a8.css @@ -0,0 +1 @@ +._video_wgdjx_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:100}._video_wgdjx_1 ._opacity-layer_wgdjx_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_wgdjx_1 ._player_wgdjx_27{position:relative;width:800px;aspect-ratio:16/9;transform:scale(.2);transition:transform .25s}._video_wgdjx_1 ._player_wgdjx_27:before{content:"Loading...";position:absolute;inset:0;display:flex;justify-content:center;align-items:center;font-size:28px;background-color:var(--main);color:var(--secondary);z-index:-1}._video_wgdjx_1._visible_wgdjx_46{opacity:1;visibility:visible}._video_wgdjx_1._visible_wgdjx_46 ._opacity-layer_wgdjx_15{opacity:1}._video_wgdjx_1._visible_wgdjx_46 ._player_wgdjx_27{transform:scale(1)}._play_1h3ce_1{display:flex;align-items:center;gap:20px;cursor:pointer}._play_1h3ce_1 svg{width:60px}@media only screen and (min-width: 767px){._play_1h3ce_1 svg{width:80px}}._play_1h3ce_1 ._title_1h3ce_15{font-size:20px;transition:all .7s ease-in-out}._play_1h3ce_1 ._triangle_1h3ce_19{stroke-dasharray:240;stroke-dashoffset:480;stroke:var(--secondary);transform:translateY(0);transition:all .7s ease-in-out}._play_1h3ce_1 ._circle_1h3ce_26{stroke:var(--secondary);stroke-dasharray:650;stroke-dashoffset:1300;transition:all .5s ease-in-out}._play_1h3ce_1 ._play__btn_1h3ce_32:focus-visible ._text_1h3ce_32{color:var(--pink)}._play_1h3ce_1 ._play__btn_1h3ce_32:focus-visible ._triangle_1h3ce_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_1h3ce_1 .7s ease-in-out}._play_1h3ce_1 ._play__btn_1h3ce_32:focus-visible ._circle_1h3ce_26{stroke-dashoffset:0;stroke:var(--pink)}@media (hover: hover){._play_1h3ce_1 play__btn:hover ._text_1h3ce_32{color:var(--pink)}._play_1h3ce_1 play__btn:hover ._triangle_1h3ce_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_1h3ce_1 .7s ease-in-out}._play_1h3ce_1 play__btn:hover ._circle_1h3ce_26{stroke-dashoffset:0;stroke:var(--pink)}}@media (hover: none){._play_1h3ce_1 play__btn:active ._text_1h3ce_32{color:var(--pink)}._play_1h3ce_1 play__btn:active ._triangle_1h3ce_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_1h3ce_1 .7s ease-in-out}._play_1h3ce_1 play__btn:active ._circle_1h3ce_26{stroke-dashoffset:0;stroke:var(--pink)}}._play-item_1h3ce_76{position:absolute;inset:0}._play-item_1h3ce_76 svg{width:60px}@media only screen and (min-width: 767px){._play-item_1h3ce_76 svg{width:80px}}._play-item_1h3ce_76 ._title_1h3ce_15{display:none}._play-item_1h3ce_76 ._triangle_1h3ce_19{stroke-dasharray:240;stroke-dashoffset:480;stroke:var(--secondary);transform:translateY(0);transition:all .7s ease-in-out}._play-item_1h3ce_76 ._circle_1h3ce_26{stroke:var(--secondary);stroke-dasharray:650;stroke-dashoffset:1300;transition:all .5s ease-in-out}._play-item_1h3ce_76 ._play__btn_1h3ce_32{position:absolute;inset:0}@media (hover: hover){._play-item_1h3ce_76 ._play__btn_1h3ce_32:hover{background-color:#0707fd40}._play-item_1h3ce_76 ._play__btn_1h3ce_32:hover ._text_1h3ce_32{color:var(--pink)}._play-item_1h3ce_76 ._play__btn_1h3ce_32:hover ._triangle_1h3ce_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_1h3ce_1 .7s ease-in-out}._play-item_1h3ce_76 ._play__btn_1h3ce_32:hover ._circle_1h3ce_26{stroke-dashoffset:0;stroke:var(--pink)}}@media (hover: none){._play-item_1h3ce_76 ._play__btn_1h3ce_32:active{background-color:#0707fd40}._play-item_1h3ce_76 ._play__btn_1h3ce_32:active ._text_1h3ce_32{color:var(--pink)}._play-item_1h3ce_76 ._play__btn_1h3ce_32:active ._triangle_1h3ce_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_1h3ce_1 .7s ease-in-out}._play-item_1h3ce_76 ._play__btn_1h3ce_32:active ._circle_1h3ce_26{stroke-dashoffset:0;stroke:var(--pink)}}._play-item_1h3ce_76 ._play__btn_1h3ce_32:focus-visible{background-color:#0707fd40}._play-item_1h3ce_76 ._play__btn_1h3ce_32:focus-visible ._text_1h3ce_32{color:var(--pink)}._play-item_1h3ce_76 ._play__btn_1h3ce_32:focus-visible ._triangle_1h3ce_19{stroke-dashoffset:0;opacity:1;stroke:var(--pink);animation:_trailorPlay_1h3ce_1 .7s ease-in-out}._play-item_1h3ce_76 ._play__btn_1h3ce_32:focus-visible ._circle_1h3ce_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_k2wef_1{color:var(--secondary)}._about_k2wef_1 ._info-group_k2wef_4{display:flex;flex-wrap:wrap;width:100%}._about_k2wef_1 ._company_k2wef_9{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0;align-items:center}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16{display:flex;height:50px;flex-shrink:0;background:#c6cacc;border-radius:15px}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 span{display:flex;align-items:center;background:aliceblue;border-radius:15px}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 span img{width:100px;height:100%;padding:5px 10px;object-fit:contain}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 ._icon-placeholder_k2wef_35{height:100%;display:flex;justify-content:center;align-items:center;flex-shrink:0;background:aliceblue;border-radius:15px;color:#000}._about_k2wef_1 ._company_k2wef_9 ._company__logo_k2wef_16 ._icon-placeholder_k2wef_35 svg{width:100%;height:100%}._about_k2wef_1 ._profit_k2wef_49{display:flex;flex-wrap:wrap;gap:20px;border-bottom:1px solid rgba(255,255,255,.1);padding:10px 0}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__title_k2wef_56{margin-right:10px}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__amount_k2wef_59{white-space:nowrap}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__amount_deficit_k2wef_62{color:#d93030}._about_k2wef_1 ._profit_k2wef_49 ._item_k2wef_56 ._item__amount_profit_k2wef_65{color:#149687}._item__amount_budget_k2wef_69{color:gold;text-shadow:1px 1px 1px black;padding:3px 5px}[data-theme=light] ._item__amount_budget_k2wef_69{background:rgba(0,0,0,.5);border-radius:10px}._details_178x9_1{position:relative;width:100%;background-color:var(--main);padding-top:100px;padding-bottom:50px}@media only screen and (min-width: 639px){._details_178x9_1{margin-bottom:0;padding-top:120px;height:calc(100% + 220px);min-height:1000px}}._details_178x9_1 ._backdrop_178x9_16{width:100%;height:100%;position:absolute;inset:0;opacity:.25;overflow:hidden}._details_178x9_1 ._backdrop_178x9_16>span{width:100%;height:100%}._details_178x9_1 ._backdrop_178x9_16>span img{width:100%;height:100%;object-fit:cover;object-position:center}._details_178x9_1 ._opacity-layer_178x9_34{width:100%;height:100px;background:linear-gradient(180deg,rgba(4,21,45,0) 0%,var(--bg-body) 80%);position:absolute;bottom:0;left:0}@media only screen and (min-width: 639px){._details_178x9_1 ._opacity-layer_178x9_34{height:250px}}._details_178x9_1 ._content_178x9_47{display:flex;flex-direction:column;gap:30px}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52{margin-top:40px;display:flex;position:relative;flex-direction:column;gap:25px}@media only screen and (min-width: 767px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52{flex-direction:row}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._poster_178x9_64{flex-shrink:0}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._poster_178x9_64 ._poster__img_178x9_67{width:100%;display:block;border-radius:12px}@media only screen and (min-width: 639px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._poster_178x9_64 ._poster__img_178x9_67{max-width:350px}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77{color:var(--secondary)}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80{font-size:28px;line-height:40px}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80 a{display:block;width:fit-content}@media only screen and (min-width: 767px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80{font-size:34px;line-height:44px}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80 ._subtitle_178x9_94{display:block;font-size:16px;line-height:24px;margin-bottom:15px;font-style:italic}@media only screen and (min-width: 639px){._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._title_178x9_80 ._subtitle_178x9_94{font-size:20px;line-height:28px}}._details_178x9_1 ._content_178x9_47 ._indicators_178x9_52 ._describe_178x9_77 ._row_178x9_107{display:flex;align-items:center;gap:25px;margin-bottom:20px}._details_178x9_1 ._content_178x9_47 ._overview_178x9_113{color:var(--secondary);margin-bottom:10px}._details_178x9_1 ._content_178x9_47 ._overview_178x9_113 ._heading_178x9_117{font-size:28px;margin-bottom:10px}._details_178x9_1 ._content_178x9_47 ._overview_178x9_113 ._description_178x9_121{padding-top:15px;font-size:1rem;line-height:30px;text-align:justify}._details_178x9_1 ._skeleton_178x9_127{position:relative;margin-top:40px}._details_178x9_1 ._skeleton_178x9_127 ._content-skeleton_178x9_131{display:flex;flex-direction:column;gap:25px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136{margin:0;display:flex;position:relative;flex-direction:column;gap:25px}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136{flex-direction:row}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._left_178x9_148{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_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._left_178x9_148{width:40%;max-height:700px;aspect-ratio:1/1.5}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164{width:100%;display:flex;flex-direction:column;gap:15px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107{width:100%;height:25px;border-radius:50px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._title_178x9_80{width:75%;height:70px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._genres_178x9_179{width:50%}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._overview_178x9_113{width:30%;height:40px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(odd){width:60%}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(odd){width:40%}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(even){width:70%}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:nth-child(even){width:60%}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:last-child{width:90%;height:60px}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._row_178x9_107._row_short_178x9_186:last-child{width:70%}}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._group_178x9_211{display:inline-flex;flex-grow:0;align-items:center;gap:20px}._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._group_178x9_211>._circle_178x9_217{border-radius:50%;height:60px;width:60px}@media only screen and (min-width: 767px){._details_178x9_1 ._skeleton_178x9_127 ._content__indicators_178x9_136 ._right_178x9_164 ._group_178x9_211>._circle_178x9_217{width:80px;height:80px}}._details_178x9_1 ._skeleton_178x9_127 ._describe_178x9_77{display:flex;flex-direction:column;gap:20px}._details_178x9_1 ._skeleton_178x9_127 ._describe__title_178x9_233{height:40px;width:150px;border-right:30px}._details_178x9_1 ._skeleton_178x9_127 ._describe__text_178x9_238{width:100%;height:150px}._poster_155qv_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_155qv_1:before{content:"Wait...";position:absolute;inset:0;display:flex;justify-content:center;align-items:center;color:var(--secondary);font-size:28px}._poster_155qv_1>span{height:100%;width:100%}._poster_155qv_1>span img{width:100%}@media only screen and (min-width: 767px){._poster_155qv_1{width:40%;max-height:700px;aspect-ratio:1/1.5}}._poster_155qv_1 ._poster__img_155qv_36{width:100%;display:block;border-radius:12px}._item_dzlp8_1{position:relative;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;width:175px;color:var(--secondary)}._item_dzlp8_1 ._avatar_dzlp8_11{width:180px;height:200px;margin-bottom:25px;border-radius:20px;overflow:hidden;border:2px solid snow;background-color:var(--bg-skeleton);filter:blur(10px)}._item_dzlp8_1 ._avatar_loaded_dzlp8_21{background:none;filter:none}@media only screen and (min-width: 639px){._item_dzlp8_1 ._avatar_dzlp8_11{width:175px;height:175px;border-radius:50%}}._item_dzlp8_1 ._avatar_dzlp8_11>span{width:100%;height:100%}._item_dzlp8_1 ._avatar_dzlp8_11 img{width:100%;height:100%;object-fit:cover;display:block}._item_dzlp8_1 ._name_dzlp8_42{font-size:14px;line-height:20px;font-weight:600;flex-grow:1}@media only screen and (min-width: 767px){._item_dzlp8_1 ._name_dzlp8_42{font-size:18px;line-height:24px}}._item_dzlp8_1 ._character_dzlp8_54{font-size:14px;line-height:20px;flex-grow:1}._item_dzlp8_1 ._character_dzlp8_54 span{display:block;padding-right:5px}@media only screen and (min-width: 767px){._item_dzlp8_1 ._character_dzlp8_54{font-size:16px;line-height:24px}}._skeletons__item_dzlp8_70{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_dzlp8_70{max-width:175px}}._skeletons__item_dzlp8_70 ._circle_dzlp8_85{width:100%;aspect-ratio:1/1;border-radius:50%;margin-bottom:25px}._skeletons__item_dzlp8_70 ._row_dzlp8_91{width:100%;height:20px;border-radius:10px;margin-bottom:16px}._skeletons__item_dzlp8_70 ._row_last_dzlp8_97{width:75%;height:20px;border-radius:10px;margin:0 auto}._trailers_115uo_1{display:flex;gap:15px;overflow-x:auto;padding:30px 20px}._trailers_115uo_1 ._video_115uo_7{position:relative;flex-grow:1;gap:15px;display:grid;grid-auto-rows:175px max-content;width:100%;max-width:max(300px,30%);height:100%;max-height:220px;color:var(--secondary);flex-shrink:0}._trailers_115uo_1 ._video_115uo_7 ._video__thumbnail_115uo_20{position:relative;width:100%;height:100%;border-radius:10px;background-color:var(--bg-skeleton);filter:blur(10px)}._trailers_115uo_1 ._video_115uo_7 ._video__thumbnail_loaded_115uo_28{background:none;filter:none}._trailers_115uo_1 ._video_115uo_7 ._video__thumbnail_115uo_20>span{width:100%;height:100%}._trailers_115uo_1 ._video_115uo_7 ._video__thumbnail_115uo_20 img{width:100%;display:block;transition:all .7s ease-in-out}._trailers_115uo_1 ._video_115uo_7 ._video__title_115uo_41{position:relative;font-size:14px;line-height:20px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;text-align:center}@media only screen and (min-width: 767px){._trailers_115uo_1 ._video_115uo_7 ._video__title_115uo_41{font-size:16px;line-height:24px}}._trailers_115uo_1 ._skeletons_115uo_58{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){._trailers_115uo_1 ._skeletons_115uo_58{gap:20px;margin:0;padding:0}}._trailers_115uo_1 ._skeletons_115uo_58 ._skeleton-card_115uo_74{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){._trailers_115uo_1 ._skeletons_115uo_58 ._skeleton-card_115uo_74{width:280px}}._trailers_115uo_1 ._skeletons_115uo_58 ._skeleton-card_115uo_74 ._thumb_115uo_88{height:100%;width:100%;aspect-ratio:16/9;border-radius:12px;margin-bottom:10px}._trailers_115uo_1 ._skeletons_115uo_58 ._skeleton-card_115uo_74 ._row_115uo_95{height:20px;width:80%;border-radius:10px;margin-bottom:10px}@media (max-width: 1023px){._trailers_115uo_1::-webkit-scrollbar{display:none}}@media only screen and (min-width: 1023px){._trailers_115uo_1::-webkit-scrollbar{display:none}} diff --git a/assets/MovieSinglePage-8bfeca9a.js b/assets/MovieSinglePage-cb99ed1d.js similarity index 60% rename from assets/MovieSinglePage-8bfeca9a.js rename to assets/MovieSinglePage-cb99ed1d.js index 98119bb..19ef3aa 100644 --- a/assets/MovieSinglePage-8bfeca9a.js +++ b/assets/MovieSinglePage-cb99ed1d.js @@ -1,6 +1,6 @@ -import{r as F,o as Er,p as Tr,q as qe,g as kr,n as _,E as Ne,l as se,s as pt,t as Vt,v as Dr,m as Ue,I as Pe,u as $e,G as Lr,w as Ar,P as Mr,L as Ir,A as xr,F as jr,x as Wt,y as qt,S as Ht,N as Cr}from"./index-3c34359a.js";import{B as Nr,a as mt}from"./avatar-7ac2a537.js";var Bt={},Ft={},K={},Ur=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&&$r(w,u.attrs),u.text&&(w.text=""+u.text);var k="onload"in w?vt:Vr;k(w,l),w.onload||vt(w,l),g.appendChild(w)};function $r(n,o){for(var u in o)n.setAttribute(u,o[u])}function vt(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 Vr(n,o){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,o(null,n))}}var Wr=function(o){return qr(o)&&!Hr(o)};function qr(n){return!!n&&typeof n=="object"}function Hr(n){var o=Object.prototype.toString.call(n);return o==="[object RegExp]"||o==="[object Date]"||Kr(n)}var Br=typeof Symbol=="function"&&Symbol.for,Fr=Br?Symbol.for("react.element"):60103;function Kr(n){return n.$$typeof===Fr}function zr(n){return Array.isArray(n)?[]:{}}function De(n,o){return o.clone!==!1&&o.isMergeableObject(n)?be(zr(n),n,o):n}function Yr(n,o,u){return n.concat(o).map(function(l){return De(l,u)})}function Gr(n,o){if(!o.customMerge)return be;var u=o.customMerge(n);return typeof u=="function"?u:be}function Xr(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(o){return Object.propertyIsEnumerable.call(n,o)}):[]}function _t(n){return Object.keys(n).concat(Xr(n))}function Kt(n,o){try{return o in n}catch{return!1}}function Zr(n,o){return Kt(n,o)&&!(Object.hasOwnProperty.call(n,o)&&Object.propertyIsEnumerable.call(n,o))}function Qr(n,o,u){var l={};return u.isMergeableObject(n)&&_t(n).forEach(function(g){l[g]=De(n[g],u)}),_t(o).forEach(function(g){Zr(n,g)||(Kt(n,g)&&u.isMergeableObject(o[g])?l[g]=Gr(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||Yr,u.isMergeableObject=u.isMergeableObject||Wr,u.cloneUnlessOtherwiseSpecified=De;var l=Array.isArray(o),g=Array.isArray(n),w=l===g;return w?l?u.arrayMerge(n,o,u):Qr(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 Jr=be,zt=Jr;Object.defineProperty(K,"__esModule",{value:!0});K.parseStartTime=pn;K.parseEndTime=yn;K.randomString=dn;K.queryString=hn;K.getSDK=mn;K.getConfig=vn;K.omit=_n;K.callPlayer=gn;K.isMediaStream=Pn;K.isBlobUrl=bn;K.supportsWebKitPresentationMode=On;var en=Yt(Ur),tn=Yt(zt);function Yt(n){return n&&n.__esModule?n:{default:n}}function rn(n,o){return un(n)||an(n,o)||on(n,o)||nn()}function nn(){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 on(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);u"u"||!(Symbol.iterator in Object(n)))){var u=[],l=!0,g=!1,w=void 0;try{for(var k=n[Symbol.iterator](),E;!(l=(E=k.next()).done)&&(u.push(E.value),!(o&&u.length===o));l=!0);}catch(O){g=!0,w=O}finally{try{!l&&k.return!=null&&k.return()}finally{if(g)throw w}}return u}}function un(n){if(Array.isArray(n))return n}var ln=/[?&#](?:start|t)=([0-9hms]+)/,sn=/[?&#]end=([0-9hms]+)/,lt=/(\d+)(h|m|s)/g,cn=/^\d+$/;function Gt(n,o){if(!(n instanceof Array)){var u=n.match(o);if(u){var l=u[1];if(l.match(lt))return fn(l);if(cn.test(l))return parseInt(l)}}}function fn(n){for(var o=0,u=lt.exec(n);u!==null;){var l=u,g=rn(l,3),w=g[1],k=g[2];k==="h"&&(o+=parseInt(w,10)*60*60),k==="m"&&(o+=parseInt(w,10)*60),k==="s"&&(o+=parseInt(w,10)),u=lt.exec(n)}return o}function pn(n){return Gt(n,ln)}function yn(n){return Gt(n,sn)}function dn(){return Math.random().toString(36).substr(2,5)}function hn(n){return Object.keys(n).map(function(o){return"".concat(o,"=").concat(n[o])}).join("&")}function He(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 mn(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]:en.default,w=He(o);return w&&l(w)?Promise.resolve(w):new Promise(function(k,E){if(_e[n]){_e[n].push({resolve:k,reject:E});return}_e[n]=[{resolve:k,reject:E}];var O=function(q){_e[n].forEach(function(C){return C.resolve(q)})};if(u){var D=window[u];window[u]=function(){D&&D(),O(He(o))}}g(n,function(A){A?(_e[n].forEach(function(q){return q.reject(A)}),_e[n]=null):u||O(He(o))})})}function vn(n,o){return(0,tn.default)(o.config,n.config)}function _n(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 Pt=K;function wn(n,o){var u;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(u=Sn(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,k=!1,E;return{s:function(){u=n[Symbol.iterator]()},n:function(){var D=u.next();return w=D.done,D},e:function(D){k=!0,E=D},f:function(){try{!w&&u.return!=null&&u.return()}finally{if(k)throw E}}}}function Sn(n,o){if(n){if(typeof n=="string")return bt(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 bt(n,o)}}function bt(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 x=y[Symbol.iterator](),B;!(f=(B=x.next()).done)&&(d.push(B.value),!(P&&d.length===P));f=!0);}catch(G){S=!0,V=G}finally{try{!f&&x.return!=null&&x.return()}finally{if(S)throw V}}return d}}function N(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_-]+)\/?/,b=/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),x=0;x"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 T(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){C(r,a);var e=N(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 T(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){C(r,a);var e=N(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 T="https://connect.facebook.net/en_US/sdk.js",$="FB",p="fbAsyncInit",h="facebook-player-",a=function(e){q(t,e);var r=j(t);function t(){var i;O(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",T="playerjs",$=function(p){A(a,p);var h=C(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 T(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){C(t,e);var r=N(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 T(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){C(t,e);var r=N(t);function t(){var i;D(this,t);for(var s=arguments.length,v=new Array(s),c=0;cc.length)&&(b=c.length);for(var R=0,m=new Array(b);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),!(b&&R.length===b));m=!0);}catch(S){y=!0,P=S}finally{try{!m&&d.return!=null&&d.return()}finally{if(y)throw P}}return R}}function N(c){if(Array.isArray(c))return c}function U(c,b){if(!(c instanceof b))throw new TypeError("Cannot call a class as a function")}function L(c,b){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,b,R){return b in c?Object.defineProperty(c,b,{value:R,enumerable:!0,configurable:!0,writable:!0}):c[b]=R,c}var t="https://api.dmcdn.net/all.js",i="DM",s="dmAsyncInit",v=function(c){M(R,c);var b=$(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 T(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){C(r,a);var e=N(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 T(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){C(t,e);var r=N(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",T="playerjs",$=function(p){A(a,p);var h=C(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 T=typeof navigator<"u",$=T&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,p=T&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||$)&&!window.MSStream,h=T&&/^((?!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]+)/,b="https://videodelivery.net/{id}/manifest/video.m3u8",R=function(m){q(P,m);var y=j(P);function P(){var d;O(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),x=this.shouldUseFLV(f);if(!(f instanceof Array||(0,l.isMediaStream)(f)||S||V||x))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,x=f.loop,B=f.controls,G=f.muted,Y=f.config,z=f.width,Q=f.height,re=this.shouldUseAudio(this.props),ie=re?"audio":"video",me={width:z==="auto"?z:"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:x},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=F,u=K,l=W;function g(O){"@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(O)}function w(){if(typeof WeakMap!="function")return null;var O=new WeakMap;return w=function(){return O},O}function k(O){if(O&&O.__esModule)return O;if(O===null||g(O)!=="object"&&typeof O!="function")return{default:O};var D=w();if(D&&D.has(O))return D.get(O);var A={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in O)if(Object.prototype.hasOwnProperty.call(O,C)){var j=q?Object.getOwnPropertyDescriptor(O,C):null;j&&(j.get||j.set)?Object.defineProperty(A,C,j):A[C]=O[C]}return A.default=O,D&&D.set(O,A),A}var E=[{key:"youtube",name:"YouTube",canPlay:l.canPlay.youtube,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(Tn())})})},{key:"soundcloud",name:"SoundCloud",canPlay:l.canPlay.soundcloud,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(kn())})})},{key:"vimeo",name:"Vimeo",canPlay:l.canPlay.vimeo,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(Dn())})})},{key:"facebook",name:"Facebook",canPlay:l.canPlay.facebook,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(Ln())})})},{key:"streamable",name:"Streamable",canPlay:l.canPlay.streamable,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(An())})})},{key:"wistia",name:"Wistia",canPlay:l.canPlay.wistia,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(Mn())})})},{key:"twitch",name:"Twitch",canPlay:l.canPlay.twitch,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(In())})})},{key:"dailymotion",name:"DailyMotion",canPlay:l.canPlay.dailymotion,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(xn())})})},{key:"mixcloud",name:"Mixcloud",canPlay:l.canPlay.mixcloud,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(jn())})})},{key:"vidyard",name:"Vidyard",canPlay:l.canPlay.vidyard,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(Cn())})})},{key:"kaltura",name:"Kaltura",canPlay:l.canPlay.kaltura,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return k(Nn())})})},{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 k(Un())})})}];n.default=E})(Ft);var Ve={};const $n=Er(Tr);var Vn=typeof Element<"u",Wn=typeof Map=="function",qn=typeof Set=="function",Hn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function xe(n,o){if(n===o)return!0;if(n&&o&&typeof n=="object"&&typeof o=="object"){if(n.constructor!==o.constructor)return!1;var u,l,g;if(Array.isArray(n)){if(u=n.length,u!=o.length)return!1;for(l=u;l--!==0;)if(!xe(n[l],o[l]))return!1;return!0}var w;if(Wn&&n instanceof Map&&o instanceof Map){if(n.size!==o.size)return!1;for(w=n.entries();!(l=w.next()).done;)if(!o.has(l.value[0]))return!1;for(w=n.entries();!(l=w.next()).done;)if(!xe(l.value[1],o.get(l.value[0])))return!1;return!0}if(qn&&n instanceof Set&&o instanceof Set){if(n.size!==o.size)return!1;for(w=n.entries();!(l=w.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(Hn&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(o)){if(u=n.length,u!=o.length)return!1;for(l=u;l--!==0;)if(n[l]!==o[l])return!1;return!0}if(n.constructor===RegExp)return n.source===o.source&&n.flags===o.flags;if(n.valueOf!==Object.prototype.valueOf&&typeof n.valueOf=="function"&&typeof o.valueOf=="function")return n.valueOf()===o.valueOf();if(n.toString!==Object.prototype.toString&&typeof n.toString=="function"&&typeof o.toString=="function")return n.toString()===o.toString();if(g=Object.keys(n),u=g.length,u!==Object.keys(o).length)return!1;for(l=u;l--!==0;)if(!Object.prototype.hasOwnProperty.call(o,g[l]))return!1;if(Vn&&n instanceof Element)return!1;for(l=u;l--!==0;)if(!((g[l]==="_owner"||g[l]==="__v"||g[l]==="__o")&&n.$$typeof)&&!xe(n[g[l]],o[g[l]]))return!1;return!0}return n!==n&&o!==o}var cr=function(o,u){try{return xe(o,u)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},he={},fr={exports:{}},Bn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Fn=Bn,Kn=Fn;function pr(){}function yr(){}yr.resetWarningCache=pr;var zn=function(){function n(l,g,w,k,E,O){if(O!==Kn){var D=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 D.name="Invariant Violation",D}}n.isRequired=n;function o(){return n}var u={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:yr,resetWarningCache:pr};return u.PropTypes=u,u};fr.exports=zn();var Yn=fr.exports;Object.defineProperty(he,"__esModule",{value:!0});he.defaultProps=he.propTypes=void 0;var pe=Gn(Yn);function Gn(n){return n&&n.__esModule?n:{default:n}}var ne=pe.default.string,ae=pe.default.bool,ge=pe.default.number,rt=pe.default.array,Se=pe.default.oneOfType,ue=pe.default.shape,oe=pe.default.object,Z=pe.default.func,xt=pe.default.node,Xn={url:Se([ne,rt,oe]),playing:ae,loop:ae,controls:ae,volume:ge,muted:ae,playbackRate:ge,width:Se([ne,ge]),height:Se([ne,ge]),style:oe,progressInterval:ge,playsinline:ae,pip:ae,stopOnUnmount:ae,light:Se([ae,ne,oe]),playIcon:xt,previewTabIndex:ge,fallback:xt,oEmbedUrl:ne,wrapper:Se([ne,Z,ue({render:Z.isRequired})]),config:ue({soundcloud:ue({options:oe}),youtube:ue({playerVars:oe,embedOptions:oe,onUnstarted:Z}),facebook:ue({appId:ne,version:ne,playerId:ne,attributes:oe}),dailymotion:ue({params:oe}),vimeo:ue({playerOptions:oe,title:ne}),file:ue({attributes:oe,tracks:rt,forceVideo:ae,forceAudio:ae,forceHLS:ae,forceSafariHLS:ae,forceDASH:ae,forceFLV:ae,hlsOptions:oe,hlsVersion:ne,dashVersion:ne,flvVersion:ne}),wistia:ue({options:oe,playerId:ne,customControls:rt}),mixcloud:ue({options:oe}),twitch:ue({options:oe,playerId:ne}),vidyard:ue({options:oe})}),onReady:Z,onStart:Z,onPlay:Z,onPause:Z,onBuffer:Z,onBufferEnd:Z,onEnded:Z,onError:Z,onDuration:Z,onSeek:Z,onPlaybackRateChange:Z,onProgress:Z,onClickPreview:Z,onEnablePIP:Z,onDisablePIP:Z};he.propTypes=Xn;var J=function(){},Zn={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:J},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:J,onStart:J,onPlay:J,onPause:J,onBuffer:J,onBufferEnd:J,onEnded:J,onError:J,onDuration:J,onSeek:J,onPlaybackRateChange:J,onProgress:J,onClickPreview:J,onEnablePIP:J,onDisablePIP:J};he.defaultProps=Zn;var dr={};(function(n){function o(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(r){return typeof r}:o=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},o(a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=O(F),l=k(cr),g=he,w=K;function k(a){return a&&a.__esModule?a:{default:a}}function E(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return E=function(){return a},a}function O(a){if(a&&a.__esModule)return a;if(a===null||o(a)!=="object"&&typeof a!="function")return{default:a};var e=E();if(e&&e.has(a))return e.get(a);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var s=t?Object.getOwnPropertyDescriptor(a,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=a[i]}return r.default=a,e&&e.set(a,r),r}function D(){return D=Object.assign||function(a){for(var e=1;e"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 T(a){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},T(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){j(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 b=this.player.getDuration();if(!b){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(b*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)})(dr);var nt={},jt;function Qn(){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(F);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 k(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",T={},$=function(p){A(a,p);var h=C(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 Ce(n){return Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},Ce(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 hr(){if(typeof WeakMap!="function")return null;var n=new WeakMap;return hr=function(){return n},n}function mr(n){if(n&&n.__esModule)return n;if(n===null||Te(n)!=="object"&&typeof n!="function")return{default:n};var o=hr();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 po=(0,de.lazy)(function(){return Promise.resolve().then(function(){return mr(Qn())})}),yo=typeof window<"u"&&window.document,ho=typeof qe<"u"&&qe.window&&qe.window.document,mo=Object.keys(Ee.propTypes),vo=yo||ho?de.Suspense:function(){return null},Re=[],_o=function(o,u){var l,g;return g=l=function(w){lo(E,w);var k=so(E);function E(){var O;io(this,E);for(var D=arguments.length,A=new Array(D),q=0;q0&&arguments[0]!==void 0?arguments[0]:"player";return O.player?O.player.getInternalPlayer(C):null}),X(ee(O),"seekTo",function(C,j){if(!O.player)return null;O.player.seekTo(C,j)}),X(ee(O),"handleReady",function(){O.props.onReady(ee(O))}),X(ee(O),"getActivePlayer",(0,ot.default)(function(C){for(var j=0,N=[].concat(Re,at(o));j{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(Nr,{close:w}),g?_.jsx(Ne,{classname:"error-trailer",children:"Video not found"}):_.jsx(go,{controls:!0,height:"100%",playing:!0,url:`https://www.youtube.com/watch?v=${u}`,width:"100%"})]})]})}),So="_play_e2dga_1",Ro="_title_e2dga_15",Eo="_triangle_e2dga_19",To="_circle_e2dga_26",ko="_play__btn_e2dga_32",Do="_text_e2dga_32",Lo="_trailorPlay_e2dga_1",ke={play:So,title:Ro,triangle:Eo,circle:To,play__btn:ko,text:Do,trailorPlay:Lo,"play-item":"_play-item_e2dga_49"},Ao=({onClick:n})=>_.jsx("button",{className:ke.play__btn,title:"Watch Trailer",onClick:n,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"})]})}),Mo=["trailer","clip","teaser"],vr=({classname:n})=>{const{movieType:o,id:u}=se(),[l,g]=F.useState(!1),[w,k]=F.useState(null),{data:E,isError:O}=pt("trailer_key",`/${o}/${u}/videos`,u),D=(E==null?void 0:E.results.length)||w,A=F.useCallback(()=>{const C=(E==null?void 0:E.results.find(j=>Mo.includes(j.type.toLowerCase())))||(E==null?void 0:E.results[0]);C&&(k(C.key),document.body.classList.add("overflow-hidden"),g(!0))},[E==null?void 0:E.results]);return _.jsx(_.Fragment,{children:D?_.jsxs(_.Fragment,{children:[" ",_.jsxs("div",{className:ke[n],onClick:A,children:[_.jsx(Ao,{}),_.jsx("span",{className:ke.title,children:"Watch Trailer"})]}),_.jsx(wo,{isError:O,setShow:g,setVideoId:k,show:l,videoId:w})]}):null})},Io="_info_gv81z_1",xo="_error_gv81z_9",jo="_text_gv81z_20",Co="_bold_gv81z_25",No="_info__content_gv81z_29",ye={info:Io,error:xo,"border-none":"_border-none_gv81z_14",text:jo,bold:Co,info__content:No},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:`${ye.info} ${ye[g]}`,children:[_.jsx("span",{className:`${ye.text} ${ye.bold}`,children:o}),_.jsx("div",{className:ye.info__content,children:l?n==null?void 0:n.map((k,E)=>_.jsxs("span",{className:ye.text,children:[k[u]||k,(n==null?void 0:n.length)-1!==E&&", "]},E)):_.jsx("span",{className:ye.text,children:w})})]}):null}),Uo="_about_k2wef_1",$o="_company_k2wef_9",Vo="_company__logo_k2wef_16",Wo="_profit_k2wef_49",qo="_item_k2wef_56",Ho="_item__title_k2wef_56",Bo="_item__amount_k2wef_59",Fo="_item__amount_deficit_k2wef_62",Ko="_item__amount_profit_k2wef_65",zo="_item__amount_budget_k2wef_69",te={about:Uo,"info-group":"_info-group_k2wef_4",company:$o,company__logo:Vo,"icon-placeholder":"_icon-placeholder_k2wef_35",profit:Wo,item:qo,item__title:Ho,item__amount:Bo,item__amount_deficit:Fo,item__amount_profit:Ko,item__amount_budget:zo},Yo=[{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 Vt(n[this.prop]).format("MMM D, YYYY")}},{title:"Runtime:",prop:"runtime",list:!1,keyName:"",classname:"",child(n){return Dr(n[this.prop])}},{title:"Country:",prop:"production_countries",list:!0,keyName:"name",classname:""},{title:"Creator:",prop:"created_by",list:!0,keyName:"name",classname:""}],Go=[{title:"Director:",prop:"director",list:!0,keyName:"name",classname:""},{title:"Writers:",prop:"writers",list:!0,keyName:"name",classname:""}],Xo=[{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]}}],Zo=F.memo(({movieDetails:n})=>{const{movieType:o}=se();return _.jsx(_.Fragment,{children:o==="tv"&&_.jsx("div",{className:te["info-group"],children:Xo.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))})})}),Qo="/movix/assets/not_image-4020c0b8.svg",Jo=F.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:Qo})})},l))})})}),ea=F.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})}),ta=F.memo(({movieDetails:n})=>_.jsx("div",{className:te["info-group"],children:Yo.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))})),ra=()=>{const{movieType:n,id:o}=se(),{writers:u,director:l,isError:g,error:w}=$e().useCrew(n,o),k={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:Go.map(E=>_.jsx(Le,{classname:E.classname,data:k[E.prop],keyName:E.keyName,list:E.list,title:E.title,children:E.child?E.child(k):null},E.title))})})},na=()=>{const{movieType:n,id:o}=se(),{data:u}=$e().useMovieDetails(n,o);return _.jsxs("div",{className:te.about,children:[_.jsx(ea,{movieDetails:u}),_.jsx(Zo,{movieDetails:u}),_.jsx(ta,{movieDetails:u}),_.jsx(ra,{}),_.jsx(Jo,{movieDetails:u})]})},oa="_details_178x9_1",aa="_backdrop_178x9_16",ia="_content_178x9_47",ua="_indicators_178x9_52",la="_poster_178x9_64",sa="_poster__img_178x9_67",ca="_describe_178x9_77",fa="_title_178x9_80",pa="_subtitle_178x9_94",ya="_row_178x9_107",da="_overview_178x9_113",ha="_heading_178x9_117",ma="_description_178x9_121",va="_skeleton_178x9_127",_a="_content__indicators_178x9_136",ga="_left_178x9_148",Pa="_right_178x9_164",ba="_genres_178x9_179",Oa="_row_short_178x9_186",wa="_group_178x9_211",Sa="_circle_178x9_217",Ra="_describe__title_178x9_233",Ea="_describe__text_178x9_238",H={details:oa,backdrop:aa,"opacity-layer":"_opacity-layer_178x9_34",content:ia,indicators:ua,poster:la,poster__img:sa,describe:ca,title:fa,subtitle:pa,row:ya,overview:da,heading:ha,description:ma,skeleton:va,"content-skeleton":"_content-skeleton_178x9_131",content__indicators:_a,left:ga,right:Pa,genres:ba,row_short:Oa,group:wa,circle:Sa,describe__title:Ra,describe__text:Ea},Ta=({title:n,date:o,link:u,subTitle:l})=>_.jsx(_.Fragment,{children:_.jsx("h1",{className:H.title,children:_.jsxs("a",{href:u||null,rel:"noreferrer noopener",target:"_black",title:"Go to the movie's website",children:[`${n} (${Vt(o).format("YYYY")})`,_.jsx("span",{className:H.subtitle,children:l})]})})}),ka=F.memo(({data:n})=>{const{homepage:o,name:u,title:l,genres:g,release_date:w,tagline:k,vote_average:E}=n,O=g==null?void 0:g.map(D=>D.id);return _.jsx(_.Fragment,{children:n&&_.jsxs("div",{className:H.describe,children:[_.jsx(Ta,{date:w,link:o,subTitle:k,title:u||l}),_.jsx(Lr,{classname:"genres_single-movie",genresMovie:O}),_.jsxs("div",{className:H.row,children:[_.jsx(Ar,{classname:"rating_single-movie",rating:E.toFixed(1)}),_.jsx(vr,{classname:"play"})]}),_.jsx(na,{})]})})}),Da="_poster_155qv_1",La="_poster__img_155qv_36",it={poster:Da,poster__img:La},_r=F.memo(({poster:n})=>{_r.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:Mr})})}),Aa=()=>_.jsx("div",{className:H.skeleton,children:_.jsxs("div",{className:H["content-skeleton"],children:[_.jsxs("div",{className:H.content__indicators,children:[_.jsx("div",{className:`${H.left} skeleton`}),_.jsxs("div",{className:H.right,children:[_.jsx("h1",{className:`${H.row} ${H.title} skeleton`}),_.jsx("div",{className:`${H.row} ${H.genres} skeleton`}),_.jsxs("div",{className:H.group,children:[_.jsx("div",{className:`${H.circle} skeleton`}),_.jsx("div",{className:`${H.circle} skeleton`})]}),_.jsx("div",{className:`${H.row} skeleton`}),_.jsx("div",{className:`${H.row} ${H.row_short} skeleton`}),_.jsx("div",{className:`${H.row} ${H.row_short} skeleton`}),_.jsx("div",{className:`${H.row} ${H.row_short} skeleton`}),_.jsx("div",{className:`${H.row} ${H.row_short} skeleton`}),_.jsx("div",{className:`${H.row} ${H.row_short} skeleton`}),_.jsx("div",{className:`${H.row} ${H.row_short} skeleton`})]})]}),_.jsxs("div",{className:H.describe,children:[_.jsx("div",{className:`${H.row} ${H.describe__title} skeleton`}),_.jsx("div",{className:`${H.row} ${H.describe__text} skeleton`})]})]})}),Ma=()=>{const{movieType:n,id:o}=se(),u=Ue(O=>{var D;return(D=O.urlBaseForImages.url)==null?void 0:D.backdrop}),{data:l,isLoading:g,isError:w,error:k,isFetching:E}=pt(n,`/${n}/${o}`,o);return _.jsx(Ne,{classname:"main",error:k,isError:w,title:"Video description",children:_.jsxs("div",{className:H.details,children:[_.jsx("div",{className:H.backdrop,children:_.jsx(Pe,{src:`${u}${l==null?void 0:l.backdrop_path}`})}),_.jsx("div",{className:H["opacity-layer"]}),_.jsxs("div",{className:"wrapper",children:[_.jsx("h1",{className:"title-article",children:`${n.toUpperCase()} description`}),g||E?_.jsx(Aa,{}):_.jsxs("div",{className:H.content,children:[_.jsxs("div",{className:H.indicators,children:[_.jsx(_r,{poster:l==null?void 0:l.poster_path}),_.jsx(ka,{data:l})]}),_.jsxs("div",{className:H.overview,children:[_.jsx("div",{className:"title-article",children:"Overview"}),_.jsx("div",{className:H.description,children:l==null?void 0:l.overview})]})]})]})]})})},Ia="_item_dzlp8_1",xa="_avatar_dzlp8_11",ja="_avatar_loaded_dzlp8_21",Ca="_name_dzlp8_42",Na="_character_dzlp8_54",Ua="_skeletons__item_dzlp8_70",$a="_circle_dzlp8_85",Va="_row_dzlp8_91",Wa="_row_last_dzlp8_97",ce={item:Ia,avatar:xa,avatar_loaded:ja,name:Ca,character:Na,skeletons__item:Ua,circle:$a,row:Va,row_last:Wa},qa=({data:n,style:o})=>{const u=Ue(O=>{var D;return(D=O.urlBaseForImages.url)==null?void 0:D.profile}),{id:l,profile_path:g,name:w,character:k}=n,E=F.useRef(null);return _.jsxs("li",{className:ce.item,style:o,children:[_.jsx(Ir,{className:"link",to:`/person/${l}`}),_.jsx("p",{className:ce.avatar,ref:E,style:{background:`url(${g?u+g:mt}) center center / cover no-repeat`},children:_.jsx(Pe,{src:g?u+g:mt,onLoad:()=>E.current.className+=" "+ce.avatar_loaded})}),_.jsx("p",{className:ce.name,children:w}),_.jsx("p",{className:ce.character,children:k})]})},ut=15,Ha=F.memo(({dataList:n})=>_.jsx(_.Fragment,{children:_.jsx(xr,{disableHeight:!0,children:({height:o=300,width:u})=>_.jsx(jr,{className:"List List_actors",height:o,itemCount:n.length,itemSize:190,layout:"horizontal",innerElementType:"ul",width:u,children:({index:l,style:g})=>_.jsx(qa,{data:n[l],style:{...g,left:g.left+ut,width:g.width-ut,height:g.height-ut*2}})})})})),Ba=Wt(Ha),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:`${ce.skeletons__item}`,children:[_.jsx("div",{className:`${ce.circle} skeleton`}),_.jsx("div",{className:`${ce.row} skeleton`}),_.jsx("div",{className:`${ce.row_last} skeleton`})]},u))})},Ka=qt(Fa),za=()=>{const{movieType:n,id:o}=se(),{actors:u,isError:l,error:g,isLoading:w}=$e().useCrew(n,o);return _.jsxs(Ne,{error:g,isError:l,title:"Top actors",children:[_.jsx(Ka,{isLoading:w}),_.jsx(Ba,{data:u,dataList:u,title:"Top actors",classList:"List_actors"})]})},Ya="_trailers_1qg1q_1",Ga="_video_1qg1q_6",Xa="_video__thumbnail_1qg1q_33",Za="_video__thumbnail_loaded_1qg1q_41",Qa="_video__title_1qg1q_54",Ja="_skeletons_1qg1q_71",ei="_thumb_1qg1q_101",ti="_row_1qg1q_108",fe={trailers:Ya,video:Ga,video__thumbnail:Xa,video__thumbnail_loaded:Za,video__title:Qa,skeletons:Ja,"skeleton-card":"_skeleton-card_1qg1q_87",thumb:ei,row:ti},ri=()=>{const n=+getComputedStyle(document.querySelector(":root")).getPropertyValue("--count-skeletons-trailers");return _.jsx("div",{className:fe.skeletons,children:new Array(n).fill("skeleton").map((o,u)=>_.jsxs("div",{className:fe["skeleton-card"],children:[_.jsx("div",{className:`skeleton ${fe.thumb}`}),_.jsx("div",{className:`skeleton ${fe.row}`})]},u))})},ni=qt(ri),oi=F.memo(({data:n,style:o})=>{const{id:u,key:l,name:g}=n,w=F.useRef(null);return _.jsxs("li",{className:fe.video,style:o,children:[_.jsxs("div",{ref:w,className:fe.video__thumbnail,style:{background:`url(https://img.youtube.com/vi/${l}/mqdefault.jpg) center center / cover no-repeat`},children:[_.jsx(Pe,{src:`https://img.youtube.com/vi/${l}/mqdefault.jpg`,onLoad:()=>w.current.className+=" "+fe.video__thumbnail_loaded}),_.jsx(vr,{classname:"play-item"})]}),_.jsx("div",{className:fe.video__title,children:g})]},u)}),ai=F.memo(({dataList:n})=>_.jsx("ul",{className:fe.trailers,children:n.map(o=>_.jsx(oi,{data:o},o.id))})),ii=Wt(ai),ui=()=>{const{movieType:n,id:o}=se(),{data:u,isLoading:l,isError:g,error:w}=$e().useTrailersList(n,o);return _.jsxs(Ne,{error:w,isError:g,title:"Official videos",children:[_.jsx(ni,{isLoading:l}),_.jsx(ii,{data:u==null?void 0:u.results,dataList:u==null?void 0:u.results,isLoading:l,title:"Official videos"})]})},li=()=>{const{movieType:n}=se(),o=n==="tv"?"Similar TV Shows":"Similar Movies";return _.jsx(Ht,{keyApi:"useSimilar",title:o})},si=()=>_.jsx(_.Fragment,{children:_.jsx(Ht,{keyApi:"useRecommendations",title:"Recommendations"})}),ci=()=>{const{movieType:n,id:o}=se(),{error:u}=pt(n,`/${n}/${o}`,o);return _.jsxs(Cr,{error:u,children:[_.jsx(Ma,{}),_.jsx(za,{}),_.jsx(ui,{}),_.jsx(li,{}),_.jsx(si,{})]})},yi=()=>_.jsx(_.Fragment,{children:_.jsx(ci,{})});export{yi as default}; +import{l as se,r as F,o as pt,p as Rr,q as Er,s as He,g as Tr,n as _,E as Ne,t as Vt,v as kr,m as Ue,I as Pe,u as $e,G as Dr,w as Lr,P as Ar,L as Ir,A as Mr,F as xr,x as jr,y as Wt,S as Ht,N as Cr}from"./index-cde6f15b.js";import{B as Nr,a as mt}from"./avatar-342a0f5c.js";const Ur=["trailer","clip","teaser"],$r=()=>{const{movieType:n,id:o}=se(),[u,l]=F.useState(!1),[g,w]=F.useState(null),{data:R,isError:k}=pt("trailer_key",`/${n}/${o}/videos`,o),O=(R==null?void 0:R.results.length)||g;return{startTrailer:F.useCallback(()=>{const $=(R==null?void 0:R.results.find(C=>Ur.includes(C.type.toLowerCase())))||(R==null?void 0:R.results[0]);$&&(w($.key),document.body.classList.add("overflow-hidden"),l(!0))},[R==null?void 0:R.results]),isPlayerShow:O,videoId:g,setVideoId:w,setShow:l,show:u,isError:k}};var qt={},Bt={},K={},Vr=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&&Wr(w,u.attrs),u.text&&(w.text=""+u.text);var R="onload"in w?vt:Hr;R(w,l),w.onload||vt(w,l),g.appendChild(w)};function Wr(n,o){for(var u in o)n.setAttribute(u,o[u])}function vt(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 Hr(n,o){n.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,o(null,n))}}var qr=function(o){return Br(o)&&!Fr(o)};function Br(n){return!!n&&typeof n=="object"}function Fr(n){var o=Object.prototype.toString.call(n);return o==="[object RegExp]"||o==="[object Date]"||Yr(n)}var Kr=typeof Symbol=="function"&&Symbol.for,zr=Kr?Symbol.for("react.element"):60103;function Yr(n){return n.$$typeof===zr}function Gr(n){return Array.isArray(n)?[]:{}}function De(n,o){return o.clone!==!1&&o.isMergeableObject(n)?be(Gr(n),n,o):n}function Xr(n,o,u){return n.concat(o).map(function(l){return De(l,u)})}function Zr(n,o){if(!o.customMerge)return be;var u=o.customMerge(n);return typeof u=="function"?u:be}function Qr(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(o){return Object.propertyIsEnumerable.call(n,o)}):[]}function _t(n){return Object.keys(n).concat(Qr(n))}function Ft(n,o){try{return o in n}catch{return!1}}function Jr(n,o){return Ft(n,o)&&!(Object.hasOwnProperty.call(n,o)&&Object.propertyIsEnumerable.call(n,o))}function en(n,o,u){var l={};return u.isMergeableObject(n)&&_t(n).forEach(function(g){l[g]=De(n[g],u)}),_t(o).forEach(function(g){Jr(n,g)||(Ft(n,g)&&u.isMergeableObject(o[g])?l[g]=Zr(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||Xr,u.isMergeableObject=u.isMergeableObject||qr,u.cloneUnlessOtherwiseSpecified=De;var l=Array.isArray(o),g=Array.isArray(n),w=l===g;return w?l?u.arrayMerge(n,o,u):en(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 tn=be,Kt=tn;Object.defineProperty(K,"__esModule",{value:!0});K.parseStartTime=dn;K.parseEndTime=hn;K.randomString=mn;K.queryString=vn;K.getSDK=_n;K.getConfig=gn;K.omit=Pn;K.callPlayer=bn;K.isMediaStream=On;K.isBlobUrl=wn;K.supportsWebKitPresentationMode=Sn;var rn=zt(Vr),nn=zt(Kt);function zt(n){return n&&n.__esModule?n:{default:n}}function on(n,o){return sn(n)||ln(n,o)||un(n,o)||an()}function an(){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 un(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);u"u"||!(Symbol.iterator in Object(n)))){var u=[],l=!0,g=!1,w=void 0;try{for(var R=n[Symbol.iterator](),k;!(l=(k=R.next()).done)&&(u.push(k.value),!(o&&u.length===o));l=!0);}catch(O){g=!0,w=O}finally{try{!l&&R.return!=null&&R.return()}finally{if(g)throw w}}return u}}function sn(n){if(Array.isArray(n))return n}var cn=/[?&#](?:start|t)=([0-9hms]+)/,fn=/[?&#]end=([0-9hms]+)/,lt=/(\d+)(h|m|s)/g,pn=/^\d+$/;function Yt(n,o){if(!(n instanceof Array)){var u=n.match(o);if(u){var l=u[1];if(l.match(lt))return yn(l);if(pn.test(l))return parseInt(l)}}}function yn(n){for(var o=0,u=lt.exec(n);u!==null;){var l=u,g=on(l,3),w=g[1],R=g[2];R==="h"&&(o+=parseInt(w,10)*60*60),R==="m"&&(o+=parseInt(w,10)*60),R==="s"&&(o+=parseInt(w,10)),u=lt.exec(n)}return o}function dn(n){return Yt(n,cn)}function hn(n){return Yt(n,fn)}function mn(){return Math.random().toString(36).substr(2,5)}function vn(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 _n(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]:rn.default,w=qe(o);return w&&l(w)?Promise.resolve(w):new Promise(function(R,k){if(_e[n]){_e[n].push({resolve:R,reject:k});return}_e[n]=[{resolve:R,reject:k}];var O=function($){_e[n].forEach(function(C){return C.resolve($)})};if(u){var D=window[u];window[u]=function(){D&&D(),O(qe(o))}}g(n,function(I){I?(_e[n].forEach(function($){return $.reject(I)}),_e[n]=null):u||O(qe(o))})})}function gn(n,o){return(0,nn.default)(o.config,n.config)}function Pn(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 H={};Object.defineProperty(H,"__esModule",{value:!0});H.canPlay=H.FLV_EXTENSIONS=H.DASH_EXTENSIONS=H.HLS_EXTENSIONS=H.VIDEO_EXTENSIONS=H.AUDIO_EXTENSIONS=H.MATCH_URL_KALTURA=H.MATCH_URL_VIDYARD=H.MATCH_URL_MIXCLOUD=H.MATCH_URL_DAILYMOTION=H.MATCH_URL_TWITCH_CHANNEL=H.MATCH_URL_TWITCH_VIDEO=H.MATCH_URL_WISTIA=H.MATCH_URL_STREAMABLE=H.MATCH_URL_FACEBOOK_WATCH=H.MATCH_URL_FACEBOOK=H.MATCH_URL_VIMEO=H.MATCH_URL_SOUNDCLOUD=H.MATCH_URL_YOUTUBE=void 0;var Pt=K;function Rn(n,o){var u;if(typeof Symbol>"u"||n[Symbol.iterator]==null){if(Array.isArray(n)||(u=En(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,R=!1,k;return{s:function(){u=n[Symbol.iterator]()},n:function(){var D=u.next();return w=D.done,D},e:function(D){R=!0,k=D},f:function(){try{!w&&u.return!=null&&u.return()}finally{if(R)throw k}}}}function En(n,o){if(n){if(typeof n=="string")return bt(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 bt(n,o)}}function bt(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,W=void 0;try{for(var x=y[Symbol.iterator](),B;!(f=(B=x.next()).done)&&(d.push(B.value),!(P&&d.length===P));f=!0);}catch(G){S=!0,W=G}finally{try{!f&&x.return!=null&&x.return()}finally{if(S)throw W}}return d}}function N(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_-]+)\/?/,b=/youtube-nocookie\.com/,E="https://www.youtube-nocookie.com",m=function(y){A(d,y);var P=V(d);function d(){var f;U(this,d);for(var S=arguments.length,W=new Array(S),x=0;x"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 A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function T(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var V="https://w.soundcloud.com/player/api.js",p="SC",h=function(a){C(r,a);var e=N(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 A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function T(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var V="https://player.vimeo.com/api/player.js",p="Vimeo",h=function(a){C(r,a);var e=N(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 A(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var T="https://connect.facebook.net/en_US/sdk.js",V="FB",p="fbAsyncInit",h="facebook-player-",a=function(e){$(t,e);var r=j(t);function t(){var i;O(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 M(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var A="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs",V=function(p){I(a,p);var h=C(a);function a(){var e;k(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 A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},A(e)}function T(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var V="https://fast.wistia.com/assets/external/E-v1.js",p="Wistia",h="wistia-player-",a=function(e){C(t,e);var r=N(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 A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},A(e)}function T(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var V="https://player.twitch.tv/js/embed/v1.js",p="Twitch",h="twitch-player-",a=function(e){C(t,e);var r=N(t);function t(){var i;D(this,t);for(var s=arguments.length,v=new Array(s),c=0;cc.length)&&(b=c.length);for(var E=0,m=new Array(b);E"u"||!(Symbol.iterator in Object(c)))){var E=[],m=!0,y=!1,P=void 0;try{for(var d=c[Symbol.iterator](),f;!(m=(f=d.next()).done)&&(E.push(f.value),!(b&&E.length===b));m=!0);}catch(S){y=!0,P=S}finally{try{!m&&d.return!=null&&d.return()}finally{if(y)throw P}}return E}}function N(c){if(Array.isArray(c))return c}function U(c,b){if(!(c instanceof b))throw new TypeError("Cannot call a class as a function")}function L(c,b){for(var E=0;E"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(E){return E.__proto__||Object.getPrototypeOf(E)},e(c)}function r(c,b,E){return b in c?Object.defineProperty(c,b,{value:E,enumerable:!0,configurable:!0,writable:!0}):c[b]=E,c}var t="https://api.dmcdn.net/all.js",i="DM",s="dmAsyncInit",v=function(c){A(E,c);var b=V(E);function E(){var m;U(this,E);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 A(a){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},A(a)}function T(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}var V="https://widget.mixcloud.com/media/js/widgetApi.js",p="Mixcloud",h=function(a){C(r,a);var e=N(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 A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},A(e)}function T(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var V="https://play.vidyard.com/embed/v4.js",p="VidyardV4",h="onVidyardAPI",a=function(e){C(t,e);var r=N(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 M(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var A="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs",V=function(p){I(a,p);var h=C(a);function a(){var e;k(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(m){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},M(m)}function A(m,y,P){return y in m?Object.defineProperty(m,y,{value:P,enumerable:!0,configurable:!0,writable:!0}):m[y]=P,m}var T=typeof navigator<"u",V=T&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,p=T&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||V)&&!window.MSStream,h=T&&/^((?!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]+)/,b="https://videodelivery.net/{id}/manifest/video.m3u8",E=function(m){$(P,m);var y=j(P);function P(){var d;O(this,P);for(var f=arguments.length,S=new Array(f),W=0;W0?W.end(W.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),W=this.getDuration();return S>W?W:S}},{key:"getSource",value:function(f){var S=this.shouldUseHLS(f),W=this.shouldUseDASH(f),x=this.shouldUseFLV(f);if(!(f instanceof Array||(0,l.isMediaStream)(f)||S||W||x))return v.test(f)?f.replace("www.dropbox.com","dl.dropboxusercontent.com"):f}},{key:"render",value:function(){var f=this.props,S=f.url,W=f.playing,x=f.loop,B=f.controls,G=f.muted,Y=f.config,z=f.width,Q=f.height,re=this.shouldUseAudio(this.props),ie=re?"audio":"video",me={width:z==="auto"?z:"100%",height:Q==="auto"?Q:"100%"};return u.default.createElement(ie,k({ref:this.ref,src:this.getSource(S),style:me,preload:"auto",autoPlay:W||void 0,controls:B,muted:G,loop:x},Y.attributes),S instanceof Array&&S.map(this.renderSourceElement),Y.tracks.map(this.renderTrack))}}]),P}(u.Component);n.default=E,A(E,"displayName","FilePlayer"),A(E,"canPlay",g.canPlay.file)}(tt)),tt}(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=F,u=K,l=H;function g(O){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(I){return typeof I}:g=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},g(O)}function w(){if(typeof WeakMap!="function")return null;var O=new WeakMap;return w=function(){return O},O}function R(O){if(O&&O.__esModule)return O;if(O===null||g(O)!=="object"&&typeof O!="function")return{default:O};var D=w();if(D&&D.has(O))return D.get(O);var I={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in O)if(Object.prototype.hasOwnProperty.call(O,C)){var j=$?Object.getOwnPropertyDescriptor(O,C):null;j&&(j.get||j.set)?Object.defineProperty(I,C,j):I[C]=O[C]}return I.default=O,D&&D.set(O,I),I}var k=[{key:"youtube",name:"YouTube",canPlay:l.canPlay.youtube,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(Dn())})})},{key:"soundcloud",name:"SoundCloud",canPlay:l.canPlay.soundcloud,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(Ln())})})},{key:"vimeo",name:"Vimeo",canPlay:l.canPlay.vimeo,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(An())})})},{key:"facebook",name:"Facebook",canPlay:l.canPlay.facebook,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(In())})})},{key:"streamable",name:"Streamable",canPlay:l.canPlay.streamable,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(Mn())})})},{key:"wistia",name:"Wistia",canPlay:l.canPlay.wistia,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(xn())})})},{key:"twitch",name:"Twitch",canPlay:l.canPlay.twitch,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(jn())})})},{key:"dailymotion",name:"DailyMotion",canPlay:l.canPlay.dailymotion,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(Cn())})})},{key:"mixcloud",name:"Mixcloud",canPlay:l.canPlay.mixcloud,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(Nn())})})},{key:"vidyard",name:"Vidyard",canPlay:l.canPlay.vidyard,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R(Un())})})},{key:"kaltura",name:"Kaltura",canPlay:l.canPlay.kaltura,lazyPlayer:(0,o.lazy)(function(){return Promise.resolve().then(function(){return R($n())})})},{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 R(Vn())})})}];n.default=k})(Bt);var Ve={};const Wn=Rr(Er);var Hn=typeof Element<"u",qn=typeof Map=="function",Bn=typeof Set=="function",Fn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function xe(n,o){if(n===o)return!0;if(n&&o&&typeof n=="object"&&typeof o=="object"){if(n.constructor!==o.constructor)return!1;var u,l,g;if(Array.isArray(n)){if(u=n.length,u!=o.length)return!1;for(l=u;l--!==0;)if(!xe(n[l],o[l]))return!1;return!0}var w;if(qn&&n instanceof Map&&o instanceof Map){if(n.size!==o.size)return!1;for(w=n.entries();!(l=w.next()).done;)if(!o.has(l.value[0]))return!1;for(w=n.entries();!(l=w.next()).done;)if(!xe(l.value[1],o.get(l.value[0])))return!1;return!0}if(Bn&&n instanceof Set&&o instanceof Set){if(n.size!==o.size)return!1;for(w=n.entries();!(l=w.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(Fn&&ArrayBuffer.isView(n)&&ArrayBuffer.isView(o)){if(u=n.length,u!=o.length)return!1;for(l=u;l--!==0;)if(n[l]!==o[l])return!1;return!0}if(n.constructor===RegExp)return n.source===o.source&&n.flags===o.flags;if(n.valueOf!==Object.prototype.valueOf&&typeof n.valueOf=="function"&&typeof o.valueOf=="function")return n.valueOf()===o.valueOf();if(n.toString!==Object.prototype.toString&&typeof n.toString=="function"&&typeof o.toString=="function")return n.toString()===o.toString();if(g=Object.keys(n),u=g.length,u!==Object.keys(o).length)return!1;for(l=u;l--!==0;)if(!Object.prototype.hasOwnProperty.call(o,g[l]))return!1;if(Hn&&n instanceof Element)return!1;for(l=u;l--!==0;)if(!((g[l]==="_owner"||g[l]==="__v"||g[l]==="__o")&&n.$$typeof)&&!xe(n[g[l]],o[g[l]]))return!1;return!0}return n!==n&&o!==o}var sr=function(o,u){try{return xe(o,u)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},he={},cr={exports:{}},Kn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zn=Kn,Yn=zn;function fr(){}function pr(){}pr.resetWarningCache=fr;var Gn=function(){function n(l,g,w,R,k,O){if(O!==Yn){var D=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 D.name="Invariant Violation",D}}n.isRequired=n;function o(){return n}var u={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:pr,resetWarningCache:fr};return u.PropTypes=u,u};cr.exports=Gn();var Xn=cr.exports;Object.defineProperty(he,"__esModule",{value:!0});he.defaultProps=he.propTypes=void 0;var pe=Zn(Xn);function Zn(n){return n&&n.__esModule?n:{default:n}}var ne=pe.default.string,ae=pe.default.bool,ge=pe.default.number,rt=pe.default.array,Se=pe.default.oneOfType,ue=pe.default.shape,oe=pe.default.object,Z=pe.default.func,xt=pe.default.node,Qn={url:Se([ne,rt,oe]),playing:ae,loop:ae,controls:ae,volume:ge,muted:ae,playbackRate:ge,width:Se([ne,ge]),height:Se([ne,ge]),style:oe,progressInterval:ge,playsinline:ae,pip:ae,stopOnUnmount:ae,light:Se([ae,ne,oe]),playIcon:xt,previewTabIndex:ge,fallback:xt,oEmbedUrl:ne,wrapper:Se([ne,Z,ue({render:Z.isRequired})]),config:ue({soundcloud:ue({options:oe}),youtube:ue({playerVars:oe,embedOptions:oe,onUnstarted:Z}),facebook:ue({appId:ne,version:ne,playerId:ne,attributes:oe}),dailymotion:ue({params:oe}),vimeo:ue({playerOptions:oe,title:ne}),file:ue({attributes:oe,tracks:rt,forceVideo:ae,forceAudio:ae,forceHLS:ae,forceSafariHLS:ae,forceDASH:ae,forceFLV:ae,hlsOptions:oe,hlsVersion:ne,dashVersion:ne,flvVersion:ne}),wistia:ue({options:oe,playerId:ne,customControls:rt}),mixcloud:ue({options:oe}),twitch:ue({options:oe,playerId:ne}),vidyard:ue({options:oe})}),onReady:Z,onStart:Z,onPlay:Z,onPause:Z,onBuffer:Z,onBufferEnd:Z,onEnded:Z,onError:Z,onDuration:Z,onSeek:Z,onPlaybackRateChange:Z,onProgress:Z,onClickPreview:Z,onEnablePIP:Z,onDisablePIP:Z};he.propTypes=Qn;var J=function(){},Jn={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:J},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0"},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:J,onStart:J,onPlay:J,onPause:J,onBuffer:J,onBufferEnd:J,onEnded:J,onError:J,onDuration:J,onSeek:J,onPlaybackRateChange:J,onProgress:J,onClickPreview:J,onEnablePIP:J,onDisablePIP:J};he.defaultProps=Jn;var yr={};(function(n){function o(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(r){return typeof r}:o=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},o(a)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=O(F),l=R(sr),g=he,w=K;function R(a){return a&&a.__esModule?a:{default:a}}function k(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return k=function(){return a},a}function O(a){if(a&&a.__esModule)return a;if(a===null||o(a)!=="object"&&typeof a!="function")return{default:a};var e=k();if(e&&e.has(a))return e.get(a);var r={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var s=t?Object.getOwnPropertyDescriptor(a,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=a[i]}return r.default=a,e&&e.set(a,r),r}function D(){return D=Object.assign||function(a){for(var e=1;e"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 T(a){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},T(a)}function V(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){j(r,a);var e=U(r);function r(){var t;I(this,r);for(var i=arguments.length,s=new Array(i),v=0;v0&&i<1;if(c){var b=this.player.getDuration();if(!b){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(b*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,V(h,"displayName","Player"),V(h,"propTypes",g.propTypes),V(h,"defaultProps",g.defaultProps)})(yr);var nt={},jt;function eo(){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(F);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 R(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 M(p,h,a){return h in p?Object.defineProperty(p,h,{value:a,enumerable:!0,configurable:!0,writable:!0}):p[h]=a,p}var A="64px",T={},V=function(p){I(a,p);var h=C(a);function a(){var e;k(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 Ce(n){return Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},Ce(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 ho=(0,de.lazy)(function(){return Promise.resolve().then(function(){return hr(eo())})}),mo=typeof window<"u"&&window.document,vo=typeof He<"u"&&He.window&&He.window.document,_o=Object.keys(Ee.propTypes),go=mo||vo?de.Suspense:function(){return null},Re=[],Po=function(o,u){var l,g;return g=l=function(w){co(k,w);var R=fo(k);function k(){var O;lo(this,k);for(var D=arguments.length,I=new Array(D),$=0;$0&&arguments[0]!==void 0?arguments[0]:"player";return O.player?O.player.getInternalPlayer(C):null}),X(ee(O),"seekTo",function(C,j){if(!O.player)return null;O.player.seekTo(C,j)}),X(ee(O),"handleReady",function(){O.props.onReady(ee(O))}),X(ee(O),"getActivePlayer",(0,ot.default)(function(C){for(var j=0,N=[].concat(Re,at(o));j{const w=()=>{o(!1),document.body.classList.remove("overflow-hidden"),l(null)};return _.jsxs("div",{className:`${Me.video} ${n?Me.visible:""}`,children:[_.jsx("div",{className:Me["opacity-layer"],onClick:w}),_.jsxs("div",{className:Me.player,children:[_.jsx(Nr,{close:w}),g?_.jsx(Ne,{classname:"error-trailer",children:"Video not found"}):_.jsx(bo,{controls:!0,height:"100%",playing:!0,url:`https://www.youtube.com/watch?v=${u}`,width:"100%"})]})]})}),Eo="_play_1h3ce_1",To="_title_1h3ce_15",ko="_triangle_1h3ce_19",Do="_circle_1h3ce_26",Lo="_play__btn_1h3ce_32",Ao="_text_1h3ce_32",Io="_trailorPlay_1h3ce_1",ke={play:Eo,title:To,triangle:ko,circle:Do,play__btn:Lo,text:Ao,trailorPlay:Io,"play-item":"_play-item_1h3ce_76"},Mo=({onClick:n})=>_.jsx("button",{className:ke.play__btn,title:"Watch Trailer",onClick:n,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"})]})}),mr=({classname:n})=>{const{startTrailer:o,isPlayerShow:u,videoId:l,setVideoId:g,setShow:w,show:R,isError:k}=$r();return _.jsx(_.Fragment,{children:u?_.jsxs(_.Fragment,{children:[" ",_.jsxs("div",{className:ke[n],onClick:o,children:[_.jsx(Mo,{}),_.jsx("span",{className:ke.title,children:"Watch Trailer"})]}),_.jsx(Ro,{isError:k,setShow:w,setVideoId:g,show:R,videoId:l})]}):null})},xo="_info_gv81z_1",jo="_error_gv81z_9",Co="_text_gv81z_20",No="_bold_gv81z_25",Uo="_info__content_gv81z_29",ye={info:xo,error:jo,"border-none":"_border-none_gv81z_14",text:Co,bold:No,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:`${ye.info} ${ye[g]}`,children:[_.jsx("span",{className:`${ye.text} ${ye.bold}`,children:o}),_.jsx("div",{className:ye.info__content,children:l?n==null?void 0:n.map((R,k)=>_.jsxs("span",{className:ye.text,children:[R[u]||R,(n==null?void 0:n.length)-1!==k&&", "]},k)):_.jsx("span",{className:ye.text,children:w})})]}):null}),$o="_about_k2wef_1",Vo="_company_k2wef_9",Wo="_company__logo_k2wef_16",Ho="_profit_k2wef_49",qo="_item_k2wef_56",Bo="_item__title_k2wef_56",Fo="_item__amount_k2wef_59",Ko="_item__amount_deficit_k2wef_62",zo="_item__amount_profit_k2wef_65",Yo="_item__amount_budget_k2wef_69",te={about:$o,"info-group":"_info-group_k2wef_4",company:Vo,company__logo:Wo,"icon-placeholder":"_icon-placeholder_k2wef_35",profit:Ho,item:qo,item__title:Bo,item__amount:Fo,item__amount_deficit:Ko,item__amount_profit:zo,item__amount_budget: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 Vt(n[this.prop]).format("MMM D, YYYY")}},{title:"Runtime:",prop:"runtime",list:!1,keyName:"",classname:"",child(n){return kr(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=F.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="/movix/assets/not_image-4020c0b8.svg",ea=F.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=F.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=F.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),R={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(k=>_.jsx(Le,{classname:k.classname,data:R[k.prop],keyName:k.keyName,list:k.list,title:k.title,children:k.child?k.child(R):null},k.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_178x9_1",ia="_backdrop_178x9_16",ua="_content_178x9_47",la="_indicators_178x9_52",sa="_poster_178x9_64",ca="_poster__img_178x9_67",fa="_describe_178x9_77",pa="_title_178x9_80",ya="_subtitle_178x9_94",da="_row_178x9_107",ha="_overview_178x9_113",ma="_heading_178x9_117",va="_description_178x9_121",_a="_skeleton_178x9_127",ga="_content__indicators_178x9_136",Pa="_left_178x9_148",ba="_right_178x9_164",Oa="_genres_178x9_179",wa="_row_short_178x9_186",Sa="_group_178x9_211",Ra="_circle_178x9_217",Ea="_describe__title_178x9_233",Ta="_describe__text_178x9_238",q={details:aa,backdrop:ia,"opacity-layer":"_opacity-layer_178x9_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_178x9_131",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} (${Vt(o).format("YYYY")})`,_.jsx("span",{className:q.subtitle,children:l})]})})}),Da=F.memo(({data:n})=>{const{homepage:o,name:u,title:l,genres:g,release_date:w,tagline:R,vote_average:k}=n,O=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:R,title:u||l}),_.jsx(Dr,{classname:"genres_single-movie",genresMovie:O}),_.jsxs("div",{className:q.row,children:[_.jsx(Lr,{classname:"rating_single-movie",rating:k.toFixed(1)}),_.jsx(mr,{classname:"play"})]}),_.jsx(oa,{})]})})}),La="_poster_155qv_1",Aa="_poster__img_155qv_36",it={poster:La,poster__img:Aa},vr=F.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:Ar})})}),Ia=()=>_.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`})]})]})}),Ma=()=>{const{movieType:n,id:o}=se(),u=Ue(O=>{var D;return(D=O.urlBaseForImages.url)==null?void 0:D.backdrop}),{data:l,isLoading:g,isError:w,error:R,isFetching:k}=pt(n,`/${n}/${o}`,o);return _.jsx(Ne,{classname:"main",error:R,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||k?_.jsx(Ia,{}):_.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})]})]})]})]})})},xa="_item_dzlp8_1",ja="_avatar_dzlp8_11",Ca="_avatar_loaded_dzlp8_21",Na="_name_dzlp8_42",Ua="_character_dzlp8_54",$a="_skeletons__item_dzlp8_70",Va="_circle_dzlp8_85",Wa="_row_dzlp8_91",Ha="_row_last_dzlp8_97",ce={item:xa,avatar:ja,avatar_loaded:Ca,name:Na,character:Ua,skeletons__item:$a,circle:Va,row:Wa,row_last:Ha},qa=({data:n,style:o})=>{const u=Ue(O=>{var D;return(D=O.urlBaseForImages.url)==null?void 0:D.profile}),{id:l,profile_path:g,name:w,character:R}=n,k=F.useRef(null);return _.jsxs("li",{className:ce.item,style:o,children:[_.jsx(Ir,{className:"link",to:`/person/${l}`}),_.jsx("p",{className:ce.avatar,ref:k,style:{background:`url(${g?u+g:mt}) center center / cover no-repeat`},children:_.jsx(Pe,{src:g?u+g:mt,onLoad:()=>k.current.className+=" "+ce.avatar_loaded})}),_.jsx("p",{className:ce.name,children:w}),_.jsx("p",{className:ce.character,children:R})]})},ut=15,Ba=F.memo(({dataList:n})=>_.jsx(_.Fragment,{children:_.jsx(Mr,{disableHeight:!0,children:({height:o=300,width:u})=>_.jsx(xr,{className:"List List_actors",height:o,itemCount:n.length,itemSize:190,layout:"horizontal",innerElementType:"ul",width:u,children:({index:l,style:g})=>_.jsx(qa,{data:n[l],style:{...g,left:g.left+ut,width:g.width-ut,height:g.height-ut*2}})})})})),Fa=jr(Ba),Ka=()=>{const n=+getComputedStyle(document.querySelector(":root")).getPropertyValue("--count-skeletons-actors");return _.jsx(_.Fragment,{children:Array(n).fill("skeleton").map((o,u)=>_.jsxs("div",{className:`${ce.skeletons__item}`,children:[_.jsx("div",{className:`${ce.circle} skeleton`}),_.jsx("div",{className:`${ce.row} skeleton`}),_.jsx("div",{className:`${ce.row_last} skeleton`})]},u))})},za=Wt(Ka),Ya=()=>{const{movieType:n,id:o}=se(),{actors:u,isError:l,error:g,isLoading:w}=$e().useCrew(n,o);return _.jsxs(Ne,{error:g,isError:l,title:"Top actors",children:[_.jsx(za,{isLoading:w}),_.jsx(Fa,{data:u,dataList:u,title:"Top actors",classList:"List_actors"})]})},Ga="_trailers_115uo_1",Xa="_video_115uo_7",Za="_video__thumbnail_115uo_20",Qa="_video__thumbnail_loaded_115uo_28",Ja="_video__title_115uo_41",ei="_skeletons_115uo_58",ti="_thumb_115uo_88",ri="_row_115uo_95",fe={trailers:Ga,video:Xa,video__thumbnail:Za,video__thumbnail_loaded:Qa,video__title:Ja,skeletons:ei,"skeleton-card":"_skeleton-card_115uo_74",thumb:ti,row:ri},ni=()=>{const n=+getComputedStyle(document.querySelector(":root")).getPropertyValue("--count-skeletons-trailers");return _.jsx("div",{className:fe.skeletons,children:new Array(n).fill("skeleton").map((o,u)=>_.jsxs("div",{className:fe["skeleton-card"],children:[_.jsx("div",{className:`skeleton ${fe.thumb}`}),_.jsx("div",{className:`skeleton ${fe.row}`})]},u))})},oi=Wt(ni),ai=F.memo(({data:n,style:o})=>{const{id:u,key:l,name:g}=n,w=F.useRef(null);return _.jsxs("li",{className:fe.video,style:o,children:[_.jsxs("div",{ref:w,className:fe.video__thumbnail,style:{background:`url(https://img.youtube.com/vi/${l}/mqdefault.jpg) center center / cover no-repeat`},children:[_.jsx(Pe,{src:`https://img.youtube.com/vi/${l}/mqdefault.jpg`,onLoad:()=>w.current.className+=" "+fe.video__thumbnail_loaded}),_.jsx(mr,{classname:"play-item"})]}),_.jsx("div",{className:fe.video__title,children:g})]},u)}),ii=F.memo(({dataList:n})=>_.jsx("ul",{className:`${fe.trailers} wrapper`,children:n==null?void 0:n.map(o=>_.jsx(ai,{data:o},o.id))})),ui=()=>{const{movieType:n,id:o}=se(),{data:u,isLoading:l,isError:g,error:w}=$e().useTrailersList(n,o);return _.jsxs(Ne,{error:w,isError:g,title:"Official videos",children:[_.jsx(oi,{isLoading:l}),_.jsx(ii,{data:u==null?void 0:u.results,dataList:u==null?void 0:u.results,isLoading:l,title:"Official videos"})]})},li=()=>{const{movieType:n}=se(),o=n==="tv"?"Similar TV Shows":"Similar Movies";return _.jsx(Ht,{keyApi:"useSimilar",title:o})},si=()=>_.jsx(_.Fragment,{children:_.jsx(Ht,{keyApi:"useRecommendations",title:"Recommendations"})}),ci=()=>{const{movieType:n,id:o}=se(),{error:u}=pt(n,`/${n}/${o}`,o);return _.jsxs(Cr,{error:u,children:[_.jsx(Ma,{}),_.jsx(Ya,{}),_.jsx(ui,{}),_.jsx(li,{}),_.jsx(si,{})]})},yi=()=>_.jsx(_.Fragment,{children:_.jsx(ci,{})});export{yi as default}; diff --git a/assets/NotFoundPage-203d4425.js b/assets/NotFoundPage-203d4425.js new file mode 100644 index 0000000..8b19761 --- /dev/null +++ b/assets/NotFoundPage-203d4425.js @@ -0,0 +1 @@ +import{n as o,N as t}from"./index-cde6f15b.js";const a=()=>o.jsx(t,{});export{a as default}; diff --git a/assets/NotFoundPage-88b6d385.js b/assets/NotFoundPage-88b6d385.js deleted file mode 100644 index ab61bf1..0000000 --- a/assets/NotFoundPage-88b6d385.js +++ /dev/null @@ -1 +0,0 @@ -import{n as o,N as t}from"./index-3c34359a.js";const a=()=>o.jsx(t,{});export{a as default}; diff --git a/assets/PersonPage-1b00450a.js b/assets/PersonPage-1b00450a.js deleted file mode 100644 index 9f42a98..0000000 --- a/assets/PersonPage-1b00450a.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e,z as x,l as b,B,r as c,u as v,E as $,C as Q,D,V as L,H as I,J as Y,K as F,m as T,I as y,t as w,L as S,N as U}from"./index-3c34359a.js";import{B as C}from"./index-80f42cfd.js";import{B as V,a as W}from"./avatar-7ac2a537.js";const G="data:image/webp;base64,UklGRpYAAABXRUJQVlA4WAoAAAAQAAAAFwAAFwAAQUxQSEYAAAABLyAQSPEomR4REQNWkWQ1WpIDBOR/6iSchrf+zZAxENH/CcCLdsoBQtIMJo8IaUaTR4RmYnKmKfeNgq8VYjr4qTEOBc8CVlA4ICoAAADwAgCdASoYABgAPpE6mEeloyKhMAgAsBIJaQAAe8jIAAD+9/D6/v1gAAA=",J="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]===""?J:G})]})}),H=({clearSort:o})=>e.jsx(C,{classname:`${x["sort-btn"]} ${x["sort-btn_clear"]}`,onClick:()=>o(),children:e.jsx("span",{children:"Clear sort"})}),O="_profile_1k4ex_15",K="_profile__content_1k4ex_19",q="_profile__content__photo_1k4ex_33",z="_profile__content__info_1k4ex_62",X="_name_1k4ex_72",Z="_text_1k4ex_77",ee="_biography_short_1k4ex_84",se="_more__btn_1k4ex_96",ne="_svg_1k4ex_115",oe="_profile__content__info_skeleton_1k4ex_126",te="_biography_skeleton_1k4ex_151",ie="_modal_1k4ex_184",le="_modal__content_1k4ex_193",re="_modal__text_1k4ex_221",ae="_heading_1k4ex_236",ce="_link_pink_1k4ex_259",n={"opacity-backdrop":"_opacity-backdrop_1k4ex_1",profile:O,profile__content:K,profile__content__photo:q,profile__content__info:z,"info-item":"_info-item_1k4ex_67","info-span":"_info-span_1k4ex_68",name:X,text:Z,biography_short:ee,more__btn:se,svg:ne,profile__content__info_skeleton:oe,"info-item_skeleton":"_info-item_skeleton_1k4ex_130",biography_skeleton:te,"btn__group-skeleton":"_btn__group-skeleton_1k4ex_156","btn__sort-skeleton":"_btn__sort-skeleton_1k4ex_162",modal:ie,modal__content:le,modal__text:re,heading:ae,"container-sort":"_container-sort_1k4ex_251",link_pink:ce,"grid_person-movies":"_grid_person-movies_1k4ex_264"},_e=({endpoints:o,media_type:s})=>{const{id:l}=b(),{endpoint:r,onTabChange:m}=B(o),[_,p]=c.useState([]),[t,d]=c.useState({title:"",date:"",rating:""}),{data:i,isLoading:f,isError:j,error:E,isFetching:he}=v().useVideoCreditsPerson(l,r[0],{onSuccess:a=>{a!=null&&a.cast&&p(a.cast)}}),k=a=>{const h=t[a.target.name]==="down"||t[a.target.name]===""?"up":"down";d(A=>({...A,[a.target.name]:h}))},M=()=>{d({title:"",date:"",rating:""})};return c.useEffect(()=>()=>d(t),[r]),c.useEffect(()=>{(()=>{const h=r[0]==="movie"?"title":"name",A=r[0]==="movie"?"release_date":"first_air_date",P="vote_average",R=i==null?void 0:i.cast.toSorted((g,N)=>I(g,N,h,t.title)||Y(g,N,A,t.date)||F(g,N,P,t.rating));p(R)})()},[t,r,i==null?void 0:i.cast]),e.jsxs($,{error:E,isError:j,title:"Profile",children:[e.jsx(Q,{isLoading:f,tabsNames:o}),e.jsxs("div",{className:"wrapper",children:[e.jsxs("div",{className:n["container-sort"],children:[e.jsx(u,{direction:t,name:"title",toggleDirection:k}),e.jsx(u,{direction:t,name:"date",toggleDirection:k}),e.jsx(u,{direction:t,name:"rating",toggleDirection:k}),e.jsx(H,{clearSort:M})]}),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:_==null?void 0:_.map((a,h)=>e.jsx(L,{classnameCard:"card_grid",data:a,endpoint:r},h))})]})]})},me=c.memo(({data:o})=>{const s=c.useRef(null),l=c.useRef(null),[r,m]=c.useState(!1),[_,p]=c.useState(!1),t=()=>{m(!0),document.body.classList.add("overflow-hidden")},d=i=>{i.target.id!=="modal-biography"&&(m(!1),document.body.classList.remove("overflow-hidden"))};return c.useEffect(()=>{var f,j;const i=(f=s==null?void 0:s.current)==null?void 0:f.getBoundingClientRect();p(((j=s==null?void 0:s.current)==null?void 0:j.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:d,children:e.jsxs("div",{className:n.modal__content,children:[e.jsx(V,{close:d}),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`})]})]}),de=()=>{const{id:o}=b(),{data:s,isLoading:l,isError:r,error:m}=v().usePerson(o),_=T(p=>{var t;return(t=p.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):W})}),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(me,{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]})]})]})})},xe=()=>{const{id:o}=b(),{endpoint:s}=B(["movie","tv"]),{error:l}=v().useVideoCreditsPerson(o,s[0]);return e.jsx(U,{error:l,children:e.jsxs("div",{className:"main",children:[e.jsx(de,{}),e.jsx(_e,{endpoints:["movie","tv"],media_type:["Movies","TV Shows"]})]})})},Ae=()=>e.jsx(xe,{});export{Ae as default}; diff --git a/assets/PersonPage-4f494bc7.js b/assets/PersonPage-4f494bc7.js new file mode 100644 index 0000000..0914006 --- /dev/null +++ b/assets/PersonPage-4f494bc7.js @@ -0,0 +1 @@ +import{n as e,z as d,l as k,B as C,r as m,u,C as M,D as L,H as Q,E,J as R,K as I,V as T,m as Y,I as v,t as S,L as w,N as F}from"./index-cde6f15b.js";import{B as $}from"./index-e1983a32.js";import{B as U,a as V}from"./avatar-342a0f5c.js";const G="data:image/webp;base64,UklGRpYAAABXRUJQVlA4WAoAAAAQAAAAFwAAFwAAQUxQSEYAAAABLyAQSPEomR4REQNWkWQ1WpIDBOR/6iSchrf+zZAxENH/CcCLdsoBQtIMJo8IaUaTR4RmYnKmKfeNgq8VYjr4qTEOBc8CVlA4ICoAAADwAgCdASoYABgAPpE6mEeloyKhMAgAsBIJaQAAe8jIAAD+9/D6/v1gAAA=",W="data:image/webp;base64,UklGRpoAAABXRUJQVlA4WAoAAAAQAAAAFwAAFwAAQUxQSEgAAAABLyAQSPEomR4REQMGsW1FecMrQARQA1hBE7C9/mk+a4GI/k8ATvxdR9CDJokASvkczDt5WkjoTUCTaHUuaWJH55LGns63a3NWUDggLAAAAPACAJ0BKhgAGAA+kTqXR6WjIiEwCACwEglpAAB7yMgAAP730+FQ3/7qaAAA",b=({toggleDirection:t,name:s,direction:n})=>e.jsx("div",{className:d["btn-wrapper"],children:e.jsxs($,{classname:`${d["sort-btn"]} ${n[s]?"":d["sort-btn_inactive"]}`,name:s,onClick:t,children:[e.jsx("span",{children:s}),e.jsx("img",{alt:"Sort",className:d["sort-btn__img"],src:n[s]==="up"||n[s]===""?W:G})]})}),J=({clearSort:t})=>e.jsx($,{classname:`${d["sort-btn"]} ${d["sort-btn_clear"]}`,onClick:()=>t(),children:e.jsx("span",{children:"Clear sort"})}),O=t=>{const{id:s}=k(),{endpoint:n,onTabChange:r}=C(t),[_,l]=m.useState([]),[i,p]=m.useState({title:"",date:"",rating:""}),{data:a,isLoading:x,isError:h,error:f}=u().useVideoCreditsPerson(s,n[0],{onSuccess:c=>{c!=null&&c.cast&&l(c.cast)}}),j=c=>{const A=i[c.target.name]==="down"||i[c.target.name]===""?"up":"down";p(g=>({...g,[c.target.name]:A}))},B=()=>{p({title:"",date:"",rating:""})};return m.useEffect(()=>()=>p(i),[n]),m.useEffect(()=>{(()=>{const A=n[0]==="movie"?"title":"name",g=n[0]==="movie"?"release_date":"first_air_date",D="vote_average",P=a==null?void 0:a.cast.toSorted((y,N)=>M(y,N,A,i.title)||L(y,N,g,i.date)||Q(y,N,D,i.rating));l(P)})()},[i,n,a==null?void 0:a.cast]),{videos:_,toggleDirection:j,clearSort:B,isLoading:x,isError:h,error:f,direction:i,onTabChange:r,endpoint:n}},H="_profile_12ypp_15",K="_profile__content_12ypp_19",q="_profile__content__photo_12ypp_33",z="_profile__content__info_12ypp_62",X="_name_12ypp_72",Z="_text_12ypp_77",ee="_biography_short_12ypp_84",se="_biography_12ypp_84",oe="_more__btn_12ypp_96",ne="_profile__content__info_skeleton_12ypp_126",te="_biography_skeleton_12ypp_151",ie="_modal_12ypp_184",re="_modal__content_12ypp_193",le="_modal__text_12ypp_221",ae="_heading_12ypp_236",ce="_link_pink_12ypp_259",o={"opacity-backdrop":"_opacity-backdrop_12ypp_1",profile:H,profile__content:K,profile__content__photo:q,profile__content__info:z,"info-item":"_info-item_12ypp_67","info-span":"_info-span_12ypp_68",name:X,text:Z,biography_short:ee,biography:se,more__btn:oe,profile__content__info_skeleton:ne,"info-item_skeleton":"_info-item_skeleton_12ypp_130",biography_skeleton:te,"btn__group-skeleton":"_btn__group-skeleton_12ypp_156","btn__sort-skeleton":"_btn__sort-skeleton_12ypp_162",modal:ie,modal__content:re,modal__text:le,heading:ae,"container-sort":"_container-sort_12ypp_251",link_pink:ce,"grid_person-movies":"_grid_person-movies_12ypp_273"},_e=({endpoints:t,media_type:s})=>{const{videos:n,toggleDirection:r,clearSort:_,isLoading:l,isError:i,error:p,direction:a,onTabChange:x,endpoint:h}=O(t);return e.jsxs(E,{error:p,isError:i,title:"Profile",children:[e.jsx(R,{isLoading:l,tabsNames:t}),e.jsxs("div",{className:"wrapper",children:[e.jsxs("div",{className:o["container-sort"],children:[e.jsx(b,{direction:a,name:"title",toggleDirection:r}),e.jsx(b,{direction:a,name:"date",toggleDirection:r}),e.jsx(b,{direction:a,name:"rating",toggleDirection:r}),e.jsx(J,{clearSort:_})]}),e.jsxs("div",{className:o.heading,children:[e.jsx("h2",{className:"title-article",children:h[0]==="movie"?"Movies":"TV Show"}),e.jsx(I,{data:s,onTabChange:x})]}),e.jsx("div",{className:`grid ${o["grid_person-movies"]}`,children:n==null?void 0:n.map((f,j)=>e.jsx(T,{classnameCard:"card_grid",data:f,endpoint:h},j))})]})]})},pe=()=>{const[t,s]=m.useState(!1),n=()=>{s(!0),document.body.classList.add("overflow-hidden")},r=l=>{l.target.id!=="modal-biography"&&(s(!1),document.body.classList.remove("overflow-hidden"))},_=l=>{l.key==="Escape"&&(s(!1),document.body.classList.remove("overflow-hidden"))};return m.useEffect(()=>(document.body.addEventListener("keydown",_),()=>document.body.removeEventListener("keydown",_)),[]),{openModal:n,closeModal:r,open:t}},me=m.memo(({data:t})=>{const{openModal:s,closeModal:n,open:r}=pe();return e.jsxs(e.Fragment,{children:[t?e.jsxs("div",{className:o.biography,children:[e.jsxs("p",{className:`${o["info-item"]} ${o.biography_short}`,children:[e.jsx("span",{className:`${o["info-span"]}`,children:e.jsx("span",{className:o.name,children:"Biography: "})})," ",e.jsx("span",{className:`${o.text} ${o.biography_content}`,children:t})]}),e.jsx("button",{className:o.more__btn,title:"Read more",onClick:s,children:"Read more"})]}):null,r?e.jsx("div",{className:o.modal,id:"modal",onClick:n,children:e.jsxs("div",{className:o.modal__content,children:[e.jsx(U,{close:n}),e.jsx("pre",{className:o.modal__text,id:"modal-biography",children:t})]})}):null]})}),de=()=>e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:o.profile__content,children:[e.jsx("div",{className:`${o.profile__content__photo} skeleton`}),e.jsxs("div",{className:`${o.profile__content__info} ${o.profile__content__info_skeleton}`,children:[Array(6).fill("skeleton").map((t,s)=>e.jsx("p",{className:`${o["info-item"]} ${o["info-item_skeleton"]} skeleton`},s)),e.jsx("p",{className:`${o.biography_skeleton} skeleton`}),e.jsx("p",{className:`${o["info-item"]} ${o["info-item_skeleton"]} skeleton`})]})]}),e.jsxs("div",{className:o["btn__group-skeleton"],children:[e.jsx("div",{className:`${o["btn__sort-skeleton"]} skeleton`}),e.jsx("div",{className:`${o["btn__sort-skeleton"]} skeleton`}),e.jsx("div",{className:`${o["btn__sort-skeleton"]} skeleton`}),e.jsx("div",{className:`${o["btn__sort-skeleton"]} skeleton`})]})]}),he=()=>{const{id:t}=k(),{data:s,isLoading:n,isError:r,error:_}=u().usePerson(t),l=Y(i=>{var p;return(p=i.urlBaseForImages.url)==null?void 0:p.profile});return e.jsx(E,{classname:"main",error:_,isError:r,title:"Profile",children:e.jsxs("div",{className:`${o.profile} wrapper`,children:[e.jsx("div",{className:o["opacity-backdrop"],children:e.jsx(v,{src:s!=null&&s.profile_path?l+(s==null?void 0:s.profile_path):null})}),e.jsx("h1",{className:"title-article",children:"Profile"}),n?e.jsx(de,{}):e.jsxs("div",{className:o.profile__content,children:[e.jsx("div",{className:o.profile__content__photo,children:e.jsx(v,{src:s!=null&&s.profile_path?l+(s==null?void 0:s.profile_path):V})}),e.jsxs("div",{className:o.profile__content__info,children:[e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Name:"}),e.jsx("span",{className:o.text,children:s==null?void 0:s.name})]}),e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Gender:"}),e.jsx("span",{className:o.text,children:(s==null?void 0:s.gender)===1?"Female":"Male"})]}),s!=null&&s.birthday?e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Birthday: "}),e.jsx("span",{className:o.text,children:S(s==null?void 0:s.birthday).format("MMM D, YYYY")})]}):null,s!=null&&s.deathday?e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Deathday: "}),e.jsx("span",{className:o.text,children:S(s==null?void 0:s.deathday).format("MMM D, YYYY")})]}):null,s!=null&&s.imdb_id?e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Imdb_id : "}),e.jsx("span",{className:o.text,children:e.jsxs(w,{to:`https://www.imdb.com/name/${s.imdb_id}`,className:o.link_pink,title:"Go to imdb.com",children:["ID ",s.imdb_id]})})]}):null,s!=null&&s.place_of_birth?e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Place of birth: "}),e.jsx("span",{className:o.text,children:s==null?void 0:s.place_of_birth})]}):null,s!=null&&s.homepage?e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Homepage: "}),e.jsx("span",{className:o.text,children:e.jsx(w,{className:o.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(me,{data:s==null?void 0:s.biography}),s!=null&&s.popularity?e.jsxs("p",{className:o["info-item"],children:[e.jsx("span",{className:o.name,children:"Popularity:"}),e.jsx("span",{className:o.text,children:s==null?void 0:s.popularity})]}):null]})]})]})})},xe=()=>{const{id:t}=k(),{endpoint:s}=C(["movie","tv"]),{error:n}=u().useVideoCreditsPerson(t,s[0]);return e.jsx(F,{error:n,children:e.jsxs("div",{className:"main",children:[e.jsx(he,{}),e.jsx(_e,{endpoints:["movie","tv"],media_type:["Movies","TV Shows"]})]})})},ge=()=>e.jsx(xe,{});export{ge as default}; diff --git a/assets/PersonPage-706301fa.css b/assets/PersonPage-706301fa.css deleted file mode 100644 index 897d3e1..0000000 --- a/assets/PersonPage-706301fa.css +++ /dev/null @@ -1 +0,0 @@ -._opacity-backdrop_1k4ex_1{position:absolute;inset:0;opacity:.3;z-index:-1}._opacity-backdrop_1k4ex_1>span{width:100%;height:100%}._opacity-backdrop_1k4ex_1>span img{filter:blur(15px)}._profile_1k4ex_15{display:flex;flex-direction:column}._profile__content_1k4ex_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_1k4ex_19{flex-direction:row;height:570px}}._profile__content__photo_1k4ex_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_1k4ex_33{width:65%;gap:10px}}@media only screen and (min-width: 1023px){._profile__content__photo_1k4ex_33{width:50%;gap:10px}}._profile__content__photo_1k4ex_33>span{width:100%;height:100%}._profile__content__photo_1k4ex_33>span img{border-radius:12px;object-position:top}._profile__content__info_1k4ex_62{height:fit-content;color:var(--secondary);width:100%}._profile__content__info_1k4ex_62 ._info-item_1k4ex_67,._profile__content__info_1k4ex_62 ._info-span_1k4ex_68{font-size:1rem;text-transform:uppercase}._profile__content__info_1k4ex_62 ._info-item_1k4ex_67 ._name_1k4ex_72,._profile__content__info_1k4ex_62 ._info-span_1k4ex_68 ._name_1k4ex_72{color:var(--text-person-name-span-color);text-shadow:1px 0 black}._profile__content__info_1k4ex_62 ._info-item_1k4ex_67 ._text_1k4ex_77,._profile__content__info_1k4ex_62 ._info-span_1k4ex_68 ._text_1k4ex_77{text-transform:initial;padding-left:5px;font-size:1.2rem;color:var(--secondary)}._profile__content__info_1k4ex_62 ._biography_short_1k4ex_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_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_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_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:focus,._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:active,._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:focus-visible{outline:none}._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:hover,._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:focus-visible{bottom:0}._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:hover>svg,._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:focus-visible ._svg_1k4ex_115{transform:rotate(90deg);transition:all .1s ease-in-out}._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96:active svg{scale:1}._profile__content__info_1k4ex_62 ._biography_short_1k4ex_84 ._more__btn_1k4ex_96 svg{width:100%;height:100%}._profile__content__info_skeleton_1k4ex_126{display:grid;gap:10px}._profile__content__info_skeleton_1k4ex_126 ._info-item_skeleton_1k4ex_130{height:20px}._profile__content__info_skeleton_1k4ex_126 ._info-item_skeleton_1k4ex_130:first-child{width:70%}._profile__content__info_skeleton_1k4ex_126 ._info-item_skeleton_1k4ex_130:nth-child(2){width:145px}._profile__content__info_skeleton_1k4ex_126 ._info-item_skeleton_1k4ex_130:nth-child(3){width:200px}._profile__content__info_skeleton_1k4ex_126 ._info-item_skeleton_1k4ex_130:nth-child(4){width:220px}._profile__content__info_skeleton_1k4ex_126 ._info-item_skeleton_1k4ex_130:nth-child(5){width:100%}._profile__content__info_skeleton_1k4ex_126 ._info-item_skeleton_1k4ex_130:last-child{width:190px}._profile__content__info_skeleton_1k4ex_126 ._biography_skeleton_1k4ex_151{height:220px;margin-bottom:30px}._btn__group-skeleton_1k4ex_156{display:flex;flex-wrap:wrap;gap:10px;container:skeleton-container/inline-size}._btn__group-skeleton_1k4ex_156 ._btn__sort-skeleton_1k4ex_162{position:relative;min-width:135px;height:40px;display:grid;grid-auto-flow:column;border-radius:30px;overflow:hidden}._btn__group-skeleton_1k4ex_156 ._btn__sort-skeleton_1k4ex_162:nth-child(3){min-width:150px}._btn__group-skeleton_1k4ex_156 ._btn__sort-skeleton_1k4ex_162:last-child{min-width:130px}@container skeleton-container (width < 440px){._btn__group-skeleton_1k4ex_156 ._btn__sort-skeleton_1k4ex_162{justify-content:space-between;width:100%}}._modal_1k4ex_184{position:fixed;display:flex;justify-content:center;align-items:center;inset:0;background-color:#000000b3;z-index:30}._modal__content_1k4ex_193{position:absolute;width:90%;max-height:80vh;font-size:18px;top:50%;left:50%;color:#000;transform:translate(-50%,-50%)}._modal__content_1k4ex_193:before,._modal__content_1k4ex_193:after{content:"";position:absolute;left:0;right:0;height:30px;background-color:var(--main)}._modal__content_1k4ex_193:before{top:-1px;border-top-left-radius:20px;border-top-right-radius:20px}._modal__content_1k4ex_193:after{bottom:-6px;border-bottom-left-radius:20px;border-bottom-right-radius:20px}._modal__content_1k4ex_193 ._modal__text_1k4ex_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_1k4ex_193{width:70%}}._heading_1k4ex_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_1k4ex_236{align-items:center;flex-direction:row}}._container-sort_1k4ex_251{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;container:sort-btn-container/inline-size}._link_pink_1k4ex_259:hover,._link_pink_1k4ex_259:focus-visible{color:var(--pink)}._grid_person-movies_1k4ex_264{margin-top:20px!important} diff --git a/assets/PersonPage-b8950eab.css b/assets/PersonPage-b8950eab.css new file mode 100644 index 0000000..760fa99 --- /dev/null +++ b/assets/PersonPage-b8950eab.css @@ -0,0 +1 @@ +._opacity-backdrop_12ypp_1{position:absolute;inset:0;opacity:.3;z-index:-1}._opacity-backdrop_12ypp_1>span{width:100%;height:100%}._opacity-backdrop_12ypp_1>span img{filter:blur(15px)}._profile_12ypp_15{display:flex;flex-direction:column}._profile__content_12ypp_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_12ypp_19{flex-direction:row;height:570px}}._profile__content__photo_12ypp_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_12ypp_33{width:65%;gap:10px}}@media only screen and (min-width: 1023px){._profile__content__photo_12ypp_33{width:50%;gap:10px}}._profile__content__photo_12ypp_33>span{width:100%;height:100%}._profile__content__photo_12ypp_33>span img{border-radius:12px;object-position:top}._profile__content__info_12ypp_62{height:fit-content;color:var(--secondary);width:100%}._profile__content__info_12ypp_62 ._info-item_12ypp_67,._profile__content__info_12ypp_62 ._info-span_12ypp_68{font-size:1rem;text-transform:uppercase}._profile__content__info_12ypp_62 ._info-item_12ypp_67 ._name_12ypp_72,._profile__content__info_12ypp_62 ._info-span_12ypp_68 ._name_12ypp_72{color:var(--text-person-name-span-color);text-shadow:1px 0 black}._profile__content__info_12ypp_62 ._info-item_12ypp_67 ._text_12ypp_77,._profile__content__info_12ypp_62 ._info-span_12ypp_68 ._text_12ypp_77{text-transform:initial;padding-left:5px;font-size:1.2rem;color:var(--secondary)}._profile__content__info_12ypp_62 ._biography_short_12ypp_84{position:relative;text-align:start;padding-right:20px;display:-webkit-box;-webkit-line-clamp:6;margin:20px auto 0;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;color:var(--secondary)}._profile__content__info_12ypp_62 ._biography_12ypp_84 ._more__btn_12ypp_96{display:block;bottom:2px;right:-35px;z-index:1;outline:none;font-weight:300;font-size:16px;padding:5px;border-radius:5px;background-color:gray;transition:all .1s ease-in-out}._profile__content__info_12ypp_62 ._biography_12ypp_84 ._more__btn_12ypp_96:focus-visible{color:gray;background-color:#fff}@media (hover: hover){._profile__content__info_12ypp_62 ._biography_12ypp_84 ._more__btn_12ypp_96:hover{color:gray;background-color:#fff}}@media (hover: none){._profile__content__info_12ypp_62 ._biography_12ypp_84 ._more__btn_12ypp_96:active{color:gray;background-color:#fff}}._profile__content__info_skeleton_12ypp_126{display:grid;gap:10px}._profile__content__info_skeleton_12ypp_126 ._info-item_skeleton_12ypp_130{height:20px}._profile__content__info_skeleton_12ypp_126 ._info-item_skeleton_12ypp_130:first-child{width:70%}._profile__content__info_skeleton_12ypp_126 ._info-item_skeleton_12ypp_130:nth-child(2){width:145px}._profile__content__info_skeleton_12ypp_126 ._info-item_skeleton_12ypp_130:nth-child(3){width:200px}._profile__content__info_skeleton_12ypp_126 ._info-item_skeleton_12ypp_130:nth-child(4){width:220px}._profile__content__info_skeleton_12ypp_126 ._info-item_skeleton_12ypp_130:nth-child(5){width:100%}._profile__content__info_skeleton_12ypp_126 ._info-item_skeleton_12ypp_130:last-child{width:190px}._profile__content__info_skeleton_12ypp_126 ._biography_skeleton_12ypp_151{height:220px;margin-bottom:30px}._btn__group-skeleton_12ypp_156{display:flex;flex-wrap:wrap;gap:10px;container:skeleton-container/inline-size}._btn__group-skeleton_12ypp_156 ._btn__sort-skeleton_12ypp_162{position:relative;min-width:135px;height:40px;display:grid;grid-auto-flow:column;border-radius:30px;overflow:hidden}._btn__group-skeleton_12ypp_156 ._btn__sort-skeleton_12ypp_162:nth-child(3){min-width:150px}._btn__group-skeleton_12ypp_156 ._btn__sort-skeleton_12ypp_162:last-child{min-width:130px}@container skeleton-container (width < 440px){._btn__group-skeleton_12ypp_156 ._btn__sort-skeleton_12ypp_162{justify-content:space-between;width:100%}}._modal_12ypp_184{position:fixed;display:flex;justify-content:center;align-items:center;inset:0;background-color:#000000b3;z-index:30}._modal__content_12ypp_193{position:absolute;width:90%;max-height:80vh;font-size:18px;top:50%;left:50%;color:#000;transform:translate(-50%,-50%)}._modal__content_12ypp_193:before,._modal__content_12ypp_193:after{content:"";position:absolute;left:0;right:0;height:30px;background-color:var(--main)}._modal__content_12ypp_193:before{top:-1px;border-top-left-radius:20px;border-top-right-radius:20px}._modal__content_12ypp_193:after{bottom:-6px;border-bottom-left-radius:20px;border-bottom-right-radius:20px}._modal__content_12ypp_193 ._modal__text_12ypp_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_12ypp_193{width:70%}}._heading_12ypp_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_12ypp_236{align-items:center;flex-direction:row}}._container-sort_12ypp_251{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;container:sort-btn-container/inline-size}._link_pink_12ypp_259:focus-visible{color:var(--pink)}@media (hover: hover){._link_pink_12ypp_259:hover{color:var(--pink)}}@media (hover: none){._link_pink_12ypp_259:active{color:var(--pink)}}._grid_person-movies_12ypp_273{margin-top:20px!important} diff --git a/assets/SearchPage-5b99ba14.js b/assets/SearchPage-1ae5dd5b.js similarity index 89% rename from assets/SearchPage-5b99ba14.js rename to assets/SearchPage-1ae5dd5b.js index 0f7a6fa..b7a9a4e 100644 --- a/assets/SearchPage-5b99ba14.js +++ b/assets/SearchPage-1ae5dd5b.js @@ -1 +1 @@ -import{l as d,u as x,n as t,E as h}from"./index-3c34359a.js";import{I as m}from"./index-7d94188f.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}; +import{l as d,u as x,n as t,E as h}from"./index-cde6f15b.js";import{I as m}from"./index-82ab8266.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/avatar-7ac2a537.js b/assets/avatar-342a0f5c.js similarity index 98% rename from assets/avatar-7ac2a537.js rename to assets/avatar-342a0f5c.js index 8881b91..90cfaaf 100644 --- a/assets/avatar-7ac2a537.js +++ b/assets/avatar-342a0f5c.js @@ -1 +1 @@ -import{n as A,z as q}from"./index-3c34359a.js";const I=({close:W})=>A.jsx("button",{className:q.close,onClick:W,children:A.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:A.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"})})}),i="data:image/webp;base64,UklGRnQMAABXRUJQVlA4WAoAAAAgAAAAfgIA+gIASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDgghgoAAHCnAJ0BKn8C+wI/VarVYTGuP6Wg1FhD8CqJZ278fJltPmp21yUWq+l/qhy0xtYDff/Pv3C7izupOTY6c4m66TYv0hkhPXf/wIxBfidE96SBAgQIECBAgQID4ZNypm2vmzGA7smY+BNHeZRSvmXHh2mJIZDIZDIZDIZDIZDIZDIZDIZDIZDBjmQyGQyGQyGQyGQyGQyGQyGQyGQyGCRJDIZDIZDIZDIZDIZDIZDIZDIZDIYNwyGQyGQyGQ2+M5Wq1Wq1Wq1Wq1Wq1IHatVqtVqtVqtVqtVqtVqtVqtVqtVqObK1Wq1pWtK1Wq1Wq1Wq1Wq1Wq8BGfEqAi0Wi0Wi0Wi0Wi0Wi0Wi0Wi0Wi0WbctWq1Wq1Wq1Wq1Wq1Wq1Wq1YN/xRykCPlvK/OnTp1A2F4nRPekgQIECVat1ut1ut1ut1ut1ut1uuzs9Xq9Xq6Kz1er1er1erzxjED/GsOWgWgCfBdrkZgsm1vJjna/vtq9Xq9Xq9Xq6Wt6vV6vV6vPQuE3G1IJ40h0thLxNI8UDkI6/Co2+32+32+2sKjb7fb7fb2Y24o4PE7DCTlTm84YoIG9GRqNRqNRqNRNC0Wi0Wi0WLa47VaXTVapMFdmejG1/9Xq9Xq9Xq6JOWEu8Tnuu7wC6SSBASxpw8eaXLly5cuXymez2ez2es/pmkakF+I7ETk6fq532+32+3zqnLly5crJaJWLIqVS7LmRRD23YhU2+32+32+fqOxrdbrdbuGBLeUX5RsbdS8uDSyNXuCqyhXBAZDIZAoU3yY0CBoaEWbfAQS720o3LkkS9rlRSfYecuXLmYrqAi0Wi0Wi0TQfsYoqUbo9hE2xbYfoZAtTHoShG+bRjb7LmXZcy7LmbeI28vl8vl8vlj0C7Im0mGHQ6HQ6HQ6HQnOKVSqVSqVSqVdx06cr86dOnTp06pi9f1er1erPa0BYMYSHmZB+F8ldPwBc05g40j1e00u9KzkHL0N1ut1ut1utcdbrl1KpVIDBlVNpSv48UwLvIjhlkymmlPmEQpLiEGUOXW63W63WtAaHnTpsAJPC9Y9f7gR1kUy4yGimmqWd1FXQUgvxOifnFKpVKo/glXZmLXRKSqGW5czU4RgsKJipCIcfodDodCeqpVKpUQKwbw3VwEa4+dDMty5luXIHNI9EmGGXAz1erorPV6vVnRR1T7QnpE3Mty5lujXotRmNwUEBkMhgxzIZDHcqwKEjXrD7krsuZdlzLsIDYK/Ns5Wq148ZLrdbkGXzPDlAEuEldlzLsuZdjZM+ZCzdC0Wizc+q1WqkwkTD2NaAm5luXMty99zMED8vl8vkjYOKBPx7d6KyGtATcy3LmW5e++hVFc0CBAgQbrdbrJPxqrhJdtLmXZcy7LgIitwQGQLphkMhZn42aqdFc/G5c0J5cyxnJmGQyGCRJDIY7kdm+E2/t/b+39v7f2+h/b+39v7f2/t/b+39v7f2/tZOkTZ6vV6ulrer1enTlfnTp06dOnTyInxcDOis9Xq9XRJyvzp06dOnUvQ1wM9XTG5t9vt9vt9vt9vt9vt9vt9vt9vt9vnVOXLly5cuXLly5cuXLly5cuYAFIDnGGSN9x9Byi57j6DjDYugpAcUCgEyRqNRqNRqNRqNRqNRqNRqNRqNRqNRNC0Wi0Wi0Wi0Wi0Wi0Wi0Wi0Wi0WizX+VrStVqtVqtVqtVqtVqtVqtVqtVqsDolarVarVeAi0Wi0Wi0Wi0Wi0Wi0WieOivARaLRaxqNRqNRqNRqNRqNRqNRqJiqi0Wi0Wjv8cpDIZDIZDIZDIZDIZDHaAA/vcl/wnyrznNv9R9q90+zwACltdjbuWBWej/cb5k4ukxhCHxSY9BdJjCEPilswAAIkA4wQXiLHsyktSxNNhJYi7CWIuwP478VrgAAOdAAEGiLCRtiUmPr5HJxzONuVFbAdxNCFJsAEahTAKB8sgqvStU+vGM3Kn3m3ecSgmdhrEjiZQVknceSdtNp7W/6YyxHrrmpdwPUNo5yJbZvqa+fZ1EiGQ7UucPNIUmWXUT55IiHl+HNS0kdwSyvvkzm8ZTwcyv87wMCy/REtuhFSuegWIW+F3TH3jTyWxtdIfd3BQZvMcOXCXldcW6OXpbvvcHVlB9n639mWKafIwvszhroQ4WItK+B4ITXEHeBUC2fFxXPrYNiSV0HLBTHoc29dy063SK/nPw2KUY9wFy6u3un6LaOVO5SAzfAbiAskvTmn0WeXGGtuYpFkvWNBXLM/MQmhXsOYWeQ0ibkuzbSmx0vBL5iUSa8qnqEEsSAk4J29Z8qWBe98P992SMAxx1tsEe2EAi5ZOWFRMvD91LamLutblXrkYAF+8EtXw+x/x2DmyCBQkjM7BZe41I/L4tAlJjyzSojDuwk1y51oR6RFOqq0USca6z8oS070QnGkt5YeMFYfzVsbNi3Plap59uarviISGlZ7AHMZcN7UxQShuKHHIJpiKZ3Lm33a1cQMAonAiHrxfy6wD75VLv02H/zAKW8H6QD8DbGOQAvykrEgx12Ovh3BxXfi1K7Pjo5Ex9uPfWcmbEZz0wlR64/0XAp+GHeqQc2y6lIQOnSm+x3dnl35p98kh3HucZYDsCStcAtp4iXHDmu6NZuJvnlJoPf5QjwTdtughqkPqyaYShjn3fe30zBu/YjvDuyHklmqDAZluP4JnLKkYsFgsFfp+TmfydZcGhcNXc+E0kASGy5ssjRr0U6hWCvdwgXBId4ghSUAlm18aTEvkb3uKWgYIUpx8FOs7F7SK0xm1H/Af9RtKzwm2tRAtxNwyTIKiNTE7MD2uVP04EpjpW2SHAx+wgEXecXAgeL+xIn/OIpEyTtojouxUwdRx5wgaHlxNZ0x1LZAR5+JmwE/I5H7Z2HTOVXoNExIXr5gTlxBtZXt2nbPvgKeFAkY1/3MeqBv5zAL7N2udZ88W2b1PIr66Inu/xtCP0GBIDU4uHi1fi4SWjHfJ6ISIagDIuAH8o4ONOl6SOjzI79Vt7fw0ifC8g1X06hBBem1qR4wGF6UL8KFOiDkehKN2D6LzCEryc7rJd5AN1RV3sK5IJ8CiQI/BaawTmCHG4sU5/cHseEmKhTaR248z5c82Imr8BurYuRuw53brqxAaPELH1gMa/2pIbrpb9vdhYzamaofwJIYmb5ipV9b1stQlWiRwqRwCbDQaMAe1hf4BeOexamecCLe5L+lmYj0xPjq3rpRQmKujwZsYZjAVxXLUgogcrn6r8gg8I9KgGDPVoRKIi7SrJ5WUkGB4gSDrMnEeLUZs/CFyv3k2tMbA26gvxizc7KluWXafYMKivCP3lJrrkkDVAolMCsbLvW0ilbZCxHsKYDGfe3rVfJLl19Ige/Fwnd90lvPgBTGpSeQ0EVZolOPeJ8yuW/erDUdDoxyN1n0DRcBLKE2jTuNZIIiSlp2LI4iRAbM4ZyOBogzgC7PPJvtNZZUuVW3WM3vkDuBq0NpwHrQ4sZ2njjvpANx5omMwwyGcTFVCAziYpzQ6sU5n3Jwo0gBLqiYBSFAAA2WNi/6YwV66hZWltCOU9LI619HROyD642zt+ypYNNLFsYookpvM850kRsAlEgAAAAA==";export{I as B,i as a}; +import{n as A,z as q}from"./index-cde6f15b.js";const I=({close:W})=>A.jsx("button",{className:q.close,onClick:W,children:A.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:A.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"})})}),i="data:image/webp;base64,UklGRnQMAABXRUJQVlA4WAoAAAAgAAAAfgIA+gIASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZWUDgghgoAAHCnAJ0BKn8C+wI/VarVYTGuP6Wg1FhD8CqJZ278fJltPmp21yUWq+l/qhy0xtYDff/Pv3C7izupOTY6c4m66TYv0hkhPXf/wIxBfidE96SBAgQIECBAgQID4ZNypm2vmzGA7smY+BNHeZRSvmXHh2mJIZDIZDIZDIZDIZDIZDIZDIZDIZDBjmQyGQyGQyGQyGQyGQyGQyGQyGQyGCRJDIZDIZDIZDIZDIZDIZDIZDIZDIYNwyGQyGQyGQ2+M5Wq1Wq1Wq1Wq1Wq1IHatVqtVqtVqtVqtVqtVqtVqtVqtVqObK1Wq1pWtK1Wq1Wq1Wq1Wq1Wq8BGfEqAi0Wi0Wi0Wi0Wi0Wi0Wi0Wi0Wi0WbctWq1Wq1Wq1Wq1Wq1Wq1Wq1YN/xRykCPlvK/OnTp1A2F4nRPekgQIECVat1ut1ut1ut1ut1ut1uuzs9Xq9Xq6Kz1er1er1erzxjED/GsOWgWgCfBdrkZgsm1vJjna/vtq9Xq9Xq9Xq6Wt6vV6vV6vPQuE3G1IJ40h0thLxNI8UDkI6/Co2+32+32+2sKjb7fb7fb2Y24o4PE7DCTlTm84YoIG9GRqNRqNRqNRNC0Wi0Wi0WLa47VaXTVapMFdmejG1/9Xq9Xq9Xq6JOWEu8Tnuu7wC6SSBASxpw8eaXLly5cuXymez2ez2es/pmkakF+I7ETk6fq532+32+3zqnLly5crJaJWLIqVS7LmRRD23YhU2+32+32+fqOxrdbrdbuGBLeUX5RsbdS8uDSyNXuCqyhXBAZDIZAoU3yY0CBoaEWbfAQS720o3LkkS9rlRSfYecuXLmYrqAi0Wi0Wi0TQfsYoqUbo9hE2xbYfoZAtTHoShG+bRjb7LmXZcy7LmbeI28vl8vl8vlj0C7Im0mGHQ6HQ6HQ6HQnOKVSqVSqVSqVdx06cr86dOnTp06pi9f1er1erPa0BYMYSHmZB+F8ldPwBc05g40j1e00u9KzkHL0N1ut1ut1utcdbrl1KpVIDBlVNpSv48UwLvIjhlkymmlPmEQpLiEGUOXW63W63WtAaHnTpsAJPC9Y9f7gR1kUy4yGimmqWd1FXQUgvxOifnFKpVKo/glXZmLXRKSqGW5czU4RgsKJipCIcfodDodCeqpVKpUQKwbw3VwEa4+dDMty5luXIHNI9EmGGXAz1erorPV6vVnRR1T7QnpE3Mty5lujXotRmNwUEBkMhgxzIZDHcqwKEjXrD7krsuZdlzLsIDYK/Ns5Wq148ZLrdbkGXzPDlAEuEldlzLsuZdjZM+ZCzdC0Wizc+q1WqkwkTD2NaAm5luXMty99zMED8vl8vkjYOKBPx7d6KyGtATcy3LmW5e++hVFc0CBAgQbrdbrJPxqrhJdtLmXZcy7LgIitwQGQLphkMhZn42aqdFc/G5c0J5cyxnJmGQyGCRJDIY7kdm+E2/t/b+39v7f2+h/b+39v7f2/t/b+39v7f2/tZOkTZ6vV6ulrer1enTlfnTp06dOnTyInxcDOis9Xq9XRJyvzp06dOnUvQ1wM9XTG5t9vt9vt9vt9vt9vt9vt9vt9vt9vnVOXLly5cuXLly5cuXLly5cuYAFIDnGGSN9x9Byi57j6DjDYugpAcUCgEyRqNRqNRqNRqNRqNRqNRqNRqNRqNRNC0Wi0Wi0Wi0Wi0Wi0Wi0Wi0Wi0WizX+VrStVqtVqtVqtVqtVqtVqtVqtVqsDolarVarVeAi0Wi0Wi0Wi0Wi0Wi0WieOivARaLRaxqNRqNRqNRqNRqNRqNRqJiqi0Wi0Wjv8cpDIZDIZDIZDIZDIZDHaAA/vcl/wnyrznNv9R9q90+zwACltdjbuWBWej/cb5k4ukxhCHxSY9BdJjCEPilswAAIkA4wQXiLHsyktSxNNhJYi7CWIuwP478VrgAAOdAAEGiLCRtiUmPr5HJxzONuVFbAdxNCFJsAEahTAKB8sgqvStU+vGM3Kn3m3ecSgmdhrEjiZQVknceSdtNp7W/6YyxHrrmpdwPUNo5yJbZvqa+fZ1EiGQ7UucPNIUmWXUT55IiHl+HNS0kdwSyvvkzm8ZTwcyv87wMCy/REtuhFSuegWIW+F3TH3jTyWxtdIfd3BQZvMcOXCXldcW6OXpbvvcHVlB9n639mWKafIwvszhroQ4WItK+B4ITXEHeBUC2fFxXPrYNiSV0HLBTHoc29dy063SK/nPw2KUY9wFy6u3un6LaOVO5SAzfAbiAskvTmn0WeXGGtuYpFkvWNBXLM/MQmhXsOYWeQ0ibkuzbSmx0vBL5iUSa8qnqEEsSAk4J29Z8qWBe98P992SMAxx1tsEe2EAi5ZOWFRMvD91LamLutblXrkYAF+8EtXw+x/x2DmyCBQkjM7BZe41I/L4tAlJjyzSojDuwk1y51oR6RFOqq0USca6z8oS070QnGkt5YeMFYfzVsbNi3Plap59uarviISGlZ7AHMZcN7UxQShuKHHIJpiKZ3Lm33a1cQMAonAiHrxfy6wD75VLv02H/zAKW8H6QD8DbGOQAvykrEgx12Ovh3BxXfi1K7Pjo5Ex9uPfWcmbEZz0wlR64/0XAp+GHeqQc2y6lIQOnSm+x3dnl35p98kh3HucZYDsCStcAtp4iXHDmu6NZuJvnlJoPf5QjwTdtughqkPqyaYShjn3fe30zBu/YjvDuyHklmqDAZluP4JnLKkYsFgsFfp+TmfydZcGhcNXc+E0kASGy5ssjRr0U6hWCvdwgXBId4ghSUAlm18aTEvkb3uKWgYIUpx8FOs7F7SK0xm1H/Af9RtKzwm2tRAtxNwyTIKiNTE7MD2uVP04EpjpW2SHAx+wgEXecXAgeL+xIn/OIpEyTtojouxUwdRx5wgaHlxNZ0x1LZAR5+JmwE/I5H7Z2HTOVXoNExIXr5gTlxBtZXt2nbPvgKeFAkY1/3MeqBv5zAL7N2udZ88W2b1PIr66Inu/xtCP0GBIDU4uHi1fi4SWjHfJ6ISIagDIuAH8o4ONOl6SOjzI79Vt7fw0ifC8g1X06hBBem1qR4wGF6UL8KFOiDkehKN2D6LzCEryc7rJd5AN1RV3sK5IJ8CiQI/BaawTmCHG4sU5/cHseEmKhTaR248z5c82Imr8BurYuRuw53brqxAaPELH1gMa/2pIbrpb9vdhYzamaofwJIYmb5ipV9b1stQlWiRwqRwCbDQaMAe1hf4BeOexamecCLe5L+lmYj0xPjq3rpRQmKujwZsYZjAVxXLUgogcrn6r8gg8I9KgGDPVoRKIi7SrJ5WUkGB4gSDrMnEeLUZs/CFyv3k2tMbA26gvxizc7KluWXafYMKivCP3lJrrkkDVAolMCsbLvW0ilbZCxHsKYDGfe3rVfJLl19Ige/Fwnd90lvPgBTGpSeQ0EVZolOPeJ8yuW/erDUdDoxyN1n0DRcBLKE2jTuNZIIiSlp2LI4iRAbM4ZyOBogzgC7PPJvtNZZUuVW3WM3vkDuBq0NpwHrQ4sZ2njjvpANx5omMwwyGcTFVCAziYpzQ6sU5n3Jwo0gBLqiYBSFAAA2WNi/6YwV66hZWltCOU9LI619HROyD642zt+ypYNNLFsYookpvM850kRsAlEgAAAAA==";export{I as B,i as a}; diff --git a/assets/index-6e67b54d.css b/assets/index-6e67b54d.css deleted file mode 100644 index 5826f37..0000000 --- a/assets/index-6e67b54d.css +++ /dev/null @@ -1 +0,0 @@ -._btn-gradient_1wyvs_1{position:relative;border-radius:30px;height:40px;text-transform:uppercase;transition:all .2s ease-in-out;overflow:hidden;z-index:2}._btn-gradient_1wyvs_1>span{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-weight:bolder;gap:10px;padding:0 10px;position:relative;z-index:2}._btn-gradient_1wyvs_1>svg{height:100%;width:25%}._btn-gradient_1wyvs_1:before{position:absolute;content:"";inset:0;width:0;background:var(--gradient);z-index:1;transition:all .2s ease-in-out}._btn-gradient_1wyvs_1:after{position:absolute;content:"";inset:0;width:100%;height:100%;z-index:3}._btn-gradient_1wyvs_1:active{scale:.9}._btn-gradient_1wyvs_1:hover:before,._btn-gradient_1wyvs_1:focus-visible:before{width:100%} diff --git a/assets/index-8036bca9.css b/assets/index-8036bca9.css new file mode 100644 index 0000000..10aca60 --- /dev/null +++ b/assets/index-8036bca9.css @@ -0,0 +1 @@ +._error-wrapper_q95x3_1{margin-top:100px;margin-bottom:60px}._error-wrapper_q95x3_1._non-padding_q95x3_5{padding:0}._error-wrapper_q95x3_1 ._error_q95x3_1{height:400px;margin:20px 0;width:100%;display:flex;justify-content:center;align-items:center;border-radius:15px;background-color:var(--bg-skeleton);color:#f0f8ff}._error-wrapper_q95x3_1 ._error__text_q95x3_19{display:flex;justify-content:center;align-items:center;width:100%;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(/movix/assets/krasnaya-dorozhka-fon-f94e4d93.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_19zyr_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}@media (hover: hover){._btn_19zyr_1:hover{box-shadow:0 0 4px 4px #ff4500;scale:1.1}}@media (hover: none){._btn_19zyr_1:active{box-shadow:0 0 4px 4px #ff4500;scale:1.1}}._btn_19zyr_1:focus-visible{box-shadow:0 0 4px 4px #ff4500;scale:1.1}._btn_19zyr_1:active{box-shadow:0 0 4px 4px red;scale:.9}._btn_theme_19zyr_32{display:flex;justify-content:center;align-items:center;bottom:100px;right:20px}@media only screen and (min-width: 767px){._btn_theme_19zyr_32{right:50px}}._btn_up_19zyr_44{display:flex;justify-content:center;align-items:center;bottom:160px;right:20px;fill:var(--secondary)}@media only screen and (min-width: 767px){._btn_up_19zyr_44{right:50px}}._btn_19zyr_1 svg{scale:1.5}._close_19zyr_61{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_19zyr_61:before{content:"";position:absolute;inset:0}@media (hover: hover){._close_19zyr_61:hover{color:#ff4500;scale:1.2}}@media (hover: none){._close_19zyr_61:active{color:#ff4500;scale:1.2}}._close_19zyr_61:focus-visible{color:#ff4500;scale:1.2}._close_19zyr_61:active{scale:.9;color:snow}._arrow_19zyr_100{fill:#fff}._btn-wrapper_19zyr_104{display:flex;position:relative}@container sort-btn-container (width < 440px){._btn-wrapper_19zyr_104{width:100%}}._sort-btn_19zyr_114{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_19zyr_114{justify-content:space-between;width:100%}}._sort-btn_inactive_19zyr_134{filter:grayscale(.8)}._sort-btn_clear_19zyr_137{padding:10px;display:flex;justify-content:center;align-items:center}._sort-btn_clear_19zyr_137>span{display:flex;justify-content:center;align-items:center}._sort-btn__img_19zyr_148{position:relative;z-index:2;width:50px;height:40px;padding:10px}._footer_oqygq_1{background-color:var(--bg-header-footer);padding:30px 0;position:relative;margin-top:30px}._footer_oqygq_1 ._wrapper_oqygq_7{display:flex;align-items:center;flex-direction:column}._footer_oqygq_1 ._nav_oqygq_12{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_oqygq_1 ._nav_oqygq_12{list-style-type:none;display:flex;align-items:center;justify-content:space-between}}@media only screen and (min-width: 767px){._footer_oqygq_1 ._nav_oqygq_12{max-width:50%;margin-bottom:30px;gap:30px}}._footer_oqygq_1 ._nav_oqygq_12 ._nav__item_oqygq_36{transition:all ease .3s;cursor:pointer;font-size:12px}._footer_oqygq_1 ._nav_oqygq_12 ._nav__item_oqygq_36 a{white-space:nowrap;color:snow}@media only screen and (min-width: 767px){._footer_oqygq_1 ._nav_oqygq_12 ._nav__item_oqygq_36 a{font-size:16px}}._footer_oqygq_1 ._nav_oqygq_12 ._nav__item_oqygq_36 a:focus-visible{color:var(--pink)}@media (hover: hover){._footer_oqygq_1 ._nav_oqygq_12 ._nav__item_oqygq_36 a:hover{color:var(--pink)}}@media (hover: none){._footer_oqygq_1 ._nav_oqygq_12 ._nav__item_oqygq_36 a:active{color:var(--pink)}}._footer_oqygq_1 ._info_oqygq_63{margin:0 auto 20px;font-size:12px;line-height:20px;text-align:center;max-width:800px}@media only screen and (min-width: 767px){._footer_oqygq_1 ._info_oqygq_63{font-size:14px;margin-bottom:30px}}._footer_oqygq_1 ._social__icons_oqygq_76{display:flex;align-items:center;justify-content:center;gap:20px}._footer_oqygq_1 ._social__icons_oqygq_76 ._icon_oqygq_82{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_oqygq_1 ._social__icons_oqygq_76 ._icon_oqygq_82:focus-visible{scale:1.1;box-shadow:0 0 4px 4px #ff4500;color:var(--pink)}@media (hover: hover){._footer_oqygq_1 ._social__icons_oqygq_76 ._icon_oqygq_82:hover{scale:1.1;box-shadow:0 0 4px 4px #ff4500;color:var(--pink)}}@media (hover: none){._footer_oqygq_1 ._social__icons_oqygq_76 ._icon_oqygq_82:active{scale:1.1;box-shadow:0 0 4px 4px #ff4500;color:var(--pink)}}._footer_oqygq_1 ._social__icons_oqygq_76 ._icon_oqygq_82 svg{scale:.5}._header_1fsba_1{position:fixed;width:100%;display:flex;align-items:center;height:auto;background-color:var(--bg-header-footer);z-index:25}._header_1fsba_1._top_1fsba_10{background-color:var(--bg-header-footer);backdrop-filter:blur(3.5px);-webkit-backdrop-filter:blur(3.5px)}._header_1fsba_1._show_1fsba_15{background-color:var(--bg-header-footer)}._header_1fsba_1._hide_1fsba_18{transform:translateY(-165px)}@media only screen and (min-width: 320px){._header_1fsba_1._hide_1fsba_18{transform:translateY(-70px)}}._header_1fsba_1._mobile__view_1fsba_26{background:var(--bg-header-footer)}._header_1fsba_1 ._nav_1fsba_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_1fsba_1 ._nav_1fsba_29{flex-direction:row;padding:10px 0}}._header_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_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_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_44:focus-visible{background-image:var(--gradient-reverse)}._header_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_44:focus-visible:before{background-image:var(--gradient-reverse);width:100%;opacity:1}._header_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_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_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_44 img{height:50px}@media (hover: hover){._header_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_44:hover{background-image:var(--gradient-reverse)}._header_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_44:hover:before{background-image:var(--gradient-reverse);width:100%;opacity:1}}@media (hover: none){._header_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_44:active{background-image:var(--gradient-reverse)}._header_1fsba_1 ._nav_1fsba_29 ._logo_1fsba_44:active:before{background-image:var(--gradient-reverse);width:100%;opacity:1}}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop_1fsba_98{display:none}@media only screen and (min-width: 479px){._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop_1fsba_98{display:flex;gap:20px}}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107{cursor:pointer}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110{padding:10px 0;display:block;position:relative;color:snow;text-transform:uppercase;transition:all .2s ease-in-out}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110:focus-visible{color:var(--pink)}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110:focus-visible:before{background-image:var(--gradient-reverse);width:100%;opacity:1}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110: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}@media (hover: hover){._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110:hover{color:var(--pink)}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110:hover:before{background-image:var(--gradient-reverse);width:100%;opacity:1}}@media (hover: none){._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110:active{color:var(--pink)}._header_1fsba_1 ._nav_1fsba_29 ._nav__desktop__item_1fsba_107 ._nav__desktop__link_1fsba_110:active:before{background-image:var(--gradient-reverse);width:100%;opacity:1}}._header_1fsba_1 ._nav_1fsba_29 ._buttons__mobile__menu_1fsba_157{display:flex;gap:10px;align-items:center}@media only screen and (min-width: 479px){._header_1fsba_1 ._nav_1fsba_29 ._buttons__mobile__menu_1fsba_157{display:none}}._header_1fsba_1 ._list_1fsba_167{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_1fsba_1 ._list_1fsba_167{top:70px}}._header_1fsba_1 ._search_1fsba_182{padding:20px 10px;background-color:var(--bg-header-footer)}@media only screen and (min-width: 767px){._header_1fsba_1 ._search_1fsba_182{padding:30px 40px}}._header_1fsba_1 ._search_1fsba_182 ._form_1fsba_191{display:flex;gap:15px;flex-direction:column;align-items:center;width:100%}@media only screen and (min-width: 479px){._header_1fsba_1 ._search_1fsba_182 ._form_1fsba_191{flex-direction:row;align-items:start}}._header_1fsba_1 ._search_1fsba_182 ._form_1fsba_191 ._input_search_1fsba_204{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_1fsba_1 ._search_1fsba_182 ._form_1fsba_191 ._input_search_1fsba_204:before{content:"";position:absolute;height:100%;right:0;width:50px;border-radius:30px 0 0 30px;background-color:var(--secondary)}._header_1fsba_1 ._nav__mobile_1fsba_225{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_1fsba_1 ._nav__mobile_1fsba_225{height:150px}}._header_1fsba_1 ._nav__mobile__item_1fsba_238{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_1fsba_1 ._nav__mobile__item_1fsba_238 ._nav__link_1fsba_248{display:flex;justify-content:center;align-items:center;color:snow;width:100%;padding:15px 20px;border-radius:12px;transition:all .2s ease-in-out;text-transform:uppercase}._header_1fsba_1 ._nav__mobile__item_1fsba_238 ._nav__link_1fsba_248:focus-visible{color:var(--pink);background-color:azure}@media (hover: hover){._header_1fsba_1 ._nav__mobile__item_1fsba_238 ._nav__link_1fsba_248:hover{color:var(--pink);background-color:azure}}@media (hover: none){._header_1fsba_1 ._nav__mobile__item_1fsba_238 ._nav__link_1fsba_248:active{color:var(--pink);background-color:azure}}._button_1fsba_157{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_1fsba_157:before{content:"";position:absolute;inset:0}._button_1fsba_157:active{scale:.9}._button_1fsba_157:focus-visible{background-image:var(--gradient-reverse)}@media (hover: hover){._button_1fsba_157:hover{background-image:var(--gradient-reverse)}}@media (hover: none){._button_1fsba_157:active{background-image:var(--gradient-reverse)}}._button_submit_1fsba_311{width:100px;border-radius:20px}._button_submit_1fsba_311>img{width:40px}@media only screen and (min-width: 479px){._button_submit_1fsba_311{width:50px;border-radius:50%}._button_submit_1fsba_311>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_khv9k_1 .lazy-load-image-background{width:100%;height:100%}._banner__img_khv9k_1 .lazy-load-image-background img{width:100%;height:100%;object-fit:cover;object-position:center}._banner_khv9k_1{width:100%;height:450px;background-color:var(--main);display:flex;align-items:center;position:relative}@media only screen and (min-width: 767px){._banner_khv9k_1{height:700px}}._banner__img_khv9k_1{width:100%;height:100%;position:absolute;top:0;left:0;opacity:.8;overflow:hidden}._banner_khv9k_1 ._opacity-layer_khv9k_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_khv9k_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_khv9k_42 ._title_khv9k_54{font-size:50px;font-weight:700;margin-bottom:10px}@media only screen and (min-width: 767px){._banner__content_khv9k_42 ._title_khv9k_54{margin-bottom:0;font-size:90px}}._banner__content_khv9k_42 ._subtitle_khv9k_65{font-size:18px;font-weight:500;margin-bottom:40px}@media only screen and (min-width: 767px){._banner__content_khv9k_42 ._subtitle_khv9k_65{font-size:24px}}._banner__content_khv9k_42 ._form_khv9k_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_khv9k_42 ._form_khv9k_75{display:flex}}._banner__content_khv9k_42 ._form_khv9k_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_khv9k_42 ._form_khv9k_75 input:focus-visible{background-color:var(--secondary);color:var(--main)}._banner__content_khv9k_42 ._form_khv9k_75 input::placeholder{color:#000}._banner__content_khv9k_42 ._form_khv9k_75 input:focus-visible::placeholder{color:#757575}@media only screen and (min-width: 767px){._banner__content_khv9k_42 ._form_khv9k_75 input{width:100%;height:60px;font-size:20px;padding:0 170px 0 30px}}._banner__content_khv9k_42 ._form__btn_khv9k_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_khv9k_42 ._form__btn_khv9k_121 span{position:relative;z-index:2;color:snow}._banner__content_khv9k_42 ._form__btn_khv9k_121:before{position:absolute;content:"";left:-100%;top:0;width:100%;height:100%;transition:all .2s ease-in-out;border-radius:30px}._banner__content_khv9k_42 ._form__btn_khv9k_121:focus-visible{border-color:var(--secondary)}._banner__content_khv9k_42 ._form__btn_khv9k_121:active{border-color:var(--secondary)}._banner__content_khv9k_42 ._form__btn_khv9k_121:active:before{width:100%;transform:translate(100%);background-color:#017000}@media only screen and (min-width: 767px){._banner__content_khv9k_42 ._form__btn_khv9k_121{width:150px;height:56px;font-size:18px}}@media (hover: hover){._banner__content_khv9k_42 ._form__btn_khv9k_121:hover{border-color:var(--secondary)}}@media (hover: none){._banner__content_khv9k_42 ._form__btn_khv9k_121:active{border-color:var(--secondary)}}._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}._tab_116yb_1{padding:4px;width:fit-content;background-image:var(--gradient);border-radius:20px}._tab_116yb_1 ._tab__wrapper_116yb_7{position:relative;display:flex;align-items:center;justify-content:space-between;height:34px;width:200px;background-color:var(--main);border-radius:20px}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__label_116yb_17{position:relative;display:flex;justify-content:center;align-items: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_116yb_1 ._tab__wrapper_116yb_7 ._tab__label_116yb_17._active_116yb_32{color:snow}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__label_116yb_17 ._tab__item_116yb_35{width:50%;text-align:center}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__radio_116yb_39{position:absolute;opacity:0;inset:0;border-radius:30px;cursor:pointer}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__radio_116yb_39:focus-visible+._tab__label-span_116yb_46{border:4px solid orange}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__label-span_116yb_46{display:flex;justify-content:center;align-items:center;width:100%;height:100%;border-radius:30px}._tab_116yb_1 ._tab__wrapper_116yb_7 ._slider_116yb_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_116yb_1 ._tab__wrapper_116yb_7 ._slider_left_116yb_67{transform:translate(0)}._tab_116yb_1 ._tab__wrapper_116yb_7 ._slider_right_116yb_70{transform:translate(100%)}._slider-box_inj41_1{padding-bottom:10px;position:relative;overflow:hidden}._slider-box_inj41_1 ._heading_inj41_6{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_inj41_1 ._heading_inj41_6{align-items:center;flex-direction:row}}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_flex_inj41_20{padding-top:20px;display:flex;gap:15px;overflow-x:auto;scroll-behavior:smooth}@media screen and (max-width: 1024px){._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20::-webkit-scrollbar{display:none}}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._slides_inj41_32{scroll-behavior:smooth}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._slider__title_inj41_35{font-size:24px;color:var(--secondary);margin-bottom:20px;font-weight:400}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41{position:absolute;width:50px;height:50px;padding:10px;top:50%;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_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41:before{content:"";position:absolute;border-radius:50%;margin:5px;inset:0;z-index:-1;background-image:var(--gradient)}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41>svg{height:100%;width:100%}@media only screen and (min-width: 767px){._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41{display:block}}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41:disabled{opacity:.5}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41:focus-visible{scale:1.2;opacity:1;fill:var(--secondary)}@media (hover: hover){._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41:hover{scale:1.2;opacity:1;fill:var(--secondary)}}@media (hover: none){._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_inj41_41:active{scale:1.2;opacity:1;fill:var(--secondary)}}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_left_inj41_95{left:30px}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_right_inj41_98{right:30px}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._arrow_hidden_inj41_101{display:none}._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._slides_inj41_32,._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ul{display:flex;gap:20px;overflow-y:hidden;padding:20px 0;width:calc(100vw - 25px)!important}@media only screen and (min-width: 767px){._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ._slides_inj41_32,._slider-box_inj41_1 ._slider_inj41_1 ._wrapper_inj41_20 ul{width:calc(100vw - 40px)!important}}._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_1rqbp_1 span.lazy-load-image-background.blur{height:100%;position:absolute;width:100%;inset:0;filter:blur(0);border-radius:12px}._poster_1rqbp_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_1rqbp_1 span.lazy-load-image-background.blur img{position:relative;z-index:10;border-radius:12px;overflow:hidden}._card_1rqbp_30{position:relative;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0}._card_flex_1rqbp_38{flex-grow:1;max-width:275px}._card_1rqbp_30 ._poster_1rqbp_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_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52{position:relative;width:100%;height:100%;border-radius:12px;overflow:hidden;filter:blur(10px)}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52:before{content:"";position:absolute;border-radius:12px;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.5),rgba(109,105,105,.5));mix-blend-mode:exclusion}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52._poster_loaded_1rqbp_68{background:none;filter:none}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a{outline:none;z-index:2}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 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;justify-content:center;align-items:center;opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:focus-visible:before{opacity:1;background-color:#000000b3;border-radius:12px;z-index:1}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:focus-visible~._rating_card_1rqbp_98{background-color:#000000b3}@media (hover: hover){._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:hover:before{opacity:1;background-color:#000000b3;border-radius:12px;z-index:1}}@media (hover: none){._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:active:before{opacity:1;background-color:#000000b3;border-radius:12px;z-index:1}}@media (hover: hover){._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:hover~._rating_card_1rqbp_98:before{background-color:#000000b3}}@media (hover: none){._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:active~._rating_card_1rqbp_98:before{background-color:#000000b3}}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52:focus-visible~div:before{background-color:#000000b3}@media (hover: hover){._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:hover~div:before{background-color:#000000b3}}@media (hover: none){._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 a:active~div:before{background-color:#000000b3}}._card_1rqbp_30 ._poster_1rqbp_1 ._poster__img_1rqbp_52 ._img_1rqbp_140{position:absolute;border-radius:12px;inset:0;animation:_scaleImg_1rqbp_1 .3s forwards ease-in-out .2s}._card_1rqbp_30 ._text_1rqbp_146{color:var(--secondary);display:flex;flex-direction:column;flex-grow:1;padding:5px}._card_1rqbp_30 ._text_1rqbp_146 ._title_1rqbp_153{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_1rqbp_30 ._text_1rqbp_146 ._title_1rqbp_153{font-size:20px}}._card_1rqbp_30 ._text_1rqbp_146 ._date_1rqbp_168{font-size:14px}@keyframes _scaleImg_1rqbp_1{0%{opacity:0;filter:blur(10px)}to{opacity:1;filter:blur(0)}}._wrapper_1snqj_1{display:flex;justify-content:center;align-items:center}._wrapper_1snqj_1 ._loader_1snqj_6{display:block;width:100px;height:100px;position:relative}._wrapper_1snqj_1 ._loader_1snqj_6:after,._wrapper_1snqj_1 ._loader_1snqj_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_1snqj_1 2s linear infinite}._wrapper_1snqj_1 ._loader_1snqj_6:after{animation-delay:1s}@keyframes _animloader_1snqj_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;scrollbar-gutter:stable}*{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}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))}@supports not (selector(::-webkit-scrollbar) and (selector(::-webkit-scrollbar-thumb)) and (selector(::-webkit-scrollbar-track))){*{scrollbar-width:thin;scrollbar-color:black #a69c9e}}@supports (selector(::-webkit-scrollbar) and (selector(::-webkit-scrollbar-thumb)) and (selector(::-webkit-scrollbar-track))){*::-webkit-scrollbar{height:10px;width:10px}*::-webkit-scrollbar-track{border-radius:5px;background-color:transparent;border:1px solid rgba(245,245,245,.462)}*::-webkit-scrollbar-thumb{border-radius:5px;background-color:#000;border:1px solid #ffffff}*::-webkit-scrollbar-thumb:hover{background-color:#777}@media (hover: hover){*::-webkit-scrollbar-thumb:hover{background-color:#777}}@media (hover: none){*::-webkit-scrollbar-thumb:active{background-color:#777}}*::-webkit-scrollbar-thumb:active{background-color:#000}}@media (max-width <= 1024px){.slider-scroll::-webkit-scrollbar{display:none;scrollbar-width:none}}.List{display:flex;gap:20px;margin-top:20px}@media screen and (max-width: 1024px){.List::-webkit-scrollbar{display:none}} diff --git a/assets/index-80f42cfd.js b/assets/index-80f42cfd.js deleted file mode 100644 index afae07b..0000000 --- a/assets/index-80f42cfd.js +++ /dev/null @@ -1 +0,0 @@ -import{n as a}from"./index-3c34359a.js";const o={"btn-gradient":"_btn-gradient_1wyvs_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/index-7d94188f.js b/assets/index-82ab8266.js similarity index 99% rename from assets/index-7d94188f.js rename to assets/index-82ab8266.js index d2ad47e..a3dc2e1 100644 --- a/assets/index-7d94188f.js +++ b/assets/index-82ab8266.js @@ -1,4 +1,4 @@ -import{R as p,r as y,n as l,V as x}from"./index-3c34359a.js";/*! ***************************************************************************** +import{R as p,r as y,n as l,V as x}from"./index-cde6f15b.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 diff --git a/assets/index-ab11bb85.css b/assets/index-ab11bb85.css deleted file mode 100644 index 468271e..0000000 --- a/assets/index-ab11bb85.css +++ /dev/null @@ -1 +0,0 @@ -._error-wrapper_q95x3_1{margin-top:100px;margin-bottom:60px}._error-wrapper_q95x3_1._non-padding_q95x3_5{padding:0}._error-wrapper_q95x3_1 ._error_q95x3_1{height:400px;margin:20px 0;width:100%;display:flex;justify-content:center;align-items:center;border-radius:15px;background-color:var(--bg-skeleton);color:#f0f8ff}._error-wrapper_q95x3_1 ._error__text_q95x3_19{display:flex;justify-content:center;align-items:center;width:100%;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(/movix/assets/krasnaya-dorozhka-fon-f94e4d93.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_ugde5_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_ugde5_1:hover,._btn_ugde5_1:focus-visible{box-shadow:0 0 4px 4px #ff4500;scale:1.1}._btn_ugde5_1:active{box-shadow:0 0 4px 4px red;scale:.9}._btn_theme_ugde5_20{display:flex;justify-content:center;align-items:center;bottom:100px;right:20px}@media only screen and (min-width: 767px){._btn_theme_ugde5_20{right:50px}}._btn_up_ugde5_32{display:flex;justify-content:center;align-items:center;bottom:160px;right:20px;fill:var(--secondary)}@media only screen and (min-width: 767px){._btn_up_ugde5_32{right:50px}}._btn_ugde5_1 svg{scale:1.5}._close_ugde5_49{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_ugde5_49:before{content:"";position:absolute;inset:0}._close_ugde5_49:hover,._close_ugde5_49:focus-visible{color:#ff4500;scale:1.2}._close_ugde5_49:active{scale:.9;color:snow}._arrow_ugde5_76{fill:#fff}._btn-wrapper_ugde5_80{display:flex;position:relative}@container sort-btn-container (width < 440px){._btn-wrapper_ugde5_80{width:100%}}._sort-btn_ugde5_90{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_ugde5_90{justify-content:space-between;width:100%}}._sort-btn_inactive_ugde5_110{filter:grayscale(.8)}._sort-btn_clear_ugde5_113{padding:10px;display:flex;justify-content:center;align-items:center}._sort-btn_clear_ugde5_113>span{display:flex;justify-content:center;align-items:center}._sort-btn__img_ugde5_124{position:relative;z-index:2;width:50px;height:40px;padding:10px}._footer_slfx4_1{background-color:var(--bg-header-footer);padding:30px 0;position:relative;margin-top:30px}._footer_slfx4_1 ._wrapper_slfx4_7{display:flex;align-items:center;flex-direction:column}._footer_slfx4_1 ._nav_slfx4_12{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_slfx4_1 ._nav_slfx4_12{list-style-type:none;display:flex;align-items:center;justify-content:space-between}}@media only screen and (min-width: 767px){._footer_slfx4_1 ._nav_slfx4_12{max-width:50%;margin-bottom:30px;gap:30px}}._footer_slfx4_1 ._nav_slfx4_12 ._nav__item_slfx4_36{transition:all ease .3s;cursor:pointer;font-size:12px}._footer_slfx4_1 ._nav_slfx4_12 ._nav__item_slfx4_36 a{white-space:nowrap;color:snow}@media only screen and (min-width: 767px){._footer_slfx4_1 ._nav_slfx4_12 ._nav__item_slfx4_36 a{font-size:16px}}._footer_slfx4_1 ._nav_slfx4_12 ._nav__item_slfx4_36 a:hover,._footer_slfx4_1 ._nav_slfx4_12 ._nav__item_slfx4_36 a:focus-visible{color:var(--pink)}._footer_slfx4_1 ._info_slfx4_53{margin:0 auto 20px;font-size:12px;line-height:20px;text-align:center;max-width:800px}@media only screen and (min-width: 767px){._footer_slfx4_1 ._info_slfx4_53{font-size:14px;margin-bottom:30px}}._footer_slfx4_1 ._social__icons_slfx4_66{display:flex;align-items:center;justify-content:center;gap:20px}._footer_slfx4_1 ._social__icons_slfx4_66 ._icon_slfx4_72{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_slfx4_1 ._social__icons_slfx4_66 ._icon_slfx4_72:hover,._footer_slfx4_1 ._social__icons_slfx4_66 ._icon_slfx4_72:focus-visible{scale:1.1;box-shadow:0 0 4px 4px #ff4500;color:var(--pink)}._footer_slfx4_1 ._social__icons_slfx4_66 ._icon_slfx4_72 svg{scale:.5}._header_1f18x_1{position:fixed;width:100%;display:flex;align-items:center;height:auto;background-color:var(--bg-header-footer);z-index:25}._header_1f18x_1._top_1f18x_10{background-color:var(--bg-header-footer);backdrop-filter:blur(3.5px);-webkit-backdrop-filter:blur(3.5px)}._header_1f18x_1._show_1f18x_15{background-color:var(--bg-header-footer)}._header_1f18x_1._hide_1f18x_18{transform:translateY(-165px)}@media only screen and (min-width: 320px){._header_1f18x_1._hide_1f18x_18{transform:translateY(-60px)}}._header_1f18x_1._mobile__view_1f18x_26{background:var(--bg-header-footer)}._header_1f18x_1 ._nav_1f18x_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_1f18x_1 ._nav_1f18x_29{flex-direction:row;padding:10px 0}}._header_1f18x_1 ._nav_1f18x_29 ._logo_1f18x_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_1f18x_1 ._nav_1f18x_29 ._logo_1f18x_44:hover,._header_1f18x_1 ._nav_1f18x_29 ._logo_1f18x_44:focus-visible{background-image:var(--gradient-reverse)}._header_1f18x_1 ._nav_1f18x_29 ._logo_1f18x_44:hover:before,._header_1f18x_1 ._nav_1f18x_29 ._logo_1f18x_44:focus-visible:before{background-image:var(--gradient-reverse);width:100%;opacity:1}._header_1f18x_1 ._nav_1f18x_29 ._logo_1f18x_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_1f18x_1 ._nav_1f18x_29 ._logo_1f18x_44 img{height:50px}._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop_1f18x_78{display:none}@media only screen and (min-width: 479px){._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop_1f18x_78{display:flex;gap:20px}}._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop__item_1f18x_87{cursor:pointer}._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop__item_1f18x_87 ._nav__desktop__link_1f18x_90{padding:10px 0;display:block;position:relative;color:snow;text-transform:uppercase;transition:all .2s ease-in-out}._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop__item_1f18x_87 ._nav__desktop__link_1f18x_90:hover,._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop__item_1f18x_87 ._nav__desktop__link_1f18x_90:focus-visible{color:var(--pink)}._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop__item_1f18x_87 ._nav__desktop__link_1f18x_90:hover:before,._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop__item_1f18x_87 ._nav__desktop__link_1f18x_90:focus-visible:before{background-image:var(--gradient-reverse);width:100%;opacity:1}._header_1f18x_1 ._nav_1f18x_29 ._nav__desktop__item_1f18x_87 ._nav__desktop__link_1f18x_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_1f18x_1 ._nav_1f18x_29 ._buttons__mobile__menu_1f18x_117{display:flex;gap:10px;align-items:center}@media only screen and (min-width: 479px){._header_1f18x_1 ._nav_1f18x_29 ._buttons__mobile__menu_1f18x_117{display:none}}._header_1f18x_1 ._list_1f18x_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_1f18x_1 ._list_1f18x_127{top:70px}}._header_1f18x_1 ._search_1f18x_142{padding:20px 10px;background-color:var(--bg-header-footer)}@media only screen and (min-width: 767px){._header_1f18x_1 ._search_1f18x_142{padding:30px 40px}}._header_1f18x_1 ._search_1f18x_142 ._form_1f18x_151{display:flex;gap:15px;flex-direction:column;align-items:center;width:100%}@media only screen and (min-width: 479px){._header_1f18x_1 ._search_1f18x_142 ._form_1f18x_151{flex-direction:row;align-items:start}}._header_1f18x_1 ._search_1f18x_142 ._form_1f18x_151 ._input_search_1f18x_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_1f18x_1 ._search_1f18x_142 ._form_1f18x_151 ._input_search_1f18x_164:before{content:"";position:absolute;height:100%;right:0;width:50px;border-radius:30px 0 0 30px;background-color:var(--secondary)}._header_1f18x_1 ._nav__mobile_1f18x_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_1f18x_1 ._nav__mobile_1f18x_185{height:150px}}._header_1f18x_1 ._nav__mobile__item_1f18x_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_1f18x_1 ._nav__mobile__item_1f18x_198 ._nav__link_1f18x_208{display:flex;justify-content:center;align-items:center;color:snow;width:100%;padding:15px 20px;border-radius:12px;transition:all .2s ease-in-out;text-transform:uppercase}._header_1f18x_1 ._nav__mobile__item_1f18x_198 ._nav__link_1f18x_208:hover,._header_1f18x_1 ._nav__mobile__item_1f18x_198 ._nav__link_1f18x_208:focus-visible{color:var(--pink);background-color:azure}._button_1f18x_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_1f18x_117:before{content:"";position:absolute;inset:0}._button_1f18x_117:active{scale:.9}._button_1f18x_117:hover,._button_1f18x_117:focus-visible{background-image:var(--gradient-reverse)}._button_submit_1f18x_249{width:100px;border-radius:20px}._button_submit_1f18x_249>img{width:40px}@media only screen and (min-width: 479px){._button_submit_1f18x_249{width:50px;border-radius:50%}._button_submit_1f18x_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}._tab_116yb_1{padding:4px;width:fit-content;background-image:var(--gradient);border-radius:20px}._tab_116yb_1 ._tab__wrapper_116yb_7{position:relative;display:flex;align-items:center;justify-content:space-between;height:34px;width:200px;background-color:var(--main);border-radius:20px}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__label_116yb_17{position:relative;display:flex;justify-content:center;align-items: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_116yb_1 ._tab__wrapper_116yb_7 ._tab__label_116yb_17._active_116yb_32{color:snow}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__label_116yb_17 ._tab__item_116yb_35{width:50%;text-align:center}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__radio_116yb_39{position:absolute;opacity:0;inset:0;border-radius:30px;cursor:pointer}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__radio_116yb_39:focus-visible+._tab__label-span_116yb_46{border:4px solid orange}._tab_116yb_1 ._tab__wrapper_116yb_7 ._tab__label-span_116yb_46{display:flex;justify-content:center;align-items:center;width:100%;height:100%;border-radius:30px}._tab_116yb_1 ._tab__wrapper_116yb_7 ._slider_116yb_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_116yb_1 ._tab__wrapper_116yb_7 ._slider_left_116yb_67{transform:translate(0)}._tab_116yb_1 ._tab__wrapper_116yb_7 ._slider_right_116yb_70{transform:translate(100%)}._slider-box_7r17o_1{padding-bottom:10px;position:relative;overflow:hidden}._slider-box_7r17o_1 ._heading_7r17o_6{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_7r17o_1 ._heading_7r17o_6{align-items:center;flex-direction:row}}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_flex_7r17o_20{padding-top:20px;display:flex;gap:15px;overflow-x:auto;scroll-behavior:smooth}@media screen and (max-width: 1024px){._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20::-webkit-scrollbar{display:none}}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._slides_7r17o_32{scroll-behavior:smooth}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._slider__title_7r17o_35{font-size:24px;color:var(--secondary);margin-bottom:20px;font-weight:400}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_7r17o_41{position:absolute;width:50px;height:50px;padding:10px;top:50%;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_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_7r17o_41:before{content:"";position:absolute;border-radius:50%;margin:5px;inset:0;z-index:-1;background-image:var(--gradient)}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_7r17o_41>svg{height:100%;width:100%}@media only screen and (min-width: 767px){._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_7r17o_41{display:block}}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_7r17o_41:disabled{opacity:.5}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_7r17o_41:hover,._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_7r17o_41:focus-visible{scale:1.2;opacity:1;fill:var(--secondary)}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_left_7r17o_81{left:30px}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_right_7r17o_84{right:30px}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._arrow_hidden_7r17o_87{display:none}._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._slides_7r17o_32,._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ul{display:flex;gap:20px;overflow-y:hidden;padding:20px 0;width:calc(100vw - 25px)!important}@media only screen and (min-width: 767px){._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ._slides_7r17o_32,._slider-box_7r17o_1 ._slider_7r17o_1 ._wrapper_7r17o_20 ul{width:calc(100vw - 40px)!important}}._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_5lfpc_1 span.lazy-load-image-background.blur{height:100%;position:absolute;width:100%;inset:0;filter:blur(0);border-radius:12px}._poster_5lfpc_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_5lfpc_1 span.lazy-load-image-background.blur img{position:relative;z-index:10;border-radius:12px;overflow:hidden}._card_5lfpc_30{position:relative;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;flex-shrink:0}._card_flex_5lfpc_38{flex-grow:1;max-width:275px}._card_5lfpc_30 ._poster_5lfpc_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_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52{position:relative;width:100%;height:100%;border-radius:12px;overflow:hidden;filter:blur(10px)}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52:before{content:"";position:absolute;border-radius:12px;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.5),rgba(109,105,105,.5));mix-blend-mode:exclusion}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52._poster_loaded_5lfpc_68{background:none;filter:none}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 a{outline:none;z-index:2}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 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;justify-content:center;align-items:center;opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 a:hover:before,._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 a:focus-visible:before{opacity:1;background-color:#000000b3;border-radius:12px;z-index:1}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 a:hover~._rating_card_5lfpc_98:before,._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 a:focus-visible~._rating_card_5lfpc_98{background-color:#000000b3}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 a:hover~div:before,._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52:focus-visible~div:before{background-color:#000000b3}._card_5lfpc_30 ._poster_5lfpc_1 ._poster__img_5lfpc_52 ._img_5lfpc_104{position:absolute;border-radius:12px;inset:0;animation:_scaleImg_5lfpc_1 .3s forwards ease-in-out .2s}._card_5lfpc_30 ._text_5lfpc_110{color:var(--secondary);display:flex;flex-direction:column;flex-grow:1;padding:5px}._card_5lfpc_30 ._text_5lfpc_110 ._title_5lfpc_117{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_5lfpc_30 ._text_5lfpc_110 ._title_5lfpc_117{font-size:20px}}._card_5lfpc_30 ._text_5lfpc_110 ._date_5lfpc_132{font-size:14px}@keyframes _scaleImg_5lfpc_1{0%{opacity:0;filter:blur(10px)}to{opacity:1;filter:blur(0)}}._wrapper_1snqj_1{display:flex;justify-content:center;align-items:center}._wrapper_1snqj_1 ._loader_1snqj_6{display:block;width:100px;height:100px;position:relative}._wrapper_1snqj_1 ._loader_1snqj_6:after,._wrapper_1snqj_1 ._loader_1snqj_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_1snqj_1 2s linear infinite}._wrapper_1snqj_1 ._loader_1snqj_6:after{animation-delay:1s}@keyframes _animloader_1snqj_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;scrollbar-gutter:stable}*{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}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))}@supports not (selector(::-webkit-scrollbar) and (selector(::-webkit-scrollbar-thumb)) and (selector(::-webkit-scrollbar-track))){*{scrollbar-width:thin;scrollbar-color:black #a69c9e}}@supports (selector(::-webkit-scrollbar) and (selector(::-webkit-scrollbar-thumb)) and (selector(::-webkit-scrollbar-track))){*::-webkit-scrollbar{height:10px;width:10px}*::-webkit-scrollbar-track{border-radius:5px;background-color:transparent;border:1px solid rgba(245,245,245,.462)}*::-webkit-scrollbar-thumb{border-radius:5px;background-color:#000;border:1px solid #ffffff}*::-webkit-scrollbar-thumb:hover{background-color:#777}*::-webkit-scrollbar-thumb:active{background-color:#000}}@media (max-width <= 1024px){.slider-scroll::-webkit-scrollbar{display:none;scrollbar-width:none}}.List{display:flex;gap:20px;margin-top:20px}@media screen and (max-width: 1024px){.List::-webkit-scrollbar{display:none}} diff --git a/assets/index-3c34359a.js b/assets/index-cde6f15b.js similarity index 53% rename from assets/index-3c34359a.js rename to assets/index-cde6f15b.js index e4419cf..12581b1 100644 --- a/assets/index-3c34359a.js +++ b/assets/index-cde6f15b.js @@ -1,4 +1,4 @@ -function IS(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 $S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function NL(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 Nv={exports:{}},kl={},Fv={exports:{}},ce={};/** +function IS(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 $S=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function FL(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 Nv={exports:{}},kl={},Fv={exports:{}},ce={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function IS(e,t){for(var n=0;n>>1,te=M[q];if(0>>1;qi(ue,H))mei(Be,ue)?(M[q]=Be,M[me]=H,q=me):(M[q]=ue,M[Z]=H,q=Z);else if(mei(Be,H))M[q]=Be,M[me]=H,q=me;else break e}}return z}function i(M,z){var H=M.sortIndex-z.sortIndex;return H!==0?H:M.id-z.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,m=!1,p=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function w(M){if(p=!1,g(M),!m)if(n(l)!==null)m=!0,W(x);else{var z=n(u);z!==null&&U(w,z.startTime-M)}}function x(M,z){m=!1,p&&(p=!1,v(R),R=-1),h=!0;var H=d;try{for(g(z),f=n(l);f!==null&&(!(f.expirationTime>z)||M&&!J());){var q=f.callback;if(typeof q=="function"){f.callback=null,d=f.priorityLevel;var te=q(f.expirationTime<=z);z=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(l)&&r(l),g(z)}else r(l);f=n(l)}if(f!==null)var ne=!0;else{var Z=n(u);Z!==null&&U(w,Z.startTime-z),ne=!1}return ne}finally{f=null,d=H,h=!1}}var T=!1,j=null,R=-1,I=5,N=-1;function J(){return!(e.unstable_now()-NM||125q?(M.sortIndex=H,t(u,M),n(l)===null&&M===n(u)&&(p?(v(R),R=-1):p=!0,U(w,H-q))):(M.sortIndex=te,t(l,M),m||h||(m=!0,W(x))),M},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(M){var z=d;return function(){var H=d;d=z;try{return M.apply(this,arguments)}finally{d=H}}}})(Kv);qv.exports=Kv;var l_=qv.exports;/** + */(function(e){function t(M,z){var H=M.length;M.push(z);e:for(;0>>1,te=M[Q];if(0>>1;Qi(ue,H))mei(Be,ue)?(M[Q]=Be,M[me]=H,Q=me):(M[Q]=ue,M[Z]=H,Q=Z);else if(mei(Be,H))M[Q]=Be,M[me]=H,Q=me;else break e}}return z}function i(M,z){var H=M.sortIndex-z.sortIndex;return H!==0?H:M.id-z.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,m=!1,p=!1,_=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(l,z);else break;z=n(u)}}function w(M){if(p=!1,g(M),!m)if(n(l)!==null)m=!0,W(x);else{var z=n(u);z!==null&&U(w,z.startTime-M)}}function x(M,z){m=!1,p&&(p=!1,v(T),T=-1),h=!0;var H=d;try{for(g(z),f=n(l);f!==null&&(!(f.expirationTime>z)||M&&!J());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,d=f.priorityLevel;var te=Q(f.expirationTime<=z);z=e.unstable_now(),typeof te=="function"?f.callback=te:f===n(l)&&r(l),g(z)}else r(l);f=n(l)}if(f!==null)var ne=!0;else{var Z=n(u);Z!==null&&U(w,Z.startTime-z),ne=!1}return ne}finally{f=null,d=H,h=!1}}var R=!1,j=null,T=-1,I=5,N=-1;function J(){return!(e.unstable_now()-NM||125Q?(M.sortIndex=H,t(u,M),n(l)===null&&M===n(u)&&(p?(v(T),T=-1):p=!0,U(w,H-Q))):(M.sortIndex=te,t(l,M),m||h||(m=!0,W(x))),M},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(M){var z=d;return function(){var H=d;d=z;try{return M.apply(this,arguments)}finally{d=H}}}})(Kv);Qv.exports=Kv;var l_=Qv.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function IS(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$c=Object.prototype.hasOwnProperty,u_=/^[: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]*$/,cp={},fp={};function c_(e){return $c.call(fp,e)?!0:$c.call(cp,e)?!1:u_.test(e)?fp[e]=!0:(cp[e]=!0,!1)}function f_(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 d_(e,t,n,r){if(t===null||typeof t>"u"||f_(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 vt(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 ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new vt(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){ot[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var bd=/[\-:]([a-z])/g;function Pd(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(bd,Pd);ot[t]=new vt(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(bd,Pd);ot[t]=new vt(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(bd,Pd);ot[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ed(e,t,n,r){var i=ot.hasOwnProperty(t)?ot[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$c=Object.prototype.hasOwnProperty,u_=/^[: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]*$/,cp={},fp={};function c_(e){return $c.call(fp,e)?!0:$c.call(cp,e)?!1:u_.test(e)?fp[e]=!0:(cp[e]=!0,!1)}function f_(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 d_(e,t,n,r){if(t===null||typeof t>"u"||f_(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 vt(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 ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new vt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new vt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new vt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new vt(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){ot[e]=new vt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new vt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new vt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new vt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new vt(e,5,!1,e.toLowerCase(),null,!1,!1)});var bd=/[\-:]([a-z])/g;function Pd(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(bd,Pd);ot[t]=new vt(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(bd,Pd);ot[t]=new vt(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(bd,Pd);ot[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new vt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new vt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ed(e,t,n,r){var i=ot.hasOwnProperty(t)?ot[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{Nu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Eo(e):""}function h_(e){switch(e.tag){case 5:return Eo(e.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return e=Fu(e.type,!1),e;case 11:return e=Fu(e.type.render,!1),e;case 1:return e=Fu(e.type,!0),e;default:return""}}function Bc(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 fi:return"Fragment";case ci:return"Portal";case zc:return"Profiler";case Cd:return"StrictMode";case Vc:return"Suspense";case Uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jv:return(e.displayName||"Context")+".Consumer";case Xv:return(e._context.displayName||"Context")+".Provider";case Od:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Td:return t=e.displayName||null,t!==null?t:Bc(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return Bc(e(t))}catch{}}return null}function p_(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 Bc(t);case 8:return t===Cd?"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 fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m_(e){var t=eg(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 Bs(e){e._valueTracker||(e._valueTracker=m_(e))}function tg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fa(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 Wc(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fr(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 ng(e,t){t=t.checked,t!=null&&Ed(e,"checked",t,!1)}function Hc(e,t){ng(e,t);var n=fr(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")?Qc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qc(e,t.type,fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pp(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 Qc(e,t,n){(t!=="number"||Fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Co=Array.isArray;function Ti(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ko(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jo={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},y_=["Webkit","ms","Moz","O"];Object.keys(jo).forEach(function(e){y_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jo[t]=jo[e]})});function sg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jo.hasOwnProperty(e)&&jo[e]?(""+t).trim():t+"px"}function ag(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var v_=Ae({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 Gc(e,t){if(t){if(v_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Yc(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 Xc=null;function Rd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jc=null,Ri=null,ki=null;function vp(e){if(e=xs(e)){if(typeof Jc!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=Al(t),Jc(e.stateNode,e.type,t))}}function lg(e){Ri?ki?ki.push(e):ki=[e]:Ri=e}function ug(){if(Ri){var e=Ri,t=ki;if(ki=Ri=null,vp(e),t)for(e=0;e>>=0,e===0?32:31-(T_(e)/R_|0)|0}var Hs=64,Qs=4194304;function Oo(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 Va(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=Oo(a):(o&=s,o!==0&&(r=Oo(o)))}else s=n&~i,s!==0?r=Oo(s):o!==0&&(r=Oo(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-en(t),e[t]=n}function M_(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=Mo),Cp=String.fromCharCode(32),Op=!1;function Rg(e,t){switch(e){case"keyup":return ax.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function ux(e,t){switch(e){case"compositionend":return kg(t);case"keypress":return t.which!==32?null:(Op=!0,Cp);case"textInput":return e=t.data,e===Cp&&Op?null:e;default:return null}}function cx(e,t){if(di)return e==="compositionend"||!Fd&&Rg(e,t)?(e=Og(),ya=Ld=Yn=null,di=!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=jp(n)}}function Lg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ag(){for(var e=window,t=Fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fa(e.document)}return t}function Id(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 wx(e){var t=Ag(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lg(n.ownerDocument.documentElement,n)){if(r!==null&&Id(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=Dp(n,o);var s=Dp(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,hi=null,of=null,Ao=null,sf=!1;function Mp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sf||hi==null||hi!==Fa(r)||(r=hi,"selectionStart"in r&&Id(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}),Ao&&es(Ao,r)||(Ao=r,r=Wa(of,"onSelect"),0yi||(e.current=df[yi],df[yi]=null,yi--)}function _e(e,t){yi++,df[yi]=e.current,e.current=t}var dr={},dt=gr(dr),St=gr(!1),zr=dr;function Ii(e,t){var n=e.type.contextTypes;if(!n)return dr;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 _t(e){return e=e.childContextTypes,e!=null}function Qa(){Pe(St),Pe(dt)}function zp(e,t,n){if(dt.current!==dr)throw Error(Q(168));_e(dt,t),_e(St,n)}function Wg(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(Q(108,p_(e)||"Unknown",i));return Ae({},n,r)}function qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dr,zr=dt.current,_e(dt,e),_e(St,St.current),!0}function Vp(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=Wg(e,t,zr),r.__reactInternalMemoizedMergedChildContext=e,Pe(St),Pe(dt),_e(dt,e)):Pe(St),_e(St,n)}var wn=null,Nl=!1,Xu=!1;function Hg(e){wn===null?wn=[e]:wn.push(e)}function jx(e){Nl=!0,Hg(e)}function wr(){if(!Xu&&wn!==null){Xu=!0;var e=0,t=ye;try{var n=wn;for(ye=1;e>=s,i-=s,_n=1<<32-en(t)+i|n<R?(I=j,j=null):I=j.sibling;var N=d(v,j,g[R],w);if(N===null){j===null&&(j=I);break}e&&j&&N.alternate===null&&t(v,j),y=o(N,y,R),T===null?x=N:T.sibling=N,T=N,j=I}if(R===g.length)return n(v,j),Te&&Or(v,R),x;if(j===null){for(;RR?(I=j,j=null):I=j.sibling;var J=d(v,j,N.value,w);if(J===null){j===null&&(j=I);break}e&&j&&J.alternate===null&&t(v,j),y=o(J,y,R),T===null?x=J:T.sibling=J,T=J,j=I}if(N.done)return n(v,j),Te&&Or(v,R),x;if(j===null){for(;!N.done;R++,N=g.next())N=f(v,N.value,w),N!==null&&(y=o(N,y,R),T===null?x=N:T.sibling=N,T=N);return Te&&Or(v,R),x}for(j=r(v,j);!N.done;R++,N=g.next())N=h(j,v,R,N.value,w),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?R:N.key),y=o(N,y,R),T===null?x=N:T.sibling=N,T=N);return e&&j.forEach(function(Y){return t(v,Y)}),Te&&Or(v,R),x}function _(v,y,g,w){if(typeof g=="object"&&g!==null&&g.type===fi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Us:e:{for(var x=g.key,T=y;T!==null;){if(T.key===x){if(x=g.type,x===fi){if(T.tag===7){n(v,T.sibling),y=i(T,g.props.children),y.return=v,v=y;break e}}else if(T.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Un&&Kp(x)===T.type){n(v,T.sibling),y=i(T,g.props),y.ref=ho(v,T,g),y.return=v,v=y;break e}n(v,T);break}else t(v,T);T=T.sibling}g.type===fi?(y=$r(g.props.children,v.mode,w,g.key),y.return=v,v=y):(w=Pa(g.type,g.key,g.props,null,v.mode,w),w.ref=ho(v,y,g),w.return=v,v=w)}return s(v);case ci:e:{for(T=g.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){n(v,y.sibling),y=i(y,g.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=oc(g,v.mode,w),y.return=v,v=y}return s(v);case Un:return T=g._init,_(v,y,T(g._payload),w)}if(Co(g))return m(v,y,g,w);if(ao(g))return p(v,y,g,w);Zs(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,g),y.return=v,v=y):(n(v,y),y=ic(g,v.mode,w),y.return=v,v=y),s(v)):n(v,y)}return _}var zi=Zg(!0),e0=Zg(!1),bs={},cn=gr(bs),is=gr(bs),os=gr(bs);function Lr(e){if(e===bs)throw Error(Q(174));return e}function qd(e,t){switch(_e(os,t),_e(is,e),_e(cn,bs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kc(t,e)}Pe(cn),_e(cn,t)}function Vi(){Pe(cn),Pe(is),Pe(os)}function t0(e){Lr(os.current);var t=Lr(cn.current),n=Kc(t,e.type);t!==n&&(_e(is,e),_e(cn,n))}function Kd(e){is.current===e&&(Pe(cn),Pe(is))}var De=gr(0);function Za(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 Ju=[];function Gd(){for(var e=0;en?n:4,e(!0);var r=Zu.transition;Zu.transition={};try{e(!1),t()}finally{ye=n,Zu.transition=r}}function v0(){return Qt().memoizedState}function Ax(e,t,n){var r=ir(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},g0(e))w0(t,n);else if(n=Gg(e,t,n,r),n!==null){var i=mt();tn(n,e,r,i),S0(n,t,r)}}function Nx(e,t,n){var r=ir(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(g0(e))w0(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,nn(a,s)){var l=t.interleaved;l===null?(i.next=i,Hd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Gg(e,t,i,r),n!==null&&(i=mt(),tn(n,e,r,i),S0(n,t,r))}}function g0(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function w0(e,t){No=el=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function S0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jd(e,n)}}var tl={readContext:Ht,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Fx={readContext:Ht,useCallback:function(e,t){return on().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Yp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sa(4194308,4,d0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sa(4,2,e,t)},useMemo:function(e,t){var n=on();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=on();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=Ax.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=on();return e={current:e},t.memoizedState=e},useState:Gp,useDebugValue:eh,useDeferredValue:function(e){return on().memoizedState=e},useTransition:function(){var e=Gp(!1),t=e[0];return e=Lx.bind(null,e[1]),on().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=on();if(Te){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),et===null)throw Error(Q(349));Ur&30||i0(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Yp(s0.bind(null,r,o,e),[e]),r.flags|=2048,ls(9,o0.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=on(),t=et.identifierPrefix;if(Te){var n=xn,r=_n;n=(r&~(1<<32-en(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ss++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Nu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Eo(e):""}function h_(e){switch(e.tag){case 5:return Eo(e.type);case 16:return Eo("Lazy");case 13:return Eo("Suspense");case 19:return Eo("SuspenseList");case 0:case 2:case 15:return e=Fu(e.type,!1),e;case 11:return e=Fu(e.type.render,!1),e;case 1:return e=Fu(e.type,!0),e;default:return""}}function Bc(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 fi:return"Fragment";case ci:return"Portal";case zc:return"Profiler";case Cd:return"StrictMode";case Vc:return"Suspense";case Uc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Jv:return(e.displayName||"Context")+".Consumer";case Xv:return(e._context.displayName||"Context")+".Provider";case Od:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rd:return t=e.displayName||null,t!==null?t:Bc(e.type)||"Memo";case Un:t=e._payload,e=e._init;try{return Bc(e(t))}catch{}}return null}function p_(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 Bc(t);case 8:return t===Cd?"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 fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m_(e){var t=eg(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 Bs(e){e._valueTracker||(e._valueTracker=m_(e))}function tg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Fa(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 Wc(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function hp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=fr(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 ng(e,t){t=t.checked,t!=null&&Ed(e,"checked",t,!1)}function Hc(e,t){ng(e,t);var n=fr(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")?qc(e,t.type,n):t.hasOwnProperty("defaultValue")&&qc(e,t.type,fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pp(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 qc(e,t,n){(t!=="number"||Fa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Co=Array.isArray;function Ri(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ko(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jo={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},y_=["Webkit","ms","Moz","O"];Object.keys(jo).forEach(function(e){y_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jo[t]=jo[e]})});function sg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jo.hasOwnProperty(e)&&jo[e]?(""+t).trim():t+"px"}function ag(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=sg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var v_=Ae({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 Gc(e,t){if(t){if(v_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function Yc(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 Xc=null;function Td(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Jc=null,Ti=null,ki=null;function vp(e){if(e=xs(e)){if(typeof Jc!="function")throw Error(q(280));var t=e.stateNode;t&&(t=Al(t),Jc(e.stateNode,e.type,t))}}function lg(e){Ti?ki?ki.push(e):ki=[e]:Ti=e}function ug(){if(Ti){var e=Ti,t=ki;if(ki=Ti=null,vp(e),t)for(e=0;e>>=0,e===0?32:31-(R_(e)/T_|0)|0}var Hs=64,qs=4194304;function Oo(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 Va(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=Oo(a):(o&=s,o!==0&&(r=Oo(o)))}else s=n&~i,s!==0?r=Oo(s):o!==0&&(r=Oo(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-en(t),e[t]=n}function M_(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=Mo),Cp=String.fromCharCode(32),Op=!1;function Tg(e,t){switch(e){case"keyup":return ax.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function ux(e,t){switch(e){case"compositionend":return kg(t);case"keypress":return t.which!==32?null:(Op=!0,Cp);case"textInput":return e=t.data,e===Cp&&Op?null:e;default:return null}}function cx(e,t){if(di)return e==="compositionend"||!Fd&&Tg(e,t)?(e=Og(),ya=Ld=Yn=null,di=!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=jp(n)}}function Lg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ag(){for(var e=window,t=Fa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Fa(e.document)}return t}function Id(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 wx(e){var t=Ag(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lg(n.ownerDocument.documentElement,n)){if(r!==null&&Id(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=Dp(n,o);var s=Dp(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,hi=null,of=null,Ao=null,sf=!1;function Mp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sf||hi==null||hi!==Fa(r)||(r=hi,"selectionStart"in r&&Id(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}),Ao&&es(Ao,r)||(Ao=r,r=Wa(of,"onSelect"),0yi||(e.current=df[yi],df[yi]=null,yi--)}function _e(e,t){yi++,df[yi]=e.current,e.current=t}var dr={},dt=gr(dr),St=gr(!1),zr=dr;function Ii(e,t){var n=e.type.contextTypes;if(!n)return dr;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 _t(e){return e=e.childContextTypes,e!=null}function qa(){Pe(St),Pe(dt)}function zp(e,t,n){if(dt.current!==dr)throw Error(q(168));_e(dt,t),_e(St,n)}function Wg(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(q(108,p_(e)||"Unknown",i));return Ae({},n,r)}function Qa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dr,zr=dt.current,_e(dt,e),_e(St,St.current),!0}function Vp(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=Wg(e,t,zr),r.__reactInternalMemoizedMergedChildContext=e,Pe(St),Pe(dt),_e(dt,e)):Pe(St),_e(St,n)}var wn=null,Nl=!1,Xu=!1;function Hg(e){wn===null?wn=[e]:wn.push(e)}function jx(e){Nl=!0,Hg(e)}function wr(){if(!Xu&&wn!==null){Xu=!0;var e=0,t=ye;try{var n=wn;for(ye=1;e>=s,i-=s,_n=1<<32-en(t)+i|n<T?(I=j,j=null):I=j.sibling;var N=d(v,j,g[T],w);if(N===null){j===null&&(j=I);break}e&&j&&N.alternate===null&&t(v,j),y=o(N,y,T),R===null?x=N:R.sibling=N,R=N,j=I}if(T===g.length)return n(v,j),Re&&Or(v,T),x;if(j===null){for(;TT?(I=j,j=null):I=j.sibling;var J=d(v,j,N.value,w);if(J===null){j===null&&(j=I);break}e&&j&&J.alternate===null&&t(v,j),y=o(J,y,T),R===null?x=J:R.sibling=J,R=J,j=I}if(N.done)return n(v,j),Re&&Or(v,T),x;if(j===null){for(;!N.done;T++,N=g.next())N=f(v,N.value,w),N!==null&&(y=o(N,y,T),R===null?x=N:R.sibling=N,R=N);return Re&&Or(v,T),x}for(j=r(v,j);!N.done;T++,N=g.next())N=h(j,v,T,N.value,w),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?T:N.key),y=o(N,y,T),R===null?x=N:R.sibling=N,R=N);return e&&j.forEach(function(Y){return t(v,Y)}),Re&&Or(v,T),x}function _(v,y,g,w){if(typeof g=="object"&&g!==null&&g.type===fi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Us:e:{for(var x=g.key,R=y;R!==null;){if(R.key===x){if(x=g.type,x===fi){if(R.tag===7){n(v,R.sibling),y=i(R,g.props.children),y.return=v,v=y;break e}}else if(R.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Un&&Kp(x)===R.type){n(v,R.sibling),y=i(R,g.props),y.ref=ho(v,R,g),y.return=v,v=y;break e}n(v,R);break}else t(v,R);R=R.sibling}g.type===fi?(y=$r(g.props.children,v.mode,w,g.key),y.return=v,v=y):(w=Pa(g.type,g.key,g.props,null,v.mode,w),w.ref=ho(v,y,g),w.return=v,v=w)}return s(v);case ci:e:{for(R=g.key;y!==null;){if(y.key===R)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){n(v,y.sibling),y=i(y,g.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=oc(g,v.mode,w),y.return=v,v=y}return s(v);case Un:return R=g._init,_(v,y,R(g._payload),w)}if(Co(g))return m(v,y,g,w);if(ao(g))return p(v,y,g,w);Zs(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,g),y.return=v,v=y):(n(v,y),y=ic(g,v.mode,w),y.return=v,v=y),s(v)):n(v,y)}return _}var zi=Zg(!0),e0=Zg(!1),bs={},cn=gr(bs),is=gr(bs),os=gr(bs);function Lr(e){if(e===bs)throw Error(q(174));return e}function Qd(e,t){switch(_e(os,t),_e(is,e),_e(cn,bs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kc(t,e)}Pe(cn),_e(cn,t)}function Vi(){Pe(cn),Pe(is),Pe(os)}function t0(e){Lr(os.current);var t=Lr(cn.current),n=Kc(t,e.type);t!==n&&(_e(is,e),_e(cn,n))}function Kd(e){is.current===e&&(Pe(cn),Pe(is))}var De=gr(0);function Za(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 Ju=[];function Gd(){for(var e=0;en?n:4,e(!0);var r=Zu.transition;Zu.transition={};try{e(!1),t()}finally{ye=n,Zu.transition=r}}function v0(){return qt().memoizedState}function Ax(e,t,n){var r=ir(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},g0(e))w0(t,n);else if(n=Gg(e,t,n,r),n!==null){var i=mt();tn(n,e,r,i),S0(n,t,r)}}function Nx(e,t,n){var r=ir(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(g0(e))w0(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,nn(a,s)){var l=t.interleaved;l===null?(i.next=i,Hd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Gg(e,t,i,r),n!==null&&(i=mt(),tn(n,e,r,i),S0(n,t,r))}}function g0(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function w0(e,t){No=el=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function S0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,jd(e,n)}}var tl={readContext:Ht,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},Fx={readContext:Ht,useCallback:function(e,t){return on().memoizedState=[e,t===void 0?null:t],e},useContext:Ht,useEffect:Yp,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Sa(4194308,4,d0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sa(4194308,4,e,t)},useInsertionEffect:function(e,t){return Sa(4,2,e,t)},useMemo:function(e,t){var n=on();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=on();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=Ax.bind(null,Le,e),[r.memoizedState,e]},useRef:function(e){var t=on();return e={current:e},t.memoizedState=e},useState:Gp,useDebugValue:eh,useDeferredValue:function(e){return on().memoizedState=e},useTransition:function(){var e=Gp(!1),t=e[0];return e=Lx.bind(null,e[1]),on().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Le,i=on();if(Re){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),et===null)throw Error(q(349));Ur&30||i0(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Yp(s0.bind(null,r,o,e),[e]),r.flags|=2048,ls(9,o0.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=on(),t=et.identifierPrefix;if(Re){var n=xn,r=_n;n=(r&~(1<<32-en(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ss++,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[an]=t,e[rs]=r,R0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Yc(n,r),n){case"dialog":xe("cancel",e),xe("close",e),i=r;break;case"iframe":case"object":case"embed":xe("load",e),i=r;break;case"video":case"audio":for(i=0;iBi&&(t.flags|=128,r=!0,po(o,!1),t.lanes=4194304)}else{if(!r)if(e=Za(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Te)return at(t),null}else 2*Ue()-o.renderingStartTime>Bi&&n!==1073741824&&(t.flags|=128,r=!0,po(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=Ue(),t.sibling=null,n=De.current,_e(De,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return sh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function Hx(e,t){switch(zd(t),t.tag){case 1:return _t(t.type)&&Qa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(),Pe(St),Pe(dt),Gd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kd(t),null;case 13:if(Pe(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(De),null;case 4:return Vi(),null;case 10:return Wd(t.type._context),null;case 22:case 23:return sh(),null;case 24:return null;default:return null}}var ta=!1,ft=!1,Qx=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Pf(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var om=!1;function qx(e,t){if(af=Ua,e=Ag(),Id(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(lf={focusedElem:e,selectionRange:n},Ua=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,_=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:Gt(t.type,p),_);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(w){Ie(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return m=om,om=!1,m}function Fo(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&&Pf(t,n,o)}i=i.next}while(i!==r)}}function $l(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 Ef(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 D0(e){var t=e.alternate;t!==null&&(e.alternate=null,D0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[an],delete t[rs],delete t[ff],delete t[Rx],delete t[kx])),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 M0(e){return e.tag===5||e.tag===3||e.tag===4}function sm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M0(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 Cf(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=Ha));else if(r!==4&&(e=e.child,e!==null))for(Cf(e,t,n),e=e.sibling;e!==null;)Cf(e,t,n),e=e.sibling}function Of(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(Of(e,t,n),e=e.sibling;e!==null;)Of(e,t,n),e=e.sibling}var rt=null,Yt=!1;function $n(e,t,n){for(n=n.child;n!==null;)L0(e,t,n),n=n.sibling}function L0(e,t,n){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(jl,n)}catch{}switch(n.tag){case 5:ft||Si(n,t);case 6:var r=rt,i=Yt;rt=null,$n(e,t,n),rt=r,Yt=i,rt!==null&&(Yt?(e=rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rt.removeChild(n.stateNode));break;case 18:rt!==null&&(Yt?(e=rt,n=n.stateNode,e.nodeType===8?Yu(e.parentNode,n):e.nodeType===1&&Yu(e,n),Jo(e)):Yu(rt,n.stateNode));break;case 4:r=rt,i=Yt,rt=n.stateNode.containerInfo,Yt=!0,$n(e,t,n),rt=r,Yt=i;break;case 0:case 11:case 14:case 15:if(!ft&&(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)&&Pf(n,t,s),i=i.next}while(i!==r)}$n(e,t,n);break;case 1:if(!ft&&(Si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ie(n,t,a)}$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:n.mode&1?(ft=(r=ft)||n.memoizedState!==null,$n(e,t,n),ft=r):$n(e,t,n);break;default:$n(e,t,n)}}function am(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qx),t.forEach(function(r){var i=nb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Gx(r/1960))-r,10e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,il=0,he&6)throw Error(Q(331));var i=he;for(he|=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;lUe()-ih?Ir(e,0):rh|=n),xt(e,t)}function U0(e,t){t===0&&(e.mode&1?(t=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):t=1);var n=mt();e=jn(e,t),e!==null&&(Ss(e,t,n),xt(e,n))}function tb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),U0(e,n)}function nb(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(Q(314))}r!==null&&r.delete(t),U0(e,n)}var B0;B0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,Bx(e,t,n);wt=!!(e.flags&131072)}else wt=!1,Te&&t.flags&1048576&&Qg(t,Ga,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_a(e,t),e=t.pendingProps;var i=Ii(t,dt.current);Di(t,n),i=Xd(null,t,r,e,i,n);var o=Jd();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,_t(r)?(o=!0,qa(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Qd(t),i.updater=Fl,t.stateNode=i,i._reactInternals=t,vf(t,r,e,n),t=Sf(null,t,r,!0,o,n)):(t.tag=0,Te&&o&&$d(t),pt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_a(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ib(r),e=Gt(r,e),i){case 0:t=wf(null,t,r,e,n);break e;case 1:t=nm(null,t,r,e,n);break e;case 11:t=em(null,t,r,e,n);break e;case 14:t=tm(null,t,r,Gt(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),wf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),nm(e,t,r,i,n);case 3:e:{if(C0(t),e===null)throw Error(Q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Yg(e,t),Ja(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=Ui(Error(Q(423)),t),t=rm(e,t,r,n,i);break e}else if(r!==i){i=Ui(Error(Q(424)),t),t=rm(e,t,r,n,i);break e}else for(Ot=tr(t.stateNode.containerInfo.firstChild),Tt=t,Te=!0,Jt=null,n=e0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===i){t=Dn(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return t0(t),e===null&&pf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,uf(r,i)?s=null:o!==null&&uf(r,o)&&(t.flags|=32),E0(e,t),pt(e,t,s,n),t.child;case 6:return e===null&&pf(t),null;case 13:return O0(e,t,n);case 4:return qd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zi(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),em(e,t,r,i,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(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(Ya,r._currentValue),r._currentValue=s,o!==null)if(nn(o.value,s)){if(o.children===i.children&&!St.current){t=Dn(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=Pn(-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),mf(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(Q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),mf(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}pt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Di(t,n),i=Ht(i),r=r(i),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,i=Gt(r,t.pendingProps),i=Gt(r.type,i),tm(e,t,r,i,n);case 15:return b0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),_a(e,t),t.tag=1,_t(r)?(e=!0,qa(t)):e=!1,Di(t,n),Jg(t,r,i),vf(t,r,i,n),Sf(null,t,r,!0,e,n);case 19:return T0(e,t,n);case 22:return P0(e,t,n)}throw Error(Q(156,t.tag))};function W0(e,t){return yg(e,t)}function rb(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 Vt(e,t,n,r){return new rb(e,t,n,r)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ib(e){if(typeof e=="function")return lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Od)return 11;if(e===Td)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Vt(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")lh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fi:return $r(n.children,i,o,t);case Cd:s=8,i|=8;break;case zc:return e=Vt(12,n,t,i|2),e.elementType=zc,e.lanes=o,e;case Vc:return e=Vt(13,n,t,i),e.elementType=Vc,e.lanes=o,e;case Uc:return e=Vt(19,n,t,i),e.elementType=Uc,e.lanes=o,e;case Zv:return Vl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xv:s=10;break e;case Jv:s=9;break e;case Od:s=11;break e;case Td:s=14;break e;case Un:s=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=Vt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $r(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Zv,e.lanes=n,e.stateNode={isHidden:!1},e}function ic(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function oc(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ob(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=$u(0),this.expirationTimes=$u(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uh(e,t,n,r,i,o,s,a,l){return e=new ob(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Vt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qd(o),e}function sb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(K0)}catch(e){console.error(e)}}K0(),Qv.exports=Dt;var cs=Qv.exports;const fb=gd(cs);var mm=cs;Ic.createRoot=mm.createRoot,Ic.hydrateRoot=mm.hydrateRoot;var G0={exports:{}},Y0={};/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function nc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function gf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var zx=typeof WeakMap=="function"?WeakMap:Map;function _0(e,t,n){n=Pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){rl||(rl=!0,Rf=r),gf(e,t)},n}function x0(e,t,n){n=Pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){gf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){gf(e,t),typeof r!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Xp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zx;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=eb.bind(null,e,t,n),t.then(e,e))}function Jp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zp(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Pn(-1,1),t.tag=2,nr(n,t,1))),n.lanes|=1),e)}var Vx=An.ReactCurrentOwner,wt=!1;function pt(e,t,n,r){t.child=e===null?e0(t,null,n,r):zi(t,e.child,n,r)}function em(e,t,n,r,i){n=n.render;var o=t.ref;return Di(t,i),r=Xd(e,t,n,r,o,i),n=Jd(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Dn(e,t,i)):(Re&&n&&$d(t),t.flags|=1,pt(e,t,r,i),t.child)}function tm(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!lh(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,b0(e,t,o,r,i)):(e=Pa(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:es,n(s,r)&&e.ref===t.ref)return Dn(e,t,i)}return t.flags|=1,e=or(o,r),e.ref=t.ref,e.return=t,t.child=e}function b0(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(es(o,r)&&e.ref===t.ref)if(wt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(wt=!0);else return t.lanes=e.lanes,Dn(e,t,i)}return wf(e,t,n,r,i)}function P0(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(_i,Et),Et|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(_i,Et),Et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,_e(_i,Et),Et|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,_e(_i,Et),Et|=r;return pt(e,t,i,n),t.child}function E0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wf(e,t,n,r,i){var o=_t(n)?zr:dt.current;return o=Ii(t,o),Di(t,i),n=Xd(e,t,n,r,o,i),r=Jd(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Dn(e,t,i)):(Re&&r&&$d(t),t.flags|=1,pt(e,t,n,i),t.child)}function nm(e,t,n,r,i){if(_t(n)){var o=!0;Qa(t)}else o=!1;if(Di(t,i),t.stateNode===null)_a(e,t),Jg(t,n,r),vf(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ht(u):(u=_t(n)?zr:dt.current,u=Ii(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Qp(t,s,r,u),Bn=!1;var d=t.memoizedState;s.state=d,Ja(t,r,s,i),l=t.memoizedState,a!==r||d!==l||St.current||Bn?(typeof c=="function"&&(yf(t,n,c,r),l=t.memoizedState),(a=Bn||qp(t,n,a,r,d,l,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Yg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Gt(t.type,a),s.props=u,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ht(l):(l=_t(n)?zr:dt.current,l=Ii(t,l));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Qp(t,s,r,l),Bn=!1,d=t.memoizedState,s.state=d,Ja(t,r,s,i);var m=t.memoizedState;a!==f||d!==m||St.current||Bn?(typeof h=="function"&&(yf(t,n,h,r),m=t.memoizedState),(u=Bn||qp(t,n,u,r,d,m,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Sf(e,t,n,r,o,i)}function Sf(e,t,n,r,i,o){E0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Vp(t,n,!1),Dn(e,t,o);r=t.stateNode,Vx.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=zi(t,e.child,null,o),t.child=zi(t,null,a,o)):pt(e,t,a,o),t.memoizedState=r.state,i&&Vp(t,n,!0),t.child}function C0(e){var t=e.stateNode;t.pendingContext?zp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&zp(e,t.context,!1),Qd(e,t.containerInfo)}function rm(e,t,n,r,i){return $i(),Vd(i),t.flags|=256,pt(e,t,n,r),t.child}var _f={dehydrated:null,treeContext:null,retryLane:0};function xf(e){return{baseLanes:e,cachePool:null,transitions:null}}function O0(e,t,n){var r=t.pendingProps,i=De.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_e(De,i&1),e===null)return pf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Vl(s,r,0,null),e=$r(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=xf(n),t.memoizedState=_f,e):th(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Ux(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=or(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=or(a,o):(o=$r(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?xf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=_f,r}return o=e.child,e=o.sibling,r=or(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function th(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ea(e,t,n,r){return r!==null&&Vd(r),zi(t,e.child,null,n),e=th(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ux(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=nc(Error(q(422))),ea(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Vl({mode:"visible",children:r.children},i,0,null),o=$r(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&zi(t,e.child,null,s),t.child.memoizedState=xf(s),t.memoizedState=_f,o);if(!(t.mode&1))return ea(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(q(419)),r=nc(o,r,void 0),ea(e,t,s,r)}if(a=(s&e.childLanes)!==0,wt||a){if(r=et,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,jn(e,i),tn(r,e,i,-1))}return ah(),r=nc(Error(q(421))),ea(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=tb.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ot=tr(i.nextSibling),Rt=t,Re=!0,Jt=null,e!==null&&($t[zt++]=_n,$t[zt++]=xn,$t[zt++]=Vr,_n=e.id,xn=e.overflow,Vr=t),t=th(t,r.children),t.flags|=4096,t)}function im(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),mf(e.return,t,n)}function rc(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function R0(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(pt(e,t,r.children,n),r=De.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&im(e,n,t);else if(e.tag===19)im(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_e(De,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Za(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rc(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Za(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rc(t,!0,n,null,o);break;case"together":rc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _a(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Br|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Bx(e,t,n){switch(t.tag){case 3:C0(t),$i();break;case 5:t0(t);break;case 1:_t(t.type)&&Qa(t);break;case 4:Qd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_e(Ya,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(De,De.current&1),t.flags|=128,null):n&t.child.childLanes?O0(e,t,n):(_e(De,De.current&1),e=Dn(e,t,n),e!==null?e.sibling:null);_e(De,De.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return R0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(De,De.current),r)break;return null;case 22:case 23:return t.lanes=0,P0(e,t,n)}return Dn(e,t,n)}var T0,bf,k0,j0;T0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};bf=function(){};k0=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Lr(cn.current);var o=null;switch(n){case"input":i=Wc(e,i),r=Wc(e,r),o=[];break;case"select":i=Ae({},i,{value:void 0}),r=Ae({},r,{value:void 0}),o=[];break;case"textarea":i=Qc(e,i),r=Qc(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ha)}Gc(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&xe("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};j0=function(e,t,n,r){n!==r&&(t.flags|=4)};function po(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wx(e,t,n){var r=t.pendingProps;switch(zd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return _t(t.type)&&qa(),at(t),null;case 3:return r=t.stateNode,Vi(),Pe(St),Pe(dt),Gd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Js(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Jt!==null&&(jf(Jt),Jt=null))),bf(e,t),at(t),null;case 5:Kd(t);var i=Lr(os.current);if(n=t.type,e!==null&&t.stateNode!=null)k0(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(q(166));return at(t),null}if(e=Lr(cn.current),Js(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[an]=t,r[rs]=o,e=(t.mode&1)!==0,n){case"dialog":xe("cancel",r),xe("close",r);break;case"iframe":case"object":case"embed":xe("load",r);break;case"video":case"audio":for(i=0;i<\/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[an]=t,e[rs]=r,T0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Yc(n,r),n){case"dialog":xe("cancel",e),xe("close",e),i=r;break;case"iframe":case"object":case"embed":xe("load",e),i=r;break;case"video":case"audio":for(i=0;iBi&&(t.flags|=128,r=!0,po(o,!1),t.lanes=4194304)}else{if(!r)if(e=Za(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Re)return at(t),null}else 2*Ue()-o.renderingStartTime>Bi&&n!==1073741824&&(t.flags|=128,r=!0,po(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=Ue(),t.sibling=null,n=De.current,_e(De,r?n&1|2:n&1),t):(at(t),null);case 22:case 23:return sh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function Hx(e,t){switch(zd(t),t.tag){case 1:return _t(t.type)&&qa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vi(),Pe(St),Pe(dt),Gd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Kd(t),null;case 13:if(Pe(De),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));$i()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(De),null;case 4:return Vi(),null;case 10:return Wd(t.type._context),null;case 22:case 23:return sh(),null;case 24:return null;default:return null}}var ta=!1,ft=!1,qx=typeof WeakSet=="function"?WeakSet:Set,ee=null;function Si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Pf(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var om=!1;function Qx(e,t){if(af=Ua,e=Ag(),Id(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(lf={focusedElem:e,selectionRange:n},Ua=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var p=m.memoizedProps,_=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?p:Gt(t.type,p),_);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(w){Ie(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,ee=e;break}ee=t.return}return m=om,om=!1,m}function Fo(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&&Pf(t,n,o)}i=i.next}while(i!==r)}}function $l(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 Ef(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 D0(e){var t=e.alternate;t!==null&&(e.alternate=null,D0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[an],delete t[rs],delete t[ff],delete t[Tx],delete t[kx])),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 M0(e){return e.tag===5||e.tag===3||e.tag===4}function sm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M0(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 Cf(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=Ha));else if(r!==4&&(e=e.child,e!==null))for(Cf(e,t,n),e=e.sibling;e!==null;)Cf(e,t,n),e=e.sibling}function Of(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(Of(e,t,n),e=e.sibling;e!==null;)Of(e,t,n),e=e.sibling}var rt=null,Yt=!1;function $n(e,t,n){for(n=n.child;n!==null;)L0(e,t,n),n=n.sibling}function L0(e,t,n){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount(jl,n)}catch{}switch(n.tag){case 5:ft||Si(n,t);case 6:var r=rt,i=Yt;rt=null,$n(e,t,n),rt=r,Yt=i,rt!==null&&(Yt?(e=rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rt.removeChild(n.stateNode));break;case 18:rt!==null&&(Yt?(e=rt,n=n.stateNode,e.nodeType===8?Yu(e.parentNode,n):e.nodeType===1&&Yu(e,n),Jo(e)):Yu(rt,n.stateNode));break;case 4:r=rt,i=Yt,rt=n.stateNode.containerInfo,Yt=!0,$n(e,t,n),rt=r,Yt=i;break;case 0:case 11:case 14:case 15:if(!ft&&(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)&&Pf(n,t,s),i=i.next}while(i!==r)}$n(e,t,n);break;case 1:if(!ft&&(Si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ie(n,t,a)}$n(e,t,n);break;case 21:$n(e,t,n);break;case 22:n.mode&1?(ft=(r=ft)||n.memoizedState!==null,$n(e,t,n),ft=r):$n(e,t,n);break;default:$n(e,t,n)}}function am(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new qx),t.forEach(function(r){var i=nb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Gx(r/1960))-r,10e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,il=0,he&6)throw Error(q(331));var i=he;for(he|=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;lUe()-ih?Ir(e,0):rh|=n),xt(e,t)}function U0(e,t){t===0&&(e.mode&1?(t=qs,qs<<=1,!(qs&130023424)&&(qs=4194304)):t=1);var n=mt();e=jn(e,t),e!==null&&(Ss(e,t,n),xt(e,n))}function tb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),U0(e,n)}function nb(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(q(314))}r!==null&&r.delete(t),U0(e,n)}var B0;B0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||St.current)wt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return wt=!1,Bx(e,t,n);wt=!!(e.flags&131072)}else wt=!1,Re&&t.flags&1048576&&qg(t,Ga,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_a(e,t),e=t.pendingProps;var i=Ii(t,dt.current);Di(t,n),i=Xd(null,t,r,e,i,n);var o=Jd();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,_t(r)?(o=!0,Qa(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qd(t),i.updater=Fl,t.stateNode=i,i._reactInternals=t,vf(t,r,e,n),t=Sf(null,t,r,!0,o,n)):(t.tag=0,Re&&o&&$d(t),pt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_a(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ib(r),e=Gt(r,e),i){case 0:t=wf(null,t,r,e,n);break e;case 1:t=nm(null,t,r,e,n);break e;case 11:t=em(null,t,r,e,n);break e;case 14:t=tm(null,t,r,Gt(r.type,e),n);break e}throw Error(q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),wf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),nm(e,t,r,i,n);case 3:e:{if(C0(t),e===null)throw Error(q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Yg(e,t),Ja(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=Ui(Error(q(423)),t),t=rm(e,t,r,n,i);break e}else if(r!==i){i=Ui(Error(q(424)),t),t=rm(e,t,r,n,i);break e}else for(Ot=tr(t.stateNode.containerInfo.firstChild),Rt=t,Re=!0,Jt=null,n=e0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($i(),r===i){t=Dn(e,t,n);break e}pt(e,t,r,n)}t=t.child}return t;case 5:return t0(t),e===null&&pf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,uf(r,i)?s=null:o!==null&&uf(r,o)&&(t.flags|=32),E0(e,t),pt(e,t,s,n),t.child;case 6:return e===null&&pf(t),null;case 13:return O0(e,t,n);case 4:return Qd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=zi(t,null,r,n):pt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),em(e,t,r,i,n);case 7:return pt(e,t,t.pendingProps,n),t.child;case 8:return pt(e,t,t.pendingProps.children,n),t.child;case 12:return pt(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(Ya,r._currentValue),r._currentValue=s,o!==null)if(nn(o.value,s)){if(o.children===i.children&&!St.current){t=Dn(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=Pn(-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),mf(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(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),mf(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}pt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Di(t,n),i=Ht(i),r=r(i),t.flags|=1,pt(e,t,r,n),t.child;case 14:return r=t.type,i=Gt(r,t.pendingProps),i=Gt(r.type,i),tm(e,t,r,i,n);case 15:return b0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gt(r,i),_a(e,t),t.tag=1,_t(r)?(e=!0,Qa(t)):e=!1,Di(t,n),Jg(t,r,i),vf(t,r,i,n),Sf(null,t,r,!0,e,n);case 19:return R0(e,t,n);case 22:return P0(e,t,n)}throw Error(q(156,t.tag))};function W0(e,t){return yg(e,t)}function rb(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 Vt(e,t,n,r){return new rb(e,t,n,r)}function lh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ib(e){if(typeof e=="function")return lh(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Od)return 11;if(e===Rd)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Vt(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")lh(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fi:return $r(n.children,i,o,t);case Cd:s=8,i|=8;break;case zc:return e=Vt(12,n,t,i|2),e.elementType=zc,e.lanes=o,e;case Vc:return e=Vt(13,n,t,i),e.elementType=Vc,e.lanes=o,e;case Uc:return e=Vt(19,n,t,i),e.elementType=Uc,e.lanes=o,e;case Zv:return Vl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xv:s=10;break e;case Jv:s=9;break e;case Od:s=11;break e;case Rd:s=14;break e;case Un:s=16,r=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=Vt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $r(e,t,n,r){return e=Vt(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=Vt(22,e,r,t),e.elementType=Zv,e.lanes=n,e.stateNode={isHidden:!1},e}function ic(e,t,n){return e=Vt(6,e,null,t),e.lanes=n,e}function oc(e,t,n){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ob(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=$u(0),this.expirationTimes=$u(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function uh(e,t,n,r,i,o,s,a,l){return e=new ob(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Vt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},qd(o),e}function sb(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(K0)}catch(e){console.error(e)}}K0(),qv.exports=Dt;var cs=qv.exports;const fb=gd(cs);var mm=cs;Ic.createRoot=mm.createRoot,Ic.hydrateRoot=mm.hydrateRoot;var G0={exports:{}},Y0={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -53,14 +53,14 @@ Error generating stack: `+o.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Ql=P,xb=_b;function bb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pb=typeof Object.is=="function"?Object.is:bb,Eb=xb.useSyncExternalStore,Cb=Ql.useRef,Ob=Ql.useEffect,Tb=Ql.useMemo,Rb=Ql.useDebugValue;J0.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Cb(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Tb(function(){function l(h){if(!u){if(u=!0,c=h,h=r(h),i!==void 0&&s.hasValue){var m=s.value;if(i(m,h))return f=m}return f=h}if(m=f,Pb(c,h))return m;var p=r(h);return i!==void 0&&i(m,p)?m:(c=h,f=p)}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=Eb(e,o[0],o[1]);return Ob(function(){s.hasValue=!0,s.value=a},[a]),Rb(a),a};X0.exports=J0;var kb=X0.exports;function jb(e){e()}let Z0=jb;const Db=e=>Z0=e,Mb=()=>Z0,ym=Symbol.for(`react-redux-context-${P.version}`),vm=globalThis;function Lb(){let e=vm[ym];return e||(e=P.createContext(null),vm[ym]=e),e}const hr=new Proxy({},new Proxy({},{get(e,t){const n=Lb();return(r,...i)=>Reflect[t](n,...i)}}));function hh(e=hr){return function(){return P.useContext(e)}}const e1=hh(),Ab=()=>{throw new Error("uSES not initialized!")};let t1=Ab;const Nb=e=>{t1=e},Fb=(e,t)=>e===t;function Ib(e=hr){const t=e===hr?e1:hh(e);return function(r,i={}){const{equalityFn:o=Fb,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](p){return r(p)}}[r.name],[r,f,s]),m=t1(u.addNestedSub,l.getState,c||l.getState,h,o);return P.useDebugValue(m),m}}const ph=Ib();function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;tZ0=e,Mb=()=>Z0,ym=Symbol.for(`react-redux-context-${P.version}`),vm=globalThis;function Lb(){let e=vm[ym];return e||(e=P.createContext(null),vm[ym]=e),e}const hr=new Proxy({},new Proxy({},{get(e,t){const n=Lb();return(r,...i)=>Reflect[t](n,...i)}}));function hh(e=hr){return function(){return P.useContext(e)}}const e1=hh(),Ab=()=>{throw new Error("uSES not initialized!")};let t1=Ab;const Nb=e=>{t1=e},Fb=(e,t)=>e===t;function Ib(e=hr){const t=e===hr?e1:hh(e);return function(r,i={}){const{equalityFn:o=Fb,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](p){return r(p)}}[r.name],[r,f,s]),m=t1(u.addNestedSub,l.getState,c||l.getState,h,o);return P.useDebugValue(m),m}}const ph=Ib();function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t{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 gm={notify(){},get:()=>[]};function Yb(e,t){let n,r=gm;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=Gb())}function u(){n&&(n(),n=void 0,r.clear(),r=gm)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const Xb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jb=Xb?P.useLayoutEffect:P.useEffect;function Zb({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=P.useMemo(()=>{const u=Yb(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]);Jb(()=>{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||hr;return Ye.createElement(l.Provider,{value:s},n)}function a1(e=hr){const t=e===hr?e1:hh(e);return function(){const{store:r}=t();return r}}const eP=a1();function tP(e=hr){const t=e===hr?eP:a1(e);return function(){return t().dispatch}}const nP=tP();Nb(kb.useSyncExternalStoreWithSelector);Db(cs.unstable_batchedUpdates);const rP="modulepreload",iP=function(e){return"/movix/"+e},wm={},Ps=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=iP(o),o in wm)return;wm[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":rP,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})};/** + */var gh=Symbol.for("react.element"),wh=Symbol.for("react.portal"),ru=Symbol.for("react.fragment"),iu=Symbol.for("react.strict_mode"),ou=Symbol.for("react.profiler"),su=Symbol.for("react.provider"),au=Symbol.for("react.context"),Qb=Symbol.for("react.server_context"),lu=Symbol.for("react.forward_ref"),uu=Symbol.for("react.suspense"),cu=Symbol.for("react.suspense_list"),fu=Symbol.for("react.memo"),du=Symbol.for("react.lazy"),Kb=Symbol.for("react.offscreen"),s1;s1=Symbol.for("react.module.reference");function Qt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gh:switch(e=e.type,e){case ru:case ou:case iu:case uu:case cu:return e;default:switch(e=e&&e.$$typeof,e){case Qb:case au:case lu:case du:case fu:case su:return e;default:return t}}case wh:return t}}}we.ContextConsumer=au;we.ContextProvider=su;we.Element=gh;we.ForwardRef=lu;we.Fragment=ru;we.Lazy=du;we.Memo=fu;we.Portal=wh;we.Profiler=ou;we.StrictMode=iu;we.Suspense=uu;we.SuspenseList=cu;we.isAsyncMode=function(){return!1};we.isConcurrentMode=function(){return!1};we.isContextConsumer=function(e){return Qt(e)===au};we.isContextProvider=function(e){return Qt(e)===su};we.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gh};we.isForwardRef=function(e){return Qt(e)===lu};we.isFragment=function(e){return Qt(e)===ru};we.isLazy=function(e){return Qt(e)===du};we.isMemo=function(e){return Qt(e)===fu};we.isPortal=function(e){return Qt(e)===wh};we.isProfiler=function(e){return Qt(e)===ou};we.isStrictMode=function(e){return Qt(e)===iu};we.isSuspense=function(e){return Qt(e)===uu};we.isSuspenseList=function(e){return Qt(e)===cu};we.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ru||e===ou||e===iu||e===uu||e===cu||e===Kb||typeof e=="object"&&e!==null&&(e.$$typeof===du||e.$$typeof===fu||e.$$typeof===su||e.$$typeof===au||e.$$typeof===lu||e.$$typeof===s1||e.getModuleId!==void 0)};we.typeOf=Qt;function Gb(){const e=Mb();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 gm={notify(){},get:()=>[]};function Yb(e,t){let n,r=gm;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=Gb())}function u(){n&&(n(),n=void 0,r.clear(),r=gm)}const c={addNestedSub:i,notifyNestedSubs:o,handleChangeWrapper:s,isSubscribed:a,trySubscribe:l,tryUnsubscribe:u,getListeners:()=>r};return c}const Xb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jb=Xb?P.useLayoutEffect:P.useEffect;function Zb({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",noopCheck:o="once"}){const s=P.useMemo(()=>{const u=Yb(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]);Jb(()=>{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||hr;return Ye.createElement(l.Provider,{value:s},n)}function a1(e=hr){const t=e===hr?e1:hh(e);return function(){const{store:r}=t();return r}}const eP=a1();function tP(e=hr){const t=e===hr?eP:a1(e);return function(){return t().dispatch}}const nP=tP();Nb(kb.useSyncExternalStoreWithSelector);Db(cs.unstable_batchedUpdates);const rP="modulepreload",iP=function(e){return"/movix/"+e},wm={},Ps=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=iP(o),o in wm)return;wm[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":rP,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})};/** * @remix-run/router v1.7.1 * * Copyright (c) Remix Software Inc. @@ -77,8 +77,8 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Hi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sP(){return Math.random().toString(36).substr(2,8)}function _m(e,t){return{usr:e.state,key:e.key,idx:t}}function fs(e,t,n,r){return n===void 0&&(n=null),Ce({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nn(t):t,{state:n,key:t&&t.key||r||sP()})}function Hr(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 Nn(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 aP(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=He.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Ce({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=He.Pop;let _=c(),v=_==null?null:_-u;u=_,l&&l({action:a,location:p.location,delta:v})}function d(_,v){a=He.Push;let y=fs(p.location,_,v);n&&n(y,_),u=c()+1;let g=_m(y,u),w=p.createHref(y);try{s.pushState(g,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(w)}o&&l&&l({action:a,location:p.location,delta:1})}function h(_,v){a=He.Replace;let y=fs(p.location,_,v);n&&n(y,_),u=c();let g=_m(y,u),w=p.createHref(y);s.replaceState(g,"",w),o&&l&&l({action:a,location:p.location,delta:0})}function m(_){let v=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof _=="string"?_:Hr(_);return se(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let p={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(Sm,f),l=_,()=>{i.removeEventListener(Sm,f),l=null}},createHref(_){return t(i,_)},createURL:m,encodeLocation(_){let v=m(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(_){return s.go(_)}};return p}var Ke;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ke||(Ke={}));const lP=new Set(["lazy","caseSensitive","path","id","index","children"]);function uP(e){return e.index===!0}function Df(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(se(i.index!==!0||!i.children,"Cannot specify children on an index route"),se(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),uP(i)){let l=Ce({},i,t(i),{id:a});return r[a]=l,l}else{let l=Ce({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=Df(i.children,t,s,r)),l}})}function xi(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Nn(t):t,i=Yr(r.pathname||"/",n);if(i==null)return null;let o=l1(e);cP(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("/")&&(se(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=En([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(se(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),l1(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:vP(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 u1(o.path))i(o,s,l)}),t}function u1(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=u1(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 cP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fP=/^:\w+$/,dP=3,hP=2,pP=1,mP=10,yP=-2,xm=e=>e==="*";function vP(e,t){let n=e.split("/"),r=n.length;return n.some(xm)&&(r+=yP),t&&(r+=hP),n.filter(i=>!xm(i)).reduce((i,o)=>i+(fP.test(o)?dP:o===""?pP:mP),r)}function gP(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 wP(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]=bP(a[f]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function _P(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Hi(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 xP(e){try{return decodeURI(e)}catch(t){return Hi(!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 bP(e,t){try{return decodeURIComponent(e)}catch(n){return Hi(!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 Yr(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 PP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nn(e):e;return{pathname:n?n.startsWith("/")?n:EP(n,t):t,search:OP(r),hash:TP(i)}}function EP(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 ac(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 hu(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Sh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Nn(e):(i=Ce({},e),se(!i.pathname||!i.pathname.includes("?"),ac("?","pathname","search",i)),se(!i.pathname||!i.pathname.includes("#"),ac("#","pathname","hash",i)),se(!i.search||!i.search.includes("#"),ac("#","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=PP(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const En=e=>e.join("/").replace(/\/\/+/g,"/"),CP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class _h{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 c1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const f1=["post","put","patch","delete"],RP=new Set(f1),kP=["get",...f1],jP=new Set(kP),DP=new Set([301,302,303,307,308]),MP=new Set([307,308]),lc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},LP={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},d1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AP=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function NP(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;se(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 L=e.detectErrorBoundary;i=A=>({hasErrorBoundary:L(A)})}else i=AP;let o={},s=Df(e.routes,i,void 0,o),a,l=e.basename||"/",u=Ce({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,d=null,h=null,m=null,p=e.hydrationData!=null,_=xi(s,e.history.location,l),v=null;if(_==null){let L=It(404,{pathname:e.history.location.pathname}),{matches:A,route:b}=km(s);_=A,v={[b.id]:L}}let y=!_.some(L=>L.route.lazy)&&(!_.some(L=>L.route.loader)||e.hydrationData!=null),g,w={historyAction:e.history.action,location:e.history.location,matches:_,initialized:y,navigation:lc,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||v,fetchers:new Map,blockers:new Map},x=He.Pop,T=!1,j,R=!1,I=!1,N=[],J=[],Y=new Map,K=0,$=-1,F=new Map,W=new Set,U=new Map,M=new Map,z=new Map,H=!1;function q(){return c=e.history.listen(L=>{let{action:A,location:b,delta:S}=L;if(H){H=!1;return}Hi(z.size===0||S!=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 O=br({currentLocation:w.location,nextLocation:b,historyAction:A});if(O&&S!=null){H=!0,e.history.go(S*-1),ri(O,{state:"blocked",location:b,proceed(){ri(O,{state:"proceeding",proceed:void 0,reset:void 0,location:b}),e.history.go(S)},reset(){let D=new Map(w.blockers);D.set(O,yo),Z({blockers:D})}});return}return Se(A,b)}),w.initialized||Se(He.Pop,w.location),g}function te(){c&&c(),f.clear(),j&&j.abort(),w.fetchers.forEach((L,A)=>xr(A)),w.blockers.forEach((L,A)=>ro(A))}function ne(L){return f.add(L),()=>f.delete(L)}function Z(L){w=Ce({},w,L),f.forEach(A=>A(w))}function ue(L,A){var b,S;let O=w.actionData!=null&&w.navigation.formMethod!=null&&Xt(w.navigation.formMethod)&&w.navigation.state==="loading"&&((b=L.state)==null?void 0:b._isRedirect)!==!0,D;A.actionData?Object.keys(A.actionData).length>0?D=A.actionData:D=null:O?D=w.actionData:D=null;let C=A.loaderData?Rm(w.loaderData,A.loaderData,A.matches||[],A.errors):w.loaderData,k=w.blockers;k.size>0&&(k=new Map(k),k.forEach((G,X)=>k.set(X,yo)));let B=T===!0||w.navigation.formMethod!=null&&Xt(w.navigation.formMethod)&&((S=L.state)==null?void 0:S._isRedirect)!==!0;a&&(s=a,a=void 0),R||x===He.Pop||(x===He.Push?e.history.push(L,L.state):x===He.Replace&&e.history.replace(L,L.state)),Z(Ce({},A,{actionData:D,loaderData:C,historyAction:x,location:L,initialized:!0,navigation:lc,revalidation:"idle",restoreScrollPosition:Pr(L,A.matches||w.matches),preventScrollReset:B,blockers:k})),x=He.Pop,T=!1,R=!1,I=!1,N=[],J=[]}async function me(L,A){if(typeof L=="number"){e.history.go(L);return}let b=Mf(w.location,w.matches,l,u.v7_prependBasename,L,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:S,submission:O,error:D}=bm(u.v7_normalizeFormMethod,!1,b,A),C=w.location,k=fs(w.location,S,A&&A.state);k=Ce({},k,e.history.encodeLocation(k));let B=A&&A.replace!=null?A.replace:void 0,G=He.Push;B===!0?G=He.Replace:B===!1||O!=null&&Xt(O.formMethod)&&O.formAction===w.location.pathname+w.location.search&&(G=He.Replace);let X=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ie=br({currentLocation:C,nextLocation:k,historyAction:G});if(ie){ri(ie,{state:"blocked",location:k,proceed(){ri(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),me(L,A)},reset(){let oe=new Map(w.blockers);oe.set(ie,yo),Z({blockers:oe})}});return}return await Se(G,k,{submission:O,pendingError:D,preventScrollReset:X,replace:A&&A.replace})}function Be(){if(ni(),Z({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Se(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Se(x||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function Se(L,A,b){j&&j.abort(),j=null,x=L,R=(b&&b.startUninterruptedRevalidation)===!0,$s(w.location,w.matches),T=(b&&b.preventScrollReset)===!0;let S=a||s,O=b&&b.overrideNavigation,D=xi(S,A,l);if(!D){let oe=It(404,{pathname:A.pathname}),{matches:ae,route:le}=km(S);io(),ue(A,{matches:ae,loaderData:{},errors:{[le.id]:oe}});return}if(w.initialized&&!I&&VP(w.location,A)&&!(b&&b.submission&&Xt(b.submission.formMethod))){ue(A,{matches:D});return}j=new AbortController;let C=go(e.history,A,j.signal,b&&b.submission),k,B;if(b&&b.pendingError)B={[bi(D).route.id]:b.pendingError};else if(b&&b.submission&&Xt(b.submission.formMethod)){let oe=await ge(C,A,b.submission,D,{replace:b.replace});if(oe.shortCircuited)return;k=oe.pendingActionData,B=oe.pendingActionError,O=ia(A,b.submission),C=new Request(C.url,{signal:C.signal})}let{shortCircuited:G,loaderData:X,errors:ie}=await ke(C,A,D,O,b&&b.submission,b&&b.fetcherSubmission,b&&b.replace,k,B);G||(j=null,ue(A,Ce({matches:D},k?{actionData:k}:{},{loaderData:X,errors:ie})))}async function ge(L,A,b,S,O){O===void 0&&(O={}),ni();let D=QP(A,b);Z({navigation:D});let C,k=Af(S,A);if(!k.route.action&&!k.route.lazy)C={type:Ke.error,error:It(405,{method:L.method,pathname:A.pathname,routeId:k.route.id})};else if(C=await vo("action",L,k,S,o,i,l),L.signal.aborted)return{shortCircuited:!0};if(Li(C)){let B;return O&&O.replace!=null?B=O.replace:B=C.location===w.location.pathname+w.location.search,await _r(w,C,{submission:b,replace:B}),{shortCircuited:!0}}if(zo(C)){let B=bi(S,k.route.id);return(O&&O.replace)!==!0&&(x=He.Push),{pendingActionData:{},pendingActionError:{[B.route.id]:C.error}}}if(Ar(C))throw It(400,{type:"defer-action"});return{pendingActionData:{[k.route.id]:C.data}}}async function ke(L,A,b,S,O,D,C,k,B){let G=S||ia(A,O),X=O||D||Mm(G),ie=a||s,[oe,ae]=Pm(e.history,w,b,X,A,I,N,J,U,W,ie,l,k,B);if(io(Ee=>!(b&&b.some(Nt=>Nt.route.id===Ee))||oe&&oe.some(Nt=>Nt.route.id===Ee)),oe.length===0&&ae.length===0){let Ee=mn();return ue(A,Ce({matches:b,loaderData:{},errors:B||null},k?{actionData:k}:{},Ee?{fetchers:new Map(w.fetchers)}:{})),{shortCircuited:!0}}if(!R){ae.forEach(Nt=>{let ii=w.fetchers.get(Nt.key),nt=wo(void 0,ii?ii.data:void 0);w.fetchers.set(Nt.key,nt)});let Ee=k||w.actionData;Z(Ce({navigation:G},Ee?Object.keys(Ee).length===0?{actionData:null}:{actionData:Ee}:{},ae.length>0?{fetchers:new Map(w.fetchers)}:{}))}$=++K,ae.forEach(Ee=>{Y.has(Ee.key)&&At(Ee.key),Ee.controller&&Y.set(Ee.key,Ee.controller)});let le=()=>ae.forEach(Ee=>At(Ee.key));j&&j.signal.addEventListener("abort",le);let{results:je,loaderResults:Ne,fetcherResults:Fe}=await Ls(w.matches,b,oe,ae,L);if(L.signal.aborted)return{shortCircuited:!0};j&&j.signal.removeEventListener("abort",le),ae.forEach(Ee=>Y.delete(Ee.key));let Pt=jm(je);if(Pt)return await _r(w,Pt,{replace:C}),{shortCircuited:!0};let{loaderData:Er,errors:In}=Tm(w,b,oe,Ne,B,ae,Fe,M);M.forEach((Ee,Nt)=>{Ee.subscribe(ii=>{(ii||Ee.done)&&M.delete(Nt)})});let Du=mn(),Mu=As($),zs=Du||Mu||ae.length>0;return Ce({loaderData:Er,errors:In},zs?{fetchers:new Map(w.fetchers)}:{})}function pe(L){return w.fetchers.get(L)||LP}function Ve(L,A,b,S){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.");Y.has(L)&&At(L);let O=a||s,D=Mf(w.location,w.matches,l,u.v7_prependBasename,b,A,S==null?void 0:S.relative),C=xi(O,D,l);if(!C){pn(L,A,It(404,{pathname:D}));return}let{path:k,submission:B,error:G}=bm(u.v7_normalizeFormMethod,!0,D,S);if(G){pn(L,A,G);return}let X=Af(C,k);if(T=(S&&S.preventScrollReset)===!0,B&&Xt(B.formMethod)){qe(L,A,k,X,C,B);return}U.set(L,{routeId:A,path:k}),ju(L,A,k,X,C,B)}async function qe(L,A,b,S,O,D){if(ni(),U.delete(L),!S.route.action&&!S.route.lazy){let nt=It(405,{method:D.formMethod,pathname:b,routeId:A});pn(L,A,nt);return}let C=w.fetchers.get(L),k=qP(D,C);w.fetchers.set(L,k),Z({fetchers:new Map(w.fetchers)});let B=new AbortController,G=go(e.history,b,B.signal,D);Y.set(L,B);let X=await vo("action",G,S,O,o,i,l);if(G.signal.aborted){Y.get(L)===B&&Y.delete(L);return}if(Li(X)){Y.delete(L),W.add(L);let nt=wo(D);return w.fetchers.set(L,nt),Z({fetchers:new Map(w.fetchers)}),_r(w,X,{submission:D,isFetchActionRedirect:!0})}if(zo(X)){pn(L,A,X.error);return}if(Ar(X))throw It(400,{type:"defer-action"});let ie=w.navigation.location||w.location,oe=go(e.history,ie,B.signal),ae=a||s,le=w.navigation.state!=="idle"?xi(ae,w.navigation.location,l):w.matches;se(le,"Didn't find any matches after fetcher action");let je=++K;F.set(L,je);let Ne=wo(D,X.data);w.fetchers.set(L,Ne);let[Fe,Pt]=Pm(e.history,w,le,D,ie,I,N,J,U,W,ae,l,{[S.route.id]:X.data},void 0);Pt.filter(nt=>nt.key!==L).forEach(nt=>{let so=nt.key,sp=w.fetchers.get(so),FS=wo(void 0,sp?sp.data:void 0);w.fetchers.set(so,FS),Y.has(so)&&At(so),nt.controller&&Y.set(so,nt.controller)}),Z({fetchers:new Map(w.fetchers)});let Er=()=>Pt.forEach(nt=>At(nt.key));B.signal.addEventListener("abort",Er);let{results:In,loaderResults:Du,fetcherResults:Mu}=await Ls(w.matches,le,Fe,Pt,oe);if(B.signal.aborted)return;B.signal.removeEventListener("abort",Er),F.delete(L),Y.delete(L),Pt.forEach(nt=>Y.delete(nt.key));let zs=jm(In);if(zs)return _r(w,zs);let{loaderData:Ee,errors:Nt}=Tm(w,w.matches,Fe,Du,void 0,Pt,Mu,M);if(w.fetchers.has(L)){let nt=Ea(X.data);w.fetchers.set(L,nt)}let ii=As(je);w.navigation.state==="loading"&&je>$?(se(x,"Expected pending action"),j&&j.abort(),ue(w.navigation.location,{matches:le,loaderData:Ee,errors:Nt,fetchers:new Map(w.fetchers)})):(Z(Ce({errors:Nt,loaderData:Rm(w.loaderData,Ee,le,Nt)},ii||Pt.length>0?{fetchers:new Map(w.fetchers)}:{})),I=!1)}async function ju(L,A,b,S,O,D){let C=w.fetchers.get(L),k=wo(D,C?C.data:void 0);w.fetchers.set(L,k),Z({fetchers:new Map(w.fetchers)});let B=new AbortController,G=go(e.history,b,B.signal);Y.set(L,B);let X=await vo("loader",G,S,O,o,i,l);if(Ar(X)&&(X=await m1(X,G.signal,!0)||X),Y.get(L)===B&&Y.delete(L),G.signal.aborted)return;if(Li(X)){W.add(L),await _r(w,X);return}if(zo(X)){let oe=bi(w.matches,A);w.fetchers.delete(L),Z({fetchers:new Map(w.fetchers),errors:{[oe.route.id]:X.error}});return}se(!Ar(X),"Unhandled fetcher deferred data");let ie=Ea(X.data);w.fetchers.set(L,ie),Z({fetchers:new Map(w.fetchers)})}async function _r(L,A,b){let{submission:S,replace:O,isFetchActionRedirect:D}=b===void 0?{}:b;A.revalidate&&(I=!0);let C=fs(L.location,A.location,Ce({_isRedirect:!0},D?{_isFetchActionRedirect:!0}:{}));if(se(C,"Expected a location on the redirect navigation"),d1.test(A.location)&&n){let G=e.history.createURL(A.location),X=Yr(G.pathname,l)==null;if(t.location.origin!==G.origin||X){O?t.location.replace(A.location):t.location.assign(A.location);return}}j=null;let k=O===!0?He.Replace:He.Push,B=S||Mm(L.navigation);if(MP.has(A.status)&&B&&Xt(B.formMethod))await Se(k,C,{submission:Ce({},B,{formAction:A.location}),preventScrollReset:T});else if(D)await Se(k,C,{overrideNavigation:ia(C),fetcherSubmission:B,preventScrollReset:T});else{let G=ia(C,B);await Se(k,C,{overrideNavigation:G,preventScrollReset:T})}}async function Ls(L,A,b,S,O){let D=await Promise.all([...b.map(B=>vo("loader",O,B,A,o,i,l)),...S.map(B=>B.matches&&B.match&&B.controller?vo("loader",go(e.history,B.path,B.controller.signal),B.match,B.matches,o,i,l):{type:Ke.error,error:It(404,{pathname:B.path})})]),C=D.slice(0,b.length),k=D.slice(b.length);return await Promise.all([Dm(L,b,C,C.map(()=>O.signal),!1,w.loaderData),Dm(L,S.map(B=>B.match),k,S.map(B=>B.controller?B.controller.signal:null),!0)]),{results:D,loaderResults:C,fetcherResults:k}}function ni(){I=!0,N.push(...io()),U.forEach((L,A)=>{Y.has(A)&&(J.push(A),At(A))})}function pn(L,A,b){let S=bi(w.matches,A);xr(L),Z({errors:{[S.route.id]:b},fetchers:new Map(w.fetchers)})}function xr(L){let A=w.fetchers.get(L);Y.has(L)&&!(A&&A.state==="loading"&&F.has(L))&&At(L),U.delete(L),F.delete(L),W.delete(L),w.fetchers.delete(L)}function At(L){let A=Y.get(L);se(A,"Expected fetch controller: "+L),A.abort(),Y.delete(L)}function no(L){for(let A of L){let b=pe(A),S=Ea(b.data);w.fetchers.set(A,S)}}function mn(){let L=[],A=!1;for(let b of W){let S=w.fetchers.get(b);se(S,"Expected fetcher: "+b),S.state==="loading"&&(W.delete(b),L.push(b),A=!0)}return no(L),A}function As(L){let A=[];for(let[b,S]of F)if(S0}function Ns(L,A){let b=w.blockers.get(L)||yo;return z.get(L)!==A&&z.set(L,A),b}function ro(L){w.blockers.delete(L),z.delete(L)}function ri(L,A){let b=w.blockers.get(L)||yo;se(b.state==="unblocked"&&A.state==="blocked"||b.state==="blocked"&&A.state==="blocked"||b.state==="blocked"&&A.state==="proceeding"||b.state==="blocked"&&A.state==="unblocked"||b.state==="proceeding"&&A.state==="unblocked","Invalid blocker state transition: "+b.state+" -> "+A.state);let S=new Map(w.blockers);S.set(L,A),Z({blockers:S})}function br(L){let{currentLocation:A,nextLocation:b,historyAction:S}=L;if(z.size===0)return;z.size>1&&Hi(!1,"A router only supports one blocker at a time");let O=Array.from(z.entries()),[D,C]=O[O.length-1],k=w.blockers.get(D);if(!(k&&k.state==="proceeding")&&C({currentLocation:A,nextLocation:b,historyAction:S}))return D}function io(L){let A=[];return M.forEach((b,S)=>{(!L||L(S))&&(b.cancel(),A.push(S),M.delete(S))}),A}function Fs(L,A,b){if(d=L,m=A,h=b||null,!p&&w.navigation===lc){p=!0;let S=Pr(w.location,w.matches);S!=null&&Z({restoreScrollPosition:S})}return()=>{d=null,m=null,h=null}}function Is(L,A){return h&&h(L,A.map(S=>HP(S,w.loaderData)))||L.key}function $s(L,A){if(d&&m){let b=Is(L,A);d[b]=m()}}function Pr(L,A){if(d){let b=Is(L,A),S=d[b];if(typeof S=="number")return S}return null}function oo(L){o={},a=Df(L,i,void 0,o)}return g={get basename(){return l},get state(){return w},get routes(){return s},initialize:q,subscribe:ne,enableScrollRestoration:Fs,navigate:me,fetch:Ve,revalidate:Be,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:pe,deleteFetcher:xr,dispose:te,getBlocker:Ns,deleteBlocker:ro,_internalFetchControllers:Y,_internalActiveDeferreds:M,_internalSetRoutes:oo},g}function FP(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Mf(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=Sh(i||".",hu(a).map(c=>c.pathnameBase),Yr(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&&!xh(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:En([n,u.pathname])),Hr(u)}function bm(e,t,n,r){if(!r||!FP(r))return{path:n};if(r.formMethod&&!WP(r.formMethod))return{path:n,error:It(405,{method:r.formMethod})};let i=()=>({path:n,error:It(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=p1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Xt(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,m)=>{let[p,_]=m;return""+h+p+"="+_+` -`},""):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(!Xt(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()}}}se(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Lf(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Lf(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Om(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Om(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(Xt(c.formMethod))return{path:n,submission:c};let f=Nn(n);return t&&f.search&&xh(f.search)&&l.append("index",""),f.search="?"+l,{path:Hr(f),submission:c}}function IP(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 m=h?Object.values(h)[0]:d?Object.values(d)[0]:void 0,p=e.createURL(t.location),_=e.createURL(i),v=h?Object.keys(h)[0]:void 0,g=IP(n,v).filter((x,T)=>{if(x.route.lazy)return!0;if(x.route.loader==null)return!1;if($P(t.loaderData,t.matches[T],x)||s.some(I=>I===x.route.id))return!0;let j=t.matches[T],R=x;return Em(x,Ce({currentUrl:p,currentParams:j.params,nextUrl:_,nextParams:R.params},r,{actionResult:m,defaultShouldRevalidate:o||p.pathname+p.search===_.pathname+_.search||p.search!==_.search||h1(j,R)}))}),w=[];return l.forEach((x,T)=>{if(!n.some(Y=>Y.route.id===x.routeId))return;let j=xi(c,x.path,f);if(!j){w.push({key:T,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let R=t.fetchers.get(T),I=R&&R.state!=="idle"&&R.data===void 0&&!u.has(T),N=Af(j,x.path);(a.includes(T)||I||Em(N,Ce({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:n[n.length-1].params},r,{actionResult:m,defaultShouldRevalidate:o})))&&w.push({key:T,routeId:x.routeId,path:x.path,matches:j,match:N,controller:new AbortController})}),[g,w]}function $P(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function h1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Em(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Cm(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];se(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Hi(!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&&!lP.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,Ce({},t(i),{lazy:void 0}))}async function vo(e,t,n,r,i,o,s,a){a===void 0&&(a={});let l,u,c,f=m=>{let p,_=new Promise((v,y)=>p=y);return c=()=>p(),t.signal.addEventListener("abort",c),Promise.race([m({request:t,params:n.params,context:a.requestContext}),_])};try{let m=n.route[e];if(n.route.lazy)if(m)u=(await Promise.all([f(m),Cm(n.route,o,i)]))[0];else if(await Cm(n.route,o,i),m=n.route[e],m)u=await f(m);else if(e==="action"){let p=new URL(t.url),_=p.pathname+p.search;throw It(405,{method:t.method,pathname:_,routeId:n.route.id})}else return{type:Ke.data,data:void 0};else if(m)u=await f(m);else{let p=new URL(t.url),_=p.pathname+p.search;throw It(404,{pathname:_})}se(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(m){l=Ke.error,u=m}finally{c&&t.signal.removeEventListener("abort",c)}if(BP(u)){let m=u.status;if(DP.has(m)){let v=u.headers.get("Location");if(se(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!d1.test(v))v=Mf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v);else if(!a.isStaticRequest){let y=new URL(t.url),g=v.startsWith("//")?new URL(y.protocol+v):new URL(v),w=Yr(g.pathname,s)!=null;g.origin===y.origin&&w&&(v=g.pathname+g.search+g.hash)}if(a.isStaticRequest)throw u.headers.set("Location",v),u;return{type:Ke.redirect,status:m,location:v,revalidate:u.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:l||Ke.data,response:u};let p,_=u.headers.get("Content-Type");return _&&/\bapplication\/json\b/.test(_)?p=await u.json():p=await u.text(),l===Ke.error?{type:l,error:new _h(m,u.statusText,p),headers:u.headers}:{type:Ke.data,data:p,statusCode:u.status,headers:u.headers}}if(l===Ke.error)return{type:l,error:u};if(UP(u)){var d,h;return{type:Ke.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:Ke.data,data:u}}function go(e,t,n,r){let i=e.createURL(p1(t)).toString(),o={signal:n};if(r&&Xt(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=Lf(r.formData):o.body=r.formData}return new Request(i,o)}function Lf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Om(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function zP(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(se(!Li(c),"Cannot handle redirect results in processLoaderData"),zo(c)){let h=bi(e,d),m=c.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[h.route.id]==null&&(s[h.route.id]=m),o[d]=void 0,l||(l=!0,a=c1(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 Tm(e,t,n,r,i,o,s,a){let{loaderData:l,errors:u}=zP(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 km(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 It(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 _h(e||500,s,new Error(a),!0)}function jm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Li(n))return n}}function p1(e){let t=typeof e=="string"?Nn(e):e;return Hr(Ce({},t,{hash:""}))}function VP(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===Ke.deferred}function zo(e){return e.type===Ke.error}function Li(e){return(e&&e.type)===Ke.redirect}function UP(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 BP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function WP(e){return jP.has(e.toLowerCase())}function Xt(e){return RP.has(e.toLowerCase())}async function Dm(e,t,n,r,i,o){for(let s=0;sf.route.id===l.route.id),c=u!=null&&!h1(u,l)&&(o&&o[l.route.id])!==void 0;if(Ar(a)&&(i||c)){let f=r[s];se(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await m1(a,f,i).then(d=>{d&&(n[s]=d||n[s])})}}}async function m1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ke.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ke.error,error:i}}return{type:Ke.data,data:e.deferredData.data}}}function xh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function HP(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"?Nn(t).search:t.search;if(e[e.length-1].route.index&&xh(n||""))return e[e.length-1];let r=hu(e);return r[r.length-1]}function Mm(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 ia(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 QP(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 wo(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 qP(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}}/** + */function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Hi(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sP(){return Math.random().toString(36).substr(2,8)}function _m(e,t){return{usr:e.state,key:e.key,idx:t}}function fs(e,t,n,r){return n===void 0&&(n=null),Ce({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nn(t):t,{state:n,key:t&&t.key||r||sP()})}function Hr(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 Nn(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 aP(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=He.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Ce({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){a=He.Pop;let _=c(),v=_==null?null:_-u;u=_,l&&l({action:a,location:p.location,delta:v})}function d(_,v){a=He.Push;let y=fs(p.location,_,v);n&&n(y,_),u=c()+1;let g=_m(y,u),w=p.createHref(y);try{s.pushState(g,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(w)}o&&l&&l({action:a,location:p.location,delta:1})}function h(_,v){a=He.Replace;let y=fs(p.location,_,v);n&&n(y,_),u=c();let g=_m(y,u),w=p.createHref(y);s.replaceState(g,"",w),o&&l&&l({action:a,location:p.location,delta:0})}function m(_){let v=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof _=="string"?_:Hr(_);return se(v,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,v)}let p={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(Sm,f),l=_,()=>{i.removeEventListener(Sm,f),l=null}},createHref(_){return t(i,_)},createURL:m,encodeLocation(_){let v=m(_);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(_){return s.go(_)}};return p}var Ke;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ke||(Ke={}));const lP=new Set(["lazy","caseSensitive","path","id","index","children"]);function uP(e){return e.index===!0}function Df(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(se(i.index!==!0||!i.children,"Cannot specify children on an index route"),se(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),uP(i)){let l=Ce({},i,t(i),{id:a});return r[a]=l,l}else{let l=Ce({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=Df(i.children,t,s,r)),l}})}function xi(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Nn(t):t,i=Yr(r.pathname||"/",n);if(i==null)return null;let o=l1(e);cP(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("/")&&(se(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=En([r,l.relativePath]),c=n.concat(l);o.children&&o.children.length>0&&(se(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),l1(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:vP(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 u1(o.path))i(o,s,l)}),t}function u1(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=u1(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 cP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fP=/^:\w+$/,dP=3,hP=2,pP=1,mP=10,yP=-2,xm=e=>e==="*";function vP(e,t){let n=e.split("/"),r=n.length;return n.some(xm)&&(r+=yP),t&&(r+=hP),n.filter(i=>!xm(i)).reduce((i,o)=>i+(fP.test(o)?dP:o===""?pP:mP),r)}function gP(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 wP(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]=bP(a[f]||"",c),u},{}),pathname:o,pathnameBase:s,pattern:e}}function _P(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Hi(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 xP(e){try{return decodeURI(e)}catch(t){return Hi(!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 bP(e,t){try{return decodeURIComponent(e)}catch(n){return Hi(!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 Yr(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 PP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nn(e):e;return{pathname:n?n.startsWith("/")?n:EP(n,t):t,search:OP(r),hash:RP(i)}}function EP(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 ac(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 hu(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Sh(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Nn(e):(i=Ce({},e),se(!i.pathname||!i.pathname.includes("?"),ac("?","pathname","search",i)),se(!i.pathname||!i.pathname.includes("#"),ac("#","pathname","hash",i)),se(!i.search||!i.search.includes("#"),ac("#","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=PP(i,a),u=s&&s!=="/"&&s.endsWith("/"),c=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const En=e=>e.join("/").replace(/\/\/+/g,"/"),CP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),OP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,RP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class _h{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 c1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const f1=["post","put","patch","delete"],TP=new Set(f1),kP=["get",...f1],jP=new Set(kP),DP=new Set([301,302,303,307,308]),MP=new Set([307,308]),lc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},LP={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},yo={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},d1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AP=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function NP(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;se(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 L=e.detectErrorBoundary;i=A=>({hasErrorBoundary:L(A)})}else i=AP;let o={},s=Df(e.routes,i,void 0,o),a,l=e.basename||"/",u=Ce({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,f=new Set,d=null,h=null,m=null,p=e.hydrationData!=null,_=xi(s,e.history.location,l),v=null;if(_==null){let L=It(404,{pathname:e.history.location.pathname}),{matches:A,route:b}=km(s);_=A,v={[b.id]:L}}let y=!_.some(L=>L.route.lazy)&&(!_.some(L=>L.route.loader)||e.hydrationData!=null),g,w={historyAction:e.history.action,location:e.history.location,matches:_,initialized:y,navigation:lc,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||v,fetchers:new Map,blockers:new Map},x=He.Pop,R=!1,j,T=!1,I=!1,N=[],J=[],Y=new Map,K=0,$=-1,F=new Map,W=new Set,U=new Map,M=new Map,z=new Map,H=!1;function Q(){return c=e.history.listen(L=>{let{action:A,location:b,delta:S}=L;if(H){H=!1;return}Hi(z.size===0||S!=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 O=br({currentLocation:w.location,nextLocation:b,historyAction:A});if(O&&S!=null){H=!0,e.history.go(S*-1),ri(O,{state:"blocked",location:b,proceed(){ri(O,{state:"proceeding",proceed:void 0,reset:void 0,location:b}),e.history.go(S)},reset(){let D=new Map(w.blockers);D.set(O,yo),Z({blockers:D})}});return}return Se(A,b)}),w.initialized||Se(He.Pop,w.location),g}function te(){c&&c(),f.clear(),j&&j.abort(),w.fetchers.forEach((L,A)=>xr(A)),w.blockers.forEach((L,A)=>ro(A))}function ne(L){return f.add(L),()=>f.delete(L)}function Z(L){w=Ce({},w,L),f.forEach(A=>A(w))}function ue(L,A){var b,S;let O=w.actionData!=null&&w.navigation.formMethod!=null&&Xt(w.navigation.formMethod)&&w.navigation.state==="loading"&&((b=L.state)==null?void 0:b._isRedirect)!==!0,D;A.actionData?Object.keys(A.actionData).length>0?D=A.actionData:D=null:O?D=w.actionData:D=null;let C=A.loaderData?Tm(w.loaderData,A.loaderData,A.matches||[],A.errors):w.loaderData,k=w.blockers;k.size>0&&(k=new Map(k),k.forEach((G,X)=>k.set(X,yo)));let B=R===!0||w.navigation.formMethod!=null&&Xt(w.navigation.formMethod)&&((S=L.state)==null?void 0:S._isRedirect)!==!0;a&&(s=a,a=void 0),T||x===He.Pop||(x===He.Push?e.history.push(L,L.state):x===He.Replace&&e.history.replace(L,L.state)),Z(Ce({},A,{actionData:D,loaderData:C,historyAction:x,location:L,initialized:!0,navigation:lc,revalidation:"idle",restoreScrollPosition:Pr(L,A.matches||w.matches),preventScrollReset:B,blockers:k})),x=He.Pop,R=!1,T=!1,I=!1,N=[],J=[]}async function me(L,A){if(typeof L=="number"){e.history.go(L);return}let b=Mf(w.location,w.matches,l,u.v7_prependBasename,L,A==null?void 0:A.fromRouteId,A==null?void 0:A.relative),{path:S,submission:O,error:D}=bm(u.v7_normalizeFormMethod,!1,b,A),C=w.location,k=fs(w.location,S,A&&A.state);k=Ce({},k,e.history.encodeLocation(k));let B=A&&A.replace!=null?A.replace:void 0,G=He.Push;B===!0?G=He.Replace:B===!1||O!=null&&Xt(O.formMethod)&&O.formAction===w.location.pathname+w.location.search&&(G=He.Replace);let X=A&&"preventScrollReset"in A?A.preventScrollReset===!0:void 0,ie=br({currentLocation:C,nextLocation:k,historyAction:G});if(ie){ri(ie,{state:"blocked",location:k,proceed(){ri(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:k}),me(L,A)},reset(){let oe=new Map(w.blockers);oe.set(ie,yo),Z({blockers:oe})}});return}return await Se(G,k,{submission:O,pendingError:D,preventScrollReset:X,replace:A&&A.replace})}function Be(){if(ni(),Z({revalidation:"loading"}),w.navigation.state!=="submitting"){if(w.navigation.state==="idle"){Se(w.historyAction,w.location,{startUninterruptedRevalidation:!0});return}Se(x||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation})}}async function Se(L,A,b){j&&j.abort(),j=null,x=L,T=(b&&b.startUninterruptedRevalidation)===!0,$s(w.location,w.matches),R=(b&&b.preventScrollReset)===!0;let S=a||s,O=b&&b.overrideNavigation,D=xi(S,A,l);if(!D){let oe=It(404,{pathname:A.pathname}),{matches:ae,route:le}=km(S);io(),ue(A,{matches:ae,loaderData:{},errors:{[le.id]:oe}});return}if(w.initialized&&!I&&VP(w.location,A)&&!(b&&b.submission&&Xt(b.submission.formMethod))){ue(A,{matches:D});return}j=new AbortController;let C=go(e.history,A,j.signal,b&&b.submission),k,B;if(b&&b.pendingError)B={[bi(D).route.id]:b.pendingError};else if(b&&b.submission&&Xt(b.submission.formMethod)){let oe=await ge(C,A,b.submission,D,{replace:b.replace});if(oe.shortCircuited)return;k=oe.pendingActionData,B=oe.pendingActionError,O=ia(A,b.submission),C=new Request(C.url,{signal:C.signal})}let{shortCircuited:G,loaderData:X,errors:ie}=await ke(C,A,D,O,b&&b.submission,b&&b.fetcherSubmission,b&&b.replace,k,B);G||(j=null,ue(A,Ce({matches:D},k?{actionData:k}:{},{loaderData:X,errors:ie})))}async function ge(L,A,b,S,O){O===void 0&&(O={}),ni();let D=qP(A,b);Z({navigation:D});let C,k=Af(S,A);if(!k.route.action&&!k.route.lazy)C={type:Ke.error,error:It(405,{method:L.method,pathname:A.pathname,routeId:k.route.id})};else if(C=await vo("action",L,k,S,o,i,l),L.signal.aborted)return{shortCircuited:!0};if(Li(C)){let B;return O&&O.replace!=null?B=O.replace:B=C.location===w.location.pathname+w.location.search,await _r(w,C,{submission:b,replace:B}),{shortCircuited:!0}}if(zo(C)){let B=bi(S,k.route.id);return(O&&O.replace)!==!0&&(x=He.Push),{pendingActionData:{},pendingActionError:{[B.route.id]:C.error}}}if(Ar(C))throw It(400,{type:"defer-action"});return{pendingActionData:{[k.route.id]:C.data}}}async function ke(L,A,b,S,O,D,C,k,B){let G=S||ia(A,O),X=O||D||Mm(G),ie=a||s,[oe,ae]=Pm(e.history,w,b,X,A,I,N,J,U,W,ie,l,k,B);if(io(Ee=>!(b&&b.some(Nt=>Nt.route.id===Ee))||oe&&oe.some(Nt=>Nt.route.id===Ee)),oe.length===0&&ae.length===0){let Ee=mn();return ue(A,Ce({matches:b,loaderData:{},errors:B||null},k?{actionData:k}:{},Ee?{fetchers:new Map(w.fetchers)}:{})),{shortCircuited:!0}}if(!T){ae.forEach(Nt=>{let ii=w.fetchers.get(Nt.key),nt=wo(void 0,ii?ii.data:void 0);w.fetchers.set(Nt.key,nt)});let Ee=k||w.actionData;Z(Ce({navigation:G},Ee?Object.keys(Ee).length===0?{actionData:null}:{actionData:Ee}:{},ae.length>0?{fetchers:new Map(w.fetchers)}:{}))}$=++K,ae.forEach(Ee=>{Y.has(Ee.key)&&At(Ee.key),Ee.controller&&Y.set(Ee.key,Ee.controller)});let le=()=>ae.forEach(Ee=>At(Ee.key));j&&j.signal.addEventListener("abort",le);let{results:je,loaderResults:Ne,fetcherResults:Fe}=await Ls(w.matches,b,oe,ae,L);if(L.signal.aborted)return{shortCircuited:!0};j&&j.signal.removeEventListener("abort",le),ae.forEach(Ee=>Y.delete(Ee.key));let Pt=jm(je);if(Pt)return await _r(w,Pt,{replace:C}),{shortCircuited:!0};let{loaderData:Er,errors:In}=Rm(w,b,oe,Ne,B,ae,Fe,M);M.forEach((Ee,Nt)=>{Ee.subscribe(ii=>{(ii||Ee.done)&&M.delete(Nt)})});let Du=mn(),Mu=As($),zs=Du||Mu||ae.length>0;return Ce({loaderData:Er,errors:In},zs?{fetchers:new Map(w.fetchers)}:{})}function pe(L){return w.fetchers.get(L)||LP}function Ve(L,A,b,S){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.");Y.has(L)&&At(L);let O=a||s,D=Mf(w.location,w.matches,l,u.v7_prependBasename,b,A,S==null?void 0:S.relative),C=xi(O,D,l);if(!C){pn(L,A,It(404,{pathname:D}));return}let{path:k,submission:B,error:G}=bm(u.v7_normalizeFormMethod,!0,D,S);if(G){pn(L,A,G);return}let X=Af(C,k);if(R=(S&&S.preventScrollReset)===!0,B&&Xt(B.formMethod)){Qe(L,A,k,X,C,B);return}U.set(L,{routeId:A,path:k}),ju(L,A,k,X,C,B)}async function Qe(L,A,b,S,O,D){if(ni(),U.delete(L),!S.route.action&&!S.route.lazy){let nt=It(405,{method:D.formMethod,pathname:b,routeId:A});pn(L,A,nt);return}let C=w.fetchers.get(L),k=QP(D,C);w.fetchers.set(L,k),Z({fetchers:new Map(w.fetchers)});let B=new AbortController,G=go(e.history,b,B.signal,D);Y.set(L,B);let X=await vo("action",G,S,O,o,i,l);if(G.signal.aborted){Y.get(L)===B&&Y.delete(L);return}if(Li(X)){Y.delete(L),W.add(L);let nt=wo(D);return w.fetchers.set(L,nt),Z({fetchers:new Map(w.fetchers)}),_r(w,X,{submission:D,isFetchActionRedirect:!0})}if(zo(X)){pn(L,A,X.error);return}if(Ar(X))throw It(400,{type:"defer-action"});let ie=w.navigation.location||w.location,oe=go(e.history,ie,B.signal),ae=a||s,le=w.navigation.state!=="idle"?xi(ae,w.navigation.location,l):w.matches;se(le,"Didn't find any matches after fetcher action");let je=++K;F.set(L,je);let Ne=wo(D,X.data);w.fetchers.set(L,Ne);let[Fe,Pt]=Pm(e.history,w,le,D,ie,I,N,J,U,W,ae,l,{[S.route.id]:X.data},void 0);Pt.filter(nt=>nt.key!==L).forEach(nt=>{let so=nt.key,sp=w.fetchers.get(so),FS=wo(void 0,sp?sp.data:void 0);w.fetchers.set(so,FS),Y.has(so)&&At(so),nt.controller&&Y.set(so,nt.controller)}),Z({fetchers:new Map(w.fetchers)});let Er=()=>Pt.forEach(nt=>At(nt.key));B.signal.addEventListener("abort",Er);let{results:In,loaderResults:Du,fetcherResults:Mu}=await Ls(w.matches,le,Fe,Pt,oe);if(B.signal.aborted)return;B.signal.removeEventListener("abort",Er),F.delete(L),Y.delete(L),Pt.forEach(nt=>Y.delete(nt.key));let zs=jm(In);if(zs)return _r(w,zs);let{loaderData:Ee,errors:Nt}=Rm(w,w.matches,Fe,Du,void 0,Pt,Mu,M);if(w.fetchers.has(L)){let nt=Ea(X.data);w.fetchers.set(L,nt)}let ii=As(je);w.navigation.state==="loading"&&je>$?(se(x,"Expected pending action"),j&&j.abort(),ue(w.navigation.location,{matches:le,loaderData:Ee,errors:Nt,fetchers:new Map(w.fetchers)})):(Z(Ce({errors:Nt,loaderData:Tm(w.loaderData,Ee,le,Nt)},ii||Pt.length>0?{fetchers:new Map(w.fetchers)}:{})),I=!1)}async function ju(L,A,b,S,O,D){let C=w.fetchers.get(L),k=wo(D,C?C.data:void 0);w.fetchers.set(L,k),Z({fetchers:new Map(w.fetchers)});let B=new AbortController,G=go(e.history,b,B.signal);Y.set(L,B);let X=await vo("loader",G,S,O,o,i,l);if(Ar(X)&&(X=await m1(X,G.signal,!0)||X),Y.get(L)===B&&Y.delete(L),G.signal.aborted)return;if(Li(X)){W.add(L),await _r(w,X);return}if(zo(X)){let oe=bi(w.matches,A);w.fetchers.delete(L),Z({fetchers:new Map(w.fetchers),errors:{[oe.route.id]:X.error}});return}se(!Ar(X),"Unhandled fetcher deferred data");let ie=Ea(X.data);w.fetchers.set(L,ie),Z({fetchers:new Map(w.fetchers)})}async function _r(L,A,b){let{submission:S,replace:O,isFetchActionRedirect:D}=b===void 0?{}:b;A.revalidate&&(I=!0);let C=fs(L.location,A.location,Ce({_isRedirect:!0},D?{_isFetchActionRedirect:!0}:{}));if(se(C,"Expected a location on the redirect navigation"),d1.test(A.location)&&n){let G=e.history.createURL(A.location),X=Yr(G.pathname,l)==null;if(t.location.origin!==G.origin||X){O?t.location.replace(A.location):t.location.assign(A.location);return}}j=null;let k=O===!0?He.Replace:He.Push,B=S||Mm(L.navigation);if(MP.has(A.status)&&B&&Xt(B.formMethod))await Se(k,C,{submission:Ce({},B,{formAction:A.location}),preventScrollReset:R});else if(D)await Se(k,C,{overrideNavigation:ia(C),fetcherSubmission:B,preventScrollReset:R});else{let G=ia(C,B);await Se(k,C,{overrideNavigation:G,preventScrollReset:R})}}async function Ls(L,A,b,S,O){let D=await Promise.all([...b.map(B=>vo("loader",O,B,A,o,i,l)),...S.map(B=>B.matches&&B.match&&B.controller?vo("loader",go(e.history,B.path,B.controller.signal),B.match,B.matches,o,i,l):{type:Ke.error,error:It(404,{pathname:B.path})})]),C=D.slice(0,b.length),k=D.slice(b.length);return await Promise.all([Dm(L,b,C,C.map(()=>O.signal),!1,w.loaderData),Dm(L,S.map(B=>B.match),k,S.map(B=>B.controller?B.controller.signal:null),!0)]),{results:D,loaderResults:C,fetcherResults:k}}function ni(){I=!0,N.push(...io()),U.forEach((L,A)=>{Y.has(A)&&(J.push(A),At(A))})}function pn(L,A,b){let S=bi(w.matches,A);xr(L),Z({errors:{[S.route.id]:b},fetchers:new Map(w.fetchers)})}function xr(L){let A=w.fetchers.get(L);Y.has(L)&&!(A&&A.state==="loading"&&F.has(L))&&At(L),U.delete(L),F.delete(L),W.delete(L),w.fetchers.delete(L)}function At(L){let A=Y.get(L);se(A,"Expected fetch controller: "+L),A.abort(),Y.delete(L)}function no(L){for(let A of L){let b=pe(A),S=Ea(b.data);w.fetchers.set(A,S)}}function mn(){let L=[],A=!1;for(let b of W){let S=w.fetchers.get(b);se(S,"Expected fetcher: "+b),S.state==="loading"&&(W.delete(b),L.push(b),A=!0)}return no(L),A}function As(L){let A=[];for(let[b,S]of F)if(S0}function Ns(L,A){let b=w.blockers.get(L)||yo;return z.get(L)!==A&&z.set(L,A),b}function ro(L){w.blockers.delete(L),z.delete(L)}function ri(L,A){let b=w.blockers.get(L)||yo;se(b.state==="unblocked"&&A.state==="blocked"||b.state==="blocked"&&A.state==="blocked"||b.state==="blocked"&&A.state==="proceeding"||b.state==="blocked"&&A.state==="unblocked"||b.state==="proceeding"&&A.state==="unblocked","Invalid blocker state transition: "+b.state+" -> "+A.state);let S=new Map(w.blockers);S.set(L,A),Z({blockers:S})}function br(L){let{currentLocation:A,nextLocation:b,historyAction:S}=L;if(z.size===0)return;z.size>1&&Hi(!1,"A router only supports one blocker at a time");let O=Array.from(z.entries()),[D,C]=O[O.length-1],k=w.blockers.get(D);if(!(k&&k.state==="proceeding")&&C({currentLocation:A,nextLocation:b,historyAction:S}))return D}function io(L){let A=[];return M.forEach((b,S)=>{(!L||L(S))&&(b.cancel(),A.push(S),M.delete(S))}),A}function Fs(L,A,b){if(d=L,m=A,h=b||null,!p&&w.navigation===lc){p=!0;let S=Pr(w.location,w.matches);S!=null&&Z({restoreScrollPosition:S})}return()=>{d=null,m=null,h=null}}function Is(L,A){return h&&h(L,A.map(S=>HP(S,w.loaderData)))||L.key}function $s(L,A){if(d&&m){let b=Is(L,A);d[b]=m()}}function Pr(L,A){if(d){let b=Is(L,A),S=d[b];if(typeof S=="number")return S}return null}function oo(L){o={},a=Df(L,i,void 0,o)}return g={get basename(){return l},get state(){return w},get routes(){return s},initialize:Q,subscribe:ne,enableScrollRestoration:Fs,navigate:me,fetch:Ve,revalidate:Be,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:pe,deleteFetcher:xr,dispose:te,getBlocker:Ns,deleteBlocker:ro,_internalFetchControllers:Y,_internalActiveDeferreds:M,_internalSetRoutes:oo},g}function FP(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Mf(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=Sh(i||".",hu(a).map(c=>c.pathnameBase),Yr(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&&!xh(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:En([n,u.pathname])),Hr(u)}function bm(e,t,n,r){if(!r||!FP(r))return{path:n};if(r.formMethod&&!WP(r.formMethod))return{path:n,error:It(405,{method:r.formMethod})};let i=()=>({path:n,error:It(400,{type:"invalid-body"})}),o=r.formMethod||"get",s=e?o.toUpperCase():o.toLowerCase(),a=p1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Xt(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,m)=>{let[p,_]=m;return""+h+p+"="+_+` +`},""):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(!Xt(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()}}}se(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=Lf(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Lf(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Om(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Om(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(Xt(c.formMethod))return{path:n,submission:c};let f=Nn(n);return t&&f.search&&xh(f.search)&&l.append("index",""),f.search="?"+l,{path:Hr(f),submission:c}}function IP(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 m=h?Object.values(h)[0]:d?Object.values(d)[0]:void 0,p=e.createURL(t.location),_=e.createURL(i),v=h?Object.keys(h)[0]:void 0,g=IP(n,v).filter((x,R)=>{if(x.route.lazy)return!0;if(x.route.loader==null)return!1;if($P(t.loaderData,t.matches[R],x)||s.some(I=>I===x.route.id))return!0;let j=t.matches[R],T=x;return Em(x,Ce({currentUrl:p,currentParams:j.params,nextUrl:_,nextParams:T.params},r,{actionResult:m,defaultShouldRevalidate:o||p.pathname+p.search===_.pathname+_.search||p.search!==_.search||h1(j,T)}))}),w=[];return l.forEach((x,R)=>{if(!n.some(Y=>Y.route.id===x.routeId))return;let j=xi(c,x.path,f);if(!j){w.push({key:R,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(R),I=T&&T.state!=="idle"&&T.data===void 0&&!u.has(R),N=Af(j,x.path);(a.includes(R)||I||Em(N,Ce({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:_,nextParams:n[n.length-1].params},r,{actionResult:m,defaultShouldRevalidate:o})))&&w.push({key:R,routeId:x.routeId,path:x.path,matches:j,match:N,controller:new AbortController})}),[g,w]}function $P(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function h1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Em(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Cm(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];se(i,"No route found in manifest");let o={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Hi(!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&&!lP.has(s)&&(o[s]=r[s])}Object.assign(i,o),Object.assign(i,Ce({},t(i),{lazy:void 0}))}async function vo(e,t,n,r,i,o,s,a){a===void 0&&(a={});let l,u,c,f=m=>{let p,_=new Promise((v,y)=>p=y);return c=()=>p(),t.signal.addEventListener("abort",c),Promise.race([m({request:t,params:n.params,context:a.requestContext}),_])};try{let m=n.route[e];if(n.route.lazy)if(m)u=(await Promise.all([f(m),Cm(n.route,o,i)]))[0];else if(await Cm(n.route,o,i),m=n.route[e],m)u=await f(m);else if(e==="action"){let p=new URL(t.url),_=p.pathname+p.search;throw It(405,{method:t.method,pathname:_,routeId:n.route.id})}else return{type:Ke.data,data:void 0};else if(m)u=await f(m);else{let p=new URL(t.url),_=p.pathname+p.search;throw It(404,{pathname:_})}se(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(m){l=Ke.error,u=m}finally{c&&t.signal.removeEventListener("abort",c)}if(BP(u)){let m=u.status;if(DP.has(m)){let v=u.headers.get("Location");if(se(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!d1.test(v))v=Mf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v);else if(!a.isStaticRequest){let y=new URL(t.url),g=v.startsWith("//")?new URL(y.protocol+v):new URL(v),w=Yr(g.pathname,s)!=null;g.origin===y.origin&&w&&(v=g.pathname+g.search+g.hash)}if(a.isStaticRequest)throw u.headers.set("Location",v),u;return{type:Ke.redirect,status:m,location:v,revalidate:u.headers.get("X-Remix-Revalidate")!==null}}if(a.isRouteRequest)throw{type:l||Ke.data,response:u};let p,_=u.headers.get("Content-Type");return _&&/\bapplication\/json\b/.test(_)?p=await u.json():p=await u.text(),l===Ke.error?{type:l,error:new _h(m,u.statusText,p),headers:u.headers}:{type:Ke.data,data:p,statusCode:u.status,headers:u.headers}}if(l===Ke.error)return{type:l,error:u};if(UP(u)){var d,h;return{type:Ke.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:Ke.data,data:u}}function go(e,t,n,r){let i=e.createURL(p1(t)).toString(),o={signal:n};if(r&&Xt(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=Lf(r.formData):o.body=r.formData}return new Request(i,o)}function Lf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Om(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function zP(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(se(!Li(c),"Cannot handle redirect results in processLoaderData"),zo(c)){let h=bi(e,d),m=c.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[h.route.id]==null&&(s[h.route.id]=m),o[d]=void 0,l||(l=!0,a=c1(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 Rm(e,t,n,r,i,o,s,a){let{loaderData:l,errors:u}=zP(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 km(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 It(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 _h(e||500,s,new Error(a),!0)}function jm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Li(n))return n}}function p1(e){let t=typeof e=="string"?Nn(e):e;return Hr(Ce({},t,{hash:""}))}function VP(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===Ke.deferred}function zo(e){return e.type===Ke.error}function Li(e){return(e&&e.type)===Ke.redirect}function UP(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 BP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function WP(e){return jP.has(e.toLowerCase())}function Xt(e){return TP.has(e.toLowerCase())}async function Dm(e,t,n,r,i,o){for(let s=0;sf.route.id===l.route.id),c=u!=null&&!h1(u,l)&&(o&&o[l.route.id])!==void 0;if(Ar(a)&&(i||c)){let f=r[s];se(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await m1(a,f,i).then(d=>{d&&(n[s]=d||n[s])})}}}async function m1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Ke.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Ke.error,error:i}}return{type:Ke.data,data:e.deferredData.data}}}function xh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function HP(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"?Nn(t).search:t.search;if(e[e.length-1].route.index&&xh(n||""))return e[e.length-1];let r=hu(e);return r[r.length-1]}function Mm(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 ia(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 qP(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 wo(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 QP(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. @@ -87,7 +87,7 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),s=P.useRef(!1);return v1(()=>{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=Sh(l,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:En([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}const YP=P.createContext(null);function XP(e){let t=P.useContext(Fn).outlet;return t&&P.createElement(YP.Provider,{value:e},t)}function g1(){let{matches:e}=P.useContext(Fn),t=e[e.length-1];return t?t.params:{}}function w1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=P.useContext(Fn),{pathname:i}=Jr(),o=JSON.stringify(hu(r).map(s=>s.pathnameBase));return P.useMemo(()=>Sh(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function JP(e,t,n){Cs()||se(!1);let{navigator:r}=P.useContext(Xr),{matches:i}=P.useContext(Fn),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Jr(),u;if(t){var c;let p=typeof t=="string"?Nn(t):t;a==="/"||(c=p.pathname)!=null&&c.startsWith(a)||se(!1),u=p}else u=l;let f=u.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",h=xi(e,{pathname:d}),m=rE(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:En([a,r.encodeLocation?r.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?a:En([a,r.encodeLocation?r.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,n);return t&&m?P.createElement(pu.Provider,{value:{location:al({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:He.Pop}},m):m}function ZP(){let e=lE(),t=c1(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 eE=P.createElement(ZP,null);class tE 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(Fn.Provider,{value:this.props.routeContext},P.createElement(y1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nE(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(Fn.Provider,{value:t},r)}function rE(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||se(!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||eE);let d=t.concat(o.slice(0,u+1)),h=()=>{let m;return c?m=f:l.route.Component?m=P.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,P.createElement(nE,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?P.createElement(tE,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:h(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):h()},null)}var Nf;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Nf||(Nf={}));var Qr;(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"})(Qr||(Qr={}));function iE(e){let t=P.useContext(Es);return t||se(!1),t}function Eh(e){let t=P.useContext(bh);return t||se(!1),t}function oE(e){let t=P.useContext(Fn);return t||se(!1),t}function S1(e){let t=oE(),n=t.matches[t.matches.length-1];return n.route.id||se(!1),n.route.id}function sE(){return Eh(Qr.UseNavigation).navigation}function aE(){let{matches:e,loaderData:t}=Eh(Qr.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 lE(){var e;let t=P.useContext(y1),n=Eh(Qr.UseRouteError),r=S1(Qr.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function uE(){let{router:e}=iE(Nf.UseNavigateStable),t=S1(Qr.UseNavigateStable),n=P.useRef(!1);return v1(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,al({fromRouteId:t},o)))},[e,t])}const cE="startTransition",Lm=t_[cE];function fE(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=P.useState(n.state),{v7_startTransition:s}=r||{},a=P.useCallback(f=>{s&&Lm?Lm(()=>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(bh.Provider,{value:i},P.createElement(pE,{basename:u,location:i.location,navigationType:i.historyAction,navigator:l},i.initialized?P.createElement(dE,{routes:n.routes,state:i}):t))),null)}function dE(e){let{routes:t,state:n}=e;return JP(t,void 0,n)}function hE(e){return XP(e.context)}function pE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=He.Pop,navigator:o,static:s=!1}=e;Cs()&&se(!1);let a=t.replace(/^\/*/,"/"),l=P.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Nn(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,m=P.useMemo(()=>{let p=Yr(u,a);return p==null?null:{location:{pathname:p,search:c,hash:f,state:d,key:h},navigationType:i}},[a,u,c,f,d,h,i]);return m==null?null:P.createElement(Xr.Provider,{value:l},P.createElement(pu.Provider,{children:n,value:m}))}var Am;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Am||(Am={}));new Promise(()=>{});function mE(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}/** + */function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),s=P.useRef(!1);return v1(()=>{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=Sh(l,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:En([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}const YP=P.createContext(null);function XP(e){let t=P.useContext(Fn).outlet;return t&&P.createElement(YP.Provider,{value:e},t)}function g1(){let{matches:e}=P.useContext(Fn),t=e[e.length-1];return t?t.params:{}}function w1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=P.useContext(Fn),{pathname:i}=Jr(),o=JSON.stringify(hu(r).map(s=>s.pathnameBase));return P.useMemo(()=>Sh(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function JP(e,t,n){Cs()||se(!1);let{navigator:r}=P.useContext(Xr),{matches:i}=P.useContext(Fn),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let l=Jr(),u;if(t){var c;let p=typeof t=="string"?Nn(t):t;a==="/"||(c=p.pathname)!=null&&c.startsWith(a)||se(!1),u=p}else u=l;let f=u.pathname||"/",d=a==="/"?f:f.slice(a.length)||"/",h=xi(e,{pathname:d}),m=rE(h&&h.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:En([a,r.encodeLocation?r.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?a:En([a,r.encodeLocation?r.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,n);return t&&m?P.createElement(pu.Provider,{value:{location:al({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:He.Pop}},m):m}function ZP(){let e=lE(),t=c1(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 eE=P.createElement(ZP,null);class tE 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(Fn.Provider,{value:this.props.routeContext},P.createElement(y1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nE(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(Fn.Provider,{value:t},r)}function rE(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||se(!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||eE);let d=t.concat(o.slice(0,u+1)),h=()=>{let m;return c?m=f:l.route.Component?m=P.createElement(l.route.Component,null):l.route.element?m=l.route.element:m=a,P.createElement(nE,{match:l,routeContext:{outlet:a,matches:d,isDataRoute:n!=null},children:m})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?P.createElement(tE,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:h(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):h()},null)}var Nf;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Nf||(Nf={}));var qr;(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"})(qr||(qr={}));function iE(e){let t=P.useContext(Es);return t||se(!1),t}function Eh(e){let t=P.useContext(bh);return t||se(!1),t}function oE(e){let t=P.useContext(Fn);return t||se(!1),t}function S1(e){let t=oE(),n=t.matches[t.matches.length-1];return n.route.id||se(!1),n.route.id}function sE(){return Eh(qr.UseNavigation).navigation}function aE(){let{matches:e,loaderData:t}=Eh(qr.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 lE(){var e;let t=P.useContext(y1),n=Eh(qr.UseRouteError),r=S1(qr.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function uE(){let{router:e}=iE(Nf.UseNavigateStable),t=S1(qr.UseNavigateStable),n=P.useRef(!1);return v1(()=>{n.current=!0}),P.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,al({fromRouteId:t},o)))},[e,t])}const cE="startTransition",Lm=t_[cE];function fE(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=P.useState(n.state),{v7_startTransition:s}=r||{},a=P.useCallback(f=>{s&&Lm?Lm(()=>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(bh.Provider,{value:i},P.createElement(pE,{basename:u,location:i.location,navigationType:i.historyAction,navigator:l},i.initialized?P.createElement(dE,{routes:n.routes,state:i}):t))),null)}function dE(e){let{routes:t,state:n}=e;return JP(t,void 0,n)}function hE(e){return XP(e.context)}function pE(e){let{basename:t="/",children:n=null,location:r,navigationType:i=He.Pop,navigator:o,static:s=!1}=e;Cs()&&se(!1);let a=t.replace(/^\/*/,"/"),l=P.useMemo(()=>({basename:a,navigator:o,static:s}),[a,o,s]);typeof r=="string"&&(r=Nn(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:h="default"}=r,m=P.useMemo(()=>{let p=Yr(u,a);return p==null?null:{location:{pathname:p,search:c,hash:f,state:d,key:h},navigationType:i}},[a,u,c,f,d,h,i]);return m==null?null:P.createElement(Xr.Provider,{value:l},P.createElement(pu.Provider,{children:n,value:m}))}var Am;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Am||(Am={}));new Promise(()=>{});function mE(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. @@ -96,9 +96,9 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function vE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gE(e,t){return e.button===0&&(!t||t==="_self")&&!vE(e)}const wE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function SE(e,t){return NP({basename:t==null?void 0:t.basename,future:Qi({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oP({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||_E(),routes:e,mapRouteProperties:mE}).initialize()}function _E(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Qi({},t,{errors:xE(t.errors)})),t}function xE(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 _h(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 bE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sr=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,f=yE(t,wE),{basename:d}=P.useContext(Xr),h,m=!1;if(typeof u=="string"&&PE.test(u)&&(h=u,bE))try{let y=new URL(window.location.href),g=u.startsWith("//")?new URL(y.protocol+u):new URL(u),w=Yr(g.pathname,d);g.origin===y.origin&&w!=null?u=w+g.search+g.hash:m=!0}catch{}let p=KP(u,{relative:i}),_=TE(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i});function v(y){r&&r(y),y.defaultPrevented||_(y)}return P.createElement("a",Qi({},f,{href:h||p,onClick:m||o?r:v,ref:n,target:l}))});function EE(e){let{getKey:t,storageKey:n}=e;return RE({getKey:t,storageKey:n}),null}var Ff;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Ff||(Ff={}));var If;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(If||(If={}));function CE(e){let t=P.useContext(Es);return t||se(!1),t}function OE(e){let t=P.useContext(bh);return t||se(!1),t}function TE(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Ph(),l=Jr(),u=w1(e,{relative:s});return P.useCallback(c=>{if(gE(c,n)){c.preventDefault();let f=r!==void 0?r:Hr(l)===Hr(u);a(e,{replace:f,state:i,preventScrollReset:o,relative:s})}},[l,a,u,r,i,n,e,o,s])}const Nm="react-router-scroll-positions";let oa={};function RE(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=CE(Ff.UseScrollRestoration),{restoreScrollPosition:i,preventScrollReset:o}=OE(If.UseScrollRestoration),{basename:s}=P.useContext(Xr),a=Jr(),l=aE(),u=sE();P.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),kE(P.useCallback(()=>{if(u.state==="idle"){let c=(t?t(a,l):null)||a.key;oa[c]=window.scrollY}sessionStorage.setItem(n||Nm,JSON.stringify(oa)),window.history.scrollRestoration="auto"},[n,t,u.state,a,l])),typeof document<"u"&&(P.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(n||Nm);c&&(oa=JSON.parse(c))}catch{}},[n]),P.useLayoutEffect(()=>{let c=t&&s!=="/"?(d,h)=>t(Qi({},d,{pathname:Yr(d.pathname,s)||d.pathname}),h):t,f=r==null?void 0:r.enableScrollRestoration(oa,()=>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 kE(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 jE="_error_q95x3_1",DE="_error__text_q95x3_19",sa={"error-wrapper":"_error-wrapper_q95x3_1","non-padding":"_non-padding_q95x3_5",error:jE,error__text:DE},ME="_main_7z31m_1",Fm={main:ME,"wrapper-page":"_wrapper-page_7z31m_11"},LE=({error:e,children:t})=>E.jsx(E.Fragment,{children:(e==null?void 0:e.response.status)===404?E.jsx("div",{className:Fm.main,children:E.jsx("div",{className:`wrapper ${Fm["wrapper-page"]}`,children:E.jsxs("h1",{children:["Page not found go back to the main page.",E.jsx("br",{})," To do this, click on the logo"]})})}):t}),li=P.memo(({title:e,error:t,isError:n,children:r,classname:i})=>{var o,s,a;return((o=t==null?void 0:t.response)==null?void 0:o.status)===404?E.jsx(LE,{}):E.jsx(E.Fragment,{children:n?E.jsxs("div",{className:`wrapper ${sa["error-wrapper"]} ${i==="main"?"main":sa[`${i}`]}`,children:[e?E.jsx("h3",{className:"title-article",children:e}):null,E.jsx("div",{className:sa.error,children:E.jsx("p",{className:sa.error__text,children:((a=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:a.status_message)||t.message||"Sorry, something went wrong, go back to the main page"})})]}):r})});function Zt(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:Ch(e)?2:Oh(e)?3:0}function Ai(e,t){return eo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function AE(e,t){return eo(e)===2?e.get(t):e[t]}function _1(e,t,n){var r=eo(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function x1(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ch(e){return VE&&e instanceof Map}function Oh(e){return UE&&e instanceof Set}function Rr(e){return e.o||e.t}function Th(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=P1(e);delete t[Oe];for(var n=Ni(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=NE),Object.freeze(e),t&&qr(e,function(n,r){return Rh(r,!0)},!0)),e}function NE(){Zt(2)}function kh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fn(e){var t=Uf[e];return t||Zt(18,e),t}function FE(e,t){Uf[e]||(Uf[e]=t)}function $f(){return ds}function uc(e,t){t&&(fn("Patches"),e.u=[],e.s=[],e.v=t)}function ll(e){zf(e),e.p.forEach(IE),e.p=null}function zf(e){e===ds&&(ds=e.l)}function Im(e){return ds={p:[],l:ds,h:e,m:!0,_:0}}function IE(e){var t=e[Oe];t.i===0||t.i===1?t.j():t.g=!0}function cc(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||fn("ES5").S(t,e,r),r?(n[Oe].P&&(ll(t),Zt(4)),Mn(e)&&(e=ul(t,e),t.l||cl(t,e)),t.u&&fn("Patches").M(n[Oe].t,e,t.u,t.s)):e=ul(t,n,[]),ll(t),t.u&&t.v(t.u,t.s),e!==b1?e:void 0}function ul(e,t,n){if(kh(t))return t;var r=t[Oe];if(!r)return qr(t,function(a,l){return $m(e,r,t,a,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return cl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Th(r.k):r.o,o=i,s=!1;r.i===3&&(o=new Set(i),i.clear(),s=!0),qr(o,function(a,l){return $m(e,r,i,a,l,n,s)}),cl(e,i,!1),n&&e.u&&fn("Patches").N(r,n,e.u,e.s)}return r.o}function $m(e,t,n,r,i,o,s){if(pr(i)){var a=ul(e,i,o&&t&&t.i!==3&&!Ai(t.R,r)?o.concat(r):void 0);if(_1(n,r,a),!pr(a))return;e.m=!1}else s&&n.add(i);if(Mn(i)&&!kh(i)){if(!e.h.D&&e._<1)return;ul(e,i),t&&t.A.l||cl(e,i)}}function cl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Rh(t,n)}function fc(e,t){var n=e[Oe];return(n?Rr(n):e)[t]}function zm(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 Kn(e){e.P||(e.P=!0,e.l&&Kn(e.l))}function dc(e){e.o||(e.o=Th(e.t))}function Vf(e,t,n){var r=Ch(t)?fn("MapSet").F(t,n):Oh(t)?fn("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=Ro);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):fn("ES5").J(t,n);return(n?n.A:$f()).p.push(r),r}function $E(e){return pr(e)||Zt(22,e),function t(n){if(!Mn(n))return n;var r,i=n[Oe],o=eo(n);if(i){if(!i.P&&(i.i<4||!fn("ES5").K(i)))return i.t;i.I=!0,r=Vm(n,o),i.I=!1}else r=Vm(n,o);return qr(r,function(s,a){i&&AE(i.t,s)===a||_1(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 Th(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[Oe];return hs.get(l,o)},set:function(l){var u=this[Oe];hs.set(u,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][Oe];if(!a.P)switch(a.i){case 5:r(a)&&Kn(a);break;case 4:n(a)&&Kn(a)}}}function n(o){for(var s=o.t,a=o.k,l=Ni(a),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Oe){var f=s[c];if(f===void 0&&!Ai(s,c))return!0;var d=a[c],h=d&&d[Oe];if(h?h.t!==f:!x1(d,f))return!0}}var m=!!s[Oe];return l.length!==Ni(s).length+(m?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?v-1:0),g=1;g1?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=fn("Patches").$;return pr(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),kt=new WE,E1=kt.produce;kt.produceWithPatches.bind(kt);kt.setAutoFreeze.bind(kt);kt.setUseProxies.bind(kt);kt.applyPatches.bind(kt);kt.createDraft.bind(kt);kt.finishDraft.bind(kt);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 HE(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 QE(e){var t=HE(e,"string");return ps(t)==="symbol"?t:String(t)}function qE(e,t,n){return t=QE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hm(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 Qm(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(lt(1));return n(C1)(e,t)}if(typeof e!="function")throw new Error(lt(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(lt(3));return o}function f(p){if(typeof p!="function")throw new Error(lt(4));if(l)throw new Error(lt(5));var _=!0;return u(),a.push(p),function(){if(_){if(l)throw new Error(lt(6));_=!1,u();var y=a.indexOf(p);a.splice(y,1),s=null}}}function d(p){if(!KE(p))throw new Error(lt(7));if(typeof p.type>"u")throw new Error(lt(8));if(l)throw new Error(lt(9));try{l=!0,o=i(o,p)}finally{l=!1}for(var _=s=a,v=0;v<_.length;v++){var y=_[v];y()}return p}function h(p){if(typeof p!="function")throw new Error(lt(10));i=p,d({type:fl.REPLACE})}function m(){var p,_=f;return p={subscribe:function(y){if(typeof y!="object"||y===null)throw new Error(lt(11));function g(){y.next&&y.next(c())}g();var w=_(g);return{unsubscribe:w}}},p[qm]=function(){return this},p}return d({type:fl.INIT}),r={dispatch:d,subscribe:f,getState:c,replaceReducer:h},r[qm]=m,r}function GE(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:fl.INIT});if(typeof r>"u")throw new Error(lt(12));if(typeof n(void 0,{type:fl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(lt(13))})}function YE(e){for(var t=Object.keys(e),n={},r=0;r"u")throw u&&u.type,new Error(lt(14));f[h]=_,c=c||_!==p}return c=c||o.length!==Object.keys(l).length,c?f:l}}function dl(){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=bC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>mu(t)===e),yu=e=>t=>typeof t===e,{isArray:to}=Array,ms=yu("undefined");function PC(e){return e!==null&&!ms(e)&&e.constructor!==null&&!ms(e.constructor)&&Bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const L1=hn("ArrayBuffer");function EC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&L1(e.buffer),t}const CC=yu("string"),Bt=yu("function"),A1=yu("number"),vu=e=>e!==null&&typeof e=="object",OC=e=>e===!0||e===!1,Ca=e=>{if(mu(e)!=="object")return!1;const t=Mh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},TC=hn("Date"),RC=hn("File"),kC=hn("Blob"),jC=hn("FileList"),DC=e=>vu(e)&&Bt(e.pipe),MC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bt(e.append)&&((t=mu(e))==="formdata"||t==="object"&&Bt(e.toString)&&e.toString()==="[object FormData]"))},LC=hn("URLSearchParams"),AC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Os(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),to(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const F1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I1=e=>!ms(e)&&e!==F1;function Wf(){const{caseless:e}=I1(this)&&this||{},t={},n=(r,i)=>{const o=e&&N1(t,i)||i;Ca(t[o])&&Ca(r)?t[o]=Wf(t[o],r):Ca(r)?t[o]=Wf({},r):to(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Os(t,(i,o)=>{n&&Bt(i)?e[o]=M1(i,n):e[o]=i},{allOwnKeys:r}),e),FC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IC=(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)},$C=(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&&Mh(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},VC=e=>{if(!e)return null;if(to(e))return e;let t=e.length;if(!A1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mh(Uint8Array)),BC=(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])}},WC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},HC=hn("HTMLFormElement"),QC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Zm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qC=hn("RegExp"),$1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Os(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},KC=e=>{$1(e,(t,n)=>{if(Bt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Bt(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+"'")})}})},GC=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return to(e)?r(e):r(String(e).split(t)),n},YC=()=>{},XC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yc="abcdefghijklmnopqrstuvwxyz",ey="0123456789",z1={DIGIT:ey,ALPHA:yc,ALPHA_DIGIT:yc+yc.toUpperCase()+ey},JC=(e=16,t=z1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ZC(e){return!!(e&&Bt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eO=e=>{const t=new Array(10),n=(r,i)=>{if(vu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=to(r)?[]:{};return Os(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)},tO=hn("AsyncFunction"),nO=e=>e&&(vu(e)||Bt(e))&&Bt(e.then)&&Bt(e.catch),V={isArray:to,isArrayBuffer:L1,isBuffer:PC,isFormData:MC,isArrayBufferView:EC,isString:CC,isNumber:A1,isBoolean:OC,isObject:vu,isPlainObject:Ca,isUndefined:ms,isDate:TC,isFile:RC,isBlob:kC,isRegExp:qC,isFunction:Bt,isStream:DC,isURLSearchParams:LC,isTypedArray:UC,isFileList:jC,forEach:Os,merge:Wf,extend:NC,trim:AC,stripBOM:FC,inherits:IC,toFlatObject:$C,kindOf:mu,kindOfTest:hn,endsWith:zC,toArray:VC,forEachEntry:BC,matchAll:WC,isHTMLForm:HC,hasOwnProperty:Zm,hasOwnProp:Zm,reduceDescriptors:$1,freezeMethods:KC,toObjectSet:GC,toCamelCase:QC,noop:YC,toFiniteNumber:XC,findKey:N1,global:F1,isContextDefined:I1,ALPHABET:z1,generateString:JC,isSpecCompliantForm:ZC,toJSONObject:eO,isAsyncFn:tO,isThenable:nO};function de(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)}V.inherits(de,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:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V1=de.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(de,U1);Object.defineProperty(V1,"isAxiosError",{value:!0});de.from=(e,t,n,r,i,o)=>{const s=Object.create(V1);return V.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),de.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const rO=null;function Hf(e){return V.isPlainObject(e)||V.isArray(e)}function B1(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function ty(e,t,n){return e?e.concat(t).map(function(i,o){return i=B1(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function iO(e){return V.isArray(e)&&!e.some(Hf)}const oO=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function gu(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,_){return!V.isUndefined(_[p])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(V.isDate(m))return m.toISOString();if(!l&&V.isBlob(m))throw new de("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(m)||V.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,p,_){let v=m;if(m&&!_&&typeof m=="object"){if(V.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(V.isArray(m)&&iO(m)||(V.isFileList(m)||V.endsWith(p,"[]"))&&(v=V.toArray(m)))return p=B1(p),v.forEach(function(g,w){!(V.isUndefined(g)||g===null)&&t.append(s===!0?ty([p],w,o):s===null?p:p+"[]",u(g))}),!1}return Hf(m)?!0:(t.append(ty(_,p,o),u(m)),!1)}const f=[],d=Object.assign(oO,{defaultVisitor:c,convertValue:u,isVisitable:Hf});function h(m,p){if(!V.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),V.forEach(m,function(v,y){(!(V.isUndefined(v)||v===null)&&i.call(t,v,V.isString(y)?y.trim():y,p,d))===!0&&h(v,p?p.concat(y):[y])}),f.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ny(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lh(e,t){this._pairs=[],e&&gu(e,this,t)}const W1=Lh.prototype;W1.append=function(t,n){this._pairs.push([t,n])};W1.toString=function(t){const n=t?function(r){return t.call(this,r,ny)}:ny;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function sO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H1(e,t,n){if(!t)return e;const r=n&&n.encode||sO,i=n&&n.serialize;let o;if(i?o=i(t,n):o=V.isURLSearchParams(t)?t.toString():new Lh(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class aO{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){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ry=aO,Q1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lO=typeof URLSearchParams<"u"?URLSearchParams:Lh,uO=typeof FormData<"u"?FormData:null,cO=typeof Blob<"u"?Blob:null,fO=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),dO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ln={isBrowser:!0,classes:{URLSearchParams:lO,FormData:uO,Blob:cO},isStandardBrowserEnv:fO,isStandardBrowserWebWorkerEnv:dO,protocols:["http","https","file","blob","url","data"]};function hO(e,t){return gu(e,new ln.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ln.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pO(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mO(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&V.isArray(i)?i.length:s,l?(V.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!V.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&V.isArray(i[s])&&(i[s]=mO(i[s])),!a)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(r,i)=>{t(pO(r),i,n,0)}),n}return null}const yO={"Content-Type":void 0};function vO(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const wu={transitional:Q1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=V.isObject(t);if(o&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return i&&i?JSON.stringify(q1(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.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 hO(t,this.formSerializer).toString();if((a=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return gu(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),vO(t)):t}],transformResponse:[function(t){const n=this.transitional||wu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&V.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"?de.from(a,de.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:ln.classes.FormData,Blob:ln.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};V.forEach(["delete","get","head"],function(t){wu.headers[t]={}});V.forEach(["post","put","patch"],function(t){wu.headers[t]=V.merge(yO)});const Ah=wu,gO=V.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"]),wO=e=>{const t={};let n,r,i;return e&&e.split(` + */function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function vE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function gE(e,t){return e.button===0&&(!t||t==="_self")&&!vE(e)}const wE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function SE(e,t){return NP({basename:t==null?void 0:t.basename,future:qi({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:oP({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||_E(),routes:e,mapRouteProperties:mE}).initialize()}function _E(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=qi({},t,{errors:xE(t.errors)})),t}function xE(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 _h(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 bE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sr=P.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:u,preventScrollReset:c}=t,f=yE(t,wE),{basename:d}=P.useContext(Xr),h,m=!1;if(typeof u=="string"&&PE.test(u)&&(h=u,bE))try{let y=new URL(window.location.href),g=u.startsWith("//")?new URL(y.protocol+u):new URL(u),w=Yr(g.pathname,d);g.origin===y.origin&&w!=null?u=w+g.search+g.hash:m=!0}catch{}let p=KP(u,{relative:i}),_=RE(u,{replace:s,state:a,target:l,preventScrollReset:c,relative:i});function v(y){r&&r(y),y.defaultPrevented||_(y)}return P.createElement("a",qi({},f,{href:h||p,onClick:m||o?r:v,ref:n,target:l}))});function EE(e){let{getKey:t,storageKey:n}=e;return TE({getKey:t,storageKey:n}),null}var Ff;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(Ff||(Ff={}));var If;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(If||(If={}));function CE(e){let t=P.useContext(Es);return t||se(!1),t}function OE(e){let t=P.useContext(bh);return t||se(!1),t}function RE(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s}=t===void 0?{}:t,a=Ph(),l=Jr(),u=w1(e,{relative:s});return P.useCallback(c=>{if(gE(c,n)){c.preventDefault();let f=r!==void 0?r:Hr(l)===Hr(u);a(e,{replace:f,state:i,preventScrollReset:o,relative:s})}},[l,a,u,r,i,n,e,o,s])}const Nm="react-router-scroll-positions";let oa={};function TE(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=CE(Ff.UseScrollRestoration),{restoreScrollPosition:i,preventScrollReset:o}=OE(If.UseScrollRestoration),{basename:s}=P.useContext(Xr),a=Jr(),l=aE(),u=sE();P.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),kE(P.useCallback(()=>{if(u.state==="idle"){let c=(t?t(a,l):null)||a.key;oa[c]=window.scrollY}sessionStorage.setItem(n||Nm,JSON.stringify(oa)),window.history.scrollRestoration="auto"},[n,t,u.state,a,l])),typeof document<"u"&&(P.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(n||Nm);c&&(oa=JSON.parse(c))}catch{}},[n]),P.useLayoutEffect(()=>{let c=t&&s!=="/"?(d,h)=>t(qi({},d,{pathname:Yr(d.pathname,s)||d.pathname}),h):t,f=r==null?void 0:r.enableScrollRestoration(oa,()=>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 kE(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 jE="_error_q95x3_1",DE="_error__text_q95x3_19",sa={"error-wrapper":"_error-wrapper_q95x3_1","non-padding":"_non-padding_q95x3_5",error:jE,error__text:DE},ME="_main_7z31m_1",Fm={main:ME,"wrapper-page":"_wrapper-page_7z31m_11"},LE=({error:e,children:t})=>E.jsx(E.Fragment,{children:(e==null?void 0:e.response.status)===404?E.jsx("div",{className:Fm.main,children:E.jsx("div",{className:`wrapper ${Fm["wrapper-page"]}`,children:E.jsxs("h1",{children:["Page not found go back to the main page.",E.jsx("br",{})," To do this, click on the logo"]})})}):t}),li=P.memo(({title:e,error:t,isError:n,children:r,classname:i})=>{var o,s,a;return((o=t==null?void 0:t.response)==null?void 0:o.status)===404?E.jsx(LE,{}):E.jsx(E.Fragment,{children:n?E.jsxs("div",{className:`wrapper ${sa["error-wrapper"]} ${i==="main"?"main":sa[`${i}`]}`,children:[e?E.jsx("h3",{className:"title-article",children:e}):null,E.jsx("div",{className:sa.error,children:E.jsx("p",{className:sa.error__text,children:((a=(s=t==null?void 0:t.response)==null?void 0:s.data)==null?void 0:a.status_message)||t.message||"Sorry, something went wrong, go back to the main page"})})]}):r})});function Zt(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:Ch(e)?2:Oh(e)?3:0}function Ai(e,t){return eo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function AE(e,t){return eo(e)===2?e.get(t):e[t]}function _1(e,t,n){var r=eo(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function x1(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ch(e){return VE&&e instanceof Map}function Oh(e){return UE&&e instanceof Set}function Tr(e){return e.o||e.t}function Rh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=P1(e);delete t[Oe];for(var n=Ni(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=NE),Object.freeze(e),t&&Qr(e,function(n,r){return Th(r,!0)},!0)),e}function NE(){Zt(2)}function kh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fn(e){var t=Uf[e];return t||Zt(18,e),t}function FE(e,t){Uf[e]||(Uf[e]=t)}function $f(){return ds}function uc(e,t){t&&(fn("Patches"),e.u=[],e.s=[],e.v=t)}function ll(e){zf(e),e.p.forEach(IE),e.p=null}function zf(e){e===ds&&(ds=e.l)}function Im(e){return ds={p:[],l:ds,h:e,m:!0,_:0}}function IE(e){var t=e[Oe];t.i===0||t.i===1?t.j():t.g=!0}function cc(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||fn("ES5").S(t,e,r),r?(n[Oe].P&&(ll(t),Zt(4)),Mn(e)&&(e=ul(t,e),t.l||cl(t,e)),t.u&&fn("Patches").M(n[Oe].t,e,t.u,t.s)):e=ul(t,n,[]),ll(t),t.u&&t.v(t.u,t.s),e!==b1?e:void 0}function ul(e,t,n){if(kh(t))return t;var r=t[Oe];if(!r)return Qr(t,function(a,l){return $m(e,r,t,a,l,n)},!0),t;if(r.A!==e)return t;if(!r.P)return cl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Rh(r.k):r.o,o=i,s=!1;r.i===3&&(o=new Set(i),i.clear(),s=!0),Qr(o,function(a,l){return $m(e,r,i,a,l,n,s)}),cl(e,i,!1),n&&e.u&&fn("Patches").N(r,n,e.u,e.s)}return r.o}function $m(e,t,n,r,i,o,s){if(pr(i)){var a=ul(e,i,o&&t&&t.i!==3&&!Ai(t.R,r)?o.concat(r):void 0);if(_1(n,r,a),!pr(a))return;e.m=!1}else s&&n.add(i);if(Mn(i)&&!kh(i)){if(!e.h.D&&e._<1)return;ul(e,i),t&&t.A.l||cl(e,i)}}function cl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Th(t,n)}function fc(e,t){var n=e[Oe];return(n?Tr(n):e)[t]}function zm(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 Kn(e){e.P||(e.P=!0,e.l&&Kn(e.l))}function dc(e){e.o||(e.o=Rh(e.t))}function Vf(e,t,n){var r=Ch(t)?fn("MapSet").F(t,n):Oh(t)?fn("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=To);var c=Proxy.revocable(l,u),f=c.revoke,d=c.proxy;return a.k=d,a.j=f,d}(t,n):fn("ES5").J(t,n);return(n?n.A:$f()).p.push(r),r}function $E(e){return pr(e)||Zt(22,e),function t(n){if(!Mn(n))return n;var r,i=n[Oe],o=eo(n);if(i){if(!i.P&&(i.i<4||!fn("ES5").K(i)))return i.t;i.I=!0,r=Vm(n,o),i.I=!1}else r=Vm(n,o);return Qr(r,function(s,a){i&&AE(i.t,s)===a||_1(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 Rh(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[Oe];return hs.get(l,o)},set:function(l){var u=this[Oe];hs.set(u,o,l)}},a}function t(o){for(var s=o.length-1;s>=0;s--){var a=o[s][Oe];if(!a.P)switch(a.i){case 5:r(a)&&Kn(a);break;case 4:n(a)&&Kn(a)}}}function n(o){for(var s=o.t,a=o.k,l=Ni(a),u=l.length-1;u>=0;u--){var c=l[u];if(c!==Oe){var f=s[c];if(f===void 0&&!Ai(s,c))return!0;var d=a[c],h=d&&d[Oe];if(h?h.t!==f:!x1(d,f))return!0}}var m=!!s[Oe];return l.length!==Ni(s).length+(m?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?v-1:0),g=1;g1?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=fn("Patches").$;return pr(n)?s(n,r):this.produce(n,function(a){return s(a,r)})},e}(),kt=new WE,E1=kt.produce;kt.produceWithPatches.bind(kt);kt.setAutoFreeze.bind(kt);kt.setUseProxies.bind(kt);kt.applyPatches.bind(kt);kt.createDraft.bind(kt);kt.finishDraft.bind(kt);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 HE(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 qE(e){var t=HE(e,"string");return ps(t)==="symbol"?t:String(t)}function QE(e,t,n){return t=qE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hm(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 qm(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(lt(1));return n(C1)(e,t)}if(typeof e!="function")throw new Error(lt(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(lt(3));return o}function f(p){if(typeof p!="function")throw new Error(lt(4));if(l)throw new Error(lt(5));var _=!0;return u(),a.push(p),function(){if(_){if(l)throw new Error(lt(6));_=!1,u();var y=a.indexOf(p);a.splice(y,1),s=null}}}function d(p){if(!KE(p))throw new Error(lt(7));if(typeof p.type>"u")throw new Error(lt(8));if(l)throw new Error(lt(9));try{l=!0,o=i(o,p)}finally{l=!1}for(var _=s=a,v=0;v<_.length;v++){var y=_[v];y()}return p}function h(p){if(typeof p!="function")throw new Error(lt(10));i=p,d({type:fl.REPLACE})}function m(){var p,_=f;return p={subscribe:function(y){if(typeof y!="object"||y===null)throw new Error(lt(11));function g(){y.next&&y.next(c())}g();var w=_(g);return{unsubscribe:w}}},p[Qm]=function(){return this},p}return d({type:fl.INIT}),r={dispatch:d,subscribe:f,getState:c,replaceReducer:h},r[Qm]=m,r}function GE(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:fl.INIT});if(typeof r>"u")throw new Error(lt(12));if(typeof n(void 0,{type:fl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(lt(13))})}function YE(e){for(var t=Object.keys(e),n={},r=0;r"u")throw u&&u.type,new Error(lt(14));f[h]=_,c=c||_!==p}return c=c||o.length!==Object.keys(l).length,c?f:l}}function dl(){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=bC.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hn=e=>(e=e.toLowerCase(),t=>mu(t)===e),yu=e=>t=>typeof t===e,{isArray:to}=Array,ms=yu("undefined");function PC(e){return e!==null&&!ms(e)&&e.constructor!==null&&!ms(e.constructor)&&Bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const L1=hn("ArrayBuffer");function EC(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&L1(e.buffer),t}const CC=yu("string"),Bt=yu("function"),A1=yu("number"),vu=e=>e!==null&&typeof e=="object",OC=e=>e===!0||e===!1,Ca=e=>{if(mu(e)!=="object")return!1;const t=Mh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},RC=hn("Date"),TC=hn("File"),kC=hn("Blob"),jC=hn("FileList"),DC=e=>vu(e)&&Bt(e.pipe),MC=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bt(e.append)&&((t=mu(e))==="formdata"||t==="object"&&Bt(e.toString)&&e.toString()==="[object FormData]"))},LC=hn("URLSearchParams"),AC=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Os(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),to(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const F1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),I1=e=>!ms(e)&&e!==F1;function Wf(){const{caseless:e}=I1(this)&&this||{},t={},n=(r,i)=>{const o=e&&N1(t,i)||i;Ca(t[o])&&Ca(r)?t[o]=Wf(t[o],r):Ca(r)?t[o]=Wf({},r):to(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Os(t,(i,o)=>{n&&Bt(i)?e[o]=M1(i,n):e[o]=i},{allOwnKeys:r}),e),FC=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),IC=(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)},$C=(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&&Mh(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},VC=e=>{if(!e)return null;if(to(e))return e;let t=e.length;if(!A1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},UC=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Mh(Uint8Array)),BC=(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])}},WC=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},HC=hn("HTMLFormElement"),qC=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Zm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),QC=hn("RegExp"),$1=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Os(n,(i,o)=>{t(i,o,e)!==!1&&(r[o]=i)}),Object.defineProperties(e,r)},KC=e=>{$1(e,(t,n)=>{if(Bt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Bt(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+"'")})}})},GC=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return to(e)?r(e):r(String(e).split(t)),n},YC=()=>{},XC=(e,t)=>(e=+e,Number.isFinite(e)?e:t),yc="abcdefghijklmnopqrstuvwxyz",ey="0123456789",z1={DIGIT:ey,ALPHA:yc,ALPHA_DIGIT:yc+yc.toUpperCase()+ey},JC=(e=16,t=z1.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ZC(e){return!!(e&&Bt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const eO=e=>{const t=new Array(10),n=(r,i)=>{if(vu(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=to(r)?[]:{};return Os(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)},tO=hn("AsyncFunction"),nO=e=>e&&(vu(e)||Bt(e))&&Bt(e.then)&&Bt(e.catch),V={isArray:to,isArrayBuffer:L1,isBuffer:PC,isFormData:MC,isArrayBufferView:EC,isString:CC,isNumber:A1,isBoolean:OC,isObject:vu,isPlainObject:Ca,isUndefined:ms,isDate:RC,isFile:TC,isBlob:kC,isRegExp:QC,isFunction:Bt,isStream:DC,isURLSearchParams:LC,isTypedArray:UC,isFileList:jC,forEach:Os,merge:Wf,extend:NC,trim:AC,stripBOM:FC,inherits:IC,toFlatObject:$C,kindOf:mu,kindOfTest:hn,endsWith:zC,toArray:VC,forEachEntry:BC,matchAll:WC,isHTMLForm:HC,hasOwnProperty:Zm,hasOwnProp:Zm,reduceDescriptors:$1,freezeMethods:KC,toObjectSet:GC,toCamelCase:qC,noop:YC,toFiniteNumber:XC,findKey:N1,global:F1,isContextDefined:I1,ALPHABET:z1,generateString:JC,isSpecCompliantForm:ZC,toJSONObject:eO,isAsyncFn:tO,isThenable:nO};function de(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)}V.inherits(de,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:V.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const V1=de.prototype,U1={};["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=>{U1[e]={value:e}});Object.defineProperties(de,U1);Object.defineProperty(V1,"isAxiosError",{value:!0});de.from=(e,t,n,r,i,o)=>{const s=Object.create(V1);return V.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),de.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};const rO=null;function Hf(e){return V.isPlainObject(e)||V.isArray(e)}function B1(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function ty(e,t,n){return e?e.concat(t).map(function(i,o){return i=B1(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function iO(e){return V.isArray(e)&&!e.some(Hf)}const oO=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function gu(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,_){return!V.isUndefined(_[p])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(i))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(V.isDate(m))return m.toISOString();if(!l&&V.isBlob(m))throw new de("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(m)||V.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,p,_){let v=m;if(m&&!_&&typeof m=="object"){if(V.endsWith(p,"{}"))p=r?p:p.slice(0,-2),m=JSON.stringify(m);else if(V.isArray(m)&&iO(m)||(V.isFileList(m)||V.endsWith(p,"[]"))&&(v=V.toArray(m)))return p=B1(p),v.forEach(function(g,w){!(V.isUndefined(g)||g===null)&&t.append(s===!0?ty([p],w,o):s===null?p:p+"[]",u(g))}),!1}return Hf(m)?!0:(t.append(ty(_,p,o),u(m)),!1)}const f=[],d=Object.assign(oO,{defaultVisitor:c,convertValue:u,isVisitable:Hf});function h(m,p){if(!V.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(m),V.forEach(m,function(v,y){(!(V.isUndefined(v)||v===null)&&i.call(t,v,V.isString(y)?y.trim():y,p,d))===!0&&h(v,p?p.concat(y):[y])}),f.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ny(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Lh(e,t){this._pairs=[],e&&gu(e,this,t)}const W1=Lh.prototype;W1.append=function(t,n){this._pairs.push([t,n])};W1.toString=function(t){const n=t?function(r){return t.call(this,r,ny)}:ny;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function sO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function H1(e,t,n){if(!t)return e;const r=n&&n.encode||sO,i=n&&n.serialize;let o;if(i?o=i(t,n):o=V.isURLSearchParams(t)?t.toString():new Lh(t,n).toString(r),o){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class aO{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){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ry=aO,q1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lO=typeof URLSearchParams<"u"?URLSearchParams:Lh,uO=typeof FormData<"u"?FormData:null,cO=typeof Blob<"u"?Blob:null,fO=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),dO=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ln={isBrowser:!0,classes:{URLSearchParams:lO,FormData:uO,Blob:cO},isStandardBrowserEnv:fO,isStandardBrowserWebWorkerEnv:dO,protocols:["http","https","file","blob","url","data"]};function hO(e,t){return gu(e,new ln.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ln.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function pO(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function mO(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return s=!s&&V.isArray(i)?i.length:s,l?(V.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!a):((!i[s]||!V.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&V.isArray(i[s])&&(i[s]=mO(i[s])),!a)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(r,i)=>{t(pO(r),i,n,0)}),n}return null}const yO={"Content-Type":void 0};function vO(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const wu={transitional:q1,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=V.isObject(t);if(o&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return i&&i?JSON.stringify(Q1(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.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 hO(t,this.formSerializer).toString();if((a=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return gu(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),vO(t)):t}],transformResponse:[function(t){const n=this.transitional||wu.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&V.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"?de.from(a,de.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:ln.classes.FormData,Blob:ln.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};V.forEach(["delete","get","head"],function(t){wu.headers[t]={}});V.forEach(["post","put","patch"],function(t){wu.headers[t]=V.merge(yO)});const Ah=wu,gO=V.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"]),wO=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]&&gO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},iy=Symbol("internals");function So(e){return e&&String(e).trim().toLowerCase()}function Oa(e){return e===!1||e==null?e:V.isArray(e)?e.map(Oa):String(e)}function SO(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 _O=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function vc(e,t,n,r,i){if(V.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function xO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function bO(e,t){const n=V.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 Su{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(a,l,u){const c=So(l);if(!c)throw new Error("header name must be a non-empty string");const f=V.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)=>V.forEach(a,(u,c)=>o(u,c,l));return V.isPlainObject(t)||t instanceof this.constructor?s(t,n):V.isString(t)&&(t=t.trim())&&!_O(t)?s(wO(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=So(t),t){const r=V.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return SO(i);if(V.isFunction(n))return n.call(this,i,r);if(V.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=So(t),t){const r=V.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||vc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(s){if(s=So(s),s){const a=V.findKey(r,s);a&&(!n||vc(r,r[a],a,n))&&(delete r[a],i=!0)}}return V.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||vc(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return V.forEach(this,(i,o)=>{const s=V.findKey(r,o);if(s){n[s]=Oa(i),delete n[o];return}const a=t?xO(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 V.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&V.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[iy]=this[iy]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=So(s);r[a]||(bO(i,s),r[a]=!0)}return V.isArray(t)?t.forEach(o):o(t),this}}Su.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.freezeMethods(Su.prototype);V.freezeMethods(Su);const Cn=Su;function gc(e,t){const n=this||Ah,r=t||n,i=Cn.from(r.headers);let o=r.data;return V.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function K1(e){return!!(e&&e.__CANCEL__)}function Ts(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Ts,de,{__CANCEL__:!0});function PO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const EO=ln.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),V.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),V.isString(o)&&l.push("path="+o),V.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 CO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OO(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function G1(e,t){return e&&!CO(t)?OO(e,t):t}const TO=ln.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=V.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function RO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kO(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 jO=typeof XMLHttpRequest<"u",DO=jO&&function(e){return new Promise(function(n,r){let i=e.data;const o=Cn.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}V.isFormData(i)&&(ln.isStandardBrowserEnv||ln.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+m))}const c=G1(e.baseURL,e.url);u.open(e.method.toUpperCase(),H1(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=Cn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};PO(function(v){n(v),l()},function(v){r(v),l()},p),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 de("Request aborted",de.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||Q1;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new de(m,p.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,u)),u=null},ln.isStandardBrowserEnv){const h=(e.withCredentials||TO(c))&&e.xsrfCookieName&&EO.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&V.forEach(o.toJSON(),function(m,p){u.setRequestHeader(p,m)}),V.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",oy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",oy(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=RO(c);if(d&&ln.protocols.indexOf(d)===-1){r(new de("Unsupported protocol "+d+":",de.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Ta={http:rO,xhr:DO};V.forEach(Ta,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const MO={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof Cn?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function r(u,c,f){return V.isPlainObject(u)&&V.isPlainObject(c)?V.merge.call({caseless:f},u,c):V.isPlainObject(c)?V.merge({},c):V.isArray(c)?c.slice():c}function i(u,c,f){if(V.isUndefined(c)){if(!V.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!V.isUndefined(c))return r(void 0,c)}function s(u,c){if(V.isUndefined(c)){if(!V.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(ay(u),ay(c),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);V.isUndefined(d)&&f!==a||(n[c]=d)}),n}const Y1="1.4.0",Nh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ly={};Nh.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Y1+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new de(i(s," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!ly[s]&&(ly[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 LO(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.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 de("option "+o+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+o,de.ERR_BAD_OPTION)}}const Qf={assertOptions:LO,validators:Nh},zn=Qf.validators;class hl{constructor(t){this.defaults=t,this.interceptors={request:new ry,response:new ry}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&Qf.assertOptions(r,{silentJSONParsing:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1),i!=null&&(V.isFunction(i)?n.paramsSerializer={serialize:i}:Qf.assertOptions(i,{encode:zn.function,serialize:zn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=o&&V.merge(o.common,o[n.method]),s&&V.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Cn.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const m=[sy.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),d=m.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 Fh(function(i){t=i}),cancel:t}}}const AO=Fh;function NO(e){return function(n){return e.apply(null,n)}}function FO(e){return V.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 IO=qf;function X1(e){const t=new Ra(e),n=M1(Ra.prototype.request,t);return V.extend(n,Ra.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return X1(Ki(e,i))},n}const Je=X1(Ah);Je.Axios=Ra;Je.CanceledError=Ts;Je.CancelToken=AO;Je.isCancel=K1;Je.VERSION=Y1;Je.toFormData=gu;Je.AxiosError=de;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=NO;Je.isAxiosError=FO;Je.mergeConfig=Ki;Je.AxiosHeaders=Cn;Je.formToJSON=e=>q1(V.isHTMLForm(e)?new FormData(e):e);Je.HttpStatusCode=IO;Je.default=Je;const $O=Je,zO="https://api.themoviedb.org/3",VO="eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI2YTNhYzU1Yzk1ODQ2YzFjZjQ1NGQ2ZDE1MzdhNzQ2NyIsIm5iZiI6MTcyMDkwMjM5OC4zNDExNjYsInN1YiI6IjYyYmQ4ZGNiMDk3YzQ5MGJhNDhhN2I1ZSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.0rhaIUIqhEbmxrxmZ36F_PzqdlKfPE8FJaA4dxSPmrw",_u=async(e,t={})=>{const n={method:"GET",url:zO+e,params:t,headers:{accept:"application/json",Authorization:`Bearer ${VO}`}};return(await $O.request(n)).data},ka=D1("genresList/fetchAllGenres",async()=>{let e=[],t=["tv","movie"];try{return t.forEach(n=>{e.push(_u(`/genre/${n}/list`))}),await Promise.all(e)}catch(n){return n.response.data.status_message}}),UO={loading:"",error:"",all:{},tv:[],movie:[]},BO=j1({name:"genresList",initialState:UO,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"})}}),WO=BO.reducer,ja=D1("main/fetchUrl",async()=>_u("/configuration")),HO={url:null,loading:"loading",error:""},QO=j1({name:"main",initialState:HO,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"})}}),qO=QO.reducer,KO=(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},FL=e=>{const t=Math.floor(e/60),n=e%60;return`${t}h${n>0?` ${n}m`:""}`},GO=(e,t)=>{let n=null;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=null,e(r)},t)}},IL=(e,t,n,r)=>r==="up"?e[n].toLowerCase().localeCompare(t[n].toLowerCase()):r==="down"?t[n].toLowerCase().localeCompare(e[n].toLowerCase()):0,$L=(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,zL=(e,t,n,r)=>r==="up"?e[n]-t[n]:r==="down"?t[n]-e[n]:0,YO="_btn_ugde5_1",XO="_btn_theme_ugde5_20",JO="_btn_up_ugde5_32",ZO="_close_ugde5_49",eT="_arrow_ugde5_76",pl={btn:YO,btn_theme:XO,btn_up:JO,close:ZO,arrow:eT,"btn-wrapper":"_btn-wrapper_ugde5_80","sort-btn":"_sort-btn_ugde5_90","sort-btn_inactive":"_sort-btn_inactive_ugde5_110","sort-btn_clear":"_sort-btn_clear_ugde5_113","sort-btn__img":"_sort-btn__img_ugde5_124"},tT=()=>{const[e,t]=P.useState(),n=()=>{window.scrollTo(0,0)},r=GO(()=>{t(window.scrollY>1e3)},200);return P.useEffect(()=>(window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r))),E.jsx(E.Fragment,{children:e?E.jsx("button",{className:`${pl.btn} ${pl.btn_up}`,tabIndex:"1",onClick:n,children:E.jsx("svg",{baseProfile:"tiny",height:"24",version:"1.2",width:"24",xmlns:"http://www.w3.org/2000/svg",children:E.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})},nT=window.matchMedia("(prefers-color-scheme: dark)").matches,uy=nT?"dark":"light",rT=()=>{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||uy,t(e||uy)},[e]),E.jsx("button",{className:`${pl.btn} ${pl.btn_theme}`,tabIndex:"1",onClick:n,children:e==="light"?E.jsx("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:E.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"})}):E.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:[E.jsx("circle",{cx:"12",cy:"12",r:"5"}),E.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"})]})})},iT=[{icon:E.jsxs("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:[E.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"}),E.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:E.jsxs("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M0 0h32v32H0z",fill:"none"}),E.jsxs("g",{"data-name":"Instagram",fill:"currentColor",children:[E.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"}),E.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"}),E.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:E.jsxs("svg",{viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",children:[E.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"}),E.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)"}),E.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:E.jsxs("svg",{version:"1.1",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M273 233.8v-.7c-.1.2-.3.5-.5.7h.5z"}),E.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/"}],oT="_footer_slfx4_1",sT="_wrapper_slfx4_7",aT="_nav_slfx4_12",lT="_nav__item_slfx4_36",uT="_info_slfx4_53",cT="_social__icons_slfx4_66",fT="_icon_slfx4_72",si={footer:oT,wrapper:sT,nav:aT,nav__item:lT,info:uT,social__icons:cT,icon:fT},dT=["Terms Of Use","Privacy-Policy","About","Blog","FAQ"],hT=()=>E.jsx("footer",{className:si.footer,children:E.jsxs("div",{className:"wrapper",children:[E.jsx("ul",{className:si.nav,children:dT.map(e=>E.jsx("li",{className:si.nav__item,children:E.jsx(sr,{children:e})},e))}),E.jsx("div",{className:si.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."}),E.jsx("ul",{className:si.social__icons,children:iT.map(e=>E.jsx(sr,{className:si.icon,rel:"noopener noreferrer",target:"_blank",to:e.path,children:e.icon},e.path))})]})}),cy=(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])},pT=(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])},mT="/movix/assets/burger_menu-966ba508.svg",fy="/movix/assets/close_menu-de2cc81a.svg",J1="/movix/assets/search-f9f75985.svg",Z1=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xu=P.createContext({}),bu=P.createContext(null),Pu=typeof document<"u",ml=Pu?P.useLayoutEffect:P.useEffect,ew=P.createContext({strict:!1});function yT(e,t,n,r){const{visualElement:i}=P.useContext(xu),o=P.useContext(ew),s=P.useContext(bu),a=P.useContext(Z1).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)}),ml(()=>{u&&u.render()}),P.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?ml:P.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function Pi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function vT(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):Pi(n)&&(n.current=r))},[t])}function ys(e){return typeof e=="string"||Array.isArray(e)}function Eu(e){return typeof e=="object"&&typeof e.start=="function"}const Ih=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$h=["initial",...Ih];function Cu(e){return Eu(e.animate)||$h.some(t=>ys(e[t]))}function tw(e){return!!(Cu(e)||e.variants)}function gT(e,t){if(Cu(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 wT(e){const{initial:t,animate:n}=gT(e,P.useContext(xu));return P.useMemo(()=>({initial:t,animate:n}),[dy(t),dy(n)])}function dy(e){return Array.isArray(e)?e.join(" "):e}const hy={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 hy)vs[e]={isEnabled:t=>hy[e].some(n=>!!t[n])};function ST(e){for(const t in e)vs[t]={...vs[t],...e[t]}}const zh=P.createContext({}),nw=P.createContext({}),_T=Symbol.for("motionComponentSymbol");function xT({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&ST(e);function o(a,l){let u;const c={...P.useContext(Z1),...a,layoutId:bT(a)},{isStatic:f}=c,d=wT(a),h=r(a,f);if(!f&&Pu){d.visualElement=yT(i,h,c,t);const m=P.useContext(nw),p=P.useContext(ew).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,p,e,m))}return P.createElement(xu.Provider,{value:d},u&&d.visualElement?P.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,a,vT(h,d.visualElement,l),h,f,d.visualElement))}const s=P.forwardRef(o);return s[_T]=i,s}function bT({layoutId:e}){const t=P.useContext(zh).id;return t&&e!==void 0?t+"-"+e:e}function PT(e){function t(r,i={}){return xT(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 ET=["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 Vh(e){return typeof e!="string"||e.includes("-")?!1:!!(ET.indexOf(e)>-1||/[A-Z]/.test(e))}const yl={};function CT(e){Object.assign(yl,e)}const Rs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zr=new Set(Rs);function rw(e,{layout:t,layoutId:n}){return Zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yl[e]||e==="opacity")}const bt=e=>!!(e&&e.getVelocity),OT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TT=Rs.length;function RT(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),ow=iw("--"),Kf=iw("var(--"),kT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,jT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,mr=(e,t,n)=>Math.min(Math.max(n,e),t),ei={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vo={...ei,transform:e=>mr(0,1,e)},aa={...ei,default:1},Uo=e=>Math.round(e*1e5)/1e5,Ou=/(-)?([\d]*\.?[\d])+/g,sw=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,DT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ks(e){return typeof e=="string"}const js=e=>({test:t=>ks(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vn=js("deg"),dn=js("%"),re=js("px"),MT=js("vh"),LT=js("vw"),py={...dn,parse:e=>dn.parse(e)/100,transform:e=>dn.transform(e*100)},my={...ei,transform:Math.round},aw={borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,size:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,rotate:Vn,rotateX:Vn,rotateY:Vn,rotateZ:Vn,scale:aa,scaleX:aa,scaleY:aa,scaleZ:aa,skew:Vn,skewX:Vn,skewY:Vn,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:Vo,originX:py,originY:py,originZ:re,zIndex:my,fillOpacity:Vo,strokeOpacity:Vo,numOctaves:my};function Uh(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(ow(f)){o[f]=d;continue}const h=aw[f],m=jT(d,h);if(Zr.has(f)){if(l=!0,s[f]=m,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=m):i[f]=m}if(t.transform||(l||r?i.transform=RT(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 Bh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lw(e,t,n){for(const r in t)!bt(t[r])&&!rw(r,n)&&(e[r]=t[r])}function AT({transformTemplate:e},t,n){return P.useMemo(()=>{const r=Bh();return Uh(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function NT(e,t,n){const r=e.style||{},i={};return lw(i,r,e),Object.assign(i,AT(e,t,n)),e.transformValues?e.transformValues(i):i}function FT(e,t,n){const r={},i=NT(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 IT=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 vl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||IT.has(e)}let uw=e=>!vl(e);function $T(e){e&&(uw=t=>t.startsWith("on")?!vl(t):e(t))}try{$T(require("@emotion/is-prop-valid").default)}catch{}function zT(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(uw(i)||n===!0&&vl(i)||!t&&!vl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yy(e,t,n){return typeof e=="string"?e:re.transform(t+n*e)}function VT(e,t,n){const r=yy(t,e.x,e.width),i=yy(n,e.y,e.height);return`${r} ${i}`}const UT={offset:"stroke-dashoffset",array:"stroke-dasharray"},BT={offset:"strokeDashoffset",array:"strokeDasharray"};function WT(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?UT:BT;e[o.offset]=re.transform(-r);const s=re.transform(t),a=re.transform(n);e[o.array]=`${s} ${a}`}function Wh(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f,d){if(Uh(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:m,dimensions:p}=e;h.transform&&(p&&(m.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=VT(p,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&&WT(h,s,a,l,!1)}const cw=()=>({...Bh(),attrs:{}}),Hh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function HT(e,t,n,r){const i=P.useMemo(()=>{const o=cw();return Wh(o,t,{enableHardwareAcceleration:!1},Hh(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};lw(o,e.style,e),i.style={...o,...i.style}}return i}function QT(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Vh(n)?HT:FT)(r,o,s,n),c={...zT(r,typeof n=="string",e),...l,ref:i},{children:f}=r,d=P.useMemo(()=>bt(f)?f.get():f,[f]);return P.createElement(n,{...c,children:d})}}const Qh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function fw(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 dw=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 hw(e,t,n,r){fw(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dw.has(i)?i:Qh(i),t.attrs[i])}function qh(e,t){const{style:n}=e,r={};for(const i in n)(bt(n[i])||t.style&&bt(t.style[i])||rw(i,e))&&(r[i]=n[i]);return r}function pw(e,t){const n=qh(e,t);for(const r in e)if(bt(e[r])||bt(t[r])){const i=Rs.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Kh(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 mw(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const gl=e=>Array.isArray(e),qT=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),KT=e=>gl(e)?e[e.length-1]||0:e;function Da(e){const t=bt(e)?e.get():e;return qT(t)?t.toValue():t}function GT({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:YT(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const yw=e=>(t,n)=>{const r=P.useContext(xu),i=P.useContext(bu),o=()=>GT(e,t,r,i);return n?o():mw(o)};function YT(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=Cu(e),u=tw(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"&&!Eu(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=Kh(e,h);if(!m)return;const{transitionEnd:p,transition:_,...v}=m;for(const y in v){let g=v[y];if(Array.isArray(g)){const w=c?g.length-1:0;g=g[w]}g!==null&&(i[y]=g)}for(const y in p)i[y]=p[y]}),i}const XT={useVisualState:yw({scrapeMotionValuesFromProps:pw,createRenderState:cw,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}}Wh(n,r,{enableHardwareAcceleration:!1},Hh(t.tagName),e.transformTemplate),hw(t,n)}})},JT={useVisualState:yw({scrapeMotionValuesFromProps:qh,createRenderState:Bh})};function ZT(e,{forwardMotionProps:t=!1},n,r){return{...Vh(e)?XT:JT,preloadedFeatures:n,useRender:QT(t),createVisualElement:r,Component:e}}function bn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const vw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Tu(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const eR=e=>t=>vw(t)&&e(t,Tu(t));function On(e,t,n,r){return bn(e,t,eR(n),r)}const tR=(e,t)=>n=>t(e(n)),ur=(...e)=>e.reduce(tR);function gw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const vy=gw("dragHorizontal"),gy=gw("dragVertical");function ww(e){let t=!1;if(e==="y")t=gy();else if(e==="x")t=vy();else{const n=vy(),r=gy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Sw(){const e=ww(!0);return e?(e(),!1):!0}class Sr{constructor(t){this.isMounted=!1,this.node=t}update(){}}const ze=e=>e;function nR(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]=nR(()=>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,rR),1),i.timestamp=f,i.isProcessing=!0,la.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:la.reduce((f,d)=>{const h=o[d];return f[d]=(m,p=!1,_=!1)=>(n||l(),h.schedule(m,p,_)),f},{}),cancel:f=>la.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:Re,cancel:Ln,state:ut,steps:Sc}=iR(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0);function wy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||Sw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Re.update(()=>a[r](o,s))};return On(e.current,n,i,{passive:!e.getProps()[r]})}class oR extends Sr{mount(){this.unmount=ur(wy(this.node,!0),wy(this.node,!1))}unmount(){}}class sR extends Sr{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=ur(bn(this.node.current,"focus",()=>this.onFocus()),bn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _w=(e,t)=>t?e===t?!0:_w(e,t.parentElement):!1;function _c(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Tu(n))}class aR extends Sr{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=On(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Re.update(()=>{_w(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=On(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ur(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()||_c("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Re.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=bn(this.node.current,"keyup",s),_c("down",(a,l)=>{this.startPress(a,l)})},n=bn(this.node.current,"keydown",t),r=()=>{this.isPressing&&_c("cancel",(o,s)=>this.cancelPress(o,s))},i=bn(this.node.current,"blur",r);this.removeAccessibleListeners=ur(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&&Re.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Sw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Re.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=On(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=bn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ur(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Gf=new WeakMap,xc=new WeakMap,lR=e=>{const t=Gf.get(e.target);t&&t(e)},uR=e=>{e.forEach(lR)};function cR({root:e,...t}){const n=e||document;xc.has(n)||xc.set(n,{});const r=xc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(uR,{root:e,...t})),r[i]}function fR(e,t,n){const r=cR(t);return Gf.set(e,n),r.observe(e),()=>{Gf.delete(e),r.unobserve(e)}}const dR={some:0,all:1};class hR extends Sr{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:dR[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 fR(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(pR(t,n))&&this.startObserver()}unmount(){}}function pR({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const mR={inView:{Feature:hR},tap:{Feature:aR},focus:{Feature:sR},hover:{Feature:oR}};function xw(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 vR(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Ru(e,t,n){const r=e.getProps();return Kh(r,t,n!==void 0?n:r.custom,yR(e),vR(e))}const gR="framerAppearId",wR="data-"+Qh(gR);let SR=ze,Gh=ze;const cr=e=>e*1e3,Tn=e=>e/1e3,_R={current:!1},bw=e=>Array.isArray(e)&&typeof e[0]=="number";function Pw(e){return!!(!e||typeof e=="string"&&Ew[e]||bw(e)||Array.isArray(e)&&e.every(Pw))}const ko=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ew={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ko([0,.65,.55,1]),circOut:ko([.55,0,1,.45]),backIn:ko([.31,.01,.66,-.59]),backOut:ko([.33,1.53,.69,.99])};function Cw(e){if(e)return bw(e)?ko(e):Array.isArray(e)?e.map(Cw):Ew[e]}function xR(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=Cw(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 bR(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Ow=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,PR=1e-7,ER=12;function CR(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Ow(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>PR&&++aCR(o,0,1,e,n);return o=>o===0||o===1?o:Ow(i(o),t,r)}const OR=Ds(.42,0,1,1),TR=Ds(0,0,.58,1),Tw=Ds(.42,0,.58,1),RR=e=>Array.isArray(e)&&typeof e[0]!="number",Rw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kw=e=>t=>1-e(1-t),jw=e=>1-Math.sin(Math.acos(e)),Yh=kw(jw),kR=Rw(Yh),Dw=Ds(.33,1.53,.69,.99),Xh=kw(Dw),jR=Rw(Xh),DR=e=>(e*=2)<1?.5*Xh(e):.5*(2-Math.pow(2,-10*(e-1))),MR={linear:ze,easeIn:OR,easeInOut:Tw,easeOut:TR,circIn:jw,circInOut:kR,circOut:Yh,backIn:Xh,backInOut:jR,backOut:Dw,anticipate:DR},Sy=e=>{if(Array.isArray(e)){Gh(e.length===4);const[t,n,r,i]=e;return Ds(t,n,r,i)}else if(typeof e=="string")return MR[e];return e},Jh=(e,t)=>n=>!!(ks(n)&&DT.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Mw=(e,t,n)=>r=>{if(!ks(r))return r;const[i,o,s,a]=r.match(Ou);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},LR=e=>mr(0,255,e),bc={...ei,transform:e=>Math.round(LR(e))},Nr={test:Jh("rgb","red"),parse:Mw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bc.transform(e)+", "+bc.transform(t)+", "+bc.transform(n)+", "+Uo(Vo.transform(r))+")"};function AR(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 Yf={test:Jh("#"),parse:AR,transform:Nr.transform},Ei={test:Jh("hsl","hue"),parse:Mw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dn.transform(Uo(t))+", "+dn.transform(Uo(n))+", "+Uo(Vo.transform(r))+")"},ht={test:e=>Nr.test(e)||Yf.test(e)||Ei.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Ei.test(e)?Ei.parse(e):Yf.parse(e),transform:e=>ks(e)?e:e.hasOwnProperty("red")?Nr.transform(e):Ei.transform(e)},Me=(e,t,n)=>-n*e+n*t+e;function Pc(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 NR({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=Pc(l,a,e+1/3),o=Pc(l,a,e),s=Pc(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Ec=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},FR=[Yf,Nr,Ei],IR=e=>FR.find(t=>t.test(e));function _y(e){const t=IR(e);let n=t.parse(e);return t===Ei&&(n=NR(n)),n}const Lw=(e,t)=>{const n=_y(e),r=_y(t),i={...n};return o=>(i.red=Ec(n.red,r.red,o),i.green=Ec(n.green,r.green,o),i.blue=Ec(n.blue,r.blue,o),i.alpha=Me(n.alpha,r.alpha,o),Nr.transform(i))};function $R(e){var t,n;return isNaN(e)&&ks(e)&&(((t=e.match(Ou))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(sw))===null||n===void 0?void 0:n.length)||0)>0}const Aw={regex:kT,countKey:"Vars",token:"${v}",parse:ze},Nw={regex:sw,countKey:"Colors",token:"${c}",parse:ht.parse},Fw={regex:Ou,countKey:"Numbers",token:"${n}",parse:ei.parse};function Cc(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 wl(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Cc(n,Aw),Cc(n,Nw),Cc(n,Fw),n}function Iw(e){return wl(e).values}function $w(e){const{values:t,numColors:n,numVars:r,tokenised:i}=wl(e),o=t.length;return s=>{let a=i;for(let l=0;ltypeof e=="number"?0:e;function VR(e){const t=Iw(e);return $w(e)(t.map(zR))}const yr={test:$R,parse:Iw,createTransformer:$w,getAnimatableNone:VR},zw=(e,t)=>n=>`${n>0?t:e}`;function Vw(e,t){return typeof e=="number"?n=>Me(e,t,n):ht.test(e)?Lw(e,t):e.startsWith("var(")?zw(e,t):Bw(e,t)}const Uw=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Vw(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]=Vw(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Bw=(e,t)=>{const n=yr.createTransformer(t),r=wl(e),i=wl(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ur(Uw(r.values,i.values),n):zw(e,t)},gs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xy=(e,t)=>n=>Me(e,t,n);function BR(e){return typeof e=="number"?xy:typeof e=="string"?ht.test(e)?Lw:Bw:Array.isArray(e)?Uw:typeof e=="object"?UR:xy}function WR(e,t,n){const r=[],i=n||BR(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=WR(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(mr(e[0],e[o-1],u)):l}function HR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=gs(0,t,r);e.push(Me(n,1,i))}}function QR(e){const t=[0];return HR(t,e.length-1),t}function qR(e,t){return e.map(n=>n*t)}function KR(e,t){return e.map(()=>t||Tw).splice(0,e.length-1)}function Sl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=RR(r)?r.map(Sy):Sy(r),o={done:!1,value:t[0]},s=qR(n&&n.length===t.length?n:QR(t),e),a=Ww(s,t,{ease:Array.isArray(i)?i:KR(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function Hw(e,t){return t?e*(1e3/t):0}const GR=5;function Qw(e,t,n){const r=Math.max(t-GR,0);return Hw(n-e(r),t-r)}const Oc=.001,YR=.01,by=10,XR=.05,JR=1;function ZR({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;SR(e<=cr(by));let s=1-t;s=mr(XR,JR,s),e=mr(YR,by,Tn(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=Xf(u,s),m=Math.exp(-f);return Oc-d/h*m},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-f),p=Xf(Math.pow(u,2),s);return(-i(u)+Oc>0?-1:1)*((d-h)*m)/p}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Oc+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=tk(i,o,a);if(e=cr(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 ek=12;function tk(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function ik(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Py(e,rk)&&Py(e,nk)){const n=ZR(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function qw({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}=ik(r),h=c?-Tn(c):0,m=l/(2*Math.sqrt(a*u)),p=o-i,_=Tn(Math.sqrt(a/u)),v=Math.abs(p)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let y;if(m<1){const g=Xf(_,m);y=w=>{const x=Math.exp(-m*_*w);return o-x*((h+m*_*p)/g*Math.sin(g*w)+p*Math.cos(g*w))}}else if(m===1)y=g=>o-Math.exp(-_*g)*(p+(h+_*p)*g);else{const g=_*Math.sqrt(m*m-1);y=w=>{const x=Math.exp(-m*_*w),T=Math.min(g*w,300);return o-x*((h+m*_*p)*Math.sinh(T)+g*p*Math.cosh(T))/g}}return{calculatedDuration:d&&f||null,next:g=>{const w=y(g);if(d)s.done=g>=f;else{let x=h;g!==0&&(m<1?x=Qw(y,g,w):x=0);const T=Math.abs(x)<=n,j=Math.abs(o-w)<=t;s.done=T&&j}return s.value=s.done?o:w,s}}}function Ey({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,m=R=>a===void 0?l:l===void 0||Math.abs(a-R)-p*Math.exp(-R/r),g=R=>v+y(R),w=R=>{const I=y(R),N=g(R);d.done=Math.abs(I)<=u,d.value=d.done?v:N};let x,T;const j=R=>{h(d.value)&&(x=R,T=qw({keyframes:[d.value,m(d.value)],velocity:Qw(g,R,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:R=>{let I=!1;return!T&&x===void 0&&(I=!0,w(R),j(R)),x!==void 0&&R>x?T.next(R-x):(!I&&w(R),d)}}}const ok=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Re.update(t,!0),stop:()=>Ln(t),now:()=>ut.isProcessing?ut.timestamp:performance.now()}},Cy=2e4;function Oy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Cy?1/0:t}const sk={decay:Ey,inertia:Ey,tween:Sl,keyframes:Sl,spring:qw};function _l({autoplay:e=!0,delay:t=0,driver:n=ok,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,m=!1,p,_;const v=()=>{_=new Promise(q=>{p=q})};v();let y;const g=sk[i]||Sl;let w;g!==Sl&&typeof r[0]!="number"&&(w=Ww([0,100],r,{clamp:!1}),r=[0,100]);const x=g({...d,keyframes:r});let T;a==="mirror"&&(T=g({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let j="idle",R=null,I=null,N=null;x.calculatedDuration===null&&o&&(x.calculatedDuration=Oy(x));const{calculatedDuration:J}=x;let Y=1/0,K=1/0;J!==null&&(Y=J+s,K=Y*(o+1)-s);let $=0;const F=q=>{if(I===null)return;h>0&&(I=Math.min(I,q)),h<0&&(I=Math.min(q-K/h,I)),R!==null?$=R:$=Math.round(q-I)*h;const te=$-t*(h>=0?1:-1),ne=h>=0?te<0:te>K;$=Math.max(te,0),j==="finished"&&R===null&&($=K);let Z=$,ue=x;if(o){const ge=$/Y;let ke=Math.floor(ge),pe=ge%1;!pe&&ge>=1&&(pe=1),pe===1&&ke--,ke=Math.min(ke,o+1);const Ve=!!(ke%2);Ve&&(a==="reverse"?(pe=1-pe,s&&(pe-=s/Y)):a==="mirror"&&(ue=T));let qe=mr(0,1,pe);$>K&&(qe=a==="reverse"&&Ve?1:0),Z=qe*Y}const me=ne?{done:!1,value:r[0]}:ue.next(Z);w&&(me.value=w(me.value));let{done:Be}=me;!ne&&J!==null&&(Be=h>=0?$>=K:$<=0);const Se=R===null&&(j==="finished"||j==="running"&&Be);return f&&f(me.value),Se&&M(),me},W=()=>{y&&y.stop(),y=void 0},U=()=>{j="idle",W(),p(),v(),I=N=null},M=()=>{j="finished",c&&c(),W(),p()},z=()=>{if(m)return;y||(y=n(F));const q=y.now();l&&l(),R!==null?I=q-R:(!I||j==="finished")&&(I=q),j==="finished"&&v(),N=I,R=null,j="running",y.start()};e&&z();const H={then(q,te){return _.then(q,te)},get time(){return Tn($)},set time(q){q=cr(q),$=q,R!==null||!y||h===0?R=q:I=y.now()-q/h},get duration(){const q=x.calculatedDuration===null?Oy(x):x.calculatedDuration;return Tn(q)},get speed(){return h},set speed(q){q===h||!y||(h=q,H.time=Tn($))},get state(){return j},play:z,pause:()=>{j="paused",R=$},stop:()=>{m=!0,j!=="idle"&&(j="idle",u&&u(),U())},cancel:()=>{N!==null&&F(N),U()},complete:()=>{j="finished"},sample:q=>(I=0,F(q))};return H}function ak(e){let t;return()=>(t===void 0&&(t=e()),t)}const lk=ak(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),uk=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ua=10,ck=2e4,fk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Pw(t.ease);function dk(e,t,{onUpdate:n,onComplete:r,...i}){if(!(lk()&&uk.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(y=>{a=y})};u();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(fk(t,i)){const y=_l({...i,repeat:0,delay:0});let g={done:!1,value:c[0]};const w=[];let x=0;for(;!g.done&&xm.cancel(),_=()=>{Re.update(p),a(),u()};return m.onfinish=()=>{e.set(bR(c,i)),r&&r(),_()},{then(y,g){return l.then(y,g)},attachTimeline(y){return m.timeline=y,m.onfinish=null,ze},get time(){return Tn(m.currentTime||0)},set time(y){m.currentTime=cr(y)},get speed(){return m.playbackRate},set speed(y){m.playbackRate=y},get duration(){return Tn(f)},play:()=>{s||(m.play(),Ln(p))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:y}=m;if(y){const g=_l({...i,autoplay:!1});e.setWithVelocity(g.sample(y-ua).value,g.sample(y).value,ua)}_()},complete:()=>m.finish(),cancel:_}}function hk({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:ze,pause:ze,stop:ze,then:o=>(o(),Promise.resolve()),cancel:ze,complete:ze});return t?_l({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const pk={type:"spring",stiffness:500,damping:25,restSpeed:10},mk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),yk={type:"keyframes",duration:.8},vk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gk=(e,{keyframes:t})=>t.length>2?yk:Zr.has(e)?e.startsWith("scale")?mk(t[1]):pk:vk,Jf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(yr.test(t)||t==="0")&&!t.startsWith("url(")),wk=new Set(["brightness","contrast","saturate","opacity"]);function Sk(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ou)||[];if(!r)return e;const i=n.replace(r,"");let o=wk.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const _k=/([a-z-]*)\(.*?\)/g,Zf={...yr,getAnimatableNone:e=>{const t=e.match(_k);return t?t.map(Sk).join(" "):e}},xk={...aw,color:ht,backgroundColor:ht,outlineColor:ht,fill:ht,stroke:ht,borderColor:ht,borderTopColor:ht,borderRightColor:ht,borderBottomColor:ht,borderLeftColor:ht,filter:Zf,WebkitFilter:Zf},Zh=e=>xk[e];function Kw(e,t){let n=Zh(e);return n!==Zf&&(n=yr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Gw=e=>/^0[^.\s]+$/.test(e);function bk(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Gw(e)}function Pk(e,t,n,r){const i=Jf(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=Yw(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-cr(s);const l=Pk(t,e,n,o),u=l[0],c=l[l.length-1],f=Jf(e,u),d=Jf(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Ek(o)||(h={...h,...gk(e,h)}),h.duration&&(h.duration=cr(h.duration)),h.repeatDelay&&(h.repeatDelay=cr(h.repeatDelay)),!f||!d||_R.current||o.type===!1)return hk(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=dk(t,e,h);if(m)return m}return _l(h)};function xl(e){return!!(bt(e)&&e.add)}const Ck=e=>/^\-?\d*\.?\d+$/.test(e);function tp(e,t){e.indexOf(t)===-1&&e.push(t)}function np(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class rp{constructor(){this.subscriptions=[]}add(t){return tp(this.subscriptions,t),()=>np(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 Tk{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}=ut;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Re.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=()=>Re.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=Ok(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new rp);const r=this.events[t].add(n);return t==="change"?()=>{r(),Re.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?Hw(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 Gi(e,t){return new Tk(e,t)}const Xw=e=>t=>t.test(e),Rk={test:e=>e==="auto",parse:e=>e},Jw=[ei,re,dn,Vn,LT,MT,Rk],_o=e=>Jw.find(Xw(e)),kk=[...Jw,ht,yr],jk=e=>kk.find(Xw(e));function Dk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gi(n))}function Mk(e,t){const n=Ru(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=KT(o[s]);Dk(e,s,a)}}function Lk(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(p)}return s&&Promise.all(u).then(()=>{s&&Mk(e,s)}),u}function ed(e,t,n={}){const r=Ru(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Zw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return Ik(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 Ik(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($k).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(ed(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function $k(e,t){return e.sortNodePosition(t)}function zk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ed(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ed(e,t,n);else{const i=typeof t=="function"?Ru(e,t,n.custom):t;r=Promise.all(Zw(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Vk=[...Ih].reverse(),Uk=Ih.length;function Bk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>zk(e,n,r)))}function Wk(e){let t=Bk(e);const n=Qk();let r=!0;const i=(l,u)=>{const c=Ru(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 m={},p=1/0;for(let v=0;vp&&x;const N=Array.isArray(w)?w:[w];let J=N.reduce(i,{});T===!1&&(J={});const{prevResolvedValues:Y={}}=g,K={...Y,...J},$=F=>{I=!0,h.delete(F),g.needsAnimating[F]=!0};for(const F in K){const W=J[F],U=Y[F];m.hasOwnProperty(F)||(W!==U?gl(W)&&gl(U)?!xw(W,U)||R?$(F):g.protectedKeys[F]=!0:W!==void 0?$(F):h.add(F):W!==void 0&&h.has(F)?$(F):g.protectedKeys[F]=!0)}g.prevProp=w,g.prevResolvedValues=J,g.isActive&&(m={...m,...J}),r&&e.blockInitialAnimation&&(I=!1),I&&!j&&d.push(...N.map(F=>({animation:F,options:{type:y,...l}})))}if(h.size){const v={};h.forEach(y=>{const g=e.getBaseTarget(y);g!==void 0&&(v[y]=g)}),d.push({animation:v})}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 m;return(m=h.animationState)===null||m===void 0?void 0:m.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 Hk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xw(t,e):!1}function Cr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qk(){return{animate:Cr(!0),whileInView:Cr(),whileHover:Cr(),whileTap:Cr(),whileDrag:Cr(),whileFocus:Cr(),exit:Cr()}}class qk extends Sr{constructor(t){super(t),t.animationState||(t.animationState=Wk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Eu(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 Kk=0;class Gk extends Sr{constructor(){super(...arguments),this.id=Kk++}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 Yk={animation:{Feature:qk},exit:{Feature:Gk}},Ty=(e,t)=>Math.abs(e-t);function Xk(e,t){const n=Ty(e.x,t.x),r=Ty(e.y,t.y);return Math.sqrt(n**2+r**2)}class eS{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=Rc(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=Xk(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=ut;this.history.push({...d,timestamp:h});const{onStart:m,onMove:p}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Tc(c,this.transformPagePoint),Re.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Rc(u.type==="pointercancel"?this.lastMoveEventInfo:Tc(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!vw(t))return;this.handlers=n,this.transformPagePoint=r;const i=Tu(t),o=Tc(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=ut;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,Rc(o,this.history)),this.removeListeners=ur(On(window,"pointermove",this.handlePointerMove),On(window,"pointerup",this.handlePointerUp),On(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ln(this.updatePoint)}}function Tc(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 Rc({point:e},t){return{point:e,delta:Ry(e,tS(t)),offset:Ry(e,Jk(t)),velocity:Zk(t,.1)}}function Jk(e){return e[0]}function tS(e){return e[e.length-1]}function Zk(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=tS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>cr(t)));)n--;if(!r)return{x:0,y:0};const o=Tn(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 jt(e){return e.max-e.min}function td(e,t=0,n=.01){return Math.abs(e-t)<=n}function ky(e,t,n,r=.5){e.origin=r,e.originPoint=Me(t.min,t.max,e.origin),e.scale=jt(n)/jt(t),(td(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Me(n.min,n.max,e.origin)-e.originPoint,(td(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bo(e,t,n,r){ky(e.x,t.x,n.x,r?r.originX:void 0),ky(e.y,t.y,n.y,r?r.originY:void 0)}function jy(e,t,n){e.min=n.min+t.min,e.max=e.min+jt(t)}function e2(e,t,n){jy(e.x,t.x,n.x),jy(e.y,t.y,n.y)}function Dy(e,t,n){e.min=t.min-n.min,e.max=e.min+jt(t)}function Wo(e,t,n){Dy(e.x,t.x,n.x),Dy(e.y,t.y,n.y)}function t2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Me(n,e,r.max):Math.min(e,n)),e}function My(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 n2(e,{top:t,left:n,bottom:r,right:i}){return{x:My(e.x,n,i),y:My(e.y,t,r)}}function Ly(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)),mr(0,1,n)}function o2(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 nd=.35;function s2(e=nd){return e===!1?e=0:e===!0&&(e=nd),{x:Ay(e,"left","right"),y:Ay(e,"top","bottom")}}function Ay(e,t,n){return{min:Ny(e,t),max:Ny(e,n)}}function Ny(e,t){return typeof e=="number"?e:e[t]||0}const Fy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ci=()=>({x:Fy(),y:Fy()}),Iy=()=>({min:0,max:0}),We=()=>({x:Iy(),y:Iy()});function sn(e){return[e("x"),e("y")]}function nS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function a2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function l2(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 kc(e){return e===void 0||e===1}function rd({scale:e,scaleX:t,scaleY:n}){return!kc(e)||!kc(t)||!kc(n)}function kr(e){return rd(e)||rS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function rS(e){return $y(e.x)||$y(e.y)}function $y(e){return e&&e!=="0%"}function bl(e,t,n){const r=e-n,i=t*r;return n+i}function zy(e,t,n,r,i){return i!==void 0&&(e=bl(e,i,r)),bl(e,n,r)+t}function id(e,t=0,n=1,r,i){e.min=zy(e.min,t,n,r,i),e.max=zy(e.max,t,n,r,i)}function iS(e,{x:t,y:n}){id(e.x,t.translate,t.scale,t.originPoint),id(e.y,n.translate,n.scale,n.originPoint)}function u2(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 Wn(e,t){e.min=e.min+t,e.max=e.max+t}function Uy(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Me(e.min,e.max,o);id(e,t[n],t[r],s,t.scale)}const c2=["x","scaleX","originX"],f2=["y","scaleY","originY"];function Oi(e,t){Uy(e.x,t,c2),Uy(e.y,t,f2)}function oS(e,t){return nS(l2(e.getBoundingClientRect(),t))}function d2(e,t,n){const r=oS(e,n),{scroll:i}=t;return i&&(Wn(r.x,i.offset.x),Wn(r.y,i.offset.y)),r}const h2=new WeakMap;class p2{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=We(),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(Tu(l,"page").point)},o=(l,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ww(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),sn(m=>{let p=this.getAxisMotionValue(m).get()||0;if(dn.test(p)){const{projection:_}=this.visualElement;if(_&&_.layout){const v=_.layout.layoutBox[m];v&&(p=jt(v)*(parseFloat(p)/100))}}this.originPoint[m]=p}),d&&Re.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:m}=u;if(f&&this.currentDirection===null){this.currentDirection=m2(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),h&&h(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new eS(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&&Re.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||!ca(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=t2(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&&Pi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=n2(r.layoutBox,t):this.constraints=!1,this.elastic=s2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&sn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=o2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=d2(r,i.root,this.visualElement.getTransformPagePoint());let s=r2(i.layout.layoutBox,o);if(n){const a=n(a2(s));this.hasMutatedConstraints=!!a,a&&(s=nS(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=sn(c=>{if(!ca(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,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ep(t,r,0,n))}stopAnimation(){sn(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){sn(n=>{const{drag:r}=this.getProps();if(!ca(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]-Me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};sn(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=i2({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(),sn(s=>{if(!ca(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Me(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;h2.set(this.visualElement,this);const t=this.visualElement.current,n=On(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Pi(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=bn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(sn(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=nd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function ca(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function m2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class y2 extends Sr{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new p2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const By=e=>(t,n)=>{e&&Re.update(()=>e(t,n))};class v2 extends Sr{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new eS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:By(t),onStart:By(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Re.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=On(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 g2(){const e=P.useContext(bu);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 Wy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(re.test(e))e=parseFloat(e);else return e;const n=Wy(e,t.target.x),r=Wy(e,t.target.y);return`${n}% ${r}%`}},w2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=yr.parse(e);if(i.length>5)return r;const o=yr.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=Me(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 S2 extends Ye.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;CT(_2),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()||Re.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 sS(e){const[t,n]=g2(),r=P.useContext(zh);return Ye.createElement(S2,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(nw),isPresent:t,safeToRemove:n})}const _2={borderRadius:{...xo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xo,borderTopRightRadius:xo,borderBottomLeftRadius:xo,borderBottomRightRadius:xo,boxShadow:w2},aS=["TopLeft","TopRight","BottomLeft","BottomRight"],x2=aS.length,Hy=e=>typeof e=="string"?parseFloat(e):e,Qy=e=>typeof e=="number"||re.test(e);function b2(e,t,n,r,i,o){i?(e.opacity=Me(0,n.opacity!==void 0?n.opacity:1,P2(r)),e.opacityExit=Me(t.opacity!==void 0?t.opacity:1,0,E2(r))):o&&(e.opacity=Me(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 Ky(e,t){e.min=t.min,e.max=t.max}function Ft(e,t){Ky(e.x,t.x),Ky(e.y,t.y)}function Gy(e,t,n,r,i){return e-=t,e=bl(e,1/n,r),i!==void 0&&(e=bl(e,1/i,r)),e}function C2(e,t=0,n=1,r=.5,i,o=e,s=e){if(dn.test(t)&&(t=parseFloat(t),t=Me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Me(o.min,o.max,r);e===o&&(a-=t),e.min=Gy(e.min,t,n,a,i),e.max=Gy(e.max,t,n,a,i)}function Yy(e,t,[n,r,i],o,s){C2(e,t[n],t[r],t[i],t.scale,o,s)}const O2=["x","scaleX","originX"],T2=["y","scaleY","originY"];function Xy(e,t,n,r){Yy(e.x,t,O2,n?n.x:void 0,r?r.x:void 0),Yy(e.y,t,T2,n?n.y:void 0,r?r.y:void 0)}function Jy(e){return e.translate===0&&e.scale===1}function uS(e){return Jy(e.x)&&Jy(e.y)}function R2(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 cS(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 Zy(e){return jt(e.x)/jt(e.y)}class k2{constructor(){this.members=[]}add(t){tp(this.members,t),t.scheduleRender()}remove(t){if(np(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 ev(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 j2=(e,t)=>e.depth-t.depth;class D2{constructor(){this.children=[],this.isDirty=!1}add(t){tp(this.children,t),this.isDirty=!0}remove(t){np(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(j2),this.isDirty=!1,this.children.forEach(t)}}function M2(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ln(r),e(o-t))};return Re.read(r,!0),()=>Ln(r)}function L2(e){window.MotionDebug&&window.MotionDebug.record(e)}function A2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function N2(e,t,n){const r=bt(e)?e:Gi(e);return r.start(ep("",r,t,n)),r.animation}const tv=["","X","Y","Z"],nv=1e3;let F2=0;const jr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=F2++,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=()=>{jr.totalNodes=jr.resolvedTargetDeltas=jr.recalculatedProjection=0,this.nodes.forEach(z2),this.nodes.forEach(H2),this.nodes.forEach(Q2),this.nodes.forEach(V2),L2(jr)},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=M2(d,250),Ma.hasAnimatedSinceResize&&(Ma.hasAnimatedSinceResize=!1,this.nodes.forEach(iv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||X2,{onLayoutAnimationStart:_,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!cS(this.targetLayout,m)||h,g=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,g);const w={...Yw(p,"layout"),onPlay:_,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||iv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,Ln(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(q2),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(U2),this.sharedNodes.forEach(K2)}scheduleUpdateProjection(){Re.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Re.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 x=w/1e3;ov(f.x,s.x,x),ov(f.y,s.y,x),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),G2(this.relativeTarget,this.relativeTargetOrigin,d,x),g&&R2(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=We()),Ft(g,this.relativeTarget)),p&&(this.animationValues=c,b2(c,u,this.latestValues,x,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},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&&(Ln(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Re.update(()=>{Ma.hasAnimatedSinceResize=!0,this.currentAnimation=N2(0,nv,{...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(nv),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&&dS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||We();const f=jt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=jt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Ft(a,l),Oi(a,c),Bo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new k2),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(rv),this.root.sharedNodes.clear()}}}function I2(e){e.updateLayout()}function $2(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"?sn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=jt(d);d.min=r[f].min,d.max=d.min+h}):dS(o,n.layoutBox,r)&&sn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=jt(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=Ci();Bo(a,r,n.layoutBox);const l=Ci();s?Bo(l,e.applyTransform(i,!0),n.measuredBox):Bo(l,r,n.layoutBox);const u=!uS(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 m=We();Wo(m,n.layoutBox,d.layoutBox);const p=We();Wo(p,r,h.layoutBox),cS(m,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,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 z2(e){jr.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 V2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function U2(e){e.clearSnapshot()}function rv(e){e.clearMeasurements()}function B2(e){e.isLayoutDirty=!1}function W2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function H2(e){e.resolveTargetDelta()}function Q2(e){e.calcProjection()}function q2(e){e.resetRotation()}function K2(e){e.removeLeadSnapshot()}function ov(e,t,n){e.translate=Me(t.translate,0,n),e.scale=Me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sv(e,t,n,r){e.min=Me(t.min,n.min,r),e.max=Me(t.max,n.max,r)}function G2(e,t,n,r){sv(e.x,t.x,n.x,r),sv(e.y,t.y,n.y,r)}function Y2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const X2={duration:.45,ease:[.4,0,.1,1]},av=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),lv=av("applewebkit/")&&!av("chrome/")?Math.round:ze;function uv(e){e.min=lv(e.min),e.max=lv(e.max)}function J2(e){uv(e.x),uv(e.y)}function dS(e,t,n){return e==="position"||e==="preserve-aspect"&&!td(Zy(t),Zy(n),.2)}const Z2=fS({attachResizeListener:(e,t)=>bn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jc={current:void 0},hS=fS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){const e=new Z2({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ej={pan:{Feature:v2},drag:{Feature:y2,ProjectionNode:hS,MeasureLayout:sS}},tj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function nj(e){const t=tj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function od(e,t,n=1){const[r,i]=nj(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():Kf(i)?od(i,t,n+1):i}function rj(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(!Kf(o))return;const s=od(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Kf(o))continue;const s=od(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const ij=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pS=e=>ij.has(e),oj=e=>Object.keys(e).some(pS),cv=e=>e===ei||e===re,fv=(e,t)=>parseFloat(e.split(", ")[t]),dv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return fv(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?fv(o[1],e):0}},sj=new Set(["x","y","z"]),aj=Rs.filter(e=>!sj.has(e));function lj(e){const t=[];return aj.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 Yi={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:dv(4,13),y:dv(5,14)};Yi.translateX=Yi.x;Yi.translateY=Yi.y;const uj=(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]=Yi[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]=Yi[u](l,o)}),e},cj=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(pS);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=_o(c);const d=t[l];let h;if(gl(d)){const m=d.length,p=d[0]===null?1:0;c=d[p],f=_o(c);for(let _=p;_=0?window.pageYOffset:null,u=uj(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 fj(e,t,n,r){return oj(t)?cj(e,t,n,r):{target:t,transitionEnd:r}}const dj=(e,t,n,r)=>{const i=rj(e,t,r);return t=i.target,r=i.transitionEnd,fj(e,t,n,r)},sd={current:null},mS={current:!1};function hj(){if(mS.current=!0,!!Pu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sd.current=e.matches;e.addListener(t),t()}else sd.current=!1}function pj(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(bt(o))e.addValue(i,o),xl(r)&&r.add(i);else if(bt(s))e.addValue(i,Gi(o,{owner:e})),xl(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,Gi(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const hv=new WeakMap,yS=Object.keys(vs),mj=yS.length,pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],yj=$h.length;class vj{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=()=>Re.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=Cu(n),this.isVariantNode=tw(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&&bt(d)&&(d.set(a[f],!1),xl(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,hv.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)),mS.current||hj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hv.delete(this.current),this.projection&&this.projection.unmount(),Ln(this.notifyUpdate),Ln(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=Zr.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Re.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):We()}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=Gi(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=Kh(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&&!bt(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 rp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vS extends vj{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=Nk(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){Lk(this,r,s);const a=dj(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function gj(e){return window.getComputedStyle(e)}class wj extends vS{readValueFromInstance(t,n){if(Zr.has(n)){const r=Zh(n);return r&&r.default||0}else{const r=gj(t),i=(ow(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return oS(t,n)}build(t,n,r,i){Uh(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return qh(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;bt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){fw(t,n,r,i)}}class Sj extends vS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zr.has(n)){const r=Zh(n);return r&&r.default||0}return n=dw.has(n)?n:Qh(n),t.getAttribute(n)}measureInstanceViewportBox(){return We()}scrapeMotionValuesFromProps(t,n){return pw(t,n)}build(t,n,r,i){Wh(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){hw(t,n,r,i)}mount(t){this.isSVGTag=Hh(t.tagName),super.mount(t)}}const _j=(e,t)=>Vh(e)?new Sj(t,{enableHardwareAcceleration:!1}):new wj(t,{enableHardwareAcceleration:!0}),xj={layout:{ProjectionNode:hS,MeasureLayout:sS}},bj={...Yk,...mR,...ej,...xj},gS=PT((e,t)=>ZT(e,t,bj,_j));function wS(){const e=P.useRef(!1);return ml(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Pj(){const e=wS(),[t,n]=P.useState(0),r=P.useCallback(()=>{e.current&&n(t+1)},[t]);return[P.useCallback(()=>Re.postRender(r),[r]),t]}class Ej 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 Cj({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(` +`)}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[iy]=this[iy]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=So(s);r[a]||(bO(i,s),r[a]=!0)}return V.isArray(t)?t.forEach(o):o(t),this}}Su.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.freezeMethods(Su.prototype);V.freezeMethods(Su);const Cn=Su;function gc(e,t){const n=this||Ah,r=t||n,i=Cn.from(r.headers);let o=r.data;return V.forEach(e,function(a){o=a.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function K1(e){return!!(e&&e.__CANCEL__)}function Rs(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(Rs,de,{__CANCEL__:!0});function PO(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const EO=ln.isStandardBrowserEnv?function(){return{write:function(n,r,i,o,s,a){const l=[];l.push(n+"="+encodeURIComponent(r)),V.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),V.isString(o)&&l.push("path="+o),V.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 CO(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function OO(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function G1(e,t){return e&&!CO(t)?OO(e,t):t}const RO=ln.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=V.isString(s)?i(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function TO(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kO(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 jO=typeof XMLHttpRequest<"u",DO=jO&&function(e){return new Promise(function(n,r){let i=e.data;const o=Cn.from(e.headers).normalize(),s=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}V.isFormData(i)&&(ln.isStandardBrowserEnv||ln.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+m))}const c=G1(e.baseURL,e.url);u.open(e.method.toUpperCase(),H1(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const h=Cn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:e,request:u};PO(function(v){n(v),l()},function(v){r(v),l()},p),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 de("Request aborted",de.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const p=e.transitional||q1;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new de(m,p.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,u)),u=null},ln.isStandardBrowserEnv){const h=(e.withCredentials||RO(c))&&e.xsrfCookieName&&EO.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}i===void 0&&o.setContentType(null),"setRequestHeader"in u&&V.forEach(o.toJSON(),function(m,p){u.setRequestHeader(p,m)}),V.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),s&&s!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",oy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",oy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=h=>{u&&(r(!h||h.type?new Rs(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=TO(c);if(d&&ln.protocols.indexOf(d)===-1){r(new de("Unsupported protocol "+d+":",de.ERR_BAD_REQUEST,e));return}u.send(i||null)})},Ra={http:rO,xhr:DO};V.forEach(Ra,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const MO={getAdapter:e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let i=0;ie instanceof Cn?e.toJSON():e;function Ki(e,t){t=t||{};const n={};function r(u,c,f){return V.isPlainObject(u)&&V.isPlainObject(c)?V.merge.call({caseless:f},u,c):V.isPlainObject(c)?V.merge({},c):V.isArray(c)?c.slice():c}function i(u,c,f){if(V.isUndefined(c)){if(!V.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!V.isUndefined(c))return r(void 0,c)}function s(u,c){if(V.isUndefined(c)){if(!V.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(ay(u),ay(c),!0)};return V.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);V.isUndefined(d)&&f!==a||(n[c]=d)}),n}const Y1="1.4.0",Nh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Nh[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ly={};Nh.transitional=function(t,n,r){function i(o,s){return"[Axios v"+Y1+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,a)=>{if(t===!1)throw new de(i(s," has been removed"+(n?" in "+n:"")),de.ERR_DEPRECATED);return n&&!ly[s]&&(ly[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 LO(e,t,n){if(typeof e!="object")throw new de("options must be an object",de.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 de("option "+o+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new de("Unknown option "+o,de.ERR_BAD_OPTION)}}const qf={assertOptions:LO,validators:Nh},zn=qf.validators;class hl{constructor(t){this.defaults=t,this.interceptors={request:new ry,response:new ry}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&qf.assertOptions(r,{silentJSONParsing:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1),i!=null&&(V.isFunction(i)?n.paramsSerializer={serialize:i}:qf.assertOptions(i,{encode:zn.function,serialize:zn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s;s=o&&V.merge(o.common,o[n.method]),s&&V.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=Cn.concat(s,o);const a=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const m=[sy.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,u),d=m.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 Rs(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 Fh(function(i){t=i}),cancel:t}}}const AO=Fh;function NO(e){return function(n){return e.apply(null,n)}}function FO(e){return V.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 IO=Qf;function X1(e){const t=new Ta(e),n=M1(Ta.prototype.request,t);return V.extend(n,Ta.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return X1(Ki(e,i))},n}const Je=X1(Ah);Je.Axios=Ta;Je.CanceledError=Rs;Je.CancelToken=AO;Je.isCancel=K1;Je.VERSION=Y1;Je.toFormData=gu;Je.AxiosError=de;Je.Cancel=Je.CanceledError;Je.all=function(t){return Promise.all(t)};Je.spread=NO;Je.isAxiosError=FO;Je.mergeConfig=Ki;Je.AxiosHeaders=Cn;Je.formToJSON=e=>Q1(V.isHTMLForm(e)?new FormData(e):e);Je.HttpStatusCode=IO;Je.default=Je;const $O=Je,zO="https://api.themoviedb.org/3",VO="eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiI2YTNhYzU1Yzk1ODQ2YzFjZjQ1NGQ2ZDE1MzdhNzQ2NyIsIm5iZiI6MTcyMDkwMjM5OC4zNDExNjYsInN1YiI6IjYyYmQ4ZGNiMDk3YzQ5MGJhNDhhN2I1ZSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.0rhaIUIqhEbmxrxmZ36F_PzqdlKfPE8FJaA4dxSPmrw",_u=async(e,t={})=>{const n={method:"GET",url:zO+e,params:t,headers:{accept:"application/json",Authorization:`Bearer ${VO}`}};return(await $O.request(n)).data},ka=D1("genresList/fetchAllGenres",async()=>{let e=[],t=["tv","movie"];try{return t.forEach(n=>{e.push(_u(`/genre/${n}/list`))}),await Promise.all(e)}catch(n){return n.response.data.status_message}}),UO={loading:"",error:"",all:{},tv:[],movie:[]},BO=j1({name:"genresList",initialState:UO,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"})}}),WO=BO.reducer,ja=D1("main/fetchUrl",async()=>_u("/configuration")),HO={url:null,loading:"loading",error:""},qO=j1({name:"main",initialState:HO,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"})}}),QO=qO.reducer,KO=(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},IL=e=>{const t=Math.floor(e/60),n=e%60;return`${t}h${n>0?` ${n}m`:""}`},GO=(e,t)=>{let n=null;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=null,e(r)},t)}},$L=(e,t,n,r)=>r==="up"?e[n].toLowerCase().localeCompare(t[n].toLowerCase()):r==="down"?t[n].toLowerCase().localeCompare(e[n].toLowerCase()):0,zL=(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,VL=(e,t,n,r)=>r==="up"?e[n]-t[n]:r==="down"?t[n]-e[n]:0,YO="_btn_19zyr_1",XO="_btn_theme_19zyr_32",JO="_btn_up_19zyr_44",ZO="_close_19zyr_61",eR="_arrow_19zyr_100",pl={btn:YO,btn_theme:XO,btn_up:JO,close:ZO,arrow:eR,"btn-wrapper":"_btn-wrapper_19zyr_104","sort-btn":"_sort-btn_19zyr_114","sort-btn_inactive":"_sort-btn_inactive_19zyr_134","sort-btn_clear":"_sort-btn_clear_19zyr_137","sort-btn__img":"_sort-btn__img_19zyr_148"},tR=()=>{const[e,t]=P.useState(),n=()=>{window.scrollTo(0,0)},r=GO(()=>{t(window.scrollY>1e3)},200);return P.useEffect(()=>(window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r))),E.jsx(E.Fragment,{children:e?E.jsx("button",{className:`${pl.btn} ${pl.btn_up}`,tabIndex:"1",onClick:n,children:E.jsx("svg",{baseProfile:"tiny",height:"24",version:"1.2",width:"24",xmlns:"http://www.w3.org/2000/svg",children:E.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})},nR=window.matchMedia("(prefers-color-scheme: dark)").matches,uy=nR?"dark":"light",rR=()=>{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||uy,t(e||uy)},[e]),E.jsx("button",{className:`${pl.btn} ${pl.btn_theme}`,tabIndex:"1",onClick:n,children:e==="light"?E.jsx("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:E.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"})}):E.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:[E.jsx("circle",{cx:"12",cy:"12",r:"5"}),E.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"})]})})},iR=[{icon:E.jsxs("svg",{viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:[E.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"}),E.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:E.jsxs("svg",{viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M0 0h32v32H0z",fill:"none"}),E.jsxs("g",{"data-name":"Instagram",fill:"currentColor",children:[E.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"}),E.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"}),E.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:E.jsxs("svg",{viewBox:"0 0 1000 1000",xmlns:"http://www.w3.org/2000/svg",children:[E.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"}),E.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)"}),E.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:E.jsxs("svg",{version:"1.1",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:[E.jsx("path",{d:"M273 233.8v-.7c-.1.2-.3.5-.5.7h.5z"}),E.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/"}],oR="_footer_oqygq_1",sR="_wrapper_oqygq_7",aR="_nav_oqygq_12",lR="_nav__item_oqygq_36",uR="_info_oqygq_63",cR="_social__icons_oqygq_76",fR="_icon_oqygq_82",si={footer:oR,wrapper:sR,nav:aR,nav__item:lR,info:uR,social__icons:cR,icon:fR},dR=["Terms Of Use","Privacy-Policy","About","Blog","FAQ"],hR=()=>E.jsx("footer",{className:si.footer,children:E.jsxs("div",{className:"wrapper",children:[E.jsx("ul",{className:si.nav,children:dR.map(e=>E.jsx("li",{className:si.nav__item,children:E.jsx(sr,{children:e})},e))}),E.jsx("div",{className:si.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."}),E.jsx("ul",{className:si.social__icons,children:iR.map(e=>E.jsx(sr,{className:si.icon,rel:"noopener noreferrer",target:"_blank",to:e.path,children:e.icon},e.path))})]})}),cy=(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])},pR=(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])},mR=()=>{const{pathname:e}=Jr(),[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),m=()=>i(!1);return cy(t,u,c,h),cy(r,f,d,m),pR(a,t,s,l),{menuMobileRef:u,menuBtnRef:c,searchRef:f,searchBtnRef:d,isMenuOpen:t,setIsMenuOpen:n,isSearchOpen:r,setIsSearchOpen:i,show:o}},yR="/movix/assets/burger_menu-966ba508.svg",fy="/movix/assets/close_menu-de2cc81a.svg",J1="/movix/assets/search-f9f75985.svg",Z1=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),xu=P.createContext({}),bu=P.createContext(null),Pu=typeof document<"u",ml=Pu?P.useLayoutEffect:P.useEffect,ew=P.createContext({strict:!1});function vR(e,t,n,r){const{visualElement:i}=P.useContext(xu),o=P.useContext(ew),s=P.useContext(bu),a=P.useContext(Z1).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)}),ml(()=>{u&&u.render()}),P.useEffect(()=>{u&&u.updateFeatures()}),(window.HandoffAppearAnimations?ml:P.useEffect)(()=>{u&&u.animationState&&u.animationState.animateChanges()}),u}function Pi(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gR(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):Pi(n)&&(n.current=r))},[t])}function ys(e){return typeof e=="string"||Array.isArray(e)}function Eu(e){return typeof e=="object"&&typeof e.start=="function"}const Ih=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$h=["initial",...Ih];function Cu(e){return Eu(e.animate)||$h.some(t=>ys(e[t]))}function tw(e){return!!(Cu(e)||e.variants)}function wR(e,t){if(Cu(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 SR(e){const{initial:t,animate:n}=wR(e,P.useContext(xu));return P.useMemo(()=>({initial:t,animate:n}),[dy(t),dy(n)])}function dy(e){return Array.isArray(e)?e.join(" "):e}const hy={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 hy)vs[e]={isEnabled:t=>hy[e].some(n=>!!t[n])};function _R(e){for(const t in e)vs[t]={...vs[t],...e[t]}}const zh=P.createContext({}),nw=P.createContext({}),xR=Symbol.for("motionComponentSymbol");function bR({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&_R(e);function o(a,l){let u;const c={...P.useContext(Z1),...a,layoutId:PR(a)},{isStatic:f}=c,d=SR(a),h=r(a,f);if(!f&&Pu){d.visualElement=vR(i,h,c,t);const m=P.useContext(nw),p=P.useContext(ew).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,p,e,m))}return P.createElement(xu.Provider,{value:d},u&&d.visualElement?P.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,a,gR(h,d.visualElement,l),h,f,d.visualElement))}const s=P.forwardRef(o);return s[xR]=i,s}function PR({layoutId:e}){const t=P.useContext(zh).id;return t&&e!==void 0?t+"-"+e:e}function ER(e){function t(r,i={}){return bR(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 CR=["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 Vh(e){return typeof e!="string"||e.includes("-")?!1:!!(CR.indexOf(e)>-1||/[A-Z]/.test(e))}const yl={};function OR(e){Object.assign(yl,e)}const Ts=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zr=new Set(Ts);function rw(e,{layout:t,layoutId:n}){return Zr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!yl[e]||e==="opacity")}const bt=e=>!!(e&&e.getVelocity),RR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TR=Ts.length;function kR(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;st=>typeof t=="string"&&t.startsWith(e),ow=iw("--"),Kf=iw("var(--"),jR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,DR=(e,t)=>t&&typeof e=="number"?t.transform(e):e,mr=(e,t,n)=>Math.min(Math.max(n,e),t),ei={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vo={...ei,transform:e=>mr(0,1,e)},aa={...ei,default:1},Uo=e=>Math.round(e*1e5)/1e5,Ou=/(-)?([\d]*\.?[\d])+/g,sw=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,MR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ks(e){return typeof e=="string"}const js=e=>({test:t=>ks(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vn=js("deg"),dn=js("%"),re=js("px"),LR=js("vh"),AR=js("vw"),py={...dn,parse:e=>dn.parse(e)/100,transform:e=>dn.transform(e*100)},my={...ei,transform:Math.round},aw={borderWidth:re,borderTopWidth:re,borderRightWidth:re,borderBottomWidth:re,borderLeftWidth:re,borderRadius:re,radius:re,borderTopLeftRadius:re,borderTopRightRadius:re,borderBottomRightRadius:re,borderBottomLeftRadius:re,width:re,maxWidth:re,height:re,maxHeight:re,size:re,top:re,right:re,bottom:re,left:re,padding:re,paddingTop:re,paddingRight:re,paddingBottom:re,paddingLeft:re,margin:re,marginTop:re,marginRight:re,marginBottom:re,marginLeft:re,rotate:Vn,rotateX:Vn,rotateY:Vn,rotateZ:Vn,scale:aa,scaleX:aa,scaleY:aa,scaleZ:aa,skew:Vn,skewX:Vn,skewY:Vn,distance:re,translateX:re,translateY:re,translateZ:re,x:re,y:re,z:re,perspective:re,transformPerspective:re,opacity:Vo,originX:py,originY:py,originZ:re,zIndex:my,fillOpacity:Vo,strokeOpacity:Vo,numOctaves:my};function Uh(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(ow(f)){o[f]=d;continue}const h=aw[f],m=DR(d,h);if(Zr.has(f)){if(l=!0,s[f]=m,!c)continue;d!==(h.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,a[f]=m):i[f]=m}if(t.transform||(l||r?i.transform=kR(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 Bh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function lw(e,t,n){for(const r in t)!bt(t[r])&&!rw(r,n)&&(e[r]=t[r])}function NR({transformTemplate:e},t,n){return P.useMemo(()=>{const r=Bh();return Uh(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function FR(e,t,n){const r=e.style||{},i={};return lw(i,r,e),Object.assign(i,NR(e,t,n)),e.transformValues?e.transformValues(i):i}function IR(e,t,n){const r={},i=FR(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 $R=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 vl(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||$R.has(e)}let uw=e=>!vl(e);function zR(e){e&&(uw=t=>t.startsWith("on")?!vl(t):e(t))}try{zR(require("@emotion/is-prop-valid").default)}catch{}function VR(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(uw(i)||n===!0&&vl(i)||!t&&!vl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function yy(e,t,n){return typeof e=="string"?e:re.transform(t+n*e)}function UR(e,t,n){const r=yy(t,e.x,e.width),i=yy(n,e.y,e.height);return`${r} ${i}`}const BR={offset:"stroke-dashoffset",array:"stroke-dasharray"},WR={offset:"strokeDashoffset",array:"strokeDasharray"};function HR(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?BR:WR;e[o.offset]=re.transform(-r);const s=re.transform(t),a=re.transform(n);e[o.array]=`${s} ${a}`}function Wh(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,f,d){if(Uh(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:m,dimensions:p}=e;h.transform&&(p&&(m.transform=h.transform),delete h.transform),p&&(i!==void 0||o!==void 0||m.transform)&&(m.transformOrigin=UR(p,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&&HR(h,s,a,l,!1)}const cw=()=>({...Bh(),attrs:{}}),Hh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qR(e,t,n,r){const i=P.useMemo(()=>{const o=cw();return Wh(o,t,{enableHardwareAcceleration:!1},Hh(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};lw(o,e.style,e),i.style={...o,...i.style}}return i}function QR(e=!1){return(n,r,i,{latestValues:o},s)=>{const l=(Vh(n)?qR:IR)(r,o,s,n),c={...VR(r,typeof n=="string",e),...l,ref:i},{children:f}=r,d=P.useMemo(()=>bt(f)?f.get():f,[f]);return P.createElement(n,{...c,children:d})}}const qh=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function fw(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 dw=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 hw(e,t,n,r){fw(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(dw.has(i)?i:qh(i),t.attrs[i])}function Qh(e,t){const{style:n}=e,r={};for(const i in n)(bt(n[i])||t.style&&bt(t.style[i])||rw(i,e))&&(r[i]=n[i]);return r}function pw(e,t){const n=Qh(e,t);for(const r in e)if(bt(e[r])||bt(t[r])){const i=Ts.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=e[r]}return n}function Kh(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 mw(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const gl=e=>Array.isArray(e),KR=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),GR=e=>gl(e)?e[e.length-1]||0:e;function Da(e){const t=bt(e)?e.get():e;return KR(t)?t.toValue():t}function YR({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const s={latestValues:XR(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}const yw=e=>(t,n)=>{const r=P.useContext(xu),i=P.useContext(bu),o=()=>YR(e,t,r,i);return n?o():mw(o)};function XR(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=Cu(e),u=tw(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"&&!Eu(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const m=Kh(e,h);if(!m)return;const{transitionEnd:p,transition:_,...v}=m;for(const y in v){let g=v[y];if(Array.isArray(g)){const w=c?g.length-1:0;g=g[w]}g!==null&&(i[y]=g)}for(const y in p)i[y]=p[y]}),i}const JR={useVisualState:yw({scrapeMotionValuesFromProps:pw,createRenderState:cw,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}}Wh(n,r,{enableHardwareAcceleration:!1},Hh(t.tagName),e.transformTemplate),hw(t,n)}})},ZR={useVisualState:yw({scrapeMotionValuesFromProps:Qh,createRenderState:Bh})};function eT(e,{forwardMotionProps:t=!1},n,r){return{...Vh(e)?JR:ZR,preloadedFeatures:n,useRender:QR(t),createVisualElement:r,Component:e}}function bn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const vw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ru(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const tT=e=>t=>vw(t)&&e(t,Ru(t));function On(e,t,n,r){return bn(e,t,tT(n),r)}const nT=(e,t)=>n=>t(e(n)),ur=(...e)=>e.reduce(nT);function gw(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const vy=gw("dragHorizontal"),gy=gw("dragVertical");function ww(e){let t=!1;if(e==="y")t=gy();else if(e==="x")t=vy();else{const n=vy(),r=gy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Sw(){const e=ww(!0);return e?(e(),!1):!0}class Sr{constructor(t){this.isMounted=!1,this.node=t}update(){}}const ze=e=>e;function rT(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]=rT(()=>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,iT),1),i.timestamp=f,i.isProcessing=!0,la.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:la.reduce((f,d)=>{const h=o[d];return f[d]=(m,p=!1,_=!1)=>(n||l(),h.schedule(m,p,_)),f},{}),cancel:f=>la.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:Te,cancel:Ln,state:ut,steps:Sc}=oT(typeof requestAnimationFrame<"u"?requestAnimationFrame:ze,!0);function wy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,s)=>{if(o.type==="touch"||Sw())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t),a[r]&&Te.update(()=>a[r](o,s))};return On(e.current,n,i,{passive:!e.getProps()[r]})}class sT extends Sr{mount(){this.unmount=ur(wy(this.node,!0),wy(this.node,!1))}unmount(){}}class aT extends Sr{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=ur(bn(this.node.current,"focus",()=>this.onFocus()),bn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _w=(e,t)=>t?e===t?!0:_w(e,t.parentElement):!1;function _c(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ru(n))}class lT extends Sr{constructor(){super(...arguments),this.removeStartListeners=ze,this.removeEndListeners=ze,this.removeAccessibleListeners=ze,this.startPointerPress=(t,n)=>{if(this.removeEndListeners(),this.isPressing)return;const r=this.node.getProps(),o=On(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c}=this.node.getProps();Te.update(()=>{_w(this.node.current,a.target)?u&&u(a,l):c&&c(a,l)})},{passive:!(r.onTap||r.onPointerUp)}),s=On(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=ur(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()||_c("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&Te.update(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=bn(this.node.current,"keyup",s),_c("down",(a,l)=>{this.startPress(a,l)})},n=bn(this.node.current,"keydown",t),r=()=>{this.isPressing&&_c("cancel",(o,s)=>this.cancelPress(o,s))},i=bn(this.node.current,"blur",r);this.removeAccessibleListeners=ur(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&&Te.update(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Sw()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Te.update(()=>r(t,n))}mount(){const t=this.node.getProps(),n=On(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=bn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ur(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Gf=new WeakMap,xc=new WeakMap,uT=e=>{const t=Gf.get(e.target);t&&t(e)},cT=e=>{e.forEach(uT)};function fT({root:e,...t}){const n=e||document;xc.has(n)||xc.set(n,{});const r=xc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(cT,{root:e,...t})),r[i]}function dT(e,t,n){const r=fT(t);return Gf.set(e,n),r.observe(e),()=>{Gf.delete(e),r.unobserve(e)}}const hT={some:0,all:1};class pT extends Sr{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:hT[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 dT(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(mT(t,n))&&this.startObserver()}unmount(){}}function mT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const yT={inView:{Feature:pT},tap:{Feature:lT},focus:{Feature:aT},hover:{Feature:sT}};function xw(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 gT(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Tu(e,t,n){const r=e.getProps();return Kh(r,t,n!==void 0?n:r.custom,vT(e),gT(e))}const wT="framerAppearId",ST="data-"+qh(wT);let _T=ze,Gh=ze;const cr=e=>e*1e3,Rn=e=>e/1e3,xT={current:!1},bw=e=>Array.isArray(e)&&typeof e[0]=="number";function Pw(e){return!!(!e||typeof e=="string"&&Ew[e]||bw(e)||Array.isArray(e)&&e.every(Pw))}const ko=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ew={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ko([0,.65,.55,1]),circOut:ko([.55,0,1,.45]),backIn:ko([.31,.01,.66,-.59]),backOut:ko([.33,1.53,.69,.99])};function Cw(e){if(e)return bw(e)?ko(e):Array.isArray(e)?e.map(Cw):Ew[e]}function bT(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=Cw(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 PT(e,{repeat:t,repeatType:n="loop"}){const r=t&&n!=="loop"&&t%2===1?0:e.length-1;return e[r]}const Ow=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ET=1e-7,CT=12;function OT(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Ow(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>ET&&++aOT(o,0,1,e,n);return o=>o===0||o===1?o:Ow(i(o),t,r)}const RT=Ds(.42,0,1,1),TT=Ds(0,0,.58,1),Rw=Ds(.42,0,.58,1),kT=e=>Array.isArray(e)&&typeof e[0]!="number",Tw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kw=e=>t=>1-e(1-t),jw=e=>1-Math.sin(Math.acos(e)),Yh=kw(jw),jT=Tw(Yh),Dw=Ds(.33,1.53,.69,.99),Xh=kw(Dw),DT=Tw(Xh),MT=e=>(e*=2)<1?.5*Xh(e):.5*(2-Math.pow(2,-10*(e-1))),LT={linear:ze,easeIn:RT,easeInOut:Rw,easeOut:TT,circIn:jw,circInOut:jT,circOut:Yh,backIn:Xh,backInOut:DT,backOut:Dw,anticipate:MT},Sy=e=>{if(Array.isArray(e)){Gh(e.length===4);const[t,n,r,i]=e;return Ds(t,n,r,i)}else if(typeof e=="string")return LT[e];return e},Jh=(e,t)=>n=>!!(ks(n)&&MR.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Mw=(e,t,n)=>r=>{if(!ks(r))return r;const[i,o,s,a]=r.match(Ou);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},AT=e=>mr(0,255,e),bc={...ei,transform:e=>Math.round(AT(e))},Nr={test:Jh("rgb","red"),parse:Mw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+bc.transform(e)+", "+bc.transform(t)+", "+bc.transform(n)+", "+Uo(Vo.transform(r))+")"};function NT(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 Yf={test:Jh("#"),parse:NT,transform:Nr.transform},Ei={test:Jh("hsl","hue"),parse:Mw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dn.transform(Uo(t))+", "+dn.transform(Uo(n))+", "+Uo(Vo.transform(r))+")"},ht={test:e=>Nr.test(e)||Yf.test(e)||Ei.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Ei.test(e)?Ei.parse(e):Yf.parse(e),transform:e=>ks(e)?e:e.hasOwnProperty("red")?Nr.transform(e):Ei.transform(e)},Me=(e,t,n)=>-n*e+n*t+e;function Pc(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 FT({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=Pc(l,a,e+1/3),o=Pc(l,a,e),s=Pc(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const Ec=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},IT=[Yf,Nr,Ei],$T=e=>IT.find(t=>t.test(e));function _y(e){const t=$T(e);let n=t.parse(e);return t===Ei&&(n=FT(n)),n}const Lw=(e,t)=>{const n=_y(e),r=_y(t),i={...n};return o=>(i.red=Ec(n.red,r.red,o),i.green=Ec(n.green,r.green,o),i.blue=Ec(n.blue,r.blue,o),i.alpha=Me(n.alpha,r.alpha,o),Nr.transform(i))};function zT(e){var t,n;return isNaN(e)&&ks(e)&&(((t=e.match(Ou))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(sw))===null||n===void 0?void 0:n.length)||0)>0}const Aw={regex:jR,countKey:"Vars",token:"${v}",parse:ze},Nw={regex:sw,countKey:"Colors",token:"${c}",parse:ht.parse},Fw={regex:Ou,countKey:"Numbers",token:"${n}",parse:ei.parse};function Cc(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 wl(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Cc(n,Aw),Cc(n,Nw),Cc(n,Fw),n}function Iw(e){return wl(e).values}function $w(e){const{values:t,numColors:n,numVars:r,tokenised:i}=wl(e),o=t.length;return s=>{let a=i;for(let l=0;ltypeof e=="number"?0:e;function UT(e){const t=Iw(e);return $w(e)(t.map(VT))}const yr={test:zT,parse:Iw,createTransformer:$w,getAnimatableNone:UT},zw=(e,t)=>n=>`${n>0?t:e}`;function Vw(e,t){return typeof e=="number"?n=>Me(e,t,n):ht.test(e)?Lw(e,t):e.startsWith("var(")?zw(e,t):Bw(e,t)}const Uw=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>Vw(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]=Vw(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Bw=(e,t)=>{const n=yr.createTransformer(t),r=wl(e),i=wl(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?ur(Uw(r.values,i.values),n):zw(e,t)},gs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},xy=(e,t)=>n=>Me(e,t,n);function WT(e){return typeof e=="number"?xy:typeof e=="string"?ht.test(e)?Lw:Bw:Array.isArray(e)?Uw:typeof e=="object"?BT:xy}function HT(e,t,n){const r=[],i=n||WT(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=HT(t,r,i),a=s.length,l=u=>{let c=0;if(a>1)for(;cl(mr(e[0],e[o-1],u)):l}function qT(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=gs(0,t,r);e.push(Me(n,1,i))}}function QT(e){const t=[0];return qT(t,e.length-1),t}function KT(e,t){return e.map(n=>n*t)}function GT(e,t){return e.map(()=>t||Rw).splice(0,e.length-1)}function Sl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=kT(r)?r.map(Sy):Sy(r),o={done:!1,value:t[0]},s=KT(n&&n.length===t.length?n:QT(t),e),a=Ww(s,t,{ease:Array.isArray(i)?i:GT(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}function Hw(e,t){return t?e*(1e3/t):0}const YT=5;function qw(e,t,n){const r=Math.max(t-YT,0);return Hw(n-e(r),t-r)}const Oc=.001,XT=.01,by=10,JT=.05,ZT=1;function ek({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;_T(e<=cr(by));let s=1-t;s=mr(JT,ZT,s),e=mr(XT,by,Rn(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=Xf(u,s),m=Math.exp(-f);return Oc-d/h*m},o=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,m=Math.exp(-f),p=Xf(Math.pow(u,2),s);return(-i(u)+Oc>0?-1:1)*((d-h)*m)/p}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Oc+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=nk(i,o,a);if(e=cr(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 tk=12;function nk(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function ok(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Py(e,ik)&&Py(e,rk)){const n=ek(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}function Qw({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}=ok(r),h=c?-Rn(c):0,m=l/(2*Math.sqrt(a*u)),p=o-i,_=Rn(Math.sqrt(a/u)),v=Math.abs(p)<5;n||(n=v?.01:2),t||(t=v?.005:.5);let y;if(m<1){const g=Xf(_,m);y=w=>{const x=Math.exp(-m*_*w);return o-x*((h+m*_*p)/g*Math.sin(g*w)+p*Math.cos(g*w))}}else if(m===1)y=g=>o-Math.exp(-_*g)*(p+(h+_*p)*g);else{const g=_*Math.sqrt(m*m-1);y=w=>{const x=Math.exp(-m*_*w),R=Math.min(g*w,300);return o-x*((h+m*_*p)*Math.sinh(R)+g*p*Math.cosh(R))/g}}return{calculatedDuration:d&&f||null,next:g=>{const w=y(g);if(d)s.done=g>=f;else{let x=h;g!==0&&(m<1?x=qw(y,g,w):x=0);const R=Math.abs(x)<=n,j=Math.abs(o-w)<=t;s.done=R&&j}return s.value=s.done?o:w,s}}}function Ey({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=T=>a!==void 0&&Tl,m=T=>a===void 0?l:l===void 0||Math.abs(a-T)-p*Math.exp(-T/r),g=T=>v+y(T),w=T=>{const I=y(T),N=g(T);d.done=Math.abs(I)<=u,d.value=d.done?v:N};let x,R;const j=T=>{h(d.value)&&(x=T,R=Qw({keyframes:[d.value,m(d.value)],velocity:qw(g,T,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return j(0),{calculatedDuration:null,next:T=>{let I=!1;return!R&&x===void 0&&(I=!0,w(T),j(T)),x!==void 0&&T>x?R.next(T-x):(!I&&w(T),d)}}}const sk=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Te.update(t,!0),stop:()=>Ln(t),now:()=>ut.isProcessing?ut.timestamp:performance.now()}},Cy=2e4;function Oy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Cy?1/0:t}const ak={decay:Ey,inertia:Ey,tween:Sl,keyframes:Sl,spring:Qw};function _l({autoplay:e=!0,delay:t=0,driver:n=sk,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,m=!1,p,_;const v=()=>{_=new Promise(Q=>{p=Q})};v();let y;const g=ak[i]||Sl;let w;g!==Sl&&typeof r[0]!="number"&&(w=Ww([0,100],r,{clamp:!1}),r=[0,100]);const x=g({...d,keyframes:r});let R;a==="mirror"&&(R=g({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let j="idle",T=null,I=null,N=null;x.calculatedDuration===null&&o&&(x.calculatedDuration=Oy(x));const{calculatedDuration:J}=x;let Y=1/0,K=1/0;J!==null&&(Y=J+s,K=Y*(o+1)-s);let $=0;const F=Q=>{if(I===null)return;h>0&&(I=Math.min(I,Q)),h<0&&(I=Math.min(Q-K/h,I)),T!==null?$=T:$=Math.round(Q-I)*h;const te=$-t*(h>=0?1:-1),ne=h>=0?te<0:te>K;$=Math.max(te,0),j==="finished"&&T===null&&($=K);let Z=$,ue=x;if(o){const ge=$/Y;let ke=Math.floor(ge),pe=ge%1;!pe&&ge>=1&&(pe=1),pe===1&&ke--,ke=Math.min(ke,o+1);const Ve=!!(ke%2);Ve&&(a==="reverse"?(pe=1-pe,s&&(pe-=s/Y)):a==="mirror"&&(ue=R));let Qe=mr(0,1,pe);$>K&&(Qe=a==="reverse"&&Ve?1:0),Z=Qe*Y}const me=ne?{done:!1,value:r[0]}:ue.next(Z);w&&(me.value=w(me.value));let{done:Be}=me;!ne&&J!==null&&(Be=h>=0?$>=K:$<=0);const Se=T===null&&(j==="finished"||j==="running"&&Be);return f&&f(me.value),Se&&M(),me},W=()=>{y&&y.stop(),y=void 0},U=()=>{j="idle",W(),p(),v(),I=N=null},M=()=>{j="finished",c&&c(),W(),p()},z=()=>{if(m)return;y||(y=n(F));const Q=y.now();l&&l(),T!==null?I=Q-T:(!I||j==="finished")&&(I=Q),j==="finished"&&v(),N=I,T=null,j="running",y.start()};e&&z();const H={then(Q,te){return _.then(Q,te)},get time(){return Rn($)},set time(Q){Q=cr(Q),$=Q,T!==null||!y||h===0?T=Q:I=y.now()-Q/h},get duration(){const Q=x.calculatedDuration===null?Oy(x):x.calculatedDuration;return Rn(Q)},get speed(){return h},set speed(Q){Q===h||!y||(h=Q,H.time=Rn($))},get state(){return j},play:z,pause:()=>{j="paused",T=$},stop:()=>{m=!0,j!=="idle"&&(j="idle",u&&u(),U())},cancel:()=>{N!==null&&F(N),U()},complete:()=>{j="finished"},sample:Q=>(I=0,F(Q))};return H}function lk(e){let t;return()=>(t===void 0&&(t=e()),t)}const uk=lk(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ck=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ua=10,fk=2e4,dk=(e,t)=>t.type==="spring"||e==="backgroundColor"||!Pw(t.ease);function hk(e,t,{onUpdate:n,onComplete:r,...i}){if(!(uk()&&ck.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(y=>{a=y})};u();let{keyframes:c,duration:f=300,ease:d,times:h}=i;if(dk(t,i)){const y=_l({...i,repeat:0,delay:0});let g={done:!1,value:c[0]};const w=[];let x=0;for(;!g.done&&xm.cancel(),_=()=>{Te.update(p),a(),u()};return m.onfinish=()=>{e.set(PT(c,i)),r&&r(),_()},{then(y,g){return l.then(y,g)},attachTimeline(y){return m.timeline=y,m.onfinish=null,ze},get time(){return Rn(m.currentTime||0)},set time(y){m.currentTime=cr(y)},get speed(){return m.playbackRate},set speed(y){m.playbackRate=y},get duration(){return Rn(f)},play:()=>{s||(m.play(),Ln(p))},pause:()=>m.pause(),stop:()=>{if(s=!0,m.playState==="idle")return;const{currentTime:y}=m;if(y){const g=_l({...i,autoplay:!1});e.setWithVelocity(g.sample(y-ua).value,g.sample(y).value,ua)}_()},complete:()=>m.finish(),cancel:_}}function pk({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:ze,pause:ze,stop:ze,then:o=>(o(),Promise.resolve()),cancel:ze,complete:ze});return t?_l({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}const mk={type:"spring",stiffness:500,damping:25,restSpeed:10},yk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vk={type:"keyframes",duration:.8},gk={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wk=(e,{keyframes:t})=>t.length>2?vk:Zr.has(e)?e.startsWith("scale")?yk(t[1]):mk:gk,Jf=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(yr.test(t)||t==="0")&&!t.startsWith("url(")),Sk=new Set(["brightness","contrast","saturate","opacity"]);function _k(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Ou)||[];if(!r)return e;const i=n.replace(r,"");let o=Sk.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const xk=/([a-z-]*)\(.*?\)/g,Zf={...yr,getAnimatableNone:e=>{const t=e.match(xk);return t?t.map(_k).join(" "):e}},bk={...aw,color:ht,backgroundColor:ht,outlineColor:ht,fill:ht,stroke:ht,borderColor:ht,borderTopColor:ht,borderRightColor:ht,borderBottomColor:ht,borderLeftColor:ht,filter:Zf,WebkitFilter:Zf},Zh=e=>bk[e];function Kw(e,t){let n=Zh(e);return n!==Zf&&(n=yr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Gw=e=>/^0[^.\s]+$/.test(e);function Pk(e){if(typeof e=="number")return e===0;if(e!==null)return e==="none"||e==="0"||Gw(e)}function Ek(e,t,n,r){const i=Jf(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=Yw(r,e)||{},s=o.delay||r.delay||0;let{elapsed:a=0}=r;a=a-cr(s);const l=Ek(t,e,n,o),u=l[0],c=l[l.length-1],f=Jf(e,u),d=Jf(e,c);let h={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:m=>{t.set(m),o.onUpdate&&o.onUpdate(m)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(Ck(o)||(h={...h,...wk(e,h)}),h.duration&&(h.duration=cr(h.duration)),h.repeatDelay&&(h.repeatDelay=cr(h.repeatDelay)),!f||!d||xT.current||o.type===!1)return pk(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const m=hk(t,e,h);if(m)return m}return _l(h)};function xl(e){return!!(bt(e)&&e.add)}const Ok=e=>/^\-?\d*\.?\d+$/.test(e);function tp(e,t){e.indexOf(t)===-1&&e.push(t)}function np(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class rp{constructor(){this.subscriptions=[]}add(t){return tp(this.subscriptions,t),()=>np(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 Tk{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}=ut;this.lastUpdated!==s&&(this.timeDelta=o,this.lastUpdated=s,Te.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=()=>Te.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=Rk(this.current),this.owner=n.owner}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new rp);const r=this.events[t].add(n);return t==="change"?()=>{r(),Te.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?Hw(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 Gi(e,t){return new Tk(e,t)}const Xw=e=>t=>t.test(e),kk={test:e=>e==="auto",parse:e=>e},Jw=[ei,re,dn,Vn,AR,LR,kk],_o=e=>Jw.find(Xw(e)),jk=[...Jw,ht,yr],Dk=e=>jk.find(Xw(e));function Mk(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gi(n))}function Lk(e,t){const n=Tu(e,t);let{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const s in o){const a=GR(o[s]);Mk(e,s,a)}}function Ak(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(p)}return s&&Promise.all(u).then(()=>{s&&Lk(e,s)}),u}function ed(e,t,n={}){const r=Tu(e,t,n.custom);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Zw(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:c,staggerDirection:f}=i;return $k(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 $k(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(zk).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(ed(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function zk(e,t){return e.sortNodePosition(t)}function Vk(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>ed(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=ed(e,t,n);else{const i=typeof t=="function"?Tu(e,t,n.custom):t;r=Promise.all(Zw(e,i,n))}return r.then(()=>e.notify("AnimationComplete",t))}const Uk=[...Ih].reverse(),Bk=Ih.length;function Wk(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Vk(e,n,r)))}function Hk(e){let t=Wk(e);const n=Qk();let r=!0;const i=(l,u)=>{const c=Tu(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 m={},p=1/0;for(let v=0;vp&&x;const N=Array.isArray(w)?w:[w];let J=N.reduce(i,{});R===!1&&(J={});const{prevResolvedValues:Y={}}=g,K={...Y,...J},$=F=>{I=!0,h.delete(F),g.needsAnimating[F]=!0};for(const F in K){const W=J[F],U=Y[F];m.hasOwnProperty(F)||(W!==U?gl(W)&&gl(U)?!xw(W,U)||T?$(F):g.protectedKeys[F]=!0:W!==void 0?$(F):h.add(F):W!==void 0&&h.has(F)?$(F):g.protectedKeys[F]=!0)}g.prevProp=w,g.prevResolvedValues=J,g.isActive&&(m={...m,...J}),r&&e.blockInitialAnimation&&(I=!1),I&&!j&&d.push(...N.map(F=>({animation:F,options:{type:y,...l}})))}if(h.size){const v={};h.forEach(y=>{const g=e.getBaseTarget(y);g!==void 0&&(v[y]=g)}),d.push({animation:v})}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 m;return(m=h.animationState)===null||m===void 0?void 0:m.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 qk(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!xw(t,e):!1}function Cr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qk(){return{animate:Cr(!0),whileInView:Cr(),whileHover:Cr(),whileTap:Cr(),whileDrag:Cr(),whileFocus:Cr(),exit:Cr()}}class Kk extends Sr{constructor(t){super(t),t.animationState||(t.animationState=Hk(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),Eu(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 Gk=0;class Yk extends Sr{constructor(){super(...arguments),this.id=Gk++}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 Xk={animation:{Feature:Kk},exit:{Feature:Yk}},Ry=(e,t)=>Math.abs(e-t);function Jk(e,t){const n=Ry(e.x,t.x),r=Ry(e.y,t.y);return Math.sqrt(n**2+r**2)}class eS{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=Tc(this.lastMoveEventInfo,this.history),c=this.startEvent!==null,f=Jk(u.offset,{x:0,y:0})>=3;if(!c&&!f)return;const{point:d}=u,{timestamp:h}=ut;this.history.push({...d,timestamp:h});const{onStart:m,onMove:p}=this.handlers;c||(m&&m(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,u)},this.handlePointerMove=(u,c)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Rc(c,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(u,c)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Tc(u.type==="pointercancel"?this.lastMoveEventInfo:Rc(c,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,h),d&&d(u,h)},!vw(t))return;this.handlers=n,this.transformPagePoint=r;const i=Ru(t),o=Rc(i,this.transformPagePoint),{point:s}=o,{timestamp:a}=ut;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=n;l&&l(t,Tc(o,this.history)),this.removeListeners=ur(On(window,"pointermove",this.handlePointerMove),On(window,"pointerup",this.handlePointerUp),On(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ln(this.updatePoint)}}function Rc(e,t){return t?{point:t(e.point)}:e}function Ty(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tc({point:e},t){return{point:e,delta:Ty(e,tS(t)),offset:Ty(e,Zk(t)),velocity:e2(t,.1)}}function Zk(e){return e[0]}function tS(e){return e[e.length-1]}function e2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=tS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>cr(t)));)n--;if(!r)return{x:0,y:0};const o=Rn(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 jt(e){return e.max-e.min}function td(e,t=0,n=.01){return Math.abs(e-t)<=n}function ky(e,t,n,r=.5){e.origin=r,e.originPoint=Me(t.min,t.max,e.origin),e.scale=jt(n)/jt(t),(td(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Me(n.min,n.max,e.origin)-e.originPoint,(td(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Bo(e,t,n,r){ky(e.x,t.x,n.x,r?r.originX:void 0),ky(e.y,t.y,n.y,r?r.originY:void 0)}function jy(e,t,n){e.min=n.min+t.min,e.max=e.min+jt(t)}function t2(e,t,n){jy(e.x,t.x,n.x),jy(e.y,t.y,n.y)}function Dy(e,t,n){e.min=t.min-n.min,e.max=e.min+jt(t)}function Wo(e,t,n){Dy(e.x,t.x,n.x),Dy(e.y,t.y,n.y)}function n2(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?Me(n,e,r.max):Math.min(e,n)),e}function My(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 r2(e,{top:t,left:n,bottom:r,right:i}){return{x:My(e.x,n,i),y:My(e.y,t,r)}}function Ly(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)),mr(0,1,n)}function s2(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 nd=.35;function a2(e=nd){return e===!1?e=0:e===!0&&(e=nd),{x:Ay(e,"left","right"),y:Ay(e,"top","bottom")}}function Ay(e,t,n){return{min:Ny(e,t),max:Ny(e,n)}}function Ny(e,t){return typeof e=="number"?e:e[t]||0}const Fy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ci=()=>({x:Fy(),y:Fy()}),Iy=()=>({min:0,max:0}),We=()=>({x:Iy(),y:Iy()});function sn(e){return[e("x"),e("y")]}function nS({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function l2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function u2(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 kc(e){return e===void 0||e===1}function rd({scale:e,scaleX:t,scaleY:n}){return!kc(e)||!kc(t)||!kc(n)}function kr(e){return rd(e)||rS(e)||e.z||e.rotate||e.rotateX||e.rotateY}function rS(e){return $y(e.x)||$y(e.y)}function $y(e){return e&&e!=="0%"}function bl(e,t,n){const r=e-n,i=t*r;return n+i}function zy(e,t,n,r,i){return i!==void 0&&(e=bl(e,i,r)),bl(e,n,r)+t}function id(e,t=0,n=1,r,i){e.min=zy(e.min,t,n,r,i),e.max=zy(e.max,t,n,r,i)}function iS(e,{x:t,y:n}){id(e.x,t.translate,t.scale,t.originPoint),id(e.y,n.translate,n.scale,n.originPoint)}function c2(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 Wn(e,t){e.min=e.min+t,e.max=e.max+t}function Uy(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,s=Me(e.min,e.max,o);id(e,t[n],t[r],s,t.scale)}const f2=["x","scaleX","originX"],d2=["y","scaleY","originY"];function Oi(e,t){Uy(e.x,t,f2),Uy(e.y,t,d2)}function oS(e,t){return nS(u2(e.getBoundingClientRect(),t))}function h2(e,t,n){const r=oS(e,n),{scroll:i}=t;return i&&(Wn(r.x,i.offset.x),Wn(r.y,i.offset.y)),r}const p2=new WeakMap;class m2{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=We(),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(Ru(l,"page").point)},o=(l,u)=>{const{drag:c,dragPropagation:f,onDragStart:d}=this.getProps();if(c&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ww(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),sn(m=>{let p=this.getAxisMotionValue(m).get()||0;if(dn.test(p)){const{projection:_}=this.visualElement;if(_&&_.layout){const v=_.layout.layoutBox[m];v&&(p=jt(v)*(parseFloat(p)/100))}}this.originPoint[m]=p}),d&&Te.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:m}=u;if(f&&this.currentDirection===null){this.currentDirection=y2(m),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",u.point,m),this.updateAxis("y",u.point,m),this.visualElement.render(),h&&h(l,u)},a=(l,u)=>this.stop(l,u);this.panSession=new eS(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&&Te.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||!ca(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=n2(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&&Pi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=r2(r.layoutBox,t):this.constraints=!1,this.elastic=a2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&sn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=s2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Pi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=h2(r,i.root,this.visualElement.getTransformPagePoint());let s=i2(i.layout.layoutBox,o);if(n){const a=n(l2(s));this.hasMutatedConstraints=!!a,a&&(s=nS(a))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=sn(c=>{if(!ca(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,m={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(ep(t,r,0,n))}stopAnimation(){sn(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){sn(n=>{const{drag:r}=this.getProps();if(!ca(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]-Me(s,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Pi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};sn(s=>{const a=this.getAxisMotionValue(s);if(a){const l=a.get();i[s]=o2({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(),sn(s=>{if(!ca(s,t,null))return;const a=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];a.set(Me(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;p2.set(this.visualElement,this);const t=this.visualElement.current,n=On(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Pi(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=bn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(sn(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=nd,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:s,dragMomentum:a}}}function ca(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function y2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class v2 extends Sr{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new m2(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const By=e=>(t,n)=>{e&&Te.update(()=>e(t,n))};class g2 extends Sr{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new eS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:By(t),onStart:By(n),onMove:r,onEnd:(o,s)=>{delete this.session,i&&Te.update(()=>i(o,s))}}}mount(){this.removePointerDownListener=On(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 w2(){const e=P.useContext(bu);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 Wy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const xo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(re.test(e))e=parseFloat(e);else return e;const n=Wy(e,t.target.x),r=Wy(e,t.target.y);return`${n}% ${r}%`}},S2={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=yr.parse(e);if(i.length>5)return r;const o=yr.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=Me(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 _2 extends Ye.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;OR(x2),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()||Te.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 sS(e){const[t,n]=w2(),r=P.useContext(zh);return Ye.createElement(_2,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(nw),isPresent:t,safeToRemove:n})}const x2={borderRadius:{...xo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xo,borderTopRightRadius:xo,borderBottomLeftRadius:xo,borderBottomRightRadius:xo,boxShadow:S2},aS=["TopLeft","TopRight","BottomLeft","BottomRight"],b2=aS.length,Hy=e=>typeof e=="string"?parseFloat(e):e,qy=e=>typeof e=="number"||re.test(e);function P2(e,t,n,r,i,o){i?(e.opacity=Me(0,n.opacity!==void 0?n.opacity:1,E2(r)),e.opacityExit=Me(t.opacity!==void 0?t.opacity:1,0,C2(r))):o&&(e.opacity=Me(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 Ky(e,t){e.min=t.min,e.max=t.max}function Ft(e,t){Ky(e.x,t.x),Ky(e.y,t.y)}function Gy(e,t,n,r,i){return e-=t,e=bl(e,1/n,r),i!==void 0&&(e=bl(e,1/i,r)),e}function O2(e,t=0,n=1,r=.5,i,o=e,s=e){if(dn.test(t)&&(t=parseFloat(t),t=Me(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Me(o.min,o.max,r);e===o&&(a-=t),e.min=Gy(e.min,t,n,a,i),e.max=Gy(e.max,t,n,a,i)}function Yy(e,t,[n,r,i],o,s){O2(e,t[n],t[r],t[i],t.scale,o,s)}const R2=["x","scaleX","originX"],T2=["y","scaleY","originY"];function Xy(e,t,n,r){Yy(e.x,t,R2,n?n.x:void 0,r?r.x:void 0),Yy(e.y,t,T2,n?n.y:void 0,r?r.y:void 0)}function Jy(e){return e.translate===0&&e.scale===1}function uS(e){return Jy(e.x)&&Jy(e.y)}function k2(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 cS(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 Zy(e){return jt(e.x)/jt(e.y)}class j2{constructor(){this.members=[]}add(t){tp(this.members,t),t.scheduleRender()}remove(t){if(np(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 ev(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 D2=(e,t)=>e.depth-t.depth;class M2{constructor(){this.children=[],this.isDirty=!1}add(t){tp(this.children,t),this.isDirty=!0}remove(t){np(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(D2),this.isDirty=!1,this.children.forEach(t)}}function L2(e,t){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Ln(r),e(o-t))};return Te.read(r,!0),()=>Ln(r)}function A2(e){window.MotionDebug&&window.MotionDebug.record(e)}function N2(e){return e instanceof SVGElement&&e.tagName!=="svg"}function F2(e,t,n){const r=bt(e)?e:Gi(e);return r.start(ep("",r,t,n)),r.animation}const tv=["","X","Y","Z"],nv=1e3;let I2=0;const jr={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function fS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t==null?void 0:t()){this.id=I2++,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=()=>{jr.totalNodes=jr.resolvedTargetDeltas=jr.recalculatedProjection=0,this.nodes.forEach(V2),this.nodes.forEach(q2),this.nodes.forEach(Q2),this.nodes.forEach(U2),A2(jr)},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=L2(d,250),Ma.hasAnimatedSinceResize&&(Ma.hasAnimatedSinceResize=!1,this.nodes.forEach(iv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||J2,{onLayoutAnimationStart:_,onLayoutAnimationComplete:v}=c.getProps(),y=!this.targetLayout||!cS(this.targetLayout,m)||h,g=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,g);const w={...Yw(p,"layout"),onPlay:_,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||iv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,Ln(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(K2),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(B2),this.sharedNodes.forEach(G2)}scheduleUpdateProjection(){Te.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Te.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 x=w/1e3;ov(f.x,s.x,x),ov(f.y,s.y,x),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wo(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Y2(this.relativeTarget,this.relativeTargetOrigin,d,x),g&&k2(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=We()),Ft(g,this.relativeTarget)),p&&(this.animationValues=c,P2(c,u,this.latestValues,x,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},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&&(Ln(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{Ma.hasAnimatedSinceResize=!0,this.currentAnimation=F2(0,nv,{...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(nv),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&&dS(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||We();const f=jt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=jt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Ft(a,l),Oi(a,c),Bo(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new j2),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(rv),this.root.sharedNodes.clear()}}}function $2(e){e.updateLayout()}function z2(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"?sn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=jt(d);d.min=r[f].min,d.max=d.min+h}):dS(o,n.layoutBox,r)&&sn(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=jt(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=Ci();Bo(a,r,n.layoutBox);const l=Ci();s?Bo(l,e.applyTransform(i,!0),n.measuredBox):Bo(l,r,n.layoutBox);const u=!uS(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 m=We();Wo(m,n.layoutBox,d.layoutBox);const p=We();Wo(p,r,h.layoutBox),cS(m,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,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 V2(e){jr.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 U2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B2(e){e.clearSnapshot()}function rv(e){e.clearMeasurements()}function W2(e){e.isLayoutDirty=!1}function H2(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function q2(e){e.resolveTargetDelta()}function Q2(e){e.calcProjection()}function K2(e){e.resetRotation()}function G2(e){e.removeLeadSnapshot()}function ov(e,t,n){e.translate=Me(t.translate,0,n),e.scale=Me(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function sv(e,t,n,r){e.min=Me(t.min,n.min,r),e.max=Me(t.max,n.max,r)}function Y2(e,t,n,r){sv(e.x,t.x,n.x,r),sv(e.y,t.y,n.y,r)}function X2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const J2={duration:.45,ease:[.4,0,.1,1]},av=e=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(e),lv=av("applewebkit/")&&!av("chrome/")?Math.round:ze;function uv(e){e.min=lv(e.min),e.max=lv(e.max)}function Z2(e){uv(e.x),uv(e.y)}function dS(e,t,n){return e==="position"||e==="preserve-aspect"&&!td(Zy(t),Zy(n),.2)}const ej=fS({attachResizeListener:(e,t)=>bn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jc={current:void 0},hS=fS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jc.current){const e=new ej({});e.mount(window),e.setOptions({layoutScroll:!0}),jc.current=e}return jc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tj={pan:{Feature:g2},drag:{Feature:v2,ProjectionNode:hS,MeasureLayout:sS}},nj=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rj(e){const t=nj.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}function od(e,t,n=1){const[r,i]=rj(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():Kf(i)?od(i,t,n+1):i}function ij(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(!Kf(o))return;const s=od(o,r);s&&i.set(s)});for(const i in t){const o=t[i];if(!Kf(o))continue;const s=od(o,r);s&&(t[i]=s,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:t,transitionEnd:n}}const oj=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pS=e=>oj.has(e),sj=e=>Object.keys(e).some(pS),cv=e=>e===ei||e===re,fv=(e,t)=>parseFloat(e.split(", ")[t]),dv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return fv(i[1],t);{const o=r.match(/^matrix\((.+)\)$/);return o?fv(o[1],e):0}},aj=new Set(["x","y","z"]),lj=Ts.filter(e=>!aj.has(e));function uj(e){const t=[];return lj.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 Yi={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:dv(4,13),y:dv(5,14)};Yi.translateX=Yi.x;Yi.translateY=Yi.y;const cj=(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]=Yi[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]=Yi[u](l,o)}),e},fj=(e,t,n={},r={})=>{t={...t},r={...r};const i=Object.keys(t).filter(pS);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=_o(c);const d=t[l];let h;if(gl(d)){const m=d.length,p=d[0]===null?1:0;c=d[p],f=_o(c);for(let _=p;_=0?window.pageYOffset:null,u=cj(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 dj(e,t,n,r){return sj(t)?fj(e,t,n,r):{target:t,transitionEnd:r}}const hj=(e,t,n,r)=>{const i=ij(e,t,r);return t=i.target,r=i.transitionEnd,dj(e,t,n,r)},sd={current:null},mS={current:!1};function pj(){if(mS.current=!0,!!Pu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sd.current=e.matches;e.addListener(t),t()}else sd.current=!1}function mj(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],s=n[i];if(bt(o))e.addValue(i,o),xl(r)&&r.add(i);else if(bt(s))e.addValue(i,Gi(o,{owner:e})),xl(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,Gi(a!==void 0?a:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const hv=new WeakMap,yS=Object.keys(vs),yj=yS.length,pv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],vj=$h.length;class gj{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=()=>Te.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=Cu(n),this.isVariantNode=tw(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&&bt(d)&&(d.set(a[f],!1),xl(u)&&u.add(f))}}scrapeMotionValuesFromProps(t,n){return{}}mount(t){this.current=t,hv.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)),mS.current||pj(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sd.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){hv.delete(this.current),this.projection&&this.projection.unmount(),Ln(this.notifyUpdate),Ln(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=Zr.has(t),i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&Te.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):We()}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=Gi(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=Kh(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&&!bt(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 rp),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vS extends gj{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=Fk(r,t||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),s&&(s=i(s))),o){Ak(this,r,s);const a=hj(this,r,s,n);n=a.transitionEnd,r=a.target}return{transition:t,transitionEnd:n,...r}}}function wj(e){return window.getComputedStyle(e)}class Sj extends vS{readValueFromInstance(t,n){if(Zr.has(n)){const r=Zh(n);return r&&r.default||0}else{const r=wj(t),i=(ow(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return oS(t,n)}build(t,n,r,i){Uh(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n){return Qh(t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;bt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){fw(t,n,r,i)}}class _j extends vS{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Zr.has(n)){const r=Zh(n);return r&&r.default||0}return n=dw.has(n)?n:qh(n),t.getAttribute(n)}measureInstanceViewportBox(){return We()}scrapeMotionValuesFromProps(t,n){return pw(t,n)}build(t,n,r,i){Wh(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){hw(t,n,r,i)}mount(t){this.isSVGTag=Hh(t.tagName),super.mount(t)}}const xj=(e,t)=>Vh(e)?new _j(t,{enableHardwareAcceleration:!1}):new Sj(t,{enableHardwareAcceleration:!0}),bj={layout:{ProjectionNode:hS,MeasureLayout:sS}},Pj={...Xk,...yT,...tj,...bj},gS=ER((e,t)=>eT(e,t,Pj,xj));function wS(){const e=P.useRef(!1);return ml(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ej(){const e=wS(),[t,n]=P.useState(0),r=P.useCallback(()=>{e.current&&n(t+1)},[t]);return[P.useCallback(()=>Te.postRender(r),[r]),t]}class Cj 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 Oj({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; @@ -106,7 +106,7 @@ Error generating stack: `+o.message+` top: ${a}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(u)}},[t]),P.createElement(Ej,{isPresent:t,childRef:r,sizeRef:i},P.cloneElement(e,{ref:r}))}const Dc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=mw(Oj),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(Cj,{isPresent:n},e)),P.createElement(bu.Provider,{value:u},e)};function Oj(){return new Map}function Tj(e){return P.useEffect(()=>()=>e(),[])}const ui=e=>e.key||"";function Rj(e,t){e.forEach(n=>{const r=ui(n);t.set(r,n)})}function kj(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const SS=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=P.useContext(zh).forceRender||Pj()[0],l=wS(),u=kj(e);let c=u;const f=P.useRef(new Map).current,d=P.useRef(c),h=P.useRef(new Map).current,m=P.useRef(!0);if(ml(()=>{m.current=!1,Rj(u,h),d.current=c}),Tj(()=>{m.current=!0,h.clear(),f.clear()}),m.current)return P.createElement(P.Fragment,null,c.map(y=>P.createElement(Dc,{key:ui(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const p=d.current.map(ui),_=u.map(ui),v=p.length;for(let y=0;y{if(_.indexOf(g)!==-1)return;const w=h.get(g);if(!w)return;const x=p.indexOf(g);let T=y;if(!T){const j=()=>{h.delete(g),f.delete(g);const R=d.current.findIndex(I=>I.key===g);if(d.current.splice(R,1),!f.size){if(d.current=u,l.current===!1)return;a(),r&&r()}};T=P.createElement(Dc,{key:ui(w),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},w),f.set(g,T)}c.splice(x,0,T)}),c=c.map(y=>{const g=y.key;return f.has(g)?y:P.createElement(Dc,{key:ui(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),P.createElement(P.Fragment,null,f.size?c:c.map(y=>P.cloneElement(y)))},jj="_header_1f18x_1",Dj="_top_1f18x_10",Mj="_show_1f18x_15",Lj="_hide_1f18x_18",Aj="_mobile__view_1f18x_26",Nj="_nav_1f18x_29",Fj="_logo_1f18x_44",Ij="_nav__desktop_1f18x_78",$j="_nav__desktop__item_1f18x_87",zj="_nav__desktop__link_1f18x_90",Vj="_buttons__mobile__menu_1f18x_117",Uj="_list_1f18x_127",Bj="_search_1f18x_142",Wj="_form_1f18x_151",Hj="_input_search_1f18x_164",Qj="_nav__mobile_1f18x_185",qj="_nav__mobile__item_1f18x_198",Kj="_nav__link_1f18x_208",Gj="_button_1f18x_117",Yj="_button_submit_1f18x_249",be={header:jj,top:Dj,show:Mj,hide:Lj,mobile__view:Aj,nav:Nj,logo:Fj,nav__desktop:Ij,nav__desktop__item:$j,nav__desktop__link:zj,buttons__mobile__menu:Vj,list:Uj,search:Bj,form:Wj,input_search:Hj,nav__mobile:Qj,nav__mobile__item:qj,nav__link:Kj,button:Gj,button_submit:Yj},Xj=({isMenuOpen:e,setIsMenuOpen:t})=>{const{pathname:n}=Jr();return P.useEffect(()=>{t(!1)},[n,t]),E.jsx(SS,{children:e&&E.jsxs(gS.ul,{animate:{opacity:1},className:`${be.list} ${be.nav__mobile}`,exit:{opacity:0},initial:{opacity:0},transition:{duration:.2},children:[E.jsx("li",{className:be.nav__mobile__item,children:E.jsx(sr,{className:be.nav__link,to:"discover/movie",children:"Movies"})}),E.jsx("li",{className:be.nav__mobile__item,children:E.jsx(sr,{className:be.nav__link,to:"discover/tv",children:"TV Shows"})})]})})},Jj=({isSearchOpen:e})=>{const t=P.useRef(null),n=Ph(),r=i=>{i.preventDefault(),t.current.value&&n(`/search/${t.current.value}`)};return E.jsx(SS,{children:e&&E.jsx(gS.div,{animate:{opacity:1},className:`${be.list} ${be.search}`,exit:{opacity:0},initial:{opacity:0},transition:{duration:.2},children:E.jsxs("form",{action:"",className:be.form,onSubmit:r,children:[E.jsx("input",{ref:t,className:be.input_search,placeholder:"Search for a movie or tv show....",type:"text"}),E.jsx("button",{className:`${be.button} ${be.button_submit}`,children:E.jsx("img",{alt:"search",src:J1})})]})})})},Zj=()=>{const{pathname:e}=Jr(),[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),m=()=>i(!1);return cy(t,u,c,h),cy(r,f,d,m),pT(a,t,s,l),E.jsxs("header",{className:`${be.header} ${t?be.mobile__view:""} ${be[`${o}`]}`,children:[E.jsx("div",{className:"wrapper",children:E.jsxs("nav",{className:be.nav,children:[E.jsx(sr,{className:be.logo,to:"/",children:E.jsx("span",{children:"Movies App"})}),E.jsxs("ul",{className:be.nav__desktop,children:[E.jsx("li",{className:be.nav__desktop__item,children:E.jsx(sr,{className:be.nav__desktop__link,to:"discover/movie",children:"Movies"})}),E.jsx("li",{className:be.nav__desktop__item,children:E.jsx(sr,{className:be.nav__desktop__link,to:"discover/tv",children:"TV Shows"})})]}),E.jsxs("div",{className:be.buttons__mobile__menu,children:[E.jsx("button",{ref:d,className:be.button,onClick:()=>i(!r),children:r?E.jsx("img",{alt:"Close",src:fy}):E.jsx("img",{alt:"Search",src:J1})}),E.jsx("button",{ref:c,className:be.button,onClick:()=>n(!t),children:t?E.jsx("img",{alt:"Close",src:fy}):E.jsx("img",{alt:"Menu",src:mT})})]})]})}),E.jsx("div",{ref:f,children:E.jsx(Jj,{isSearchOpen:r})}),E.jsx("div",{ref:u,children:E.jsx(Xj,{isMenuOpen:t,setIsMenuOpen:n})})]})},eD=()=>{const e=nP();return P.useEffect(()=>{e(ja()),e(ka())},[e]),E.jsxs(E.Fragment,{children:[E.jsx(Zj,{}),E.jsx(hE,{}),E.jsx(EE,{}),cs.createPortal(E.jsx(tT,{}),document.getElementById("root"),"buttonUp"),cs.createPortal(E.jsx(rT,{}),document.getElementById("root"),"themeSwitch"),E.jsx(hT,{})]})};var _S={exports:{}};(()=>{var e={181:(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,m=d||h||Function("return this")(),p=Object.prototype.toString,_=Math.max,v=Math.min,y=function(){return m.Date.now()};function g(x){var T=typeof x;return!!x&&(T=="object"||T=="function")}function w(x){if(typeof x=="number")return x;if(function(R){return typeof R=="symbol"||function(I){return!!I&&typeof I=="object"}(R)&&p.call(R)=="[object Symbol]"}(x))return NaN;if(g(x)){var T=typeof x.valueOf=="function"?x.valueOf():x;x=g(T)?T+"":T}if(typeof x!="string")return x===0?x:+x;x=x.replace(a,"");var j=u.test(x);return j||c.test(x)?f(x.slice(2),j?2:8):l.test(x)?NaN:+x}i.exports=function(x,T,j){var R,I,N,J,Y,K,$=0,F=!1,W=!1,U=!0;if(typeof x!="function")throw new TypeError("Expected a function");function M(ne){var Z=R,ue=I;return R=I=void 0,$=ne,J=x.apply(ue,Z)}function z(ne){var Z=ne-K;return K===void 0||Z>=T||Z<0||W&&ne-$>=N}function H(){var ne=y();if(z(ne))return q(ne);Y=setTimeout(H,function(Z){var ue=T-(Z-K);return W?v(ue,N-(Z-$)):ue}(ne))}function q(ne){return Y=void 0,U&&R?M(ne):(R=I=void 0,J)}function te(){var ne=y(),Z=z(ne);if(R=arguments,I=this,K=ne,Z){if(Y===void 0)return function(ue){return $=ue,Y=setTimeout(H,T),F?M(ue):J}(K);if(W)return Y=setTimeout(H,T),M(K)}return Y===void 0&&(Y=setTimeout(H,T)),J}return T=w(T)||0,g(j)&&(F=!!j.leading,N=(W="maxWait"in j)?_(w(j.maxWait)||0,T):N,U="trailing"in j?!!j.trailing:U),te.cancel=function(){Y!==void 0&&clearTimeout(Y),$=0,R=K=I=Y=void 0},te.flush=function(){return Y===void 0?J:q(y())},te}},858:(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,m=parseInt,p=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,_=typeof self=="object"&&self&&self.Object===Object&&self,v=p||_||Function("return this")(),y=Object.prototype.toString,g=Math.max,w=Math.min,x=function(){return v.Date.now()};function T(R){var I=typeof R;return!!R&&(I=="object"||I=="function")}function j(R){if(typeof R=="number")return R;if(function(J){return typeof J=="symbol"||function(Y){return!!Y&&typeof Y=="object"}(J)&&y.call(J)==u}(R))return l;if(T(R)){var I=typeof R.valueOf=="function"?R.valueOf():R;R=T(I)?I+"":I}if(typeof R!="string")return R===0?R:+R;R=R.replace(c,"");var N=d.test(R);return N||h.test(R)?m(R.slice(2),N?2:8):f.test(R)?l:+R}i.exports=function(R,I,N){var J=!0,Y=!0;if(typeof R!="function")throw new TypeError(a);return T(N)&&(J="leading"in N?!!N.leading:J,Y="trailing"in N?!!N.trailing:Y),function(K,$,F){var W,U,M,z,H,q,te=0,ne=!1,Z=!1,ue=!0;if(typeof K!="function")throw new TypeError(a);function me(pe){var Ve=W,qe=U;return W=U=void 0,te=pe,z=K.apply(qe,Ve)}function Be(pe){var Ve=pe-q;return q===void 0||Ve>=$||Ve<0||Z&&pe-te>=M}function Se(){var pe=x();if(Be(pe))return ge(pe);H=setTimeout(Se,function(Ve){var qe=$-(Ve-q);return Z?w(qe,M-(Ve-te)):qe}(pe))}function ge(pe){return H=void 0,ue&&W?me(pe):(W=U=void 0,z)}function ke(){var pe=x(),Ve=Be(pe);if(W=arguments,U=this,q=pe,Ve){if(H===void 0)return function(qe){return te=qe,H=setTimeout(Se,$),ne?me(qe):z}(q);if(Z)return H=setTimeout(Se,$),me(q)}return H===void 0&&(H=setTimeout(Se,$)),z}return $=j($)||0,T(F)&&(ne=!!F.leading,M=(Z="maxWait"in F)?g(j(F.maxWait)||0,$):M,ue="trailing"in F?!!F.trailing:ue),ke.cancel=function(){H!==void 0&&clearTimeout(H),te=0,W=q=U=H=void 0},ke.flush=function(){return H===void 0?z:ge(x())},ke}(R,I,{leading:J,maxWait:I,trailing:Y})}},694:(i,o,s)=>{var a=s(925);function l(){}function u(){}u.resetWarningCache=l,i.exports=function(){function c(h,m,p,_,v,y){if(y!==a){var g=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 g.name="Invariant Violation",g}}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}},556:(i,o,s)=>{i.exports=s(694)()},925: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:()=>no,LazyLoadImage:()=>A,trackWindowScroll:()=>ne});const i=P;var o=n.n(i),s=n(556);function a(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function l(b){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},l(b)}function u(b,S){var O=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);S&&(D=D.filter(function(C){return Object.getOwnPropertyDescriptor(b,C).enumerable})),O.push.apply(O,D)}return O}function c(b,S,O){return(S=d(S))in b?Object.defineProperty(b,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[S]=O,b}function f(b,S){for(var O=0;O0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,k=this.placeholder.getBoundingClientRect(),B=this.placeholder.style,G=parseInt(B.getPropertyValue("margin-left"),10)||0,X=parseInt(B.getPropertyValue("margin-top"),10)||0;return{bottom:C.y+k.bottom+X,left:C.x+k.left+G,right:C.x+k.right+G,top:C.y+k.top+X}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var C=this.props,k=C.scrollPosition,B=C.threshold,G=this.getPlaceholderBoundingBox(k),X=k.y+window.innerHeight,ie=k.x,oe=k.x+window.innerWidth,ae=k.y;return ae-B<=G.bottom&&X+B>=G.top&&ie-B<=G.right&&oe+B>=G.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var C=this,k=this.props,B=k.className,G=k.height,X=k.placeholder,ie=k.style,oe=k.width;if(X&&typeof X.type!="function")return o().cloneElement(X,{ref:function(le){return C.placeholder=le}});var ae=function(le){for(var je=1;je"u"?0:window.scrollX||window.pageXOffset},te=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const ne=function(b){var S=function(O){function D(B){var G;if(function(ie,oe){if(!(ie instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,D),(G=W(this,D,[B])).useIntersectionObserver=B.useIntersectionObserver&&a(),G.useIntersectionObserver)return U(G);var X=G.onChangeScroll.bind(G);return B.delayMethod==="debounce"?G.delayedScroll=T()(X,B.delayTime):B.delayMethod==="throttle"&&(G.delayedScroll=R()(X,B.delayTime)),G.state={scrollPosition:{x:q(),y:te()}},G.baseComponentRef=o().createRef(),G}return function(B,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),G&&H(B,G)}(D,O),C=D,k=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||N(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=N(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:q(),y:te()}})}},{key:"render",value:function(){var B=this.props,G=(B.delayMethod,B.delayTime,function(ie,oe){if(ie==null)return{};var ae,le,je=function(Fe,Pt){if(Fe==null)return{};var Er={};for(var In in Fe)if({}.hasOwnProperty.call(Fe,In)){if(Pt.indexOf(In)>=0)continue;Er[In]=Fe[In]}return Er}(ie,oe);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ie);for(le=0;le=0||{}.propertyIsEnumerable.call(ie,ae)&&(je[ae]=ie[ae])}return je}(B,Y)),X=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(b,K({forwardRef:this.baseComponentRef,scrollPosition:X},G))}}],k&&$(C.prototype,k),Object.defineProperty(C,"prototype",{writable:!1}),C;var C,k}(o().Component);return S.propTypes={delayMethod:s.PropTypes.oneOf(["debounce","throttle"]),delayTime:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool},S.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},S};function Z(b){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},Z(b)}function ue(b,S){for(var O=0;O=0&&Number.isFinite(X.y)&&X.y>=0),k}return function(C,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),k&&xr(C,k)}(S,b),O=S,(D=[{key:"componentDidUpdate",value:function(C,k){k.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 C=this.props,k=C.className,B=C.delayMethod,G=C.delayTime,X=C.height,ie=C.placeholder,oe=C.scrollPosition,ae=C.style,le=C.threshold,je=C.useIntersectionObserver,Ne=C.width;return this.isScrollTracked||je&&a()?o().createElement(w,{className:k,height:X,onVisible:this.onVisible,placeholder:ie,scrollPosition:oe,style:ae,threshold:le,useIntersectionObserver:je,width:Ne}):o().createElement(Ve,{className:k,delayMethod:B,delayTime:G,height:X,onVisible:this.onVisible,placeholder:ie,style:ae,threshold:le,width:Ne})}}])&&ju(O.prototype,D),Object.defineProperty(O,"prototype",{writable:!1}),O;var O,D}(o().Component);At.propTypes={afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool},At.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const no=At;function mn(b){return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},mn(b)}var As=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Ns(b,S){var O=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);S&&(D=D.filter(function(C){return Object.getOwnPropertyDescriptor(b,C).enumerable})),O.push.apply(O,D)}return O}function ro(b){for(var S=1;S=0)continue;Ne[Fe]=le[Fe]}return Ne}(B,G);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(B);for(ie=0;ie=0||{}.propertyIsEnumerable.call(B,X)&&(oe[X]=B[X])}return oe}(C,As));return o().createElement("img",br({},k,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var C=this.props,k=C.beforeLoad,B=C.className,G=C.delayMethod,X=C.delayTime,ie=C.height,oe=C.placeholder,ae=C.scrollPosition,le=C.style,je=C.threshold,Ne=C.useIntersectionObserver,Fe=C.visibleByDefault,Pt=C.width;return o().createElement(no,{beforeLoad:k,className:B,delayMethod:G,delayTime:X,height:ie,placeholder:oe,scrollPosition:ae,style:le,threshold:je,useIntersectionObserver:Ne,visibleByDefault:Fe,width:Pt},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(C){var k=this.props,B=k.effect,G=k.height,X=k.placeholderSrc,ie=k.width,oe=k.wrapperClassName,ae=k.wrapperProps,le=this.state.loaded,je=le?" lazy-load-image-loaded":"",Ne=le||!X?{}:{backgroundImage:"url(".concat(X,")"),backgroundSize:"100% 100%"};return o().createElement("span",br({className:oe+" lazy-load-image-background "+B+je,style:ro(ro({},Ne),{},{color:"transparent",display:"inline-block",height:G,width:ie})},ae),C)}},{key:"render",value:function(){var C=this.props,k=C.effect,B=C.placeholderSrc,G=C.visibleByDefault,X=C.wrapperClassName,ie=C.wrapperProps,oe=this.getLazyLoadImage();return(k||B)&&!G||X||ie?this.getWrappedLazyLoadImage(oe):oe}}],D&&io(O.prototype,D),Object.defineProperty(O,"prototype",{writable:!1}),O;var O,D}(o().Component);L.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},L.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const A=L})(),_S.exports=r})();var xS=_S.exports;const tD=({src:e,className:t="",...n})=>E.jsx(xS.LazyLoadImage,{alt:"Movie banner",className:t,effect:"blur",src:e,...n});function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ad(e,t)}function ti(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ad(e,t)}var Ms=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}(),Pl=typeof window>"u";function ct(){}function nD(e,t){return typeof e=="function"?e(t):e}function ld(e){return typeof e=="number"&&e>=0&&e!==1/0}function El(e){return Array.isArray(e)?e:[e]}function bS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ho(e,t,n){return ku(e)?typeof t=="function"?fe({},n,{queryKey:e,queryFn:t}):fe({},t,{queryKey:e}):e}function Hn(e,t,n){return ku(e)?[fe({},t,{queryKey:e}),n]:[e||{},t]}function rD(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 mv(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(ku(a)){if(r){if(t.queryHash!==ip(a,t.options))return!1}else if(!Cl(t.queryKey,a))return!1}var u=rD(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 yv(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(ku(o)){if(!t.options.mutationKey)return!1;if(n){if(Fr(t.options.mutationKey)!==Fr(o))return!1}else if(!Cl(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function ip(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Fr;return n(e)}function Fr(e){var t=El(e);return iD(t)}function iD(e){return JSON.stringify(e,function(t,n){return ud(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function Cl(e,t){return PS(El(e),El(t))}function PS(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!PS(e[n],t[n])}):!1}function Ol(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||ud(e)&&ud(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!(!vv(n)||!n.hasOwnProperty("isPrototypeOf"))}function vv(e){return Object.prototype.toString.call(e)==="[object Object]"}function ku(e){return typeof e=="string"||Array.isArray(e)}function sD(e){return new Promise(function(t){setTimeout(t,e)})}function gv(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function ES(){if(typeof AbortController=="function")return new AbortController}var aD=function(e){ti(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!Pl&&((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}(Ms),Qo=new aD,lD=function(e){ti(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!Pl&&((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}(Ms),La=new lD;function uD(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Tl(e){return typeof(e==null?void 0:e.cancel)=="function"}var CS=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Aa(e){return e instanceof CS}var OS=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(m){h=Promise.reject(m)}i=function(p){if(!n.isResolved&&(u(new CS(p)),n.abort==null||n.abort(),Tl(h)))try{h.cancel()}catch{}},n.isTransportCancelable=Tl(h),Promise.resolve(h).then(l).catch(function(m){var p,_;if(!n.isResolved){var v=(p=t.retry)!=null?p:3,y=(_=t.retryDelay)!=null?_:uD,g=typeof y=="function"?y(n.failureCount,m):y,w=v===!0||typeof v=="number"&&n.failureCount"u"&&(a.exact=!0),this.queries.find(function(l){return mv(a,l)})},n.findAll=function(i,o){var s=Hn(i,o),a=s[0];return Object.keys(a).length>0?this.queries.filter(function(l){return mv(a,l)}):this.queries},n.notify=function(i){var o=this;$e.batch(function(){o.listeners.forEach(function(s){s(i)})})},n.onFocus=function(){var i=this;$e.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;$e.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},t}(Ms),pD=function(){function e(n){this.options=fe({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||mD(),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(ct).catch(ct)):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),Rl().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 OS({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=yD(this.state,r),$e.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},e}();function mD(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function yD(e,t){switch(t.type){case"failed":return fe({},e,{failureCount:e.failureCount+1});case"pause":return fe({},e,{isPaused:!0});case"continue":return fe({},e,{isPaused:!1});case"loading":return fe({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return fe({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return fe({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return fe({},e,t.state);default:return e}}var vD=function(e){ti(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 pD({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;$e.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 yv(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return yv(i,o)})},n.notify=function(i){var o=this;$e.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 $e.batch(function(){return i.reduce(function(o,s){return o.then(function(){return s.continue().catch(ct)})},Promise.resolve())})},t}(Ms);function cd(){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)||[],m=((a=t.state.data)==null?void 0:a.pageParams)||[],p=ES(),_=p==null?void 0:p.signal,v=m,y=!1,g=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function($,F,W,U){return v=U?[F].concat(v):[].concat(v,[F]),U?[W].concat($):[].concat($,[W])},x=function($,F,W,U){if(y)return Promise.reject("Cancelled");if(typeof W>"u"&&!F&&$.length)return Promise.resolve($);var M={queryKey:t.queryKey,signal:_,pageParam:W,meta:t.meta},z=g(M),H=Promise.resolve(z).then(function(te){return w($,W,te,U)});if(Tl(z)){var q=H;q.cancel=z.cancel}return H},T;if(!h.length)T=x([]);else if(f){var j=typeof c<"u",R=j?c:fd(t.options,h);T=x(h,j,R)}else if(d){var I=typeof c<"u",N=I?c:RS(t.options,h);T=x(h,I,N,!0)}else(function(){v=[];var K=typeof t.options.getNextPageParam>"u",$=l&&h[0]?l(h[0],0,h):!0;T=$?x([],K,m[0]):Promise.resolve(w([],m[0],h[0]));for(var F=function(M){T=T.then(function(z){var H=l&&h[M]?l(h[M],M,h):!0;if(H){var q=K?m[M]:fd(t.options,z);return x(z,K,q)}return Promise.resolve(w(z,m[M],h[M]))})},W=1;W"u"&&(c.revert=!0);var f=$e.batch(function(){return s.queryCache.findAll(l).map(function(d){return d.cancel(c)})});return Promise.all(f).then(ct).catch(ct)},t.invalidateQueries=function(r,i,o){var s,a,l,u=this,c=Hn(r,i,o),f=c[0],d=c[1],h=fe({},f,{active:(s=(a=f.refetchActive)!=null?a:f.active)!=null?s:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return $e.batch(function(){return u.queryCache.findAll(f).forEach(function(m){m.invalidate()}),u.refetchQueries(h,d)})},t.refetchQueries=function(r,i,o){var s=this,a=Hn(r,i,o),l=a[0],u=a[1],c=$e.batch(function(){return s.queryCache.findAll(l).map(function(d){return d.fetch(void 0,fe({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(c).then(ct);return u!=null&&u.throwOnError||(f=f.catch(ct)),f},t.fetchQuery=function(r,i,o){var s=Ho(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(ct).catch(ct)},t.fetchInfiniteQuery=function(r,i,o){var s=Ho(r,i,o);return s.behavior=cd(),this.fetchQuery(s)},t.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(ct).catch(ct)},t.cancelMutations=function(){var r=this,i=$e.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(ct).catch(ct)},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 Fr(r)===Fr(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 Cl(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(s){return Fr(r)===Fr(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 Cl(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=fe({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=ip(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:fe({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),kS=function(e){ti(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),wv(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return dd(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return dd(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&&Sv(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(fe({},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(ct)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Pl||this.currentResult.isStale||!ld(this.options.staleTime))){var o=bS(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,!(Pl||this.options.enabled===!1||!ld(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||Qo.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,m=i.state,p=m.dataUpdatedAt,_=m.error,v=m.errorUpdatedAt,y=m.isFetching,g=m.status,w=!1,x=!1,T;if(o.optimisticResults){var j=this.hasListeners(),R=!j&&wv(i,o),I=j&&Sv(i,s,o,a);(R||I)&&(y=!0,p||(g="loading"))}if(o.keepPreviousData&&!m.dataUpdateCount&&(h!=null&&h.isSuccess)&&g!=="error")T=h.data,p=h.dataUpdatedAt,g=h.status,w=!0;else if(o.select&&typeof m.data<"u")if(l&&m.data===(u==null?void 0:u.data)&&o.select===this.selectFn)T=this.selectResult;else try{this.selectFn=o.select,T=o.select(m.data),o.structuralSharing!==!1&&(T=Ol(l==null?void 0:l.data,T)),this.selectResult=T,this.selectError=null}catch(Y){Rl().error(Y),this.selectError=Y}else T=m.data;if(typeof o.placeholderData<"u"&&typeof T>"u"&&(g==="loading"||g==="idle")){var N;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(c==null?void 0:c.placeholderData))N=l.data;else if(N=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof N<"u")try{N=o.select(N),o.structuralSharing!==!1&&(N=Ol(l==null?void 0:l.data,N)),this.selectError=null}catch(Y){Rl().error(Y),this.selectError=Y}typeof N<"u"&&(g="success",T=N,x=!0)}this.selectError&&(_=this.selectError,T=this.selectResult,v=Date.now(),g="error");var J={status:g,isLoading:g==="loading",isSuccess:g==="success",isError:g==="error",isIdle:g==="idle",data:T,dataUpdatedAt:p,error:_,errorUpdatedAt:v,failureCount:m.fetchFailureCount,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:y,isRefetching:y&&g!=="loading",isLoadingError:g==="error"&&m.dataUpdatedAt===0,isPlaceholderData:x,isPreviousData:w,isRefetchError:g==="error"&&m.dataUpdatedAt!==0,isStale:op(i,o),refetch:this.refetch,remove:this.remove};return J},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(p){return p===c}),m=l==null?void 0:l.some(function(p){return p===c});return d&&!m&&(!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,!oD(this.currentResult,o)){var s={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(s.listeners=!0),this.notify(fe({},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"&&!Aa(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;$e.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}(Ms);function _D(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function wv(e,t){return _D(e,t)||e.state.dataUpdatedAt>0&&dd(e,t,t.refetchOnMount)}function dd(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&op(e,t)}return!1}function Sv(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&op(e,n)}function op(e,t){return e.isStaleByTime(t.staleTime)}var xD=function(e){ti(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,fe({},i,{behavior:cd()}),o)},n.getOptimisticResult=function(i){return i.behavior=cd(),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 fe({},h,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:gD(o,(s=d.data)==null?void 0:s.pages),hasPreviousPage:wD(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}(kS),bD=fb.unstable_batchedUpdates;$e.setBatchNotifyFunction(bD);var PD=console;fD(PD);var _v=Ye.createContext(void 0),jS=Ye.createContext(!1);function DS(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=_v),window.ReactQueryClientContext):_v}var ED=function(){var t=Ye.useContext(DS(Ye.useContext(jS)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},CD=function(t){var n=t.client,r=t.contextSharing,i=r===void 0?!1:r,o=t.children;Ye.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=DS(i);return Ye.createElement(jS.Provider,{value:i},Ye.createElement(s.Provider,{value:n},o))};function OD(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var TD=Ye.createContext(OD()),RD=function(){return Ye.useContext(TD)};function kD(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function MS(e,t){var n=Ye.useRef(!1),r=Ye.useState(0),i=r[1],o=ED(),s=RD(),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=$e.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=$e.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=$e.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=Ye.useState(function(){return new t(o,a)}),u=l[0],c=u.getOptimisticResult(a);if(Ye.useEffect(function(){n.current=!0,s.clearReset();var f=u.subscribe($e.batchCalls(function(){n.current&&i(function(d){return d+1})}));return u.updateResult(),function(){n.current=!1,f()}},[s,u]),Ye.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&&kD(a.suspense,a.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return a.notifyOnChangeProps==="tracked"&&(c=u.trackResult(c,a)),c}function jD(e,t,n){var r=Ho(e,t,n);return MS(r,kS)}function DD(e,t,n){var r=Ho(e,t,n);return MS(r,xD)}const Sn=(e,t,n=[],r={})=>jD([e,n],()=>_u(t),{...r}),MD=()=>{const[e,t]=P.useState(""),n=ph(a=>{var l;return(l=a.urlBaseForImages.url)==null?void 0:l.backdrop}),{data:r,isLoading:i,isError:o,error:s}=Sn("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}},Mc=(e,t,n="",r="",i)=>{const{data:o,isError:s,error:a,status:l}=Sn(e,`/${n}${t}${r}`,t,i);return{data:o,isError:s,error:a,status:l}},LD=(e,t)=>{var u;const{data:n,isLoading:r,isError:i,error:o}=Sn("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=KO(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}},xv=(e,t,n,r)=>{var _;const i=({pageParam:v=1})=>_u(`${e}`,{...t,page:v}),{data:o,error:s,isLoading:a,fetchNextPage:l,hasNextPage:u,isError:c,isFetching:f,isSuccess:d}=DD([n,[r]],i,{getNextPageParam:v=>v.pageo==null?void 0:o.pages.reduce((v,y)=>({results:[...v.results,...y.results]})),[o]),m=(_=o==null?void 0:o.pages[0])==null?void 0:_.total_results,p=o==null?void 0:o.pages;return{videos:h,error:s,isError:c,isLoading:a,fetchNextPage:l,hasNextPage:u,total_results:m,dataPages:p,isFetching:f,isSuccess:d}},LS=()=>({useTopRated:e=>Mc("top_movies",e,"","/top_rated",{enabled:!!e}),useTrending:e=>Mc("trending_movies",e,"trending/movie/","",{enabled:!!e}),usePopular:e=>Mc("popular_videos",e,"","/popular",{enabled:!!e}),useBanner:()=>MD(),useMovieDetails:(e,t)=>Sn(e,`/${e}/${t}`,t,{enabled:!!(e&&t)}),useCrew:(e,t)=>LD(e,t),usePerson:e=>Sn("person",`/person/${e}`,e),useTrailersList:(e,t)=>Sn("trailers_list",`/${e}/${t}/videos`,t,{enabled:!!(e&&t)}),useSimilar:(e,t)=>Sn("similar",`/${e}/${t}/similar`,t,{enabled:!!(e&&t)}),useRecommendations:(e,t)=>Sn("recommendations",`/${e}/${t}/recommendations`,t,{enabled:!!(e&&t)}),useVideoCreditsPerson:(e,t,n)=>Sn("movie_credits_person",`/person/${e}/${t}_credits`,[t,e],{enabled:!!(t&&e),...n}),useDiscover:(e,t,n,r)=>xv(e,t,n,r),useSearchQuery:(e,t,n,r)=>xv(e,t,n,r)}),AD="_banner__img_1cq81_1",ND="_banner_1cq81_1",FD="_banner__content_1cq81_42",ID="_title_1cq81_54",$D="_subtitle_1cq81_65",zD="_form_1cq81_75",VD="_form__btn_1cq81_121",Gn={banner__img:AD,banner:ND,"opacity-layer":"_opacity-layer_1cq81_34",banner__content:FD,title:ID,subtitle:$D,form:zD,form__btn:VD},UD=()=>{const{isLoading:e,banner:t}=LS().useBanner();return E.jsx(E.Fragment,{children:!e&&E.jsx("div",{className:Gn.banner__img,children:E.jsx(tD,{src:t})})})},BD=()=>{const e=P.useRef(null),t=Ph(),n=r=>{r.preventDefault(),e.current.value&&t(`/search/${e.current.value}`)};return E.jsx(E.Fragment,{children:E.jsxs("div",{className:Gn.banner__content,children:[E.jsx("h1",{className:Gn.title,children:"Welcome."}),E.jsx("h2",{className:Gn.subtitle,children:"Millions of movies, TV shows and people to discover. Explore now."}),E.jsxs("form",{className:Gn.form,onSubmit:n,children:[E.jsx("input",{ref:e,placeholder:"Search for a movie or tv show....",type:"text"}),E.jsx("button",{className:Gn.form__btn,children:E.jsx("span",{children:"Search"})})]})]})})},WD=()=>E.jsxs("div",{className:Gn.banner,children:[E.jsx(UD,{}),E.jsx("div",{className:Gn["opacity-layer"]}),E.jsx(BD,{})]}),HD=e=>{const[t,n]=P.useState([e[0]]),r=P.useCallback(i=>{n(i?[e[1]]:[e[0]])},[e]);return{endpoint:t,onTabChange:r}},QD=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}},qD="_heading_kbkkg_1",KD="_ellipse_kbkkg_15",GD="_title_kbkkg_21",YD="_slides_kbkkg_30",XD="_skeletons__item_kbkkg_41",JD="_skeletons__item_flex_kbkkg_50",ZD="_poster_kbkkg_64",eM="_text_kbkkg_70",tM="_genre_kbkkg_79",nM="_date_kbkkg_84",Ct={heading:qD,ellipse:KD,title:GD,switch:"_switch_kbkkg_25",slides:YD,skeletons__item:XD,skeletons__item_flex:JD,poster:ZD,text:eM,genre:tM,date:nM},rM=({tabsNames:e=[],children:t})=>E.jsx(E.Fragment,{children:E.jsxs("div",{className:"wrapper",children:[E.jsxs("div",{className:Ct.heading,children:[E.jsx("h3",{className:`title-article ${Ct.title} ${Ct.ellipse}`}),e.length?E.jsx("div",{className:`${Ct.switch} ${Ct.ellipse}`}):null]}),E.jsx("ul",{className:Ct.slides,children:t})]})}),iM=e=>t=>{const{tabsNames:n=[],isLoading:r,...i}=t;return E.jsx(E.Fragment,{children:r&&E.jsx(rM,{tabsNames:n,children:E.jsx(e,{...i})})})},oM=({classname:e="skeletons__item_flex"})=>{const t=+QD(e);return E.jsx(E.Fragment,{children:Array(t).fill("skeleton").map((n,r)=>E.jsxs("div",{className:`${Ct.skeletons__item} ${Ct[e]}`,children:[E.jsx("div",{className:`${Ct.poster} skeleton`}),E.jsxs("div",{className:Ct.text,children:[E.jsx("div",{className:`${Ct.title} skeleton`}),E.jsx("div",{className:`${Ct.genre} skeleton`}),E.jsx("div",{className:`${Ct.date} skeleton`})]})]},r))})},sM=iM(oM),aM="_tab_116yb_1",lM="_tab__wrapper_116yb_7",uM="_tab__label_116yb_17",cM="_active_116yb_32",fM="_tab__item_116yb_35",dM="_tab__radio_116yb_39",hM="_slider_116yb_57",pM="_slider_left_116yb_67",mM="_slider_right_116yb_70",yn={tab:aM,tab__wrapper:lM,tab__label:uM,active:cM,tab__item:fM,tab__radio:dM,"tab__label-span":"_tab__label-span_116yb_46",slider:hM,slider_left:pM,slider_right:mM},yM=({data:e,onTabChange:t})=>{const[n,r]=P.useState(0);function i(o){const s=Number(o.target.value);r(s),t(s)}return E.jsx("div",{className:yn.tab,children:E.jsxs("div",{className:yn.tab__wrapper,children:[e.map((o,s)=>E.jsxs("label",{className:`${yn.tab__label} ${n===s?yn.active:""}`,children:[E.jsx("input",{checked:n===s,className:yn.tab__radio,name:o,type:"radio",value:s,onChange:i}),E.jsx("span",{className:yn["tab__label-span"],children:o})]},o)),E.jsx("span",{className:`${yn.slider} ${n?yn.slider_right:yn.slider_left}`})]})})},vM="_heading_7r17o_6",gM="_slider_7r17o_1",wM="_wrapper_flex_7r17o_20",SM="_wrapper_7r17o_20",_M="_slides_7r17o_32",xM="_slider__title_7r17o_35",bM="_arrow_7r17o_41",PM="_arrow_left_7r17o_81",EM="_arrow_right_7r17o_84",CM="_arrow_hidden_7r17o_87",fa={"slider-box":"_slider-box_7r17o_1",heading:vM,slider:gM,wrapper_flex:wM,wrapper:SM,slides:_M,slider__title:xM,arrow:bM,arrow_left:PM,arrow_right:EM,arrow_hidden:CM},OM=({title:e,onTabChange:t,tabsNames:n=[],data:r,children:i})=>E.jsx(E.Fragment,{children:r!=null&&r.length?E.jsxs("div",{className:fa["slider-box"],children:[E.jsxs("div",{className:`${fa.heading} wrapper`,children:[E.jsx("h3",{className:"title-article",children:e}),n.length?E.jsx(yM,{data:n,onTabChange:t}):null]}),E.jsx("div",{className:`${fa.slider} slider-scroll`,children:E.jsx("div",{className:`${fa.wrapper} wrapper`,children:i})})]}):null}),TM=e=>t=>{const{endpoint:n="",title:r,onTabChange:i,tabsNames:o=[],data:s,classList:a}=t,l={endpoint:n,title:r,onTabChange:i,tabsNames:o,data:s,classList:a};return E.jsx(OM,{...l,children:E.jsx(e,{...t})})};var AS={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($S,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",m="date",p="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,y={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 $=["th","st","nd","rd"],F=K%100;return"["+K+($[(F-20)%10]||$[F]||$[0])+"]"}},g=function(K,$,F){var W=String(K);return!W||W.length>=$?K:""+Array($+1-W.length).join(F)+K},w={s:g,z:function(K){var $=-K.utcOffset(),F=Math.abs($),W=Math.floor(F/60),U=F%60;return($<=0?"+":"-")+g(W,2,"0")+":"+g(U,2,"0")},m:function K($,F){if($.date()1)return K(z[0])}else{var H=$.name;T[H]=$,U=H}return!W&&U&&(x=U),U||!W&&x},I=function(K,$){if(j(K))return K.clone();var F=typeof $=="object"?$:{};return F.date=K,F.args=arguments,new J(F)},N=w;N.l=R,N.i=j,N.w=function(K,$){return I(K,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var J=function(){function K(F){this.$L=R(F.locale,null,!0),this.parse(F)}var $=K.prototype;return $.parse=function(F){this.$d=function(W){var U=W.date,M=W.utc;if(U===null)return new Date(NaN);if(N.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var z=U.match(_);if(z){var H=z[2]-1||0,q=(z[7]||"0").substring(0,3);return M?new Date(Date.UTC(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)):new Date(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,q)}}return new Date(U)}(F),this.$x=F.x||{},this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return N},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(F,W){var U=I(F);return this.startOf(W)<=U&&U<=this.endOf(W)},$.isAfter=function(F,W){return I(F){const n=ph(i=>i.genres.all),r=String(e==null?void 0:e.map(i=>n[i]));return E.jsx("div",{className:bo["genres-box"],title:r||"",children:e!=null&&e.length?E.jsx("div",{className:`${bo.genres} ${bo[t]}`,children:e==null?void 0:e.map(i=>E.jsx("div",{className:bo.genre,children:n[i]},i))}):E.jsx("div",{className:bo["genres-empty"]})})};/*! ***************************************************************************** + `),()=>{document.head.removeChild(u)}},[t]),P.createElement(Cj,{isPresent:t,childRef:r,sizeRef:i},P.cloneElement(e,{ref:r}))}const Dc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{const a=mw(Rj),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(Oj,{isPresent:n},e)),P.createElement(bu.Provider,{value:u},e)};function Rj(){return new Map}function Tj(e){return P.useEffect(()=>()=>e(),[])}const ui=e=>e.key||"";function kj(e,t){e.forEach(n=>{const r=ui(n);t.set(r,n)})}function jj(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const SS=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{const a=P.useContext(zh).forceRender||Ej()[0],l=wS(),u=jj(e);let c=u;const f=P.useRef(new Map).current,d=P.useRef(c),h=P.useRef(new Map).current,m=P.useRef(!0);if(ml(()=>{m.current=!1,kj(u,h),d.current=c}),Tj(()=>{m.current=!0,h.clear(),f.clear()}),m.current)return P.createElement(P.Fragment,null,c.map(y=>P.createElement(Dc,{key:ui(y),isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s},y)));c=[...c];const p=d.current.map(ui),_=u.map(ui),v=p.length;for(let y=0;y{if(_.indexOf(g)!==-1)return;const w=h.get(g);if(!w)return;const x=p.indexOf(g);let R=y;if(!R){const j=()=>{h.delete(g),f.delete(g);const T=d.current.findIndex(I=>I.key===g);if(d.current.splice(T,1),!f.size){if(d.current=u,l.current===!1)return;a(),r&&r()}};R=P.createElement(Dc,{key:ui(w),isPresent:!1,onExitComplete:j,custom:t,presenceAffectsLayout:o,mode:s},w),f.set(g,R)}c.splice(x,0,R)}),c=c.map(y=>{const g=y.key;return f.has(g)?y:P.createElement(Dc,{key:ui(y),isPresent:!0,presenceAffectsLayout:o,mode:s},y)}),P.createElement(P.Fragment,null,f.size?c:c.map(y=>P.cloneElement(y)))},Dj="_header_1fsba_1",Mj="_top_1fsba_10",Lj="_show_1fsba_15",Aj="_hide_1fsba_18",Nj="_mobile__view_1fsba_26",Fj="_nav_1fsba_29",Ij="_logo_1fsba_44",$j="_nav__desktop_1fsba_98",zj="_nav__desktop__item_1fsba_107",Vj="_nav__desktop__link_1fsba_110",Uj="_buttons__mobile__menu_1fsba_157",Bj="_list_1fsba_167",Wj="_search_1fsba_182",Hj="_form_1fsba_191",qj="_input_search_1fsba_204",Qj="_nav__mobile_1fsba_225",Kj="_nav__mobile__item_1fsba_238",Gj="_nav__link_1fsba_248",Yj="_button_1fsba_157",Xj="_button_submit_1fsba_311",be={header:Dj,top:Mj,show:Lj,hide:Aj,mobile__view:Nj,nav:Fj,logo:Ij,nav__desktop:$j,nav__desktop__item:zj,nav__desktop__link:Vj,buttons__mobile__menu:Uj,list:Bj,search:Wj,form:Hj,input_search:qj,nav__mobile:Qj,nav__mobile__item:Kj,nav__link:Gj,button:Yj,button_submit:Xj},Jj=({isMenuOpen:e,setIsMenuOpen:t})=>{const{pathname:n}=Jr();return P.useEffect(()=>{t(!1)},[n,t]),E.jsx(SS,{children:e&&E.jsxs(gS.ul,{animate:{opacity:1},className:`${be.list} ${be.nav__mobile}`,exit:{opacity:0},initial:{opacity:0},transition:{duration:.2},children:[E.jsx("li",{className:be.nav__mobile__item,children:E.jsx(sr,{className:be.nav__link,to:"discover/movie",children:"Movies"})}),E.jsx("li",{className:be.nav__mobile__item,children:E.jsx(sr,{className:be.nav__link,to:"discover/tv",children:"TV Shows"})})]})})},Zj=({isSearchOpen:e})=>{const t=P.useRef(null),n=Ph(),r=i=>{i.preventDefault(),t.current.value&&n(`/search/${t.current.value}`)};return E.jsx(SS,{children:e&&E.jsx(gS.div,{animate:{opacity:1},className:`${be.list} ${be.search}`,exit:{opacity:0},initial:{opacity:0},transition:{duration:.2},children:E.jsxs("form",{action:"",className:be.form,onSubmit:r,children:[E.jsx("input",{ref:t,className:be.input_search,placeholder:"Search for a movie or tv show....",type:"text"}),E.jsx("button",{className:`${be.button} ${be.button_submit}`,children:E.jsx("img",{alt:"search",src:J1})})]})})})},eD=()=>{const{menuMobileRef:e,menuBtnRef:t,searchRef:n,searchBtnRef:r,isMenuOpen:i,setIsMenuOpen:o,isSearchOpen:s,setIsSearchOpen:a,show:l}=mR();return E.jsxs("header",{className:`${be.header} ${i?be.mobile__view:""} ${be[`${l}`]}`,children:[E.jsx("div",{className:"wrapper",children:E.jsxs("nav",{className:be.nav,children:[E.jsx(sr,{className:be.logo,to:"/",children:E.jsx("span",{children:"Movies App"})}),E.jsxs("ul",{className:be.nav__desktop,children:[E.jsx("li",{className:be.nav__desktop__item,children:E.jsx(sr,{className:be.nav__desktop__link,to:"discover/movie",children:"Movies"})}),E.jsx("li",{className:be.nav__desktop__item,children:E.jsx(sr,{className:be.nav__desktop__link,to:"discover/tv",children:"TV Shows"})})]}),E.jsxs("div",{className:be.buttons__mobile__menu,children:[E.jsx("button",{ref:r,className:be.button,onClick:()=>a(!s),children:s?E.jsx("img",{alt:"Close",src:fy}):E.jsx("img",{alt:"Search",src:J1})}),E.jsx("button",{ref:t,className:be.button,onClick:()=>o(!i),children:i?E.jsx("img",{alt:"Close",src:fy}):E.jsx("img",{alt:"Menu",src:yR})})]})]})}),E.jsx("div",{ref:n,children:E.jsx(Zj,{isSearchOpen:s})}),E.jsx("div",{ref:e,children:E.jsx(Jj,{isMenuOpen:i,setIsMenuOpen:o})})]})},tD=()=>{const e=nP();return P.useEffect(()=>{e(ja()),e(ka())},[e]),E.jsxs(E.Fragment,{children:[E.jsx(eD,{}),E.jsx(hE,{}),E.jsx(EE,{}),cs.createPortal(E.jsx(tR,{}),document.getElementById("root"),"buttonUp"),cs.createPortal(E.jsx(rR,{}),document.getElementById("root"),"themeSwitch"),E.jsx(hR,{})]})};var _S={exports:{}};(()=>{var e={181:(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,m=d||h||Function("return this")(),p=Object.prototype.toString,_=Math.max,v=Math.min,y=function(){return m.Date.now()};function g(x){var R=typeof x;return!!x&&(R=="object"||R=="function")}function w(x){if(typeof x=="number")return x;if(function(T){return typeof T=="symbol"||function(I){return!!I&&typeof I=="object"}(T)&&p.call(T)=="[object Symbol]"}(x))return NaN;if(g(x)){var R=typeof x.valueOf=="function"?x.valueOf():x;x=g(R)?R+"":R}if(typeof x!="string")return x===0?x:+x;x=x.replace(a,"");var j=u.test(x);return j||c.test(x)?f(x.slice(2),j?2:8):l.test(x)?NaN:+x}i.exports=function(x,R,j){var T,I,N,J,Y,K,$=0,F=!1,W=!1,U=!0;if(typeof x!="function")throw new TypeError("Expected a function");function M(ne){var Z=T,ue=I;return T=I=void 0,$=ne,J=x.apply(ue,Z)}function z(ne){var Z=ne-K;return K===void 0||Z>=R||Z<0||W&&ne-$>=N}function H(){var ne=y();if(z(ne))return Q(ne);Y=setTimeout(H,function(Z){var ue=R-(Z-K);return W?v(ue,N-(Z-$)):ue}(ne))}function Q(ne){return Y=void 0,U&&T?M(ne):(T=I=void 0,J)}function te(){var ne=y(),Z=z(ne);if(T=arguments,I=this,K=ne,Z){if(Y===void 0)return function(ue){return $=ue,Y=setTimeout(H,R),F?M(ue):J}(K);if(W)return Y=setTimeout(H,R),M(K)}return Y===void 0&&(Y=setTimeout(H,R)),J}return R=w(R)||0,g(j)&&(F=!!j.leading,N=(W="maxWait"in j)?_(w(j.maxWait)||0,R):N,U="trailing"in j?!!j.trailing:U),te.cancel=function(){Y!==void 0&&clearTimeout(Y),$=0,T=K=I=Y=void 0},te.flush=function(){return Y===void 0?J:Q(y())},te}},858:(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,m=parseInt,p=typeof s.g=="object"&&s.g&&s.g.Object===Object&&s.g,_=typeof self=="object"&&self&&self.Object===Object&&self,v=p||_||Function("return this")(),y=Object.prototype.toString,g=Math.max,w=Math.min,x=function(){return v.Date.now()};function R(T){var I=typeof T;return!!T&&(I=="object"||I=="function")}function j(T){if(typeof T=="number")return T;if(function(J){return typeof J=="symbol"||function(Y){return!!Y&&typeof Y=="object"}(J)&&y.call(J)==u}(T))return l;if(R(T)){var I=typeof T.valueOf=="function"?T.valueOf():T;T=R(I)?I+"":I}if(typeof T!="string")return T===0?T:+T;T=T.replace(c,"");var N=d.test(T);return N||h.test(T)?m(T.slice(2),N?2:8):f.test(T)?l:+T}i.exports=function(T,I,N){var J=!0,Y=!0;if(typeof T!="function")throw new TypeError(a);return R(N)&&(J="leading"in N?!!N.leading:J,Y="trailing"in N?!!N.trailing:Y),function(K,$,F){var W,U,M,z,H,Q,te=0,ne=!1,Z=!1,ue=!0;if(typeof K!="function")throw new TypeError(a);function me(pe){var Ve=W,Qe=U;return W=U=void 0,te=pe,z=K.apply(Qe,Ve)}function Be(pe){var Ve=pe-Q;return Q===void 0||Ve>=$||Ve<0||Z&&pe-te>=M}function Se(){var pe=x();if(Be(pe))return ge(pe);H=setTimeout(Se,function(Ve){var Qe=$-(Ve-Q);return Z?w(Qe,M-(Ve-te)):Qe}(pe))}function ge(pe){return H=void 0,ue&&W?me(pe):(W=U=void 0,z)}function ke(){var pe=x(),Ve=Be(pe);if(W=arguments,U=this,Q=pe,Ve){if(H===void 0)return function(Qe){return te=Qe,H=setTimeout(Se,$),ne?me(Qe):z}(Q);if(Z)return H=setTimeout(Se,$),me(Q)}return H===void 0&&(H=setTimeout(Se,$)),z}return $=j($)||0,R(F)&&(ne=!!F.leading,M=(Z="maxWait"in F)?g(j(F.maxWait)||0,$):M,ue="trailing"in F?!!F.trailing:ue),ke.cancel=function(){H!==void 0&&clearTimeout(H),te=0,W=Q=U=H=void 0},ke.flush=function(){return H===void 0?z:ge(x())},ke}(T,I,{leading:J,maxWait:I,trailing:Y})}},694:(i,o,s)=>{var a=s(925);function l(){}function u(){}u.resetWarningCache=l,i.exports=function(){function c(h,m,p,_,v,y){if(y!==a){var g=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 g.name="Invariant Violation",g}}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}},556:(i,o,s)=>{i.exports=s(694)()},925: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:()=>no,LazyLoadImage:()=>A,trackWindowScroll:()=>ne});const i=P;var o=n.n(i),s=n(556);function a(){return typeof window<"u"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function l(b){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},l(b)}function u(b,S){var O=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);S&&(D=D.filter(function(C){return Object.getOwnPropertyDescriptor(b,C).enumerable})),O.push.apply(O,D)}return O}function c(b,S,O){return(S=d(S))in b?Object.defineProperty(b,S,{value:O,enumerable:!0,configurable:!0,writable:!0}):b[S]=O,b}function f(b,S){for(var O=0;O0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,k=this.placeholder.getBoundingClientRect(),B=this.placeholder.style,G=parseInt(B.getPropertyValue("margin-left"),10)||0,X=parseInt(B.getPropertyValue("margin-top"),10)||0;return{bottom:C.y+k.bottom+X,left:C.x+k.left+G,right:C.x+k.right+G,top:C.y+k.top+X}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window>"u"||!this.placeholder)return!1;var C=this.props,k=C.scrollPosition,B=C.threshold,G=this.getPlaceholderBoundingBox(k),X=k.y+window.innerHeight,ie=k.x,oe=k.x+window.innerWidth,ae=k.y;return ae-B<=G.bottom&&X+B>=G.top&&ie-B<=G.right&&oe+B>=G.left}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var C=this,k=this.props,B=k.className,G=k.height,X=k.placeholder,ie=k.style,oe=k.width;if(X&&typeof X.type!="function")return o().cloneElement(X,{ref:function(le){return C.placeholder=le}});var ae=function(le){for(var je=1;je"u"?0:window.scrollX||window.pageXOffset},te=function(){return typeof window>"u"?0:window.scrollY||window.pageYOffset};const ne=function(b){var S=function(O){function D(B){var G;if(function(ie,oe){if(!(ie instanceof oe))throw new TypeError("Cannot call a class as a function")}(this,D),(G=W(this,D,[B])).useIntersectionObserver=B.useIntersectionObserver&&a(),G.useIntersectionObserver)return U(G);var X=G.onChangeScroll.bind(G);return B.delayMethod==="debounce"?G.delayedScroll=R()(X,B.delayTime):B.delayMethod==="throttle"&&(G.delayedScroll=T()(X,B.delayTime)),G.state={scrollPosition:{x:Q(),y:te()}},G.baseComponentRef=o().createRef(),G}return function(B,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),G&&H(B,G)}(D,O),C=D,k=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window>"u"||this.useIntersectionObserver||N(this.baseComponentRef.current)!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window>"u"||this.useIntersectionObserver||(this.scrollElement=N(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:Q(),y:te()}})}},{key:"render",value:function(){var B=this.props,G=(B.delayMethod,B.delayTime,function(ie,oe){if(ie==null)return{};var ae,le,je=function(Fe,Pt){if(Fe==null)return{};var Er={};for(var In in Fe)if({}.hasOwnProperty.call(Fe,In)){if(Pt.indexOf(In)>=0)continue;Er[In]=Fe[In]}return Er}(ie,oe);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ie);for(le=0;le=0||{}.propertyIsEnumerable.call(ie,ae)&&(je[ae]=ie[ae])}return je}(B,Y)),X=this.useIntersectionObserver?null:this.state.scrollPosition;return o().createElement(b,K({forwardRef:this.baseComponentRef,scrollPosition:X},G))}}],k&&$(C.prototype,k),Object.defineProperty(C,"prototype",{writable:!1}),C;var C,k}(o().Component);return S.propTypes={delayMethod:s.PropTypes.oneOf(["debounce","throttle"]),delayTime:s.PropTypes.number,useIntersectionObserver:s.PropTypes.bool},S.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},S};function Z(b){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},Z(b)}function ue(b,S){for(var O=0;O=0&&Number.isFinite(X.y)&&X.y>=0),k}return function(C,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),Object.defineProperty(C,"prototype",{writable:!1}),k&&xr(C,k)}(S,b),O=S,(D=[{key:"componentDidUpdate",value:function(C,k){k.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 C=this.props,k=C.className,B=C.delayMethod,G=C.delayTime,X=C.height,ie=C.placeholder,oe=C.scrollPosition,ae=C.style,le=C.threshold,je=C.useIntersectionObserver,Ne=C.width;return this.isScrollTracked||je&&a()?o().createElement(w,{className:k,height:X,onVisible:this.onVisible,placeholder:ie,scrollPosition:oe,style:ae,threshold:le,useIntersectionObserver:je,width:Ne}):o().createElement(Ve,{className:k,delayMethod:B,delayTime:G,height:X,onVisible:this.onVisible,placeholder:ie,style:ae,threshold:le,width:Ne})}}])&&ju(O.prototype,D),Object.defineProperty(O,"prototype",{writable:!1}),O;var O,D}(o().Component);At.propTypes={afterLoad:s.PropTypes.func,beforeLoad:s.PropTypes.func,useIntersectionObserver:s.PropTypes.bool,visibleByDefault:s.PropTypes.bool},At.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const no=At;function mn(b){return mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},mn(b)}var As=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Ns(b,S){var O=Object.keys(b);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(b);S&&(D=D.filter(function(C){return Object.getOwnPropertyDescriptor(b,C).enumerable})),O.push.apply(O,D)}return O}function ro(b){for(var S=1;S=0)continue;Ne[Fe]=le[Fe]}return Ne}(B,G);if(Object.getOwnPropertySymbols){var ae=Object.getOwnPropertySymbols(B);for(ie=0;ie=0||{}.propertyIsEnumerable.call(B,X)&&(oe[X]=B[X])}return oe}(C,As));return o().createElement("img",br({},k,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var C=this.props,k=C.beforeLoad,B=C.className,G=C.delayMethod,X=C.delayTime,ie=C.height,oe=C.placeholder,ae=C.scrollPosition,le=C.style,je=C.threshold,Ne=C.useIntersectionObserver,Fe=C.visibleByDefault,Pt=C.width;return o().createElement(no,{beforeLoad:k,className:B,delayMethod:G,delayTime:X,height:ie,placeholder:oe,scrollPosition:ae,style:le,threshold:je,useIntersectionObserver:Ne,visibleByDefault:Fe,width:Pt},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(C){var k=this.props,B=k.effect,G=k.height,X=k.placeholderSrc,ie=k.width,oe=k.wrapperClassName,ae=k.wrapperProps,le=this.state.loaded,je=le?" lazy-load-image-loaded":"",Ne=le||!X?{}:{backgroundImage:"url(".concat(X,")"),backgroundSize:"100% 100%"};return o().createElement("span",br({className:oe+" lazy-load-image-background "+B+je,style:ro(ro({},Ne),{},{color:"transparent",display:"inline-block",height:G,width:ie})},ae),C)}},{key:"render",value:function(){var C=this.props,k=C.effect,B=C.placeholderSrc,G=C.visibleByDefault,X=C.wrapperClassName,ie=C.wrapperProps,oe=this.getLazyLoadImage();return(k||B)&&!G||X||ie?this.getWrappedLazyLoadImage(oe):oe}}],D&&io(O.prototype,D),Object.defineProperty(O,"prototype",{writable:!1}),O;var O,D}(o().Component);L.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},L.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const A=L})(),_S.exports=r})();var xS=_S.exports;const nD=({src:e,className:t="",...n})=>E.jsx(xS.LazyLoadImage,{alt:"Movie banner",className:t,effect:"blur",src:e,...n});function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ad(e,t)}function ti(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ad(e,t)}var Ms=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}(),Pl=typeof window>"u";function ct(){}function rD(e,t){return typeof e=="function"?e(t):e}function ld(e){return typeof e=="number"&&e>=0&&e!==1/0}function El(e){return Array.isArray(e)?e:[e]}function bS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ho(e,t,n){return ku(e)?typeof t=="function"?fe({},n,{queryKey:e,queryFn:t}):fe({},t,{queryKey:e}):e}function Hn(e,t,n){return ku(e)?[fe({},t,{queryKey:e}),n]:[e||{},t]}function iD(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 mv(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(ku(a)){if(r){if(t.queryHash!==ip(a,t.options))return!1}else if(!Cl(t.queryKey,a))return!1}var u=iD(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 yv(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(ku(o)){if(!t.options.mutationKey)return!1;if(n){if(Fr(t.options.mutationKey)!==Fr(o))return!1}else if(!Cl(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function ip(e,t){var n=(t==null?void 0:t.queryKeyHashFn)||Fr;return n(e)}function Fr(e){var t=El(e);return oD(t)}function oD(e){return JSON.stringify(e,function(t,n){return ud(n)?Object.keys(n).sort().reduce(function(r,i){return r[i]=n[i],r},{}):n})}function Cl(e,t){return PS(El(e),El(t))}function PS(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!PS(e[n],t[n])}):!1}function Ol(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||ud(e)&&ud(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!(!vv(n)||!n.hasOwnProperty("isPrototypeOf"))}function vv(e){return Object.prototype.toString.call(e)==="[object Object]"}function ku(e){return typeof e=="string"||Array.isArray(e)}function aD(e){return new Promise(function(t){setTimeout(t,e)})}function gv(e){Promise.resolve().then(e).catch(function(t){return setTimeout(function(){throw t})})}function ES(){if(typeof AbortController=="function")return new AbortController}var lD=function(e){ti(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!Pl&&((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}(Ms),qo=new lD,uD=function(e){ti(t,e);function t(){var r;return r=e.call(this)||this,r.setup=function(i){var o;if(!Pl&&((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}(Ms),La=new uD;function cD(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Rl(e){return typeof(e==null?void 0:e.cancel)=="function"}var CS=function(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent};function Aa(e){return e instanceof CS}var OS=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(m){h=Promise.reject(m)}i=function(p){if(!n.isResolved&&(u(new CS(p)),n.abort==null||n.abort(),Rl(h)))try{h.cancel()}catch{}},n.isTransportCancelable=Rl(h),Promise.resolve(h).then(l).catch(function(m){var p,_;if(!n.isResolved){var v=(p=t.retry)!=null?p:3,y=(_=t.retryDelay)!=null?_:cD,g=typeof y=="function"?y(n.failureCount,m):y,w=v===!0||typeof v=="number"&&n.failureCount"u"&&(a.exact=!0),this.queries.find(function(l){return mv(a,l)})},n.findAll=function(i,o){var s=Hn(i,o),a=s[0];return Object.keys(a).length>0?this.queries.filter(function(l){return mv(a,l)}):this.queries},n.notify=function(i){var o=this;$e.batch(function(){o.listeners.forEach(function(s){s(i)})})},n.onFocus=function(){var i=this;$e.batch(function(){i.queries.forEach(function(o){o.onFocus()})})},n.onOnline=function(){var i=this;$e.batch(function(){i.queries.forEach(function(o){o.onOnline()})})},t}(Ms),mD=function(){function e(n){this.options=fe({},n.defaultOptions,n.options),this.mutationId=n.mutationId,this.mutationCache=n.mutationCache,this.observers=[],this.state=n.state||yD(),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(ct).catch(ct)):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),Tl().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 OS({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=vD(this.state,r),$e.batch(function(){i.observers.forEach(function(o){o.onMutationUpdate(r)}),i.mutationCache.notify(i)})},e}();function yD(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}function vD(e,t){switch(t.type){case"failed":return fe({},e,{failureCount:e.failureCount+1});case"pause":return fe({},e,{isPaused:!0});case"continue":return fe({},e,{isPaused:!1});case"loading":return fe({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return fe({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return fe({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return fe({},e,t.state);default:return e}}var gD=function(e){ti(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 mD({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;$e.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 yv(i,o)})},n.findAll=function(i){return this.mutations.filter(function(o){return yv(i,o)})},n.notify=function(i){var o=this;$e.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 $e.batch(function(){return i.reduce(function(o,s){return o.then(function(){return s.continue().catch(ct)})},Promise.resolve())})},t}(Ms);function cd(){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)||[],m=((a=t.state.data)==null?void 0:a.pageParams)||[],p=ES(),_=p==null?void 0:p.signal,v=m,y=!1,g=t.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function($,F,W,U){return v=U?[F].concat(v):[].concat(v,[F]),U?[W].concat($):[].concat($,[W])},x=function($,F,W,U){if(y)return Promise.reject("Cancelled");if(typeof W>"u"&&!F&&$.length)return Promise.resolve($);var M={queryKey:t.queryKey,signal:_,pageParam:W,meta:t.meta},z=g(M),H=Promise.resolve(z).then(function(te){return w($,W,te,U)});if(Rl(z)){var Q=H;Q.cancel=z.cancel}return H},R;if(!h.length)R=x([]);else if(f){var j=typeof c<"u",T=j?c:fd(t.options,h);R=x(h,j,T)}else if(d){var I=typeof c<"u",N=I?c:TS(t.options,h);R=x(h,I,N,!0)}else(function(){v=[];var K=typeof t.options.getNextPageParam>"u",$=l&&h[0]?l(h[0],0,h):!0;R=$?x([],K,m[0]):Promise.resolve(w([],m[0],h[0]));for(var F=function(M){R=R.then(function(z){var H=l&&h[M]?l(h[M],M,h):!0;if(H){var Q=K?m[M]:fd(t.options,z);return x(z,K,Q)}return Promise.resolve(w(z,m[M],h[M]))})},W=1;W"u"&&(c.revert=!0);var f=$e.batch(function(){return s.queryCache.findAll(l).map(function(d){return d.cancel(c)})});return Promise.all(f).then(ct).catch(ct)},t.invalidateQueries=function(r,i,o){var s,a,l,u=this,c=Hn(r,i,o),f=c[0],d=c[1],h=fe({},f,{active:(s=(a=f.refetchActive)!=null?a:f.active)!=null?s:!0,inactive:(l=f.refetchInactive)!=null?l:!1});return $e.batch(function(){return u.queryCache.findAll(f).forEach(function(m){m.invalidate()}),u.refetchQueries(h,d)})},t.refetchQueries=function(r,i,o){var s=this,a=Hn(r,i,o),l=a[0],u=a[1],c=$e.batch(function(){return s.queryCache.findAll(l).map(function(d){return d.fetch(void 0,fe({},u,{meta:{refetchPage:l==null?void 0:l.refetchPage}}))})}),f=Promise.all(c).then(ct);return u!=null&&u.throwOnError||(f=f.catch(ct)),f},t.fetchQuery=function(r,i,o){var s=Ho(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(ct).catch(ct)},t.fetchInfiniteQuery=function(r,i,o){var s=Ho(r,i,o);return s.behavior=cd(),this.fetchQuery(s)},t.prefetchInfiniteQuery=function(r,i,o){return this.fetchInfiniteQuery(r,i,o).then(ct).catch(ct)},t.cancelMutations=function(){var r=this,i=$e.batch(function(){return r.mutationCache.getAll().map(function(o){return o.cancel()})});return Promise.all(i).then(ct).catch(ct)},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 Fr(r)===Fr(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 Cl(r,o.queryKey)}))==null?void 0:i.defaultOptions:void 0},t.setMutationDefaults=function(r,i){var o=this.mutationDefaults.find(function(s){return Fr(r)===Fr(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 Cl(r,o.mutationKey)}))==null?void 0:i.defaultOptions:void 0},t.defaultQueryOptions=function(r){if(r!=null&&r._defaulted)return r;var i=fe({},this.defaultOptions.queries,this.getQueryDefaults(r==null?void 0:r.queryKey),r,{_defaulted:!0});return!i.queryHash&&i.queryKey&&(i.queryHash=ip(i.queryKey,i)),i},t.defaultQueryObserverOptions=function(r){return this.defaultQueryOptions(r)},t.defaultMutationOptions=function(r){return r!=null&&r._defaulted?r:fe({},this.defaultOptions.mutations,this.getMutationDefaults(r==null?void 0:r.mutationKey),r,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}(),kS=function(e){ti(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),wv(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return dd(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return dd(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&&Sv(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(fe({},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(ct)),o},n.updateStaleTimeout=function(){var i=this;if(this.clearStaleTimeout(),!(Pl||this.currentResult.isStale||!ld(this.options.staleTime))){var o=bS(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,!(Pl||this.options.enabled===!1||!ld(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(function(){(o.options.refetchIntervalInBackground||qo.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,m=i.state,p=m.dataUpdatedAt,_=m.error,v=m.errorUpdatedAt,y=m.isFetching,g=m.status,w=!1,x=!1,R;if(o.optimisticResults){var j=this.hasListeners(),T=!j&&wv(i,o),I=j&&Sv(i,s,o,a);(T||I)&&(y=!0,p||(g="loading"))}if(o.keepPreviousData&&!m.dataUpdateCount&&(h!=null&&h.isSuccess)&&g!=="error")R=h.data,p=h.dataUpdatedAt,g=h.status,w=!0;else if(o.select&&typeof m.data<"u")if(l&&m.data===(u==null?void 0:u.data)&&o.select===this.selectFn)R=this.selectResult;else try{this.selectFn=o.select,R=o.select(m.data),o.structuralSharing!==!1&&(R=Ol(l==null?void 0:l.data,R)),this.selectResult=R,this.selectError=null}catch(Y){Tl().error(Y),this.selectError=Y}else R=m.data;if(typeof o.placeholderData<"u"&&typeof R>"u"&&(g==="loading"||g==="idle")){var N;if(l!=null&&l.isPlaceholderData&&o.placeholderData===(c==null?void 0:c.placeholderData))N=l.data;else if(N=typeof o.placeholderData=="function"?o.placeholderData():o.placeholderData,o.select&&typeof N<"u")try{N=o.select(N),o.structuralSharing!==!1&&(N=Ol(l==null?void 0:l.data,N)),this.selectError=null}catch(Y){Tl().error(Y),this.selectError=Y}typeof N<"u"&&(g="success",R=N,x=!0)}this.selectError&&(_=this.selectError,R=this.selectResult,v=Date.now(),g="error");var J={status:g,isLoading:g==="loading",isSuccess:g==="success",isError:g==="error",isIdle:g==="idle",data:R,dataUpdatedAt:p,error:_,errorUpdatedAt:v,failureCount:m.fetchFailureCount,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:y,isRefetching:y&&g!=="loading",isLoadingError:g==="error"&&m.dataUpdatedAt===0,isPlaceholderData:x,isPreviousData:w,isRefetchError:g==="error"&&m.dataUpdatedAt!==0,isStale:op(i,o),refetch:this.refetch,remove:this.remove};return J},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(p){return p===c}),m=l==null?void 0:l.some(function(p){return p===c});return d&&!m&&(!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,!sD(this.currentResult,o)){var s={cache:!0};(i==null?void 0:i.listeners)!==!1&&this.shouldNotifyListeners(this.currentResult,o)&&(s.listeners=!0),this.notify(fe({},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"&&!Aa(i.error)&&(o.onError=!0),this.updateResult(o),this.hasListeners()&&this.updateTimers()},n.notify=function(i){var o=this;$e.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}(Ms);function xD(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function wv(e,t){return xD(e,t)||e.state.dataUpdatedAt>0&&dd(e,t,t.refetchOnMount)}function dd(e,t,n){if(t.enabled!==!1){var r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&op(e,t)}return!1}function Sv(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&op(e,n)}function op(e,t){return e.isStaleByTime(t.staleTime)}var bD=function(e){ti(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,fe({},i,{behavior:cd()}),o)},n.getOptimisticResult=function(i){return i.behavior=cd(),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 fe({},h,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:wD(o,(s=d.data)==null?void 0:s.pages),hasPreviousPage:SD(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}(kS),PD=fb.unstable_batchedUpdates;$e.setBatchNotifyFunction(PD);var ED=console;dD(ED);var _v=Ye.createContext(void 0),jS=Ye.createContext(!1);function DS(e){return e&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=_v),window.ReactQueryClientContext):_v}var CD=function(){var t=Ye.useContext(DS(Ye.useContext(jS)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OD=function(t){var n=t.client,r=t.contextSharing,i=r===void 0?!1:r,o=t.children;Ye.useEffect(function(){return n.mount(),function(){n.unmount()}},[n]);var s=DS(i);return Ye.createElement(jS.Provider,{value:i},Ye.createElement(s.Provider,{value:n},o))};function RD(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var TD=Ye.createContext(RD()),kD=function(){return Ye.useContext(TD)};function jD(e,t,n){return typeof t=="function"?t.apply(void 0,n):typeof t=="boolean"?t:!!e}function MS(e,t){var n=Ye.useRef(!1),r=Ye.useState(0),i=r[1],o=CD(),s=kD(),a=o.defaultQueryObserverOptions(e);a.optimisticResults=!0,a.onError&&(a.onError=$e.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=$e.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=$e.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=Ye.useState(function(){return new t(o,a)}),u=l[0],c=u.getOptimisticResult(a);if(Ye.useEffect(function(){n.current=!0,s.clearReset();var f=u.subscribe($e.batchCalls(function(){n.current&&i(function(d){return d+1})}));return u.updateResult(),function(){n.current=!1,f()}},[s,u]),Ye.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&&jD(a.suspense,a.useErrorBoundary,[c.error,u.getCurrentQuery()]))throw c.error;return a.notifyOnChangeProps==="tracked"&&(c=u.trackResult(c,a)),c}function DD(e,t,n){var r=Ho(e,t,n);return MS(r,kS)}function MD(e,t,n){var r=Ho(e,t,n);return MS(r,bD)}const Sn=(e,t,n=[],r={})=>DD([e,n],()=>_u(t),{...r}),LD=()=>{const[e,t]=P.useState(""),n=ph(a=>{var l;return(l=a.urlBaseForImages.url)==null?void 0:l.backdrop}),{data:r,isLoading:i,isError:o,error:s}=Sn("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}},Mc=(e,t,n="",r="",i)=>{const{data:o,isError:s,error:a,status:l}=Sn(e,`/${n}${t}${r}`,t,i);return{data:o,isError:s,error:a,status:l}},AD=(e,t)=>{var u;const{data:n,isLoading:r,isError:i,error:o}=Sn("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=KO(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}},xv=(e,t,n,r)=>{var _;const i=({pageParam:v=1})=>_u(`${e}`,{...t,page:v}),{data:o,error:s,isLoading:a,fetchNextPage:l,hasNextPage:u,isError:c,isFetching:f,isSuccess:d}=MD([n,[r]],i,{getNextPageParam:v=>v.pageo==null?void 0:o.pages.reduce((v,y)=>({results:[...v.results,...y.results]})),[o]),m=(_=o==null?void 0:o.pages[0])==null?void 0:_.total_results,p=o==null?void 0:o.pages;return{videos:h,error:s,isError:c,isLoading:a,fetchNextPage:l,hasNextPage:u,total_results:m,dataPages:p,isFetching:f,isSuccess:d}},LS=()=>({useTopRated:e=>Mc("top_movies",e,"","/top_rated",{enabled:!!e}),useTrending:e=>Mc("trending_movies",e,"trending/movie/","",{enabled:!!e}),usePopular:e=>Mc("popular_videos",e,"","/popular",{enabled:!!e}),useBanner:()=>LD(),useMovieDetails:(e,t)=>Sn(e,`/${e}/${t}`,t,{enabled:!!(e&&t)}),useCrew:(e,t)=>AD(e,t),usePerson:e=>Sn("person",`/person/${e}`,e),useTrailersList:(e,t)=>Sn("trailers_list",`/${e}/${t}/videos`,t,{enabled:!!(e&&t)}),useSimilar:(e,t)=>Sn("similar",`/${e}/${t}/similar`,t,{enabled:!!(e&&t)}),useRecommendations:(e,t)=>Sn("recommendations",`/${e}/${t}/recommendations`,t,{enabled:!!(e&&t)}),useVideoCreditsPerson:(e,t,n)=>Sn("movie_credits_person",`/person/${e}/${t}_credits`,[t,e],{enabled:!!(t&&e),...n}),useDiscover:(e,t,n,r)=>xv(e,t,n,r),useSearchQuery:(e,t,n,r)=>xv(e,t,n,r)}),ND="_banner__img_khv9k_1",FD="_banner_khv9k_1",ID="_banner__content_khv9k_42",$D="_title_khv9k_54",zD="_subtitle_khv9k_65",VD="_form_khv9k_75",UD="_form__btn_khv9k_121",Gn={banner__img:ND,banner:FD,"opacity-layer":"_opacity-layer_khv9k_34",banner__content:ID,title:$D,subtitle:zD,form:VD,form__btn:UD},BD=()=>{const{isLoading:e,banner:t}=LS().useBanner();return E.jsx(E.Fragment,{children:!e&&E.jsx("div",{className:Gn.banner__img,children:E.jsx(nD,{src:t})})})},WD=()=>{const e=P.useRef(null),t=Ph(),n=r=>{r.preventDefault(),e.current.value&&t(`/search/${e.current.value}`)};return E.jsx(E.Fragment,{children:E.jsxs("div",{className:Gn.banner__content,children:[E.jsx("h1",{className:Gn.title,children:"Welcome."}),E.jsx("h2",{className:Gn.subtitle,children:"Millions of movies, TV shows and people to discover. Explore now."}),E.jsxs("form",{className:Gn.form,onSubmit:n,children:[E.jsx("input",{ref:e,placeholder:"Search for a movie or tv show....",type:"text"}),E.jsx("button",{className:Gn.form__btn,children:E.jsx("span",{children:"Search"})})]})]})})},HD=()=>E.jsxs("div",{className:Gn.banner,children:[E.jsx(BD,{}),E.jsx("div",{className:Gn["opacity-layer"]}),E.jsx(WD,{})]}),qD=e=>{const[t,n]=P.useState([e[0]]),r=P.useCallback(i=>{n(i?[e[1]]:[e[0]])},[e]);return{endpoint:t,onTabChange:r}},QD=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}},KD="_heading_kbkkg_1",GD="_ellipse_kbkkg_15",YD="_title_kbkkg_21",XD="_slides_kbkkg_30",JD="_skeletons__item_kbkkg_41",ZD="_skeletons__item_flex_kbkkg_50",eM="_poster_kbkkg_64",tM="_text_kbkkg_70",nM="_genre_kbkkg_79",rM="_date_kbkkg_84",Ct={heading:KD,ellipse:GD,title:YD,switch:"_switch_kbkkg_25",slides:XD,skeletons__item:JD,skeletons__item_flex:ZD,poster:eM,text:tM,genre:nM,date:rM},iM=({tabsNames:e=[],children:t})=>E.jsx(E.Fragment,{children:E.jsxs("div",{className:"wrapper",children:[E.jsxs("div",{className:Ct.heading,children:[E.jsx("h3",{className:`title-article ${Ct.title} ${Ct.ellipse}`}),e.length?E.jsx("div",{className:`${Ct.switch} ${Ct.ellipse}`}):null]}),E.jsx("ul",{className:Ct.slides,children:t})]})}),oM=e=>t=>{const{tabsNames:n=[],isLoading:r,...i}=t;return E.jsx(E.Fragment,{children:r&&E.jsx(iM,{tabsNames:n,children:E.jsx(e,{...i})})})},sM=({classname:e="skeletons__item_flex"})=>{const t=+QD(e);return E.jsx(E.Fragment,{children:Array(t).fill("skeleton").map((n,r)=>E.jsxs("div",{className:`${Ct.skeletons__item} ${Ct[e]}`,children:[E.jsx("div",{className:`${Ct.poster} skeleton`}),E.jsxs("div",{className:Ct.text,children:[E.jsx("div",{className:`${Ct.title} skeleton`}),E.jsx("div",{className:`${Ct.genre} skeleton`}),E.jsx("div",{className:`${Ct.date} skeleton`})]})]},r))})},aM=oM(sM),lM="_tab_116yb_1",uM="_tab__wrapper_116yb_7",cM="_tab__label_116yb_17",fM="_active_116yb_32",dM="_tab__item_116yb_35",hM="_tab__radio_116yb_39",pM="_slider_116yb_57",mM="_slider_left_116yb_67",yM="_slider_right_116yb_70",yn={tab:lM,tab__wrapper:uM,tab__label:cM,active:fM,tab__item:dM,tab__radio:hM,"tab__label-span":"_tab__label-span_116yb_46",slider:pM,slider_left:mM,slider_right:yM},vM=({data:e,onTabChange:t})=>{const[n,r]=P.useState(0);function i(o){const s=Number(o.target.value);r(s),t(s)}return E.jsx("div",{className:yn.tab,children:E.jsxs("div",{className:yn.tab__wrapper,children:[e.map((o,s)=>E.jsxs("label",{className:`${yn.tab__label} ${n===s?yn.active:""}`,children:[E.jsx("input",{checked:n===s,className:yn.tab__radio,name:o,type:"radio",value:s,onChange:i}),E.jsx("span",{className:yn["tab__label-span"],children:o})]},o)),E.jsx("span",{className:`${yn.slider} ${n?yn.slider_right:yn.slider_left}`})]})})},gM="_heading_inj41_6",wM="_slider_inj41_1",SM="_wrapper_flex_inj41_20",_M="_wrapper_inj41_20",xM="_slides_inj41_32",bM="_slider__title_inj41_35",PM="_arrow_inj41_41",EM="_arrow_left_inj41_95",CM="_arrow_right_inj41_98",OM="_arrow_hidden_inj41_101",fa={"slider-box":"_slider-box_inj41_1",heading:gM,slider:wM,wrapper_flex:SM,wrapper:_M,slides:xM,slider__title:bM,arrow:PM,arrow_left:EM,arrow_right:CM,arrow_hidden:OM},RM=({title:e,onTabChange:t,tabsNames:n=[],data:r,children:i})=>E.jsx(E.Fragment,{children:r!=null&&r.length?E.jsxs("div",{className:fa["slider-box"],children:[E.jsxs("div",{className:`${fa.heading} wrapper`,children:[E.jsx("h3",{className:"title-article",children:e}),n.length?E.jsx(vM,{data:n,onTabChange:t}):null]}),E.jsx("div",{className:`${fa.slider} slider-scroll`,children:E.jsx("div",{className:`${fa.wrapper} wrapper`,children:i})})]}):null}),TM=e=>t=>{const{endpoint:n="",title:r,onTabChange:i,tabsNames:o=[],data:s,classList:a}=t,l={endpoint:n,title:r,onTabChange:i,tabsNames:o,data:s,classList:a};return E.jsx(RM,{...l,children:E.jsx(e,{...t})})};var AS={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($S,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",m="date",p="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,y={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 $=["th","st","nd","rd"],F=K%100;return"["+K+($[(F-20)%10]||$[F]||$[0])+"]"}},g=function(K,$,F){var W=String(K);return!W||W.length>=$?K:""+Array($+1-W.length).join(F)+K},w={s:g,z:function(K){var $=-K.utcOffset(),F=Math.abs($),W=Math.floor(F/60),U=F%60;return($<=0?"+":"-")+g(W,2,"0")+":"+g(U,2,"0")},m:function K($,F){if($.date()1)return K(z[0])}else{var H=$.name;R[H]=$,U=H}return!W&&U&&(x=U),U||!W&&x},I=function(K,$){if(j(K))return K.clone();var F=typeof $=="object"?$:{};return F.date=K,F.args=arguments,new J(F)},N=w;N.l=T,N.i=j,N.w=function(K,$){return I(K,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var J=function(){function K(F){this.$L=T(F.locale,null,!0),this.parse(F)}var $=K.prototype;return $.parse=function(F){this.$d=function(W){var U=W.date,M=W.utc;if(U===null)return new Date(NaN);if(N.u(U))return new Date;if(U instanceof Date)return new Date(U);if(typeof U=="string"&&!/Z$/i.test(U)){var z=U.match(_);if(z){var H=z[2]-1||0,Q=(z[7]||"0").substring(0,3);return M?new Date(Date.UTC(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)):new Date(z[1],H,z[3]||1,z[4]||0,z[5]||0,z[6]||0,Q)}}return new Date(U)}(F),this.$x=F.x||{},this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return N},$.isValid=function(){return this.$d.toString()!==p},$.isSame=function(F,W){var U=I(F);return this.startOf(W)<=U&&U<=this.endOf(W)},$.isAfter=function(F,W){return I(F){const n=ph(i=>i.genres.all),r=String(e==null?void 0:e.map(i=>n[i]));return E.jsx("div",{className:bo["genres-box"],title:r||"",children:e!=null&&e.length?E.jsx("div",{className:`${bo.genres} ${bo[t]}`,children:e==null?void 0:e.map(i=>E.jsx("div",{className:bo.genre,children:n[i]},i))}):E.jsx("div",{className:bo["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 @@ -119,9 +119,9 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var hd=function(e,t){return hd=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])},hd(e,t)};function AM(e,t){hd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var NM=100,FM=100,bv=50,pd=50,md=50;function Pv(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,$M({pathRadius:i,dashRatio:r,counterClockwise:n})),d:IM({pathRadius:i,counterClockwise:n}),strokeWidth:o,fillOpacity:0})}function IM(e){var t=e.pathRadius,n=e.counterClockwise,r=t,i=n?1:0;return` +***************************************************************************** */var hd=function(e,t){return hd=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])},hd(e,t)};function NM(e,t){hd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var FM=100,IM=100,bv=50,pd=50,md=50;function Pv(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,zM({pathRadius:i,dashRatio:r,counterClockwise:n})),d:$M({pathRadius:i,counterClockwise:n}),strokeWidth:o,fillOpacity:0})}function $M(e){var t=e.pathRadius,n=e.counterClockwise,r=t,i=n?1:0;return` M `+pd+","+md+` m 0,-`+r+` a `+r+","+r+" "+i+" 1 1 0,"+2*r+` a `+r+","+r+" "+i+" 1 1 0,-"+2*r+` - `}function $M(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 zM=function(e){AM(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 bv-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 "+NM+" "+FM,"data-test-id":"CircularProgressbar"},this.props.background?P.createElement("circle",{className:o.background,style:a.background,cx:pd,cy:md,r:bv}):null,P.createElement(Pv,{className:o.trail,counterClockwise:s,dashRatio:r,pathRadius:c,strokeWidth:l,style:a.trail}),P.createElement(Pv,{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:pd,y:md},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 VM(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:da({stroke:o,strokeLinecap:n,transform:c,transformOrigin:f,transition:s,transitionDuration:a==null?void 0:a+"s"}),trail:da({stroke:l,strokeLinecap:n,transform:c,transformOrigin:f}),text:da({fill:r,fontSize:i}),background:da({fill:u})}}function da(e){return Object.keys(e).forEach(function(t){e[t]==null&&delete e[t]}),e}const UM="_rating_13i4w_1",BM="_rating_card_13i4w_23",Ev={rating:UM,rating_card:BM,"rating_single-movie":"_rating_single-movie_13i4w_34","CircularProgressbar-text":"_CircularProgressbar-text_13i4w_48"},WM=({rating:e,classname:t})=>E.jsx("div",{className:`${Ev.rating} ${Ev[t]}`,children:E.jsx(zM,{maxValue:10,styles:VM({pathColor:e<5?"red":e<7?"orange":"green"}),text:e,value:e})}),HM="/movix/assets/no-poster-a92899fc.webp",QM="_poster_5lfpc_1",qM="_card_5lfpc_30",KM="_card_flex_5lfpc_38",GM="_poster__img_5lfpc_52",YM="_poster_loaded_5lfpc_68",XM="_rating_card_5lfpc_98",JM="_img_5lfpc_104",ZM="_scaleImg_5lfpc_1",eL="_text_5lfpc_110",tL="_title_5lfpc_117",nL="_date_5lfpc_132",vn={poster:QM,card:qM,card_flex:KM,poster__img:GM,poster_loaded:YM,rating_card:XM,img:JM,scaleImg:ZM,text:eL,title:tL,date:nL},NS=P.memo(({data:e,endpoint:t,style:n,classnameCard:r="card_flex"})=>{NS.displayName="VideoCard";const{movieType:i}=g1(),{id:o,poster_path:s,media_type:a,vote_average:l,genre_ids:u,title:c,name:f,release_date:d,first_air_date:h}=e,m=ph(v=>{var y;return(y=v.urlBaseForImages.url)==null?void 0:y.poster}),p=P.useRef(null),_=s?m&&`${m}${s}`:HM;return E.jsxs("li",{className:`${vn.card} ${vn[r]}`,style:n,children:[E.jsxs("div",{className:vn.poster,children:[E.jsxs("div",{className:vn.poster__img,ref:p,style:{background:`url(${_}) center center / cover no-repeat`},children:[E.jsx(sr,{className:"link",to:`/${a||t||i}/${o}`}),E.jsx(xS.LazyLoadImage,{effect:"blur",className:vn.img,src:_,alt:"Movie banner",onLoad:()=>p.current.className+=" "+vn.poster_loaded})]}),E.jsx(WM,{classname:"rating_card",rating:l==null?void 0:l.toFixed(1)})]}),E.jsxs("div",{className:vn.text,children:[E.jsx("span",{className:vn.title,children:c||f}),E.jsx(LM,{classname:"genres_card",genresMovie:(u==null?void 0:u.slice(0,2))||[]}),E.jsx("span",{className:vn.date,children:kM(d||h).format("MMM D, YYYY")})]})]},o)});function Cv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ov=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function rL(e,t){return!!(e===t||Ov(e)&&Ov(t))}function iL(e,t){if(e.length!==t.length)return!1;for(var n=0;n=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var Lc=-1;function kv(e){if(e===void 0&&(e=!1),Lc===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Lc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Lc}var ai=null;function jv(e){if(e===void 0&&(e=!1),ai===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ai="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?ai="negative":ai="positive-ascending"),document.body.removeChild(t),ai}return ai}var aL=150,lL=function(t,n){return t};function uL(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){ti(d,f);function d(m){var p;return p=f.call(this,m)||this,p._instanceProps=l(p.props,Cv(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Cv(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=Na(function(_,v,y,g){return p.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:v,visibleStartIndex:y,visibleStopIndex:g})}),p._callOnScroll=void 0,p._callOnScroll=Na(function(_,v,y){return p.props.onScroll({scrollDirection:_,scrollOffset:v,scrollUpdateWasRequested:y})}),p._getItemStyle=void 0,p._getItemStyle=function(_){var v=p.props,y=v.direction,g=v.itemSize,w=v.layout,x=p._getItemStyleCache(u&&g,u&&w,u&&y),T;if(x.hasOwnProperty(_))T=x[_];else{var j=n(p.props,_,p._instanceProps),R=i(p.props,_,p._instanceProps),I=y==="horizontal"||w==="horizontal",N=y==="rtl",J=I?j:0;x[_]=T={position:"absolute",left:N?void 0:J,right:N?J:void 0,top:I?0:j,height:I?"100%":R,width:I?R:"100%"}}return T},p._getItemStyleCache=void 0,p._getItemStyleCache=Na(function(_,v,y){return{}}),p._onScrollHorizontal=function(_){var v=_.currentTarget,y=v.clientWidth,g=v.scrollLeft,w=v.scrollWidth;p.setState(function(x){if(x.scrollOffset===g)return null;var T=p.props.direction,j=g;if(T==="rtl")switch(jv()){case"negative":j=-g;break;case"positive-descending":j=w-y-g;break}return j=Math.max(0,Math.min(j,w-y)),{isScrolling:!0,scrollDirection:x.scrollOffsetT.clientWidth?kv():0:x=T.scrollHeight>T.clientHeight?kv():0}this.scrollTo(o(this.props,p,_,w,this._instanceProps,x))},h.componentDidMount=function(){var p=this.props,_=p.direction,v=p.initialScrollOffset,y=p.layout;if(typeof v=="number"&&this._outerRef!=null){var g=this._outerRef;_==="horizontal"||y==="horizontal"?g.scrollLeft=v:g.scrollTop=v}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,_=p.direction,v=p.layout,y=this.state,g=y.scrollOffset,w=y.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var x=this._outerRef;if(_==="horizontal"||v==="horizontal")if(_==="rtl")switch(jv()){case"negative":x.scrollLeft=-g;break;case"positive-ascending":x.scrollLeft=g;break;default:var T=x.clientWidth,j=x.scrollWidth;x.scrollLeft=j-T-g;break}else x.scrollLeft=g;else x.scrollTop=g}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Rv(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,_=p.children,v=p.className,y=p.direction,g=p.height,w=p.innerRef,x=p.innerElementType,T=p.innerTagName,j=p.itemCount,R=p.itemData,I=p.itemKey,N=I===void 0?lL:I,J=p.layout,Y=p.outerElementType,K=p.outerTagName,$=p.style,F=p.useIsScrolling,W=p.width,U=this.state.isScrolling,M=y==="horizontal"||J==="horizontal",z=M?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),q=H[0],te=H[1],ne=[];if(j>0)for(var Z=q;Z<=te;Z++)ne.push(P.createElement(_,{data:R,key:N(Z,R),index:Z,isScrolling:F?U:void 0,style:this._getItemStyle(Z)}));var ue=r(this.props,this._instanceProps);return P.createElement(Y||K||"div",{className:v,onScroll:z,ref:this._outerRefSetter,style:fe({position:"relative",height:g,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},$)},P.createElement(x||T||"div",{children:ne,ref:w,style:{height:M?"100%":ue,pointerEvents:U?"none":void 0,width:M?ue:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var _=this._getRangeToRender(),v=_[0],y=_[1],g=_[2],w=_[3];this._callOnItemsRendered(v,y,g,w)}}if(typeof this.props.onScroll=="function"){var x=this.state,T=x.scrollDirection,j=x.scrollOffset,R=x.scrollUpdateWasRequested;this._callOnScroll(T,j,R)}},h._getRangeToRender=function(){var p=this.props,_=p.itemCount,v=p.overscanCount,y=this.state,g=y.isScrolling,w=y.scrollDirection,x=y.scrollOffset;if(_===0)return[0,0,0,0];var T=s(this.props,x,this._instanceProps),j=a(this.props,T,x,this._instanceProps),R=!g||w==="backward"?Math.max(1,v):1,I=!g||w==="forward"?Math.max(1,v):1;return[Math.max(0,T-R),Math.max(0,Math.min(_-1,j+I)),T,j]},d}(P.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var cL=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},fL=uL({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,i,o,s){var a=t.direction,l=t.height,u=t.itemCount,c=t.itemSize,f=t.layout,d=t.width,h=a==="horizontal"||f==="horizontal",m=h?d:l,p=Math.max(0,u*c-m),_=Math.min(p,n*c),v=Math.max(0,n*c-m+c+s);switch(r==="smart"&&(i>=v-m&&i<=_+m?r="auto":r="center"),r){case"start":return _;case"end":return v;case"center":{var y=Math.round(v+(_-v)/2);return yp+Math.floor(m/2)?p:y}case"auto":default:return i>=v&&i<=_?i:i div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',m=d.head||d.getElementsByTagName("head")[0],p=d.createElement("style");p.id="detectElementResize",p.type="text/css",e!=null&&p.setAttribute("nonce",e),p.styleSheet?p.styleSheet.cssText=h:p.appendChild(d.createTextNode(h)),m.appendChild(p)}};return{addResizeListener:function(d,h){if(l)d.attachEvent("onresize",h);else{if(!d.__resizeTriggers__){const m=d.ownerDocument,p=Wt.getComputedStyle(d);p&&p.position==="static"&&(d.style.position="relative"),u(m),d.__resizeLast__={},d.__resizeListeners__=[],(d.__resizeTriggers__=m.createElement("div")).className="resize-triggers";const _=m.createElement("div");_.className="expand-trigger",_.appendChild(m.createElement("div"));const v=m.createElement("div");v.className="contract-trigger",d.__resizeTriggers__.appendChild(_),d.__resizeTriggers__.appendChild(v),d.appendChild(d.__resizeTriggers__),s(d),d.addEventListener("scroll",a,!0),r&&(d.__resizeTriggers__.__animationListener__=function(g){g.animationName===n&&s(d)},d.__resizeTriggers__.addEventListener(r,d.__resizeTriggers__.__animationListener__))}d.__resizeListeners__.push(h)}},removeResizeListener:function(d,h){if(l)d.detachEvent("onresize",h);else if(d.__resizeListeners__.splice(d.__resizeListeners__.indexOf(h),1),!d.__resizeListeners__.length){d.removeEventListener("scroll",a,!0),d.__resizeTriggers__.__animationListener__&&(d.__resizeTriggers__.removeEventListener(r,d.__resizeTriggers__.__animationListener__),d.__resizeTriggers__.__animationListener__=null);try{d.__resizeTriggers__=!d.removeChild(d.__resizeTriggers__)}catch{}}}}}class hL extends P.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},s=parseFloat(o.paddingLeft||"0"),a=parseFloat(o.paddingRight||"0"),l=parseFloat(o.paddingTop||"0"),u=parseFloat(o.paddingBottom||"0"),c=this._parentNode.getBoundingClientRect(),f=c.height-l-u,d=c.width-s-a,h=this._parentNode.offsetHeight-l-u,m=this._parentNode.offsetWidth-s-a;(!n&&(this.state.height!==h||this.state.scaledHeight!==f)||!r&&(this.state.width!==m||this.state.scaledWidth!==d))&&(this.setState({height:h,width:m,scaledHeight:f,scaledWidth:d}),typeof i=="function"&&i({height:h,scaledHeight:f,scaledWidth:d,width:m}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=dL(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:u={},tagName:c="div",...f}=this.props,{height:d,scaledHeight:h,scaledWidth:m,width:p}=this.state,_={overflow:"visible"},v={};let y=!1;return i||(d===0&&(y=!0),_.height=0,v.height=d,v.scaledHeight=h),o||(p===0&&(y=!0),_.width=0,v.width=p,v.scaledWidth=m),s&&(y=!1),P.createElement(c,{ref:this._setRef,style:{..._,...u},...f},!y&&t(v))}}const Fc=15,pL=({dataList:e,endpointCard:t,classnameCard:n})=>E.jsx(E.Fragment,{children:E.jsx(hL,{disableHeight:!0,children:({height:r=560,width:i})=>E.jsx(fL,{className:"List grid",height:r,itemCount:e==null?void 0:e.length,itemSize:290,layout:"horizontal",innerElementType:"ul",width:i,children:({index:o,style:s})=>E.jsx(NS,{classnameCard:n,data:e[o],endpoint:t,style:{...s,left:s.left+Fc,width:s.width-Fc,height:s.height-Fc*2}})})})}),mL=P.memo(e=>E.jsx(pL,{...e})),yL=TM(mL),vL=({title:e,keyApi:t,endpoints:n=[],tabsNames:r=[],classname:i})=>{const{movieType:o,id:s}=g1(),[a,l]=P.useState(""),{endpoint:u,onTabChange:c}=HD(n);let{data:f,status:d,isError:h,error:m}=LS()[t](...a);return P.useEffect(()=>{(()=>{l(r.length?u:[o,s])})()},[o,s,u,r.length]),E.jsxs(li,{error:m,isError:h,title:e,children:[E.jsx(sM,{classnameCard:i,isLoading:d!=="success",tabsNames:r}),E.jsx(yL,{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})]})},gL=[{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"]}],wL=()=>E.jsx(E.Fragment,{children:gL.map(e=>E.jsx(vL,{...e},e.keyApi))}),SL=()=>E.jsxs("div",{children:[E.jsx(WD,{}),E.jsx(wL,{})]}),_L="_wrapper_1snqj_1",xL="_loader_1snqj_6",bL="_animloader_1snqj_1",Av={wrapper:_L,loader:xL,animloader:bL},Po=()=>E.jsx("div",{className:Av.wrapper,children:E.jsx("span",{className:Av.loader})}),PL=P.lazy(()=>Ps(()=>import("./DiscoverVideosPage-ee584bb6.js"),["assets/DiscoverVideosPage-ee584bb6.js","assets/index-7d94188f.js","assets/index-b5b21cf7.css","assets/index-80f42cfd.js","assets/index-6e67b54d.css","assets/DiscoverVideosPage-e00dbed3.css"])),EL=P.lazy(()=>Ps(()=>import("./MovieSinglePage-8bfeca9a.js"),["assets/MovieSinglePage-8bfeca9a.js","assets/avatar-7ac2a537.js","assets/MovieSinglePage-7a4da260.css"])),CL=P.lazy(()=>Ps(()=>import("./PersonPage-1b00450a.js"),["assets/PersonPage-1b00450a.js","assets/index-80f42cfd.js","assets/index-6e67b54d.css","assets/avatar-7ac2a537.js","assets/PersonPage-706301fa.css"])),OL=P.lazy(()=>Ps(()=>import("./SearchPage-5b99ba14.js"),["assets/SearchPage-5b99ba14.js","assets/index-7d94188f.js","assets/index-b5b21cf7.css","assets/SearchPage-85b80dd2.css"])),TL=P.lazy(()=>Ps(()=>import("./NotFoundPage-88b6d385.js"),[])),RL=[{path:"/",element:E.jsx(eD,{}),children:[{path:"/",element:E.jsx(SL,{}),errorElement:E.jsx(li,{})},{path:"search/:query",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(OL,{})}),errorElement:E.jsx(li,{})},{path:":movieType/:id",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(EL,{})}),errorElement:E.jsx(li,{})},{path:"person/:id",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(CL,{})}),errorElement:E.jsx(li,{})},{path:"discover/:movieType",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(PL,{})}),errorElement:E.jsx(li,{})},{path:"*",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(TL,{})})}]}],kL=SE(RL,{basename:"/movix"}),jL=()=>E.jsx(fE,{router:kL}),DL=hC({reducer:{urlBaseForImages:qO,genres:WO}}),ML=new SD({defaultOptions:{queries:{staleTime:3e5,retry:3,keepPreviousData:!0}}}),LL=({children:e})=>E.jsx(CD,{client:ML,children:e});function AL(){return E.jsx(Zb,{store:DL,children:E.jsx(LL,{children:E.jsx(jL,{})})})}Ic.createRoot(document.getElementById("root")).render(E.jsx(Ye.StrictMode,{children:E.jsx(AL,{})}));export{hL as A,HD as B,sM as C,yM as D,li as E,fL as F,LM as G,IL as H,tD as I,$L as J,zL as K,sr as L,LE as N,HM as P,Ye as R,vL as S,NS as V,QE as _,ad as a,ps as b,Cv as c,Wb as d,fb as e,Qm as f,gd as g,fe as h,qE as i,t_ as j,cs as k,g1 as l,ph as m,E as n,NL as o,UL as p,$S as q,P as r,Sn as s,kM as t,LS as u,FL as v,WM as w,TM as x,iM as y,pl as z}; + `}function zM(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 VM=function(e){NM(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 bv-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 "+FM+" "+IM,"data-test-id":"CircularProgressbar"},this.props.background?P.createElement("circle",{className:o.background,style:a.background,cx:pd,cy:md,r:bv}):null,P.createElement(Pv,{className:o.trail,counterClockwise:s,dashRatio:r,pathRadius:c,strokeWidth:l,style:a.trail}),P.createElement(Pv,{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:pd,y:md},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 UM(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:da({stroke:o,strokeLinecap:n,transform:c,transformOrigin:f,transition:s,transitionDuration:a==null?void 0:a+"s"}),trail:da({stroke:l,strokeLinecap:n,transform:c,transformOrigin:f}),text:da({fill:r,fontSize:i}),background:da({fill:u})}}function da(e){return Object.keys(e).forEach(function(t){e[t]==null&&delete e[t]}),e}const BM="_rating_13i4w_1",WM="_rating_card_13i4w_23",Ev={rating:BM,rating_card:WM,"rating_single-movie":"_rating_single-movie_13i4w_34","CircularProgressbar-text":"_CircularProgressbar-text_13i4w_48"},HM=({rating:e,classname:t})=>E.jsx("div",{className:`${Ev.rating} ${Ev[t]}`,children:E.jsx(VM,{maxValue:10,styles:UM({pathColor:e<5?"red":e<7?"orange":"green"}),text:e,value:e})}),qM="/movix/assets/no-poster-a92899fc.webp",QM="_poster_1rqbp_1",KM="_card_1rqbp_30",GM="_card_flex_1rqbp_38",YM="_poster__img_1rqbp_52",XM="_poster_loaded_1rqbp_68",JM="_rating_card_1rqbp_98",ZM="_img_1rqbp_140",eL="_scaleImg_1rqbp_1",tL="_text_1rqbp_146",nL="_title_1rqbp_153",rL="_date_1rqbp_168",vn={poster:QM,card:KM,card_flex:GM,poster__img:YM,poster_loaded:XM,rating_card:JM,img:ZM,scaleImg:eL,text:tL,title:nL,date:rL},NS=P.memo(({data:e,endpoint:t,style:n,classnameCard:r="card_flex"})=>{NS.displayName="VideoCard";const{movieType:i}=g1(),{id:o,poster_path:s,media_type:a,vote_average:l,genre_ids:u,title:c,name:f,release_date:d,first_air_date:h}=e,m=ph(v=>{var y;return(y=v.urlBaseForImages.url)==null?void 0:y.poster}),p=P.useRef(null),_=s?m&&`${m}${s}`:qM;return E.jsxs("li",{className:`${vn.card} ${vn[r]}`,style:n,children:[E.jsxs("div",{className:vn.poster,children:[E.jsxs("div",{className:vn.poster__img,ref:p,style:{background:`url(${_}) center center / cover no-repeat`},children:[E.jsx(sr,{className:"link",to:`/${a||t||i}/${o}`}),E.jsx(xS.LazyLoadImage,{effect:"blur",className:vn.img,src:_,alt:"Movie banner",onLoad:()=>p.current.className+=" "+vn.poster_loaded})]}),E.jsx(HM,{classname:"rating_card",rating:l==null?void 0:l.toFixed(1)})]}),E.jsxs("div",{className:vn.text,children:[E.jsx("span",{className:vn.title,children:c||f}),E.jsx(AM,{classname:"genres_card",genresMovie:(u==null?void 0:u.slice(0,2))||[]}),E.jsx("span",{className:vn.date,children:jM(d||h).format("MMM D, YYYY")})]})]},o)});function Cv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ov=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function iL(e,t){return!!(e===t||Ov(e)&&Ov(t))}function oL(e,t){if(e.length!==t.length)return!1;for(var n=0;n=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var Lc=-1;function kv(e){if(e===void 0&&(e=!1),Lc===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Lc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Lc}var ai=null;function jv(e){if(e===void 0&&(e=!1),ai===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ai="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?ai="negative":ai="positive-ascending"),document.body.removeChild(t),ai}return ai}var lL=150,uL=function(t,n){return t};function cL(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,s=e.getStartIndexForOffset,a=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(f){ti(d,f);function d(m){var p;return p=f.call(this,m)||this,p._instanceProps=l(p.props,Cv(p)),p._outerRef=void 0,p._resetIsScrollingTimeoutId=null,p.state={instance:Cv(p),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof p.props.initialScrollOffset=="number"?p.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},p._callOnItemsRendered=void 0,p._callOnItemsRendered=Na(function(_,v,y,g){return p.props.onItemsRendered({overscanStartIndex:_,overscanStopIndex:v,visibleStartIndex:y,visibleStopIndex:g})}),p._callOnScroll=void 0,p._callOnScroll=Na(function(_,v,y){return p.props.onScroll({scrollDirection:_,scrollOffset:v,scrollUpdateWasRequested:y})}),p._getItemStyle=void 0,p._getItemStyle=function(_){var v=p.props,y=v.direction,g=v.itemSize,w=v.layout,x=p._getItemStyleCache(u&&g,u&&w,u&&y),R;if(x.hasOwnProperty(_))R=x[_];else{var j=n(p.props,_,p._instanceProps),T=i(p.props,_,p._instanceProps),I=y==="horizontal"||w==="horizontal",N=y==="rtl",J=I?j:0;x[_]=R={position:"absolute",left:N?void 0:J,right:N?J:void 0,top:I?0:j,height:I?"100%":T,width:I?T:"100%"}}return R},p._getItemStyleCache=void 0,p._getItemStyleCache=Na(function(_,v,y){return{}}),p._onScrollHorizontal=function(_){var v=_.currentTarget,y=v.clientWidth,g=v.scrollLeft,w=v.scrollWidth;p.setState(function(x){if(x.scrollOffset===g)return null;var R=p.props.direction,j=g;if(R==="rtl")switch(jv()){case"negative":j=-g;break;case"positive-descending":j=w-y-g;break}return j=Math.max(0,Math.min(j,w-y)),{isScrolling:!0,scrollDirection:x.scrollOffsetR.clientWidth?kv():0:x=R.scrollHeight>R.clientHeight?kv():0}this.scrollTo(o(this.props,p,_,w,this._instanceProps,x))},h.componentDidMount=function(){var p=this.props,_=p.direction,v=p.initialScrollOffset,y=p.layout;if(typeof v=="number"&&this._outerRef!=null){var g=this._outerRef;_==="horizontal"||y==="horizontal"?g.scrollLeft=v:g.scrollTop=v}this._callPropsCallbacks()},h.componentDidUpdate=function(){var p=this.props,_=p.direction,v=p.layout,y=this.state,g=y.scrollOffset,w=y.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var x=this._outerRef;if(_==="horizontal"||v==="horizontal")if(_==="rtl")switch(jv()){case"negative":x.scrollLeft=-g;break;case"positive-ascending":x.scrollLeft=g;break;default:var R=x.clientWidth,j=x.scrollWidth;x.scrollLeft=j-R-g;break}else x.scrollLeft=g;else x.scrollTop=g}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Tv(this._resetIsScrollingTimeoutId)},h.render=function(){var p=this.props,_=p.children,v=p.className,y=p.direction,g=p.height,w=p.innerRef,x=p.innerElementType,R=p.innerTagName,j=p.itemCount,T=p.itemData,I=p.itemKey,N=I===void 0?uL:I,J=p.layout,Y=p.outerElementType,K=p.outerTagName,$=p.style,F=p.useIsScrolling,W=p.width,U=this.state.isScrolling,M=y==="horizontal"||J==="horizontal",z=M?this._onScrollHorizontal:this._onScrollVertical,H=this._getRangeToRender(),Q=H[0],te=H[1],ne=[];if(j>0)for(var Z=Q;Z<=te;Z++)ne.push(P.createElement(_,{data:T,key:N(Z,T),index:Z,isScrolling:F?U:void 0,style:this._getItemStyle(Z)}));var ue=r(this.props,this._instanceProps);return P.createElement(Y||K||"div",{className:v,onScroll:z,ref:this._outerRefSetter,style:fe({position:"relative",height:g,width:W,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},$)},P.createElement(x||R||"div",{children:ne,ref:w,style:{height:M?"100%":ue,pointerEvents:U?"none":void 0,width:M?ue:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var p=this.props.itemCount;if(p>0){var _=this._getRangeToRender(),v=_[0],y=_[1],g=_[2],w=_[3];this._callOnItemsRendered(v,y,g,w)}}if(typeof this.props.onScroll=="function"){var x=this.state,R=x.scrollDirection,j=x.scrollOffset,T=x.scrollUpdateWasRequested;this._callOnScroll(R,j,T)}},h._getRangeToRender=function(){var p=this.props,_=p.itemCount,v=p.overscanCount,y=this.state,g=y.isScrolling,w=y.scrollDirection,x=y.scrollOffset;if(_===0)return[0,0,0,0];var R=s(this.props,x,this._instanceProps),j=a(this.props,R,x,this._instanceProps),T=!g||w==="backward"?Math.max(1,v):1,I=!g||w==="forward"?Math.max(1,v):1;return[Math.max(0,R-T),Math.max(0,Math.min(_-1,j+I)),R,j]},d}(P.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var fL=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},dL=cL({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,i,o,s){var a=t.direction,l=t.height,u=t.itemCount,c=t.itemSize,f=t.layout,d=t.width,h=a==="horizontal"||f==="horizontal",m=h?d:l,p=Math.max(0,u*c-m),_=Math.min(p,n*c),v=Math.max(0,n*c-m+c+s);switch(r==="smart"&&(i>=v-m&&i<=_+m?r="auto":r="center"),r){case"start":return _;case"end":return v;case"center":{var y=Math.round(v+(_-v)/2);return yp+Math.floor(m/2)?p:y}case"auto":default:return i>=v&&i<=_?i:i div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',m=d.head||d.getElementsByTagName("head")[0],p=d.createElement("style");p.id="detectElementResize",p.type="text/css",e!=null&&p.setAttribute("nonce",e),p.styleSheet?p.styleSheet.cssText=h:p.appendChild(d.createTextNode(h)),m.appendChild(p)}};return{addResizeListener:function(d,h){if(l)d.attachEvent("onresize",h);else{if(!d.__resizeTriggers__){const m=d.ownerDocument,p=Wt.getComputedStyle(d);p&&p.position==="static"&&(d.style.position="relative"),u(m),d.__resizeLast__={},d.__resizeListeners__=[],(d.__resizeTriggers__=m.createElement("div")).className="resize-triggers";const _=m.createElement("div");_.className="expand-trigger",_.appendChild(m.createElement("div"));const v=m.createElement("div");v.className="contract-trigger",d.__resizeTriggers__.appendChild(_),d.__resizeTriggers__.appendChild(v),d.appendChild(d.__resizeTriggers__),s(d),d.addEventListener("scroll",a,!0),r&&(d.__resizeTriggers__.__animationListener__=function(g){g.animationName===n&&s(d)},d.__resizeTriggers__.addEventListener(r,d.__resizeTriggers__.__animationListener__))}d.__resizeListeners__.push(h)}},removeResizeListener:function(d,h){if(l)d.detachEvent("onresize",h);else if(d.__resizeListeners__.splice(d.__resizeListeners__.indexOf(h),1),!d.__resizeListeners__.length){d.removeEventListener("scroll",a,!0),d.__resizeTriggers__.__animationListener__&&(d.__resizeTriggers__.removeEventListener(r,d.__resizeTriggers__.__animationListener__),d.__resizeTriggers__.__animationListener__=null);try{d.__resizeTriggers__=!d.removeChild(d.__resizeTriggers__)}catch{}}}}}class pL extends P.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},s=parseFloat(o.paddingLeft||"0"),a=parseFloat(o.paddingRight||"0"),l=parseFloat(o.paddingTop||"0"),u=parseFloat(o.paddingBottom||"0"),c=this._parentNode.getBoundingClientRect(),f=c.height-l-u,d=c.width-s-a,h=this._parentNode.offsetHeight-l-u,m=this._parentNode.offsetWidth-s-a;(!n&&(this.state.height!==h||this.state.scaledHeight!==f)||!r&&(this.state.width!==m||this.state.scaledWidth!==d))&&(this.setState({height:h,width:m,scaledHeight:f,scaledWidth:d}),typeof i=="function"&&i({height:h,scaledHeight:f,scaledWidth:d,width:m}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=hL(t),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:u={},tagName:c="div",...f}=this.props,{height:d,scaledHeight:h,scaledWidth:m,width:p}=this.state,_={overflow:"visible"},v={};let y=!1;return i||(d===0&&(y=!0),_.height=0,v.height=d,v.scaledHeight=h),o||(p===0&&(y=!0),_.width=0,v.width=p,v.scaledWidth=m),s&&(y=!1),P.createElement(c,{ref:this._setRef,style:{..._,...u},...f},!y&&t(v))}}const Fc=15,mL=({dataList:e,endpointCard:t,classnameCard:n})=>E.jsx(E.Fragment,{children:E.jsx(pL,{disableHeight:!0,children:({height:r=560,width:i})=>E.jsx(dL,{className:"List grid",height:r,itemCount:e==null?void 0:e.length,itemSize:290,layout:"horizontal",innerElementType:"ul",width:i,children:({index:o,style:s})=>E.jsx(NS,{classnameCard:n,data:e[o],endpoint:t,style:{...s,left:s.left+Fc,width:s.width-Fc,height:s.height-Fc*2}})})})}),yL=P.memo(e=>E.jsx(mL,{...e})),vL=TM(yL),gL=({title:e,keyApi:t,endpoints:n=[],tabsNames:r=[],classname:i})=>{const{movieType:o,id:s}=g1(),[a,l]=P.useState(""),{endpoint:u,onTabChange:c}=qD(n);let{data:f,status:d,isError:h,error:m}=LS()[t](...a);return P.useEffect(()=>{(()=>{l(r.length?u:[o,s])})()},[o,s,u,r.length]),E.jsxs(li,{error:m,isError:h,title:e,children:[E.jsx(aM,{classnameCard:i,isLoading:d!=="success",tabsNames:r}),E.jsx(vL,{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})]})},wL=[{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"]}],SL=()=>E.jsx(E.Fragment,{children:wL.map(e=>E.jsx(gL,{...e},e.keyApi))}),_L=()=>E.jsxs("div",{children:[E.jsx(HD,{}),E.jsx(SL,{})]}),xL="_wrapper_1snqj_1",bL="_loader_1snqj_6",PL="_animloader_1snqj_1",Av={wrapper:xL,loader:bL,animloader:PL},Po=()=>E.jsx("div",{className:Av.wrapper,children:E.jsx("span",{className:Av.loader})}),EL=P.lazy(()=>Ps(()=>import("./DiscoverVideosPage-6dccba01.js"),["assets/DiscoverVideosPage-6dccba01.js","assets/index-82ab8266.js","assets/index-b5b21cf7.css","assets/index-e1983a32.js","assets/index-eb53356e.css","assets/DiscoverVideosPage-6f89ee68.css"])),CL=P.lazy(()=>Ps(()=>import("./MovieSinglePage-cb99ed1d.js"),["assets/MovieSinglePage-cb99ed1d.js","assets/avatar-342a0f5c.js","assets/MovieSinglePage-899146a8.css"])),OL=P.lazy(()=>Ps(()=>import("./PersonPage-4f494bc7.js"),["assets/PersonPage-4f494bc7.js","assets/index-e1983a32.js","assets/index-eb53356e.css","assets/avatar-342a0f5c.js","assets/PersonPage-b8950eab.css"])),RL=P.lazy(()=>Ps(()=>import("./SearchPage-1ae5dd5b.js"),["assets/SearchPage-1ae5dd5b.js","assets/index-82ab8266.js","assets/index-b5b21cf7.css","assets/SearchPage-85b80dd2.css"])),TL=P.lazy(()=>Ps(()=>import("./NotFoundPage-203d4425.js"),[])),kL=[{path:"/",element:E.jsx(tD,{}),children:[{path:"/",element:E.jsx(_L,{}),errorElement:E.jsx(li,{})},{path:"search/:query",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(RL,{})}),errorElement:E.jsx(li,{})},{path:":movieType/:id",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(CL,{})}),errorElement:E.jsx(li,{})},{path:"person/:id",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(OL,{})}),errorElement:E.jsx(li,{})},{path:"discover/:movieType",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(EL,{})}),errorElement:E.jsx(li,{})},{path:"*",element:E.jsx(P.Suspense,{fallback:E.jsx(Po,{}),children:E.jsx(TL,{})})}]}],jL=SE(kL,{basename:"/movix"}),DL=()=>E.jsx(fE,{router:jL}),ML=hC({reducer:{urlBaseForImages:QO,genres:WO}}),LL=new _D({defaultOptions:{queries:{staleTime:3e5,retry:3,keepPreviousData:!0}}}),AL=({children:e})=>E.jsx(OD,{client:LL,children:e});function NL(){return E.jsx(Zb,{store:ML,children:E.jsx(AL,{children:E.jsx(DL,{})})})}Ic.createRoot(document.getElementById("root")).render(E.jsx(Ye.StrictMode,{children:E.jsx(NL,{})}));export{pL as A,qD as B,$L as C,zL as D,li as E,dL as F,AM as G,VL as H,nD as I,aM as J,vM as K,sr as L,LE as N,qM as P,Ye as R,gL as S,NS as V,qE as _,ad as a,ps as b,Cv as c,Wb as d,fb as e,qm as f,gd as g,fe as h,QE as i,t_ as j,cs as k,g1 as l,ph as m,E as n,Sn as o,FL as p,BL as q,P as r,$S as s,jM as t,LS as u,IL as v,HM as w,TM as x,oM as y,pl as z}; diff --git a/assets/index-e1983a32.js b/assets/index-e1983a32.js new file mode 100644 index 0000000..94d7cd3 --- /dev/null +++ b/assets/index-e1983a32.js @@ -0,0 +1 @@ +import{n as s}from"./index-cde6f15b.js";const o={"btn-gradient":"_btn-gradient_13qia_1"},e=({classname:t,children:n,...a})=>s.jsx("button",{className:`${o["btn-gradient"]} ${t}`,...a,children:n});export{e as B}; diff --git a/assets/index-eb53356e.css b/assets/index-eb53356e.css new file mode 100644 index 0000000..a4e3ba5 --- /dev/null +++ b/assets/index-eb53356e.css @@ -0,0 +1 @@ +._btn-gradient_13qia_1{position:relative;border-radius:30px;height:40px;text-transform:uppercase;transition:all .2s ease-in-out;overflow:hidden;z-index:2}._btn-gradient_13qia_1>span{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-weight:bolder;gap:10px;padding:0 10px;position:relative;z-index:2}._btn-gradient_13qia_1>svg{height:100%;width:25%}._btn-gradient_13qia_1:before{position:absolute;content:"";inset:0;width:0;background:var(--gradient);z-index:1;transition:all .2s ease-in-out}._btn-gradient_13qia_1:after{position:absolute;content:"";inset:0;width:100%;height:100%;z-index:3}._btn-gradient_13qia_1:active{scale:.9}._btn-gradient_13qia_1:focus-visible:before{width:100%}@media (hover: hover){._btn-gradient_13qia_1:hover:before{width:100%}}@media (hover: none){._btn-gradient_13qia_1:active:before{width:100%}} diff --git a/index.html b/index.html index 62ca5e1..f735a3b 100644 --- a/index.html +++ b/index.html @@ -12,8 +12,8 @@ background-color: #1d2329; } - - + +