leumas-private-shared
Version:
Private React JSX Package For Leumas Shared Components, Headers, Footers, Asides, Login Pages, API Key Manager and much more. Styles and everything reusable to avoid DRY code across all of our subdomains
17 lines • 2.73 MB
JavaScript
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("react-dom"),n=require("global"),r=require("react/jsx-runtime");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=i(e),s=o(e),c=o(t),l=i(t),u=o(n),d=o(r);function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,s,"next",e)}function s(e){p(i,r,o,a,s,"throw",e)}a(void 0)}))}}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(){y=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new R(r||[]);return o(a,"_invoke",{value:S(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function b(){}function A(){}var w={};l(w,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(I([])));k&&k!==n&&r.call(k,a)&&(w=k);var _=A.prototype=v.prototype=Object.create(w);function E(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(o,i,a,s){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function S(t,n,r){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=M(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var l=d(t,n,r);if("normal"===l.type){if(o=r.done?m:p,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function M(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function B(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(B,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=A,o(_,"constructor",{value:A,configurable:!0}),o(A,"constructor",{value:b,configurable:!0}),b.displayName=l(A,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,l(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},E(C.prototype),l(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new C(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(e,t)||_(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function x(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_(e)||function(){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 k(e){return k="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},k(e)}function _(e,t){if(e){if("string"==typeof e)return h(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var M,B,T={exports:{}},R=T.exports={};function I(){throw new Error("setTimeout has not been defined")}function O(){throw new Error("clearTimeout has not been defined")}function F(e){if(M===setTimeout)return setTimeout(e,0);if((M===I||!M)&&setTimeout)return M=setTimeout,setTimeout(e,0);try{return M(e,0)}catch(t){try{return M.call(null,e,0)}catch(t){return M.call(this,e,0)}}}!function(){try{M="function"==typeof setTimeout?setTimeout:I}catch(e){M=I}try{B="function"==typeof clearTimeout?clearTimeout:O}catch(e){B=O}}();var N,P=[],j=!1,D=-1;function L(){j&&N&&(j=!1,N.length?P=N.concat(P):D=-1,P.length&&$())}function $(){if(!j){var e=F(L);j=!0;for(var t=P.length;t;){for(N=P,P=[];++D<t;)N&&N[D].run();D=-1,t=P.length}N=null,j=!1,function(e){if(B===clearTimeout)return clearTimeout(e);if((B===O||!B)&&clearTimeout)return B=clearTimeout,clearTimeout(e);try{return B(e)}catch(t){try{return B.call(null,e)}catch(t){return B.call(this,e)}}}(e)}}function U(e,t){this.fun=e,this.array=t}function z(){}R.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];P.push(new U(e,t)),1!==P.length||j||F($)},U.prototype.run=function(){this.fun.apply(null,this.array)},R.title="browser",R.browser=!0,R.env={},R.argv=[],R.version="",R.versions={},R.on=z,R.addListener=z,R.once=z,R.off=z,R.removeListener=z,R.removeAllListeners=z,R.emit=z,R.prependListener=z,R.prependOnceListener=z,R.listeners=function(e){return[]},R.binding=function(e){throw new Error("process.binding is not supported")},R.cwd=function(){return"/"},R.chdir=function(e){throw new Error("process.chdir is not supported")},R.umask=function(){return 0};var H,Q,G=C(T.exports);
/**
* @remix-run/router v1.19.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}function V(e,t){if(!1===e||null==e)throw new Error(t)}function q(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function Y(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function K(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function J(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);q("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const c=s[n];return e[r]=o&&!c?void 0:(c||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:a,pattern:e}}function Z(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function X(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function ee(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function te(e,t,n,r){let o;void 0===r&&(r=!1),"string"==typeof e?o=K(e):(o=W({},e),V(!o.pathname||!o.pathname.includes("?"),X("?","pathname","search",o)),V(!o.pathname||!o.pathname.includes("#"),X("#","pathname","hash",o)),V(!o.search||!o.search.includes("#"),X("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"==typeof e?K(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:re(r),hash:oe(o)}}(o,i),l=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!l&&!u||(c.pathname+="/"),c}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(H||(H={})),function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Q||(Q={}));const ne=e=>e.join("/").replace(/\/\/+/g,"/"),re=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",oe=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function ie(){return ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ie.apply(this,arguments)}const ae=a.createContext(null);"production"!==G.env.NODE_ENV&&(ae.displayName="DataRouter");const se=a.createContext(null);"production"!==G.env.NODE_ENV&&(se.displayName="DataRouterState");const ce=a.createContext(null);"production"!==G.env.NODE_ENV&&(ce.displayName="Await");const le=a.createContext(null);"production"!==G.env.NODE_ENV&&(le.displayName="Navigation");const ue=a.createContext(null);"production"!==G.env.NODE_ENV&&(ue.displayName="Location");const de=a.createContext({outlet:null,matches:[],isDataRoute:!1});"production"!==G.env.NODE_ENV&&(de.displayName="Route");const he=a.createContext(null);function pe(){return null!=a.useContext(ue)}function fe(){return pe()||("production"!==G.env.NODE_ENV?V(!1,"useLocation() may be used only in the context of a <Router> component."):V(!1)),a.useContext(ue).location}"production"!==G.env.NODE_ENV&&(he.displayName="RouteError");const me="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ge(e){a.useContext(le).static||a.useLayoutEffect(e)}function ve(){let{isDataRoute:e}=a.useContext(de);return e?function(){let{router:e}=function(e){let t=a.useContext(ae);return t||("production"!==G.env.NODE_ENV?V(!1,we(e)):V(!1)),t}(ye.UseNavigateStable),t=xe(Ae.UseNavigateStable),n=a.useRef(!1);ge((()=>{n.current=!0}));let r=a.useCallback((function(r,o){void 0===o&&(o={}),"production"!==G.env.NODE_ENV&&q(n.current,me),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,ie({fromRouteId:t},o)))}),[e,t]);return r}():function(){pe()||("production"!==G.env.NODE_ENV?V(!1,"useNavigate() may be used only in the context of a <Router> component."):V(!1));let e=a.useContext(ae),{basename:t,future:n,navigator:r}=a.useContext(le),{matches:o}=a.useContext(de),{pathname:i}=fe(),s=JSON.stringify(ee(o,n.v7_relativeSplatPath)),c=a.useRef(!1);ge((()=>{c.current=!0}));let l=a.useCallback((function(n,o){if(void 0===o&&(o={}),"production"!==G.env.NODE_ENV&&q(c.current,me),!c.current)return;if("number"==typeof n)return void r.go(n);let a=te(n,JSON.parse(s),i,"path"===o.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:ne([t,a.pathname])),(o.replace?r.replace:r.push)(a,o.state,o)}),[t,r,s,i,e]);return l}()}function be(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=a.useContext(le),{matches:o}=a.useContext(de),{pathname:i}=fe(),s=JSON.stringify(ee(o,r.v7_relativeSplatPath));return a.useMemo((()=>te(e,JSON.parse(s),i,"path"===n)),[e,s,i,n])}var ye=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ye||{}),Ae=function(e){return 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",e}(Ae||{});function we(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function xe(e){let t=function(e){let t=a.useContext(de);return t||("production"!==G.env.NODE_ENV?V(!1,we(e)):V(!1)),t}(e),n=t.matches[t.matches.length-1];return n.route.id||("production"!==G.env.NODE_ENV?V(!1,e+' can only be used on routes that contain a unique "id"'):V(!1)),n.route.id}function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}function _e(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Promise((()=>{}));const Ee="get",Ce="application/x-www-form-urlencoded";function Se(e){return null!=e&&"string"==typeof e.tagName}let Me=null;const Be=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Te(e){return null==e||Be.has(e)?e:("production"!==G.env.NODE_ENV&&q(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "'+Ce+'"'),null)}function Re(e,t){let n,r,o,i,a;if(Se(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?Z(a,t):null,n=e.getAttribute("method")||Ee,o=Te(e.getAttribute("enctype"))||Ce,i=new FormData(e)}else if(function(e){return Se(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Se(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?Z(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Ee,o=Te(e.getAttribute("formenctype"))||Te(a.getAttribute("enctype"))||Ce,i=new FormData(a,e),!function(){if(null===Me)try{new FormData(document.createElement("form"),0),Me=!1}catch(e){Me=!0}return Me}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?t+".":"";i.append(e+"x","0"),i.append(e+"y","0")}else t&&i.append(t,r)}}else{if(Se(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ee,r=null,o=Ce,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}const Ie=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Oe=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Fe=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}const Ne=a.createContext({isTransitioning:!1});"production"!==G.env.NODE_ENV&&(Ne.displayName="ViewTransition");const Pe=a.createContext(new Map);"production"!==G.env.NODE_ENV&&(Pe.displayName="Fetchers"),G.env.NODE_ENV;const je="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,De=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Le=a.forwardRef((function(e,t){let n,{onClick:r,relative:o,reloadDocument:i,replace:s,state:c,target:l,to:u,preventScrollReset:d,unstable_viewTransition:h}=e,p=_e(e,Ie),{basename:f}=a.useContext(le),m=!1;if("string"==typeof u&&De.test(u)&&(n=u,je))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),n=Z(t.pathname,f);t.origin===e.origin&&null!=n?u=n+t.search+t.hash:m=!0}catch(e){"production"!==G.env.NODE_ENV&&q(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let g=function(e,t){let{relative:n}=void 0===t?{}:t;pe()||("production"!==G.env.NODE_ENV?V(!1,"useHref() may be used only in the context of a <Router> component."):V(!1));let{basename:r,navigator:o}=a.useContext(le),{hash:i,pathname:s,search:c}=be(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:ne([r,s])),o.createHref({pathname:l,search:c,hash:i})}(u,{relative:o}),v=function(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:c}=void 0===t?{}:t,l=ve(),u=fe(),d=be(e,{relative:s});return a.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==r?r:Y(u)===Y(d);l(e,{replace:n,state:o,preventScrollReset:i,relative:s,unstable_viewTransition:c})}}),[u,l,d,r,o,n,e,i,s,c])}(u,{replace:s,state:c,target:l,preventScrollReset:d,relative:o,unstable_viewTransition:h});return a.createElement("a",ke({},p,{href:n||g,onClick:m||i?r:function(e){r&&r(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));"production"!==G.env.NODE_ENV&&(Le.displayName="Link");const $e=a.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:o="",end:i=!1,style:s,to:c,unstable_viewTransition:l,children:u}=e,d=_e(e,Oe),h=be(c,{relative:d.relative}),p=fe(),f=a.useContext(se),{navigator:m,basename:g}=a.useContext(le),v=null!=f&&function(e,t){void 0===t&&(t={});let n=a.useContext(Ne);null==n&&("production"!==G.env.NODE_ENV?V(!1,"`unstable_useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):V(!1));let{basename:r}=Qe(ze.useViewTransitionState),o=be(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Z(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=J(o.pathname,s)||null!=J(o.pathname,i)}(h)&&!0===l,b=m.encodeLocation?m.encodeLocation(h).pathname:h.pathname,y=p.pathname,A=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(y=y.toLowerCase(),A=A?A.toLowerCase():null,b=b.toLowerCase()),A&&g&&(A=Z(A,g)||A);const w="/"!==b&&b.endsWith("/")?b.length-1:b.length;let x,k=y===b||!i&&y.startsWith(b)&&"/"===y.charAt(w),_=null!=A&&(A===b||!i&&A.startsWith(b)&&"/"===A.charAt(b.length)),E={isActive:k,isPending:_,isTransitioning:v},C=k?n:void 0;x="function"==typeof o?o(E):[o,k?"active":null,_?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let S="function"==typeof s?s(E):s;return a.createElement(Le,ke({},d,{"aria-current":C,className:x,ref:t,style:S,to:c,unstable_viewTransition:l}),"function"==typeof u?u(E):u)}));"production"!==G.env.NODE_ENV&&($e.displayName="NavLink");const Ue=a.forwardRef(((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:i,state:s,method:c=Ee,action:l,onSubmit:u,relative:d,preventScrollReset:h,unstable_viewTransition:p}=e,f=_e(e,Fe),m=function(){let{router:e}=Qe(ze.UseSubmit),{basename:t}=a.useContext(le),n=xe(Ae.UseRouteId);return a.useCallback((function(r,o){void 0===o&&(o={}),function(){if("undefined"==typeof document)throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}();let{action:i,method:a,encType:s,formData:c,body:l}=Re(r,t);if(!1===o.navigate){let t=o.fetcherKey||We();e.fetch(t,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:l,formMethod:o.method||a,formEncType:o.encType||s,unstable_flushSync:o.unstable_flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:l,formMethod:o.method||a,formEncType:o.encType||s,replace:o.replace,state:o.state,fromRouteId:n,unstable_flushSync:o.unstable_flushSync,unstable_viewTransition:o.unstable_viewTransition})}),[e,t,n])}(),g=function(e,t){let{relative:n}=void 0===t?{}:t,{basename:r}=a.useContext(le),o=a.useContext(de);o||("production"!==G.env.NODE_ENV?V(!1,"useFormAction must be used inside a RouteContext"):V(!1));let[i]=o.matches.slice(-1),s=ke({},be(e||".",{relative:n})),c=fe();if(null==e){s.search=c.search;let e=new URLSearchParams(s.search);e.has("index")&&""===e.get("index")&&(e.delete("index"),s.search=e.toString()?"?"+e.toString():"")}e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(s.pathname="/"===s.pathname?r:ne([r,s.pathname]));return Y(s)}(l,{relative:d}),v="get"===c.toLowerCase()?"get":"post";return a.createElement("form",ke({ref:t,method:v,action:g,onSubmit:o?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,o=(null==t?void 0:t.getAttribute("formmethod"))||c;m(t||e.currentTarget,{fetcherKey:n,method:o,navigate:r,replace:i,state:s,relative:d,preventScrollReset:h,unstable_viewTransition:p})}},f))}));var ze,He;function Qe(e){let t=a.useContext(ae);return t||("production"!==G.env.NODE_ENV?V(!1,function(e){return e+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}(e)):V(!1)),t}"production"!==G.env.NODE_ENV&&(Ue.displayName="Form"),G.env.NODE_ENV,function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"}(ze||(ze={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(He||(He={}));let Ge=0,We=()=>"__"+String(++Ge)+"__";var Ve={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},qe=s.default.createContext&&s.default.createContext(Ve),Ye=["attr","size","title"];function Ke(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}function Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e){return e&&e.map(((e,t)=>s.default.createElement(e.tag,Xe({key:t},e.attr),tt(e.child))))}function nt(e){return t=>s.default.createElement(rt,Je({attr:Xe({},e.attr)},t),tt(e.child))}function rt(e){var t=t=>{var n,{attr:r,size:o,title:i}=e,a=Ke(e,Ye),c=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),s.default.createElement("svg",Je({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:n,style:Xe(Xe({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&s.default.createElement("title",null,i),e.children)};return void 0!==qe?s.default.createElement(qe.Consumer,null,(e=>t(e))):t(Ve)}function ot(e){return nt({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}var it,at={exports:{}},st={exports:{}},ct={};var lt,ut,dt={};function ht(){return ut||(ut=1,"production"===G.env.NODE_ENV?st.exports=function(){if(it)return ct;it=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case c:case l:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case f:case p:case a:return e;default:return h}}case n:return h}}}function A(e){return y(e)===l}return ct.AsyncMode=c,ct.ConcurrentMode=l,ct.ContextConsumer=s,ct.ContextProvider=a,ct.Element=t,ct.ForwardRef=u,ct.Fragment=r,ct.Lazy=f,ct.Memo=p,ct.Portal=n,ct.Profiler=i,ct.StrictMode=o,ct.Suspense=d,ct.isAsyncMode=function(e){return A(e)||y(e)===c},ct.isConcurrentMode=A,ct.isContextConsumer=function(e){return y(e)===s},ct.isContextProvider=function(e){return y(e)===a},ct.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ct.isForwardRef=function(e){return y(e)===u},ct.isFragment=function(e){return y(e)===r},ct.isLazy=function(e){return y(e)===f},ct.isMemo=function(e){return y(e)===p},ct.isPortal=function(e){return y(e)===n},ct.isProfiler=function(e){return y(e)===i},ct.isStrictMode=function(e){return y(e)===o},ct.isSuspense=function(e){return y(e)===d},ct.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},ct.typeOf=y,ct}():st.exports=(lt||(lt=1,"production"!==G.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var m=e.type;switch(m){case c:case l:case r:case i:case o:case d:return m;default:var g=m&&m.$$typeof;switch(g){case s:case u:case f:case p:case a:return g;default:return h}}case n:return h}}}var A=c,w=l,x=s,k=a,_=t,E=u,C=r,S=f,M=p,B=n,T=i,R=o,I=d,O=!1;function F(e){return y(e)===l}dt.AsyncMode=A,dt.ConcurrentMode=w,dt.ContextConsumer=x,dt.ContextProvider=k,dt.Element=_,dt.ForwardRef=E,dt.Fragment=C,dt.Lazy=S,dt.Memo=M,dt.Portal=B,dt.Profiler=T,dt.StrictMode=R,dt.Suspense=I,dt.isAsyncMode=function(e){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),F(e)||y(e)===c},dt.isConcurrentMode=F,dt.isContextConsumer=function(e){return y(e)===s},dt.isContextProvider=function(e){return y(e)===a},dt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},dt.isForwardRef=function(e){return y(e)===u},dt.isFragment=function(e){return y(e)===r},dt.isLazy=function(e){return y(e)===f},dt.isMemo=function(e){return y(e)===p},dt.isPortal=function(e){return y(e)===n},dt.isProfiler=function(e){return y(e)===i},dt.isStrictMode=function(e){return y(e)===o},dt.isSuspense=function(e){return y(e)===d},dt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===l||e===i||e===o||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===m)},dt.typeOf=y}()),dt)),st.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var pt=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable;var gt,vt,bt,yt,At,wt,xt,kt,_t,Et,Ct=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))ft.call(n,a)&&(o[a]=n[a]);if(pt){r=pt(n);for(var s=0;s<r.length;s++)mt.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o},St=C(Ct);function Mt(){if(vt)return gt;vt=1;return gt="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Bt(){return yt?bt:(yt=1,bt=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==G.env.NODE_ENV){var Tt=ht();at.exports=function(){if(kt)return xt;kt=1;var e=ht(),t=Ct,n=Mt(),r=Bt(),o=function(){if(wt)return At;wt=1;var e=function(){};if("production"!==G.env.NODE_ENV){var t=Mt(),n={},r=Bt();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,s,c){if("production"!==G.env.NODE_ENV)for(var l in o)if(r(o,l)){var u;try{if("function"!=typeof o[l]){var d=Error((s||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=o[l](i,l,s,a,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var h=c?c():"";e("Failed "+a+" type: "+u.message+(null!=h?h:""))}}}return o.resetWarningCache=function(){"production"!==G.env.NODE_ENV&&(n={})},At=o}(),i=function(){};function a(){return null}return"production"!==G.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),xt=function(s,c){var l="function"==typeof Symbol&&Symbol.iterator,u="@@iterator",d="<<anonymous>>",h={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:m(a),arrayOf:function(e){return m((function(t,r,o,i,a){if("function"!=typeof e)return new f("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+a+"` of type `"+y(s)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<s.length;c++){var l=e(s,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:m((function(e,t,n,r,o){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+o+"` of type `"+y(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(t,n,r,o,i){var a=t[n];return e.isValidElementType(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+y(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||d;return new f("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:d)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:m((function(e,t,n,r,o){return b(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,a,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=t[o],l=y(c);if("object"!==l)return new f("Invalid "+a+" `"+s+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var u in c)if(r(c,u)){var d=e(c,u,i,a,s+"."+u,n);if(d instanceof Error)return d}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;var c=JSON.stringify(e,(function(e,t){return"symbol"===A(t)?String(t):t}));return new f("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==G.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==G.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(o)+" at index "+t+"."),a}return m((function(t,o,i,a,s){for(var c=[],l=0;l<e.length;l++){var u=(0,e[l])(t,o,i,a,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&c.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+i+"`"+(c.length>0?", expected one of type ["+c.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,o,i,a){var s=t[r],c=y(s);if("object"!==c)return new f("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in e){var u=e[l];if("function"!=typeof u)return v(o,i,a,l,A(u));var d=u(s,l,o,i,a+"."+l,n);if(d)return d}return null}))},exact:function(e){return m((function(o,i,a,s,c){var l=o[i],u=y(l);if("object"!==u)return new f("Invalid "+s+" `"+c+"` of type `"+u+"` supplied to `"+a+"`, expected `object`.");var d=t({},o[i],e);for(var h in d){var p=e[h];if(r(e,h)&&"function"!=typeof p)return v(a,s,c,h,A(p));if(!p)return new f("Invalid "+s+" `"+c+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=p(l,h,a,s,c+"."+h,n);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==G.env.NODE_ENV)var t={},r=0;function o(o,a,s,l,u,h,p){if(l=l||d,h=h||s,p!==n){if(c){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==G.env.NODE_ENV&&"undefined"!=typeof console){var g=l+":"+s;!t[g]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[g]=!0,r++)}}return null==a[s]?o?null===a[s]?new f("The "+u+" `"+h+"` is marked as required in `"+l+"`, but its value is `null`."):new f("The "+u+" `"+h+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:e(a,s,l,u,h)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function g(e){return m((function(t,n,r,o,i,a){var s=t[n];return y(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+A(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,n,r,o){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||s(e))return!0;var t=function(e){var t=e&&(l&&e[l]||e[u]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!b(o[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function A(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=A(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},xt}()(Tt.isElement,!0)}else at.exports=function(){if(Et)return _t;Et=1;var e=Mt();function t(){}function n(){}return n.resetWarningCache=t,_t=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Rt=at.exports,It=C(Rt),Ot=null,Ft=0,Nt=[],Pt={};function jt(e){if(arguments.length){if(!(e instanceof Array)){n=0;for(var t=(e=new Array(+arguments[0])).length;n<t;n++)e[n]=null}}else{for(var n=Ft-1;n>=0&&Nt[n]!==1/0;n--);if(n<0)throw new Error("array-marker-not-found");e=Nt.splice(n+1,Ft-1-n),Ft=n}return e.b=e,e.o=0,e}function Dt(){for(var e=Ft-1;e>=0&&Nt[e]!==1/0;e-=2)if(Nt[e-1]===1/0)throw new Error("dict-malformed-stack");if(e<0)throw new Error("dict-marker-not-found");for(var t=new Map,n=e+1;n<Ft;n+=2){var r=Nt[n],o=typeof r;if("number"==o||"string"==o)t.set(r,Nt[n+1]);else{if(!(r instanceof Uint8Array))throw new Error("dict-not-a-valid-key("+r+")");t.set(Ut(r),Nt[n+1])}}return Ft=e,t}function Lt(e){var t=typeof e;if("number"===t)return new Uint8Array(e);"string"!==t&&(e=""+e);for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}function $t(e,t){if(Ft<e)throw new Error("roll: --stack-underflow--");if(t){if(t<0)var n=Nt.splice(Ft-e,-t);else n=Nt.splice(Ft-e,e-t);Nt.splice.apply(Nt,[Ft-n.length,0].concat(n))}}function Ut(e){return e instanceof Uint8Array?String.fromCharCode.apply(null,e):""+e}function zt(e,t){if("string"==typeof e&&(e=Lt(e)),t instanceof Uint8Array)for(var n=0,r=t.length;n<r;n++)e[n]=t[n];else for(n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return t.length<e.length?e.subarray(0,t.length):e}function Ht(e,t){for(var n=0,r=t.length;n<r;n++)e[n]=t[n];return e.length=t.length,e}function Qt(e){return e instanceof Uint8Array?0|String.fromCharCode.apply(null,e).replace(/\0+$/,""):""+e|0}function Gt(e,t,n){return zt(e,(~~t).toString(n).toUpperCase())}function Wt(e,t){return e instanceof Uint8Array?e[t]:"string"==typeof e?e.charCodeAt(t):e instanceof Array?e.b[e.o+t]:t instanceof Uint8Array?e.get(Ut(t)):e.get(t)}function Vt(e,t,n){if(e instanceof Uint8Array)e[t]=n;else if(e instanceof Array)e.b[e.o+t]=n;else{if("object"!=typeof e)throw new Error("put-not-writable-"+typeof e);t instanceof Uint8Array?e.set(Ut(t),n):e.set(t,n)}}function qt(e,t,n){if(e instanceof Uint8Array)return e.subarray(t,t+n);if(e instanceof Array){var r=new Array(n);return r.b=e.b,r.o=e.o+t,r}return e.substr(t,n)}function Yt(e,t,n){if(e instanceof Uint8Array)if("string"==typeof n)for(var r=0,o=n.length;r<o;r++)e[t+r]=n.charCodeAt(r);else for(r=n.length-1;r>=0;r--)e[t+r]=n[r];else{if(!(e instanceof Array))throw new Error("putinterval-not-writable-"+typeof e);var i=e.b,a=t+e.o,s=n.b,c=n.o;for(r=0,o=n.length;r<o;r++)i[a+r]=s[c+r]}}function Kt(e){if(null==e)return"nulltype";var t=typeof e;return"number"==t?e%1?"realtype":"integertype":"boolean"==t?"booleantype":"string"==t||e instanceof Uint8Array?"stringtype":"function"==t?"operatortype":e instanceof Array?"arraytype":"dicttype"}function Jt(e,t){e instanceof Uint8Array||(e=Lt(e));var n=0,r=e.length,o=t.length;if(1==o){var i=t instanceof Uint8Array?t[0]:t.charCodeAt(0);n=e[0]==i?1:r}else if(t.length<=r)for(t instanceof Uint8Array||(t=Lt(t));n<o&&e[n]==t[n];n++);n==o?(Nt[Ft++]=e.subarray(o),Nt[Ft++]=e.subarray(0,o),Nt[Ft++]=!0):(Nt[Ft++]=e,Nt[Ft++]=!1)}function Zt(e,t){e instanceof Uint