diff --git a/dist/assets/index-7e5e940b.js b/dist/assets/index-3a040bb0.js similarity index 97% rename from dist/assets/index-7e5e940b.js rename to dist/assets/index-3a040bb0.js index 186cc84..3fdfffa 100644 --- a/dist/assets/index-7e5e940b.js +++ b/dist/assets/index-3a040bb0.js @@ -42,7 +42,7 @@ function jv(e,t){for(var n=0;n=0)&&(n[o]=e[o]);return n}function ig(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lg(e,t){return e.button===0&&(!t||t==="_self")&&!ig(e)}const ag=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],ug=["aria-current","caseSensitive","className","end","style","to","children"];function sg(e,t){return by({basename:t==null?void 0:t.basename,future:Lr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qv({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||cg(),routes:e,mapRouteProperties:og}).initialize()}function cg(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Lr({},t,{errors:fg(t.errors)})),t}function fg(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Os(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let l=new i(o.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const dg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hg=C.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:u,to:s,preventScrollReset:c}=t,d=Tp(t,ag),{basename:p}=C.useContext(ar),g,w=!1;if(typeof s=="string"&&pg.test(s)&&(g=s,dg))try{let f=new URL(window.location.href),y=s.startsWith("//")?new URL(f.protocol+s):new URL(s),h=Yr(y.pathname,p);y.origin===f.origin&&h!=null?s=h+y.search+y.hash:w=!0}catch{}let v=Fy(s,{relative:o}),S=vg(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:o});function m(f){r&&r(f),f.defaultPrevented||S(f)}return C.createElement("a",Lr({},d,{href:g||v,onClick:w||i?r:m,ref:n,target:u}))}),mg=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:l=!1,style:a,to:u,children:s}=t,c=Tp(t,ug),d=Ts(u,{relative:c.relative}),p=ei(),g=C.useContext(bs),{navigator:w}=C.useContext(ar),v=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,S=p.pathname,m=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),m=m?m.toLowerCase():null,v=v.toLowerCase());let f=S===v||!l&&S.startsWith(v)&&S.charAt(v.length)==="/",y=m!=null&&(m===v||!l&&m.startsWith(v)&&m.charAt(v.length)==="/"),h=f?r:void 0,E;typeof i=="function"?E=i({isActive:f,isPending:y}):E=[i,f?"active":null,y?"pending":null].filter(Boolean).join(" ");let P=typeof a=="function"?a({isActive:f,isPending:y}):a;return C.createElement(hg,Lr({},c,{"aria-current":h,className:E,ref:n,style:P,to:u}),typeof s=="function"?s({isActive:f,isPending:y}):s)});var gf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(gf||(gf={}));var wf;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wf||(wf={}));function vg(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l}=t===void 0?{}:t,a=jp(),u=ei(),s=Ts(e,{relative:l});return C.useCallback(c=>{if(lg(c,n)){c.preventDefault();let d=r!==void 0?r:qn(u)===qn(s);a(e,{replace:d,state:o,preventScrollReset:i,relative:l})}},[u,a,s,r,o,n,e,i,l])}var Ms="persist:",zs="persist/FLUSH",jl="persist/REHYDRATE",Ds="persist/PAUSE",Ls="persist/PERSIST",Is="persist/PURGE",$s="persist/REGISTER",yg=-1;function ji(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ji=function(n){return typeof n}:ji=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ji(e)}function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jg(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var bg=5e3;function Ef(e,t){var n=e.version!==void 0?e.version:yg;e.debug;var r=e.stateReconciler===void 0?Sg:e.stateReconciler,o=e.getStoredState||kg,i=e.timeout!==void 0?e.timeout:bg,l=null,a=!1,u=!0,s=function(d){return d._persist.rehydrated&&l&&!u&&l.update(d),d};return function(c,d){var p=c||{},g=p._persist,w=Og(p,["_persist"]),v=w;if(d.type===Ls){var S=!1,m=function(N,$){S||(d.rehydrate(e.key,N,$),S=!0)};if(i&&setTimeout(function(){!S&&m(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),u=!1,l||(l=xg(e)),g)return Gt({},t(v,d),{_persist:g});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),o(e).then(function(_){var N=e.migrate||function($,M){return Promise.resolve($)};N(_,n).then(function($){m($)},function($){m(void 0,$)})},function(_){m(void 0,_)}),Gt({},t(v,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Is)return a=!0,d.result(Cg(e)),Gt({},t(v,d),{_persist:g});if(d.type===zs)return d.result(l&&l.flush()),Gt({},t(v,d),{_persist:g});if(d.type===Ds)u=!0;else if(d.type===jl){if(a)return Gt({},v,{_persist:Gt({},g,{rehydrated:!0})});if(d.key===e.key){var f=t(v,d),y=d.payload,h=r!==!1&&y!==void 0?r(y,c,f,e):f,E=Gt({},h,{_persist:Gt({},g,{rehydrated:!0})});return s(E)}}}if(!g)return t(c,d);var P=t(v,d);return P===v?c:s(Gt({},P,{_persist:g}))}}function To(e){"@babel/helpers - typeof";return To=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},To(e)}function Ng(e,t){if(To(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(To(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tg(e){var t=Ng(e,"string");return To(t)==="symbol"?t:String(t)}function Mg(e,t,n){return t=Tg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fe(1));return n(As)(e,t)}if(typeof e!="function")throw new Error(Fe(2));var o=e,i=t,l=[],a=l,u=!1;function s(){a===l&&(a=l.slice())}function c(){if(u)throw new Error(Fe(3));return i}function d(v){if(typeof v!="function")throw new Error(Fe(4));if(u)throw new Error(Fe(5));var S=!0;return s(),a.push(v),function(){if(S){if(u)throw new Error(Fe(6));S=!1,s();var f=a.indexOf(v);a.splice(f,1),l=null}}}function p(v){if(!zg(v))throw new Error(Fe(7));if(typeof v.type>"u")throw new Error(Fe(8));if(u)throw new Error(Fe(9));try{u=!0,i=o(i,v)}finally{u=!1}for(var S=l=a,m=0;m"u")throw new Error(Fe(12));if(typeof n(void 0,{type:Ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fe(13))})}function Lg(e){for(var t=Object.keys(e),n={},r=0;r"u")throw s&&s.type,new Error(Fe(14));d[g]=S,c=c||S!==v}return c=c||i.length!==Object.keys(u).length,c?d:u}}function Qi(){for(var e=arguments.length,t=new Array(e),n=0;n0&&arguments[0]!==void 0?arguments[0]:Mp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case $s:return pu({},t,{registry:[].concat(_f(t.registry),[n.key])});case jl:var r=t.registry.indexOf(n.key),o=_f(t.registry);return o.splice(r,1),pu({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Wg(e,t,n){var r=n||!1,o=As(Bg,Mp,t&&t.enhancer?t.enhancer:void 0),i=function(s){o.dispatch({type:$s,key:s})},l=function(s,c,d){var p={type:jl,payload:c,err:d,key:s};e.dispatch(p),o.dispatch(p),r&&a.getState().bootstrapped&&(r(),r=!1)},a=pu({},o,{purge:function(){var s=[];return e.dispatch({type:Is,result:function(d){s.push(d)}}),Promise.all(s)},flush:function(){var s=[];return e.dispatch({type:zs,result:function(d){s.push(d)}}),Promise.all(s)},pause:function(){e.dispatch({type:Ds})},persist:function(){e.dispatch({type:Ls,register:i,rehydrate:l})}});return t&&t.manualPersist||a.persist(),a}function bt(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:Us(e)?2:Fs(e)?3:0}function Or(e,t){return Gr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vg(e,t){return Gr(e)===2?e.get(t):e[t]}function zp(e,t,n){var r=Gr(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Dp(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Us(e){return Xg&&e instanceof Map}function Fs(e){return Jg&&e instanceof Set}function Fn(e){return e.o||e.t}function Bs(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ip(e);delete t[de];for(var n=jr(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Hg),Object.freeze(e),t&&Zn(e,function(n,r){return Ws(r,!0)},!0)),e}function Hg(){bt(2)}function Vs(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function At(e){var t=yu[e];return t||bt(18,e),t}function Kg(e,t){yu[e]||(yu[e]=t)}function hu(){return Mo}function ja(e,t){t&&(At("Patches"),e.u=[],e.s=[],e.v=t)}function Yi(e){mu(e),e.p.forEach(Qg),e.p=null}function mu(e){e===Mo&&(Mo=e.l)}function Of(e){return Mo={p:[],l:Mo,h:e,m:!0,_:0}}function Qg(e){var t=e[de];t.i===0||t.i===1?t.j():t.g=!0}function ba(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||At("ES5").S(t,e,r),r?(n[de].P&&(Yi(t),bt(4)),rn(e)&&(e=Gi(t,e),t.l||Xi(t,e)),t.u&&At("Patches").M(n[de].t,e,t.u,t.s)):e=Gi(t,n,[]),Yi(t),t.u&&t.v(t.u,t.s),e!==Lp?e:void 0}function Gi(e,t,n){if(Vs(t))return t;var r=t[de];if(!r)return Zn(t,function(a,u){return jf(e,r,t,a,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Xi(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Bs(r.k):r.o,i=o,l=!1;r.i===3&&(i=new Set(o),o.clear(),l=!0),Zn(i,function(a,u){return jf(e,r,o,a,u,n,l)}),Xi(e,o,!1),n&&e.u&&At("Patches").N(r,n,e.u,e.s)}return r.o}function jf(e,t,n,r,o,i,l){if(Nn(o)){var a=Gi(e,o,i&&t&&t.i!==3&&!Or(t.R,r)?i.concat(r):void 0);if(zp(n,r,a),!Nn(a))return;e.m=!1}else l&&n.add(o);if(rn(o)&&!Vs(o)){if(!e.h.D&&e._<1)return;Gi(e,o),t&&t.A.l||Xi(e,o)}}function Xi(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Ws(t,n)}function Na(e,t){var n=e[de];return(n?Fn(n):e)[t]}function bf(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 mn(e){e.P||(e.P=!0,e.l&&mn(e.l))}function Ta(e){e.o||(e.o=Bs(e.t))}function vu(e,t,n){var r=Us(t)?At("MapSet").F(t,n):Fs(t)?At("MapSet").T(t,n):e.O?function(o,i){var l=Array.isArray(o),a={i:l?1:0,A:i?i.A:hu(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=a,s=zo;l&&(u=[a],s=mo);var c=Proxy.revocable(u,s),d=c.revoke,p=c.proxy;return a.k=p,a.j=d,p}(t,n):At("ES5").J(t,n);return(n?n.A:hu()).p.push(r),r}function Yg(e){return Nn(e)||bt(22,e),function t(n){if(!rn(n))return n;var r,o=n[de],i=Gr(n);if(o){if(!o.P&&(o.i<4||!At("ES5").K(o)))return o.t;o.I=!0,r=Nf(n,i),o.I=!1}else r=Nf(n,i);return Zn(r,function(l,a){o&&Vg(o.t,l)===a||zp(r,l,t(a))}),i===3?new Set(r):r}(e)}function Nf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Bs(e)}function Gg(){function e(i,l){var a=o[i];return a?a.enumerable=l:o[i]=a={configurable:!0,enumerable:l,get:function(){var u=this[de];return zo.get(u,i)},set:function(u){var s=this[de];zo.set(s,i,u)}},a}function t(i){for(var l=i.length-1;l>=0;l--){var a=i[l][de];if(!a.P)switch(a.i){case 5:r(a)&&mn(a);break;case 4:n(a)&&mn(a)}}}function n(i){for(var l=i.t,a=i.k,u=jr(a),s=u.length-1;s>=0;s--){var c=u[s];if(c!==de){var d=l[c];if(d===void 0&&!Or(l,c))return!0;var p=a[c],g=p&&p[de];if(g?g.t!==d:!Dp(p,d))return!0}}var w=!!l[de];return u.length!==jr(l).length+(w?0:1)}function r(i){var l=i.k;if(l.length!==i.t.length)return!0;var a=Object.getOwnPropertyDescriptor(l,l.length-1);if(a&&!a.get)return!0;for(var u=0;u1?m-1:0),y=1;y1?c-1:0),p=1;p=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var l=At("Patches").$;return Nn(n)?l(n,r):this.produce(n,function(a){return l(a,r)})},e}(),ct=new Zg,$p=ct.produce;ct.produceWithPatches.bind(ct);ct.setAutoFreeze.bind(ct);ct.setUseProxies.bind(ct);ct.applyPatches.bind(ct);ct.createDraft.bind(ct);ct.finishDraft.bind(ct);function Ap(e){var t=function(r){var o=r.dispatch,i=r.getState;return function(l){return function(a){return typeof a=="function"?a(o,i,e):l(a)}}};return t}var Up=Ap();Up.withExtraArgument=Ap;const Df=Up;var Fp=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),e0=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(s){return function(c){return u([s,c])}}function u(s){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,o=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]{e.theme=t.payload,document.documentElement.setAttribute("data-theme",t.payload)}}}),{setTheme:Uf}=Vp.actions,_0=Vp.reducer;let Hp,er,Ji=!1;const Da=2e3;let wu=250,tr=1e3;const R0=()=>{Ji||(Ji=!0,Hp())},Ff=()=>{Ji&&(Ji=!1,Kp())},Kp=()=>{er=new Promise(e=>{Hp=e})},Bf=e=>{tr=e},O0=e=>{wu=e};Kp();async function*Bt(e,t,n){await er;const r=e[t];e[t]=e[n],e[n]=r,yield{type:"swap",positions:[t,n]},await Zi(tr),await er}async function*ut(...e){yield{type:"highlight",positions:[-1,-1]},await Zi(wu),await er,yield{type:"highlight",positions:e},await Zi(wu),await er}async function*qi(e){yield{type:"pivot",position:e}}async function*ze(e){yield{type:"sort",position:e}}async function*j0(...e){await er,yield{type:"move",positions:e},await Zi(tr)}function Zi(e){return new Promise(t=>setTimeout(t,e))}async function*b0(e){let t,n;for(t=0;te[n+1]&&(yield*Bt(e,n,n+1));yield*ze(n)}}async function*N0(e){for(let t=0;te[n+1]&&(yield*Bt(e,n,n+1),r=0);if(r==1){for(let o=0;oe.length-n-1;o--)yield*ut(o-1,o),e[o]=0;n--)yield*Su(e,n,t);for(let n=e.length-1;n>0;n--)t--,yield*ze(t),yield*Bt(e,0,n),yield*Su(e,0,t);yield*ze(0)}async function*Su(e,t,n){const r=2*t+1,o=2*t+2;let i=t;const l=[];r0&&(yield*qi(t),yield*ut(...l)),re[i]&&(i=r),oe[i]&&(i=o),i!==t&&(yield*Bt(e,t,i),yield*qi(-1),yield*Su(e,i,n))}async function*M0(e){let t,n;for(t=0;t=0&&(yield*ut(r,n),e[n]>e[r]);n--)yield*Bt(e,n,r),r=n;yield*ze(t)}}async function*xu(e,t=0,n=e.length-1,r=!0){if(t===n){r&&e.length===1&&(yield*ze(t));return}if(te[s]){const c=e[s];D0(e,u,s),e[u]=c,yield*j0(u,s),t++,a++,i&&(yield*ze(u))}}for(let u=t+l;ut;r--)e[r]=e[r-1]}async function*Eu(e,t=0,n=e.length-1){if(t<=n){const r=yield*L0(e,t,n);typeof r=="number"&&(yield*Eu(e,t,r-1),yield*Eu(e,r+1,n))}}async function*L0(e,t,n){const r=t;let o=t,i=n+1;for(yield*qi(r);ot&&(yield*ut(i),!(e[i]e[r])););o0;){for(let n=t;n0&&e[r]<=e[r-t];)yield*ut(r,r-t),yield*Bt(e,r-t,r),r-=t;e[r]=o,t==1&&(yield*ze(0),yield*ze(n))}t=Math.floor((t-1)/3)}}const Nt=[{name:"bubble",fn:b0},{name:"selection",fn:I0},{name:"insertion",fn:M0},{name:"heap",fn:T0},{name:"merge",fn:xu},{name:"quick",fn:Eu},{name:"shell",fn:$0},{name:"cocktail",fn:N0}],Qp=Nt.map(e=>e.name).concat("all"),A0=[6,8,3,5,1,9,2,7,4],Wf={min:10,max:40},Yp="Sorting is complete",gn={size:50,margin:4},bl={size:30,minSize:10,maxHeight:250,margin:2},Nl={sort:"#8cf12b",highlight:"yellow",pivot:"orange",bar:"lightgrey"},U0=Nt.map(()=>!0),Vt=document.querySelector(":root");Vt.style.setProperty("--cell-size",`${gn.size}px`);Vt.style.setProperty("--cell-margin",`${gn.margin}px`);Vt.style.setProperty("--bar-size",`${bl.size}px`);Vt.style.setProperty("--bar-min-size",`${bl.minSize}px`);Vt.style.setProperty("--bar-max-height",`${bl.maxHeight}px`);Vt.style.setProperty("--bar-margin",`${bl.margin}px`);Vt.style.setProperty("--color-sort",Nl.sort);Vt.style.setProperty("--color-highlight",Nl.highlight);Vt.style.setProperty("--color-pivot",Nl.pivot);Vt.style.setProperty("--color-bar",Nl.bar);const F0={array:A0,visualizerType:"cell",isPlaying:!1,reset:!1,time:0,speed:5,timeIntervalId:null,selectedAlgosStatus:U0},Gp=Wp({name:"sortViz",initialState:F0,reducers:{setArray:(e,t)=>{e.array=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload,t.payload?R0():Ff(),!e.isPlaying&&e.timeIntervalId&&(clearInterval(e.timeIntervalId),e.timeIntervalId=null)},setIntervalId:(e,t)=>{e.timeIntervalId=t.payload},incrementTime:e=>{e.time++},setReset:e=>{e.reset=!e.reset,Ff(),e.time=0},modifyAlgoSelection:(e,t)=>{e.selectedAlgosStatus[t.payload]=!e.selectedAlgosStatus[t.payload]},setSpeed:(e,t)=>{e.speed=t.payload,Vf(e)},toggleVisualizerType:e=>{e.visualizerType=e.visualizerType==="cell"?"bar":"cell",Vf(e)}}});function Vf(e){e.visualizerType==="cell"?Bf(Da/e.speed):Bf(Da/(e.speed*4)),O0(Da/(e.speed*4))}const{setArray:ku,setIsPlaying:$r,setReset:Tl,setSpeed:Hf,setIntervalId:B0,incrementTime:W0,modifyAlgoSelection:V0,toggleVisualizerType:H0}=Gp.actions,K0=Gp.reducer,Q0=()=>e=>{const t=setInterval(()=>{e(W0())},100);e(B0(t))};var Qs={},Ys={};Ys.__esModule=!0;Ys.default=X0;function bi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bi=function(n){return typeof n}:bi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bi(e)}function La(){}var Y0={getItem:La,setItem:La,removeItem:La};function G0(e){if((typeof self>"u"?"undefined":bi(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X0(e){var t="".concat(e,"Storage");return G0(t)?self[t]:Y0}Qs.__esModule=!0;Qs.default=Z0;var J0=q0(Ys);function q0(e){return e&&e.__esModule?e:{default:e}}function Z0(e){var t=(0,J0.default)(e);return{getItem:function(r){return new Promise(function(o,i){o(t.getItem(r))})},setItem:function(r,o){return new Promise(function(i,l){i(t.setItem(r,o))})},removeItem:function(r){return new Promise(function(o,i){o(t.removeItem(r))})}}}var Pu=void 0,e1=t1(Qs);function t1(e){return e&&e.__esModule?e:{default:e}}var n1=(0,e1.default)("local");Pu=n1;const Xp=m0({reducer:{app:Ef({key:"app",storage:Pu},_0),sortViz:Ef({key:"sorting-viz",storage:Pu},K0)},middleware:e=>e({serializableCheck:{ignoredActions:[zs,jl,Ds,Ls,Is,$s]}})}),r1=Wg(Xp);var Jp={exports:{}},qp={};/** + */function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function ig(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function lg(e,t){return e.button===0&&(!t||t==="_self")&&!ig(e)}const ag=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],ug=["aria-current","caseSensitive","className","end","style","to","children"];function sg(e,t){return by({basename:t==null?void 0:t.basename,future:Lr({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:qv({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||cg(),routes:e,mapRouteProperties:og}).initialize()}function cg(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Lr({},t,{errors:fg(t.errors)})),t}function fg(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Os(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let l=new i(o.message);l.stack="",n[r]=l}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const dg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hg=C.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:u,to:s,preventScrollReset:c}=t,d=Tp(t,ag),{basename:p}=C.useContext(ar),g,w=!1;if(typeof s=="string"&&pg.test(s)&&(g=s,dg))try{let f=new URL(window.location.href),y=s.startsWith("//")?new URL(f.protocol+s):new URL(s),h=Yr(y.pathname,p);y.origin===f.origin&&h!=null?s=h+y.search+y.hash:w=!0}catch{}let v=Fy(s,{relative:o}),S=vg(s,{replace:l,state:a,target:u,preventScrollReset:c,relative:o});function m(f){r&&r(f),f.defaultPrevented||S(f)}return C.createElement("a",Lr({},d,{href:g||v,onClick:w||i?r:m,ref:n,target:u}))}),mg=C.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:l=!1,style:a,to:u,children:s}=t,c=Tp(t,ug),d=Ts(u,{relative:c.relative}),p=ei(),g=C.useContext(bs),{navigator:w}=C.useContext(ar),v=w.encodeLocation?w.encodeLocation(d).pathname:d.pathname,S=p.pathname,m=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),m=m?m.toLowerCase():null,v=v.toLowerCase());let f=S===v||!l&&S.startsWith(v)&&S.charAt(v.length)==="/",y=m!=null&&(m===v||!l&&m.startsWith(v)&&m.charAt(v.length)==="/"),h=f?r:void 0,E;typeof i=="function"?E=i({isActive:f,isPending:y}):E=[i,f?"active":null,y?"pending":null].filter(Boolean).join(" ");let P=typeof a=="function"?a({isActive:f,isPending:y}):a;return C.createElement(hg,Lr({},c,{"aria-current":h,className:E,ref:n,style:P,to:u}),typeof s=="function"?s({isActive:f,isPending:y}):s)});var gf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(gf||(gf={}));var wf;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wf||(wf={}));function vg(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l}=t===void 0?{}:t,a=jp(),u=ei(),s=Ts(e,{relative:l});return C.useCallback(c=>{if(lg(c,n)){c.preventDefault();let d=r!==void 0?r:qn(u)===qn(s);a(e,{replace:d,state:o,preventScrollReset:i,relative:l})}},[u,a,s,r,o,n,e,i,l])}var Ms="persist:",zs="persist/FLUSH",jl="persist/REHYDRATE",Ds="persist/PAUSE",Ls="persist/PERSIST",Is="persist/PURGE",$s="persist/REGISTER",yg=-1;function ji(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ji=function(n){return typeof n}:ji=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},ji(e)}function Sf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function gg(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jg(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var bg=5e3;function Ef(e,t){var n=e.version!==void 0?e.version:yg;e.debug;var r=e.stateReconciler===void 0?Sg:e.stateReconciler,o=e.getStoredState||kg,i=e.timeout!==void 0?e.timeout:bg,l=null,a=!1,u=!0,s=function(d){return d._persist.rehydrated&&l&&!u&&l.update(d),d};return function(c,d){var p=c||{},g=p._persist,w=Og(p,["_persist"]),v=w;if(d.type===Ls){var S=!1,m=function(N,$){S||(d.rehydrate(e.key,N,$),S=!0)};if(i&&setTimeout(function(){!S&&m(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),u=!1,l||(l=xg(e)),g)return Gt({},t(v,d),{_persist:g});if(typeof d.rehydrate!="function"||typeof d.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),o(e).then(function(_){var N=e.migrate||function($,M){return Promise.resolve($)};N(_,n).then(function($){m($)},function($){m(void 0,$)})},function(_){m(void 0,_)}),Gt({},t(v,d),{_persist:{version:n,rehydrated:!1}})}else{if(d.type===Is)return a=!0,d.result(Cg(e)),Gt({},t(v,d),{_persist:g});if(d.type===zs)return d.result(l&&l.flush()),Gt({},t(v,d),{_persist:g});if(d.type===Ds)u=!0;else if(d.type===jl){if(a)return Gt({},v,{_persist:Gt({},g,{rehydrated:!0})});if(d.key===e.key){var f=t(v,d),y=d.payload,h=r!==!1&&y!==void 0?r(y,c,f,e):f,E=Gt({},h,{_persist:Gt({},g,{rehydrated:!0})});return s(E)}}}if(!g)return t(c,d);var P=t(v,d);return P===v?c:s(Gt({},P,{_persist:g}))}}function To(e){"@babel/helpers - typeof";return To=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},To(e)}function Ng(e,t){if(To(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(To(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tg(e){var t=Ng(e,"string");return To(t)==="symbol"?t:String(t)}function Mg(e,t,n){return t=Tg(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fe(1));return n(As)(e,t)}if(typeof e!="function")throw new Error(Fe(2));var o=e,i=t,l=[],a=l,u=!1;function s(){a===l&&(a=l.slice())}function c(){if(u)throw new Error(Fe(3));return i}function d(v){if(typeof v!="function")throw new Error(Fe(4));if(u)throw new Error(Fe(5));var S=!0;return s(),a.push(v),function(){if(S){if(u)throw new Error(Fe(6));S=!1,s();var f=a.indexOf(v);a.splice(f,1),l=null}}}function p(v){if(!zg(v))throw new Error(Fe(7));if(typeof v.type>"u")throw new Error(Fe(8));if(u)throw new Error(Fe(9));try{u=!0,i=o(i,v)}finally{u=!1}for(var S=l=a,m=0;m"u")throw new Error(Fe(12));if(typeof n(void 0,{type:Ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fe(13))})}function Lg(e){for(var t=Object.keys(e),n={},r=0;r"u")throw s&&s.type,new Error(Fe(14));d[g]=S,c=c||S!==v}return c=c||i.length!==Object.keys(u).length,c?d:u}}function Qi(){for(var e=arguments.length,t=new Array(e),n=0;n0&&arguments[0]!==void 0?arguments[0]:Mp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case $s:return pu({},t,{registry:[].concat(_f(t.registry),[n.key])});case jl:var r=t.registry.indexOf(n.key),o=_f(t.registry);return o.splice(r,1),pu({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Wg(e,t,n){var r=n||!1,o=As(Bg,Mp,t&&t.enhancer?t.enhancer:void 0),i=function(s){o.dispatch({type:$s,key:s})},l=function(s,c,d){var p={type:jl,payload:c,err:d,key:s};e.dispatch(p),o.dispatch(p),r&&a.getState().bootstrapped&&(r(),r=!1)},a=pu({},o,{purge:function(){var s=[];return e.dispatch({type:Is,result:function(d){s.push(d)}}),Promise.all(s)},flush:function(){var s=[];return e.dispatch({type:zs,result:function(d){s.push(d)}}),Promise.all(s)},pause:function(){e.dispatch({type:Ds})},persist:function(){e.dispatch({type:Ls,register:i,rehydrate:l})}});return t&&t.manualPersist||a.persist(),a}function bt(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:Us(e)?2:Fs(e)?3:0}function Or(e,t){return Gr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vg(e,t){return Gr(e)===2?e.get(t):e[t]}function zp(e,t,n){var r=Gr(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Dp(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Us(e){return Xg&&e instanceof Map}function Fs(e){return Jg&&e instanceof Set}function Fn(e){return e.o||e.t}function Bs(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Ip(e);delete t[de];for(var n=jr(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=Hg),Object.freeze(e),t&&Zn(e,function(n,r){return Ws(r,!0)},!0)),e}function Hg(){bt(2)}function Vs(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function At(e){var t=yu[e];return t||bt(18,e),t}function Kg(e,t){yu[e]||(yu[e]=t)}function hu(){return Mo}function ja(e,t){t&&(At("Patches"),e.u=[],e.s=[],e.v=t)}function Yi(e){mu(e),e.p.forEach(Qg),e.p=null}function mu(e){e===Mo&&(Mo=e.l)}function Of(e){return Mo={p:[],l:Mo,h:e,m:!0,_:0}}function Qg(e){var t=e[de];t.i===0||t.i===1?t.j():t.g=!0}function ba(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||At("ES5").S(t,e,r),r?(n[de].P&&(Yi(t),bt(4)),rn(e)&&(e=Gi(t,e),t.l||Xi(t,e)),t.u&&At("Patches").M(n[de].t,e,t.u,t.s)):e=Gi(t,n,[]),Yi(t),t.u&&t.v(t.u,t.s),e!==Lp?e:void 0}function Gi(e,t,n){if(Vs(t))return t;var r=t[de];if(!r)return Zn(t,function(a,u){return jf(e,r,t,a,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Xi(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=Bs(r.k):r.o,i=o,l=!1;r.i===3&&(i=new Set(o),o.clear(),l=!0),Zn(i,function(a,u){return jf(e,r,o,a,u,n,l)}),Xi(e,o,!1),n&&e.u&&At("Patches").N(r,n,e.u,e.s)}return r.o}function jf(e,t,n,r,o,i,l){if(Nn(o)){var a=Gi(e,o,i&&t&&t.i!==3&&!Or(t.R,r)?i.concat(r):void 0);if(zp(n,r,a),!Nn(a))return;e.m=!1}else l&&n.add(o);if(rn(o)&&!Vs(o)){if(!e.h.D&&e._<1)return;Gi(e,o),t&&t.A.l||Xi(e,o)}}function Xi(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Ws(t,n)}function Na(e,t){var n=e[de];return(n?Fn(n):e)[t]}function bf(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 mn(e){e.P||(e.P=!0,e.l&&mn(e.l))}function Ta(e){e.o||(e.o=Bs(e.t))}function vu(e,t,n){var r=Us(t)?At("MapSet").F(t,n):Fs(t)?At("MapSet").T(t,n):e.O?function(o,i){var l=Array.isArray(o),a={i:l?1:0,A:i?i.A:hu(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=a,s=zo;l&&(u=[a],s=mo);var c=Proxy.revocable(u,s),d=c.revoke,p=c.proxy;return a.k=p,a.j=d,p}(t,n):At("ES5").J(t,n);return(n?n.A:hu()).p.push(r),r}function Yg(e){return Nn(e)||bt(22,e),function t(n){if(!rn(n))return n;var r,o=n[de],i=Gr(n);if(o){if(!o.P&&(o.i<4||!At("ES5").K(o)))return o.t;o.I=!0,r=Nf(n,i),o.I=!1}else r=Nf(n,i);return Zn(r,function(l,a){o&&Vg(o.t,l)===a||zp(r,l,t(a))}),i===3?new Set(r):r}(e)}function Nf(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Bs(e)}function Gg(){function e(i,l){var a=o[i];return a?a.enumerable=l:o[i]=a={configurable:!0,enumerable:l,get:function(){var u=this[de];return zo.get(u,i)},set:function(u){var s=this[de];zo.set(s,i,u)}},a}function t(i){for(var l=i.length-1;l>=0;l--){var a=i[l][de];if(!a.P)switch(a.i){case 5:r(a)&&mn(a);break;case 4:n(a)&&mn(a)}}}function n(i){for(var l=i.t,a=i.k,u=jr(a),s=u.length-1;s>=0;s--){var c=u[s];if(c!==de){var d=l[c];if(d===void 0&&!Or(l,c))return!0;var p=a[c],g=p&&p[de];if(g?g.t!==d:!Dp(p,d))return!0}}var w=!!l[de];return u.length!==jr(l).length+(w?0:1)}function r(i){var l=i.k;if(l.length!==i.t.length)return!0;var a=Object.getOwnPropertyDescriptor(l,l.length-1);if(a&&!a.get)return!0;for(var u=0;u1?m-1:0),y=1;y1?c-1:0),p=1;p=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var l=At("Patches").$;return Nn(n)?l(n,r):this.produce(n,function(a){return l(a,r)})},e}(),ct=new Zg,$p=ct.produce;ct.produceWithPatches.bind(ct);ct.setAutoFreeze.bind(ct);ct.setUseProxies.bind(ct);ct.applyPatches.bind(ct);ct.createDraft.bind(ct);ct.finishDraft.bind(ct);function Ap(e){var t=function(r){var o=r.dispatch,i=r.getState;return function(l){return function(a){return typeof a=="function"?a(o,i,e):l(a)}}};return t}var Up=Ap();Up.withExtraArgument=Ap;const Df=Up;var Fp=globalThis&&globalThis.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),e0=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,l;return l={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function a(s){return function(c){return u([s,c])}}function u(s){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,o=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]{e.theme=t.payload,document.documentElement.setAttribute("data-theme",t.payload)}}}),{setTheme:Uf}=Vp.actions,_0=Vp.reducer;let Hp,er,Ji=!1;const Da=2e3;let wu=250,tr=1e3;const R0=()=>{Ji||(Ji=!0,Hp())},Ff=()=>{Ji&&(Ji=!1,Kp())},Kp=()=>{er=new Promise(e=>{Hp=e})},Bf=e=>{tr=e},O0=e=>{wu=e};Kp();async function*Bt(e,t,n){await er;const r=e[t];e[t]=e[n],e[n]=r,yield{type:"swap",positions:[t,n]},await Zi(tr),await er}async function*ut(...e){yield{type:"highlight",positions:[-1,-1]},await Zi(wu),await er,yield{type:"highlight",positions:e},await Zi(wu),await er}async function*qi(e){yield{type:"pivot",position:e}}async function*Ne(e){yield{type:"sort",position:e}}async function*j0(...e){await er,yield{type:"move",positions:e},await Zi(tr)}function Zi(e){return new Promise(t=>setTimeout(t,e))}async function*b0(e){let t,n;for(t=0;te[n+1]&&(yield*Bt(e,n,n+1));yield*Ne(n)}}async function*N0(e){for(let t=0;te[n+1]&&(yield*Bt(e,n,n+1),r=0);if(r==1){for(let o=0;oe.length-n-1;o--)yield*ut(o-1,o),e[o]=0;n--)yield*Su(e,n,t);for(let n=e.length-1;n>0;n--)t--,yield*Ne(t),yield*Bt(e,0,n),yield*Su(e,0,t);yield*Ne(0)}async function*Su(e,t,n){const r=2*t+1,o=2*t+2;let i=t;const l=[];r0&&(yield*qi(t),yield*ut(...l)),re[i]&&(i=r),oe[i]&&(i=o),i!==t&&(yield*Bt(e,t,i),yield*qi(-1),yield*Su(e,i,n))}async function*M0(e){let t,n;for(t=0;t=0&&(yield*ut(r,n),e[n]>e[r]);n--)yield*Bt(e,n,r),r=n;yield*Ne(t)}}async function*xu(e,t=0,n=e.length-1,r=!0){if(t===n){r&&e.length===1&&(yield*Ne(t));return}if(te[s]){const c=e[s];D0(e,u,s),e[u]=c,yield*j0(u,s),t++,a++,i&&(yield*Ne(u))}}for(let u=t+l;ut;r--)e[r]=e[r-1]}async function*Eu(e,t=0,n=e.length-1){if(t<=n){const r=yield*L0(e,t,n);typeof r=="number"&&(yield*Eu(e,t,r-1),yield*Eu(e,r+1,n))}}async function*L0(e,t,n){const r=t;let o=t,i=n+1;for(yield*qi(r);ot&&(yield*ut(i),!(e[i]e[r])););o0;){for(let n=t;n0&&e[r]<=e[r-t];)yield*ut(r,r-t),yield*Bt(e,r-t,r),r-=t;e[r]=o,t==1&&(yield*Ne(0),yield*Ne(n))}t=Math.floor((t-1)/3)}}const Nt=[{name:"bubble",fn:b0},{name:"selection",fn:I0},{name:"insertion",fn:M0},{name:"heap",fn:T0},{name:"merge",fn:xu},{name:"quick",fn:Eu},{name:"shell",fn:$0},{name:"cocktail",fn:N0}],Qp=Nt.map(e=>e.name).concat("all"),A0=[6,8,3,5,1,9,2,7,4],Wf={min:10,max:40},Yp="Sorting is complete",gn={size:50,margin:4},bl={size:30,minSize:10,maxHeight:250,margin:2},Nl={sort:"#8cf12b",highlight:"yellow",pivot:"orange",bar:"lightgrey"},U0=Nt.map(()=>!0),Vt=document.querySelector(":root");Vt.style.setProperty("--cell-size",`${gn.size}px`);Vt.style.setProperty("--cell-margin",`${gn.margin}px`);Vt.style.setProperty("--bar-size",`${bl.size}px`);Vt.style.setProperty("--bar-min-size",`${bl.minSize}px`);Vt.style.setProperty("--bar-max-height",`${bl.maxHeight}px`);Vt.style.setProperty("--bar-margin",`${bl.margin}px`);Vt.style.setProperty("--color-sort",Nl.sort);Vt.style.setProperty("--color-highlight",Nl.highlight);Vt.style.setProperty("--color-pivot",Nl.pivot);Vt.style.setProperty("--color-bar",Nl.bar);const F0={array:A0,visualizerType:"cell",isPlaying:!1,reset:!1,time:0,speed:5,timeIntervalId:null,selectedAlgosStatus:U0},Gp=Wp({name:"sortViz",initialState:F0,reducers:{setArray:(e,t)=>{e.array=t.payload},setIsPlaying:(e,t)=>{e.isPlaying=t.payload,t.payload?R0():Ff(),!e.isPlaying&&e.timeIntervalId&&(clearInterval(e.timeIntervalId),e.timeIntervalId=null)},setIntervalId:(e,t)=>{e.timeIntervalId=t.payload},incrementTime:e=>{e.time++},setReset:e=>{e.reset=!e.reset,Ff(),e.time=0},modifyAlgoSelection:(e,t)=>{e.selectedAlgosStatus[t.payload]=!e.selectedAlgosStatus[t.payload]},setSpeed:(e,t)=>{e.speed=t.payload,Vf(e)},toggleVisualizerType:e=>{e.visualizerType=e.visualizerType==="cell"?"bar":"cell",Vf(e)}}});function Vf(e){e.visualizerType==="cell"?Bf(Da/e.speed):Bf(Da/(e.speed*4)),O0(Da/(e.speed*4))}const{setArray:ku,setIsPlaying:$r,setReset:Tl,setSpeed:Hf,setIntervalId:B0,incrementTime:W0,modifyAlgoSelection:V0,toggleVisualizerType:H0}=Gp.actions,K0=Gp.reducer,Q0=()=>e=>{const t=setInterval(()=>{e(W0())},100);e(B0(t))};var Qs={},Ys={};Ys.__esModule=!0;Ys.default=X0;function bi(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bi=function(n){return typeof n}:bi=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},bi(e)}function La(){}var Y0={getItem:La,setItem:La,removeItem:La};function G0(e){if((typeof self>"u"?"undefined":bi(self))!=="object"||!(e in self))return!1;try{var t=self[e],n="redux-persist ".concat(e," test");t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch{return!1}return!0}function X0(e){var t="".concat(e,"Storage");return G0(t)?self[t]:Y0}Qs.__esModule=!0;Qs.default=Z0;var J0=q0(Ys);function q0(e){return e&&e.__esModule?e:{default:e}}function Z0(e){var t=(0,J0.default)(e);return{getItem:function(r){return new Promise(function(o,i){o(t.getItem(r))})},setItem:function(r,o){return new Promise(function(i,l){i(t.setItem(r,o))})},removeItem:function(r){return new Promise(function(o,i){o(t.removeItem(r))})}}}var Pu=void 0,e1=t1(Qs);function t1(e){return e&&e.__esModule?e:{default:e}}var n1=(0,e1.default)("local");Pu=n1;const Xp=m0({reducer:{app:Ef({key:"app",storage:Pu},_0),sortViz:Ef({key:"sorting-viz",storage:Pu},K0)},middleware:e=>e({serializableCheck:{ignoredActions:[zs,jl,Ds,Ls,Is,$s]}})}),r1=Wg(Xp);var Jp={exports:{}},qp={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -79,16 +79,16 @@ function jv(e,t){for(var n=0;na||o[l]!==i[a]){var u=` `+o[l].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=l&&0<=a);break}}}finally{Aa=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vo(e):""}function O1(e){switch(e.tag){case 5:return vo(e.type);case 16:return vo("Lazy");case 13:return vo("Suspense");case 19:return vo("SuspenseList");case 0:case 2:case 15:return e=Ua(e.type,!1),e;case 11:return e=Ua(e.type.render,!1),e;case 1:return e=Ua(e.type,!0),e;default:return""}}function ju(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 vr:return"Fragment";case mr:return"Portal";case _u:return"Profiler";case qs:return"StrictMode";case Ru:return"Suspense";case Ou:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ah:return(e.displayName||"Context")+".Consumer";case lh:return(e._context.displayName||"Context")+".Provider";case Zs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ec:return t=e.displayName||null,t!==null?t:ju(e.type)||"Memo";case pn:t=e._payload,e=e._init;try{return ju(e(t))}catch{}}return null}function j1(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 ju(t);case 8:return t===qs?"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 Tn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b1(e){var t=sh(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=b1(e))}function ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function el(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 bu(e,t){var n=t.checked;return ge({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Tn(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 fh(e,t){t=t.checked,t!=null&&Js(e,"checked",t,!1)}function Nu(e,t){fh(e,t);var n=Tn(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")?Tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tu(e,t.type,Tn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xf(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 Tu(e,t,n){(t!=="number"||el(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yo=Array.isArray;function br(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var xo={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},N1=["Webkit","ms","Moz","O"];Object.keys(xo).forEach(function(e){N1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xo[t]=xo[e]})});function mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||xo.hasOwnProperty(e)&&xo[e]?(""+t).trim():t+"px"}function vh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var T1=ge({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 Du(e,t){if(t){if(T1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Lu(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 Iu=null;function tc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $u=null,Nr=null,Tr=null;function Zf(e){if(e=ri(e)){if(typeof $u!="function")throw Error(j(280));var t=e.stateNode;t&&(t=$l(t),$u(e.stateNode,e.type,t))}}function yh(e){Nr?Tr?Tr.push(e):Tr=[e]:Nr=e}function gh(){if(Nr){var e=Nr,t=Tr;if(Tr=Nr=null,Zf(e),t)for(e=0;e>>=0,e===0?32:31-(W1(e)/V1|0)|0}var pi=64,hi=4194304;function go(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 ol(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=go(a):(i&=l,i!==0&&(r=go(i)))}else l=n&~o,l!==0?r=go(l):i!==0&&(r=go(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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 ti(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function Y1(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=ko),ud=String.fromCharCode(32),sd=!1;function $h(e,t){switch(e){case"keyup":return Ew.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function Pw(e,t){switch(e){case"compositionend":return Ah(t);case"keypress":return t.which!==32?null:(sd=!0,ud);case"textInput":return e=t.data,e===ud&&sd?null:e;default:return null}}function Cw(e,t){if(yr)return e==="compositionend"||!sc&&$h(e,t)?(e=Lh(),Ti=lc=wn=null,yr=!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=pd(n)}}function Wh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vh(){for(var e=window,t=el();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=el(e.document)}return t}function cc(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 zw(e){var t=Vh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wh(n.ownerDocument.documentElement,n)){if(r!==null&&cc(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=hd(n,i);var l=hd(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,gr=null,Vu=null,Co=null,Hu=!1;function md(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hu||gr==null||gr!==el(r)||(r=gr,"selectionStart"in r&&cc(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}),Co&&Bo(Co,r)||(Co=r,r=al(Vu,"onSelect"),0xr||(e.current=Ju[xr],Ju[xr]=null,xr--)}function ue(e,t){xr++,Ju[xr]=e.current,e.current=t}var Mn={},Ve=In(Mn),nt=In(!1),nr=Mn;function Fr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function sl(){fe(nt),fe(Ve)}function Ed(e,t,n){if(Ve.current!==Mn)throw Error(j(168));ue(Ve,t),ue(nt,n)}function Zh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,j1(e)||"Unknown",o));return ge({},n,r)}function cl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,nr=Ve.current,ue(Ve,e),ue(nt,nt.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Zh(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe(Ve),ue(Ve,e)):fe(nt),ue(nt,n)}var qt=null,Al=!1,eu=!1;function em(e){qt===null?qt=[e]:qt.push(e)}function Kw(e){Al=!0,em(e)}function $n(){if(!eu&&qt!==null){eu=!0;var e=0,t=te;try{var n=qt;for(te=1;e>=l,o-=l,Zt=1<<32-Tt(t)+o|n<N?($=_,_=null):$=_.sibling;var M=p(m,_,y[N],h);if(M===null){_===null&&(_=$);break}e&&_&&M.alternate===null&&t(m,_),f=i(M,f,N),P===null?E=M:P.sibling=M,P=M,_=$}if(N===y.length)return n(m,_),pe&&Bn(m,N),E;if(_===null){for(;NN?($=_,_=null):$=_.sibling;var J=p(m,_,M.value,h);if(J===null){_===null&&(_=$);break}e&&_&&J.alternate===null&&t(m,_),f=i(J,f,N),P===null?E=J:P.sibling=J,P=J,_=$}if(M.done)return n(m,_),pe&&Bn(m,N),E;if(_===null){for(;!M.done;N++,M=y.next())M=d(m,M.value,h),M!==null&&(f=i(M,f,N),P===null?E=M:P.sibling=M,P=M);return pe&&Bn(m,N),E}for(_=r(m,_);!M.done;N++,M=y.next())M=g(_,m,N,M.value,h),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?N:M.key),f=i(M,f,N),P===null?E=M:P.sibling=M,P=M);return e&&_.forEach(function(K){return t(m,K)}),pe&&Bn(m,N),E}function S(m,f,y,h){if(typeof y=="object"&&y!==null&&y.type===vr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ci:e:{for(var E=y.key,P=f;P!==null;){if(P.key===E){if(E=y.type,E===vr){if(P.tag===7){n(m,P.sibling),f=o(P,y.props.children),f.return=m,m=f;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===pn&&bd(E)===P.type){n(m,P.sibling),f=o(P,y.props),f.ref=fo(m,P,y),f.return=m,m=f;break e}n(m,P);break}else t(m,P);P=P.sibling}y.type===vr?(f=Xn(y.props.children,m.mode,h,y.key),f.return=m,m=f):(h=Ui(y.type,y.key,y.props,null,m.mode,h),h.ref=fo(m,f,y),h.return=m,m=h)}return l(m);case mr:e:{for(P=y.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(m,f.sibling),f=o(f,y.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=uu(y,m.mode,h),f.return=m,m=f}return l(m);case pn:return P=y._init,S(m,f,P(y._payload),h)}if(yo(y))return w(m,f,y,h);if(lo(y))return v(m,f,y,h);xi(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(m,f.sibling),f=o(f,y),f.return=m,m=f):(n(m,f),f=au(y,m.mode,h),f.return=m,m=f),l(m)):n(m,f)}return S}var Wr=um(!0),sm=um(!1),oi={},Ft=In(oi),Ko=In(oi),Qo=In(oi);function Yn(e){if(e===oi)throw Error(j(174));return e}function wc(e,t){switch(ue(Qo,t),ue(Ko,e),ue(Ft,oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zu(t,e)}fe(Ft),ue(Ft,t)}function Vr(){fe(Ft),fe(Ko),fe(Qo)}function cm(e){Yn(Qo.current);var t=Yn(Ft.current),n=zu(t,e.type);t!==n&&(ue(Ko,e),ue(Ft,n))}function Sc(e){Ko.current===e&&(fe(Ft),fe(Ko))}var ve=In(0);function vl(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 tu=[];function xc(){for(var e=0;en?n:4,e(!0);var r=nu.transition;nu.transition={};try{e(!1),t()}finally{te=n,nu.transition=r}}function _m(){return Et().memoizedState}function Xw(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rm(e))Om(t,n);else if(n=om(e,t,n,r),n!==null){var o=Ye();Mt(n,e,r,o),jm(n,t,r)}}function Jw(e,t,n){var r=jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rm(e))Om(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,zt(a,l)){var u=t.interleaved;u===null?(o.next=o,yc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=om(e,t,o,r),n!==null&&(o=Ye(),Mt(n,e,r,o),jm(n,t,r))}}function Rm(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Om(e,t){_o=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rc(e,n)}}var gl={readContext:xt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},qw={readContext:xt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Td,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,xm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();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=Xw.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:Nd,useDebugValue:_c,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=Nd(!1),t=e[0];return e=Gw.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=It();if(pe){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Ne===null)throw Error(j(349));or&30||pm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Td(mm.bind(null,r,i,e),[e]),r.flags|=2048,Xo(9,hm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=It(),t=Ne.identifierPrefix;if(pe){var n=en,r=Zt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yo++,0xr||(e.current=Ju[xr],Ju[xr]=null,xr--)}function ue(e,t){xr++,Ju[xr]=e.current,e.current=t}var Mn={},Ve=In(Mn),nt=In(!1),nr=Mn;function Fr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function sl(){fe(nt),fe(Ve)}function Ed(e,t,n){if(Ve.current!==Mn)throw Error(j(168));ue(Ve,t),ue(nt,n)}function Zh(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,j1(e)||"Unknown",o));return ge({},n,r)}function cl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,nr=Ve.current,ue(Ve,e),ue(nt,nt.current),!0}function kd(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Zh(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe(Ve),ue(Ve,e)):fe(nt),ue(nt,n)}var qt=null,Al=!1,eu=!1;function em(e){qt===null?qt=[e]:qt.push(e)}function Kw(e){Al=!0,em(e)}function $n(){if(!eu&&qt!==null){eu=!0;var e=0,t=te;try{var n=qt;for(te=1;e>=l,o-=l,Zt=1<<32-Tt(t)+o|n<N?($=_,_=null):$=_.sibling;var M=p(m,_,y[N],h);if(M===null){_===null&&(_=$);break}e&&_&&M.alternate===null&&t(m,_),f=i(M,f,N),P===null?E=M:P.sibling=M,P=M,_=$}if(N===y.length)return n(m,_),pe&&Bn(m,N),E;if(_===null){for(;NN?($=_,_=null):$=_.sibling;var J=p(m,_,M.value,h);if(J===null){_===null&&(_=$);break}e&&_&&J.alternate===null&&t(m,_),f=i(J,f,N),P===null?E=J:P.sibling=J,P=J,_=$}if(M.done)return n(m,_),pe&&Bn(m,N),E;if(_===null){for(;!M.done;N++,M=y.next())M=d(m,M.value,h),M!==null&&(f=i(M,f,N),P===null?E=M:P.sibling=M,P=M);return pe&&Bn(m,N),E}for(_=r(m,_);!M.done;N++,M=y.next())M=g(_,m,N,M.value,h),M!==null&&(e&&M.alternate!==null&&_.delete(M.key===null?N:M.key),f=i(M,f,N),P===null?E=M:P.sibling=M,P=M);return e&&_.forEach(function(K){return t(m,K)}),pe&&Bn(m,N),E}function S(m,f,y,h){if(typeof y=="object"&&y!==null&&y.type===vr&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ci:e:{for(var E=y.key,P=f;P!==null;){if(P.key===E){if(E=y.type,E===vr){if(P.tag===7){n(m,P.sibling),f=o(P,y.props.children),f.return=m,m=f;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===pn&&bd(E)===P.type){n(m,P.sibling),f=o(P,y.props),f.ref=fo(m,P,y),f.return=m,m=f;break e}n(m,P);break}else t(m,P);P=P.sibling}y.type===vr?(f=Xn(y.props.children,m.mode,h,y.key),f.return=m,m=f):(h=Ui(y.type,y.key,y.props,null,m.mode,h),h.ref=fo(m,f,y),h.return=m,m=h)}return l(m);case mr:e:{for(P=y.key;f!==null;){if(f.key===P)if(f.tag===4&&f.stateNode.containerInfo===y.containerInfo&&f.stateNode.implementation===y.implementation){n(m,f.sibling),f=o(f,y.children||[]),f.return=m,m=f;break e}else{n(m,f);break}else t(m,f);f=f.sibling}f=uu(y,m.mode,h),f.return=m,m=f}return l(m);case pn:return P=y._init,S(m,f,P(y._payload),h)}if(yo(y))return w(m,f,y,h);if(lo(y))return v(m,f,y,h);xi(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,f!==null&&f.tag===6?(n(m,f.sibling),f=o(f,y),f.return=m,m=f):(n(m,f),f=au(y,m.mode,h),f.return=m,m=f),l(m)):n(m,f)}return S}var Wr=um(!0),sm=um(!1),oi={},Ft=In(oi),Ko=In(oi),Qo=In(oi);function Yn(e){if(e===oi)throw Error(j(174));return e}function wc(e,t){switch(ue(Qo,t),ue(Ko,e),ue(Ft,oi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zu(t,e)}fe(Ft),ue(Ft,t)}function Vr(){fe(Ft),fe(Ko),fe(Qo)}function cm(e){Yn(Qo.current);var t=Yn(Ft.current),n=zu(t,e.type);t!==n&&(ue(Ko,e),ue(Ft,n))}function Sc(e){Ko.current===e&&(fe(Ft),fe(Ko))}var ve=In(0);function vl(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 tu=[];function xc(){for(var e=0;en?n:4,e(!0);var r=nu.transition;nu.transition={};try{e(!1),t()}finally{te=n,nu.transition=r}}function _m(){return Et().memoizedState}function Xw(e,t,n){var r=jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Rm(e))Om(t,n);else if(n=om(e,t,n,r),n!==null){var o=Ye();Mt(n,e,r,o),jm(n,t,r)}}function Jw(e,t,n){var r=jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rm(e))Om(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,zt(a,l)){var u=t.interleaved;u===null?(o.next=o,yc(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=om(e,t,o,r),n!==null&&(o=Ye(),Mt(n,e,r,o),jm(n,t,r))}}function Rm(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function Om(e,t){_o=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rc(e,n)}}var gl={readContext:xt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},qw={readContext:xt,useCallback:function(e,t){return It().memoizedState=[e,t===void 0?null:t],e},useContext:xt,useEffect:Td,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,xm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=It();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=It();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=Xw.bind(null,ye,e),[r.memoizedState,e]},useRef:function(e){var t=It();return e={current:e},t.memoizedState=e},useState:Nd,useDebugValue:_c,useDeferredValue:function(e){return It().memoizedState=e},useTransition:function(){var e=Nd(!1),t=e[0];return e=Gw.bind(null,e[1]),It().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ye,o=It();if(pe){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Te===null)throw Error(j(349));or&30||pm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Td(mm.bind(null,r,i,e),[e]),r.flags|=2048,Xo(9,hm.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=It(),t=Te.identifierPrefix;if(pe){var n=en,r=Zt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[$t]=t,e[Ho]=r,$m(e,t,!1,!1),t.stateNode=e;e:{switch(l=Lu(n,r),n){case"dialog":ce("cancel",e),ce("close",e),o=r;break;case"iframe":case"object":case"embed":ce("load",e),o=r;break;case"video":case"audio":for(o=0;oKr&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304)}else{if(!r)if(e=vl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!pe)return Ue(t),null}else 2*ke()-i.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=ve.current,ue(ve,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function lS(e,t){switch(dc(t),t.tag){case 1:return rt(t.type)&&sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),fe(nt),fe(Ve),xc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sc(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return Vr(),null;case 10:return vc(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var ki=!1,Be=!1,aS=typeof WeakSet=="function"?WeakSet:Set,D=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function ss(e,t,n){try{n()}catch(r){we(e,t,r)}}var Fd=!1;function uS(e,t){if(Ku=il,e=Vh(),cc(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,d=e,p=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=l+o),d!==i||r!==0&&d.nodeType!==3||(u=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++s===o&&(a=l),p===i&&++c===r&&(u=l),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qu={focusedElem:e,selectionRange:n},il=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,S=w.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:_t(t.type,v),S);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(h){we(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return w=Fd,Fd=!1,w}function Ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ss(t,n,i)}o=o.next}while(o!==r)}}function Bl(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 cs(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 Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[Ho],delete t[Xu],delete t[Vw],delete t[Hw])),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 Bm(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bm(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 fs(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=ul));else if(r!==4&&(e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function ds(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(ds(e,t,n),e=e.sibling;e!==null;)ds(e,t,n),e=e.sibling}var Me=null,Ot=!1;function dn(e,t,n){for(n=n.child;n!==null;)Wm(e,t,n),n=n.sibling}function Wm(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(zl,n)}catch{}switch(n.tag){case 5:Be||Cr(n,t);case 6:var r=Me,o=Ot;Me=null,dn(e,t,n),Me=r,Ot=o,Me!==null&&(Ot?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(Ot?(e=Me,n=n.stateNode,e.nodeType===8?Za(e.parentNode,n):e.nodeType===1&&Za(e,n),Uo(e)):Za(Me,n.stateNode));break;case 4:r=Me,o=Ot,Me=n.stateNode.containerInfo,Ot=!0,dn(e,t,n),Me=r,Ot=o;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&ss(n,t,l),o=o.next}while(o!==r)}dn(e,t,n);break;case 1:if(!Be&&(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}dn(e,t,n);break;case 21:dn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,dn(e,t,n),Be=r):dn(e,t,n);break;default:dn(e,t,n)}}function Wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aS),t.forEach(function(r){var o=yS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cS(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,xl=0,X&6)throw Error(j(331));var o=X;for(X|=4,D=e.current;D!==null;){var i=D,l=i.child;if(D.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uke()-bc?Gn(e,0):jc|=n),ot(e,t)}function Jm(e,t){t===0&&(e.mode&1?(t=hi,hi<<=1,!(hi&130023424)&&(hi=4194304)):t=1);var n=Ye();e=an(e,t),e!==null&&(ti(e,t,n),ot(e,n))}function vS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jm(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),Jm(e,n)}var qm;qm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,oS(e,t,n);tt=!!(e.flags&131072)}else tt=!1,pe&&t.flags&1048576&&tm(t,dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var o=Fr(t,Ve.current);zr(t,n),o=kc(null,t,r,e,o,n);var i=Pc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,cl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gc(t),o.updater=Ul,t.stateNode=o,o._reactInternals=t,ns(t,r,e,n),t=is(null,t,r,!0,i,n)):(t.tag=0,pe&&i&&fc(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=wS(r),e=_t(r,e),o){case 0:t=os(null,t,r,e,n);break e;case 1:t=$d(null,t,r,e,n);break e;case 11:t=Ld(null,t,r,e,n);break e;case 14:t=Id(null,t,r,_t(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),os(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),$d(e,t,r,o,n);case 3:e:{if(Dm(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,im(e,t),ml(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Hr(Error(j(423)),t),t=Ad(e,t,r,n,o);break e}else if(r!==o){o=Hr(Error(j(424)),t),t=Ad(e,t,r,n,o);break e}else for(at=_n(t.stateNode.containerInfo.firstChild),st=t,pe=!0,jt=null,n=sm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Br(),r===o){t=un(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return cm(t),e===null&&Zu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Yu(r,o)?l=null:i!==null&&Yu(r,i)&&(t.flags|=32),zm(e,t),Qe(e,t,l,n),t.child;case 6:return e===null&&Zu(t),null;case 13:return Lm(e,t,n);case 4:return wc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wr(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),Ld(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ue(pl,r._currentValue),r._currentValue=l,i!==null)if(zt(i.value,l)){if(i.children===o.children&&!nt.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=nn(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),es(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(j(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),es(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zr(t,n),o=xt(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=_t(r,t.pendingProps),o=_t(r.type,o),Id(e,t,r,o,n);case 15:return Tm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),Ii(e,t),t.tag=1,rt(r)?(e=!0,cl(t)):e=!1,zr(t,n),am(t,r,o),ns(t,r,o,n),is(null,t,r,!0,e,n);case 19:return Im(e,t,n);case 22:return Mm(e,t,n)}throw Error(j(156,t.tag))};function Zm(e,t){return Ch(e,t)}function gS(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 gt(e,t,n,r){return new gS(e,t,n,r)}function zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wS(e){if(typeof e=="function")return zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zs)return 11;if(e===ec)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=gt(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 Ui(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")zc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case vr:return Xn(n.children,o,i,t);case qs:l=8,o|=8;break;case _u:return e=gt(12,n,t,o|2),e.elementType=_u,e.lanes=i,e;case Ru:return e=gt(13,n,t,o),e.elementType=Ru,e.lanes=i,e;case Ou:return e=gt(19,n,t,o),e.elementType=Ou,e.lanes=i,e;case uh:return Vl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lh:l=10;break e;case ah:l=9;break e;case Zs:l=11;break e;case ec:l=14;break e;case pn:l=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=gt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Xn(e,t,n,r){return e=gt(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=gt(22,e,r,t),e.elementType=uh,e.lanes=n,e.stateNode={isHidden:!1},e}function au(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function uu(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SS(e,t,n,r,o){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=Ba(0),this.expirationTimes=Ba(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Dc(e,t,n,r,o,i,l,a,u){return e=new SS(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=gt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gc(i),e}function xS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rv)}catch(e){console.error(e)}}rv(),th.exports=dt;var Gl=th.exports;const _S=up(Gl);function RS(e){e()}let ov=RS;const OS=e=>ov=e,jS=()=>ov,Jd=Symbol.for("react-redux-context"),qd=typeof globalThis<"u"?globalThis:{};function bS(){var e;if(!C.createContext)return{};const t=(e=qd[Jd])!=null?e:qd[Jd]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const zn=bS();function Ac(e=zn){return function(){return C.useContext(e)}}const iv=Ac(),NS=()=>{throw new Error("uSES not initialized!")};let lv=NS;const TS=e=>{lv=e},MS=(e,t)=>e===t;function zS(e=zn){const t=e===zn?iv:Ac(e);return function(r,o={}){const{equalityFn:i=MS,stabilityCheck:l=void 0,noopCheck:a=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:s,getServerState:c,stabilityCheck:d,noopCheck:p}=t();C.useRef(!0);const g=C.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,l]),w=lv(s.addNestedSub,u.getState,c||u.getState,g,i);return C.useDebugValue(w),w}}const DS=zS();var av={exports:{}},ne={};/** @license React v16.13.1 +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function iu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tS=typeof WeakMap=="function"?WeakMap:Map;function bm(e,t,n){n=nn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sl||(Sl=!0,ps=r),rs(e,t)},n}function Nm(e,t,n){n=nn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){rs(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){rs(e,t),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Md(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new tS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=mS.bind(null,e,t,n),t.then(e,e))}function zd(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 Dd(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,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=nn(-1,1),t.tag=2,Rn(n,t,1))),n.lanes|=1),e)}var nS=sn.ReactCurrentOwner,tt=!1;function Qe(e,t,n,r){t.child=e===null?sm(t,null,n,r):Wr(t,e.child,n,r)}function Ld(e,t,n,r,o){n=n.render;var i=t.ref;return zr(t,o),r=kc(e,t,n,r,i,o),n=Pc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(pe&&n&&fc(t),t.flags|=1,Qe(e,t,r,o),t.child)}function Id(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!zc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Tm(e,t,i,r,o)):(e=Ui(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Bo,n(l,r)&&e.ref===t.ref)return un(e,t,o)}return t.flags|=1,e=bn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Tm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Bo(i,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,un(e,t,o)}return os(e,t,n,r,o)}function Mm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(_r,lt),lt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(_r,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ue(_r,lt),lt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ue(_r,lt),lt|=r;return Qe(e,t,o,n),t.child}function zm(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function os(e,t,n,r,o){var i=rt(n)?nr:Ve.current;return i=Fr(t,i),zr(t,o),n=kc(e,t,n,r,i,o),r=Pc(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,un(e,t,o)):(pe&&r&&fc(t),t.flags|=1,Qe(e,t,n,o),t.child)}function $d(e,t,n,r,o){if(rt(n)){var i=!0;cl(t)}else i=!1;if(zr(t,o),t.stateNode===null)Ii(e,t),am(t,n,r),ns(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,a=t.memoizedProps;l.props=a;var u=l.context,s=n.contextType;typeof s=="object"&&s!==null?s=xt(s):(s=rt(n)?nr:Ve.current,s=Fr(t,s));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==r||u!==s)&&jd(t,l,r,s),hn=!1;var p=t.memoizedState;l.state=p,ml(t,r,l,o),u=t.memoizedState,a!==r||p!==u||nt.current||hn?(typeof c=="function"&&(ts(t,n,c,r),u=t.memoizedState),(a=hn||Od(t,n,a,r,p,u,s))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=s,r=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,im(e,t),a=t.memoizedProps,s=t.type===t.elementType?a:_t(t.type,a),l.props=s,d=t.pendingProps,p=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=xt(u):(u=rt(n)?nr:Ve.current,u=Fr(t,u));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(a!==d||p!==u)&&jd(t,l,r,u),hn=!1,p=t.memoizedState,l.state=p,ml(t,r,l,o);var w=t.memoizedState;a!==d||p!==w||nt.current||hn?(typeof g=="function"&&(ts(t,n,g,r),w=t.memoizedState),(s=hn||Od(t,n,s,r,p,w,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,w,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,w,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),l.props=r,l.state=w,l.context=u,r=s):(typeof l.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return is(e,t,n,r,i,o)}function is(e,t,n,r,o,i){zm(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&kd(t,n,!1),un(e,t,i);r=t.stateNode,nS.current=t;var a=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Wr(t,e.child,null,i),t.child=Wr(t,null,a,i)):Qe(e,t,a,i),t.memoizedState=r.state,o&&kd(t,n,!0),t.child}function Dm(e){var t=e.stateNode;t.pendingContext?Ed(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ed(e,t.context,!1),wc(e,t.containerInfo)}function Ad(e,t,n,r,o){return Br(),pc(o),t.flags|=256,Qe(e,t,n,r),t.child}var ls={dehydrated:null,treeContext:null,retryLane:0};function as(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lm(e,t,n){var r=t.pendingProps,o=ve.current,i=!1,l=(t.flags&128)!==0,a;if((a=l)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ue(ve,o&1),e===null)return Zu(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):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Vl(l,r,0,null),e=Xn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=as(n),t.memoizedState=ls,e):Rc(t,l));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return rS(e,t,l,r,a,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,a=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=bn(o,u),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=bn(a,i):(i=Xn(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?as(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=ls,r}return i=e.child,e=i.sibling,r=bn(i,{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 Rc(e,t){return t=Vl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ei(e,t,n,r){return r!==null&&pc(r),Wr(t,e.child,null,n),e=Rc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rS(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=iu(Error(j(422))),Ei(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Vl({mode:"visible",children:r.children},o,0,null),i=Xn(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Wr(t,e.child,null,l),t.child.memoizedState=as(l),t.memoizedState=ls,i);if(!(t.mode&1))return Ei(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(j(419)),r=iu(i,r,void 0),Ei(e,t,l,r)}if(a=(l&e.childLanes)!==0,tt||a){if(r=Te,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,an(e,o),Mt(r,e,o,-1))}return Mc(),r=iu(Error(j(421))),Ei(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=vS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,at=_n(o.nextSibling),st=t,pe=!0,jt=null,e!==null&&(vt[yt++]=Zt,vt[yt++]=en,vt[yt++]=rr,Zt=e.id,en=e.overflow,rr=t),t=Rc(t,r.children),t.flags|=4096,t)}function Ud(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),es(e.return,t,n)}function lu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Im(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Qe(e,t,r.children,n),r=ve.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&&Ud(e,n,t);else if(e.tag===19)Ud(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(ue(ve,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&vl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),lu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&vl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}lu(t,!0,n,null,i);break;case"together":lu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ii(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function un(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ir|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function oS(e,t,n){switch(t.tag){case 3:Dm(t),Br();break;case 5:cm(t);break;case 1:rt(t.type)&&cl(t);break;case 4:wc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ue(pl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?Lm(e,t,n):(ue(ve,ve.current&1),e=un(e,t,n),e!==null?e.sibling:null);ue(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Im(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ue(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,Mm(e,t,n)}return un(e,t,n)}var $m,us,Am,Um;$m=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}};us=function(){};Am=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Yn(Ft.current);var i=null;switch(n){case"input":o=bu(e,o),r=bu(e,r),i=[];break;case"select":o=ge({},o,{value:void 0}),r=ge({},r,{value:void 0}),i=[];break;case"textarea":o=Mu(e,o),r=Mu(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ul)}Du(n,r);var l;n=null;for(s in o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&o[s]!=null)if(s==="style"){var a=o[s];for(l in a)a.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Do.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var u=r[s];if(a=o!=null?o[s]:void 0,r.hasOwnProperty(s)&&u!==a&&(u!=null||a!=null))if(s==="style")if(a){for(l in a)!a.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&a[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(s,n)),n=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,a=a?a.__html:void 0,u!=null&&a!==u&&(i=i||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Do.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&ce("scroll",e),i||a===u||(i=[])):(i=i||[]).push(s,u))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}};Um=function(e,t,n,r){n!==r&&(t.flags|=4)};function po(e,t){if(!pe)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 Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function iS(e,t,n){var r=t.pendingProps;switch(dc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return rt(t.type)&&sl(),Ue(t),null;case 3:return r=t.stateNode,Vr(),fe(nt),fe(Ve),xc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Si(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(vs(jt),jt=null))),us(e,t),Ue(t),null;case 5:Sc(t);var o=Yn(Qo.current);if(n=t.type,e!==null&&t.stateNode!=null)Am(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return Ue(t),null}if(e=Yn(Ft.current),Si(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[$t]=t,r[Ho]=i,e=(t.mode&1)!==0,n){case"dialog":ce("cancel",r),ce("close",r);break;case"iframe":case"object":case"embed":ce("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[$t]=t,e[Ho]=r,$m(e,t,!1,!1),t.stateNode=e;e:{switch(l=Lu(n,r),n){case"dialog":ce("cancel",e),ce("close",e),o=r;break;case"iframe":case"object":case"embed":ce("load",e),o=r;break;case"video":case"audio":for(o=0;oKr&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304)}else{if(!r)if(e=vl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),po(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!pe)return Ue(t),null}else 2*ke()-i.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,po(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=ve.current,ue(ve,r?n&1|2:n&1),t):(Ue(t),null);case 22:case 23:return Tc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function lS(e,t){switch(dc(t),t.tag){case 1:return rt(t.type)&&sl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),fe(nt),fe(Ve),xc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Sc(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return Vr(),null;case 10:return vc(t.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var ki=!1,Be=!1,aS=typeof WeakSet=="function"?WeakSet:Set,D=null;function Cr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function ss(e,t,n){try{n()}catch(r){we(e,t,r)}}var Fd=!1;function uS(e,t){if(Ku=il,e=Vh(),cc(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,a=-1,u=-1,s=0,c=0,d=e,p=null;t:for(;;){for(var g;d!==n||o!==0&&d.nodeType!==3||(a=l+o),d!==i||r!==0&&d.nodeType!==3||(u=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++s===o&&(a=l),p===i&&++c===r&&(u=l),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=a===-1||u===-1?null:{start:a,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qu={focusedElem:e,selectionRange:n},il=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,S=w.memoizedState,m=t.stateNode,f=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:_t(t.type,v),S);m.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(h){we(t,t.return,h)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return w=Fd,Fd=!1,w}function Ro(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ss(t,n,i)}o=o.next}while(o!==r)}}function Bl(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 cs(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 Fm(e){var t=e.alternate;t!==null&&(e.alternate=null,Fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[$t],delete t[Ho],delete t[Xu],delete t[Vw],delete t[Hw])),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 Bm(e){return e.tag===5||e.tag===3||e.tag===4}function Bd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bm(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 fs(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=ul));else if(r!==4&&(e=e.child,e!==null))for(fs(e,t,n),e=e.sibling;e!==null;)fs(e,t,n),e=e.sibling}function ds(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(ds(e,t,n),e=e.sibling;e!==null;)ds(e,t,n),e=e.sibling}var ze=null,Ot=!1;function dn(e,t,n){for(n=n.child;n!==null;)Wm(e,t,n),n=n.sibling}function Wm(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(zl,n)}catch{}switch(n.tag){case 5:Be||Cr(n,t);case 6:var r=ze,o=Ot;ze=null,dn(e,t,n),ze=r,Ot=o,ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ze.removeChild(n.stateNode));break;case 18:ze!==null&&(Ot?(e=ze,n=n.stateNode,e.nodeType===8?Za(e.parentNode,n):e.nodeType===1&&Za(e,n),Uo(e)):Za(ze,n.stateNode));break;case 4:r=ze,o=Ot,ze=n.stateNode.containerInfo,Ot=!0,dn(e,t,n),ze=r,Ot=o;break;case 0:case 11:case 14:case 15:if(!Be&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&ss(n,t,l),o=o.next}while(o!==r)}dn(e,t,n);break;case 1:if(!Be&&(Cr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}dn(e,t,n);break;case 21:dn(e,t,n);break;case 22:n.mode&1?(Be=(r=Be)||n.memoizedState!==null,dn(e,t,n),Be=r):dn(e,t,n);break;default:dn(e,t,n)}}function Wd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aS),t.forEach(function(r){var o=yS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cS(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,xl=0,X&6)throw Error(j(331));var o=X;for(X|=4,D=e.current;D!==null;){var i=D,l=i.child;if(D.flags&16){var a=i.deletions;if(a!==null){for(var u=0;uke()-bc?Gn(e,0):jc|=n),ot(e,t)}function Jm(e,t){t===0&&(e.mode&1?(t=hi,hi<<=1,!(hi&130023424)&&(hi=4194304)):t=1);var n=Ye();e=an(e,t),e!==null&&(ti(e,t,n),ot(e,n))}function vS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jm(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),Jm(e,n)}var qm;qm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,oS(e,t,n);tt=!!(e.flags&131072)}else tt=!1,pe&&t.flags&1048576&&tm(t,dl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var o=Fr(t,Ve.current);zr(t,n),o=kc(null,t,r,e,o,n);var i=Pc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,cl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gc(t),o.updater=Ul,t.stateNode=o,o._reactInternals=t,ns(t,r,e,n),t=is(null,t,r,!0,i,n)):(t.tag=0,pe&&i&&fc(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=wS(r),e=_t(r,e),o){case 0:t=os(null,t,r,e,n);break e;case 1:t=$d(null,t,r,e,n);break e;case 11:t=Ld(null,t,r,e,n);break e;case 14:t=Id(null,t,r,_t(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),os(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),$d(e,t,r,o,n);case 3:e:{if(Dm(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,im(e,t),ml(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Hr(Error(j(423)),t),t=Ad(e,t,r,n,o);break e}else if(r!==o){o=Hr(Error(j(424)),t),t=Ad(e,t,r,n,o);break e}else for(at=_n(t.stateNode.containerInfo.firstChild),st=t,pe=!0,jt=null,n=sm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Br(),r===o){t=un(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return cm(t),e===null&&Zu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Yu(r,o)?l=null:i!==null&&Yu(r,i)&&(t.flags|=32),zm(e,t),Qe(e,t,l,n),t.child;case 6:return e===null&&Zu(t),null;case 13:return Lm(e,t,n);case 4:return wc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wr(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),Ld(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ue(pl,r._currentValue),r._currentValue=l,i!==null)if(zt(i.value,l)){if(i.children===o.children&&!nt.current){t=un(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var u=a.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=nn(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var c=s.pending;c===null?u.next=u:(u.next=c.next,c.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),es(i.return,n,t),a.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(j(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),es(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,zr(t,n),o=xt(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=_t(r,t.pendingProps),o=_t(r.type,o),Id(e,t,r,o,n);case 15:return Tm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:_t(r,o),Ii(e,t),t.tag=1,rt(r)?(e=!0,cl(t)):e=!1,zr(t,n),am(t,r,o),ns(t,r,o,n),is(null,t,r,!0,e,n);case 19:return Im(e,t,n);case 22:return Mm(e,t,n)}throw Error(j(156,t.tag))};function Zm(e,t){return Ch(e,t)}function gS(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 gt(e,t,n,r){return new gS(e,t,n,r)}function zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wS(e){if(typeof e=="function")return zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Zs)return 11;if(e===ec)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=gt(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 Ui(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")zc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case vr:return Xn(n.children,o,i,t);case qs:l=8,o|=8;break;case _u:return e=gt(12,n,t,o|2),e.elementType=_u,e.lanes=i,e;case Ru:return e=gt(13,n,t,o),e.elementType=Ru,e.lanes=i,e;case Ou:return e=gt(19,n,t,o),e.elementType=Ou,e.lanes=i,e;case uh:return Vl(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lh:l=10;break e;case ah:l=9;break e;case Zs:l=11;break e;case ec:l=14;break e;case pn:l=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=gt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Xn(e,t,n,r){return e=gt(7,e,r,t),e.lanes=n,e}function Vl(e,t,n,r){return e=gt(22,e,r,t),e.elementType=uh,e.lanes=n,e.stateNode={isHidden:!1},e}function au(e,t,n){return e=gt(6,e,null,t),e.lanes=n,e}function uu(e,t,n){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SS(e,t,n,r,o){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=Ba(0),this.expirationTimes=Ba(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Dc(e,t,n,r,o,i,l,a,u){return e=new SS(e,t,n,a,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=gt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gc(i),e}function xS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(rv)}catch(e){console.error(e)}}rv(),th.exports=dt;var Gl=th.exports;const _S=up(Gl);function RS(e){e()}let ov=RS;const OS=e=>ov=e,jS=()=>ov,Jd=Symbol.for("react-redux-context"),qd=typeof globalThis<"u"?globalThis:{};function bS(){var e;if(!C.createContext)return{};const t=(e=qd[Jd])!=null?e:qd[Jd]=new Map;let n=t.get(C.createContext);return n||(n=C.createContext(null),t.set(C.createContext,n)),n}const zn=bS();function Ac(e=zn){return function(){return C.useContext(e)}}const iv=Ac(),NS=()=>{throw new Error("uSES not initialized!")};let lv=NS;const TS=e=>{lv=e},MS=(e,t)=>e===t;function zS(e=zn){const t=e===zn?iv:Ac(e);return function(r,o={}){const{equalityFn:i=MS,stabilityCheck:l=void 0,noopCheck:a=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:s,getServerState:c,stabilityCheck:d,noopCheck:p}=t();C.useRef(!0);const g=C.useCallback({[r.name](v){return r(v)}}[r.name],[r,d,l]),w=lv(s.addNestedSub,u.getState,c||u.getState,g,i);return C.useDebugValue(w),w}}const DS=zS();var av={exports:{}},ne={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Te=typeof Symbol=="function"&&Symbol.for,Uc=Te?Symbol.for("react.element"):60103,Fc=Te?Symbol.for("react.portal"):60106,Xl=Te?Symbol.for("react.fragment"):60107,Jl=Te?Symbol.for("react.strict_mode"):60108,ql=Te?Symbol.for("react.profiler"):60114,Zl=Te?Symbol.for("react.provider"):60109,ea=Te?Symbol.for("react.context"):60110,Bc=Te?Symbol.for("react.async_mode"):60111,ta=Te?Symbol.for("react.concurrent_mode"):60111,na=Te?Symbol.for("react.forward_ref"):60112,ra=Te?Symbol.for("react.suspense"):60113,LS=Te?Symbol.for("react.suspense_list"):60120,oa=Te?Symbol.for("react.memo"):60115,ia=Te?Symbol.for("react.lazy"):60116,IS=Te?Symbol.for("react.block"):60121,$S=Te?Symbol.for("react.fundamental"):60117,AS=Te?Symbol.for("react.responder"):60118,US=Te?Symbol.for("react.scope"):60119;function ht(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uc:switch(e=e.type,e){case Bc:case ta:case Xl:case ql:case Jl:case ra:return e;default:switch(e=e&&e.$$typeof,e){case ea:case na:case ia:case oa:case Zl:return e;default:return t}}case Fc:return t}}}function uv(e){return ht(e)===ta}ne.AsyncMode=Bc;ne.ConcurrentMode=ta;ne.ContextConsumer=ea;ne.ContextProvider=Zl;ne.Element=Uc;ne.ForwardRef=na;ne.Fragment=Xl;ne.Lazy=ia;ne.Memo=oa;ne.Portal=Fc;ne.Profiler=ql;ne.StrictMode=Jl;ne.Suspense=ra;ne.isAsyncMode=function(e){return uv(e)||ht(e)===Bc};ne.isConcurrentMode=uv;ne.isContextConsumer=function(e){return ht(e)===ea};ne.isContextProvider=function(e){return ht(e)===Zl};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uc};ne.isForwardRef=function(e){return ht(e)===na};ne.isFragment=function(e){return ht(e)===Xl};ne.isLazy=function(e){return ht(e)===ia};ne.isMemo=function(e){return ht(e)===oa};ne.isPortal=function(e){return ht(e)===Fc};ne.isProfiler=function(e){return ht(e)===ql};ne.isStrictMode=function(e){return ht(e)===Jl};ne.isSuspense=function(e){return ht(e)===ra};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xl||e===ta||e===ql||e===Jl||e===ra||e===LS||typeof e=="object"&&e!==null&&(e.$$typeof===ia||e.$$typeof===oa||e.$$typeof===Zl||e.$$typeof===ea||e.$$typeof===na||e.$$typeof===$S||e.$$typeof===AS||e.$$typeof===US||e.$$typeof===IS)};ne.typeOf=ht;av.exports=ne;var FS=av.exports,sv=FS,BS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},WS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cv={};cv[sv.ForwardRef]=BS;cv[sv.Memo]=WS;var ie={};/** + */var Me=typeof Symbol=="function"&&Symbol.for,Uc=Me?Symbol.for("react.element"):60103,Fc=Me?Symbol.for("react.portal"):60106,Xl=Me?Symbol.for("react.fragment"):60107,Jl=Me?Symbol.for("react.strict_mode"):60108,ql=Me?Symbol.for("react.profiler"):60114,Zl=Me?Symbol.for("react.provider"):60109,ea=Me?Symbol.for("react.context"):60110,Bc=Me?Symbol.for("react.async_mode"):60111,ta=Me?Symbol.for("react.concurrent_mode"):60111,na=Me?Symbol.for("react.forward_ref"):60112,ra=Me?Symbol.for("react.suspense"):60113,LS=Me?Symbol.for("react.suspense_list"):60120,oa=Me?Symbol.for("react.memo"):60115,ia=Me?Symbol.for("react.lazy"):60116,IS=Me?Symbol.for("react.block"):60121,$S=Me?Symbol.for("react.fundamental"):60117,AS=Me?Symbol.for("react.responder"):60118,US=Me?Symbol.for("react.scope"):60119;function ht(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uc:switch(e=e.type,e){case Bc:case ta:case Xl:case ql:case Jl:case ra:return e;default:switch(e=e&&e.$$typeof,e){case ea:case na:case ia:case oa:case Zl:return e;default:return t}}case Fc:return t}}}function uv(e){return ht(e)===ta}ne.AsyncMode=Bc;ne.ConcurrentMode=ta;ne.ContextConsumer=ea;ne.ContextProvider=Zl;ne.Element=Uc;ne.ForwardRef=na;ne.Fragment=Xl;ne.Lazy=ia;ne.Memo=oa;ne.Portal=Fc;ne.Profiler=ql;ne.StrictMode=Jl;ne.Suspense=ra;ne.isAsyncMode=function(e){return uv(e)||ht(e)===Bc};ne.isConcurrentMode=uv;ne.isContextConsumer=function(e){return ht(e)===ea};ne.isContextProvider=function(e){return ht(e)===Zl};ne.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uc};ne.isForwardRef=function(e){return ht(e)===na};ne.isFragment=function(e){return ht(e)===Xl};ne.isLazy=function(e){return ht(e)===ia};ne.isMemo=function(e){return ht(e)===oa};ne.isPortal=function(e){return ht(e)===Fc};ne.isProfiler=function(e){return ht(e)===ql};ne.isStrictMode=function(e){return ht(e)===Jl};ne.isSuspense=function(e){return ht(e)===ra};ne.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xl||e===ta||e===ql||e===Jl||e===ra||e===LS||typeof e=="object"&&e!==null&&(e.$$typeof===ia||e.$$typeof===oa||e.$$typeof===Zl||e.$$typeof===ea||e.$$typeof===na||e.$$typeof===$S||e.$$typeof===AS||e.$$typeof===US||e.$$typeof===IS)};ne.typeOf=ht;av.exports=ne;var FS=av.exports,sv=FS,BS={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},WS={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},cv={};cv[sv.ForwardRef]=BS;cv[sv.Memo]=WS;var ie={};/** * @license React * react-is.production.min.js * diff --git a/dist/index.html b/dist/index.html index 63bb91b..6bdd546 100644 --- a/dist/index.html +++ b/dist/index.html @@ -6,7 +6,7 @@ Sorting Visualizer - +