Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
(()=>{var e={2965:(e,t,r)=>{"use strict";r.d(t,{Z:()=>R});function n(e){if(e.sheet){return e.sheet}for(var t=0;t-1};var w=function e(t){return function(e,r,n){if(e.type!=="rule"||t.compat)return;var i=e.value.match(/(:first|:nth|:nth-last)-child/g);if(i){var a=!!e.parent;var o=a?e.parent.children:n;for(var s=o.length-1;s>=0;s--){var u=o[s];if(u.line=0;n--){if(!_(r[n])){return true}}return false};var S=function e(t){t.type="";t.value="";t["return"]="";t.children="";t.props=""};var E=function e(t,r,n){if(!_(t)){return}if(t.parent){console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");S(t)}else if(x(r,n)){console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");S(t)}};function O(e,t){switch((0,s.vp)(e,t)){case 5103:return u.G$+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return u.G$+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return u.G$+e+u.uj+e+u.MS+e+e;case 6828:case 4268:return u.G$+e+u.MS+e+e;case 6165:return u.G$+e+u.MS+"flex-"+e+e;case 5187:return u.G$+e+(0,s.gx)(e,/(\w+).+(:[^]+)/,u.G$+"box-$1$2"+u.MS+"flex-$1$2")+e;case 5443:return u.G$+e+u.MS+"flex-item-"+(0,s.gx)(e,/flex-|-self/,"")+e;case 4675:return u.G$+e+u.MS+"flex-line-pack"+(0,s.gx)(e,/align-content|flex-|-self/,"")+e;case 5548:return u.G$+e+u.MS+(0,s.gx)(e,"shrink","negative")+e;case 5292:return u.G$+e+u.MS+(0,s.gx)(e,"basis","preferred-size")+e;case 6060:return u.G$+"box-"+(0,s.gx)(e,"-grow","")+u.G$+e+u.MS+(0,s.gx)(e,"grow","positive")+e;case 4554:return u.G$+(0,s.gx)(e,/([^-])(transform)/g,"$1"+u.G$+"$2")+e;case 6187:return(0,s.gx)((0,s.gx)((0,s.gx)(e,/(zoom-|grab)/,u.G$+"$1"),/(image-set)/,u.G$+"$1"),e,"")+e;case 5495:case 3959:return(0,s.gx)(e,/(image-set\([^]*)/,u.G$+"$1"+"$`$1");case 4968:return(0,s.gx)((0,s.gx)(e,/(.+:)(flex-)?(.*)/,u.G$+"box-pack:$3"+u.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+u.G$+e+e;case 4095:case 3583:case 4068:case 2532:return(0,s.gx)(e,/(.+)-inline(.+)/,u.G$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,s.to)(e)-1-t>6)switch((0,s.uO)(e,t+1)){case 109:if((0,s.uO)(e,t+4)!==45)break;case 102:return(0,s.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+u.G$+"$2-$3"+"$1"+u.uj+((0,s.uO)(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~(0,s.Cw)(e,"stretch")?O((0,s.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if((0,s.uO)(e,t+1)!==115)break;case 6444:switch((0,s.uO)(e,(0,s.to)(e)-3-(~(0,s.Cw)(e,"!important")&&10))){case 107:return(0,s.gx)(e,":",":"+u.G$)+e;case 101:return(0,s.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+u.G$+((0,s.uO)(e,14)===45?"inline-":"")+"box$3"+"$1"+u.G$+"$2$3"+"$1"+u.MS+"$2box$3")+e}break;case 5936:switch((0,s.uO)(e,t+11)){case 114:return u.G$+e+u.MS+(0,s.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return u.G$+e+u.MS+(0,s.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return u.G$+e+u.MS+(0,s.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return u.G$+e+u.MS+e+e}return e}var C=function e(t,r,n,i){if(t.length>-1)if(!t["return"])switch(t.type){case u.h5:t["return"]=O(t.value,t.length);break;case u.lK:return(0,l.q)([(0,o.JG)(t,{value:(0,s.gx)(t.value,"@","@"+u.G$)})],i);case u.Fr:if(t.length)return(0,s.$e)(t.props,(function(e){switch((0,s.EQ)(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(t,{props:[(0,s.gx)(e,/:(read-\w+)/,":"+u.uj+"$1")]})],i);case"::placeholder":return(0,l.q)([(0,o.JG)(t,{props:[(0,s.gx)(e,/:(plac\w+)/,":"+u.G$+"input-$1")]}),(0,o.JG)(t,{props:[(0,s.gx)(e,/:(plac\w+)/,":"+u.uj+"$1")]}),(0,o.JG)(t,{props:[(0,s.gx)(e,/:(plac\w+)/,u.MS+"input-$1")]})],i)}return""}))}};var k=[C];var R=function e(t){var r=t.key;if(false){}if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){var t=e.getAttribute("data-emotion");if(t.indexOf(" ")===-1){return}document.head.appendChild(e);e.setAttribute("data-s","")}))}var i=t.stylisPlugins||k;if(false){}var o={};var s;var u=[];{s=t.container||document.head;Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){var t=e.getAttribute("data-emotion").split(" ");for(var r=1;r{"use strict";r.d(t,{C:()=>d,E:()=>P,T:()=>v,c:()=>R,h:()=>c,i:()=>l,w:()=>h});var n=r(7363);var i=r.n(n);var a=r(8334);var o=r(7728);var s=r(8202);var u=r(7278);var l="object"!=="undefined";var c={}.hasOwnProperty;var f=n.createContext(typeof HTMLElement!=="undefined"?(0,a.Z)({key:"css"}):null);if(false){}var d=f.Provider;var p=function e(){return useContext(f)};var h=function e(t){return(0,n.forwardRef)((function(e,r){var i=(0,n.useContext)(f);return t(e,i,r)}))};if(!l){h=function e(t){return function(e){var r=(0,n.useContext)(f);if(r===null){r=(0,a.Z)({key:"css"});return n.createElement(f.Provider,{value:r},t(e,r))}else{return t(e,r)}}}}var v=n.createContext({});if(false){}var m=function e(){return React.useContext(v)};var g=function e(t,r){if(typeof r==="function"){var n=r(t);if(false){}return n}if(false){}return _extends({},t,r)};var y=null&&weakMemoize((function(e){return weakMemoize((function(t){return g(e,t)}))}));var b=function e(t){var r=React.useContext(v);if(t.theme!==r){r=y(r)(t.theme)}return React.createElement(v.Provider,{value:r},t.children)};function w(e){var t=e.displayName||e.name||"Component";var r=function t(r,n){var i=React.useContext(v);return React.createElement(e,_extends({theme:i,ref:n},r))};var n=React.forwardRef(r);n.displayName="WithTheme("+t+")";return hoistNonReactStatics(n,e)}var _=function e(t){var r=t.split(".");return r[r.length-1]};var x=function e(t){var r=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(t);if(r)return _(r[1]);r=/^([A-Za-z0-9$.]+)@/.exec(t);if(r)return _(r[1]);return undefined};var S=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]);var E=function e(t){return t.replace(/\$/g,"-")};var O=function e(t){if(!t)return undefined;var r=t.split("\n");for(var n=0;n{"use strict";r.d(t,{F4:()=>g,iv:()=>m,tZ:()=>p,xB:()=>v});var n=r(5260);var i=r(7363);var a=r.n(i);var o=r(7728);var s=r(7278);var u=r(8202);var l=r(8334);var c=r(8679);var f=r.n(c);var d={name:"@emotion/react",version:"11.11.3",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:false,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:true}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}};var p=function e(t,r){var a=arguments;if(r==null||!n.h.call(r,"css")){return i.createElement.apply(undefined,a)}var o=a.length;var s=new Array(o);s[0]=n.E;s[1]=(0,n.c)(t,r);for(var u=2;u{"use strict";r.d(t,{Z:()=>C});var n=r(59);var i=r(6411);var a=r(6686);var o=r(7563);var s=r(211);var u=r(8160);var l=r(2190);var c=function e(t,r,n){var a=0;var o=0;while(true){a=o;o=(0,i.fj)();if(a===38&&o===12){r[n]=1}if((0,i.r)(o)){break}(0,i.lp)()}return(0,i.tP)(t,i.FK)};var f=function e(t,r){var n=-1;var o=44;do{switch((0,i.r)(o)){case 0:if(o===38&&(0,i.fj)()===12){r[n]=1}t[n]+=c(i.FK-1,r,n);break;case 2:t[n]+=(0,i.iF)(o);break;case 4:if(o===44){t[++n]=(0,i.fj)()===58?"&\f":"";r[n]=t[n].length;break}default:t[n]+=(0,a.Dp)(o)}}while(o=(0,i.lp)());return t};var d=function e(t,r){return(0,i.cE)(f((0,i.un)(t),r))};var p=new WeakMap;var h=function e(t){if(t.type!=="rule"||!t.parent||t.length<1){return}var r=t.value,n=t.parent;var i=t.column===n.column&&t.line===n.line;while(n.type!=="rule"){n=n.parent;if(!n)return}if(t.props.length===1&&r.charCodeAt(0)!==58&&!p.get(n)){return}if(i){return}p.set(t,true);var a=[];var o=d(r,a);var s=n.props;for(var u=0,l=0;u-1};var y=function e(t){return function(e,r,n){if(e.type!=="rule"||t.compat)return;var i=e.value.match(/(:first|:nth|:nth-last)-child/g);if(i){var a=!!e.parent;var o=a?e.parent.children:n;for(var s=o.length-1;s>=0;s--){var u=o[s];if(u.line=0;n--){if(!b(r[n])){return true}}return false};var _=function e(t){t.type="";t.value="";t["return"]="";t.children="";t.props=""};var x=function e(t,r,n){if(!b(t)){return}if(t.parent){console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");_(t)}else if(w(r,n)){console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");_(t)}};function S(e,t){switch((0,a.vp)(e,t)){case 5103:return o.G$+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return o.G$+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return o.G$+e+o.uj+e+o.MS+e+e;case 6828:case 4268:return o.G$+e+o.MS+e+e;case 6165:return o.G$+e+o.MS+"flex-"+e+e;case 5187:return o.G$+e+(0,a.gx)(e,/(\w+).+(:[^]+)/,o.G$+"box-$1$2"+o.MS+"flex-$1$2")+e;case 5443:return o.G$+e+o.MS+"flex-item-"+(0,a.gx)(e,/flex-|-self/,"")+e;case 4675:return o.G$+e+o.MS+"flex-line-pack"+(0,a.gx)(e,/align-content|flex-|-self/,"")+e;case 5548:return o.G$+e+o.MS+(0,a.gx)(e,"shrink","negative")+e;case 5292:return o.G$+e+o.MS+(0,a.gx)(e,"basis","preferred-size")+e;case 6060:return o.G$+"box-"+(0,a.gx)(e,"-grow","")+o.G$+e+o.MS+(0,a.gx)(e,"grow","positive")+e;case 4554:return o.G$+(0,a.gx)(e,/([^-])(transform)/g,"$1"+o.G$+"$2")+e;case 6187:return(0,a.gx)((0,a.gx)((0,a.gx)(e,/(zoom-|grab)/,o.G$+"$1"),/(image-set)/,o.G$+"$1"),e,"")+e;case 5495:case 3959:return(0,a.gx)(e,/(image-set\([^]*)/,o.G$+"$1"+"$`$1");case 4968:return(0,a.gx)((0,a.gx)(e,/(.+:)(flex-)?(.*)/,o.G$+"box-pack:$3"+o.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+o.G$+e+e;case 4095:case 3583:case 4068:case 2532:return(0,a.gx)(e,/(.+)-inline(.+)/,o.G$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,a.to)(e)-1-t>6)switch((0,a.uO)(e,t+1)){case 109:if((0,a.uO)(e,t+4)!==45)break;case 102:return(0,a.gx)(e,/(.+:)(.+)-([^]+)/,"$1"+o.G$+"$2-$3"+"$1"+o.uj+((0,a.uO)(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~(0,a.Cw)(e,"stretch")?S((0,a.gx)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if((0,a.uO)(e,t+1)!==115)break;case 6444:switch((0,a.uO)(e,(0,a.to)(e)-3-(~(0,a.Cw)(e,"!important")&&10))){case 107:return(0,a.gx)(e,":",":"+o.G$)+e;case 101:return(0,a.gx)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+o.G$+((0,a.uO)(e,14)===45?"inline-":"")+"box$3"+"$1"+o.G$+"$2$3"+"$1"+o.MS+"$2box$3")+e}break;case 5936:switch((0,a.uO)(e,t+11)){case 114:return o.G$+e+o.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return o.G$+e+o.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return o.G$+e+o.MS+(0,a.gx)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return o.G$+e+o.MS+e+e}return e}var E=function e(t,r,n,u){if(t.length>-1)if(!t["return"])switch(t.type){case o.h5:t["return"]=S(t.value,t.length);break;case o.lK:return(0,s.q)([(0,i.JG)(t,{value:(0,a.gx)(t.value,"@","@"+o.G$)})],u);case o.Fr:if(t.length)return(0,a.$e)(t.props,(function(e){switch((0,a.EQ)(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,s.q)([(0,i.JG)(t,{props:[(0,a.gx)(e,/:(read-\w+)/,":"+o.uj+"$1")]})],u);case"::placeholder":return(0,s.q)([(0,i.JG)(t,{props:[(0,a.gx)(e,/:(plac\w+)/,":"+o.G$+"input-$1")]}),(0,i.JG)(t,{props:[(0,a.gx)(e,/:(plac\w+)/,":"+o.uj+"$1")]}),(0,i.JG)(t,{props:[(0,a.gx)(e,/:(plac\w+)/,o.MS+"input-$1")]})],u)}return""}))}};var O=[E];var C=function e(t){var r=t.key;if(false){}if(r==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,(function(e){var t=e.getAttribute("data-emotion");if(t.indexOf(" ")===-1){return}document.head.appendChild(e);e.setAttribute("data-s","")}))}var a=t.stylisPlugins||O;if(false){}var o={};var c;var f=[];{c=t.container||document.head;Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){var t=e.getAttribute("data-emotion").split(" ");for(var r=1;r{"use strict";r.d(t,{Z:()=>n});function n(e){var t=0;var r,n=0,i=e.length;for(;i>=4;++n,i-=4){r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24;r=(r&65535)*1540483477+((r>>>16)*59797<<16);r^=r>>>24;t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16)}switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255;t=(t&65535)*1540483477+((t>>>16)*59797<<16)}t^=t>>>13;t=(t&65535)*1540483477+((t>>>16)*59797<<16);return((t^t>>>15)>>>0).toString(36)}},4599:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});function n(e){var t=Object.create(null);return function(r){if(t[r]===undefined)t[r]=e(r);return t[r]}}},8202:(e,t,r)=>{"use strict";r.d(t,{O:()=>C});var n=r(8491);var i=r(8687);var a=r(4599);var o="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";var s="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";var u=/[A-Z]|^ms/g;var l=/_EMO_([^_]+?)_([^]*?)_EMO_/g;var c=function e(t){return t.charCodeAt(1)===45};var f=function e(t){return t!=null&&typeof t!=="boolean"};var d=(0,a.Z)((function(e){return c(e)?e:e.replace(u,"-$&").toLowerCase()}));var p=function e(t,r){switch(t){case"animation":case"animationName":{if(typeof r==="string"){return r.replace(l,(function(e,t,r){O={name:t,styles:r,next:O};return t}))}}}if(i.Z[t]!==1&&!c(t)&&typeof r==="number"&&r!==0){return r+"px"}return r};if(false){var h,v,m,g,y,b}var w=null&&"Component selectors can only be used in conjunction with "+"@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware "+"compiler transform.";function _(e,t,r){if(r==null){return""}if(r.__emotion_styles!==undefined){if(false){}return r}switch(typeof r){case"boolean":{return""}case"object":{if(r.anim===1){O={name:r.name,styles:r.styles,next:O};return r.name}if(r.styles!==undefined){var n=r.next;if(n!==undefined){while(n!==undefined){O={name:n.name,styles:n.styles,next:O};n=n.next}}var i=r.styles+";";if(false){}return i}return x(e,t,r)}case"function":{if(e!==undefined){var a=O;var o=r(e);O=a;return _(e,t,o)}else if(false){}break}case"string":if(false){var s,u}break}if(t==null){return r}var l=t[r];return l!==undefined?l:r}function x(e,t,r){var n="";if(Array.isArray(r)){for(var i=0;i{"use strict";r.d(t,{m:()=>a});function n(e){if(e.sheet){return e.sheet}for(var t=0;t{"use strict";r.d(t,{Z:()=>n});var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},7728:(e,t,r)=>{"use strict";r.d(t,{My:()=>o,fp:()=>i,hC:()=>a});var n="object"!=="undefined";function i(e,t,r){var n="";r.split(" ").forEach((function(r){if(e[r]!==undefined){t.push(e[r]+";")}else{n+=r+" "}}));return n}var a=function e(t,r,i){var a=t.key+"-"+r.name;if((i===false||n===false)&&t.registered[a]===undefined){t.registered[a]=r.styles}};var o=function e(t,r,n){a(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===undefined){var o=r;do{t.insert(r===o?"."+i:"",o,t.sheet,true);o=o.next}while(o!==undefined)}}},7278:(e,t,r)=>{"use strict";r.d(t,{L:()=>s,j:()=>u});var n=r(7363);var i=r.n(n);var a=function e(t){return t()};var o=n["useInsertion"+"Effect"]?n["useInsertion"+"Effect"]:false;var s=o||a;var u=o||n.useLayoutEffect},3126:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>on});function n(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function i(e){var t=n(e).Element;return e instanceof t||e instanceof Element}function a(e){var t=n(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o(e){if(typeof ShadowRoot==="undefined"){return false}var t=n(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var s=Math.max;var u=Math.min;var l=Math.round;function c(){var e=navigator.userAgentData;if(e!=null&&e.brands&&Array.isArray(e.brands)){return e.brands.map((function(e){return e.brand+"/"+e.version})).join(" ")}return navigator.userAgent}function f(){return!/^((?!chrome|android).)*safari/i.test(c())}function d(e,t,r){if(t===void 0){t=false}if(r===void 0){r=false}var o=e.getBoundingClientRect();var s=1;var u=1;if(t&&a(e)){s=e.offsetWidth>0?l(o.width)/e.offsetWidth||1:1;u=e.offsetHeight>0?l(o.height)/e.offsetHeight||1:1}var c=i(e)?n(e):window,d=c.visualViewport;var p=!f()&&r;var h=(o.left+(p&&d?d.offsetLeft:0))/s;var v=(o.top+(p&&d?d.offsetTop:0))/u;var m=o.width/s;var g=o.height/u;return{width:m,height:g,top:v,right:h+m,bottom:v+g,left:h,x:h,y:v}}function p(e){var t=n(e);var r=t.pageXOffset;var i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function h(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function v(e){if(e===n(e)||!a(e)){return p(e)}else{return h(e)}}function m(e){return e?(e.nodeName||"").toLowerCase():null}function g(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return d(g(e)).left+p(e).scrollLeft}function b(e){return n(e).getComputedStyle(e)}function w(e){var t=b(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function _(e){var t=e.getBoundingClientRect();var r=l(t.width)/e.offsetWidth||1;var n=l(t.height)/e.offsetHeight||1;return r!==1||n!==1}function x(e,t,r){if(r===void 0){r=false}var n=a(t);var i=a(t)&&_(t);var o=g(t);var s=d(e,i,r);var u={scrollLeft:0,scrollTop:0};var l={x:0,y:0};if(n||!n&&!r){if(m(t)!=="body"||w(o)){u=v(t)}if(a(t)){l=d(t,true);l.x+=t.clientLeft;l.y+=t.clientTop}else if(o){l.x=y(o)}}return{x:s.left+u.scrollLeft-l.x,y:s.top+u.scrollTop-l.y,width:s.width,height:s.height}}function S(e){var t=d(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function E(e){if(m(e)==="html"){return e}return e.assignedSlot||e.parentNode||(o(e)?e.host:null)||g(e)}function O(e){if(["html","body","#document"].indexOf(m(e))>=0){return e.ownerDocument.body}if(a(e)&&w(e)){return e}return O(E(e))}function C(e,t){var r;if(t===void 0){t=[]}var i=O(e);var a=i===((r=e.ownerDocument)==null?void 0:r.body);var o=n(i);var s=a?[o].concat(o.visualViewport||[],w(i)?i:[]):i;var u=t.concat(s);return a?u:u.concat(C(E(s)))}function k(e){return["table","td","th"].indexOf(m(e))>=0}function R(e){if(!a(e)||b(e).position==="fixed"){return null}return e.offsetParent}function A(e){var t=/firefox/i.test(c());var r=/Trident/i.test(c());if(r&&a(e)){var n=b(e);if(n.position==="fixed"){return null}}var i=E(e);if(o(i)){i=i.host}while(a(i)&&["html","body"].indexOf(m(i))<0){var s=b(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none"){return i}else{i=i.parentNode}}return null}function j(e){var t=n(e);var r=R(e);while(r&&k(r)&&b(r).position==="static"){r=R(r)}if(r&&(m(r)==="html"||m(r)==="body"&&b(r).position==="static")){return t}return r||A(e)||t}var P="top";var T="bottom";var M="right";var D="left";var L="auto";var F=[P,T,M,D];var N="start";var I="end";var Z="clippingParents";var U="viewport";var q="popper";var z="reference";var W=F.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+I])}),[]);var $=[].concat(F,[L]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+I])}),[]);var B="beforeRead";var V="read";var G="afterRead";var H="beforeMain";var Q="main";var Y="afterMain";var K="beforeWrite";var J="write";var X="afterWrite";var ee=[B,V,G,H,Q,Y,K,J,X];function te(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function i(e){r.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){i(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){i(e)}}));return n}function re(e){var t=te(e);return ee.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function ne(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function ie(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var ae={placement:"bottom",modifiers:[],strategy:"absolute"};function oe(){for(var e=arguments.length,t=new Array(e),r=0;r=0?"x":"y"}function ve(e){var t=e.reference,r=e.element,n=e.placement;var i=n?de(n):null;var a=n?pe(n):null;var o=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var u;switch(i){case P:u={x:o,y:t.y-r.height};break;case T:u={x:o,y:t.y+t.height};break;case M:u={x:t.x+t.width,y:s};break;case D:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?he(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case N:u[l]=u[l]-(t[c]/2-r[c]/2);break;case I:u[l]=u[l]+(t[c]/2-r[c]/2);break;default:}}return u}function me(e){var t=e.state,r=e.name;t.modifiersData[r]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ge={name:"popperOffsets",enabled:true,phase:"read",fn:me,data:{}};var ye={top:"auto",right:"auto",bottom:"auto",left:"auto"};function be(e,t){var r=e.x,n=e.y;var i=t.devicePixelRatio||1;return{x:l(r*i)/i||0,y:l(n*i)/i||0}}function we(e){var t;var r=e.popper,i=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,u=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,d=e.isFixed;var p=s.x,h=p===void 0?0:p,v=s.y,m=v===void 0?0:v;var y=typeof f==="function"?f({x:h,y:m}):{x:h,y:m};h=y.x;m=y.y;var w=s.hasOwnProperty("x");var _=s.hasOwnProperty("y");var x=D;var S=P;var E=window;if(c){var O=j(r);var C="clientHeight";var k="clientWidth";if(O===n(r)){O=g(r);if(b(O).position!=="static"&&u==="absolute"){C="scrollHeight";k="scrollWidth"}}O=O;if(a===P||(a===D||a===M)&&o===I){S=T;var R=d&&O===E&&E.visualViewport?E.visualViewport.height:O[C];m-=R-i.height;m*=l?1:-1}if(a===D||(a===P||a===T)&&o===I){x=M;var A=d&&O===E&&E.visualViewport?E.visualViewport.width:O[k];h-=A-i.width;h*=l?1:-1}}var L=Object.assign({position:u},c&&ye);var F=f===true?be({x:h,y:m},n(r)):{x:h,y:m};h=F.x;m=F.y;if(l){var N;return Object.assign({},L,(N={},N[S]=_?"0":"",N[x]=w?"0":"",N.transform=(E.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",N))}return Object.assign({},L,(t={},t[S]=_?m+"px":"",t[x]=w?h+"px":"",t.transform="",t))}function _e(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,i=n===void 0?true:n,a=r.adaptive,o=a===void 0?true:a,s=r.roundOffsets,u=s===void 0?true:s;var l={placement:de(t.placement),variation:pe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,we(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,we(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const xe={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:_e,data:{}};function Se(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var i=t.elements[e];if(!a(i)||!m(i)){return}Object.assign(i.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){i.removeAttribute(e)}else{i.setAttribute(e,t===true?"":t)}}))}))}function Ee(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var i=t.attributes[e]||{};var o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var s=o.reduce((function(e,t){e[t]="";return e}),{});if(!a(n)||!m(n)){return}Object.assign(n.style,s);Object.keys(i).forEach((function(e){n.removeAttribute(e)}))}))}}const Oe={name:"applyStyles",enabled:true,phase:"write",fn:Se,effect:Ee,requires:["computeStyles"]};function Ce(e,t,r){var n=de(e);var i=[D,P].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];o=o||0;s=(s||0)*i;return[D,M].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function ke(e){var t=e.state,r=e.options,n=e.name;var i=r.offset,a=i===void 0?[0,0]:i;var o=$.reduce((function(e,r){e[r]=Ce(r,t.rects,a);return e}),{});var s=o[t.placement],u=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=u;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=o}const Re={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:ke};var Ae={left:"right",right:"left",bottom:"top",top:"bottom"};function je(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ae[e]}))}var Pe={start:"end",end:"start"};function Te(e){return e.replace(/start|end/g,(function(e){return Pe[e]}))}function Me(e,t){var r=n(e);var i=g(e);var a=r.visualViewport;var o=i.clientWidth;var s=i.clientHeight;var u=0;var l=0;if(a){o=a.width;s=a.height;var c=f();if(c||!c&&t==="fixed"){u=a.offsetLeft;l=a.offsetTop}}return{width:o,height:s,x:u+y(e),y:l}}function De(e){var t;var r=g(e);var n=p(e);var i=(t=e.ownerDocument)==null?void 0:t.body;var a=s(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=s(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var u=-n.scrollLeft+y(e);var l=-n.scrollTop;if(b(i||r).direction==="rtl"){u+=s(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:u,y:l}}function Le(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&o(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t){var r=d(e,false,t==="fixed");r.top=r.top+e.clientTop;r.left=r.left+e.clientLeft;r.bottom=r.top+e.clientHeight;r.right=r.left+e.clientWidth;r.width=e.clientWidth;r.height=e.clientHeight;r.x=r.left;r.y=r.top;return r}function Ie(e,t,r){return t===U?Fe(Me(e,r)):i(t)?Ne(t,r):Fe(De(g(e)))}function Ze(e){var t=C(E(e));var r=["absolute","fixed"].indexOf(b(e).position)>=0;var n=r&&a(e)?j(e):e;if(!i(n)){return[]}return t.filter((function(e){return i(e)&&Le(e,n)&&m(e)!=="body"}))}function Ue(e,t,r,n){var i=t==="clippingParents"?Ze(e):[].concat(t);var a=[].concat(i,[r]);var o=a[0];var l=a.reduce((function(t,r){var i=Ie(e,r,n);t.top=s(i.top,t.top);t.right=u(i.right,t.right);t.bottom=u(i.bottom,t.bottom);t.left=s(i.left,t.left);return t}),Ie(e,o,n));l.width=l.right-l.left;l.height=l.bottom-l.top;l.x=l.left;l.y=l.top;return l}function qe(){return{top:0,right:0,bottom:0,left:0}}function ze(e){return Object.assign({},qe(),e)}function We(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}function $e(e,t){if(t===void 0){t={}}var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,u=r.boundary,l=u===void 0?Z:u,c=r.rootBoundary,f=c===void 0?U:c,p=r.elementContext,h=p===void 0?q:p,v=r.altBoundary,m=v===void 0?false:v,y=r.padding,b=y===void 0?0:y;var w=ze(typeof b!=="number"?b:We(b,F));var _=h===q?z:q;var x=e.rects.popper;var S=e.elements[m?_:h];var E=Ue(i(S)?S:S.contextElement||g(e.elements.popper),l,f,s);var O=d(e.elements.reference);var C=ve({reference:O,element:x,strategy:"absolute",placement:a});var k=Fe(Object.assign({},x,C));var R=h===q?k:O;var A={top:E.top-R.top+w.top,bottom:R.bottom-E.bottom+w.bottom,left:E.left-R.left+w.left,right:R.right-E.right+w.right};var j=e.modifiersData.offset;if(h===q&&j){var D=j[a];Object.keys(A).forEach((function(e){var t=[M,T].indexOf(e)>=0?1:-1;var r=[P,T].indexOf(e)>=0?"y":"x";A[e]+=D[r]*t}))}return A}function Be(e,t){if(t===void 0){t={}}var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,l=u===void 0?$:u;var c=pe(n);var f=c?s?W:W.filter((function(e){return pe(e)===c})):F;var d=f.filter((function(e){return l.indexOf(e)>=0}));if(d.length===0){d=f}var p=d.reduce((function(t,r){t[r]=$e(e,{placement:r,boundary:i,rootBoundary:a,padding:o})[de(r)];return t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}function Ve(e){if(de(e)===L){return[]}var t=je(e);return[Te(e),t,Te(t)]}function Ge(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,s=o===void 0?true:o,u=r.fallbackPlacements,l=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.flipVariations,h=p===void 0?true:p,v=r.allowedAutoPlacements;var m=t.options.placement;var g=de(m);var y=g===m;var b=u||(y||!h?[je(m)]:Ve(m));var w=[m].concat(b).reduce((function(e,r){return e.concat(de(r)===L?Be(t,{placement:r,boundary:c,rootBoundary:f,padding:l,flipVariations:h,allowedAutoPlacements:v}):r)}),[]);var _=t.rects.reference;var x=t.rects.popper;var S=new Map;var E=true;var O=w[0];for(var C=0;C=0;var F=j?"width":"height";var I=$e(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:l});var Z=j?A?M:D:A?T:P;if(_[F]>x[F]){Z=je(Z)}var U=je(Z);var q=[];if(a){q.push(I[R]<=0)}if(s){q.push(I[Z]<=0,I[U]<=0)}if(q.every((function(e){return e}))){O=k;E=false;break}S.set(k,q)}if(E){var z=h?3:1;var W=function e(t){var r=w.find((function(e){var r=S.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){O=r;return"break"}};for(var $=z;$>0;$--){var B=W($);if(B==="break")break}}if(t.placement!==O){t.modifiersData[n]._skip=true;t.placement=O;t.reset=true}}const He={name:"flip",enabled:true,phase:"main",fn:Ge,requiresIfExists:["offset"],data:{_skip:false}};function Qe(e){return e==="x"?"y":"x"}function Ye(e,t,r){return s(e,u(t,r))}function Ke(e,t,r){var n=Ye(e,t,r);return n>r?r:n}function Je(e){var t=e.state,r=e.options,n=e.name;var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,l=o===void 0?false:o,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,v=h===void 0?true:h,m=r.tetherOffset,g=m===void 0?0:m;var y=$e(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:d});var b=de(t.placement);var w=pe(t.placement);var _=!w;var x=he(b);var E=Qe(x);var O=t.modifiersData.popperOffsets;var C=t.rects.reference;var k=t.rects.popper;var R=typeof g==="function"?g(Object.assign({},t.rects,{placement:t.placement})):g;var A=typeof R==="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R);var L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null;var F={x:0,y:0};if(!O){return}if(a){var I;var Z=x==="y"?P:D;var U=x==="y"?T:M;var q=x==="y"?"height":"width";var z=O[x];var W=z+y[Z];var $=z-y[U];var B=v?-k[q]/2:0;var V=w===N?C[q]:k[q];var G=w===N?-k[q]:-C[q];var H=t.elements.arrow;var Q=v&&H?S(H):{width:0,height:0};var Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qe();var K=Y[Z];var J=Y[U];var X=Ye(0,C[q],Q[q]);var ee=_?C[q]/2-B-X-K-A.mainAxis:V-X-K-A.mainAxis;var te=_?-C[q]/2+B+X+J+A.mainAxis:G+X+J+A.mainAxis;var re=t.elements.arrow&&j(t.elements.arrow);var ne=re?x==="y"?re.clientTop||0:re.clientLeft||0:0;var ie=(I=L==null?void 0:L[x])!=null?I:0;var ae=z+ee-ie-ne;var oe=z+te-ie;var se=Ye(v?u(W,ae):W,z,v?s($,oe):$);O[x]=se;F[x]=se-z}if(l){var ue;var le=x==="x"?P:D;var ce=x==="x"?T:M;var fe=O[E];var ve=E==="y"?"height":"width";var me=fe+y[le];var ge=fe-y[ce];var ye=[P,D].indexOf(b)!==-1;var be=(ue=L==null?void 0:L[E])!=null?ue:0;var we=ye?me:fe-C[ve]-k[ve]-be+A.altAxis;var _e=ye?fe+C[ve]+k[ve]-be-A.altAxis:ge;var xe=v&&ye?Ke(we,fe,_e):Ye(v?we:me,fe,v?_e:ge);O[E]=xe;F[E]=xe-fe}t.modifiersData[n]=F}const Xe={name:"preventOverflow",enabled:true,phase:"main",fn:Je,requiresIfExists:["offset"]};var et=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return ze(typeof t!=="number"?t:We(t,F))};function tt(e){var t;var r=e.state,n=e.name,i=e.options;var a=r.elements.arrow;var o=r.modifiersData.popperOffsets;var s=de(r.placement);var u=he(s);var l=[D,M].indexOf(s)>=0;var c=l?"height":"width";if(!a||!o){return}var f=et(i.padding,r);var d=S(a);var p=u==="y"?P:D;var h=u==="y"?T:M;var v=r.rects.reference[c]+r.rects.reference[u]-o[u]-r.rects.popper[c];var m=o[u]-r.rects.reference[u];var g=j(a);var y=g?u==="y"?g.clientHeight||0:g.clientWidth||0:0;var b=v/2-m/2;var w=f[p];var _=y-d[c]-f[h];var x=y/2-d[c]/2+b;var E=Ye(w,x,_);var O=u;r.modifiersData[n]=(t={},t[O]=E,t.centerOffset=E-x,t)}function rt(e){var t=e.state,r=e.options;var n=r.element,i=n===void 0?"[data-popper-arrow]":n;if(i==null){return}if(typeof i==="string"){i=t.elements.popper.querySelector(i);if(!i){return}}if(!Le(t.elements.popper,i)){return}t.elements.arrow=i}const nt={name:"arrow",enabled:true,phase:"main",fn:tt,effect:rt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function it(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function at(e){return[P,M,T,D].some((function(t){return e[t]>=0}))}function ot(e){var t=e.state,r=e.name;var n=t.rects.reference;var i=t.rects.popper;var a=t.modifiersData.preventOverflow;var o=$e(t,{elementContext:"reference"});var s=$e(t,{altBoundary:true});var u=it(o,n);var l=it(s,i,a);var c=at(u);var f=at(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const st={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:ot};var ut=[fe,ge,xe,Oe,Re,He,Xe,nt,st];var lt=se({defaultModifiers:ut});
/**!
* tippy.js v6.3.7
* (c) 2017-2021 atomiks
* MIT License
*/
var ct='';var ft="tippy-content";var dt="tippy-backdrop";var pt="tippy-arrow";var ht="tippy-svg-arrow";var vt={passive:true,capture:true};var mt=function e(){return document.body};function gt(e,t){return{}.hasOwnProperty.call(e,t)}function yt(e,t,r){if(Array.isArray(e)){var n=e[t];return n==null?Array.isArray(r)?r[t]:r:n}return e}function bt(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function wt(e,t){return typeof e==="function"?e.apply(void 0,t):e}function _t(e,t){if(t===0){return e}var r;return function(n){clearTimeout(r);r=setTimeout((function(){e(n)}),t)}}function xt(e,t){var r=Object.assign({},e);t.forEach((function(e){delete r[e]}));return r}function St(e){return e.split(/\s+/).filter(Boolean)}function Et(e){return[].concat(e)}function Ot(e,t){if(e.indexOf(t)===-1){e.push(t)}}function Ct(e){return e.filter((function(t,r){return e.indexOf(t)===r}))}function kt(e){return e.split("-")[0]}function Rt(e){return[].slice.call(e)}function At(e){return Object.keys(e).reduce((function(t,r){if(e[r]!==undefined){t[r]=e[r]}return t}),{})}function jt(){return document.createElement("div")}function Pt(e){return["Element","Fragment"].some((function(t){return bt(e,t)}))}function Tt(e){return bt(e,"NodeList")}function Mt(e){return bt(e,"MouseEvent")}function Dt(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Lt(e){if(Pt(e)){return[e]}if(Tt(e)){return Rt(e)}if(Array.isArray(e)){return e}return Rt(document.querySelectorAll(e))}function Ft(e,t){e.forEach((function(e){if(e){e.style.transitionDuration=t+"ms"}}))}function Nt(e,t){e.forEach((function(e){if(e){e.setAttribute("data-state",t)}}))}function It(e){var t;var r=Et(e),n=r[0];return n!=null&&(t=n.ownerDocument)!=null&&t.body?n.ownerDocument:document}function Zt(e,t){var r=t.clientX,n=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,a=e.props;var o=a.interactiveBorder;var s=kt(i.placement);var u=i.modifiersData.offset;if(!u){return true}var l=s==="bottom"?u.top.y:0;var c=s==="top"?u.bottom.y:0;var f=s==="right"?u.left.x:0;var d=s==="left"?u.right.x:0;var p=t.top-n+l>o;var h=n-t.bottom-c>o;var v=t.left-r+f>o;var m=r-t.right-d>o;return p||h||v||m}))}function Ut(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[n](t,r)}))}function qt(e,t){var r=t;while(r){var n;if(e.contains(r)){return true}r=r.getRootNode==null?void 0:(n=r.getRootNode())==null?void 0:n.host}return false}var zt={isTouch:false};var Wt=0;function $t(){if(zt.isTouch){return}zt.isTouch=true;if(window.performance){document.addEventListener("mousemove",Bt)}}function Bt(){var e=performance.now();if(e-Wt<20){zt.isTouch=false;document.removeEventListener("mousemove",Bt)}Wt=e}function Vt(){var e=document.activeElement;if(Dt(e)){var t=e._tippy;if(e.blur&&!t.state.isVisible){e.blur()}}}function Gt(){document.addEventListener("touchstart",$t,vt);window.addEventListener("blur",Vt)}var Ht=typeof window!=="undefined"&&typeof document!=="undefined";var Qt=Ht?!!window.msCrypto:false;function Yt(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Kt(e){var t=/[ \t]{2,}/g;var r=/^[ \t]*/gm;return e.replace(t," ").replace(r,"").trim()}function Jt(e){return Kt("\n %ctippy.js\n\n %c"+Kt(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function Xt(e){return[Jt(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var er;if(false){}function tr(){er=new Set}function rr(e,t){if(e&&!er.has(t)){var r;er.add(t);(r=console).warn.apply(r,Xt(t))}}function nr(e,t){if(e&&!er.has(t)){var r;er.add(t);(r=console).error.apply(r,Xt(t))}}function ir(e){var t=!e;var r=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;nr(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" "));nr(r,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var ar={animateFill:false,followCursor:false,inlinePositioning:false,sticky:false};var or={allowHTML:false,animation:"fade",arrow:true,content:"",inertia:false,maxWidth:350,role:"tooltip",theme:"",zIndex:9999};var sr=Object.assign({appendTo:mt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:true,ignoreAttributes:false,interactive:false,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function e(){},onBeforeUpdate:function e(){},onCreate:function e(){},onDestroy:function e(){},onHidden:function e(){},onHide:function e(){},onMount:function e(){},onShow:function e(){},onShown:function e(){},onTrigger:function e(){},onUntrigger:function e(){},onClickOutside:function e(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:false,touch:true,trigger:"mouseenter focus",triggerTarget:null},ar,or);var ur=Object.keys(sr);var lr=function e(t){if(false){}var r=Object.keys(t);r.forEach((function(e){sr[e]=t[e]}))};function cr(e){var t=e.plugins||[];var r=t.reduce((function(t,r){var n=r.name,i=r.defaultValue;if(n){var a;t[n]=e[n]!==undefined?e[n]:(a=sr[n])!=null?a:i}return t}),{});return Object.assign({},e,r)}function fr(e,t){var r=t?Object.keys(cr(Object.assign({},sr,{plugins:t}))):ur;var n=r.reduce((function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n){return t}if(r==="content"){t[r]=n}else{try{t[r]=JSON.parse(n)}catch(e){t[r]=n}}return t}),{});return n}function dr(e,t){var r=Object.assign({},t,{content:wt(t.content,[e])},t.ignoreAttributes?{}:fr(e,t.plugins));r.aria=Object.assign({},sr.aria,r.aria);r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content};return r}function pr(e,t){if(e===void 0){e={}}if(t===void 0){t=[]}var r=Object.keys(e);r.forEach((function(e){var r=xt(sr,Object.keys(ar));var n=!gt(r,e);if(n){n=t.filter((function(t){return t.name===e})).length===0}rr(n,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function hr(e){var t=e.firstElementChild;var r=Rt(t.children);return{box:t,content:r.find((function(e){return e.classList.contains(ft)})),arrow:r.find((function(e){return e.classList.contains(pt)||e.classList.contains(ht)})),backdrop:r.find((function(e){return e.classList.contains(dt)}))}}var vr=1;var mr=[];var gr=[];function yr(e,t){var r=dr(e,Object.assign({},sr,cr(At(t))));var n;var i;var a;var o=false;var s=false;var u=false;var l=false;var c;var f;var d;var p=[];var h=_t(Y,r.interactiveDebounce);var v;var m=vr++;var g=null;var y=Ct(r.plugins);var b={isEnabled:true,isVisible:false,isDestroyed:false,isMounted:false,isShown:false};var w={id:m,reference:e,popper:jt(),popperInstance:g,props:r,state:b,plugins:y,clearDelayTimeouts:ue,setProps:le,setContent:ce,show:fe,hide:de,hideWithInteractivity:pe,enable:oe,disable:se,unmount:he,destroy:ve};if(!r.render){if(false){}return w}var _=r.render(w),x=_.popper,S=_.onUpdate;x.setAttribute("data-tippy-root","");x.id="tippy-"+w.id;w.popper=x;e._tippy=w;x._tippy=w;var E=y.map((function(e){return e.fn(w)}));var O=e.hasAttribute("aria-expanded");G();F();M();D("onCreate",[w]);if(r.showOnCreate){ie()}x.addEventListener("mouseenter",(function(){if(w.props.interactive&&w.state.isVisible){w.clearDelayTimeouts()}}));x.addEventListener("mouseleave",(function(){if(w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0){j().addEventListener("mousemove",h)}}));return w;function C(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function k(){return C()[0]==="hold"}function R(){var e;return!!((e=w.props.render)!=null&&e.$$tippy)}function A(){return v||e}function j(){var e=A().parentNode;return e?It(e):document}function P(){return hr(x)}function T(e){if(w.state.isMounted&&!w.state.isVisible||zt.isTouch||c&&c.type==="focus"){return 0}return yt(w.props.delay,e?0:1,sr.delay)}function M(e){if(e===void 0){e=false}x.style.pointerEvents=w.props.interactive&&!e?"":"none";x.style.zIndex=""+w.props.zIndex}function D(e,t,r){if(r===void 0){r=true}E.forEach((function(r){if(r[e]){r[e].apply(r,t)}}));if(r){var n;(n=w.props)[e].apply(n,t)}}function L(){var t=w.props.aria;if(!t.content){return}var r="aria-"+t.content;var n=x.id;var i=Et(w.props.triggerTarget||e);i.forEach((function(e){var t=e.getAttribute(r);if(w.state.isVisible){e.setAttribute(r,t?t+" "+n:n)}else{var i=t&&t.replace(n,"").trim();if(i){e.setAttribute(r,i)}else{e.removeAttribute(r)}}}))}function F(){if(O||!w.props.aria.expanded){return}var t=Et(w.props.triggerTarget||e);t.forEach((function(e){if(w.props.interactive){e.setAttribute("aria-expanded",w.state.isVisible&&e===A()?"true":"false")}else{e.removeAttribute("aria-expanded")}}))}function N(){j().removeEventListener("mousemove",h);mr=mr.filter((function(e){return e!==h}))}function I(t){if(zt.isTouch){if(u||t.type==="mousedown"){return}}var r=t.composedPath&&t.composedPath()[0]||t.target;if(w.props.interactive&&qt(x,r)){return}if(Et(w.props.triggerTarget||e).some((function(e){return qt(e,r)}))){if(zt.isTouch){return}if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0){return}}else{D("onClickOutside",[w,t])}if(w.props.hideOnClick===true){w.clearDelayTimeouts();w.hide();s=true;setTimeout((function(){s=false}));if(!w.state.isMounted){z()}}}function Z(){u=true}function U(){u=false}function q(){var e=j();e.addEventListener("mousedown",I,true);e.addEventListener("touchend",I,vt);e.addEventListener("touchstart",U,vt);e.addEventListener("touchmove",Z,vt)}function z(){var e=j();e.removeEventListener("mousedown",I,true);e.removeEventListener("touchend",I,vt);e.removeEventListener("touchstart",U,vt);e.removeEventListener("touchmove",Z,vt)}function W(e,t){B(e,(function(){if(!w.state.isVisible&&x.parentNode&&x.parentNode.contains(x)){t()}}))}function $(e,t){B(e,t)}function B(e,t){var r=P().box;function n(e){if(e.target===r){Ut(r,"remove",n);t()}}if(e===0){return t()}Ut(r,"remove",f);Ut(r,"add",n);f=n}function V(t,r,n){if(n===void 0){n=false}var i=Et(w.props.triggerTarget||e);i.forEach((function(e){e.addEventListener(t,r,n);p.push({node:e,eventType:t,handler:r,options:n})}))}function G(){if(k()){V("touchstart",Q,{passive:true});V("touchend",K,{passive:true})}St(w.props.trigger).forEach((function(e){if(e==="manual"){return}V(e,Q);switch(e){case"mouseenter":V("mouseleave",K);break;case"focus":V(Qt?"focusout":"blur",J);break;case"focusin":V("focusout",J);break}}))}function H(){p.forEach((function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}));p=[]}function Q(e){var t;var r=false;if(!w.state.isEnabled||X(e)||s){return}var n=((t=c)==null?void 0:t.type)==="focus";c=e;v=e.currentTarget;F();if(!w.state.isVisible&&Mt(e)){mr.forEach((function(t){return t(e)}))}if(e.type==="click"&&(w.props.trigger.indexOf("mouseenter")<0||o)&&w.props.hideOnClick!==false&&w.state.isVisible){r=true}else{ie(e)}if(e.type==="click"){o=!r}if(r&&!n){ae(e)}}function Y(e){var t=e.target;var n=A().contains(t)||x.contains(t);if(e.type==="mousemove"&&n){return}var i=ne().concat(x).map((function(e){var t;var n=e._tippy;var i=(t=n.popperInstance)==null?void 0:t.state;if(i){return{popperRect:e.getBoundingClientRect(),popperState:i,props:r}}return null})).filter(Boolean);if(Zt(i,e)){N();ae(e)}}function K(e){var t=X(e)||w.props.trigger.indexOf("click")>=0&&o;if(t){return}if(w.props.interactive){w.hideWithInteractivity(e);return}ae(e)}function J(e){if(w.props.trigger.indexOf("focusin")<0&&e.target!==A()){return}if(w.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)){return}ae(e)}function X(e){return zt.isTouch?k()!==e.type.indexOf("touch")>=0:false}function ee(){te();var t=w.props,r=t.popperOptions,n=t.placement,i=t.offset,a=t.getReferenceClientRect,o=t.moveTransition;var s=R()?hr(x).arrow:null;var u=a?{getBoundingClientRect:a,contextElement:a.contextElement||A()}:e;var l={name:"$$tippy",enabled:true,phase:"beforeWrite",requires:["computeStyles"],fn:function e(t){var r=t.state;if(R()){var n=P(),i=n.box;["placement","reference-hidden","escaped"].forEach((function(e){if(e==="placement"){i.setAttribute("data-placement",r.placement)}else{if(r.attributes.popper["data-popper-"+e]){i.setAttribute("data-"+e,"")}else{i.removeAttribute("data-"+e)}}}));r.attributes.popper={}}}};var c=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},l];if(R()&&s){c.push({name:"arrow",options:{element:s,padding:3}})}c.push.apply(c,(r==null?void 0:r.modifiers)||[]);w.popperInstance=lt(u,x,Object.assign({},r,{placement:n,onFirstUpdate:d,modifiers:c}))}function te(){if(w.popperInstance){w.popperInstance.destroy();w.popperInstance=null}}function re(){var e=w.props.appendTo;var t;var r=A();if(w.props.interactive&&e===mt||e==="parent"){t=r.parentNode}else{t=wt(e,[r])}if(!t.contains(x)){t.appendChild(x)}w.state.isMounted=true;ee();if(false){}}function ne(){return Rt(x.querySelectorAll("[data-tippy-root]"))}function ie(e){w.clearDelayTimeouts();if(e){D("onTrigger",[w,e])}q();var t=T(true);var r=C(),i=r[0],a=r[1];if(zt.isTouch&&i==="hold"&&a){t=a}if(t){n=setTimeout((function(){w.show()}),t)}else{w.show()}}function ae(e){w.clearDelayTimeouts();D("onUntrigger",[w,e]);if(!w.state.isVisible){z();return}if(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&o){return}var t=T(false);if(t){i=setTimeout((function(){if(w.state.isVisible){w.hide()}}),t)}else{a=requestAnimationFrame((function(){w.hide()}))}}function oe(){w.state.isEnabled=true}function se(){w.hide();w.state.isEnabled=false}function ue(){clearTimeout(n);clearTimeout(i);cancelAnimationFrame(a)}function le(t){if(false){}if(w.state.isDestroyed){return}D("onBeforeUpdate",[w,t]);H();var r=w.props;var n=dr(e,Object.assign({},r,At(t),{ignoreAttributes:true}));w.props=n;G();if(r.interactiveDebounce!==n.interactiveDebounce){N();h=_t(Y,n.interactiveDebounce)}if(r.triggerTarget&&!n.triggerTarget){Et(r.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")}))}else if(n.triggerTarget){e.removeAttribute("aria-expanded")}F();M();if(S){S(r,n)}if(w.popperInstance){ee();ne().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))}D("onAfterUpdate",[w,t])}function ce(e){w.setProps({content:e})}function fe(){if(false){}var e=w.state.isVisible;var t=w.state.isDestroyed;var r=!w.state.isEnabled;var n=zt.isTouch&&!w.props.touch;var i=yt(w.props.duration,0,sr.duration);if(e||t||r||n){return}if(A().hasAttribute("disabled")){return}D("onShow",[w],false);if(w.props.onShow(w)===false){return}w.state.isVisible=true;if(R()){x.style.visibility="visible"}M();q();if(!w.state.isMounted){x.style.transition="none"}if(R()){var a=P(),o=a.box,s=a.content;Ft([o,s],0)}d=function e(){var t;if(!w.state.isVisible||l){return}l=true;void x.offsetHeight;x.style.transition=w.props.moveTransition;if(R()&&w.props.animation){var r=P(),n=r.box,a=r.content;Ft([n,a],i);Nt([n,a],"visible")}L();F();Ot(gr,w);(t=w.popperInstance)==null?void 0:t.forceUpdate();D("onMount",[w]);if(w.props.animation&&R()){$(i,(function(){w.state.isShown=true;D("onShown",[w])}))}};re()}function de(){if(false){}var e=!w.state.isVisible;var t=w.state.isDestroyed;var r=!w.state.isEnabled;var n=yt(w.props.duration,1,sr.duration);if(e||t||r){return}D("onHide",[w],false);if(w.props.onHide(w)===false){return}w.state.isVisible=false;w.state.isShown=false;l=false;o=false;if(R()){x.style.visibility="hidden"}N();z();M(true);if(R()){var i=P(),a=i.box,s=i.content;if(w.props.animation){Ft([a,s],n);Nt([a,s],"hidden")}}L();F();if(w.props.animation){if(R()){W(n,w.unmount)}}else{w.unmount()}}function pe(e){if(false){}j().addEventListener("mousemove",h);Ot(mr,h);h(e)}function he(){if(false){}if(w.state.isVisible){w.hide()}if(!w.state.isMounted){return}te();ne().forEach((function(e){e._tippy.unmount()}));if(x.parentNode){x.parentNode.removeChild(x)}gr=gr.filter((function(e){return e!==w}));w.state.isMounted=false;D("onHidden",[w])}function ve(){if(false){}if(w.state.isDestroyed){return}w.clearDelayTimeouts();w.unmount();H();delete e._tippy;w.state.isDestroyed=true;D("onDestroy",[w])}}function br(e,t){if(t===void 0){t={}}var r=sr.plugins.concat(t.plugins||[]);if(false){}Gt();var n=Object.assign({},t,{plugins:r});var i=Lt(e);if(false){var a,o}var s=i.reduce((function(e,t){var r=t&&yr(t,n);if(r){e.push(r)}return e}),[]);return Pt(e)?s[0]:s}br.defaultProps=sr;br.setDefaultProps=lr;br.currentInput=zt;var wr=function e(t){var r=t===void 0?{}:t,n=r.exclude,i=r.duration;gr.forEach((function(e){var t=false;if(n){t=Dt(n)?e.reference===n:e.popper===n.popper}if(!t){var r=e.props.duration;e.setProps({duration:i});e.hide();if(!e.state.isDestroyed){e.setProps({duration:r})}}}))};var _r=Object.assign({},Oe,{effect:function e(t){var r=t.state;var n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,n.popper);r.styles=n;if(r.elements.arrow){Object.assign(r.elements.arrow.style,n.arrow)}}});var xr=function e(t,r){var n;if(r===void 0){r={}}if(false){}var i=t;var a=[];var o=[];var s;var u=r.overrides;var l=[];var c=false;function f(){o=i.map((function(e){return Et(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function d(){a=i.map((function(e){return e.reference}))}function p(e){i.forEach((function(t){if(e){t.enable()}else{t.disable()}}))}function h(e){return i.map((function(t){var r=t.setProps;t.setProps=function(n){r(n);if(t.reference===s){e.setProps(n)}};return function(){t.setProps=r}}))}function v(e,t){var r=o.indexOf(t);if(t===s){return}s=t;var n=(u||[]).concat("content").reduce((function(e,t){e[t]=i[r].props[t];return e}),{});e.setProps(Object.assign({},n,{getReferenceClientRect:typeof n.getReferenceClientRect==="function"?n.getReferenceClientRect:function(){var e;return(e=a[r])==null?void 0:e.getBoundingClientRect()}}))}p(false);d();f();var m={fn:function e(){return{onDestroy:function e(){p(true)},onHidden:function e(){s=null},onClickOutside:function e(t){if(t.props.showOnCreate&&!c){c=true;s=null}},onShow:function e(t){if(t.props.showOnCreate&&!c){c=true;v(t,a[0])}},onTrigger:function e(t,r){v(t,r.currentTarget)}}}};var g=br(jt(),Object.assign({},xt(r,["overrides"]),{plugins:[m].concat(r.plugins||[]),triggerTarget:o,popperOptions:Object.assign({},r.popperOptions,{modifiers:[].concat(((n=r.popperOptions)==null?void 0:n.modifiers)||[],[_r])})}));var y=g.show;g.show=function(e){y();if(!s&&e==null){return v(g,a[0])}if(s&&e==null){return}if(typeof e==="number"){return a[e]&&v(g,a[e])}if(i.indexOf(e)>=0){var t=e.reference;return v(g,t)}if(a.indexOf(e)>=0){return v(g,e)}};g.showNext=function(){var e=a[0];if(!s){return g.show(0)}var t=a.indexOf(s);g.show(a[t+1]||e)};g.showPrevious=function(){var e=a[a.length-1];if(!s){return g.show(e)}var t=a.indexOf(s);var r=a[t-1]||e;g.show(r)};var b=g.setProps;g.setProps=function(e){u=e.overrides||u;b(e)};g.setInstances=function(e){p(true);l.forEach((function(e){return e()}));i=e;p(false);d();f();l=h(g);g.setProps({triggerTarget:o})};l=h(g);return g};var Sr={mouseover:"mouseenter",focusin:"focus",click:"click"};function Er(e,t){if(false){}var r=[];var n=[];var i=false;var a=t.target;var o=xt(t,["target"]);var s=Object.assign({},o,{trigger:"manual",touch:false});var u=Object.assign({touch:sr.touch},o,{showOnCreate:true});var l=br(e,s);var c=Et(l);function f(e){if(!e.target||i){return}var r=e.target.closest(a);if(!r){return}var o=r.getAttribute("data-tippy-trigger")||t.trigger||sr.trigger;if(r._tippy){return}if(e.type==="touchstart"&&typeof u.touch==="boolean"){return}if(e.type!=="touchstart"&&o.indexOf(Sr[e.type])<0){return}var s=br(r,u);if(s){n=n.concat(s)}}function d(e,t,n,i){if(i===void 0){i=false}e.addEventListener(t,n,i);r.push({node:e,eventType:t,handler:n,options:i})}function p(e){var t=e.reference;d(t,"touchstart",f,vt);d(t,"mouseover",f);d(t,"focusin",f);d(t,"click",f)}function h(){r.forEach((function(e){var t=e.node,r=e.eventType,n=e.handler,i=e.options;t.removeEventListener(r,n,i)}));r=[]}function v(e){var t=e.destroy;var r=e.enable;var a=e.disable;e.destroy=function(e){if(e===void 0){e=true}if(e){n.forEach((function(e){e.destroy()}))}n=[];h();t()};e.enable=function(){r();n.forEach((function(e){return e.enable()}));i=false};e.disable=function(){a();n.forEach((function(e){return e.disable()}));i=true};p(e)}c.forEach(v);return l}var Or={name:"animateFill",defaultValue:false,fn:function e(t){var r;if(!((r=t.props.render)!=null&&r.$$tippy)){if(false){}return{}}var n=hr(t.popper),i=n.box,a=n.content;var o=t.props.animateFill?Cr():null;return{onCreate:function e(){if(o){i.insertBefore(o,i.firstElementChild);i.setAttribute("data-animatefill","");i.style.overflow="hidden";t.setProps({arrow:false,animation:"shift-away"})}},onMount:function e(){if(o){var t=i.style.transitionDuration;var r=Number(t.replace("ms",""));a.style.transitionDelay=Math.round(r/10)+"ms";o.style.transitionDuration=t;Nt([o],"visible")}},onShow:function e(){if(o){o.style.transitionDuration="0ms"}},onHide:function e(){if(o){Nt([o],"hidden")}}}}};function Cr(){var e=jt();e.className=dt;Nt([e],"hidden");return e}var kr={clientX:0,clientY:0};var Rr=[];function Ar(e){var t=e.clientX,r=e.clientY;kr={clientX:t,clientY:r}}function jr(e){e.addEventListener("mousemove",Ar)}function Pr(e){e.removeEventListener("mousemove",Ar)}var Tr={name:"followCursor",defaultValue:false,fn:function e(t){var r=t.reference;var n=It(t.props.triggerTarget||r);var i=false;var a=false;var o=true;var s=t.props;function u(){return t.props.followCursor==="initial"&&t.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function f(){i=true;t.setProps({getReferenceClientRect:null});i=false}function d(e){var n=e.target?r.contains(e.target):true;var i=t.props.followCursor;var a=e.clientX,o=e.clientY;var s=r.getBoundingClientRect();var u=a-s.left;var l=o-s.top;if(n||!t.props.interactive){t.setProps({getReferenceClientRect:function e(){var t=r.getBoundingClientRect();var n=a;var s=o;if(i==="initial"){n=t.left+u;s=t.top+l}var c=i==="horizontal"?t.top:s;var f=i==="vertical"?t.right:n;var d=i==="horizontal"?t.bottom:s;var p=i==="vertical"?t.left:n;return{width:f-p,height:d-c,top:c,right:f,bottom:d,left:p}}})}}function p(){if(t.props.followCursor){Rr.push({instance:t,doc:n});jr(n)}}function h(){Rr=Rr.filter((function(e){return e.instance!==t}));if(Rr.filter((function(e){return e.doc===n})).length===0){Pr(n)}}return{onCreate:p,onDestroy:h,onBeforeUpdate:function e(){s=t.props},onAfterUpdate:function e(r,n){var o=n.followCursor;if(i){return}if(o!==undefined&&s.followCursor!==o){h();if(o){p();if(t.state.isMounted&&!a&&!u()){l()}}else{c();f()}}},onMount:function e(){if(t.props.followCursor&&!a){if(o){d(kr);o=false}if(!u()){l()}}},onTrigger:function e(t,r){if(Mt(r)){kr={clientX:r.clientX,clientY:r.clientY}}a=r.type==="focus"},onHidden:function e(){if(t.props.followCursor){f();c();o=true}}}}};function Mr(e,t){var r;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat((((r=e.popperOptions)==null?void 0:r.modifiers)||[]).filter((function(e){var r=e.name;return r!==t.name})),[t])})}}var Dr={name:"inlinePositioning",defaultValue:false,fn:function e(t){var r=t.reference;function n(){return!!t.props.inlinePositioning}var i;var a=-1;var o=false;var s=[];var u={name:"tippyInlinePositioning",enabled:true,phase:"afterWrite",fn:function e(r){var a=r.state;if(n()){if(s.indexOf(a.placement)!==-1){s=[]}if(i!==a.placement&&s.indexOf(a.placement)===-1){s.push(a.placement);t.setProps({getReferenceClientRect:function e(){return l(a.placement)}})}i=a.placement}}};function l(e){return Lr(kt(e),r.getBoundingClientRect(),Rt(r.getClientRects()),a)}function c(e){o=true;t.setProps(e);o=false}function f(){if(!o){c(Mr(t.props,u))}}return{onCreate:f,onAfterUpdate:f,onTrigger:function e(r,n){if(Mt(n)){var i=Rt(t.reference.getClientRects());var o=i.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY}));var s=i.indexOf(o);a=s>-1?s:a}},onHidden:function e(){a=-1}}}};function Lr(e,t,r,n){if(r.length<2||e===null){return t}if(r.length===2&&n>=0&&r[0].left>r[1].right){return r[n]||t}switch(e){case"top":case"bottom":{var i=r[0];var a=r[r.length-1];var o=e==="top";var s=i.top;var u=a.bottom;var l=o?i.left:a.left;var c=o?i.right:a.right;var f=c-l;var d=u-s;return{top:s,bottom:u,left:l,right:c,width:f,height:d}}case"left":case"right":{var p=Math.min.apply(Math,r.map((function(e){return e.left})));var h=Math.max.apply(Math,r.map((function(e){return e.right})));var v=r.filter((function(t){return e==="left"?t.left===p:t.right===h}));var m=v[0].top;var g=v[v.length-1].bottom;var y=p;var b=h;var w=b-y;var _=g-m;return{top:m,bottom:g,left:y,right:b,width:w,height:_}}default:{return t}}}var Fr={name:"sticky",defaultValue:false,fn:function e(t){var r=t.reference,n=t.popper;function i(){return t.popperInstance?t.popperInstance.state.elements.reference:r}function a(e){return t.props.sticky===true||t.props.sticky===e}var o=null;var s=null;function u(){var e=a("reference")?i().getBoundingClientRect():null;var r=a("popper")?n.getBoundingClientRect():null;if(e&&Nr(o,e)||r&&Nr(s,r)){if(t.popperInstance){t.popperInstance.update()}}o=e;s=r;if(t.state.isMounted){requestAnimationFrame(u)}}return{onMount:function e(){if(t.props.sticky){u()}}}}};function Nr(e,t){if(e&&t){return e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}return true}br.setDefaultProps({animation:false});const Ir=br;var Zr=r(7363);var Ur=r.n(Zr);var qr=r(1533);function zr(e,t){if(e==null)return{};var r={};var n=Object.keys(e);var i,a;for(a=0;a=0)continue;r[i]=e[i]}return r}var Wr=typeof window!=="undefined"&&typeof document!=="undefined";function $r(e,t){if(e){if(typeof e==="function"){e(t)}if({}.hasOwnProperty.call(e,"current")){e.current=t}}}function Br(){return Wr&&document.createElement("div")}function Vr(e){var t={"data-placement":e.placement};if(e.referenceHidden){t["data-reference-hidden"]=""}if(e.escaped){t["data-escaped"]=""}return t}function Gr(e,t){if(e===t){return true}else if(typeof e==="object"&&e!=null&&typeof t==="object"&&t!=null){if(Object.keys(e).length!==Object.keys(t).length){return false}for(var r in e){if(t.hasOwnProperty(r)){if(!Gr(e[r],t[r])){return false}}else{return false}}return true}else{return false}}function Hr(e){var t=[];e.forEach((function(e){if(!t.find((function(t){return Gr(e,t)}))){t.push(e)}}));return t}function Qr(e,t){var r,n;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:Hr([].concat(((r=e.popperOptions)==null?void 0:r.modifiers)||[],((n=t.popperOptions)==null?void 0:n.modifiers)||[]))})})}var Yr=Wr?Zr.useLayoutEffect:Zr.useEffect;function Kr(e){var t=(0,Zr.useRef)();if(!t.current){t.current=typeof e==="function"?e():e}return t.current}function Jr(e,t,r){r.split(/\s+/).forEach((function(r){if(r){e.classList[t](r)}}))}var Xr={name:"className",defaultValue:"",fn:function e(t){var r=t.popper.firstElementChild;var n=function e(){var r;return!!((r=t.props.render)==null?void 0:r.$$tippy)};function i(){if(t.props.className&&!n()){if(false){}return}Jr(r,"add",t.props.className)}function a(){if(n()){Jr(r,"remove",t.props.className)}}return{onCreate:i,onBeforeUpdate:a,onAfterUpdate:i}}};function en(e){function t(t){var r=t.children,n=t.content,i=t.visible,a=t.singleton,o=t.render,s=t.reference,u=t.disabled,l=u===void 0?false:u,c=t.ignoreAttributes,f=c===void 0?true:c,d=t.__source,p=t.__self,h=zr(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"]);var v=i!==undefined;var m=a!==undefined;var g=(0,Zr.useState)(false),y=g[0],b=g[1];var w=(0,Zr.useState)({}),_=w[0],x=w[1];var S=(0,Zr.useState)(),E=S[0],O=S[1];var C=Kr((function(){return{container:Br(),renders:1}}));var k=Object.assign({ignoreAttributes:f},h,{content:C.container});if(v){if(false){}k.trigger="manual";k.hideOnClick=false}if(m){l=true}var R=k;var A=k.plugins||[];if(o){R=Object.assign({},k,{plugins:m&&a.data!=null?[].concat(A,[{fn:function e(){return{onTrigger:function e(t,r){var n=a.data.children.find((function(e){var t=e.instance;return t.reference===r.currentTarget}));t.state.$$activeSingletonInstance=n.instance;O(n.content)}}}}]):A,render:function e(){return{popper:C.container}}})}var j=[s].concat(r?[r.type]:[]);Yr((function(){var t=s;if(s&&s.hasOwnProperty("current")){t=s.current}var r=e(t||C.ref||Br(),Object.assign({},R,{plugins:[Xr].concat(k.plugins||[])}));C.instance=r;if(l){r.disable()}if(i){r.show()}if(m){a.hook({instance:r,content:n,props:R,setSingletonContent:O})}b(true);return function(){r.destroy();a==null?void 0:a.cleanup(r)}}),j);Yr((function(){var e;if(C.renders===1){C.renders++;return}var t=C.instance;t.setProps(Qr(t.props,R));(e=t.popperInstance)==null?void 0:e.forceUpdate();if(l){t.disable()}else{t.enable()}if(v){if(i){t.show()}else{t.hide()}}if(m){a.hook({instance:t,content:n,props:R,setSingletonContent:O})}}));Yr((function(){var e;if(!o){return}var t=C.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat((((e=t.props.popperOptions)==null?void 0:e.modifiers)||[]).filter((function(e){var t=e.name;return t!=="$$tippyReact"})),[{name:"$$tippyReact",enabled:true,phase:"beforeWrite",requires:["computeStyles"],fn:function e(t){var r;var n=t.state;var i=(r=n.modifiersData)==null?void 0:r.hide;if(_.placement!==n.placement||_.referenceHidden!==(i==null?void 0:i.isReferenceHidden)||_.escaped!==(i==null?void 0:i.hasPopperEscaped)){x({placement:n.placement,referenceHidden:i==null?void 0:i.isReferenceHidden,escaped:i==null?void 0:i.hasPopperEscaped})}n.attributes.popper={}}}])})})}),[_.placement,_.referenceHidden,_.escaped].concat(j));return Ur().createElement(Ur().Fragment,null,r?(0,Zr.cloneElement)(r,{ref:function e(t){C.ref=t;$r(r.ref,t)}}):null,y&&(0,qr.createPortal)(o?o(Vr(_),E,C.instance):n,C.container))}return t}function tn(e){return function t(r){var n=r===void 0?{}:r,i=n.disabled,a=i===void 0?false:i,o=n.overrides,s=o===void 0?[]:o;var u=useState(false),l=u[0],c=u[1];var f=Kr({children:[],renders:1});Yr((function(){if(!l){c(true);return}var t=f.children,r=f.sourceData;if(!r){if(false){}return}var n=e(t.map((function(e){return e.instance})),Object.assign({},r.props,{popperOptions:r.instance.props.popperOptions,overrides:s,plugins:[Xr].concat(r.props.plugins||[])}));f.instance=n;if(a){n.disable()}return function(){n.destroy();f.children=t.filter((function(e){var t=e.instance;return!t.state.isDestroyed}))}}),[l]);Yr((function(){if(!l){return}if(f.renders===1){f.renders++;return}var e=f.children,t=f.instance,r=f.sourceData;if(!(t&&r)){return}var n=r.props,i=n.content,o=zr(n,["content"]);t.setProps(Qr(t.props,Object.assign({},o,{overrides:s})));t.setInstances(e.map((function(e){return e.instance})));if(a){t.disable()}else{t.enable()}}));return useMemo((function(){var e={data:f,hook:function e(t){f.sourceData=t;f.setSingletonContent=t.setSingletonContent},cleanup:function e(){f.sourceData=null}};var t={hook:function e(t){var r,n;f.children=f.children.filter((function(e){var r=e.instance;return t.instance!==r}));f.children.push(t);if(((r=f.instance)==null?void 0:r.state.isMounted)&&((n=f.instance)==null?void 0:n.state.$$activeSingletonInstance)===t.instance){f.setSingletonContent==null?void 0:f.setSingletonContent(t.content)}if(f.instance&&!f.instance.state.isDestroyed){f.instance.setInstances(f.children.map((function(e){return e.instance})))}},cleanup:function e(t){f.children=f.children.filter((function(e){return e.instance!==t}));if(f.instance&&!f.instance.state.isDestroyed){f.instance.setInstances(f.children.map((function(e){return e.instance})))}}};return[e,t]}),[])}}var rn=function(e,t){return(0,Zr.forwardRef)((function r(n,i){var a=n.children,o=zr(n,["children"]);return Ur().createElement(e,Object.assign({},t,o),a?(0,Zr.cloneElement)(a,{ref:function e(t){$r(i,t);$r(a.ref,t)}}):null)}))};var nn=null&&tn(createSingleton);var an=rn(en(Ir),{render:function e(){return""}});const on=an},753:(e,t,r)=>{"use strict";var n=r(7363);var i=r.n(n);var a=r(745);var o=r(9339);var s=r(3389);var u=r(9592);var l=r(1585);var c=r(125);var f=r(917);var d=r(4139);var p=r(7037);var h=r(2008);var v=r(8907);var m=class extends v.F{constructor(e){super();this.#e=false;this.#t=e.defaultOptions;this.#r(e.options);this.#n=[];this.#i=e.cache;this.queryKey=e.queryKey;this.queryHash=e.queryHash;this.#a=e.state||g(this.options);this.state=this.#a;this.scheduleGc()}#a;#o;#i;#s;#u;#n;#t;#e;get meta(){return this.options.meta}#r(e){this.options={...this.#t,...e};this.updateGcTime(this.options.gcTime)}optionalRemove(){if(!this.#n.length&&this.state.fetchStatus==="idle"){this.#i.remove(this)}}setData(e,t){const r=(0,d.oE)(this.state.data,e,this.options);this.#l({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual});return r}setState(e,t){this.#l({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s;this.#u?.cancel(e);return t?t.then(d.ZT).catch(d.ZT):Promise.resolve()}destroy(){super.destroy();this.cancel({silent:true})}reset(){this.destroy();this.setState(this.#a)}isActive(){return this.#n.some((e=>e.options.enabled!==false))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.#n.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,d.Kp)(this.state.dataUpdatedAt,e)}onFocus(){const e=this.#n.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:false});this.#u?.continue()}onOnline(){const e=this.#n.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:false});this.#u?.continue()}addObserver(e){if(!this.#n.includes(e)){this.#n.push(e);this.clearGcTimeout();this.#i.notify({type:"observerAdded",query:this,observer:e})}}removeObserver(e){if(this.#n.includes(e)){this.#n=this.#n.filter((t=>t!==e));if(!this.#n.length){if(this.#u){if(this.#e){this.#u.cancel({revert:true})}else{this.#u.cancelRetry()}}this.scheduleGc()}this.#i.notify({type:"observerRemoved",query:this,observer:e})}}getObserversCount(){return this.#n.length}invalidate(){if(!this.state.isInvalidated){this.#l({type:"invalidate"})}}fetch(e,t){if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t?.cancelRefetch){this.cancel({silent:true})}else if(this.#s){this.#u?.continueRetry();return this.#s}}if(e){this.#r(e)}if(!this.options.queryFn){const e=this.#n.find((e=>e.options.queryFn));if(e){this.#r(e.options)}}if(false){}const r=new AbortController;const n={queryKey:this.queryKey,meta:this.meta};const i=e=>{Object.defineProperty(e,"signal",{enumerable:true,get:()=>{this.#e=true;return r.signal}})};i(n);const a=()=>{if(!this.options.queryFn){return Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))}this.#e=false;if(this.options.persister){return this.options.persister(this.options.queryFn,n,this)}return this.options.queryFn(n)};const o={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(o);this.options.behavior?.onFetch(o,this);this.#o=this.state;if(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta){this.#l({type:"fetch",meta:o.fetchOptions?.meta})}const s=e=>{if(!((0,h.DV)(e)&&e.silent)){this.#l({type:"error",error:e})}if(!(0,h.DV)(e)){this.#i.config.onError?.(e,this);this.#i.config.onSettled?.(this.state.data,e,this)}if(!this.isFetchingOptimistic){this.scheduleGc()}this.isFetchingOptimistic=false};this.#u=(0,h.Mz)({fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(typeof e==="undefined"){if(false){}s(new Error(`${this.queryHash} data is undefined`));return}this.setData(e);this.#i.config.onSuccess?.(e,this);this.#i.config.onSettled?.(e,this.state.error,this);if(!this.isFetchingOptimistic){this.scheduleGc()}this.isFetchingOptimistic=false},onError:s,onFail:(e,t)=>{this.#l({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode});this.#s=this.#u.promise;return this.#s}#l(e){const t=t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:(0,h.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:false,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;if((0,h.DV)(r)&&r.revert&&this.#o){return{...this.#o,fetchStatus:"idle"}}return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:true};case"setState":return{...t,...e.state}}};this.state=t(this.state);p.V.batch((()=>{this.#n.forEach((e=>{e.onQueryUpdate()}));this.#i.notify({query:this,type:"updated",action:e})}))}};function g(e){const t=typeof e.initialData==="function"?e.initialData():e.initialData;const r=typeof t!=="undefined";const n=r?typeof e.initialDataUpdatedAt==="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:false,status:r?"success":"pending",fetchStatus:"idle"}}var y=r(7506);var b=class extends y.l{constructor(e={}){super();this.config=e;this.#c=new Map}#c;build(e,t,r){const n=t.queryKey;const i=t.queryHash??(0,d.Rm)(n,t);let a=this.get(i);if(!a){a=new m({cache:this,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)});this.add(a)}return a}add(e){if(!this.#c.has(e.queryHash)){this.#c.set(e.queryHash,e);this.notify({type:"added",query:e})}}remove(e){const t=this.#c.get(e.queryHash);if(t){e.destroy();if(t===e){this.#c.delete(e.queryHash)}this.notify({type:"removed",query:e})}}clear(){p.V.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#c.get(e)}getAll(){return[...this.#c.values()]}find(e){const t={exact:true,...e};return this.getAll().find((e=>(0,d._x)(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>(0,d._x)(e,t))):t}notify(e){p.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){p.V.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){p.V.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}};var w=r(9289);var _=class extends y.l{constructor(e={}){super();this.config=e;this.#f=[];this.#d=0}#f;#d;#p;build(e,t,r){const n=new w.m({mutationCache:this,mutationId:++this.#d,options:e.defaultMutationOptions(t),state:r});this.add(n);return n}add(e){this.#f.push(e);this.notify({type:"added",mutation:e})}remove(e){this.#f=this.#f.filter((t=>t!==e));this.notify({type:"removed",mutation:e})}clear(){p.V.batch((()=>{this.#f.forEach((e=>{this.remove(e)}))}))}getAll(){return this.#f}find(e){const t={exact:true,...e};return this.#f.find((e=>(0,d.X7)(t,e)))}findAll(e={}){return this.#f.filter((t=>(0,d.X7)(e,t)))}notify(e){p.V.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){this.#p=(this.#p??Promise.resolve()).then((()=>{const e=this.#f.filter((e=>e.state.isPaused));return p.V.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(d.ZT)))),Promise.resolve())))})).then((()=>{this.#p=void 0}));return this.#p}};var x=r(6474);var S=r(4304);function E(e){return{onFetch:(t,r)=>{const n=async()=>{const r=t.options;const n=t.fetchOptions?.meta?.fetchMore?.direction;const i=t.state.data?.pages||[];const a=t.state.data?.pageParams||[];const o={pages:[],pageParams:[]};let s=false;const u=e=>{Object.defineProperty(e,"signal",{enumerable:true,get:()=>{if(t.signal.aborted){s=true}else{t.signal.addEventListener("abort",(()=>{s=true}))}return t.signal}})};const l=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`)));const c=async(e,r,n)=>{if(s){return Promise.reject()}if(r==null&&e.pages.length){return Promise.resolve(e)}const i={queryKey:t.queryKey,pageParam:r,direction:n?"backward":"forward",meta:t.options.meta};u(i);const a=await l(i);const{maxPages:o}=t.options;const c=n?d.Ht:d.VX;return{pages:c(e.pages,a,o),pageParams:c(e.pageParams,r,o)}};let f;if(n&&i.length){const e=n==="backward";const t=e?C:O;const o={pages:i,pageParams:a};const s=t(r,o);f=await c(o,s,e)}else{f=await c(o,a[0]??r.initialPageParam);const t=e??i.length;for(let e=1;et.options.persister?.(n,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}else{t.fetchFn=n}}}}function O(e,{pages:t,pageParams:r}){const n=t.length-1;return e.getNextPageParam(t[n],t,r[n],r)}function C(e,{pages:t,pageParams:r}){return e.getPreviousPageParam?.(t[0],t,r[0],r)}function k(e,t){if(!t)return false;return O(e,t)!=null}function R(e,t){if(!t||!e.getPreviousPageParam)return false;return C(e,t)!=null}var A=class{#h;#v;#t;#m;#g;#y;#b;#w;constructor(e={}){this.#h=e.queryCache||new b;this.#v=e.mutationCache||new _;this.#t=e.defaultOptions||{};this.#m=new Map;this.#g=new Map;this.#y=0}mount(){this.#y++;if(this.#y!==1)return;this.#b=x.j.subscribe((()=>{if(x.j.isFocused()){this.resumePausedMutations();this.#h.onFocus()}}));this.#w=S.N.subscribe((()=>{if(S.N.isOnline()){this.resumePausedMutations();this.#h.onOnline()}}))}unmount(){this.#y--;if(this.#y!==0)return;this.#b?.();this.#b=void 0;this.#w?.();this.#w=void 0}isFetching(e){return this.#h.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#v.findAll({...e,status:"pending"}).length}getQueryData(e){return this.#h.find({queryKey:e})?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);return t!==void 0?Promise.resolve(t):this.fetchQuery(e)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>{const r=t.data;return[e,r]}))}setQueryData(e,t,r){const n=this.#h.find({queryKey:e});const i=n?.state.data;const a=(0,d.SE)(t,i);if(typeof a==="undefined"){return void 0}const o=this.defaultQueryOptions({queryKey:e});return this.#h.build(this,o).setData(a,{...r,manual:true})}setQueriesData(e,t,r){return p.V.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){return this.#h.find({queryKey:e})?.state}removeQueries(e){const t=this.#h;p.V.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=this.#h;const n={type:"active",...e};return p.V.batch((()=>{r.findAll(e).forEach((e=>{e.reset()}));return this.refetchQueries(n,t)}))}cancelQueries(e={},t={}){const r={revert:true,...t};const n=p.V.batch((()=>this.#h.findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(d.ZT).catch(d.ZT)}invalidateQueries(e={},t={}){return p.V.batch((()=>{this.#h.findAll(e).forEach((e=>{e.invalidate()}));if(e.refetchType==="none"){return Promise.resolve()}const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:t?.cancelRefetch??true};const n=p.V.batch((()=>this.#h.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);if(!r.throwOnError){t=t.catch(d.ZT)}return e.state.fetchStatus==="paused"?Promise.resolve():t}))));return Promise.all(n).then(d.ZT)}fetchQuery(e){const t=this.defaultQueryOptions(e);if(typeof t.retry==="undefined"){t.retry=false}const r=this.#h.build(this,t);return r.isStaleByTime(t.staleTime)?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(d.ZT).catch(d.ZT)}fetchInfiniteQuery(e){e.behavior=E(e.pages);return this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(d.ZT).catch(d.ZT)}resumePausedMutations(){return this.#v.resumePausedMutations()}getQueryCache(){return this.#h}getMutationCache(){return this.#v}getDefaultOptions(){return this.#t}setDefaultOptions(e){this.#t=e}setQueryDefaults(e,t){this.#m.set((0,d.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#m.values()];let r={};t.forEach((t=>{if((0,d.to)(e,t.queryKey)){r={...r,...t.defaultOptions}}}));return r}setMutationDefaults(e,t){this.#g.set((0,d.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#g.values()];let r={};t.forEach((t=>{if((0,d.to)(e,t.mutationKey)){r={...r,...t.defaultOptions}}}));return r}defaultQueryOptions(e){if(e?._defaulted){return e}const t={...this.#t.queries,...e?.queryKey&&this.getQueryDefaults(e.queryKey),...e,_defaulted:true};if(!t.queryHash){t.queryHash=(0,d.Rm)(t.queryKey,t)}if(typeof t.refetchOnReconnect==="undefined"){t.refetchOnReconnect=t.networkMode!=="always"}if(typeof t.throwOnError==="undefined"){t.throwOnError=!!t.suspense}if(typeof t.networkMode==="undefined"&&t.persister){t.networkMode="offlineFirst"}return t}defaultMutationOptions(e){if(e?._defaulted){return e}return{...this.#t.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:true}}clear(){this.#h.clear();this.#v.clear()}};var j=r(202);var P=r(4420);
/**
* @remix-run/router v1.14.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
function T(){T=Object.assign?Object.assign.bind():function(e){for(var t=1;tc(e,typeof e==="string"?null:e.state,t===0?"default":undefined)));let a=u(r==null?i.length-1:r);let o=M.Pop;let s=null;function u(e){return Math.min(Math.max(e,0),i.length-1)}function l(){return i[a]}function c(e,t,r){if(t===void 0){t=null}let n=z(i?l().pathname:"/",e,t,r);Z(n.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(e));return n}function f(e){return typeof e==="string"?e:W(e)}let d={get index(){return a},get action(){return o},get location(){return l()},createHref:f,createURL(e){return new URL(f(e),"http://localhost")},encodeLocation(e){let t=typeof e==="string"?$(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,t){o=M.Push;let r=c(e,t);a+=1;i.splice(a,i.length,r);if(n&&s){s({action:o,location:r,delta:1})}},replace(e,t){o=M.Replace;let r=c(e,t);i[a]=r;if(n&&s){s({action:o,location:r,delta:0})}},go(e){o=M.Pop;let t=u(a+e);let r=i[t];a=t;if(s){s({action:o,location:r,delta:e})}},listen(e){s=e;return()=>{s=null}}};return d}function F(e){if(e===void 0){e={}}function t(e,t){let{pathname:r,search:n,hash:i}=e.location;return z("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}function r(e,t){return typeof t==="string"?t:W(t)}return B(t,r,null,e)}function N(e){if(e===void 0){e={}}function t(e,t){let{pathname:r="/",search:n="",hash:i=""}=$(e.location.hash.substr(1));if(!r.startsWith("/")&&!r.startsWith(".")){r="/"+r}return z("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}function r(e,t){let r=e.document.querySelector("base");let n="";if(r&&r.getAttribute("href")){let t=e.location.href;let r=t.indexOf("#");n=r===-1?t:t.slice(0,r)}return n+"#"+(typeof t==="string"?t:W(t))}function n(e,t){Z(e.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}return B(t,r,n,e)}function I(e,t){if(e===false||e===null||typeof e==="undefined"){throw new Error(t)}}function Z(e,t){if(!e){if(typeof console!=="undefined")console.warn(t);try{throw new Error(t)}catch(e){}}}function U(){return Math.random().toString(36).substr(2,8)}function q(e,t){return{usr:e.state,key:e.key,idx:t}}function z(e,t,r,n){if(r===void 0){r=null}let i=T({pathname:typeof e==="string"?e:e.pathname,search:"",hash:""},typeof t==="string"?$(t):t,{state:r,key:t&&t.key||n||U()});return i}function W(e){let{pathname:t="/",search:r="",hash:n=""}=e;if(r&&r!=="?")t+=r.charAt(0)==="?"?r:"?"+r;if(n&&n!=="#")t+=n.charAt(0)==="#"?n:"#"+n;return t}function $(e){let t={};if(e){let r=e.indexOf("#");if(r>=0){t.hash=e.substr(r);e=e.substr(0,r)}let n=e.indexOf("?");if(n>=0){t.search=e.substr(n);e=e.substr(0,n)}if(e){t.pathname=e}}return t}function B(e,t,r,n){if(n===void 0){n={}}let{window:i=document.defaultView,v5Compat:a=false}=n;let o=i.history;let s=M.Pop;let u=null;let l=c();if(l==null){l=0;o.replaceState(T({},o.state,{idx:l}),"")}function c(){let e=o.state||{idx:null};return e.idx}function f(){s=M.Pop;let e=c();let t=e==null?null:e-l;l=e;if(u){u({action:s,location:v.location,delta:t})}}function d(e,t){s=M.Push;let n=z(v.location,e,t);if(r)r(n,e);l=c()+1;let f=q(n,l);let d=v.createHref(n);try{o.pushState(f,"",d)}catch(e){if(e instanceof DOMException&&e.name==="DataCloneError"){throw e}i.location.assign(d)}if(a&&u){u({action:s,location:v.location,delta:1})}}function p(e,t){s=M.Replace;let n=z(v.location,e,t);if(r)r(n,e);l=c();let i=q(n,l);let f=v.createHref(n);o.replaceState(i,"",f);if(a&&u){u({action:s,location:v.location,delta:0})}}function h(e){let t=i.location.origin!=="null"?i.location.origin:i.location.href;let r=typeof e==="string"?e:W(e);I(t,"No window.location.(origin|href) available to create URL for href: "+r);return new URL(r,t)}let v={get action(){return s},get location(){return e(i,o)},listen(e){if(u){throw new Error("A history only accepts one active listener")}i.addEventListener(D,f);u=e;return()=>{i.removeEventListener(D,f);u=null}},createHref(e){return t(i,e)},createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:d,replace:p,go(e){return o.go(e)}};return v}var V;(function(e){e["data"]="data";e["deferred"]="deferred";e["redirect"]="redirect";e["error"]="error"})(V||(V={}));const G=new Set(["lazy","caseSensitive","path","id","index","children"]);function H(e){return e.index===true}function Q(e,t,r,n){if(r===void 0){r=[]}if(n===void 0){n={}}return e.map(((e,i)=>{let a=[...r,i];let o=typeof e.id==="string"?e.id:a.join("-");I(e.index!==true||!e.children,"Cannot specify children on an index route");I(!n[o],'Found a route id collision on id "'+o+'". Route '+"id's must be globally unique within Data Router usages");if(H(e)){let r=T({},e,t(e),{id:o});n[o]=r;return r}else{let r=T({},e,t(e),{id:o,children:undefined});n[o]=r;if(e.children){r.children=Q(e.children,t,a,n)}return r}}))}function Y(e,t,r){if(r===void 0){r="/"}let n=typeof t==="string"?$(t):t;let i=me(n.pathname||"/",r);if(i==null){return null}let a=J(e);ee(a);let o=null;for(let e=0;o==null&&e{let o={relativePath:a===undefined?e.path||"":a,caseSensitive:e.caseSensitive===true,childrenIndex:i,route:e};if(o.relativePath.startsWith("/")){I(o.relativePath.startsWith(n),'Absolute route path "'+o.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes.");o.relativePath=o.relativePath.slice(n.length)}let s=Ee([n,o.relativePath]);let u=r.concat(o);if(e.children&&e.children.length>0){I(e.index!==true,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".'));J(e.children,t,u,s)}if(e.path==null&&!e.index){return}t.push({path:s,score:ue(s,e.index),routesMeta:u})};e.forEach(((e,t)=>{var r;if(e.path===""||!((r=e.path)!=null&&r.includes("?"))){i(e,t)}else{for(let r of X(e.path)){i(e,t,r)}}}));return t}function X(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t;let i=r.endsWith("?");let a=r.replace(/\?$/,"");if(n.length===0){return i?[a,""]:[a]}let o=X(n.join("/"));let s=[];s.push(...o.map((e=>e===""?a:[a,e].join("/"))));if(i){s.push(...o)}return s.map((t=>e.startsWith("/")&&t===""?"/":t))}function ee(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:le(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}const te=/^:[\w-]+$/;const re=3;const ne=2;const ie=1;const ae=10;const oe=null&&-2;const se=e=>e==="*";function ue(e,t){let r=e.split("/");let n=r.length;if(r.some(se)){n+=oe}if(t){n+=ne}return r.filter((e=>!se(e))).reduce(((e,t)=>e+(te.test(t)?re:t===""?ie:ae)),n)}function le(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}function ce(e,t){let{routesMeta:r}=e;let n={};let i="/";let a=[];for(let e=0;ee==null?"":typeof e==="string"?e:String(e);const a=r.split(/\/+/).map(((e,r,n)=>{const a=r===n.length-1;if(a&&e==="*"){const e="*";return i(t[e])}const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];I(r==="?"||n!=null,'Missing ":'+e+'" param');return i(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e));return n+a.join("/")}function de(e,t){if(typeof e==="string"){e={path:e,caseSensitive:false,end:true}}let[r,n]=pe(e.path,e.caseSensitive,e.end);let i=t.match(r);if(!i)return null;let a=i[0];let o=a.replace(/(.)\/+$/,"$1");let s=i.slice(1);let u=n.reduce(((e,t,r)=>{let{paramName:n,isOptional:i}=t;if(n==="*"){let e=s[r]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const u=s[r];if(i&&!u){e[n]=undefined}else{e[n]=ve(u||"",n)}return e}),{});return{params:u,pathname:a,pathnameBase:o,pattern:e}}function pe(e,t,r){if(t===void 0){t=false}if(r===void 0){r=true}Z(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[];let i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>{n.push({paramName:t,isOptional:r!=null});return r?"/?([^\\/]+)?":"/([^\\/]+)"}));if(e.endsWith("*")){n.push({paramName:"*"});i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"}else if(r){i+="\\/*$"}else if(e!==""&&e!=="/"){i+="(?:(?=\\/|$))"}else;let a=new RegExp(i,t?undefined:"i");return[a,n]}function he(e){try{return decodeURI(e)}catch(t){Z(false,'The URL path "'+e+'" could not be decoded because it is is a '+"malformed URL segment. This is probably due to a bad percent "+("encoding ("+t+")."));return e}}function ve(e,t){try{return decodeURIComponent(e)}catch(r){Z(false,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+")."));return e}}function me(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase())){return null}let r=t.endsWith("/")?t.length-1:t.length;let n=e.charAt(r);if(n&&n!=="/"){return null}return e.slice(r)||"/"}function ge(e,t){if(t===void 0){t="/"}let{pathname:r,search:n="",hash:i=""}=typeof e==="string"?$(e):e;let a=r?r.startsWith("/")?r:ye(r,t):t;return{pathname:a,search:Ce(n),hash:ke(i)}}function ye(e,t){let r=t.replace(/\/+$/,"").split("/");let n=e.split("/");n.forEach((e=>{if(e===".."){if(r.length>1)r.pop()}else if(e!=="."){r.push(e)}}));return r.length>1?r.join("/"):"/"}function be(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function we(e){return e.filter(((e,t)=>t===0||e.route.path&&e.route.path.length>0))}function _e(e,t){let r=we(e);if(t){return r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase))}return r.map((e=>e.pathnameBase))}function xe(e,t,r,n){if(n===void 0){n=false}let i;if(typeof e==="string"){i=$(e)}else{i=T({},e);I(!i.pathname||!i.pathname.includes("?"),be("?","pathname","search",i));I(!i.pathname||!i.pathname.includes("#"),be("#","pathname","hash",i));I(!i.search||!i.search.includes("#"),be("#","search","hash",i))}let a=e===""||i.pathname==="";let o=a?"/":i.pathname;let s;if(o==null){s=r}else{let e=t.length-1;if(!n&&o.startsWith("..")){let t=o.split("/");while(t[0]===".."){t.shift();e-=1}i.pathname=t.join("/")}s=e>=0?t[e]:"/"}let u=ge(i,s);let l=o&&o!=="/"&&o.endsWith("/");let c=(a||o===".")&&r.endsWith("/");if(!u.pathname.endsWith("/")&&(l||c)){u.pathname+="/"}return u}function Se(e){return e===""||e.pathname===""?"/":typeof e==="string"?$(e).pathname:e.pathname}const Ee=e=>e.join("/").replace(/\/\/+/g,"/");const Oe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");const Ce=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e;const ke=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;const Re=function e(t,r){if(r===void 0){r={}}let n=typeof r==="number"?{status:r}:r;let i=new Headers(n.headers);if(!i.has("Content-Type")){i.set("Content-Type","application/json; charset=utf-8")}return new Response(JSON.stringify(t),T({},n,{headers:i}))};class Ae extends Error{}class je{constructor(e,t){this.pendingKeysSet=new Set;this.subscribers=new Set;this.deferredKeys=[];I(e&&typeof e==="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise(((e,t)=>r=t));this.controller=new AbortController;let n=()=>r(new Ae("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n);this.controller.signal.addEventListener("abort",n);this.data=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})}),{});if(this.done){this.unlistenAbortSignal()}this.init=t}trackPromise(e,t){if(!(t instanceof Promise)){return t}this.deferredKeys.push(e);this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(r,e,undefined,t)),(t=>this.onSettle(r,e,t)));r.catch((()=>{}));Object.defineProperty(r,"_tracked",{get:()=>true});return r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof Ae){this.unlistenAbortSignal();Object.defineProperty(e,"_error",{get:()=>r});return Promise.reject(r)}this.pendingKeysSet.delete(t);if(this.done){this.unlistenAbortSignal()}if(r===undefined&&n===undefined){let r=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, '+"you must resolve/reject with a value or `null`.");Object.defineProperty(e,"_error",{get:()=>r});this.emit(false,t);return Promise.reject(r)}if(n===undefined){Object.defineProperty(e,"_error",{get:()=>r});this.emit(false,t);return Promise.reject(r)}Object.defineProperty(e,"_data",{get:()=>n});this.emit(false,t);return n}emit(e,t){this.subscribers.forEach((r=>r(e,t)))}subscribe(e){this.subscribers.add(e);return()=>this.subscribers.delete(e)}cancel(){this.controller.abort();this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t)));this.emit(true)}async resolveData(e){let t=false;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r);t=await new Promise((t=>{this.subscribe((n=>{e.removeEventListener("abort",r);if(n||this.done){t(n)}}))}))}return t}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){I(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds");return Object.entries(this.data).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:Te(n)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function Pe(e){return e instanceof Promise&&e._tracked===true}function Te(e){if(!Pe(e)){return e}if(e._error){throw e._error}return e._data}const Me=function e(t,r){if(r===void 0){r={}}let n=typeof r==="number"?{status:r}:r;return new je(t,n)};const De=function e(t,r){if(r===void 0){r=302}let n=r;if(typeof n==="number"){n={status:n}}else if(typeof n.status==="undefined"){n.status=302}let i=new Headers(n.headers);i.set("Location",t);return new Response(null,T({},n,{headers:i}))};const Le=(e,t)=>{let r=De(e,t);r.headers.set("X-Remix-Reload-Document","true");return r};class Fe{constructor(e,t,r,n){if(n===void 0){n=false}this.status=e;this.statusText=t||"";this.internal=n;if(r instanceof Error){this.data=r.toString();this.error=r}else{this.data=r}}}function Ne(e){return e!=null&&typeof e.status==="number"&&typeof e.statusText==="string"&&typeof e.internal==="boolean"&&"data"in e}const Ie=["post","put","patch","delete"];const Ze=new Set(Ie);const Ue=["get",...Ie];const qe=new Set(Ue);const ze=new Set([301,302,303,307,308]);const We=new Set([307,308]);const $e={state:"idle",location:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined,json:undefined,text:undefined};const Be={state:"idle",data:undefined,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined,json:undefined,text:undefined};const Ve={state:"unblocked",proceed:undefined,reset:undefined,location:undefined};const Ge=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;const He=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)});const Qe="remix-router-transitions";function Ye(e){const t=e.window?e.window:typeof window!=="undefined"?window:undefined;const r=typeof t!=="undefined"&&typeof t.document!=="undefined"&&typeof t.document.createElement!=="undefined";const n=!r;I(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties){i=e.mapRouteProperties}else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else{i=He}let a={};let o=Q(e.routes,i,undefined,a);let s;let u=e.basename||"/";let l=T({v7_fetcherPersist:false,v7_normalizeFormMethod:false,v7_partialHydration:false,v7_prependBasename:false,v7_relativeSplatPath:false},e.future);let c=null;let f=new Set;let d=null;let p=null;let h=null;let v=e.hydrationData!=null;let m=Y(o,e.history.location,u);let g=null;if(m==null){let t=yt(404,{pathname:e.history.location.pathname});let{matches:r,route:n}=gt(o);m=r;g={[n.id]:t}}let y;let b=m.some((e=>e.route.lazy));let w=m.some((e=>e.route.loader));if(b){y=false}else if(!w){y=true}else if(l.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null;let r=e.hydrationData?e.hydrationData.errors:null;y=m.every((e=>e.route.loader&&e.route.loader.hydrate!==true&&(t&&t[e.route.id]!==undefined||r&&r[e.route.id]!==undefined)))}else{y=e.hydrationData!=null}let _;let x={historyAction:e.history.action,location:e.history.location,matches:m,initialized:y,navigation:$e,restoreScrollPosition:e.hydrationData!=null?false:null,preventScrollReset:false,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map};let S=M.Pop;let E=false;let O;let C=false;let k=new Map;let R=null;let A=false;let j=false;let P=[];let D=[];let L=new Map;let F=0;let N=-1;let U=new Map;let q=new Set;let W=new Map;let $=new Map;let B=new Set;let G=new Map;let H=new Map;let J=false;function X(){c=e.history.listen((t=>{let{action:r,location:n,delta:i}=t;if(J){J=false;return}Z(H.size===0||i!=null,"You are trying to use a blocker on a POP navigation to a location "+"that was not created by @remix-run/router. This will fail silently in "+"production. This can happen if you are navigating outside the router "+"via `window.history.pushState`/`window.location.hash` instead of using "+"router navigation APIs. This can also happen if you are using "+"createHashRouter and the user manually changes the URL.");let a=Re({currentLocation:x.location,nextLocation:n,historyAction:r});if(a&&i!=null){J=true;e.history.go(i*-1);ke(a,{state:"blocked",location:n,proceed(){ke(a,{state:"proceeding",proceed:undefined,reset:undefined,location:n});e.history.go(i)},reset(){let e=new Map(x.blockers);e.set(a,Ve);re({blockers:e})}});return}return oe(r,n)}));if(r){qt(t,k);let e=()=>zt(t,k);t.addEventListener("pagehide",e);R=()=>t.removeEventListener("pagehide",e)}if(!x.initialized){oe(M.Pop,x.location,{initialHydration:true})}return _}function ee(){if(c){c()}if(R){R()}f.clear();O&&O.abort();x.fetchers.forEach(((e,t)=>be(t)));x.blockers.forEach(((e,t)=>Ce(t)))}function te(e){f.add(e);return()=>f.delete(e)}function re(e,t){if(t===void 0){t={}}x=T({},x,e);let r=[];let n=[];if(l.v7_fetcherPersist){x.fetchers.forEach(((e,t)=>{if(e.state==="idle"){if(B.has(t)){n.push(t)}else{r.push(t)}}}))}[...f].forEach((e=>e(x,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:t.flushSync===true})));if(l.v7_fetcherPersist){r.forEach((e=>x.fetchers.delete(e)));n.forEach((e=>be(e)))}}function ne(t,r,n){var i,a;let{flushSync:u}=n===void 0?{}:n;let l=x.actionData!=null&&x.navigation.formMethod!=null&&jt(x.navigation.formMethod)&&x.navigation.state==="loading"&&((i=t.state)==null?void 0:i._isRedirect)!==true;let c;if(r.actionData){if(Object.keys(r.actionData).length>0){c=r.actionData}else{c=null}}else if(l){c=x.actionData}else{c=null}let f=r.loaderData?vt(x.loaderData,r.loaderData,r.matches||[],r.errors):x.loaderData;let d=x.blockers;if(d.size>0){d=new Map(d);d.forEach(((e,t)=>d.set(t,Ve)))}let p=E===true||x.navigation.formMethod!=null&&jt(x.navigation.formMethod)&&((a=t.state)==null?void 0:a._isRedirect)!==true;if(s){o=s;s=undefined}if(A);else if(S===M.Pop);else if(S===M.Push){e.history.push(t,t.state)}else if(S===M.Replace){e.history.replace(t,t.state)}let h;if(S===M.Pop){let e=k.get(x.location.pathname);if(e&&e.has(t.pathname)){h={currentLocation:x.location,nextLocation:t}}else if(k.has(t.pathname)){h={currentLocation:t,nextLocation:x.location}}}else if(C){let e=k.get(x.location.pathname);if(e){e.add(t.pathname)}else{e=new Set([t.pathname]);k.set(x.location.pathname,e)}h={currentLocation:x.location,nextLocation:t}}re(T({},r,{actionData:c,loaderData:f,historyAction:S,location:t,initialized:true,navigation:$e,revalidation:"idle",restoreScrollPosition:Me(t,r.matches||x.matches),preventScrollReset:p,blockers:d}),{viewTransitionOpts:h,flushSync:u===true});S=M.Pop;E=false;C=false;A=false;j=false;P=[];D=[]}async function ie(t,r){if(typeof t==="number"){e.history.go(t);return}let n=tt(x.location,x.matches,u,l.v7_prependBasename,t,l.v7_relativeSplatPath,r==null?void 0:r.fromRouteId,r==null?void 0:r.relative);let{path:i,submission:a,error:o}=rt(l.v7_normalizeFormMethod,false,n,r);let s=x.location;let c=z(x.location,i,r&&r.state);c=T({},c,e.history.encodeLocation(c));let f=r&&r.replace!=null?r.replace:undefined;let d=M.Push;if(f===true){d=M.Replace}else if(f===false);else if(a!=null&&jt(a.formMethod)&&a.formAction===x.location.pathname+x.location.search){d=M.Replace}let p=r&&"preventScrollReset"in r?r.preventScrollReset===true:undefined;let h=(r&&r.unstable_flushSync)===true;let v=Re({currentLocation:s,nextLocation:c,historyAction:d});if(v){ke(v,{state:"blocked",location:c,proceed(){ke(v,{state:"proceeding",proceed:undefined,reset:undefined,location:c});ie(t,r)},reset(){let e=new Map(x.blockers);e.set(v,Ve);re({blockers:e})}});return}return await oe(d,c,{submission:a,pendingError:o,preventScrollReset:p,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:h})}function ae(){he();re({revalidation:"loading"});if(x.navigation.state==="submitting"){return}if(x.navigation.state==="idle"){oe(x.historyAction,x.location,{startUninterruptedRevalidation:true});return}oe(S||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation})}async function oe(t,r,n){O&&O.abort();O=null;S=t;A=(n&&n.startUninterruptedRevalidation)===true;Te(x.location,x.matches);E=(n&&n.preventScrollReset)===true;C=(n&&n.enableViewTransition)===true;let i=s||o;let a=n&&n.overrideNavigation;let l=Y(i,r,u);let c=(n&&n.flushSync)===true;if(!l){let e=yt(404,{pathname:r.pathname});let{matches:t,route:n}=gt(i);Ae();ne(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:c});return}if(x.initialized&&!j&&_t(x.location,r)&&!(n&&n.submission&&jt(n.submission.formMethod))){ne(r,{matches:l},{flushSync:c});return}O=new AbortController;let f=ct(e.history,r,O.signal,n&&n.submission);let d;let p;if(n&&n.pendingError){p={[mt(l).route.id]:n.pendingError}}else if(n&&n.submission&&jt(n.submission.formMethod)){let e=await se(f,r,n.submission,l,{replace:n.replace,flushSync:c});if(e.shortCircuited){return}d=e.pendingActionData;p=e.pendingActionError;a=Ft(r,n.submission);c=false;f=new Request(f.url,{signal:f.signal})}let{shortCircuited:h,loaderData:v,errors:m}=await ue(f,r,l,a,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,n&&n.initialHydration===true,c,d,p);if(h){return}O=null;ne(r,T({matches:l},d?{actionData:d}:{},{loaderData:v,errors:m}))}async function se(e,t,r,n,o){if(o===void 0){o={}}he();let s=Nt(t,r);re({navigation:s},{flushSync:o.flushSync===true});let c;let f=Dt(n,t);if(!f.route.action&&!f.route.lazy){c={type:V.error,error:yt(405,{method:e.method,pathname:t.pathname,routeId:f.route.id})}}else{c=await lt("action",e,f,n,a,i,u,l.v7_relativeSplatPath);if(e.signal.aborted){return{shortCircuited:true}}}if(Et(c)){let e;if(o&&o.replace!=null){e=o.replace}else{e=c.location===x.location.pathname+x.location.search}await de(x,c,{submission:r,replace:e});return{shortCircuited:true}}if(St(c)){let e=mt(n,f.route.id);if((o&&o.replace)!==true){S=M.Push}return{pendingActionData:{},pendingActionError:{[e.route.id]:c.error}}}if(xt(c)){throw yt(400,{type:"defer-action"})}return{pendingActionData:{[f.route.id]:c.data}}}async function ue(t,r,n,i,a,c,f,d,p,h,v){let m=i||Ft(r,a);let g=a||c||Lt(m);let y=s||o;let[b,w]=it(e.history,x,n,g,r,l.v7_partialHydration&&d===true,j,P,D,B,W,q,y,u,h,v);Ae((e=>!(n&&n.some((t=>t.route.id===e)))||b&&b.some((t=>t.route.id===e))));N=++F;if(b.length===0&&w.length===0){let e=Se();ne(r,T({matches:n,loaderData:{},errors:v||null},h?{actionData:h}:{},e?{fetchers:new Map(x.fetchers)}:{}),{flushSync:p});return{shortCircuited:true}}if(!A&&(!l.v7_partialHydration||!d)){w.forEach((e=>{let t=x.fetchers.get(e.key);let r=It(undefined,t?t.data:undefined);x.fetchers.set(e.key,r)}));let e=h||x.actionData;re(T({navigation:m},e?Object.keys(e).length===0?{actionData:null}:{actionData:e}:{},w.length>0?{fetchers:new Map(x.fetchers)}:{}),{flushSync:p})}w.forEach((e=>{if(L.has(e.key)){_e(e.key)}if(e.controller){L.set(e.key,e.controller)}}));let _=()=>w.forEach((e=>_e(e.key)));if(O){O.signal.addEventListener("abort",_)}let{results:S,loaderResults:E,fetcherResults:C}=await pe(x.matches,n,b,w,t);if(t.signal.aborted){return{shortCircuited:true}}if(O){O.signal.removeEventListener("abort",_)}w.forEach((e=>L.delete(e.key)));let k=bt(S);if(k){if(k.idx>=b.length){let e=w[k.idx-b.length].key;q.add(e)}await de(x,k.result,{replace:f});return{shortCircuited:true}}let{loaderData:R,errors:M}=ht(x,n,b,E,v,w,C,G);G.forEach(((e,t)=>{e.subscribe((r=>{if(r||e.done){G.delete(t)}}))}));let I=Se();let Z=Ee(N);let U=I||Z||w.length>0;return T({loaderData:R,errors:M},U?{fetchers:new Map(x.fetchers)}:{})}function le(e,t,r,i){if(n){throw new Error("router.fetch() was called during the server render, but it shouldn't be. "+"You are likely calling a useFetcher() method in the body of your component. "+"Try moving it to a useEffect or a callback.")}if(L.has(e))_e(e);let a=(i&&i.unstable_flushSync)===true;let c=s||o;let f=tt(x.location,x.matches,u,l.v7_prependBasename,r,l.v7_relativeSplatPath,t,i==null?void 0:i.relative);let d=Y(c,f,u);if(!d){ge(e,t,yt(404,{pathname:f}),{flushSync:a});return}let{path:p,submission:h,error:v}=rt(l.v7_normalizeFormMethod,true,f,i);if(v){ge(e,t,v,{flushSync:a});return}let m=Dt(d,p);E=(i&&i.preventScrollReset)===true;if(h&&jt(h.formMethod)){ce(e,t,p,m,d,a,h);return}W.set(e,{routeId:t,path:p});fe(e,t,p,m,d,a,h)}async function ce(t,r,n,c,f,d,p){he();W.delete(t);if(!c.route.action&&!c.route.lazy){let e=yt(405,{method:p.formMethod,pathname:n,routeId:r});ge(t,r,e,{flushSync:d});return}let h=x.fetchers.get(t);ve(t,Zt(p,h),{flushSync:d});let v=new AbortController;let m=ct(e.history,n,v.signal,p);L.set(t,v);let g=F;let y=await lt("action",m,c,f,a,i,u,l.v7_relativeSplatPath);if(m.signal.aborted){if(L.get(t)===v){L.delete(t)}return}if(l.v7_fetcherPersist&&B.has(t)){if(Et(y)||St(y)){ve(t,Ut(undefined));return}}else{if(Et(y)){L.delete(t);if(N>g){ve(t,Ut(undefined));return}else{q.add(t);ve(t,It(p));return de(x,y,{fetcherSubmission:p})}}if(St(y)){ge(t,r,y.error);return}}if(xt(y)){throw yt(400,{type:"defer-action"})}let b=x.navigation.location||x.location;let w=ct(e.history,b,v.signal);let _=s||o;let E=x.navigation.state!=="idle"?Y(_,x.navigation.location,u):x.matches;I(E,"Didn't find any matches after fetcher action");let C=++F;U.set(t,C);let k=It(p,y.data);x.fetchers.set(t,k);let[R,A]=it(e.history,x,E,p,b,false,j,P,D,B,W,q,_,u,{[c.route.id]:y.data},undefined);A.filter((e=>e.key!==t)).forEach((e=>{let t=e.key;let r=x.fetchers.get(t);let n=It(undefined,r?r.data:undefined);x.fetchers.set(t,n);if(L.has(t)){_e(t)}if(e.controller){L.set(t,e.controller)}}));re({fetchers:new Map(x.fetchers)});let T=()=>A.forEach((e=>_e(e.key)));v.signal.addEventListener("abort",T);let{results:M,loaderResults:Z,fetcherResults:z}=await pe(x.matches,E,R,A,w);if(v.signal.aborted){return}v.signal.removeEventListener("abort",T);U.delete(t);L.delete(t);A.forEach((e=>L.delete(e.key)));let $=bt(M);if($){if($.idx>=R.length){let e=A[$.idx-R.length].key;q.add(e)}return de(x,$.result)}let{loaderData:V,errors:H}=ht(x,x.matches,R,Z,undefined,A,z,G);if(x.fetchers.has(t)){let e=Ut(y.data);x.fetchers.set(t,e)}Ee(C);if(x.navigation.state==="loading"&&C>N){I(S,"Expected pending action");O&&O.abort();ne(x.navigation.location,{matches:E,loaderData:V,errors:H,fetchers:new Map(x.fetchers)})}else{re({errors:H,loaderData:vt(x.loaderData,V,E,H),fetchers:new Map(x.fetchers)});j=false}}async function fe(t,r,n,o,s,c,f){let d=x.fetchers.get(t);ve(t,It(f,d?d.data:undefined),{flushSync:c});let p=new AbortController;let h=ct(e.history,n,p.signal);L.set(t,p);let v=F;let m=await lt("loader",h,o,s,a,i,u,l.v7_relativeSplatPath);if(xt(m)){m=await Tt(m,h.signal,true)||m}if(L.get(t)===p){L.delete(t)}if(h.signal.aborted){return}if(B.has(t)){ve(t,Ut(undefined));return}if(Et(m)){if(N>v){ve(t,Ut(undefined));return}else{q.add(t);await de(x,m);return}}if(St(m)){ge(t,r,m.error);return}I(!xt(m),"Unhandled fetcher deferred data");ve(t,Ut(m.data))}async function de(n,i,a){let{submission:o,fetcherSubmission:s,replace:l}=a===void 0?{}:a;if(i.revalidate){j=true}let c=z(n.location,i.location,{_isRedirect:true});I(c,"Expected a location on the redirect navigation");if(r){let r=false;if(i.reloadDocument){r=true}else if(Ge.test(i.location)){const n=e.history.createURL(i.location);r=n.origin!==t.location.origin||me(n.pathname,u)==null}if(r){if(l){t.location.replace(i.location)}else{t.location.assign(i.location)}return}}O=null;let f=l===true?M.Replace:M.Push;let{formMethod:d,formAction:p,formEncType:h}=n.navigation;if(!o&&!s&&d&&p&&h){o=Lt(n.navigation)}let v=o||s;if(We.has(i.status)&&v&&jt(v.formMethod)){await oe(f,c,{submission:T({},v,{formAction:i.location}),preventScrollReset:E})}else{let e=Ft(c,o);await oe(f,c,{overrideNavigation:e,fetcherSubmission:s,preventScrollReset:E})}}async function pe(t,r,n,o,s){let c=await Promise.all([...n.map((e=>lt("loader",s,e,r,a,i,u,l.v7_relativeSplatPath))),...o.map((t=>{if(t.matches&&t.match&&t.controller){return lt("loader",ct(e.history,t.path,t.controller.signal),t.match,t.matches,a,i,u,l.v7_relativeSplatPath)}else{let e={type:V.error,error:yt(404,{pathname:t.path})};return e}}))]);let f=c.slice(0,n.length);let d=c.slice(n.length);await Promise.all([Pt(t,n,f,f.map((()=>s.signal)),false,x.loaderData),Pt(t,o.map((e=>e.match)),d,o.map((e=>e.controller?e.controller.signal:null)),true)]);return{results:c,loaderResults:f,fetcherResults:d}}function he(){j=true;P.push(...Ae());W.forEach(((e,t)=>{if(L.has(t)){D.push(t);_e(t)}}))}function ve(e,t,r){if(r===void 0){r={}}x.fetchers.set(e,t);re({fetchers:new Map(x.fetchers)},{flushSync:(r&&r.flushSync)===true})}function ge(e,t,r,n){if(n===void 0){n={}}let i=mt(x.matches,t);be(e);re({errors:{[i.route.id]:r},fetchers:new Map(x.fetchers)},{flushSync:(n&&n.flushSync)===true})}function ye(e){if(l.v7_fetcherPersist){$.set(e,($.get(e)||0)+1);if(B.has(e)){B.delete(e)}}return x.fetchers.get(e)||Be}function be(e){let t=x.fetchers.get(e);if(L.has(e)&&!(t&&t.state==="loading"&&U.has(e))){_e(e)}W.delete(e);U.delete(e);q.delete(e);B.delete(e);x.fetchers.delete(e)}function we(e){if(l.v7_fetcherPersist){let t=($.get(e)||0)-1;if(t<=0){$.delete(e);B.add(e)}else{$.set(e,t)}}else{be(e)}re({fetchers:new Map(x.fetchers)})}function _e(e){let t=L.get(e);I(t,"Expected fetch controller: "+e);t.abort();L.delete(e)}function xe(e){for(let t of e){let e=ye(t);let r=Ut(e.data);x.fetchers.set(t,r)}}function Se(){let e=[];let t=false;for(let r of q){let n=x.fetchers.get(r);I(n,"Expected fetcher: "+r);if(n.state==="loading"){q.delete(r);e.push(r);t=true}}xe(e);return t}function Ee(e){let t=[];for(let[r,n]of U){if(n0}function Oe(e,t){let r=x.blockers.get(e)||Ve;if(H.get(e)!==t){H.set(e,t)}return r}function Ce(e){x.blockers.delete(e);H.delete(e)}function ke(e,t){let r=x.blockers.get(e)||Ve;I(r.state==="unblocked"&&t.state==="blocked"||r.state==="blocked"&&t.state==="blocked"||r.state==="blocked"&&t.state==="proceeding"||r.state==="blocked"&&t.state==="unblocked"||r.state==="proceeding"&&t.state==="unblocked","Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(x.blockers);n.set(e,t);re({blockers:n})}function Re(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(H.size===0){return}if(H.size>1){Z(false,"A router only supports one blocker at a time")}let i=Array.from(H.entries());let[a,o]=i[i.length-1];let s=x.blockers.get(a);if(s&&s.state==="proceeding"){return}if(o({currentLocation:t,nextLocation:r,historyAction:n})){return a}}function Ae(e){let t=[];G.forEach(((r,n)=>{if(!e||e(n)){r.cancel();t.push(n);G.delete(n)}}));return t}function je(e,t,r){d=e;h=t;p=r||null;if(!v&&x.navigation===$e){v=true;let e=Me(x.location,x.matches);if(e!=null){re({restoreScrollPosition:e})}}return()=>{d=null;h=null;p=null}}function Pe(e,t){if(p){let r=p(e,t.map((e=>K(e,x.loaderData))));return r||e.key}return e.key}function Te(e,t){if(d&&h){let r=Pe(e,t);d[r]=h()}}function Me(e,t){if(d){let r=Pe(e,t);let n=d[r];if(typeof n==="number"){return n}}return null}function De(e){a={};s=Q(e,i,undefined,a)}_={get basename(){return u},get future(){return l},get state(){return x},get routes(){return o},get window(){return t},initialize:X,subscribe:te,enableScrollRestoration:je,navigate:ie,fetch:le,revalidate:ae,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ye,deleteFetcher:we,dispose:ee,getBlocker:Oe,deleteBlocker:Ce,_internalFetchControllers:L,_internalActiveDeferreds:G,_internalSetRoutes:De};return _}const Ke=Symbol("deferred");function Je(e,t){I(e.length>0,"You must provide a non-empty routes array to createStaticHandler");let r={};let n=(t?t.basename:null)||"/";let i;if(t!=null&&t.mapRouteProperties){i=t.mapRouteProperties}else if(t!=null&&t.detectErrorBoundary){let e=t.detectErrorBoundary;i=t=>({hasErrorBoundary:e(t)})}else{i=He}let a=T({v7_relativeSplatPath:false},t?t.future:null);let o=Q(e,i,undefined,r);async function s(e,t){let{requestContext:r}=t===void 0?{}:t;let i=new URL(e.url);let a=e.method;let s=z("",W(i),null,"default");let u=Y(o,s,n);if(!At(a)&&a!=="HEAD"){let e=yt(405,{method:a});let{matches:t,route:r}=gt(o);return{basename:n,location:s,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}else if(!u){let e=yt(404,{pathname:s.pathname});let{matches:t,route:r}=gt(o);return{basename:n,location:s,matches:t,loaderData:{},actionData:null,errors:{[r.id]:e},statusCode:e.status,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}let c=await l(e,s,u,r);if(Ct(c)){return c}return T({location:s,basename:n},c)}async function u(e,t){let{routeId:r,requestContext:i}=t===void 0?{}:t;let a=new URL(e.url);let s=e.method;let u=z("",W(a),null,"default");let c=Y(o,u,n);if(!At(s)&&s!=="HEAD"&&s!=="OPTIONS"){throw yt(405,{method:s})}else if(!c){throw yt(404,{pathname:u.pathname})}let f=r?c.find((e=>e.route.id===r)):Dt(c,u);if(r&&!f){throw yt(403,{pathname:u.pathname,routeId:r})}else if(!f){throw yt(404,{pathname:u.pathname})}let d=await l(e,u,c,i,f);if(Ct(d)){return d}let p=d.errors?Object.values(d.errors)[0]:undefined;if(p!==undefined){throw p}if(d.actionData){return Object.values(d.actionData)[0]}if(d.loaderData){var h;let e=Object.values(d.loaderData)[0];if((h=d.activeDeferreds)!=null&&h[f.route.id]){e[Ke]=d.activeDeferreds[f.route.id]}return e}return undefined}async function l(e,t,r,n,i){I(e.signal,"query()/queryRoute() requests must contain an AbortController signal");try{if(jt(e.method.toLowerCase())){let a=await c(e,r,i||Dt(r,t),n,i!=null);return a}let a=await f(e,r,n,i);return Ct(a)?a:T({},a,{actionData:null,actionHeaders:{}})}catch(e){if(Rt(e)){if(e.type===V.error){throw e.response}return e.response}if(kt(e)){return e}throw e}}async function c(e,t,o,s,u){let l;if(!o.route.action&&!o.route.lazy){let t=yt(405,{method:e.method,pathname:new URL(e.url).pathname,routeId:o.route.id});if(u){throw t}l={type:V.error,error:t}}else{l=await lt("action",e,o,t,r,i,n,a.v7_relativeSplatPath,{isStaticRequest:true,isRouteRequest:u,requestContext:s});if(e.signal.aborted){let t=u?"queryRoute":"query";throw new Error(t+"() call aborted: "+e.method+" "+e.url)}}if(Et(l)){throw new Response(null,{status:l.status,headers:{Location:l.location}})}if(xt(l)){let e=yt(400,{type:"defer-action"});if(u){throw e}l={type:V.error,error:e}}if(u){if(St(l)){throw l.error}return{matches:[o],loaderData:{},actionData:{[o.route.id]:l.data},errors:null,statusCode:200,loaderHeaders:{},actionHeaders:{},activeDeferreds:null}}if(St(l)){let r=mt(t,o.route.id);let n=await f(e,t,s,undefined,{[r.route.id]:l.error});return T({},n,{statusCode:Ne(l.error)?l.error.status:500,actionData:null,actionHeaders:T({},l.headers?{[o.route.id]:l.headers}:{})})}let c=new Request(e.url,{headers:e.headers,redirect:e.redirect,signal:e.signal});let d=await f(c,t,s);return T({},d,l.statusCode?{statusCode:l.statusCode}:{},{actionData:{[o.route.id]:l.data},actionHeaders:T({},l.headers?{[o.route.id]:l.headers}:{})})}async function f(e,t,o,s,u){let l=s!=null;if(l&&!(s!=null&&s.route.loader)&&!(s!=null&&s.route.lazy)){throw yt(400,{method:e.method,pathname:new URL(e.url).pathname,routeId:s==null?void 0:s.route.id})}let c=s?[s]:nt(t,Object.keys(u||{})[0]);let f=c.filter((e=>e.route.loader||e.route.lazy));if(f.length===0){return{matches:t,loaderData:t.reduce(((e,t)=>Object.assign(e,{[t.route.id]:null})),{}),errors:u||null,statusCode:200,loaderHeaders:{},activeDeferreds:null}}let d=await Promise.all([...f.map((s=>lt("loader",e,s,t,r,i,n,a.v7_relativeSplatPath,{isStaticRequest:true,isRouteRequest:l,requestContext:o})))]);if(e.signal.aborted){let t=l?"queryRoute":"query";throw new Error(t+"() call aborted: "+e.method+" "+e.url)}let p=new Map;let h=pt(t,f,d,u,p);let v=new Set(f.map((e=>e.route.id)));t.forEach((e=>{if(!v.has(e.route.id)){h.loaderData[e.route.id]=null}}));return T({},h,{matches:t,activeDeferreds:p.size>0?Object.fromEntries(p.entries()):null})}return{dataRoutes:o,query:s,queryRoute:u}}function Xe(e,t,r){let n=T({},t,{statusCode:500,errors:{[t._deepestRenderedBoundaryId||e[0].id]:r}});return n}function et(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==undefined)}function tt(e,t,r,n,i,a,o,s){let u;let l;if(o){u=[];for(let e of t){u.push(e);if(e.route.id===o){l=e;break}}}else{u=t;l=t[t.length-1]}let c=xe(i?i:".",_e(u,a),me(e.pathname,r)||e.pathname,s==="path");if(i==null){c.search=e.search;c.hash=e.hash}if((i==null||i===""||i===".")&&l&&l.route.index&&!Mt(c.search)){c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"}if(n&&r!=="/"){c.pathname=c.pathname==="/"?r:Ee([r,c.pathname])}return W(c)}function rt(e,t,r,n){if(!n||!et(n)){return{path:r}}if(n.formMethod&&!At(n.formMethod)){return{path:r,error:yt(405,{method:n.formMethod})}}let i=()=>({path:r,error:yt(400,{type:"invalid-body"})});let a=n.formMethod||"get";let o=e?a.toUpperCase():a.toLowerCase();let s=wt(r);if(n.body!==undefined){if(n.formEncType==="text/plain"){if(!jt(o)){return i()}let e=typeof n.body==="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:undefined,json:undefined,text:e}}}else if(n.formEncType==="application/json"){if(!jt(o)){return i()}try{let e=typeof n.body==="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:s,formEncType:n.formEncType,formData:undefined,json:e,text:undefined}}}catch(e){return i()}}}I(typeof FormData==="function","FormData is not available in this environment");let u;let l;if(n.formData){u=ft(n.formData);l=n.formData}else if(n.body instanceof FormData){u=ft(n.body);l=n.body}else if(n.body instanceof URLSearchParams){u=n.body;l=dt(u)}else if(n.body==null){u=new URLSearchParams;l=new FormData}else{try{u=new URLSearchParams(n.body);l=dt(u)}catch(e){return i()}}let c={formMethod:o,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:l,json:undefined,text:undefined};if(jt(c.formMethod)){return{path:r,submission:c}}let f=$(r);if(t&&f.search&&Mt(f.search)){u.append("index","")}f.search="?"+u;return{path:W(f),submission:c}}function nt(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));if(n>=0){r=e.slice(0,n)}}return r}function it(e,t,r,n,i,a,o,s,u,l,c,f,d,p,h,v){let m=v?Object.values(v)[0]:h?Object.values(h)[0]:undefined;let g=e.createURL(t.location);let y=e.createURL(i);let b=v?Object.keys(v)[0]:undefined;let w=nt(r,b);let _=w.filter(((e,r)=>{let{route:i}=e;if(i.lazy){return true}if(i.loader==null){return false}if(a){if(i.loader.hydrate){return true}return t.loaderData[i.id]===undefined&&(!t.errors||t.errors[i.id]===undefined)}if(at(t.loaderData,t.matches[r],e)||s.some((t=>t===e.route.id))){return true}let u=t.matches[r];let l=e;return st(e,T({currentUrl:g,currentParams:u.params,nextUrl:y,nextParams:l.params},n,{actionResult:m,defaultShouldRevalidate:o||g.pathname+g.search===y.pathname+y.search||g.search!==y.search||ot(u,l)}))}));let x=[];c.forEach(((e,i)=>{if(a||!r.some((t=>t.route.id===e.routeId))||l.has(i)){return}let s=Y(d,e.path,p);if(!s){x.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let c=t.fetchers.get(i);let h=Dt(s,e.path);let v=false;if(f.has(i)){v=false}else if(u.includes(i)){v=true}else if(c&&c.state!=="idle"&&c.data===undefined){v=o}else{v=st(h,T({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:r[r.length-1].params},n,{actionResult:m,defaultShouldRevalidate:o}))}if(v){x.push({key:i,routeId:e.routeId,path:e.path,matches:s,match:h,controller:new AbortController})}}));return[_,x]}function at(e,t,r){let n=!t||r.route.id!==t.route.id;let i=e[r.route.id]===undefined;return n||i}function ot(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function st(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r==="boolean"){return r}}return t.defaultShouldRevalidate}async function ut(e,t,r){if(!e.lazy){return}let n=await e.lazy();if(!e.lazy){return}let i=r[e.id];I(i,"No route found in manifest");let a={};for(let e in n){let t=i[e];let r=t!==undefined&&e!=="hasErrorBoundary";Z(!r,'Route "'+i.id+'" has a static property "'+e+'" '+"defined but its lazy function is also returning a value for this property. "+('The lazy route property "'+e+'" will be ignored.'));if(!r&&!G.has(e)){a[e]=n[e]}}Object.assign(i,a);Object.assign(i,T({},t(i),{lazy:undefined}))}async function lt(e,t,r,n,i,a,o,s,u){if(u===void 0){u={}}let l;let c;let f;let d=e=>{let n;let i=new Promise(((e,t)=>n=t));f=()=>n();t.signal.addEventListener("abort",f);return Promise.race([e({request:t,params:r.params,context:u.requestContext}),i])};try{let n=r.route[e];if(r.route.lazy){if(n){let e;let t=await Promise.all([d(n).catch((t=>{e=t})),ut(r.route,a,i)]);if(e){throw e}c=t[0]}else{await ut(r.route,a,i);n=r.route[e];if(n){c=await d(n)}else if(e==="action"){let e=new URL(t.url);let n=e.pathname+e.search;throw yt(405,{method:t.method,pathname:n,routeId:r.route.id})}else{return{type:V.data,data:undefined}}}}else if(!n){let e=new URL(t.url);let r=e.pathname+e.search;throw yt(404,{pathname:r})}else{c=await d(n)}I(c!==undefined,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(e){l=V.error;c=e}finally{if(f){t.signal.removeEventListener("abort",f)}}if(Ct(c)){let e=c.status;if(ze.has(e)){let i=c.headers.get("Location");I(i,"Redirects returned/thrown from loaders/actions must have a Location header");if(!Ge.test(i)){i=tt(new URL(t.url),n.slice(0,n.indexOf(r)+1),o,true,i,s)}else if(!u.isStaticRequest){let e=new URL(t.url);let r=i.startsWith("//")?new URL(e.protocol+i):new URL(i);let n=me(r.pathname,o)!=null;if(r.origin===e.origin&&n){i=r.pathname+r.search+r.hash}}if(u.isStaticRequest){c.headers.set("Location",i);throw c}return{type:V.redirect,status:e,location:i,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(u.isRouteRequest){let e={type:l===V.error?V.error:V.data,response:c};throw e}let i;try{let e=c.headers.get("Content-Type");if(e&&/\bapplication\/json\b/.test(e)){if(c.body==null){i=null}else{i=await c.json()}}else{i=await c.text()}}catch(e){return{type:V.error,error:e}}if(l===V.error){return{type:l,error:new Fe(e,c.statusText,i),headers:c.headers}}return{type:V.data,data:i,statusCode:c.status,headers:c.headers}}if(l===V.error){return{type:l,error:c}}if(Ot(c)){var p,h;return{type:V.deferred,deferredData:c,statusCode:(p=c.init)==null?void 0:p.status,headers:((h=c.init)==null?void 0:h.headers)&&new Headers(c.init.headers)}}return{type:V.data,data:c}}function ct(e,t,r,n){let i=e.createURL(wt(t)).toString();let a={signal:r};if(n&&jt(n.formMethod)){let{formMethod:e,formEncType:t}=n;a.method=e.toUpperCase();if(t==="application/json"){a.headers=new Headers({"Content-Type":t});a.body=JSON.stringify(n.json)}else if(t==="text/plain"){a.body=n.text}else if(t==="application/x-www-form-urlencoded"&&n.formData){a.body=ft(n.formData)}else{a.body=n.formData}}return new Request(i,a)}function ft(e){let t=new URLSearchParams;for(let[r,n]of e.entries()){t.append(r,typeof n==="string"?n:n.name)}return t}function dt(e){let t=new FormData;for(let[r,n]of e.entries()){t.append(r,n)}return t}function pt(e,t,r,n,i){let a={};let o=null;let s;let u=false;let l={};r.forEach(((r,c)=>{let f=t[c].route.id;I(!Et(r),"Cannot handle redirect results in processLoaderData");if(St(r)){let t=mt(e,f);let i=r.error;if(n){i=Object.values(n)[0];n=undefined}o=o||{};if(o[t.route.id]==null){o[t.route.id]=i}a[f]=undefined;if(!u){u=true;s=Ne(r.error)?r.error.status:500}if(r.headers){l[f]=r.headers}}else{if(xt(r)){i.set(f,r.deferredData);a[f]=r.deferredData.data}else{a[f]=r.data}if(r.statusCode!=null&&r.statusCode!==200&&!u){s=r.statusCode}if(r.headers){l[f]=r.headers}}}));if(n){o=n;a[Object.keys(n)[0]]=undefined}return{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function ht(e,t,r,n,i,a,o,s){let{loaderData:u,errors:l}=pt(t,r,n,i,s);for(let t=0;te.route.id===t))+1):[...e];return r.reverse().find((e=>e.route.hasErrorBoundary===true))||e[0]}function gt(e){let t=e.length===1?e[0]:e.find((e=>e.index||!e.path||e.path==="/"))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function yt(e,t){let{pathname:r,routeId:n,method:i,type:a}=t===void 0?{}:t;let o="Unknown Server Error";let s="Unknown @remix-run/router error";if(e===400){o="Bad Request";if(i&&r&&n){s="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request."}else if(a==="defer-action"){s="defer() is not supported in actions"}else if(a==="invalid-body"){s="Unable to encode submission body"}}else if(e===403){o="Forbidden";s='Route "'+n+'" does not match URL "'+r+'"'}else if(e===404){o="Not Found";s='No route matches URL "'+r+'"'}else if(e===405){o="Method Not Allowed";if(i&&r&&n){s="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request."}else if(i){s='Invalid request method "'+i.toUpperCase()+'"'}}return new Fe(e||500,o,new Error(s),true)}function bt(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Et(r)){return{result:r,idx:t}}}}function wt(e){let t=typeof e==="string"?$(e):e;return W(T({},t,{hash:""}))}function _t(e,t){if(e.pathname!==t.pathname||e.search!==t.search){return false}if(e.hash===""){return t.hash!==""}else if(e.hash===t.hash){return true}else if(t.hash!==""){return true}return false}function xt(e){return e.type===V.deferred}function St(e){return e.type===V.error}function Et(e){return(e&&e.type)===V.redirect}function Ot(e){let t=e;return t&&typeof t==="object"&&typeof t.data==="object"&&typeof t.subscribe==="function"&&typeof t.cancel==="function"&&typeof t.resolveData==="function"}function Ct(e){return e!=null&&typeof e.status==="number"&&typeof e.statusText==="string"&&typeof e.headers==="object"&&typeof e.body!=="undefined"}function kt(e){if(!Ct(e)){return false}let t=e.status;let r=e.headers.get("Location");return t>=300&&t<=399&&r!=null}function Rt(e){return e&&Ct(e.response)&&(e.type===V.data||e.type===V.error)}function At(e){return qe.has(e.toLowerCase())}function jt(e){return Ze.has(e.toLowerCase())}async function Pt(e,t,r,n,i,a){for(let o=0;oe.route.id===u.route.id));let c=l!=null&&!ot(l,u)&&(a&&a[u.route.id])!==undefined;if(xt(s)&&(i||c)){let e=n[o];I(e,"Expected an AbortSignal for revalidating fetcher deferred result");await Tt(s,e,i).then((e=>{if(e){r[o]=e||r[o]}}))}}}async function Tt(e,t,r){if(r===void 0){r=false}let n=await e.deferredData.resolveData(t);if(n){return}if(r){try{return{type:V.data,data:e.deferredData.unwrappedData}}catch(e){return{type:V.error,error:e}}}return{type:V.data,data:e.deferredData.data}}function Mt(e){return new URLSearchParams(e).getAll("index").some((e=>e===""))}function Dt(e,t){let r=typeof t==="string"?$(t).search:t.search;if(e[e.length-1].route.index&&Mt(r||"")){return e[e.length-1]}let n=we(e);return n[n.length-1]}function Lt(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:a,json:o}=e;if(!t||!r||!n){return}if(i!=null){return{formMethod:t,formAction:r,formEncType:n,formData:undefined,json:undefined,text:i}}else if(a!=null){return{formMethod:t,formAction:r,formEncType:n,formData:a,json:undefined,text:undefined}}else if(o!==undefined){return{formMethod:t,formAction:r,formEncType:n,formData:undefined,json:o,text:undefined}}}function Ft(e,t){if(t){let r={state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}else{let t={state:"loading",location:e,formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined,json:undefined,text:undefined};return t}}function Nt(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}function It(e,t){if(e){let r={state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t};return r}else{let e={state:"loading",formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined,json:undefined,text:undefined,data:t};return e}}function Zt(e,t){let r={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:undefined};return r}function Ut(e){let t={state:"idle",formMethod:undefined,formAction:undefined,formEncType:undefined,formData:undefined,json:undefined,text:undefined,data:e};return t}function qt(e,t){try{let r=e.sessionStorage.getItem(Qe);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{})){if(n&&Array.isArray(n)){t.set(r,new Set(n||[]))}}}}catch(e){}}function zt(e,t){if(t.size>0){let r={};for(let[e,n]of t){r[e]=[...n]}try{e.sessionStorage.setItem(Qe,JSON.stringify(r))}catch(e){Z(false,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}
/**
* React Router v6.21.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
function Wt(){Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;tmatchPath(e,t)),[t,e])}const rr=null&&"You should call navigate() in a React.useEffect(), not when "+"your component is first rendered.";function nr(e){let t=n.useContext(Gt).static;if(!t){n.useLayoutEffect(e)}}function ir(){let{isDataRoute:e}=n.useContext(Qt);return e?Nr():ar()}function ar(){!Jt()?false?0:I(false):void 0;let e=n.useContext($t);let{basename:t,future:r,navigator:i}=n.useContext(Gt);let{matches:a}=n.useContext(Qt);let{pathname:o}=Xt();let s=JSON.stringify(_e(a,r.v7_relativeSplatPath));let u=n.useRef(false);nr((()=>{u.current=true}));let l=n.useCallback((function(r,n){if(n===void 0){n={}}false?0:void 0;if(!u.current)return;if(typeof r==="number"){i.go(r);return}let a=xe(r,JSON.parse(s),o,n.relative==="path");if(e==null&&t!=="/"){a.pathname=a.pathname==="/"?t:Ee([t,a.pathname])}(!!n.replace?i.replace:i.push)(a,n.state,n)}),[t,i,s,o,e]);return l}const or=null&&React.createContext(null);function sr(){return React.useContext(or)}function ur(e){let t=React.useContext(Qt).outlet;if(t){return React.createElement(or.Provider,{value:e},t)}return t}function lr(){let{matches:e}=React.useContext(Qt);let t=e[e.length-1];return t?t.params:{}}function cr(e,t){let{relative:r}=t===void 0?{}:t;let{future:n}=React.useContext(Gt);let{matches:i}=React.useContext(Qt);let{pathname:a}=Xt();let o=JSON.stringify(UNSAFE_getResolveToMatches(i,n.v7_relativeSplatPath));return React.useMemo((()=>resolveTo(e,JSON.parse(o),a,r==="path")),[e,o,a,r])}function fr(e,t){return dr(e,t)}function dr(e,t,r,n){!Jt()?false?0:UNSAFE_invariant(false):void 0;let{navigator:i}=React.useContext(Gt);let{matches:a}=React.useContext(Qt);let o=a[a.length-1];let s=o?o.params:{};let u=o?o.pathname:"/";let l=o?o.pathnameBase:"/";let c=o&&o.route;if(false){}let f=Xt();let d;if(t){var p;let e=typeof t==="string"?parsePath(t):t;!(l==="/"||((p=e.pathname)==null?void 0:p.startsWith(l)))?false?0:UNSAFE_invariant(false):void 0;d=e}else{d=f}let h=d.pathname||"/";let v=l==="/"?h:h.slice(l.length)||"/";let m=matchRoutes(e,{pathname:v});if(false){}let g=gr(m&&m.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:joinPaths([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase==="/"?l:joinPaths([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,r,n);if(t&&g){return React.createElement(Ht.Provider,{value:{location:Wt({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Action.Pop}},g)}return g}function pr(){let e=Tr();let t=isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e);let r=e instanceof Error?e.stack:null;let n="rgba(200,200,200, 0.5)";let i={padding:"0.5rem",backgroundColor:n};let a={padding:"2px 4px",backgroundColor:n};let o=null;if(false){}return React.createElement(React.Fragment,null,React.createElement("h2",null,"Unexpected Application Error!"),React.createElement("h3",{style:{fontStyle:"italic"}},t),r?React.createElement("pre",{style:i},r):null,o)}const hr=null&&React.createElement(pr,null);class vr extends n.Component{constructor(e){super(e);this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){if(t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"){return{error:e.error,location:e.location,revalidation:e.revalidation}}return{error:e.error!==undefined?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==undefined?n.createElement(Qt.Provider,{value:this.props.routeContext},n.createElement(Yt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mr(e){let{routeContext:t,match:r,children:n}=e;let i=React.useContext($t);if(i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)){i.staticContext._deepestRenderedBoundaryId=r.route.id}return React.createElement(Qt.Provider,{value:t},n)}function gr(e,t,r,n){var i;if(t===void 0){t=[]}if(r===void 0){r=null}if(n===void 0){n=null}if(e==null){var a;if((a=r)!=null&&a.errors){e=r.matches}else{return null}}let o=e;let s=(i=r)==null?void 0:i.errors;if(s!=null){let e=o.findIndex((e=>e.route.id&&(s==null?void 0:s[e.route.id])));!(e>=0)?false?0:UNSAFE_invariant(false):void 0;o=o.slice(0,Math.min(o.length,e+1))}let u=false;let l=-1;if(r&&n&&n.v7_partialHydration){for(let e=0;e=0){o=o.slice(0,l+1)}else{o=[o[0]]}break}}}}return o.reduceRight(((e,n,i)=>{let a;let c=false;let f=null;let d=null;if(r){a=s&&n.route.id?s[n.route.id]:undefined;f=n.route.errorElement||hr;if(u){if(l<0&&i===0){Zr("route-fallback",false,"No `HydrateFallback` element provided to render during initial hydration");c=true;d=null}else if(l===i){c=true;d=n.route.hydrateFallbackElement||null}}}let p=t.concat(o.slice(0,i+1));let h=()=>{let t;if(a){t=f}else if(c){t=d}else if(n.route.Component){t=React.createElement(n.route.Component,null)}else if(n.route.element){t=n.route.element}else{t=e}return React.createElement(mr,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||i===0)?React.createElement(vr,{location:r.location,revalidation:r.revalidation,component:f,error:a,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:true}}):h()}),null)}var yr=function(e){e["UseBlocker"]="useBlocker";e["UseRevalidator"]="useRevalidator";e["UseNavigateStable"]="useNavigate";return e}(yr||{});var br=function(e){e["UseBlocker"]="useBlocker";e["UseLoaderData"]="useLoaderData";e["UseActionData"]="useActionData";e["UseRouteError"]="useRouteError";e["UseNavigation"]="useNavigation";e["UseRouteLoaderData"]="useRouteLoaderData";e["UseMatches"]="useMatches";e["UseRevalidator"]="useRevalidator";e["UseNavigateStable"]="useNavigate";e["UseRouteId"]="useRouteId";return e}(br||{});function wr(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function _r(e){let t=n.useContext($t);!t?false?0:I(false):void 0;return t}function xr(e){let t=React.useContext(Bt);!t?false?0:UNSAFE_invariant(false):void 0;return t}function Sr(e){let t=n.useContext(Qt);!t?false?0:I(false):void 0;return t}function Er(e){let t=Sr(e);let r=t.matches[t.matches.length-1];!r.route.id?false?0:I(false):void 0;return r.route.id}function Or(){return Er(br.UseRouteId)}function Cr(){let e=xr(br.UseNavigation);return e.navigation}function kr(){let e=_r(yr.UseRevalidator);let t=xr(br.UseRevalidator);return React.useMemo((()=>({revalidate:e.router.revalidate,state:t.revalidation})),[e.router.revalidate,t.revalidation])}function Rr(){let{matches:e,loaderData:t}=xr(br.UseMatches);return React.useMemo((()=>e.map((e=>UNSAFE_convertRouteMatchToUiMatch(e,t)))),[e,t])}function Ar(){let e=xr(br.UseLoaderData);let t=Er(br.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return undefined}return e.loaderData[t]}function jr(e){let t=xr(br.UseRouteLoaderData);return t.loaderData[e]}function Pr(){let e=xr(br.UseActionData);let t=Er(br.UseLoaderData);return e.actionData?e.actionData[t]:undefined}function Tr(){var e;let t=React.useContext(Yt);let r=xr(br.UseRouteError);let n=Er(br.UseRouteError);if(t!==undefined){return t}return(e=r.errors)==null?void 0:e[n]}function Mr(){let e=React.useContext(Vt);return e==null?void 0:e._data}function Dr(){let e=React.useContext(Vt);return e==null?void 0:e._error}let Lr=0;function Fr(e){let{router:t,basename:r}=_r(yr.UseBlocker);let n=xr(br.UseBlocker);let[i,a]=React.useState("");let o=React.useCallback((t=>{if(typeof e!=="function"){return!!e}if(r==="/"){return e(t)}let{currentLocation:n,nextLocation:i,historyAction:a}=t;return e({currentLocation:Wt({},n,{pathname:stripBasename(n.pathname,r)||n.pathname}),nextLocation:Wt({},i,{pathname:stripBasename(i.pathname,r)||i.pathname}),historyAction:a})}),[r,e]);React.useEffect((()=>{let e=String(++Lr);a(e);return()=>t.deleteBlocker(e)}),[t]);React.useEffect((()=>{if(i!==""){t.getBlocker(i,o)}}),[t,i,o]);return i&&n.blockers.has(i)?n.blockers.get(i):IDLE_BLOCKER}function Nr(){let{router:e}=_r(yr.UseNavigateStable);let t=Er(br.UseNavigateStable);let r=n.useRef(false);nr((()=>{r.current=true}));let i=n.useCallback((function(n,i){if(i===void 0){i={}}false?0:void 0;if(!r.current)return;if(typeof n==="number"){e.navigate(n)}else{e.navigate(n,Wt({fromRouteId:t},i))}}),[e,t]);return i}const Ir={};function Zr(e,t,r){if(!t&&!Ir[e]){Ir[e]=true;false?0:void 0}}const Ur="startTransition";const qr=n[Ur];function zr(e){let{fallbackElement:t,router:r,future:n}=e;let[i,a]=React.useState(r.state);let{v7_startTransition:o}=n||{};let s=React.useCallback((e=>{if(o&&qr){qr((()=>a(e)))}else{a(e)}}),[a,o]);React.useLayoutEffect((()=>r.subscribe(s)),[r,s]);React.useEffect((()=>{false?0:void 0}),[]);let u=React.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:n==null?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:true,state:t,preventScrollReset:n==null?void 0:n.preventScrollReset})})),[r]);let l=r.basename||"/";let c=React.useMemo((()=>({router:r,navigator:u,static:false,basename:l})),[r,u,l]);return React.createElement(React.Fragment,null,React.createElement($t.Provider,{value:c},React.createElement(Bt.Provider,{value:i},React.createElement(Hr,{basename:l,location:i.location,navigationType:i.historyAction,navigator:u,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?React.createElement(Wr,{routes:r.routes,future:r.future,state:i}):t))),null)}function Wr(e){let{routes:t,future:r,state:n}=e;return dr(t,undefined,n,r)}function $r(e){let{basename:t,children:r,initialEntries:n,initialIndex:i,future:a}=e;let o=React.useRef();if(o.current==null){o.current=createMemoryHistory({initialEntries:n,initialIndex:i,v5Compat:true})}let s=o.current;let[u,l]=React.useState({action:s.action,location:s.location});let{v7_startTransition:c}=a||{};let f=React.useCallback((e=>{c&&qr?qr((()=>l(e))):l(e)}),[l,c]);React.useLayoutEffect((()=>s.listen(f)),[s,f]);return React.createElement(Hr,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:s,future:a})}function Br(e){let{to:t,replace:r,state:n,relative:i}=e;!Jt()?false?0:UNSAFE_invariant(false):void 0;let{future:a,static:o}=React.useContext(Gt);false?0:void 0;let{matches:s}=React.useContext(Qt);let{pathname:u}=Xt();let l=ir();let c=resolveTo(t,UNSAFE_getResolveToMatches(s,a.v7_relativeSplatPath),u,i==="path");let f=JSON.stringify(c);React.useEffect((()=>l(JSON.parse(f),{replace:r,state:n,relative:i})),[l,f,i,r,n]);return null}function Vr(e){return ur(e.context)}function Gr(e){false?0:UNSAFE_invariant(false)}function Hr(e){let{basename:t="/",children:r=null,location:i,navigationType:a=M.Pop,navigator:o,static:s=false,future:u}=e;!!Jt()?false?0:I(false):void 0;let l=t.replace(/^\/*/,"/");let c=n.useMemo((()=>({basename:l,navigator:o,static:s,future:Wt({v7_relativeSplatPath:false},u)})),[l,u,o,s]);if(typeof i==="string"){i=$(i)}let{pathname:f="/",search:d="",hash:p="",state:h=null,key:v="default"}=i;let m=n.useMemo((()=>{let e=me(f,l);if(e==null){return null}return{location:{pathname:e,search:d,hash:p,state:h,key:v},navigationType:a}}),[l,f,d,p,h,v,a]);false?0:void 0;if(m==null){return null}return n.createElement(Gt.Provider,{value:c},n.createElement(Ht.Provider,{children:r,value:m}))}function Qr(e){let{children:t,location:r}=e;return fr(tn(t),r)}function Yr(e){let{children:t,errorElement:r,resolve:n}=e;return React.createElement(Xr,{resolve:n,errorElement:r},React.createElement(en,null,t))}var Kr=function(e){e[e["pending"]=0]="pending";e[e["success"]=1]="success";e[e["error"]=2]="error";return e}(Kr||{});const Jr=new Promise((()=>{}));class Xr extends n.Component{constructor(e){super(e);this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(" caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props;let i=null;let a=Kr.pending;if(!(r instanceof Promise)){a=Kr.success;i=Promise.resolve();Object.defineProperty(i,"_tracked",{get:()=>true});Object.defineProperty(i,"_data",{get:()=>r})}else if(this.state.error){a=Kr.error;let e=this.state.error;i=Promise.reject().catch((()=>{}));Object.defineProperty(i,"_tracked",{get:()=>true});Object.defineProperty(i,"_error",{get:()=>e})}else if(r._tracked){i=r;a=i._error!==undefined?Kr.error:i._data!==undefined?Kr.success:Kr.pending}else{a=Kr.pending;Object.defineProperty(r,"_tracked",{get:()=>true});i=r.then((e=>Object.defineProperty(r,"_data",{get:()=>e})),(e=>Object.defineProperty(r,"_error",{get:()=>e})))}if(a===Kr.error&&i._error instanceof Ae){throw Jr}if(a===Kr.error&&!t){throw i._error}if(a===Kr.error){return n.createElement(Vt.Provider,{value:i,children:t})}if(a===Kr.success){return n.createElement(Vt.Provider,{value:i,children:e})}throw i}}function en(e){let{children:t}=e;let r=Mr();let n=typeof t==="function"?t(r):t;return React.createElement(React.Fragment,null,n)}function tn(e,t){if(t===void 0){t=[]}let r=[];React.Children.forEach(e,((e,n)=>{if(!React.isValidElement(e)){return}let i=[...t,n];if(e.type===React.Fragment){r.push.apply(r,tn(e.props.children,i));return}!(e.type===Gr)?false?0:UNSAFE_invariant(false):void 0;!(!e.props.index||!e.props.children)?false?0:UNSAFE_invariant(false):void 0;let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};if(e.props.children){a.children=tn(e.props.children,i)}r.push(a)}));return r}function rn(e){return gr(e)}function nn(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};if(e.Component){if(false){}Object.assign(t,{element:React.createElement(e.Component),Component:undefined})}if(e.HydrateFallback){if(false){}Object.assign(t,{hydrateFallbackElement:React.createElement(e.HydrateFallback),HydrateFallback:undefined})}if(e.ErrorBoundary){if(false){}Object.assign(t,{errorElement:React.createElement(e.ErrorBoundary),ErrorBoundary:undefined})}return t}function an(e,t){return createRouter({basename:t==null?void 0:t.basename,future:Wt({},t==null?void 0:t.future,{v7_prependBasename:true}),history:createMemoryHistory({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:nn}).initialize()}const on=({children:e})=>{var t;const{navigator:r}=(0,n.useContext)(Gt);const i=ir();const a=(t=(0,n.useContext)($t))==null?void 0:t.router;const o=Xt();const s={replace(e){i(e.search||"?",{replace:true,state:e.state})},push(e){i(e.search||"?",{replace:false,state:e.state})},get location(){var e,t,n;return(n=(t=(e=a==null?void 0:a.state)==null?void 0:e.location)!=null?t:r==null?void 0:r.location)!=null?n:o}};return e(s)};var sn=r(7707);var un=r(1537);var ln=r(6413);var cn=r(6907);var fn=r(74);var dn=r(6595);var pn=r(1162);var hn=r(8777);var vn=r(8305);var mn=r(4900);var gn=r(5056);var yn=r(2377);var bn=r(8003);var wn=r(6074);var _n=r(5033);var xn=r(5460);var Sn=r(4727);var En=r(4805);var On=r(1060);var Cn=r(7307);var kn=r(3603);var Rn=r(5219);var An=class extends y.l{constructor(e,t){super();this.options=t;this.#_=e;this.#x=null;this.bindMethods();this.setOptions(t)}#_;#S=void 0;#E=void 0;#O=void 0;#C;#k;#x;#R;#A;#j;#P;#T;#M;#D=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){if(this.listeners.size===1){this.#S.addObserver(this);if(Pn(this.#S,this.options)){this.#L()}else{this.updateResult()}this.#F()}}onUnsubscribe(){if(!this.hasListeners()){this.destroy()}}shouldFetchOnReconnect(){return Tn(this.#S,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Tn(this.#S,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set;this.#N();this.#I();this.#S.removeObserver(this)}setOptions(e,t){const r=this.options;const n=this.#S;this.options=this.#_.defaultQueryOptions(e);if(!(0,d.VS)(r,this.options)){this.#_.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#S,observer:this})}if(typeof this.options.enabled!=="undefined"&&typeof this.options.enabled!=="boolean"){throw new Error("Expected enabled to be a boolean")}if(!this.options.queryKey){this.options.queryKey=r.queryKey}this.#Z();const i=this.hasListeners();if(i&&Mn(this.#S,n,this.options,r)){this.#L()}this.updateResult(t);if(i&&(this.#S!==n||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)){this.#U()}const a=this.#q();if(i&&(this.#S!==n||this.options.enabled!==r.enabled||a!==this.#M)){this.#z(a)}}getOptimisticResult(e){const t=this.#_.getQueryCache().build(this.#_,e);const r=this.createResult(t,e);if(Ln(this,r)){this.#O=r;this.#k=this.options;this.#C=this.#S.state}return r}getCurrentResult(){return this.#O}trackResult(e){const t={};Object.keys(e).forEach((r=>{Object.defineProperty(t,r,{configurable:false,enumerable:true,get:()=>{this.#D.add(r);return e[r]}})}));return t}getCurrentQuery(){return this.#S}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#_.defaultQueryOptions(e);const r=this.#_.getQueryCache().build(this.#_,t);r.isFetchingOptimistic=true;return r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return this.#L({...e,cancelRefetch:e.cancelRefetch??true}).then((()=>{this.updateResult();return this.#O}))}#L(e){this.#Z();let t=this.#S.fetch(this.options,e);if(!e?.throwOnError){t=t.catch(d.ZT)}return t}#U(){this.#N();if(d.sk||this.#O.isStale||!(0,d.PN)(this.options.staleTime)){return}const e=(0,d.Kp)(this.#O.dataUpdatedAt,this.options.staleTime);const t=e+1;this.#P=setTimeout((()=>{if(!this.#O.isStale){this.updateResult()}}),t)}#q(){return(typeof this.options.refetchInterval==="function"?this.options.refetchInterval(this.#S):this.options.refetchInterval)??false}#z(e){this.#I();this.#M=e;if(d.sk||this.options.enabled===false||!(0,d.PN)(this.#M)||this.#M===0){return}this.#T=setInterval((()=>{if(this.options.refetchIntervalInBackground||x.j.isFocused()){this.#L()}}),this.#M)}#F(){this.#U();this.#z(this.#q())}#N(){if(this.#P){clearTimeout(this.#P);this.#P=void 0}}#I(){if(this.#T){clearInterval(this.#T);this.#T=void 0}}createResult(e,t){const r=this.#S;const n=this.options;const i=this.#O;const a=this.#C;const o=this.#k;const s=e!==r;const u=s?e.state:this.#E;const{state:l}=e;let{error:c,errorUpdatedAt:f,fetchStatus:p,status:v}=l;let m=false;let g;if(t._optimisticResults){const i=this.hasListeners();const a=!i&&Pn(e,t);const o=i&&Mn(e,r,t,n);if(a||o){p=(0,h.Kw)(e.options.networkMode)?"fetching":"paused";if(!l.dataUpdatedAt){v="pending"}}if(t._optimisticResults==="isRestoring"){p="idle"}}if(t.select&&typeof l.data!=="undefined"){if(i&&l.data===a?.data&&t.select===this.#R){g=this.#A}else{try{this.#R=t.select;g=t.select(l.data);g=(0,d.oE)(i?.data,g,t);this.#A=g;this.#x=null}catch(e){this.#x=e}}}else{g=l.data}if(typeof t.placeholderData!=="undefined"&&typeof g==="undefined"&&v==="pending"){let e;if(i?.isPlaceholderData&&t.placeholderData===o?.placeholderData){e=i.data}else{e=typeof t.placeholderData==="function"?t.placeholderData(this.#j?.state.data,this.#j):t.placeholderData;if(t.select&&typeof e!=="undefined"){try{e=t.select(e);this.#x=null}catch(e){this.#x=e}}}if(typeof e!=="undefined"){v="success";g=(0,d.oE)(i?.data,e,t);m=true}}if(this.#x){c=this.#x;g=this.#A;f=Date.now();v="error"}const y=p==="fetching";const b=v==="pending";const w=v==="error";const _=b&&y;const x={status:v,fetchStatus:p,isPending:b,isSuccess:v==="success",isError:w,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:l.dataUpdatedAt,error:c,errorUpdatedAt:f,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:l.dataUpdateCount>0||l.errorUpdateCount>0,isFetchedAfterMount:l.dataUpdateCount>u.dataUpdateCount||l.errorUpdateCount>u.errorUpdateCount,isFetching:y,isRefetching:y&&!b,isLoadingError:w&&l.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:m,isRefetchError:w&&l.dataUpdatedAt!==0,isStale:Dn(e,t),refetch:this.refetch};return x}updateResult(e){const t=this.#O;const r=this.createResult(this.#S,this.options);this.#C=this.#S.state;this.#k=this.options;if(this.#C.data!==void 0){this.#j=this.#S}if((0,d.VS)(r,t)){return}this.#O=r;const n={};const i=()=>{if(!t){return true}const{notifyOnChangeProps:e}=this.options;const r=typeof e==="function"?e():e;if(r==="all"||!r&&!this.#D.size){return true}const n=new Set(r??this.#D);if(this.options.throwOnError){n.add("error")}return Object.keys(this.#O).some((e=>{const r=e;const i=this.#O[r]!==t[r];return i&&n.has(r)}))};if(e?.listeners!==false&&i()){n.listeners=true}this.#W({...n,...e})}#Z(){const e=this.#_.getQueryCache().build(this.#_,this.options);if(e===this.#S){return}const t=this.#S;this.#S=e;this.#E=e.state;if(this.hasListeners()){t?.removeObserver(this);e.addObserver(this)}}onQueryUpdate(){this.updateResult();if(this.hasListeners()){this.#F()}}#W(e){p.V.batch((()=>{if(e.listeners){this.listeners.forEach((e=>{e(this.#O)}))}this.#_.getQueryCache().notify({query:this.#S,type:"observerResultsUpdated"})}))}};function jn(e,t){return t.enabled!==false&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===false)}function Pn(e,t){return jn(e,t)||e.state.dataUpdatedAt>0&&Tn(e,t,t.refetchOnMount)}function Tn(e,t,r){if(t.enabled!==false){const n=typeof r==="function"?r(e):r;return n==="always"||n!==false&&Dn(e,t)}return false}function Mn(e,t,r,n){return r.enabled!==false&&(e!==t||n.enabled===false)&&(!r.suspense||e.state.status!=="error")&&Dn(e,r)}function Dn(e,t){return e.isStaleByTime(t.staleTime)}function Ln(e,t){if(!(0,d.VS)(e.getCurrentResult(),t)){return true}return false}"use client";function Fn(){let e=false;return{clearReset:()=>{e=false},reset:()=>{e=true},isReset:()=>e}}var Nn=n.createContext(Fn());var In=()=>n.useContext(Nn);var Zn=({children:e})=>{const[t]=React.useState((()=>Fn()));return React.createElement(Nn.Provider,{value:t},typeof e==="function"?e(t):e)};"use client";var Un=n.createContext(false);var qn=()=>n.useContext(Un);var zn=Un.Provider;var Wn=r(6290);"use client";var $n=(e,t)=>{if(e.suspense||e.throwOnError){if(!t.isReset()){e.retryOnMount=false}}};var Bn=e=>{n.useEffect((()=>{e.clearReset()}),[e])};var Vn=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(0,Wn.L)(r,[e.error,n]);var Gn=(e,t)=>typeof t.state.data==="undefined";var Hn=e=>{if(e.suspense){if(typeof e.staleTime!=="number"){e.staleTime=1e3}}};var Qn=(e,t)=>e.isLoading&&e.isFetching&&!t;var Yn=(e,t)=>e?.suspense&&t.isPending;var Kn=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));"use client";function Jn(e,t,r){if(false){}const i=(0,j.NL)(r);const a=qn();const o=In();const s=i.defaultQueryOptions(e);s._optimisticResults=a?"isRestoring":"optimistic";Hn(s);$n(s,o);Bn(o);const[u]=n.useState((()=>new t(i,s)));const l=u.getOptimisticResult(s);n.useSyncExternalStore(n.useCallback((e=>{const t=a?()=>void 0:u.subscribe(p.V.batchCalls(e));u.updateResult();return t}),[u,a]),(()=>u.getCurrentResult()),(()=>u.getCurrentResult()));n.useEffect((()=>{u.setOptions(s,{listeners:false})}),[s,u]);if(Yn(s,l)){throw Kn(s,u,o)}if(Vn({result:l,errorResetBoundary:o,throwOnError:s.throwOnError,query:i.getQueryCache().get(s.queryHash)})){throw l.error}return!s.notifyOnChangeProps?u.trackResult(l):l}"use client";function Xn(e,t){return Jn(e,An,t)}var ei=r(6205);function ti(e){"@babel/helpers - typeof";return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti(e)}function ri(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ni(e){for(var t=1;t0&&{search:a}))}),[r,a]);return(0,f.tZ)(wi.Qr,{control:i.control,name:"search",render:function e(t){return(0,f.tZ)(pn.Z,xi({},t,{content:(0,f.tZ)(dn.Z,{name:"search",width:24,height:24}),placeholder:(0,bn.__)("Search...","tutor"),showVerticalBar:false}))}})};const Ai=Ri;var ji=r(7363);function Pi(e){return Li(e)||Di(e)||Mi(e)||Ti()}function Ti(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Mi(e,t){if(!e)return;if(typeof e==="string")return Fi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fi(e,t)}function Di(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Li(e){if(Array.isArray(e))return Fi(e)}function Fi(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r0&&arguments[0]!==undefined?arguments[0]:false;a.setValue("categories",t?(e=h.data)===null||e===void 0?void 0:e.results:[])}function m(){var e;return o.length===((e=h.data)===null||e===void 0?void 0:e.results.length)&&(o===null||o===void 0?void 0:o.every((function(e){var t,r;return(t=h.data)===null||t===void 0?void 0:(r=t.results)===null||r===void 0?void 0:r.map((function(e){return e.id})).includes(e.id)})))}var g=[{Header:(n=h.data)!==null&&n!==void 0&&n.results.length?(0,f.tZ)(wn.Z,{onChange:v,checked:m(),label:(0,bn.__)("Category","tutor")}):(0,bn.__)("Category","tutor"),Cell:function e(t){return(0,f.tZ)("div",{css:Ui.checkboxWrapper},(0,f.tZ)(wn.Z,{onChange:function e(){var r=o.filter((function(e){return e.id!==t.id}));var n=(r===null||r===void 0?void 0:r.length)===o.length;if(n){a.setValue("categories",[].concat(Pi(r),[t]))}else{a.setValue("categories",r)}},checked:o.map((function(e){return e.id})).includes(t.id)}),(0,f.tZ)("img",{src:t.image||yi,css:Ui.thumbnail,alt:(0,bn.__)("course item","tutor")}),(0,f.tZ)("div",{css:Ui.courseItem},(0,f.tZ)("div",null,t.title),(0,f.tZ)("p",null,"".concat(t.total_courses," ").concat((0,bn.__)("Courses","tutor")))))},width:720}];if(h.isLoading){return(0,f.tZ)(_n.g4,null)}if(!h.data){return(0,f.tZ)("div",{css:Ui.errorMessage},(0,bn.__)("Something went wrong","tutor"))}return(0,f.tZ)(ji.Fragment,null,(0,f.tZ)("div",{css:Ui.tableActions},(0,f.tZ)(Ai,{onFilterItems:p})),(0,f.tZ)("div",{css:Ui.tableWrapper},(0,f.tZ)(On.Z,{columns:g,data:(i=h.data.results)!==null&&i!==void 0?i:[],itemsPerPage:c,loading:h.isFetching||h.isRefetching})),(0,f.tZ)("div",{css:Ui.paginatorWrapper},(0,f.tZ)(En.Z,{currentPage:u.page,onPageChange:l,totalItems:h.data.total_items,itemsPerPage:c})))};const Zi=Ii;var Ui={tableActions:(0,f.iv)("padding:",un.W0[20],";"+(true?"":0),true?"":0),tableWrapper:true?{name:"1uijx3y",styles:"max-height:calc(100vh - 350px);overflow:auto"}:0,paginatorWrapper:(0,f.iv)("margin:",un.W0[20]," ",un.W0[16],";"+(true?"":0),true?"":0),checkboxWrapper:(0,f.iv)("display:flex;align-items:center;gap:",un.W0[12],";"+(true?"":0),true?"":0),courseItem:(0,f.iv)(xn.c.caption(),";margin-left:",un.W0[4],";"+(true?"":0),true?"":0),thumbnail:(0,f.iv)("width:48px;height:48px;border-radius:",un.E0[4],";"+(true?"":0),true?"":0),errorMessage:true?{name:"1tw8cl2",styles:"height:100px;display:flex;align-items:center;justify-content:center"}:0};var qi=r(7363);function zi(e){return Vi(e)||Bi(e)||$i(e)||Wi()}function Wi(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $i(e,t){if(!e)return;if(typeof e==="string")return Gi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gi(e,t)}function Bi(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vi(e){if(Array.isArray(e))return Gi(e)}function Gi(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r0&&arguments[0]!==undefined?arguments[0]:false;a.setValue(i,t?(e=h.data)===null||e===void 0?void 0:e.results:[])}function m(){var e;return o.length===((e=h.data)===null||e===void 0?void 0:e.results.length)&&(o===null||o===void 0?void 0:o.every((function(e){var t,r;return(t=h.data)===null||t===void 0?void 0:(r=t.results)===null||r===void 0?void 0:r.map((function(e){return e.id})).includes(e.id)})))}var g=[{Header:(r=h.data)!==null&&r!==void 0&&r.results.length?(0,f.tZ)(wn.Z,{onChange:v,checked:m(),label:i==="courses"?(0,bn.__)("Courses","tutor"):(0,bn.__)("Bundles","tutor"),labelCss:Ki.checkboxLabel}):"#",Cell:function e(t){return(0,f.tZ)("div",{css:Ki.checkboxWrapper},(0,f.tZ)(wn.Z,{onChange:function e(){var r=o.filter((function(e){return e.id!==t.id}));var n=(r===null||r===void 0?void 0:r.length)===o.length;if(n){a.setValue(i,[].concat(zi(r),[t]))}else{a.setValue(i,r)}},checked:o.map((function(e){return e.id})).includes(t.id)}),(0,f.tZ)("img",{src:t.image||yi,css:Ki.thumbnail,alt:(0,bn.__)("course item","tutor")}),(0,f.tZ)("div",{css:Ki.courseItem},(0,f.tZ)("div",null,t.title),(0,f.tZ)("p",null,t.author)))}},{Header:(0,bn.__)("Price","tutor"),Cell:function e(t){return(0,f.tZ)("div",{css:Ki.price},t.plan_start_price?(0,f.tZ)("span",{css:Ki.startingFrom},(0,bn.sprintf)((0,bn.__)("Starting from %s","tutor"),t.plan_start_price)):(0,f.tZ)(qi.Fragment,null,(0,f.tZ)("span",null,t.sale_price?t.sale_price:t.regular_price),t.sale_price&&(0,f.tZ)("span",{css:Ki.discountPrice},t.regular_price)))}}];if(h.isLoading){return(0,f.tZ)(_n.g4,null)}if(!h.data){return(0,f.tZ)("div",{css:Ki.errorMessage},(0,bn.__)("Something went wrong","tutor"))}return(0,f.tZ)(qi.Fragment,null,(0,f.tZ)("div",{css:Ki.tableActions},(0,f.tZ)(Ai,{onFilterItems:p})),(0,f.tZ)("div",{css:Ki.tableWrapper},(0,f.tZ)(On.Z,{columns:g,data:(n=h.data.results)!==null&&n!==void 0?n:[],itemsPerPage:c,loading:h.isFetching||h.isRefetching})),(0,f.tZ)("div",{css:Ki.paginatorWrapper},(0,f.tZ)(En.Z,{currentPage:u.page,onPageChange:l,totalItems:h.data.total_items,itemsPerPage:c})))};const Yi=Qi;var Ki={tableActions:(0,f.iv)("padding:",un.W0[20],";"+(true?"":0),true?"":0),tableWrapper:true?{name:"1uijx3y",styles:"max-height:calc(100vh - 350px);overflow:auto"}:0,paginatorWrapper:(0,f.iv)("margin:",un.W0[20]," ",un.W0[16],";"+(true?"":0),true?"":0),checkboxWrapper:(0,f.iv)("display:flex;align-items:center;gap:",un.W0[12],";"+(true?"":0),true?"":0),courseItem:(0,f.iv)(xn.c.caption(),";margin-left:",un.W0[4],";"+(true?"":0),true?"":0),thumbnail:(0,f.iv)("width:48px;height:48px;border-radius:",un.E0[4],";"+(true?"":0),true?"":0),checkboxLabel:(0,f.iv)(xn.c.body(),";color:",un.Jv.text.primary,";"+(true?"":0),true?"":0),price:(0,f.iv)("display:flex;gap:",un.W0[4],";justify-content:end;"+(true?"":0),true?"":0),discountPrice:(0,f.iv)("text-decoration:line-through;color:",un.Jv.text.subdued,";"+(true?"":0),true?"":0),errorMessage:true?{name:"1tw8cl2",styles:"height:100px;display:flex;align-items:center;justify-content:center"}:0,startingFrom:(0,f.iv)("color:",un.Jv.text.hints,";"+(true?"":0),true?"":0)};function Ji(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}function Xi(e){var t=e.title,r=e.closeModal,n=e.actions,i=e.form,a=e.type;var o=(0,yn.O)({defaultValues:i.getValues()});function s(){i.setValue(a,o.getValues(a));r({action:"CONFIRM"})}return(0,f.tZ)(gn.Z,{onClose:function e(){return r({action:"CLOSE"})},title:t,actions:n},(0,f.tZ)("div",{css:ta.modalWrapper},(0,f.tZ)(mn.Z,{when:a==="categories",fallback:(0,f.tZ)(Yi,{form:o,type:a==="bundles"?"bundles":"courses"})},(0,f.tZ)(Zi,{form:o})),(0,f.tZ)("div",{css:ta.footer},(0,f.tZ)(fn.Z,{size:"small",variant:"text",onClick:function e(){return r({action:"CLOSE"})}},(0,bn.__)("Cancel","tutor")),(0,f.tZ)(fn.Z,{type:"submit",size:"small",variant:"primary",onClick:s},(0,bn.__)("Apply","tutor")))))}const ea=Xi;var ta={modalWrapper:true?{name:"ei8q76",styles:"width:720px"}:0,footer:(0,f.iv)("box-shadow:0px 1px 0px 0px #e4e5e7 inset;height:56px;display:flex;align-items:center;justify-content:end;gap:",un.W0[16],";padding-inline:",un.W0[16],";"+(true?"":0),true?"":0)};var ra=r(7034);var na=r(9169);var ia=r(7363);function aa(){aa=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)t=e.length;for(var r=0,n=new Array(t);r0&&(0,f.tZ)("div",{css:wa.selectedWrapper},d===null||d===void 0?void 0:d.map((function(e){return(0,f.tZ)(ba,{key:e.id,image:e.image,title:e.title,subTitle:(0,f.tZ)("div",{css:wa.price},e.plan_start_price?(0,f.tZ)("span",{css:wa.startingFrom},(0,bn.sprintf)((0,bn.__)("Starting from %s","tutor"),e.plan_start_price)):(0,f.tZ)(ia.Fragment,null,(0,f.tZ)("span",null,e.sale_price?e.sale_price:e.regular_price),e.sale_price&&(0,f.tZ)("span",{css:wa.discountPrice},e.regular_price))),handleDeleteClick:function t(){return v("courses",e.id)}})}))),s==="specific_bundles"&&p.length>0&&(0,f.tZ)("div",{css:wa.selectedWrapper},p===null||p===void 0?void 0:p.map((function(e){return(0,f.tZ)(ba,{key:e.id,image:e.image,title:e.title,subTitle:(0,f.tZ)("div",{css:wa.price},(0,f.tZ)("span",null,e.sale_price?e.sale_price:e.regular_price),e.sale_price&&(0,f.tZ)("span",{css:wa.discountPrice},e.regular_price)),handleDeleteClick:function t(){return v("bundles",e.id)}})}))),s==="specific_category"&&h.length>0&&(0,f.tZ)("div",{css:wa.selectedWrapper},h===null||h===void 0?void 0:h.map((function(e){return(0,f.tZ)(ba,{key:e.id,image:e.image,title:e.title,subTitle:"".concat(e.total_courses," ").concat((0,bn.__)("Courses","tutor")),handleDeleteClick:function t(){return v("categories",e.id)}})}))),(0,f.tZ)(mn.Z,{when:s==="specific_courses"||s==="specific_bundles"||s==="specific_category"},(0,f.tZ)(fn.Z,{variant:"tertiary",isOutlined:true,buttonCss:wa.addCoursesButton,icon:(0,f.tZ)(dn.Z,{name:"plusSquareBrand",width:24,height:25}),onClick:function e(){o({component:ea,props:{title:(0,bn.__)("Selected items","tutor"),type:s==="specific_category"?"categories":s==="specific_courses"?"courses":"bundles",form:n},closeOnOutsideClick:true})}},(0,bn.__)("Add Items","tutor"))))}const ya=ga;function ba(e){var t=e.image,r=e.title,n=e.subTitle,i=e.handleDeleteClick;return(0,f.tZ)("div",{css:wa.selectedItem},(0,f.tZ)("div",{css:wa.selectedThumb},(0,f.tZ)("img",{src:t||yi,css:wa.thumbnail,alt:"course item"})),(0,f.tZ)("div",{css:wa.selectedContent},(0,f.tZ)("div",{css:wa.selectedTitle},r),(0,f.tZ)("div",{css:wa.selectedSubTitle},n)),(0,f.tZ)("div",null,(0,f.tZ)(fn.Z,{variant:"text",onClick:i},(0,f.tZ)(dn.Z,{name:"delete",width:24,height:24}))))}var wa={discountWrapper:(0,f.iv)("display:flex;flex-direction:column;gap:",un.W0[12],";"+(true?"":0),true?"":0),discountTypeWrapper:(0,f.iv)("display:flex;gap:",un.W0[20],";"+(true?"":0),true?"":0),couponWrapper:(0,f.iv)("display:flex;flex-direction:column;gap:",un.W0[4],";"+(true?"":0),true?"":0),addCoursesButton:(0,f.iv)("width:fit-content;color:",un.Jv.text.brand,";svg{color:",un.Jv.text.brand,";}"+(true?"":0),true?"":0),price:(0,f.iv)("display:flex;gap:",un.W0[4],";"+(true?"":0),true?"":0),discountPrice:true?{name:"1rcj98u",styles:"text-decoration:line-through"}:0,selectedWrapper:(0,f.iv)("border:1px solid ",un.Jv.stroke.divider,";border-radius:",un.E0[6],";"+(true?"":0),true?"":0),selectedItem:(0,f.iv)("padding:",un.W0[12],";display:flex;align-items:center;gap:",un.W0[16],";&:not(:last-child){border-bottom:1px solid ",un.Jv.stroke.divider,";}"+(true?"":0),true?"":0),selectedContent:true?{name:"1d3w5wq",styles:"width:100%"}:0,selectedTitle:(0,f.iv)(xn.c.small(),";color:",un.Jv.text.primary,";margin-bottom:",un.W0[4],";"+(true?"":0),true?"":0),selectedSubTitle:(0,f.iv)(xn.c.small(),";color:",un.Jv.text.hints,";"+(true?"":0),true?"":0),selectedThumb:true?{name:"128tros",styles:"height:48px"}:0,thumbnail:(0,f.iv)("width:48px;height:48px;border-radius:",un.E0[4],";"+(true?"":0),true?"":0),startingFrom:(0,f.iv)("color:",un.Jv.text.hints,";"+(true?"":0),true?"":0)};var _a=r(9768);var xa=r(1961);var Sa=r(9546);function Ea(e){"@babel/helpers - typeof";return Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(e)}function Oa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ca(e){for(var t=1;tnew Date||y},(0,f.tZ)("div",null,(0,f.tZ)("h6",{css:ro.previewListTitle},(0,bn.__)("Activity","tutor")),(0,f.tZ)("ul",{css:ro.previewList,"data-preview-list":true},(0,f.tZ)(mn.Z,{when:new Date(v)>new Date},(0,f.tZ)("li",null,(0,bn.__)("Not active yet","tutor"))),(0,f.tZ)(mn.Z,{when:h},(0,f.tZ)("li",null,y))))))))}const to=eo;var ro={previewWrapper:(0,f.iv)("display:flex;flex-direction:column;gap:",un.W0[20],";background-color:",un.Jv.background.white,";padding:",un.W0[20]," ",un.W0[32]," ",un.W0[64],";box-shadow:0px 2px 3px 0px rgba(0, 0, 0, 0.25);border-radius:",un.E0[6],";position:sticky;top:160px;"+(true?"":0),true?"":0),previewTop:(0,f.iv)("display:flex;flex-direction:column;gap:",un.W0[6],";align-items:center;"+(true?"":0),true?"":0),previewMiddle:(0,f.iv)("position:relative;margin-block:",un.W0[16],";display:flex;"+(true?"":0),true?"":0),leftCircle:(0,f.iv)("position:absolute;left:-",un.W0[48],";top:50%;transform:translate(0, -50%);width:32px;height:32px;border-radius:",un.E0.circle,";background-color:",un.Jv.background["default"],";box-shadow:inset 0px 2px 3px 0px rgba(0, 0, 0, 0.25);&::before{content:'';position:absolute;width:50%;height:100%;background:",un.Jv.background["default"],";}"+(true?"":0),true?"":0),rightCircle:(0,f.iv)("position:absolute;right:-",un.W0[48],";top:50%;transform:translate(0, -50%);width:32px;height:32px;border-radius:",un.E0.circle,";background-color:",un.Jv.background["default"],";box-shadow:inset 0px 2px 3px 0px rgba(0, 0, 0, 0.25);&::before{content:'';position:absolute;width:50%;height:100%;background:",un.Jv.background["default"],";right:0;}"+(true?"":0),true?"":0),previewBottom:(0,f.iv)("display:flex;flex-direction:column;gap:",un.W0[32],";"+(true?"":0),true?"":0),saleSection:true?{name:"1ks9uvr",styles:"display:flex;justify-content:space-between;align-items:center;width:100%"}:0,couponName:(0,f.iv)(xn.c.heading6("medium"),";color:",un.Jv.text.primary,";"+(true?"":0),true?"":0),discountText:(0,f.iv)(xn.c.body("medium"),";color:",un.Jv.text.warning,";"+(true?"":0),true?"":0),couponCode:(0,f.iv)(xn.c.heading3("medium"),";color:",un.Jv.text.brand,";margin-top:",un.W0[24],";word-break:break-all;"+(true?"":0),true?"":0),couponSubtitle:(0,f.iv)(xn.c.small(),";color:",un.Jv.text.hints,";"+(true?"":0),true?"":0),previewListTitle:(0,f.iv)(xn.c.caption("medium"),";color:",un.Jv.text.primary,";"+(true?"":0),true?"":0),previewList:(0,f.iv)("&[data-preview-list]{",xn.c.caption(),";color:",un.Jv.text.title,";list-style:disc;padding-left:",un.W0[24],";}"+(true?"":0),true?"":0)};var no=r(7941);var io=r(9447);var ao=r(7363);function oo(){oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(u&&l){if(this.prev=0;--i){var a=this.tryEntries[i];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function e(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var a=i.arg;E(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function e(t,r,n){return this.delegate={iterator:C(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=undefined),f}},e}function yo(e,t,r,n,i,a,o){try{var s=e[a](o);var u=s.value}catch(e){r(e);return}if(s.done){t(u)}else{Promise.resolve(u).then(n,i)}}function bo(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){yo(a,n,i,o,s,"next",e)}function s(e){yo(a,n,i,o,s,"throw",e)}o(undefined)}))}}function wo(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var _o=96;var xo={active:"success",inactive:"secondary",trash:"critical"};function So(){var e=new URLSearchParams(window.location.search);var t=e.get("coupon_id");var r=(0,wi.Gc)();var n=r.getValues();var i=pi();var a=vi();function o(e){return s.apply(this,arguments)}function s(){s=bo(go().mark((function e(t){var r;return go().wrap((function e(n){while(1)switch(n.prev=n.next){case 0:r=li(t);if(t.id){a.mutate(r)}else{i.mutate(r)}case 2:case"end":return n.stop()}}),e)})));return s.apply(this,arguments)}function u(){window.location.href="".concat(vn.y.home_url,"/wp-admin/admin.php?page=tutor_coupons")}return(0,f.tZ)("div",{css:Oo.wrapper},(0,f.tZ)(sn.Z,null,(0,f.tZ)("div",{css:Oo.innerWrapper},(0,f.tZ)("div",{css:Oo.left},(0,f.tZ)("button",{type:"button",css:c.i.backButton,onClick:u},(0,f.tZ)(dn.Z,{name:"arrowLeft",width:26,height:26})),(0,f.tZ)("div",null,(0,f.tZ)("div",{css:Oo.headerContent},(0,f.tZ)("h4",{css:xn.c.heading5("medium")},t?(0,bn.__)("Update Coupon","tutor"):(0,bn.__)("Create Coupon","tutor")),(0,f.tZ)(vo.p,{variant:xo[n.coupon_status]},(0,Rn.t6)(n.coupon_status))),(0,f.tZ)(mn.Z,{when:n.updated_at_gmt&&n.coupon_update_by.length,fallback:n.created_at_gmt&&(0,f.tZ)("p",{css:Oo.updateMessage},(0,bn.sprintf)((0,bn.__)("Created by %s at %s","tutor"),n.coupon_created_by,n.created_at_readable))},(function(){return(0,f.tZ)("p",{css:Oo.updateMessage},(0,bn.sprintf)((0,bn.__)("Updated by %s at %s","tutor"),n.coupon_update_by,n.updated_at_readable))})))),(0,f.tZ)("div",{css:Oo.right},(0,f.tZ)(fn.Z,{variant:"tertiary",onClick:u},(0,bn.__)("Cancel","tutor")),(0,f.tZ)(fn.Z,{variant:"primary",loading:i.isPending||a.isPending,onClick:r.handleSubmit(o)},(0,bn.__)("Save","tutor"))))))}const Eo=So;var Oo={wrapper:(0,f.iv)("height:",_o,"px;background:",un.Jv.background.white,";position:sticky;top:32px;z-index:",un.W5.positive,";"+(true?"":0),true?"":0),innerWrapper:true?{name:"19ykuei",styles:"display:flex;align-items:center;justify-content:space-between;height:100%"}:0,headerContent:(0,f.iv)("display:flex;align-items:center;gap:",un.W0[16],";"+(true?"":0),true?"":0),left:(0,f.iv)("display:flex;gap:",un.W0[16],";"+(true?"":0),true?"":0),right:(0,f.iv)("display:flex;gap:",un.W0[12],";"+(true?"":0),true?"":0),updateMessage:(0,f.iv)(xn.c.body(),";color:",un.Jv.text.subdued,";"+(true?"":0),true?"":0)};function Co(e){"@babel/helpers - typeof";return Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Co(e)}function ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ro(e){for(var t=1;te.length)t=e.length;for(var r=0,n=new Array(t);r=0)continue;r[i]=e[i]}return r}const Vo="get";const Go="application/x-www-form-urlencoded";function Ho(e){return e!=null&&typeof e.tagName==="string"}function Qo(e){return Ho(e)&&e.tagName.toLowerCase()==="button"}function Yo(e){return Ho(e)&&e.tagName.toLowerCase()==="form"}function Ko(e){return Ho(e)&&e.tagName.toLowerCase()==="input"}function Jo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Xo(e,t){return e.button===0&&(!t||t==="_self")&&!Jo(e)}function es(e){if(e===void 0){e=""}return new URLSearchParams(typeof e==="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map((e=>[r,e])):[[r,n]])}),[]))}function ts(e,t){let r=es(e);if(t){t.forEach(((e,n)=>{if(!r.has(n)){t.getAll(n).forEach((e=>{r.append(n,e)}))}}))}return r}let rs=null;function ns(){if(rs===null){try{new FormData(document.createElement("form"),0);rs=false}catch(e){rs=true}}return rs}const is=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function as(e){if(e!=null&&!is.has(e)){false?0:void 0;return null}return e}function os(e,t){let r;let n;let i;let a;let o;if(Yo(e)){let o=e.getAttribute("action");n=o?stripBasename(o,t):null;r=e.getAttribute("method")||Vo;i=as(e.getAttribute("enctype"))||Go;a=new FormData(e)}else if(Qo(e)||Ko(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null){throw new Error('Cannot submit a