From b8b5843030dffe2f6d42b6859361ac6c6e358e7b Mon Sep 17 00:00:00 2001 From: Aaron Kable Date: Sun, 19 Nov 2023 21:39:25 +0800 Subject: [PATCH] Swap to vite from CRA --- .../static/authstats/asset-manifest.json | 1 - authstats/static/authstats/assets | 1 + authstats/static/authstats/manifest.json | 1 + authstats/static/authstats/static | 2 +- authstats/templates/authstats/react_base.html | 30 +-- authstats/views.py | 1 - frontend/build/index.html | 46 ++++ frontend/build/static/.vite/manifest.json | 10 + .../build/static/assets/index-58ClCyIC.js | 239 ++++++++++++++++++ .../build/static/assets/index-wyzNN-cK.css | 1 + frontend/build/static/index.html | 46 ++++ frontend/{public => }/index.html | 2 + frontend/package.json | 13 +- .../src/apis/{Dashboard.js => Dashboard.jsx} | 0 .../{CollapseBlock.js => CollapseBlock.jsx} | 0 .../{CorpSelect.js => CorpSelect.jsx} | 0 .../{ErrorBoundary.js => ErrorBoundary.jsx} | 0 ...nGroup.js => OpenCharacterButtonGroup.jsx} | 0 ...enInGameButton.js => OpenInGameButton.jsx} | 0 ...tersTable.js => OrphanCharactersTable.jsx} | 0 .../src/components/{Report.js => Report.jsx} | 0 .../{ReportHeader.js => ReportHeader.jsx} | 0 .../{ReportMenu.js => ReportMenu.jsx} | 0 .../{ReportSelect.js => ReportSelect.jsx} | 0 .../{ReportTable.js => ReportTable.jsx} | 0 .../{UnknownTable.js => UnknownTable.jsx} | 0 frontend/src/{index.js => main.jsx} | 0 .../pages/{ReportPage.js => ReportPage.jsx} | 0 ...UnknownsPage.js => ReportUnknownsPage.jsx} | 0 frontend/vite.config.js | 37 +++ frontend/yarn.lock | 30 ++- 31 files changed, 430 insertions(+), 30 deletions(-) delete mode 120000 authstats/static/authstats/asset-manifest.json create mode 120000 authstats/static/authstats/assets create mode 120000 authstats/static/authstats/manifest.json create mode 100644 frontend/build/index.html create mode 100644 frontend/build/static/.vite/manifest.json create mode 100644 frontend/build/static/assets/index-58ClCyIC.js create mode 100644 frontend/build/static/assets/index-wyzNN-cK.css create mode 100644 frontend/build/static/index.html rename frontend/{public => }/index.html (97%) rename frontend/src/apis/{Dashboard.js => Dashboard.jsx} (100%) rename frontend/src/components/{CollapseBlock.js => CollapseBlock.jsx} (100%) rename frontend/src/components/{CorpSelect.js => CorpSelect.jsx} (100%) rename frontend/src/components/{ErrorBoundary.js => ErrorBoundary.jsx} (100%) rename frontend/src/components/{OpenCharacterButtonGroup.js => OpenCharacterButtonGroup.jsx} (100%) rename frontend/src/components/{OpenInGameButton.js => OpenInGameButton.jsx} (100%) rename frontend/src/components/{OrphanCharactersTable.js => OrphanCharactersTable.jsx} (100%) rename frontend/src/components/{Report.js => Report.jsx} (100%) rename frontend/src/components/{ReportHeader.js => ReportHeader.jsx} (100%) rename frontend/src/components/{ReportMenu.js => ReportMenu.jsx} (100%) rename frontend/src/components/{ReportSelect.js => ReportSelect.jsx} (100%) rename frontend/src/components/{ReportTable.js => ReportTable.jsx} (100%) rename frontend/src/components/{UnknownTable.js => UnknownTable.jsx} (100%) rename frontend/src/{index.js => main.jsx} (100%) rename frontend/src/pages/{ReportPage.js => ReportPage.jsx} (100%) rename frontend/src/pages/{ReportUnknownsPage.js => ReportUnknownsPage.jsx} (100%) create mode 100644 frontend/vite.config.js diff --git a/authstats/static/authstats/asset-manifest.json b/authstats/static/authstats/asset-manifest.json deleted file mode 120000 index 98bca0c..0000000 --- a/authstats/static/authstats/asset-manifest.json +++ /dev/null @@ -1 +0,0 @@ -../../../frontend/build/asset-manifest.json \ No newline at end of file diff --git a/authstats/static/authstats/assets b/authstats/static/authstats/assets new file mode 120000 index 0000000..392348a --- /dev/null +++ b/authstats/static/authstats/assets @@ -0,0 +1 @@ +../../../frontend/build/static/assets/ \ No newline at end of file diff --git a/authstats/static/authstats/manifest.json b/authstats/static/authstats/manifest.json new file mode 120000 index 0000000..6b95a86 --- /dev/null +++ b/authstats/static/authstats/manifest.json @@ -0,0 +1 @@ +../../../frontend/build/static/.vite/manifest.json \ No newline at end of file diff --git a/authstats/static/authstats/static b/authstats/static/authstats/static index 78ef857..ade135f 120000 --- a/authstats/static/authstats/static +++ b/authstats/static/authstats/static @@ -1 +1 @@ -../../../frontend/build/static/ \ No newline at end of file +../../../frontend/build/static/static/ \ No newline at end of file diff --git a/authstats/templates/authstats/react_base.html b/authstats/templates/authstats/react_base.html index 21a5801..2870ac4 100644 --- a/authstats/templates/authstats/react_base.html +++ b/authstats/templates/authstats/react_base.html @@ -107,6 +107,8 @@ function loadCss (cssFiles) { cssFiles.forEach(function (css) { + console.log("Loading: ", css) + $('') .appendTo('body') .attr({ @@ -119,34 +121,23 @@ function loadNextScript (scripts) { if (!scripts.length) { return; } - var script = scripts.shift(); + console.log("Loading: ", script) $.ajax(script, { dataType: 'script', + attrs: { type: "module" }, success: function () { loadNextScript(scripts) }, }) } - $.ajax(BASE_URL + 'asset-manifest.json?version={{version}}', { + $.ajax(BASE_URL + 'manifest.json?version={{version}}', { dataType: "json", success : function (data, textStatus, jqXHR) { - if (data && data.entrypoints && data.entrypoints.length > 0) { - var scripts = - data.entrypoints - .filter(function (resource) { - return resource.match(/.+\.js$/) - }) - .map(function (script) { - return BASE_URL + script; - }); - var cssFiles = - data.entrypoints - .filter(function (ressource) { - return ressource.match(/.+\.css$/) - }) - .map(function (file) { - return BASE_URL + file; + if (data) { + var scripts = [BASE_URL + data["index.html"].file] + var cssFiles = data["index.html"].css.map(function (file) { + return BASE_URL +file; }); loadCss(cssFiles); @@ -159,7 +150,8 @@ const loading_div = document.querySelector('#loading-div'); error_div.classList.toggle('hide'); loading_div.classList.toggle('hide'); - } + }, + cache: false }) diff --git a/authstats/views.py b/authstats/views.py index e4c5753..b3f5520 100644 --- a/authstats/views.py +++ b/authstats/views.py @@ -36,7 +36,6 @@ def add_corp(request, token): @permission_required("authstats.basic_access") def react_main(request, rid, cid): - # get available models return render(request, 'authstats/react_base.html', context={"version": __version__, "app_name": "authstats", "page_title": "Auth Reports"}) diff --git a/frontend/build/index.html b/frontend/build/index.html new file mode 100644 index 0000000..48c2d37 --- /dev/null +++ b/frontend/build/index.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + + React Dev Auth? WTF! + + + + + + + + + + +
+ + +
+ + + diff --git a/frontend/build/static/.vite/manifest.json b/frontend/build/static/.vite/manifest.json new file mode 100644 index 0000000..022dacd --- /dev/null +++ b/frontend/build/static/.vite/manifest.json @@ -0,0 +1,10 @@ +{ + "index.html": { + "css": [ + "assets/index-wyzNN-cK.css" + ], + "file": "assets/index-58ClCyIC.js", + "isEntry": true, + "src": "index.html" + } +} diff --git a/frontend/build/static/assets/index-58ClCyIC.js b/frontend/build/static/assets/index-58ClCyIC.js new file mode 100644 index 0000000..5b122ae --- /dev/null +++ b/frontend/build/static/assets/index-58ClCyIC.js @@ -0,0 +1,239 @@ +var Fc=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var I=(e,t,n)=>(Fc(e,t,"read from private field"),n?n.call(e):t.get(e)),z=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},L=(e,t,n,r)=>(Fc(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var es=(e,t,n,r)=>({set _(o){L(e,t,o,n)},get _(){return I(e,t,r)}}),oe=(e,t,n)=>(Fc(e,t,"access private method"),n);function NE(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var q1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function LE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Q1={exports:{}},mu={},K1={exports:{}},le={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Aa=Symbol.for("react.element"),VE=Symbol.for("react.portal"),UE=Symbol.for("react.fragment"),jE=Symbol.for("react.strict_mode"),BE=Symbol.for("react.profiler"),zE=Symbol.for("react.provider"),HE=Symbol.for("react.context"),WE=Symbol.for("react.forward_ref"),GE=Symbol.for("react.suspense"),qE=Symbol.for("react.memo"),QE=Symbol.for("react.lazy"),ug=Symbol.iterator;function KE(e){return e===null||typeof e!="object"?null:(e=ug&&e[ug]||e["@@iterator"],typeof e=="function"?e:null)}var X1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y1=Object.assign,Z1={};function ci(e,t,n){this.props=e,this.context=t,this.refs=Z1,this.updater=n||X1}ci.prototype.isReactComponent={};ci.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ci.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function J1(){}J1.prototype=ci.prototype;function qh(e,t,n){this.props=e,this.context=t,this.refs=Z1,this.updater=n||X1}var Qh=qh.prototype=new J1;Qh.constructor=qh;Y1(Qh,ci.prototype);Qh.isPureReactComponent=!0;var cg=Array.isArray,eS=Object.prototype.hasOwnProperty,Kh={current:null},tS={key:!0,ref:!0,__self:!0,__source:!0};function nS(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)eS.call(t,r)&&!tS.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1"u"}function sO(e){return e!==null&&!Cd(e)&&e.constructor!==null&&!Cd(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function lO(e){return eo.call(e)==="[object ArrayBuffer]"}function uO(e){return typeof FormData<"u"&&e instanceof FormData}function cO(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function fO(e){return typeof e=="string"}function dO(e){return typeof e=="number"}function iS(e){return e!==null&&typeof e=="object"}function ol(e){if(eo.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function pO(e){return eo.call(e)==="[object Date]"}function hO(e){return eo.call(e)==="[object File]"}function mO(e){return eo.call(e)==="[object Blob]"}function aS(e){return eo.call(e)==="[object Function]"}function vO(e){return iS(e)&&aS(e.pipe)}function gO(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function yO(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function wO(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Jh(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),Zh(e))for(var n=0,r=e.length;n"u"||(so.isArray(l)?u=u+"[]":l=[l],so.forEach(l,function(f){so.isDate(f)?f=f.toISOString():so.isObject(f)&&(f=JSON.stringify(f)),i.push(dg(u)+"="+dg(f))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},CO=Mt;function vu(){this.handlers=[]}vu.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};vu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};vu.prototype.forEach=function(t){CO.forEach(this.handlers,function(r){r!==null&&t(r)})};var xO=vu,_O=Mt,EO=function(t,n){_O.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},lS=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t},Dc,pg;function uS(){if(pg)return Dc;pg=1;var e=lS;return Dc=function(n,r,o,i,a){var s=new Error(n);return e(s,r,o,i,a)},Dc}var $c,hg;function OO(){if(hg)return $c;hg=1;var e=uS();return $c=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},$c}var Ac,mg;function RO(){if(mg)return Ac;mg=1;var e=Mt;return Ac=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,a,s,l){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Ac}var Nc,vg;function PO(){return vg||(vg=1,Nc=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}),Nc}var Lc,gg;function TO(){return gg||(gg=1,Lc=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Lc}var Vc,yg;function IO(){if(yg)return Vc;yg=1;var e=PO(),t=TO();return Vc=function(r,o){return r&&!e(o)?t(r,o):o},Vc}var Uc,wg;function MO(){if(wg)return Uc;wg=1;var e=Mt,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Uc=function(r){var o={},i,a,s;return r&&e.forEach(r.split(` +`),function(u){if(s=u.indexOf(":"),i=e.trim(u.substr(0,s)).toLowerCase(),a=e.trim(u.substr(s+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a}}),o},Uc}var jc,Sg;function FO(){if(Sg)return jc;Sg=1;var e=Mt;return jc=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),jc}var Bc,bg;function Cg(){if(bg)return Bc;bg=1;var e=Mt,t=OO(),n=RO(),r=sS,o=IO(),i=MO(),a=FO(),s=uS();return Bc=function(u){return new Promise(function(f,d){var p=u.data,v=u.headers,h=u.responseType;e.isFormData(p)&&delete v["Content-Type"];var w=new XMLHttpRequest;if(u.auth){var m=u.auth.username||"",g=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";v.Authorization="Basic "+btoa(m+":"+g)}var y=o(u.baseURL,u.url);w.open(u.method.toUpperCase(),r(y,u.params,u.paramsSerializer),!0),w.timeout=u.timeout;function b(){if(w){var C="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,_=!h||h==="text"||h==="json"?w.responseText:w.response,O={data:_,status:w.status,statusText:w.statusText,headers:C,config:u,request:w};t(f,d,O),w=null}}if("onloadend"in w?w.onloadend=b:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(b)},w.onabort=function(){w&&(d(s("Request aborted",u,"ECONNABORTED",w)),w=null)},w.onerror=function(){d(s("Network Error",u,null,w)),w=null},w.ontimeout=function(){var _="timeout of "+u.timeout+"ms exceeded";u.timeoutErrorMessage&&(_=u.timeoutErrorMessage),d(s(_,u,u.transitional&&u.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},e.isStandardBrowserEnv()){var E=(u.withCredentials||a(y))&&u.xsrfCookieName?n.read(u.xsrfCookieName):void 0;E&&(v[u.xsrfHeaderName]=E)}"setRequestHeader"in w&&e.forEach(v,function(_,O){typeof p>"u"&&O.toLowerCase()==="content-type"?delete v[O]:w.setRequestHeader(O,_)}),e.isUndefined(u.withCredentials)||(w.withCredentials=!!u.withCredentials),h&&h!=="json"&&(w.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&w.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",u.onUploadProgress),u.cancelToken&&u.cancelToken.promise.then(function(_){w&&(w.abort(),d(_),w=null)}),p||(p=null),w.send(p)})},Bc}var Xe=Mt,xg=EO,kO=lS,DO={"Content-Type":"application/x-www-form-urlencoded"};function _g(e,t){!Xe.isUndefined(e)&&Xe.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function $O(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Cg()),e}function AO(e,t,n){if(Xe.isString(e))try{return(t||JSON.parse)(e),Xe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var gu={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:$O(),transformRequest:[function(t,n){return xg(n,"Accept"),xg(n,"Content-Type"),Xe.isFormData(t)||Xe.isArrayBuffer(t)||Xe.isBuffer(t)||Xe.isStream(t)||Xe.isFile(t)||Xe.isBlob(t)?t:Xe.isArrayBufferView(t)?t.buffer:Xe.isURLSearchParams(t)?(_g(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Xe.isObject(t)||n&&n["Content-Type"]==="application/json"?(_g(n,"application/json"),AO(t)):t}],transformResponse:[function(t){var n=this.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&Xe.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?kO(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};gu.headers={common:{Accept:"application/json, text/plain, */*"}};Xe.forEach(["delete","get","head"],function(t){gu.headers[t]={}});Xe.forEach(["post","put","patch"],function(t){gu.headers[t]=Xe.merge(DO)});var em=gu,NO=Mt,LO=em,VO=function(t,n,r){var o=this||LO;return NO.forEach(r,function(a){t=a.call(o,t,n)}),t},zc,Eg;function cS(){return Eg||(Eg=1,zc=function(t){return!!(t&&t.__CANCEL__)}),zc}var Og=Mt,Hc=VO,UO=cS(),jO=em;function Wc(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var BO=function(t){Wc(t),t.headers=t.headers||{},t.data=Hc.call(t,t.data,t.headers,t.transformRequest),t.headers=Og.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Og.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||jO.adapter;return n(t).then(function(o){return Wc(t),o.data=Hc.call(t,o.data,o.headers,t.transformResponse),o},function(o){return UO(o)||(Wc(t),o&&o.response&&(o.response.data=Hc.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},rt=Mt,fS=function(t,n){n=n||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function l(d,p){return rt.isPlainObject(d)&&rt.isPlainObject(p)?rt.merge(d,p):rt.isPlainObject(p)?rt.merge({},p):rt.isArray(p)?p.slice():p}function u(d){rt.isUndefined(n[d])?rt.isUndefined(t[d])||(r[d]=l(void 0,t[d])):r[d]=l(t[d],n[d])}rt.forEach(o,function(p){rt.isUndefined(n[p])||(r[p]=l(void 0,n[p]))}),rt.forEach(i,u),rt.forEach(a,function(p){rt.isUndefined(n[p])?rt.isUndefined(t[p])||(r[p]=l(void 0,t[p])):r[p]=l(void 0,n[p])}),rt.forEach(s,function(p){p in n?r[p]=l(t[p],n[p]):p in t&&(r[p]=l(void 0,t[p]))});var c=o.concat(i).concat(a).concat(s),f=Object.keys(t).concat(Object.keys(n)).filter(function(p){return c.indexOf(p)===-1});return rt.forEach(f,u),r};const zO="axios",HO="0.21.4",WO="Promise based HTTP client for the browser and node.js",GO="index.js",qO={test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},QO={type:"git",url:"https://github.com/axios/axios.git"},KO=["xhr","http","ajax","promise","node"],XO="Matt Zabriskie",YO="MIT",ZO={url:"https://github.com/axios/axios/issues"},JO="https://axios-http.com",eR={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},tR={"./lib/adapters/http.js":"./lib/adapters/xhr.js"},nR="dist/axios.min.js",rR="dist/axios.min.js",oR="./index.d.ts",iR={"follow-redirects":"^1.14.0"},aR=[{path:"./dist/axios.min.js",threshold:"5kB"}],sR={name:zO,version:HO,description:WO,main:GO,scripts:qO,repository:QO,keywords:KO,author:XO,license:YO,bugs:ZO,homepage:JO,devDependencies:eR,browser:tR,jsdelivr:nR,unpkg:rR,typings:oR,dependencies:iR,bundlesize:aR};var dS=sR,tm={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){tm[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Rg={},lR=dS.version.split(".");function pS(e,t){for(var n=t?t.split("."):lR,r=e.split("."),o=0;o<3;o++){if(n[o]>r[o])return!0;if(n[o]0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+i)}}var cR={isOlderVersion:pS,assertOptions:uR,validators:tm},hS=Mt,fR=sS,Pg=xO,Tg=BO,yu=fS,mS=cR,lo=mS.validators;function Na(e){this.defaults=e,this.interceptors={request:new Pg,response:new Pg}}Na.prototype.request=function(t){typeof t=="string"?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=yu(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&mS.assertOptions(n,{silentJSONParsing:lo.transitional(lo.boolean,"1.0.0"),forcedJSONParsing:lo.transitional(lo.boolean,"1.0.0"),clarifyTimeoutError:lo.transitional(lo.boolean,"1.0.0")},!1);var r=[],o=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(o=o&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});var i=[];this.interceptors.response.forEach(function(d){i.push(d.fulfilled,d.rejected)});var a;if(!o){var s=[Tg,void 0];for(Array.prototype.unshift.apply(s,r),s=s.concat(i),a=Promise.resolve(t);s.length;)a=a.then(s.shift(),s.shift());return a}for(var l=t;r.length;){var u=r.shift(),c=r.shift();try{l=u(l)}catch(f){c(f);break}}try{a=Tg(l)}catch(f){return Promise.reject(f)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};Na.prototype.getUri=function(t){return t=yu(this.defaults,t),fR(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};hS.forEach(["delete","get","head","options"],function(t){Na.prototype[t]=function(n,r){return this.request(yu(r||{},{method:t,url:n,data:(r||{}).data}))}});hS.forEach(["post","put","patch"],function(t){Na.prototype[t]=function(n,r,o){return this.request(yu(o||{},{method:t,url:n,data:r}))}});var dR=Na,Gc,Ig;function vS(){if(Ig)return Gc;Ig=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Gc=e,Gc}var qc,Mg;function pR(){if(Mg)return qc;Mg=1;var e=vS();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a});var o=this;n(function(a){o.reason||(o.reason=new e(a),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var r,o=new t(function(a){r=a});return{token:o,cancel:r}},qc=t,qc}var Qc,Fg;function hR(){return Fg||(Fg=1,Qc=function(t){return function(r){return t.apply(null,r)}}),Qc}var Kc,kg;function mR(){return kg||(kg=1,Kc=function(t){return typeof t=="object"&&t.isAxiosError===!0}),Kc}var Dg=Mt,vR=oS,il=dR,gR=fS,yR=em;function gS(e){var t=new il(e),n=vR(il.prototype.request,t);return Dg.extend(n,il.prototype,t),Dg.extend(n,t),n}var on=gS(yR);on.Axios=il;on.create=function(t){return gS(gR(on.defaults,t))};on.Cancel=vS();on.CancelToken=pR();on.isCancel=cS();on.all=function(t){return Promise.all(t)};on.spread=hR();on.isAxiosError=mR();Yh.exports=on;Yh.exports.default=on;var wR=Yh.exports,SR=wR;const La=pe(SR);La.defaults.xsrfHeaderName="X-CSRFToken";async function bR(e,t){return e!==0&&t!==0?(console.log("get report from api",t,e),(await La.get(`/reports/api/get_report/${e}/${t}`)).data):!1}async function CR(){const e=await La.get("/reports/api/get_corps");return console.log("get corps from api"),e.data}async function xR(){const e=await La.get("/reports/api/get_reports");return console.log("get corps from api"),e.data}async function _R(e){const t=await La.get(`/reports/api/get_unknowns/${e}`);return console.log("get corps from api"),t.data}var yS={exports:{}},ER=yS.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ER);var fi=yS.exports,wS={exports:{}},OR=wS.exports={version:"2.6.12"};typeof __e=="number"&&(__e=OR);var Ft=wS.exports,RR=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e},PR=RR,nm=function(e,t,n){if(PR(e),t===void 0)return e;switch(n){case 1:return function(r){return e.call(t,r)};case 2:return function(r,o){return e.call(t,r,o)};case 3:return function(r,o,i){return e.call(t,r,o,i)}}return function(){return e.apply(t,arguments)}},Va={},Xc,$g;function wu(){return $g||($g=1,Xc=function(e){return typeof e=="object"?e!==null:typeof e=="function"}),Xc}var Yc,Ag;function Ua(){if(Ag)return Yc;Ag=1;var e=wu();return Yc=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t},Yc}var Zc,Ng;function ja(){return Ng||(Ng=1,Zc=function(e){try{return!!e()}catch{return!0}}),Zc}var to=!ja()(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}),Jc,Lg;function SS(){if(Lg)return Jc;Lg=1;var e=wu(),t=fi.document,n=e(t)&&e(t.createElement);return Jc=function(r){return n?t.createElement(r):{}},Jc}var bS=!to&&!ja()(function(){return Object.defineProperty(SS()("div"),"a",{get:function(){return 7}}).a!=7}),ns=wu(),CS=function(e,t){if(!ns(e))return e;var n,r;if(t&&typeof(n=e.toString)=="function"&&!ns(r=n.call(e))||typeof(n=e.valueOf)=="function"&&!ns(r=n.call(e))||!t&&typeof(n=e.toString)=="function"&&!ns(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Vg=Ua(),TR=bS,IR=CS,MR=Object.defineProperty;Va.f=to?Object.defineProperty:function(t,n,r){if(Vg(t),n=IR(n,!0),Vg(r),TR)try{return MR(t,n,r)}catch{}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[n]=r.value),t};var Su=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}},FR=Va,kR=Su,bu=to?function(e,t,n){return FR.f(e,t,kR(1,n))}:function(e,t,n){return e[t]=n,e},DR={}.hasOwnProperty,Ba=function(e,t){return DR.call(e,t)},rs=fi,ef=Ft,Ug=nm,$R=bu,AR=Ba,os="prototype",lt=function(e,t,n){var r=e<.F,o=e<.G,i=e<.S,a=e<.P,s=e<.B,l=e<.W,u=o?ef:ef[t]||(ef[t]={}),c=u[os],f=o?rs:i?rs[t]:(rs[t]||{})[os],d,p,v;o&&(n=t);for(d in n)p=!r&&f&&f[d]!==void 0,!(p&&AR(u,d))&&(v=p?f[d]:n[d],u[d]=o&&typeof f[d]!="function"?n[d]:s&&p?Ug(v,rs):l&&f[d]==v?function(h){var w=function(m,g,y){if(this instanceof h){switch(arguments.length){case 0:return new h;case 1:return new h(m);case 2:return new h(m,g)}return new h(m,g,y)}return h.apply(this,arguments)};return w[os]=h[os],w}(v):a&&typeof v=="function"?Ug(Function.call,v):v,a&&((u.virtual||(u.virtual={}))[d]=v,e<.R&&c&&!c[d]&&$R(c,d,v)))};lt.F=1;lt.G=2;lt.S=4;lt.P=8;lt.B=16;lt.W=32;lt.U=64;lt.R=128;var sn=lt,NR={}.toString,rm=function(e){return NR.call(e).slice(8,-1)},LR=rm,xS=Object("z").propertyIsEnumerable(0)?Object:function(e){return LR(e)=="String"?e.split(""):Object(e)},Cu=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e},VR=xS,UR=Cu,xu=function(e){return VR(UR(e))},jR=Math.ceil,BR=Math.floor,om=function(e){return isNaN(e=+e)?0:(e>0?BR:jR)(e)},zR=om,HR=Math.min,_S=function(e){return e>0?HR(zR(e),9007199254740991):0},WR=om,GR=Math.max,qR=Math.min,QR=function(e,t){return e=WR(e),e<0?GR(e+t,0):qR(e,t)},KR=xu,XR=_S,YR=QR,ZR=function(e){return function(t,n,r){var o=KR(t),i=XR(o.length),a=YR(r,i),s;if(e&&n!=n){for(;i>a;)if(s=o[a++],s!=s)return!0}else for(;i>a;a++)if((e||a in o)&&o[a]===n)return e||a||0;return!e&&-1}},tf={exports:{}},nf,jg;function ES(){return jg||(jg=1,nf=!0),nf}var Bg;function OS(){if(Bg)return tf.exports;Bg=1;var e=Ft,t=fi,n="__core-js_shared__",r=t[n]||(t[n]={});return(tf.exports=function(o,i){return r[o]||(r[o]=i!==void 0?i:{})})("versions",[]).push({version:e.version,mode:ES()?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"}),tf.exports}var rf,zg;function RS(){if(zg)return rf;zg=1;var e=0,t=Math.random();return rf=function(n){return"Symbol(".concat(n===void 0?"":n,")_",(++e+t).toString(36))},rf}var of,Hg;function im(){if(Hg)return of;Hg=1;var e=OS()("keys"),t=RS();return of=function(n){return e[n]||(e[n]=t(n))},of}var Wg=Ba,JR=xu,eP=ZR(!1),tP=im()("IE_PROTO"),nP=function(e,t){var n=JR(e),r=0,o=[],i;for(i in n)i!=tP&&Wg(n,i)&&o.push(i);for(;t.length>r;)Wg(n,i=t[r++])&&(~eP(o,i)||o.push(i));return o},PS="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),rP=nP,oP=PS,_u=Object.keys||function(t){return rP(t,oP)},af={},Gg;function iP(){return Gg||(Gg=1,af.f=Object.getOwnPropertySymbols),af}var Eu={};Eu.f={}.propertyIsEnumerable;var aP=Cu,Ou=function(e){return Object(aP(e))},sf,qg;function sP(){if(qg)return sf;qg=1;var e=to,t=_u,n=iP(),r=Eu,o=Ou,i=xS,a=Object.assign;return sf=!a||ja()(function(){var s={},l={},u=Symbol(),c="abcdefghijklmnopqrst";return s[u]=7,c.split("").forEach(function(f){l[f]=f}),a({},s)[u]!=7||Object.keys(a({},l)).join("")!=c})?function(l,u){for(var c=o(l),f=arguments.length,d=1,p=n.f,v=r.f;f>d;)for(var h=i(arguments[d++]),w=p?t(h).concat(p(h)):t(h),m=w.length,g=0,y;m>g;)y=w[g++],(!e||v.call(h,y))&&(c[y]=h[y]);return c}:a,sf}var lf=sn;lf(lf.S+lf.F,"Object",{assign:sP()});var TS=Ft.Object.assign;const Qg=pe(TS);function V(){return V=Qg?Qg.bind():function(e){for(var t=1;tl;)e.f(o,u=a[l++],i[u]);return o},uf}var cf,Xg;function uP(){if(Xg)return cf;Xg=1;var e=fi.document;return cf=e&&e.documentElement,cf}var ff,Yg;function IS(){if(Yg)return ff;Yg=1;var e=Ua(),t=lP(),n=PS,r=im()("IE_PROTO"),o=function(){},i="prototype",a=function(){var s=SS()("iframe"),l=n.length,u="<",c=">",f;for(s.style.display="none",uP().appendChild(s),s.src="javascript:",f=s.contentWindow.document,f.open(),f.write(u+"script"+c+"document.F=Object"+u+"/script"+c),f.close(),a=f.F;l--;)delete a[i][n[l]];return a()};return ff=Object.create||function(l,u){var c;return l!==null?(o[i]=e(l),c=new o,o[i]=null,c[r]=l):c=a(),u===void 0?c:t(c,u)},ff}var Zg=sn;Zg(Zg.S,"Object",{create:IS()});var cP=Ft.Object,fP=function(t,n){return cP.create(t,n)};const dP=pe(fP);var df={},Jg;function pP(){if(Jg)return df;Jg=1;var e=Eu,t=Su,n=xu,r=CS,o=Ba,i=bS,a=Object.getOwnPropertyDescriptor;return df.f=to?a:function(l,u){if(l=n(l),u=r(u,!0),i)try{return a(l,u)}catch{}if(o(l,u))return t(!e.f.call(l,u),l[u])},df}var pf,ey;function hP(){if(ey)return pf;ey=1;var e=wu(),t=Ua(),n=function(r,o){if(t(r),!e(o)&&o!==null)throw TypeError(o+": can't set as prototype!")};return pf={set:Object.setPrototypeOf||("__proto__"in{}?function(r,o,i){try{i=nm(Function.call,pP().f(Object.prototype,"__proto__").set,2),i(r,[]),o=!(r instanceof Array)}catch{o=!0}return function(s,l){return n(s,l),o?s.__proto__=l:i(s,l),s}}({},!1):void 0),check:n},pf}var ty=sn;ty(ty.S,"Object",{setPrototypeOf:hP().set});var mP=Ft.Object.setPrototypeOf;const ny=pe(mP);function _d(e,t){return _d=ny?ny.bind():function(r,o){return r.__proto__=o,r},_d(e,t)}function ce(e,t){e.prototype=dP(t.prototype),e.prototype.constructor=e,_d(e,t)}var hf,ry;function vP(){if(ry)return hf;ry=1;var e=sn,t=Ft,n=ja();return hf=function(r,o){var i=(t.Object||{})[r]||Object[r],a={};a[r]=o(i),e(e.S+e.F*n(function(){i(1)}),"Object",a)},hf}var gP=Ou,yP=_u;vP()("keys",function(){return function(t){return yP(gP(t))}});var wP=Ft.Object.keys;const SP=pe(wP);function de(e,t){if(e==null)return{};var n={},r=SP(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var MS={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o=0)&&(n[o]=e[o]);return n}var OP=function(e,t,n,r,o,i,a,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;l=new Error(t.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},RP=OP;const AS=pe(RP);var PP=function(){};function TP(e,t){var n={};return Object.keys(e).forEach(function(r){n[al(r)]=PP}),n}function oy(e,t){return e[t]!==void 0}function al(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function IP(e){return!!e&&(typeof e!="function"||e.prototype&&e.prototype.isReactComponent)}function Ed(e,t){return Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Ed(e,t)}function MP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ed(e,t)}function NS(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function LS(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function VS(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}NS.__suppressDeprecationWarning=!0;LS.__suppressDeprecationWarning=!0;VS.__suppressDeprecationWarning=!0;function US(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,o=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),n!==null||r!==null||o!==null){var i=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. + +`+i+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?` + `+n:"")+(r!==null?` + `+r:"")+(o!==null?` + `+o:"")+` + +The above lifecycles should be removed. Learn more about this warning here: +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=NS,t.componentWillReceiveProps=LS),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=VS;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,c,f){var d=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,u,c,d)}}return e}const FP=Object.freeze(Object.defineProperty({__proto__:null,polyfill:US},Symbol.toStringTag,{value:"Module"}));var kP="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function am(e,t,n){n===void 0&&(n=[]);var r=e.displayName||e.name||"Component",o=IP(e),i=Object.keys(t),a=i.map(al);o||!n.length||AS(!1);var s=function(u){MP(c,u);function c(){for(var d,p=arguments.length,v=new Array(p),h=0;h1?_-1:0),M=1;M<_;M++)O[M-1]=arguments[M];(C=d.props)[g].apply(C,[E].concat(O)),d._notifying=!1}d.unmounted||d.setState(function(P){var $,A=P.values;return{values:Wn(Object.create(null),A,($={},$[m]=E,$))}})};d.handlers[g]=y}),n.length&&(d.attachRef=function(m){d.inner=m});var w=Object.create(null);return i.forEach(function(m){w[m]=d.props[al(m)]}),d.state={values:w,prevProps:{}},d}var f=c.prototype;return f.shouldComponentUpdate=function(){return!this._notifying},c.getDerivedStateFromProps=function(p,v){var h=v.values,w=v.prevProps,m={values:Wn(Object.create(null),h),prevProps:{}};return i.forEach(function(g){m.prevProps[g]=p[g],!oy(p,g)&&oy(w,g)&&(m.values[g]=p[al(g)])}),m},f.componentWillUnmount=function(){this.unmounted=!0},f.render=function(){var p=this,v=this.props,h=v.innerRef,w=EP(v,["innerRef"]);a.forEach(function(g){delete w[g]});var m={};return i.forEach(function(g){var y=p.props[g];m[g]=y!==void 0?y:p.state.values[g]}),x.createElement(e,Wn({},w,m,this.handlers,{ref:h||this.attachRef}))},c}(x.Component);US(s),s.displayName="Uncontrolled("+r+")",s.propTypes=Wn({innerRef:function(){}},TP(t)),n.forEach(function(u){s.prototype[u]=function(){var f;return(f=this.inner)[u].apply(f,arguments)}});var l=s;return x.forwardRef&&(l=x.forwardRef(function(u,c){return x.createElement(s,Wn({},u,{innerRef:c,__source:{fileName:kP,lineNumber:128},__self:this}))}),l.propTypes=s.propTypes),l.ControlledComponent=e,l.deferControlTo=function(u,c,f){return c===void 0&&(c={}),am(u,Wn({},t,c),f)},l}var DP=to,$P=_u,AP=xu,NP=Eu.f,jS=function(e){return function(t){for(var n=AP(t),r=$P(n),o=r.length,i=0,a=[],s;o>i;)s=r[i++],(!DP||NP.call(n,s))&&a.push(e?[s,n[s]]:n[s]);return a}},iy=sn,LP=jS(!0);iy(iy.S,"Object",{entries:function(t){return LP(t)}});var VP=Ft.Object.entries,UP=VP;const sm=pe(UP);var Br={LARGE:"large",SMALL:"small",XSMALL:"xsmall"},BS={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},Ru={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"},wn={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"};function lm(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r>",p=f||l;if(s[l]==null)return a?new Error("Required "+c+" `"+p+"` was not specified "+("in `"+d+"`.")):null;for(var v=arguments.length,h=Array(v>6?v-6:0),w=6;w1?(a=s,!1):!0}),a?new Error("(children) "+i+" - Duplicate children detected of bsRole: "+(a+". Only one child each allowed with the following ")+("bsRoles: "+t.join(", "))):null})}var ay=sn,YP=jS(!1);ay(ay.S,"Object",{values:function(t){return YP(t)}});var ZP=Ft.Object.values,JP=ZP;const Mu=pe(JP);var eT={label:S.string.isRequired,onClick:S.func},tT={label:"Close"},cm=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this.props,i=o.label,a=o.onClick;return x.createElement("button",{type:"button",className:"close",onClick:a},x.createElement("span",{"aria-hidden":"true"},"×"),x.createElement("span",{className:"sr-only"},i))},t}(x.Component);cm.propTypes=eT;cm.defaultProps=tT;const nT=cm;function se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Rd={exports:{}},GS={exports:{}},ye={};/** @license React v16.13.1 + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var qe=typeof Symbol=="function"&&Symbol.for,fm=qe?Symbol.for("react.element"):60103,dm=qe?Symbol.for("react.portal"):60106,Fu=qe?Symbol.for("react.fragment"):60107,ku=qe?Symbol.for("react.strict_mode"):60108,Du=qe?Symbol.for("react.profiler"):60114,$u=qe?Symbol.for("react.provider"):60109,Au=qe?Symbol.for("react.context"):60110,pm=qe?Symbol.for("react.async_mode"):60111,Nu=qe?Symbol.for("react.concurrent_mode"):60111,Lu=qe?Symbol.for("react.forward_ref"):60112,Vu=qe?Symbol.for("react.suspense"):60113,rT=qe?Symbol.for("react.suspense_list"):60120,Uu=qe?Symbol.for("react.memo"):60115,ju=qe?Symbol.for("react.lazy"):60116,oT=qe?Symbol.for("react.block"):60121,iT=qe?Symbol.for("react.fundamental"):60117,aT=qe?Symbol.for("react.responder"):60118,sT=qe?Symbol.for("react.scope"):60119;function kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fm:switch(e=e.type,e){case pm:case Nu:case Fu:case Du:case ku:case Vu:return e;default:switch(e=e&&e.$$typeof,e){case Au:case Lu:case ju:case Uu:case $u:return e;default:return t}}case dm:return t}}}function qS(e){return kt(e)===Nu}ye.AsyncMode=pm;ye.ConcurrentMode=Nu;ye.ContextConsumer=Au;ye.ContextProvider=$u;ye.Element=fm;ye.ForwardRef=Lu;ye.Fragment=Fu;ye.Lazy=ju;ye.Memo=Uu;ye.Portal=dm;ye.Profiler=Du;ye.StrictMode=ku;ye.Suspense=Vu;ye.isAsyncMode=function(e){return qS(e)||kt(e)===pm};ye.isConcurrentMode=qS;ye.isContextConsumer=function(e){return kt(e)===Au};ye.isContextProvider=function(e){return kt(e)===$u};ye.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fm};ye.isForwardRef=function(e){return kt(e)===Lu};ye.isFragment=function(e){return kt(e)===Fu};ye.isLazy=function(e){return kt(e)===ju};ye.isMemo=function(e){return kt(e)===Uu};ye.isPortal=function(e){return kt(e)===dm};ye.isProfiler=function(e){return kt(e)===Du};ye.isStrictMode=function(e){return kt(e)===ku};ye.isSuspense=function(e){return kt(e)===Vu};ye.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fu||e===Nu||e===Du||e===ku||e===Vu||e===rT||typeof e=="object"&&e!==null&&(e.$$typeof===ju||e.$$typeof===Uu||e.$$typeof===$u||e.$$typeof===Au||e.$$typeof===Lu||e.$$typeof===iT||e.$$typeof===aT||e.$$typeof===sT||e.$$typeof===oT)};ye.typeOf=kt;GS.exports=ye;var QS=GS.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=R,r=s(n),o=QS,i=Iu,a=s(i);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,f,d,p){var v=u[c];return r.default.isValidElement(v)?new Error("Invalid "+d+" `"+p+"` of type ReactElement "+("supplied to `"+f+"`,expected an element type (a string ")+", component class, or function component)."):(0,o.isValidElementType)(v)?null:new Error("Invalid "+d+" `"+p+"` of value `"+v+"` "+("supplied to `"+f+"`, expected an element type (a string ")+", component class, or function component).")}t.default=(0,a.default)(l),e.exports=t.default})(Rd,Rd.exports);var hm=Rd.exports;const wr=pe(hm);function Ee(){for(var e=arguments.length,t=new Array(e),n=0;n>>1,q=D[Y];if(0>>1;Yo(tt,B))weo(Qe,tt)?(D[Y]=Qe,D[we]=B,Y=we):(D[Y]=tt,D[Se]=B,Y=Se);else if(weo(Qe,B))D[Y]=Qe,D[we]=B,Y=we;else break e}}return j}function o(D,j){var B=D.sortIndex-j.sortIndex;return B!==0?B:D.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,d=3,p=!1,v=!1,h=!1,w=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(D){for(var j=n(u);j!==null;){if(j.callback===null)r(u);else if(j.startTime<=D)r(u),j.sortIndex=j.expirationTime,t(l,j);else break;j=n(u)}}function b(D){if(h=!1,y(D),!v)if(n(l)!==null)v=!0,te(E);else{var j=n(u);j!==null&&ne(b,j.startTime-D)}}function E(D,j){v=!1,h&&(h=!1,m(O),O=-1),p=!0;var B=d;try{for(y(j),f=n(l);f!==null&&(!(f.expirationTime>j)||D&&!$());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var q=Y(f.expirationTime<=j);j=e.unstable_now(),typeof q=="function"?f.callback=q:f===n(l)&&r(l),y(j)}else r(l);f=n(l)}if(f!==null)var ve=!0;else{var Se=n(u);Se!==null&&ne(b,Se.startTime-j),ve=!1}return ve}finally{f=null,d=B,p=!1}}var C=!1,_=null,O=-1,M=5,P=-1;function $(){return!(e.unstable_now()-PD||125Y?(D.sortIndex=B,t(u,D),n(l)===null&&D===n(u)&&(h?(m(O),O=-1):h=!0,ne(b,B-Y))):(D.sortIndex=q,t(l,D),v||p||(v=!0,te(E))),D},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(D){var j=d;return function(){var B=d;d=j;try{return D.apply(this,arguments)}finally{d=B}}}})(YS);XS.exports=YS;var gT=XS.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ZS=R,Tt=gT;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Td=Object.prototype.hasOwnProperty,yT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ly={},uy={};function wT(e){return Td.call(uy,e)?!0:Td.call(ly,e)?!1:yT.test(e)?uy[e]=!0:(ly[e]=!0,!1)}function ST(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bT(e,t,n,r){if(t===null||typeof t>"u"||ST(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mt(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var et={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){et[e]=new mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];et[t]=new mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){et[e]=new mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){et[e]=new mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){et[e]=new mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){et[e]=new mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){et[e]=new mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){et[e]=new mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){et[e]=new mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wm=/[\-:]([a-z])/g;function Sm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wm,Sm);et[t]=new mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wm,Sm);et[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wm,Sm);et[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){et[e]=new mt(e,1,!1,e.toLowerCase(),null,!1,!1)});et.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){et[e]=new mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function bm(e,t,n,r){var o=et.hasOwnProperty(t)?et[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` +`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{vf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mi(e):""}function CT(e){switch(e.tag){case 5:return Mi(e.type);case 16:return Mi("Lazy");case 13:return Mi("Suspense");case 19:return Mi("SuspenseList");case 0:case 2:case 15:return e=gf(e.type,!1),e;case 11:return e=gf(e.type.render,!1),e;case 1:return e=gf(e.type,!0),e;default:return""}}function kd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vo:return"Fragment";case mo:return"Portal";case Id:return"Profiler";case Cm:return"StrictMode";case Md:return"Suspense";case Fd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tb:return(e.displayName||"Context")+".Consumer";case eb:return(e._context.displayName||"Context")+".Provider";case xm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _m:return t=e.displayName||null,t!==null?t:kd(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return kd(e(t))}catch{}}return null}function xT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return kd(t);case 8:return t===Cm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _T(e){var t=rb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function as(e){e._valueTracker||(e._valueTracker=_T(e))}function ob(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rb(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Dd(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fy(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=mr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ib(e,t){t=t.checked,t!=null&&bm(e,"checked",t,!1)}function $d(e,t){ib(e,t);var n=mr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ad(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ad(e,t.type,mr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dy(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ad(e,t,n){(t!=="number"||xl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fi=Array.isArray;function To(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ss.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Yi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ui={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ET=["Webkit","ms","Moz","O"];Object.keys(Ui).forEach(function(e){ET.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ui[t]=Ui[e]})});function ub(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ui.hasOwnProperty(e)&&Ui[e]?(""+t).trim():t+"px"}function cb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ub(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var OT=Ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vd(e,t){if(t){if(OT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function Ud(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jd=null;function Em(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bd=null,Io=null,Mo=null;function my(e){if(e=Ga(e)){if(typeof Bd!="function")throw Error(k(280));var t=e.stateNode;t&&(t=qu(t),Bd(e.stateNode,e.type,t))}}function fb(e){Io?Mo?Mo.push(e):Mo=[e]:Io=e}function db(){if(Io){var e=Io,t=Mo;if(Mo=Io=null,my(e),t)for(e=0;e>>=0,e===0?32:31-(NT(e)/LT|0)|0}var ls=64,us=4194304;function ki(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ki(s):(i&=a,i!==0&&(r=ki(i)))}else a=n&~o,a!==0?r=ki(a):i!==0&&(r=ki(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ha(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-en(t),e[t]=n}function BT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Bi),_y=" ",Ey=!1;function Fb(e,t){switch(e){case"keyup":return vI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var go=!1;function yI(e,t){switch(e){case"compositionend":return kb(t);case"keypress":return t.which!==32?null:(Ey=!0,_y);case"textInput":return e=t.data,e===_y&&Ey?null:e;default:return null}}function wI(e,t){if(go)return e==="compositionend"||!km&&Fb(e,t)?(e=Ib(),ll=Im=rr=null,go=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ty(n)}}function Nb(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lb(){for(var e=window,t=xl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xl(e.document)}return t}function Dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function PI(e){var t=Lb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nb(n.ownerDocument.documentElement,n)){if(r!==null&&Dm(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Iy(n,i);var a=Iy(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,yo=null,Qd=null,Hi=null,Kd=!1;function My(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kd||yo==null||yo!==xl(r)||(r=yo,"selectionStart"in r&&Dm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Hi&&ra(Hi,r)||(Hi=r,r=Il(Qd,"onSelect"),0bo||(e.current=tp[bo],tp[bo]=null,bo--)}function Ce(e,t){bo++,tp[bo]=e.current,e.current=t}var vr={},ct=br(vr),wt=br(!1),qr=vr;function ei(e,t){var n=e.type.contextTypes;if(!n)return vr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function St(e){return e=e.childContextTypes,e!=null}function Fl(){Oe(wt),Oe(ct)}function Ly(e,t,n){if(ct.current!==vr)throw Error(k(168));Ce(ct,t),Ce(wt,n)}function qb(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(k(108,xT(e)||"Unknown",o));return Ie({},n,r)}function kl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vr,qr=ct.current,Ce(ct,e),Ce(wt,wt.current),!0}function Vy(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=qb(e,t,qr),r.__reactInternalMemoizedMergedChildContext=e,Oe(wt),Oe(ct),Ce(ct,e)):Oe(wt),Ce(wt,n)}var Pn=null,Qu=!1,Mf=!1;function Qb(e){Pn===null?Pn=[e]:Pn.push(e)}function UI(e){Qu=!0,Qb(e)}function Cr(){if(!Mf&&Pn!==null){Mf=!0;var e=0,t=ge;try{var n=Pn;for(ge=1;e>=a,o-=a,In=1<<32-en(t)+o|n<O?(M=_,_=null):M=_.sibling;var P=d(m,_,y[O],b);if(P===null){_===null&&(_=M);break}e&&_&&P.alternate===null&&t(m,_),g=i(P,g,O),C===null?E=P:C.sibling=P,C=P,_=M}if(O===y.length)return n(m,_),Re&&Er(m,O),E;if(_===null){for(;OO?(M=_,_=null):M=_.sibling;var $=d(m,_,P.value,b);if($===null){_===null&&(_=M);break}e&&_&&$.alternate===null&&t(m,_),g=i($,g,O),C===null?E=$:C.sibling=$,C=$,_=M}if(P.done)return n(m,_),Re&&Er(m,O),E;if(_===null){for(;!P.done;O++,P=y.next())P=f(m,P.value,b),P!==null&&(g=i(P,g,O),C===null?E=P:C.sibling=P,C=P);return Re&&Er(m,O),E}for(_=r(m,_);!P.done;O++,P=y.next())P=p(_,m,O,P.value,b),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?O:P.key),g=i(P,g,O),C===null?E=P:C.sibling=P,C=P);return e&&_.forEach(function(A){return t(m,A)}),Re&&Er(m,O),E}function w(m,g,y,b){if(typeof y=="object"&&y!==null&&y.type===vo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case is:e:{for(var E=y.key,C=g;C!==null;){if(C.key===E){if(E=y.type,E===vo){if(C.tag===7){n(m,C.sibling),g=o(C,y.props.children),g.return=m,m=g;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Gn&&Gy(E)===C.type){n(m,C.sibling),g=o(C,y.props),g.ref=_i(m,C,y),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}y.type===vo?(g=Hr(y.props.children,m.mode,b,y.key),g.return=m,m=g):(b=vl(y.type,y.key,y.props,null,m.mode,b),b.ref=_i(m,g,y),b.return=m,m=b)}return a(m);case mo:e:{for(C=y.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(m,g.sibling),g=o(g,y.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Vf(y,m.mode,b),g.return=m,m=g}return a(m);case Gn:return C=y._init,w(m,g,C(y._payload),b)}if(Fi(y))return v(m,g,y,b);if(wi(y))return h(m,g,y,b);vs(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,y),g.return=m,m=g):(n(m,g),g=Lf(y,m.mode,b),g.return=m,m=g),a(m)):n(m,g)}return w}var ni=nC(!0),rC=nC(!1),qa={},bn=br(qa),sa=br(qa),la=br(qa);function Mr(e){if(e===qa)throw Error(k(174));return e}function zm(e,t){switch(Ce(la,t),Ce(sa,e),Ce(bn,qa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ld(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ld(t,e)}Oe(bn),Ce(bn,t)}function ri(){Oe(bn),Oe(sa),Oe(la)}function oC(e){Mr(la.current);var t=Mr(bn.current),n=Ld(t,e.type);t!==n&&(Ce(sa,e),Ce(bn,n))}function Hm(e){sa.current===e&&(Oe(bn),Oe(sa))}var Pe=br(0);function Vl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ff=[];function Wm(){for(var e=0;en?n:4,e(!0);var r=kf.transition;kf.transition={};try{e(!1),t()}finally{ge=n,kf.transition=r}}function SC(){return Qt().memoizedState}function HI(e,t,n){var r=pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bC(e))CC(t,n);else if(n=Zb(e,t,n,r),n!==null){var o=pt();tn(n,e,r,o),xC(n,t,r)}}function WI(e,t,n){var r=pr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bC(e))CC(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,an(s,a)){var l=t.interleaved;l===null?(o.next=o,jm(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Zb(e,t,o,r),n!==null&&(o=pt(),tn(n,e,r,o),xC(n,t,r))}}function bC(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function CC(e,t){Wi=Ul=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rm(e,n)}}var jl={readContext:qt,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useInsertionEffect:ot,useLayoutEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useMutableSource:ot,useSyncExternalStore:ot,useId:ot,unstable_isNewReconciler:!1},GI={readContext:qt,useCallback:function(e,t){return cn().memoizedState=[e,t===void 0?null:t],e},useContext:qt,useEffect:Qy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,dl(4194308,4,mC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return dl(4194308,4,e,t)},useInsertionEffect:function(e,t){return dl(4,2,e,t)},useMemo:function(e,t){var n=cn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=cn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=HI.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=cn();return e={current:e},t.memoizedState=e},useState:qy,useDebugValue:Xm,useDeferredValue:function(e){return cn().memoizedState=e},useTransition:function(){var e=qy(!1),t=e[0];return e=zI.bind(null,e[1]),cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Te,o=cn();if(Re){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),Ge===null)throw Error(k(349));Kr&30||sC(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Qy(uC.bind(null,r,i,e),[e]),r.flags|=2048,fa(9,lC.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=cn(),t=Ge.identifierPrefix;if(Re){var n=Mn,r=In;n=(r&~(1<<32-en(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ua++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[gn]=t,e[aa]=r,FC(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ud(n,r),n){case"dialog":_e("cancel",e),_e("close",e),o=r;break;case"iframe":case"object":case"embed":_e("load",e),o=r;break;case"video":case"audio":for(o=0;oii&&(t.flags|=128,r=!0,Ei(i,!1),t.lanes=4194304)}else{if(!r)if(e=Vl(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ei(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Re)return it(t),null}else 2*ke()-i.renderingStartTime>ii&&n!==1073741824&&(t.flags|=128,r=!0,Ei(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ke(),t.sibling=null,n=Pe.current,Ce(Pe,r?n&1|2:n&1),t):(it(t),null);case 22:case 23:return nv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Et&1073741824&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function eM(e,t){switch(Am(t),t.tag){case 1:return St(t.type)&&Fl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ri(),Oe(wt),Oe(ct),Wm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hm(t),null;case 13:if(Oe(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));ti()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(Pe),null;case 4:return ri(),null;case 10:return Um(t.type._context),null;case 22:case 23:return nv(),null;case 24:return null;default:return null}}var ys=!1,ut=!1,tM=typeof WeakSet=="function"?WeakSet:Set,U=null;function Eo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Me(e,t,r)}else n.current=null}function pp(e,t,n){try{n()}catch(r){Me(e,t,r)}}var r0=!1;function nM(e,t){if(Xd=Pl,e=Lb(),Dm(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===o&&(s=a),d===i&&++c===r&&(l=a),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yd={focusedElem:e,selectionRange:n},Pl=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var h=v.memoizedProps,w=v.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?h:Xt(t.type,h),w);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(b){Me(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return v=r0,r0=!1,v}function Gi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&pp(t,n,i)}o=o.next}while(o!==r)}}function Yu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $C(e){var t=e.alternate;t!==null&&(e.alternate=null,$C(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gn],delete t[aa],delete t[ep],delete t[LI],delete t[VI])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function AC(e){return e.tag===5||e.tag===3||e.tag===4}function o0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||AC(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ml));else if(r!==4&&(e=e.child,e!==null))for(mp(e,t,n),e=e.sibling;e!==null;)mp(e,t,n),e=e.sibling}function vp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(vp(e,t,n),e=e.sibling;e!==null;)vp(e,t,n),e=e.sibling}var Ke=null,Zt=!1;function zn(e,t,n){for(n=n.child;n!==null;)NC(e,t,n),n=n.sibling}function NC(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(zu,n)}catch{}switch(n.tag){case 5:ut||Eo(n,t);case 6:var r=Ke,o=Zt;Ke=null,zn(e,t,n),Ke=r,Zt=o,Ke!==null&&(Zt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Zt?(e=Ke,n=n.stateNode,e.nodeType===8?If(e.parentNode,n):e.nodeType===1&&If(e,n),ta(e)):If(Ke,n.stateNode));break;case 4:r=Ke,o=Zt,Ke=n.stateNode.containerInfo,Zt=!0,zn(e,t,n),Ke=r,Zt=o;break;case 0:case 11:case 14:case 15:if(!ut&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&pp(n,t,a),o=o.next}while(o!==r)}zn(e,t,n);break;case 1:if(!ut&&(Eo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Me(n,t,s)}zn(e,t,n);break;case 21:zn(e,t,n);break;case 22:n.mode&1?(ut=(r=ut)||n.memoizedState!==null,zn(e,t,n),ut=r):zn(e,t,n);break;default:zn(e,t,n)}}function i0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tM),t.forEach(function(r){var o=fM.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oM(r/1960))-r,10e?16:e,or===null)var r=!1;else{if(e=or,or=null,Hl=0,fe&6)throw Error(k(331));var o=fe;for(fe|=4,U=e.current;U!==null;){var i=U,a=i.child;if(U.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lke()-ev?zr(e,0):Jm|=n),bt(e,t)}function WC(e,t){t===0&&(e.mode&1?(t=us,us<<=1,!(us&130023424)&&(us=4194304)):t=1);var n=pt();e=Nn(e,t),e!==null&&(Ha(e,t,n),bt(e,n))}function cM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),WC(e,n)}function fM(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),WC(e,n)}var GC;GC=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||wt.current)yt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return yt=!1,ZI(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Re&&t.flags&1048576&&Kb(t,$l,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pl(e,t),e=t.pendingProps;var o=ei(t,ct.current);ko(t,n),o=qm(null,t,r,e,o,n);var i=Qm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,St(r)?(i=!0,kl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Bm(t),o.updater=Ku,t.stateNode=o,o._reactInternals=t,ap(t,r,e,n),t=up(null,t,r,!0,i,n)):(t.tag=0,Re&&i&&$m(t),dt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=pM(r),e=Xt(r,e),o){case 0:t=lp(null,t,r,e,n);break e;case 1:t=e0(null,t,r,e,n);break e;case 11:t=Zy(null,t,r,e,n);break e;case 14:t=Jy(null,t,r,Xt(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),lp(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),e0(e,t,r,o,n);case 3:e:{if(TC(t),e===null)throw Error(k(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jb(e,t),Ll(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=oi(Error(k(423)),t),t=t0(e,t,r,n,o);break e}else if(r!==o){o=oi(Error(k(424)),t),t=t0(e,t,r,n,o);break e}else for(Ot=cr(t.stateNode.containerInfo.firstChild),Rt=t,Re=!0,Jt=null,n=rC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ti(),r===o){t=Ln(e,t,n);break e}dt(e,t,r,n)}t=t.child}return t;case 5:return oC(t),e===null&&rp(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Zd(r,o)?a=null:i!==null&&Zd(r,i)&&(t.flags|=32),PC(e,t),dt(e,t,a,n),t.child;case 6:return e===null&&rp(t),null;case 13:return IC(e,t,n);case 4:return zm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ni(t,null,r,n):dt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),Zy(e,t,r,o,n);case 7:return dt(e,t,t.pendingProps,n),t.child;case 8:return dt(e,t,t.pendingProps.children,n),t.child;case 12:return dt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Ce(Al,r._currentValue),r._currentValue=a,i!==null)if(an(i.value,a)){if(i.children===o.children&&!wt.current){t=Ln(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Fn(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),op(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(k(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),op(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}dt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ko(t,n),o=qt(o),r=r(o),t.flags|=1,dt(e,t,r,n),t.child;case 14:return r=t.type,o=Xt(r,t.pendingProps),o=Xt(r.type,o),Jy(e,t,r,o,n);case 15:return OC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xt(r,o),pl(e,t),t.tag=1,St(r)?(e=!0,kl(t)):e=!1,ko(t,n),tC(t,r,o),ap(t,r,o,n),up(null,t,r,!0,e,n);case 19:return MC(e,t,n);case 22:return RC(e,t,n)}throw Error(k(156,t.tag))};function qC(e,t){return wb(e,t)}function dM(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,n,r){return new dM(e,t,n,r)}function ov(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pM(e){if(typeof e=="function")return ov(e)?1:0;if(e!=null){if(e=e.$$typeof,e===xm)return 11;if(e===_m)return 14}return 2}function hr(e,t){var n=e.alternate;return n===null?(n=Ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function vl(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")ov(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case vo:return Hr(n.children,o,i,t);case Cm:a=8,o|=8;break;case Id:return e=Ht(12,n,t,o|2),e.elementType=Id,e.lanes=i,e;case Md:return e=Ht(13,n,t,o),e.elementType=Md,e.lanes=i,e;case Fd:return e=Ht(19,n,t,o),e.elementType=Fd,e.lanes=i,e;case nb:return Ju(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case eb:a=10;break e;case tb:a=9;break e;case xm:a=11;break e;case _m:a=14;break e;case Gn:a=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=Ht(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Hr(e,t,n,r){return e=Ht(7,e,r,t),e.lanes=n,e}function Ju(e,t,n,r){return e=Ht(22,e,r,t),e.elementType=nb,e.lanes=n,e.stateNode={isHidden:!1},e}function Lf(e,t,n){return e=Ht(6,e,null,t),e.lanes=n,e}function Vf(e,t,n){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hM(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=wf(0),this.expirationTimes=wf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wf(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function iv(e,t,n,r,o,i,a,s,l){return e=new hM(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bm(i),e}function mM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(YC)}catch(e){console.error(e)}}YC(),KS.exports=Dt;var ln=KS.exports;const ai=pe(ln);var ZC={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ZC);var Ne=ZC.exports,ie={},bs={exports:{}},p0;function jn(){return p0||(p0=1,function(e,t){t.__esModule=!0,t.default=void 0;var n=!!(typeof window<"u"&&window.document&&window.document.createElement);t.default=n,e.exports=t.default}(bs,bs.exports)),bs.exports}var h0;function SM(){if(h0)return ie;h0=1;var e=Ne;ie.__esModule=!0,ie.default=ie.animationEnd=ie.animationDelay=ie.animationTiming=ie.animationDuration=ie.animationName=ie.transitionEnd=ie.transitionDuration=ie.transitionDelay=ie.transitionTiming=ie.transitionProperty=ie.transform=void 0;var t=e(jn()),n="transform";ie.transform=n;var r,o,i;ie.animationEnd=i,ie.transitionEnd=o;var a,s,l,u;ie.transitionDelay=u,ie.transitionTiming=l,ie.transitionDuration=s,ie.transitionProperty=a;var c,f,d,p;if(ie.animationDelay=p,ie.animationTiming=d,ie.animationDuration=f,ie.animationName=c,t.default){var v=w();r=v.prefix,ie.transitionEnd=o=v.transitionEnd,ie.animationEnd=i=v.animationEnd,ie.transform=n=r+"-"+n,ie.transitionProperty=a=r+"-transition-property",ie.transitionDuration=s=r+"-transition-duration",ie.transitionDelay=u=r+"-transition-delay",ie.transitionTiming=l=r+"-transition-timing-function",ie.animationName=c=r+"-animation-name",ie.animationDuration=f=r+"-animation-duration",ie.animationTiming=d=r+"-animation-delay",ie.animationDelay=p=r+"-animation-timing-function"}var h={transform:n,end:o,property:a,timing:l,delay:u,duration:s};ie.default=h;function w(){for(var m=document.createElement("div").style,g={O:function(P){return"o"+P.toLowerCase()},Moz:function(P){return P.toLowerCase()},Webkit:function(P){return"webkit"+P},ms:function(P){return"MS"+P}},y=Object.keys(g),b,E,C="",_=0;_>>0||(NM.test(r)?16:10))}:Ts,jf=sn,E0=LM;jf(jf.G+jf.F*(parseInt!=E0),{parseInt:E0});var VM=Ft.parseInt,UM=VM;const O0=pe(UM),jM=LE(FP);var uv=ax=fv=cv=ix=void 0,BM=WM(Vn),Bf=ox(R),zM=ox(ln),HM=jM;function ox(e){return e&&e.__esModule?e:{default:e}}function WM(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}}return t.default=e,t}function GM(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function qM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Is="unmounted",Rr="exited",ix=Rr,Pr="entering",cv=Pr,ho="entered",fv=ho,xp="exiting",ax=xp,xn=function(e){qM(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o.transitionGroup,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=Rr,i.appearStatus=Pr):l=ho:r.unmountOnExit||r.mountOnEnter?l=Is:l=Rr,i.state={status:l},i.nextCallback=null,i}var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Is?{status:Rr}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Pr&&a!==ho&&(i=Pr):(a===Pr||a===ho)&&(i=xp)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null){this.cancelNextCallback();var a=zM.default.findDOMNode(this);i===Pr?this.performEnter(a,o):this.performExit(a)}else this.props.unmountOnExit&&this.state.status===Rr&&this.setState({status:Is})},n.performEnter=function(o,i){var a=this,s=this.props.enter,l=this.context.transitionGroup?this.context.transitionGroup.isMounting:i,u=this.getTimeouts(),c=l?u.appear:u.enter;if(!i&&!s){this.safeSetState({status:ho},function(){a.props.onEntered(o)});return}this.props.onEnter(o,l),this.safeSetState({status:Pr},function(){a.props.onEntering(o,l),a.onTransitionEnd(o,c,function(){a.safeSetState({status:ho},function(){a.props.onEntered(o,l)})})})},n.performExit=function(o){var i=this,a=this.props.exit,s=this.getTimeouts();if(!a){this.safeSetState({status:Rr},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:xp},function(){i.props.onExiting(o),i.onTransitionEnd(o,s.exit,function(){i.safeSetState({status:Rr},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i,a){this.setNextCallback(a);var s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(o,this.nextCallback),i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var o=this.state.status;if(o===Is)return null;var i=this.props,a=i.children,s=GM(i,["children"]);if(delete s.in,delete s.mountOnEnter,delete s.unmountOnExit,delete s.appear,delete s.enter,delete s.exit,delete s.timeout,delete s.addEndListener,delete s.onEnter,delete s.onEntering,delete s.onEntered,delete s.onExit,delete s.onExiting,delete s.onExited,typeof a=="function")return a(o,s);var l=Bf.default.Children.only(a);return Bf.default.cloneElement(l,s)},t}(Bf.default.Component);xn.contextTypes={transitionGroup:BM.object};xn.childContextTypes={transitionGroup:function(){}};xn.propTypes={};function co(){}xn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:co,onEntering:co,onEntered:co,onExit:co,onExiting:co,onExited:co};xn.UNMOUNTED=0;xn.EXITED=1;xn.ENTERING=2;xn.ENTERED=3;xn.EXITING=4;var QM=(0,HM.polyfill)(xn);uv=QM;var fo,KM={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function XM(e){e.offsetHeight}function YM(e,t){var n=t["offset"+tx(e)],r=KM[e];return n+O0(C0(t,r[0]),10)+O0(C0(t,r[1]),10)}var ZM=(fo={},fo[ix]="collapse",fo[ax]="collapsing",fo[cv]="collapsing",fo[fv]="collapse in",fo),JM={in:S.bool,mountOnEnter:S.bool,unmountOnExit:S.bool,appear:S.bool,timeout:S.number,onEnter:S.func,onEntering:S.func,onEntered:S.func,onExit:S.func,onExiting:S.func,onExited:S.func,dimension:S.oneOfType([S.oneOf(["height","width"]),S.func]),getDimensionValue:S.func,role:S.string},eF={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,dimension:"height",getDimensionValue:YM},dv=function(e){ce(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a>",f=u||a;if(i[a]==null)return new Error("The "+l+" `"+f+"` is required to make "+("`"+c+"` accessible for users of assistive ")+"technologies such as screen readers.");for(var d=arguments.length,p=Array(d>5?d-5:0),v=5;v=i?e?"":void 0:(a=r.charCodeAt(o),a<55296||a>56319||o+1===i||(s=r.charCodeAt(o+1))<56320||s>57343?e?r.charAt(o):a:e?r.slice(o,o+2):(a-55296<<10)+(s-56320)+65536)}},zf,P0;function lF(){return P0||(P0=1,zf=bu),zf}var hv={},ux={exports:{}},Pp=OS()("wks"),uF=RS(),Tp=fi.Symbol,T0=typeof Tp=="function",cF=ux.exports=function(e){return Pp[e]||(Pp[e]=T0&&Tp[e]||(T0?Tp:uF)("Symbol."+e))};cF.store=Pp;var oo=ux.exports,Hf,I0;function cx(){if(I0)return Hf;I0=1;var e=Va.f,t=Ba,n=oo("toStringTag");return Hf=function(r,o,i){r&&!t(r=i?r:r.prototype,n)&&e(r,n,{configurable:!0,value:o})},Hf}var Wf,M0;function fF(){if(M0)return Wf;M0=1;var e=IS(),t=Su,n=cx(),r={};return bu(r,oo("iterator"),function(){return this}),Wf=function(o,i,a){o.prototype=e(r,{next:t(1,a)}),n(o,i+" Iterator")},Wf}var Gf,F0;function dF(){if(F0)return Gf;F0=1;var e=Ba,t=Ou,n=im()("IE_PROTO"),r=Object.prototype;return Gf=Object.getPrototypeOf||function(o){return o=t(o),e(o,n)?o[n]:typeof o.constructor=="function"&&o instanceof o.constructor?o.constructor.prototype:o instanceof Object?r:null},Gf}var qf,k0;function pF(){if(k0)return qf;k0=1;var e=ES(),t=sn,n=lF(),r=bu,o=hv,i=fF(),a=cx(),s=dF(),l=oo("iterator"),u=!([].keys&&"next"in[].keys()),c="@@iterator",f="keys",d="values",p=function(){return this};return qf=function(v,h,w,m,g,y,b){i(w,h,m);var E=function(ne){if(!u&&ne in M)return M[ne];switch(ne){case f:return function(){return new w(this,ne)};case d:return function(){return new w(this,ne)}}return function(){return new w(this,ne)}},C=h+" Iterator",_=g==d,O=!1,M=v.prototype,P=M[l]||M[c]||g&&M[g],$=P||E(g),A=g?_?E("entries"):$:void 0,H=h=="Array"&&M.entries||P,J,ee,te;if(H&&(te=s(H.call(new v)),te!==Object.prototype&&te.next&&(a(te,C,!0),!e&&typeof te[l]!="function"&&r(te,l,p))),_&&P&&P.name!==d&&(O=!0,$=function(){return P.call(this)}),(!e||b)&&(u||O||!M[l])&&r(M,l,$),o[h]=$,o[C]=p,g)if(J={values:_?$:E(d),keys:y?$:E(f),entries:A},b)for(ee in J)ee in M||n(M,ee,J[ee]);else t(t.P+t.F*(u||O),h,J);return J},qf}var hF=sF(!0);pF()(String,"String",function(e){this._t=String(e),this._i=0},function(){var e=this._t,t=this._i,n;return t>=e.length?{value:void 0,done:!0}:(n=hF(e,t),this._i+=n.length,{value:n,done:!1})});var D0=Ua(),mF=function(e,t,n,r){try{return r?t(D0(n)[0],n[1]):t(n)}catch(i){var o=e.return;throw o!==void 0&&D0(o.call(e)),i}},vF=hv,gF=oo("iterator"),yF=Array.prototype,wF=function(e){return e!==void 0&&(vF.Array===e||yF[gF]===e)},SF=Va,bF=Su,CF=function(e,t,n){t in e?SF.f(e,t,bF(0,n)):e[t]=n},Ip=rm,xF=oo("toStringTag"),_F=Ip(function(){return arguments}())=="Arguments",EF=function(e,t){try{return e[t]}catch{}},OF=function(e){var t,n,r;return e===void 0?"Undefined":e===null?"Null":typeof(n=EF(t=Object(e),xF))=="string"?n:_F?Ip(t):(r=Ip(t))=="Object"&&typeof t.callee=="function"?"Arguments":r},RF=OF,PF=oo("iterator"),TF=hv,IF=Ft.getIteratorMethod=function(e){if(e!=null)return e[PF]||e["@@iterator"]||TF[RF(e)]},Qf,$0;function MF(){if($0)return Qf;$0=1;var e=oo("iterator"),t=!1;try{var n=[7][e]();n.return=function(){t=!0},Array.from(n,function(){throw 2})}catch{}return Qf=function(r,o){if(!o&&!t)return!1;var i=!1;try{var a=[7],s=a[e]();s.next=function(){return{done:i=!0}},a[e]=function(){return s},r(a)}catch{}return i},Qf}var FF=nm,Kf=sn,kF=Ou,DF=mF,$F=wF,AF=_S,A0=CF,NF=IF;Kf(Kf.S+Kf.F*!MF()(function(e){Array.from(e)}),"Array",{from:function(t){var n=kF(t),r=typeof this=="function"?this:Array,o=arguments.length,i=o>1?arguments[1]:void 0,a=i!==void 0,s=0,l=NF(n),u,c,f,d;if(a&&(i=FF(i,o>2?arguments[2]:void 0,2)),l!=null&&!(r==Array&&$F(l)))for(d=l.call(n),c=new r;!(f=d.next()).done;s++)A0(c,s,a?DF(d,i,[f.value,s],!0):f.value);else for(u=AF(n.length),c=new r(u);u>s;s++)A0(c,s,a?i(n[s],s):n[s]);return c.length=s,c}});var LF=Ft.Array.from,VF=LF;const UF=pe(VF);var Mp={exports:{}},Fp={exports:{}},Fs={exports:{}},N0;function mv(){return N0||(N0=1,function(e,t){var n=Ne;t.__esModule=!0,t.default=void 0;var r=n(jn()),o=function(){};r.default&&(o=function(){if(document.addEventListener)return function(a,s,l,u){return a.addEventListener(s,l,u||!1)};if(document.attachEvent)return function(a,s,l){return a.attachEvent("on"+s,function(u){u=u||window.event,u.target=u.target||u.srcElement,u.currentTarget=a,l.call(a,u)})}}());var i=o;t.default=i,e.exports=t.default}(Fs,Fs.exports)),Fs.exports}var ks={exports:{}},L0;function vv(){return L0||(L0=1,function(e,t){var n=Ne;t.__esModule=!0,t.default=void 0;var r=n(jn()),o=function(){};r.default&&(o=function(){if(document.addEventListener)return function(a,s,l,u){return a.removeEventListener(s,l,u||!1)};if(document.attachEvent)return function(a,s,l){return a.detachEvent("on"+s,l)}}());var i=o;t.default=i,e.exports=t.default}(ks,ks.exports)),ks.exports}(function(e,t){t.__esModule=!0,t.default=function(s,l,u,c){return(0,r.default)(s,l,u,c),{remove:function(){(0,i.default)(s,l,u,c)}}};var n=mv(),r=a(n),o=vv(),i=a(o);function a(s){return s&&s.__esModule?s:{default:s}}e.exports=t.default})(Fp,Fp.exports);var fx=Fp.exports,kp={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(s){return(0,i.default)(r.default.findDOMNode(s))};var n=ln,r=a(n),o=hi(),i=a(o);function a(s){return s&&s.__esModule?s:{default:s}}e.exports=t.default})(kp,kp.exports);var mi=kp.exports;(function(e,t){t.__esModule=!0;var n=Qa,r=v(n),o=Vn,i=v(o),a=R,s=v(a),l=ln,u=v(l),c=fx,f=v(c),d=mi,p=v(d);function v(C){return C&&C.__esModule?C:{default:C}}function h(C,_){if(!(C instanceof _))throw new TypeError("Cannot call a class as a function")}function w(C,_){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:C}function m(C,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);C.prototype=Object.create(_&&_.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(C,_):C.__proto__=_)}var g=27;function y(C){return C.button===0}function b(C){return!!(C.metaKey||C.altKey||C.ctrlKey||C.shiftKey)}var E=function(C){m(_,C);function _(O,M){h(this,_);var P=w(this,C.call(this,O,M));return P.addEventListeners=function(){P.currentEvent=window.event;var $=P.props.event,A=(0,p.default)(P);P.documentMouseCaptureListener=(0,f.default)(A,$,P.handleMouseCapture,!0),P.documentMouseListener=(0,f.default)(A,$,P.handleMouse),P.documentKeyupListener=(0,f.default)(A,"keyup",P.handleKeyUp)},P.removeEventListeners=function(){P.documentMouseCaptureListener&&P.documentMouseCaptureListener.remove(),P.documentMouseListener&&P.documentMouseListener.remove(),P.documentKeyupListener&&P.documentKeyupListener.remove()},P.handleMouseCapture=function($){P.preventMouseRootClose=b($)||!y($)||(0,r.default)(u.default.findDOMNode(P),$.target)},P.handleMouse=function($){if($===P.currentEvent){P.currentEvent=void 0;return}!P.preventMouseRootClose&&P.props.onRootClose&&P.props.onRootClose($)},P.handleKeyUp=function($){if($===P.currentEvent){P.currentEvent=void 0;return}$.keyCode===g&&P.props.onRootClose&&P.props.onRootClose($)},P.preventMouseRootClose=!1,P}return _.prototype.componentDidMount=function(){this.props.disabled||this.addEventListeners()},_.prototype.componentDidUpdate=function(M){!this.props.disabled&&M.disabled?this.addEventListeners():this.props.disabled&&!M.disabled&&this.removeEventListeners()},_.prototype.componentWillUnmount=function(){this.props.disabled||this.removeEventListeners()},_.prototype.render=function(){return this.props.children},_}(s.default.Component);E.displayName="RootCloseWrapper",E.propTypes={onRootClose:i.default.func,children:i.default.element,disabled:i.default.bool,event:i.default.oneOf(["click","mousedown"])},E.defaultProps={event:"click"},t.default=E,e.exports=t.default})(Mp,Mp.exports);var dx=Mp.exports;const jF=pe(dx);var BF={open:S.bool,pullRight:S.bool,onClose:S.func,labelledBy:S.oneOfType([S.string,S.number]),onSelect:S.func,rootCloseEvent:S.oneOf(["click","mousedown"])},zF={bsRole:"menu",pullRight:!1},gv=function(e){ce(t,e);function t(r){var o;return o=e.call(this,r)||this,o.handleRootClose=o.handleRootClose.bind(se(se(o))),o.handleKeyDown=o.handleKeyDown.bind(se(se(o))),o}var n=t.prototype;return n.getFocusableMenuItems=function(){var o=ai.findDOMNode(this);return o?UF(o.querySelectorAll('[tabIndex="-1"]')):[]},n.getItemsAndActiveIndex=function(){var o=this.getFocusableMenuItems(),i=o.indexOf(document.activeElement);return{items:o,activeIndex:i}},n.focusNext=function(){var o=this.getItemsAndActiveIndex(),i=o.items,a=o.activeIndex;if(i.length!==0){var s=a===i.length-1?0:a+1;i[s].focus()}},n.focusPrevious=function(){var o=this.getItemsAndActiveIndex(),i=o.items,a=o.activeIndex;if(i.length!==0){var s=a===0?i.length-1:a-1;i[s].focus()}},n.handleKeyDown=function(o){switch(o.keyCode){case Fr.codes.down:this.focusNext(),o.preventDefault();break;case Fr.codes.up:this.focusPrevious(),o.preventDefault();break;case Fr.codes.esc:case Fr.codes.tab:this.props.onClose(o,{source:"keydown"});break}},n.handleRootClose=function(o){this.props.onClose(o,{source:"rootClose"})},n.render=function(){var o,i=this,a=this.props,s=a.open,l=a.pullRight,u=a.labelledBy,c=a.onSelect,f=a.className,d=a.rootCloseEvent,p=a.children,v=de(a,["open","pullRight","labelledBy","onSelect","className","rootCloseEvent","children"]),h=Tu(v,["onClose"]),w=h[0],m=h[1],g=V({},ft(w),(o={},o[ae(w,"right")]=l,o));return x.createElement(jF,{disabled:!s,onRootClose:this.handleRootClose,event:d},x.createElement("ul",V({},m,{role:"menu",className:ue(f,g),"aria-labelledby":u}),za.map(p,function(y){return x.cloneElement(y,{onKeyDown:Ee(y.props.onKeyDown,i.handleKeyDown),onSelect:Ee(y.props.onSelect,c)})})))},t}(x.Component);gv.propTypes=BF;gv.defaultProps=zF;const px=xe("dropdown-menu",gv);var HF={noCaret:S.bool,open:S.bool,title:S.string,useAnchor:S.bool},WF={open:!1,useAnchor:!1,bsRole:"toggle"},yv=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this.props,i=o.noCaret,a=o.open,s=o.useAnchor,l=o.bsClass,u=o.className,c=o.children,f=de(o,["noCaret","open","useAnchor","bsClass","className","children"]);delete f.bsRole;var d=s?Bu:Ye,p=!i;return x.createElement(d,V({},f,{role:"button",className:ue(u,l),"aria-haspopup":!0,"aria-expanded":a}),c||f.title,p&&" ",p&&x.createElement("span",{className:"caret"}))},t}(x.Component);yv.propTypes=HF;yv.defaultProps=WF;const ic=xe("dropdown-toggle",yv);var hx=ic.defaultProps.bsRole,Dp=px.defaultProps.bsRole,GF={dropup:S.bool,id:pv(S.oneOfType([S.string,S.number])),componentClass:wr,children:gm(KP(hx,Dp),XP(Dp)),disabled:S.bool,pullRight:S.bool,open:S.bool,defaultOpen:S.bool,onToggle:S.func,onSelect:S.func,role:S.string,rootCloseEvent:S.oneOf(["click","mousedown"]),onMouseEnter:S.func,onMouseLeave:S.func},qF={componentClass:Vi},ac=function(e){ce(t,e);function t(r,o){var i;return i=e.call(this,r,o)||this,i.handleClick=i.handleClick.bind(se(se(i))),i.handleKeyDown=i.handleKeyDown.bind(se(se(i))),i.handleClose=i.handleClose.bind(se(se(i))),i._focusInDropdown=!1,i.lastOpenEventType=null,i}var n=t.prototype;return n.componentDidMount=function(){this.focusNextOnOpen()},n.UNSAFE_componentWillUpdate=function(o){!o.open&&this.props.open&&(this._focusInDropdown=lx(ai.findDOMNode(this.menu),nF(document)))},n.componentDidUpdate=function(o){var i=this.props.open,a=o.open;i&&!a&&this.focusNextOnOpen(),!i&&a&&this._focusInDropdown&&(this._focusInDropdown=!1,this.focus())},n.focus=function(){var o=ai.findDOMNode(this.toggle);o&&o.focus&&o.focus()},n.focusNextOnOpen=function(){var o=this.menu;!o||!o.focusNext||(this.lastOpenEventType==="keydown"||this.props.role==="menuitem")&&o.focusNext()},n.handleClick=function(o){this.props.disabled||this.toggleOpen(o,{source:"click"})},n.handleClose=function(o,i){this.props.open&&this.toggleOpen(o,i)},n.handleKeyDown=function(o){if(!this.props.disabled)switch(o.keyCode){case Fr.codes.down:this.props.open?this.menu.focusNext&&this.menu.focusNext():this.toggleOpen(o,{source:"keydown"}),o.preventDefault();break;case Fr.codes.esc:case Fr.codes.tab:this.handleClose(o,{source:"keydown"});break}},n.toggleOpen=function(o,i){var a=!this.props.open;a&&(this.lastOpenEventType=i.source),this.props.onToggle&&this.props.onToggle(a,o,i)},n.renderMenu=function(o,i){var a=this,s=i.id,l=i.onSelect,u=i.rootCloseEvent,c=de(i,["id","onSelect","rootCloseEvent"]),f=function(p){a.menu=p};return typeof o.ref=="string"||(f=Ee(o.ref,f)),R.cloneElement(o,V({},c,{ref:f,labelledBy:s,bsClass:ae(c,"menu"),onClose:Ee(o.props.onClose,this.handleClose),onSelect:Ee(o.props.onSelect,l,function(d,p){return a.handleClose(p,{source:"select"})}),rootCloseEvent:u}))},n.renderToggle=function(o,i){var a=this,s=function(u){a.toggle=u};return typeof o.ref=="string"||(s=Ee(o.ref,s)),R.cloneElement(o,V({},i,{ref:s,bsClass:ae(i,"toggle"),onClick:Ee(o.props.onClick,this.handleClick),onKeyDown:Ee(o.props.onKeyDown,this.handleKeyDown)}))},n.render=function(){var o,i=this,a=this.props,s=a.componentClass,l=a.id,u=a.dropup,c=a.disabled,f=a.pullRight,d=a.open,p=a.onSelect,v=a.role,h=a.bsClass,w=a.className,m=a.rootCloseEvent,g=a.children,y=de(a,["componentClass","id","dropup","disabled","pullRight","open","onSelect","role","bsClass","className","rootCloseEvent","children"]);delete y.onToggle;var b=(o={},o[h]=!0,o.open=d,o.disabled=c,o);return u&&(b[h]=!1,b.dropup=!0),x.createElement(s,V({},y,{className:ue(w,b)}),za.map(g,function(E){switch(E.props.bsRole){case hx:return i.renderToggle(E,{id:l,disabled:c,open:d,role:v,bsClass:h});case Dp:return i.renderMenu(E,{id:l,open:d,pullRight:f,bsClass:h,onSelect:p,rootCloseEvent:m});default:return E}}))},t}(x.Component);ac.propTypes=GF;ac.defaultProps=qF;xe("dropdown",ac);var wv=am(ac,{open:"onToggle"});wv.Toggle=ic;wv.Menu=px;const gl=wv;function mx(e,t){var n=t.propTypes,r={},o={};return sm(e).forEach(function(i){var a=i[0],s=i[1];n[a]?r[a]=s:o[a]=s}),[r,o]}var Ds,QF={in:S.bool,mountOnEnter:S.bool,unmountOnExit:S.bool,appear:S.bool,timeout:S.number,onEnter:S.func,onEntering:S.func,onEntered:S.func,onExit:S.func,onExiting:S.func,onExited:S.func},KF={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},XF=(Ds={},Ds[cv]="in",Ds[fv]="in",Ds),Sv=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this.props,i=o.className,a=o.children,s=de(o,["className","children"]);return x.createElement(uv,s,function(l,u){return x.cloneElement(a,V({},u,{className:ue("fade",i,a.props.className,XF[l])}))})},t}(x.Component);Sv.propTypes=QF;Sv.defaultProps=KF;const sc=Sv;var YF={responsive:S.bool,rounded:S.bool,circle:S.bool,thumbnail:S.bool},ZF={responsive:!1,rounded:!1,circle:!1,thumbnail:!1},bv=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o,i=this.props,a=i.responsive,s=i.rounded,l=i.circle,u=i.thumbnail,c=i.className,f=de(i,["responsive","rounded","circle","thumbnail","className"]),d=Be(f),p=d[0],v=d[1],h=(o={},o[ae(p,"responsive")]=a,o[ae(p,"rounded")]=s,o[ae(p,"circle")]=l,o[ae(p,"thumbnail")]=u,o);return x.createElement("img",V({},v,{className:ue(c,h)}))},t}(x.Component);bv.propTypes=YF;bv.defaultProps=ZF;const vx=xe("img",bv);var JF=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.hasContent=function(o){var i=!1;return x.Children.forEach(o,function(a){i||(a||a===0)&&(i=!0)}),i},n.render=function(){var o=this.props,i=o.className,a=o.children,s=de(o,["className","children"]),l=Be(s),u=l[0],c=l[1],f=V({},ft(u),{hidden:!this.hasContent(a)});return x.createElement("span",V({},c,{className:ue(i,f)}),a)},t}(x.Component);const $s=xe("label",Pu(Mu(Ru).concat([wn.DEFAULT,wn.PRIMARY]),wn.DEFAULT,JF));var e2={active:S.bool,disabled:S.bool,divider:gm(S.bool,function(e){var t=e.divider,n=e.children;return t&&n?new Error("Children will not be rendered for dividers"):null}),eventKey:S.any,header:S.bool,href:S.string,onClick:S.func,onSelect:S.func},t2={divider:!1,disabled:!1,header:!1},Cv=function(e){ce(t,e);function t(r,o){var i;return i=e.call(this,r,o)||this,i.handleClick=i.handleClick.bind(se(se(i))),i}var n=t.prototype;return n.handleClick=function(o){var i=this.props,a=i.href,s=i.disabled,l=i.onSelect,u=i.eventKey;(!a||s)&&o.preventDefault(),!s&&l&&l(u,o)},n.render=function(){var o=this.props,i=o.active,a=o.disabled,s=o.divider,l=o.header,u=o.onClick,c=o.className,f=o.style,d=de(o,["active","disabled","divider","header","onClick","className","style"]),p=Tu(d,["eventKey","onSelect"]),v=p[0],h=p[1];return s?(h.children=void 0,x.createElement("li",V({},h,{role:"separator",className:ue(c,"divider"),style:f}))):l?x.createElement("li",V({},h,{role:"heading",className:ue(c,ae(v,"header")),style:f})):x.createElement("li",{role:"presentation",className:ue(c,{active:i,disabled:a}),style:f},x.createElement(Bu,V({},h,{role:"menuitem",tabIndex:"-1",onClick:Ee(u,this.handleClick)})))},t}(x.Component);Cv.propTypes=e2;Cv.defaultProps=t2;const n2=xe("dropdown",Cv);var As={exports:{}},Ns={exports:{}},V0;function r2(){return V0||(V0=1,function(e,t){t.__esModule=!0,t.default=o;var n=/^[\w-]*$/,r=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(i,a){var s=a[0]==="#",l=a[0]===".",u=s||l?a.slice(1):a,c=n.test(u),f;return c?s?(i=i.getElementById?i:document,(f=i.getElementById(u))?[f]:[]):i.getElementsByClassName&&l?r(i.getElementsByClassName(u)):r(i.getElementsByTagName(a)):r(i.querySelectorAll(a))}e.exports=t.default}(Ns,Ns.exports)),Ns.exports}var U0;function o2(){return U0||(U0=1,function(e,t){var n=Ne;t.__esModule=!0,t.default=i;var r=n(Qa),o=n(r2());function i(a,s){return function(u){var c=u.currentTarget,f=u.target,d=(0,o.default)(c,a);d.some(function(p){return(0,r.default)(p,f)})&&s.call(this,u)}}e.exports=t.default}(As,As.exports)),As.exports}var Ls={exports:{}},j0;function i2(){return j0||(j0=1,function(e,t){var n=Ne;t.__esModule=!0,t.default=void 0;var r=n(jn()),o=n(mv()),i=n(vv()),a=function(){};r.default&&(a=function(u,c,f,d){return(0,o.default)(u,c,f,d),function(){(0,i.default)(u,c,f,d)}});var s=a;t.default=s,e.exports=t.default}(Ls,Ls.exports)),Ls.exports}var lc=Ne,$p=void 0,gx=lc(mv());gx.default;var yx=lc(vv());yx.default;var wx=lc(o2());wx.default;var Sx=lc(i2());Sx.default;var a2={on:gx.default,off:yx.default,filter:wx.default,listen:Sx.default};$p=a2;var s2=hi();const l2=pe(s2);var u2=jn();const c2=pe(u2);var Ap={exports:{}};(function(e,t){var n=Ne;t.__esModule=!0,t.default=i;var r=n(jn()),o;function i(a){if((!o&&o!==0||a)&&r.default){var s=document.createElement("div");s.style.position="absolute",s.style.top="-9999px",s.style.width="50px",s.style.height="50px",s.style.overflow="scroll",document.body.appendChild(s),o=s.offsetWidth-s.clientWidth,document.body.removeChild(s)}return o}e.exports=t.default})(Ap,Ap.exports);var bx=Ap.exports;const B0=pe(bx);var Np={exports:{}},Lp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},r=R,o=s(r),i=Iu,a=s(i);function s(u){return u&&u.__esModule?u:{default:u}}function l(u,c,f,d,p){var v=u[c],h=typeof v>"u"?"undefined":n(v);return o.default.isValidElement(v)?new Error("Invalid "+d+" `"+p+"` of type ReactElement "+("supplied to `"+f+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):(h!=="object"||typeof v.render!="function")&&v.nodeType!==1?new Error("Invalid "+d+" `"+p+"` of value `"+v+"` "+("supplied to `"+f+"`, expected a ReactComponent or a ")+"DOMElement."):null}t.default=(0,a.default)(l),e.exports=t.default})(Lp,Lp.exports);var uc=Lp.exports,Vp={exports:{}},f2=function(){},d2=f2;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=d2,r=o(n);function o(l){return l&&l.__esModule?l:{default:l}}var i={};function a(l,u){return function(f,d,p,v,h){var w=p||"<>",m=h||d;if(f[d]!=null){var g=p+"."+d;(0,r.default)(i[g],"The "+v+" `"+m+"` of "+("`"+w+"` is deprecated. "+u+".")),i[g]=!0}for(var y=arguments.length,b=Array(y>5?y-5:0),E=5;Ec.clientHeight}e.exports=t.default})(jp,jp.exports);var Ox=jp.exports;const g2=pe(Ox);var Ka={};Ka.__esModule=!0;Ka.ariaHidden=_v;Ka.hideSiblings=S2;Ka.showSiblings=b2;var y2=["template","script","style"],w2=function(t){var n=t.nodeType,r=t.tagName;return n===1&&y2.indexOf(r.toLowerCase())===-1},Rx=function(t,n,r){n=[].concat(n),[].forEach.call(t.children,function(o){n.indexOf(o)===-1&&w2(o)&&r(o)})};function _v(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}function S2(e,t){Rx(e,t,function(n){return _v(!0,n)})}function b2(e,t){Rx(e,t,function(n){return _v(!1,n)})}(function(e,t){t.__esModule=!0;var n=io,r=f(n),o=oc,i=f(o),a=bx,s=f(a),l=Ox,u=f(l),c=Ka;function f(g){return g&&g.__esModule?g:{default:g}}function d(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")}function p(g,y){var b=-1;return g.some(function(E,C){if(y(E,C))return b=C,!0}),b}function v(g,y){return p(g,function(b){return b.modals.indexOf(y)!==-1})}function h(g,y){var b={overflow:"hidden"};g.style={overflow:y.style.overflow,paddingRight:y.style.paddingRight},g.overflowing&&(b.paddingRight=parseInt((0,i.default)(y,"paddingRight")||0,10)+(0,s.default)()+"px"),(0,i.default)(y,b)}function w(g,y){var b=g.style;Object.keys(b).forEach(function(E){return y.style[E]=b[E]})}var m=function g(){var y=this,b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=b.hideSiblingNodes,C=E===void 0?!0:E,_=b.handleContainerOverflow,O=_===void 0?!0:_;d(this,g),this.add=function(M,P,$){var A=y.modals.indexOf(M),H=y.containers.indexOf(P);if(A!==-1)return A;if(A=y.modals.length,y.modals.push(M),y.hideSiblingNodes&&(0,c.hideSiblings)(P,M.modalNode),H!==-1)return y.data[H].modals.push(M),A;var J={modals:[M],classes:$?$.split(/\s+/):[],overflowing:(0,u.default)(P)};return y.handleContainerOverflow&&h(J,P),J.classes.forEach(r.default.addClass.bind(null,P)),y.containers.push(P),y.data.push(J),A},this.remove=function(M){var P=y.modals.indexOf(M);if(P!==-1){var $=v(y.data,M),A=y.data[$],H=y.containers[$];A.modals.splice(A.modals.indexOf(M),1),y.modals.splice(P,1),A.modals.length===0?(A.classes.forEach(r.default.removeClass.bind(null,H)),y.handleContainerOverflow&&w(A,H),y.hideSiblingNodes&&(0,c.showSiblings)(H,M.modalNode),y.containers.splice($,1),y.data.splice($,1)):y.hideSiblingNodes&&(0,c.ariaHidden)(!1,A.modals[A.modals.length-1].modalNode)}},this.isTopModal=function(M){return!!y.modals.length&&y.modals[y.modals.length-1]===M},this.hideSiblingNodes=C,this.handleContainerOverflow=O,this.modals=[],this.containers=[],this.data=[]};t.default=m,e.exports=t.default})(Up,Up.exports);var C2=Up.exports,zp={exports:{}},Hp={exports:{}};(function(e,t){t.__esModule=!0,t.default=i;var n=ln,r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(a,s){return a=typeof a=="function"?a():a,r.default.findDOMNode(a)||s}e.exports=t.default})(Hp,Hp.exports);var fc=Hp.exports,Wp={exports:{}};(function(e,t){t.__esModule=!0;var n=Vn,r=v(n),o=uc,i=v(o),a=R,s=v(a),l=ln,u=v(l),c=fc,f=v(c),d=mi,p=v(d);function v(y){return y&&y.__esModule?y:{default:y}}function h(y,b){if(!(y instanceof b))throw new TypeError("Cannot call a class as a function")}function w(y,b){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:y}function m(y,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);y.prototype=Object.create(b&&b.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(y,b):y.__proto__=b)}var g=function(y){m(b,y);function b(){var E,C,_;h(this,b);for(var O=arguments.length,M=Array(O),P=0;Pa.documentElement.clientHeight;this.setState({style:{paddingRight:s&&!l?B0():void 0,paddingLeft:!s&&l?B0():void 0}})}},n.render=function(){var o=this.props,i=o.backdrop,a=o.backdropClassName,s=o.animation,l=o.show,u=o.dialogComponentClass,c=o.className,f=o.style,d=o.children,p=o.onEntering,v=o.onExited,h=de(o,["backdrop","backdropClassName","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]),w=mx(h,pa),m=w[0],g=w[1],y=l&&!s&&"in";return x.createElement(pa,V({},m,{ref:this.setModalRef,show:l,containerClassName:ae(h,"open"),transition:s?H2:void 0,backdrop:i,backdropTransition:s?W2:void 0,backdropClassName:ue(ae(h,"backdrop"),a,y),onEntering:Ee(p,this.handleEntering),onExited:Ee(v,this.handleExited),onMouseUp:this.handleMouseUp}),x.createElement(u,V({},g,{style:V({},this.state.style,f),className:ue(c,y),onClick:i===!0?this.handleDialogClick:null,onMouseDownDialog:this.handleDialogBackdropMouseDown}),d))},t}(x.Component);At.propTypes=j2;At.defaultProps=B2;At.childContextTypes=z2;At.Body=T2;At.Header=N2;At.Title=U2;At.Footer=k2;At.Dialog=Ov;At.TRANSITION_DURATION=300;At.BACKDROP_TRANSITION_DURATION=150;const js=xe("modal",um([Br.LARGE,Br.SMALL],At));var Qp={exports:{}},Kp={exports:{}},Xp={exports:{}},Yp={exports:{}};(function(e,t){var n=Ne;t.__esModule=!0,t.default=a;var r=n(Qa),o=n(cc),i=n(hi());function a(s){var l=(0,i.default)(s),u=(0,o.default)(l),c=l&&l.documentElement,f={top:0,left:0,height:0,width:0};if(l)return(0,r.default)(c,s)&&(s.getBoundingClientRect!==void 0&&(f=s.getBoundingClientRect()),f={top:f.top+(u.pageYOffset||c.scrollTop)-(c.clientTop||0),left:f.left+(u.pageXOffset||c.scrollLeft)-(c.clientLeft||0),width:(f.width==null?s.offsetWidth:f.width)||0,height:(f.height==null?s.offsetHeight:f.height)||0}),f}e.exports=t.default})(Yp,Yp.exports);var Ix=Yp.exports,Zp={exports:{}},Yf={exports:{}},G0;function G2(){return G0||(G0=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;rE?E-_:0}function p(h,w,m,g){var y=f(m),b=y.width,E=h-g,C=h+g+w;return E<0?-E:C>b?b-C:0}function v(h,w,m,g,y){var b=g.tagName==="BODY"?(0,r.default)(m):(0,i.default)(m,g),E=(0,r.default)(w),C=E.height,_=E.width,O=void 0,M=void 0,P=void 0,$=void 0;if(h==="left"||h==="right"){M=b.top+(b.height-C)/2,h==="left"?O=b.left-_:O=b.left+b.width;var A=d(M,C,g,y);M+=A,$=50*(1-2*A/C)+"%",P=void 0}else if(h==="top"||h==="bottom"){O=b.left+(b.width-_)/2,h==="top"?M=b.top-C:M=b.top+b.height;var H=p(O,_,g,y);O+=H,P=50*(1-2*H/_)+"%",$=void 0}else throw new Error('calcOverlayPosition(): No such placement of "'+h+'" found.');return{positionLeft:O,positionTop:M,arrowOffsetLeft:P,arrowOffsetTop:$}}e.exports=t.default})(Xp,Xp.exports);var X2=Xp.exports;(function(e,t){t.__esModule=!0;var n=Object.assign||function(M){for(var P=1;P=0||Object.prototype.hasOwnProperty.call(M,A)&&($[A]=M[A]);return $}function E(M,P){if(!(M instanceof P))throw new TypeError("Cannot call a class as a function")}function C(M,P){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:M}function _(M,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);M.prototype=Object.create(P&&P.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(M,P):M.__proto__=P)}var O=function(M){_(P,M);function P($,A){E(this,P);var H=C(this,M.call(this,$,A));return H.getTarget=function(){var J=H.props.target,ee=typeof J=="function"?J():J;return ee&&d.default.findDOMNode(ee)||null},H.maybeUpdatePosition=function(J){var ee=H.getTarget();!H.props.shouldUpdatePosition&&ee===H._lastTarget&&!J||H.updatePosition(ee)},H.state={positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null},H._needsFlush=!1,H._lastTarget=null,H}return P.prototype.componentDidMount=function(){this.updatePosition(this.getTarget())},P.prototype.UNSAFE_componentWillReceiveProps=function(){this._needsFlush=!0},P.prototype.componentDidUpdate=function(A){this._needsFlush&&(this._needsFlush=!1,this.maybeUpdatePosition(this.props.placement!==A.placement))},P.prototype.render=function(){var A=this.props,H=A.children,J=A.className,ee=b(A,["children","className"]),te=this.state,ne=te.positionLeft,D=te.positionTop,j=b(te,["positionLeft","positionTop"]);delete ee.target,delete ee.container,delete ee.containerPadding,delete ee.shouldUpdatePosition;var B=c.default.Children.only(H);return(0,u.cloneElement)(B,n({},ee,j,{positionLeft:ne,positionTop:D,className:(0,o.default)(J,B.props.className),style:n({},B.props.style,{left:ne,top:D})}))},P.prototype.updatePosition=function(A){if(this._lastTarget=A,!A){this.setState({positionLeft:0,positionTop:0,arrowOffsetLeft:null,arrowOffsetTop:null});return}var H=d.default.findDOMNode(this),J=(0,w.default)(this.props.container,(0,g.default)(this).body);this.setState((0,v.default)(this.props.placement,H,A,J,this.props.containerPadding))},P}(c.default.Component);O.propTypes={target:a.default.oneOfType([l.default,a.default.func]),container:a.default.oneOfType([l.default,a.default.func]),containerPadding:a.default.number,placement:a.default.oneOf(["top","right","bottom","left"]),shouldUpdatePosition:a.default.bool},O.displayName="Position",O.defaultProps={containerPadding:0,placement:"right",shouldUpdatePosition:!1},t.default=O,e.exports=t.default})(Kp,Kp.exports);var Y2=Kp.exports;(function(e,t){t.__esModule=!0;var n=Object.assign||function(E){for(var C=1;C=0||Object.prototype.hasOwnProperty.call(E,O)&&(_[O]=E[O]);return _}function m(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function g(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function y(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var b=function(E){y(C,E);function C(_,O){m(this,C);var M=g(this,E.call(this,_,O));return M.handleHidden=function(){if(M.setState({exited:!0}),M.props.onExited){var P;(P=M.props).onExited.apply(P,arguments)}},M.state={exited:!_.show},M.onHiddenListener=M.handleHidden.bind(M),M}return C.prototype.UNSAFE_componentWillReceiveProps=function(O){O.show?this.setState({exited:!1}):O.transition||this.setState({exited:!0})},C.prototype.render=function(){var O=this.props,M=O.container,P=O.containerPadding,$=O.target,A=O.placement,H=O.shouldUpdatePosition,J=O.rootClose,ee=O.children,te=O.transition,ne=w(O,["container","containerPadding","target","placement","shouldUpdatePosition","rootClose","children","transition"]),D=ne.show||te&&!this.state.exited;if(!D)return null;var j=ee;if(j=l.default.createElement(d.default,{container:M,containerPadding:P,target:$,placement:A,shouldUpdatePosition:H},j),te){var B=ne.onExit,Y=ne.onExiting,q=ne.onEnter,ve=ne.onEntering,Se=ne.onEntered;j=l.default.createElement(te,{in:ne.show,appear:!0,onExit:B,onExiting:Y,onExited:this.onHiddenListener,onEnter:q,onEntering:ve,onEntered:Se},j)}return J&&(j=l.default.createElement(v.default,{onRootClose:ne.onHide,event:ne.rootCloseEvent},j)),l.default.createElement(c.default,{container:M},j)},C}(l.default.Component);b.propTypes=n({},c.default.propTypes,d.default.propTypes,{show:o.default.bool,rootClose:o.default.bool,rootCloseEvent:v.default.propTypes.event,onHide:function(C){var _=o.default.func;C.rootClose&&(_=_.isRequired);for(var O=arguments.length,M=Array(O>1?O-1:0),P=1;P=0:e===t}var Y0=S.oneOf(["click","hover","focus"]),ik=V({},kx.propTypes,{trigger:S.oneOfType([Y0,S.arrayOf(Y0)]),delay:S.number,delayShow:S.number,delayHide:S.number,defaultOverlayShown:S.bool,overlay:S.node.isRequired,onBlur:S.func,onClick:S.func,onFocus:S.func,onMouseOut:S.func,onMouseOver:S.func,target:S.oneOf([null]),onHide:S.oneOf([null]),show:S.oneOf([null])}),ak={defaultOverlayShown:!1,trigger:["hover","focus"]},Iv=function(e){ce(t,e);function t(r,o){var i;return i=e.call(this,r,o)||this,i.handleToggle=i.handleToggle.bind(se(se(i))),i.handleDelayedShow=i.handleDelayedShow.bind(se(se(i))),i.handleDelayedHide=i.handleDelayedHide.bind(se(se(i))),i.handleHide=i.handleHide.bind(se(se(i))),i.handleMouseOver=function(a){return i.handleMouseOverOut(i.handleDelayedShow,a,"fromElement")},i.handleMouseOut=function(a){return i.handleMouseOverOut(i.handleDelayedHide,a,"toElement")},i._mountNode=null,i.state={show:r.defaultOverlayShown},i}var n=t.prototype;return n.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},n.componentDidUpdate=function(){this.renderOverlay()},n.componentWillUnmount=function(){ai.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},n.handleDelayedHide=function(){var o=this;if(this._hoverShowDelay!=null){clearTimeout(this._hoverShowDelay),this._hoverShowDelay=null;return}if(!(!this.state.show||this._hoverHideDelay!=null)){var i=this.props.delayHide!=null?this.props.delayHide:this.props.delay;if(!i){this.hide();return}this._hoverHideDelay=setTimeout(function(){o._hoverHideDelay=null,o.hide()},i)}},n.handleDelayedShow=function(){var o=this;if(this._hoverHideDelay!=null){clearTimeout(this._hoverHideDelay),this._hoverHideDelay=null;return}if(!(this.state.show||this._hoverShowDelay!=null)){var i=this.props.delayShow!=null?this.props.delayShow:this.props.delay;if(!i){this.show();return}this._hoverShowDelay=setTimeout(function(){o._hoverShowDelay=null,o.show()},i)}},n.handleHide=function(){this.hide()},n.handleMouseOverOut=function(o,i,a){var s=i.currentTarget,l=i.relatedTarget||i.nativeEvent[a];(!l||l!==s)&&!lx(s,l)&&o(i)},n.handleToggle=function(){this.state.show?this.hide():this.show()},n.hide=function(){this.setState({show:!1})},n.makeOverlay=function(o,i){return x.createElement(kx,V({},i,{show:this.state.show,onHide:this.handleHide,target:this}),o)},n.show=function(){this.setState({show:!0})},n.renderOverlay=function(){ai.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},n.render=function(){var o=this.props,i=o.trigger,a=o.overlay,s=o.children,l=o.onBlur,u=o.onClick,c=o.onFocus,f=o.onMouseOut,d=o.onMouseOver,p=de(o,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete p.delay,delete p.delayShow,delete p.delayHide,delete p.defaultOverlayShown;var v=x.Children.only(s),h=v.props,w={};return this.state.show&&(w["aria-describedby"]=a.props.id),w.onClick=Ee(h.onClick,u),Jf("click",i)&&(w.onClick=Ee(w.onClick,this.handleToggle)),Jf("hover",i)&&(w.onMouseOver=Ee(h.onMouseOver,d,this.handleMouseOver),w.onMouseOut=Ee(h.onMouseOut,f,this.handleMouseOut)),Jf("focus",i)&&(w.onFocus=Ee(h.onFocus,c,this.handleDelayedShow),w.onBlur=Ee(h.onBlur,l,this.handleDelayedHide)),this._overlay=this.makeOverlay(a,p),R.cloneElement(v,w)},t}(x.Component);Iv.propTypes=ik;Iv.defaultProps=ak;const eh=Iv;var sk=TS;const lk=pe(sk);var uk={onEnter:S.func,onEntering:S.func,onEntered:S.func,onExit:S.func,onExiting:S.func,onExited:S.func},ck={$bs_panel:S.shape({headingId:S.string,bodyId:S.string,bsClass:S.string,expanded:S.bool})},Mv=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this.props.children,i=this.context.$bs_panel||{},a=i.headingId,s=i.bodyId,l=i.bsClass,u=i.expanded,c=Be(this.props),f=c[0],d=c[1];return f.bsClass=l||f.bsClass,a&&s&&(d.id=s,d.role=d.role||"tabpanel",d["aria-labelledby"]=a),x.createElement(tF,V({in:u},d),x.createElement("div",{className:ae(f,"collapse")},o))},t}(x.Component);Mv.propTypes=uk;Mv.contextTypes=ck;const Dx=xe("panel",Mv);var fk={collapsible:S.bool.isRequired},dk={collapsible:!1},pk={$bs_panel:S.shape({bsClass:S.string})},pc=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this.props,i=o.children,a=o.className,s=o.collapsible,l=this.context.$bs_panel||{},u=l.bsClass,c=Tu(this.props,["collapsible"]),f=c[0],d=c[1];f.bsClass=u||f.bsClass;var p=x.createElement("div",V({},d,{className:ue(a,ae(f,"body"))}),i);return s&&(p=x.createElement(Dx,null,p)),p},t}(x.Component);pc.propTypes=fk;pc.defaultProps=dk;pc.contextTypes=pk;const hk=xe("panel",pc);var Fv={};Fv.__esModule=!0;Fv.default=mk;function mk(e){function t(r,o,i,a,s,l){var u=a||"<>",c=l||i;if(o[i]==null)return r?new Error("Required "+s+" `"+c+"` was not specified "+("in `"+u+"`.")):null;for(var f=arguments.length,d=Array(f>6?f-6:0),p=6;p"u"?"undefined":vk(i);return yk.default.isValidElement(i)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):a!=="function"&&a!=="string"?new Error("Invalid "+r+" `"+o+"` of value `"+i+"` "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):null}var kv=(0,Sk.default)(bk),Ck={componentClass:kv},xk={componentClass:"div"},_k={$bs_panel:S.shape({headingId:S.string,bsClass:S.string})},hc=function(e){ce(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var o=this.props,i=o.children,a=o.className,s=o.componentClass,l=de(o,["children","className","componentClass"]),u=this.context.$bs_panel||{},c=u.headingId,f=u.bsClass,d=Be(l),p=d[0],v=d[1];return p.bsClass=f||p.bsClass,c&&(v.role=v.role||"tab",v.id=c),x.createElement(s,V({},v,{className:ue(a,ae(p,"heading"))}),i)},t}(x.Component);hc.propTypes=Ck;hc.defaultProps=xk;hc.contextTypes=_k;const Ek=xe("panel",hc);var Ok={onClick:S.func,componentClass:kv},Rk={componentClass:Bu},Pk={$bs_panel:S.shape({bodyId:S.string,onToggle:S.func,expanded:S.bool})},mc=function(e){ce(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;a{t.setState(r=>({...r,[e]:ir(n,r[e])}))}}function Ql(e){return e instanceof Function}function nD(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}function rD(e,t){const n=[],r=o=>{o.forEach(i=>{n.push(i);const a=t(i);a!=null&&a.length&&r(a)})};return r(e),n}function Z(e,t,n){let r=[],o;return()=>{let i;n.key&&n.debug&&(i=Date.now());const a=e();if(!(a.length!==r.length||a.some((u,c)=>r[c]!==u)))return o;r=a;let l;if(n.key&&n.debug&&(l=Date.now()),o=t(...a),n==null||n.onChange==null||n.onChange(o),n.key&&n.debug&&n!=null&&n.debug()){const u=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-l)*100)/100,f=c/16,d=(p,v)=>{for(p=String(p);p.length{let p=d;for(const h of l.split(".")){var v;p=(v=p)==null?void 0:v[h]}return p}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:Z(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(p=>p.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:Z(()=>[e._getOrderColumnsFn()],d=>{var p;if((p=f.columns)!=null&&p.length){let v=f.columns.flatMap(h=>h.getLeafColumns());return d(v)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};for(const d of e._features)d.createColumn==null||d.createColumn(f,e);return f}function J0(e,t,n){var r;let i={id:(r=n.id)!=null?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(i),a},getContext:()=>({table:e,header:i,column:t})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(i,e)}),i}const iD={createTable:e=>{e.getHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;const s=(i=r==null?void 0:r.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?i:[],l=(a=o==null?void 0:o.map(f=>n.find(d=>d.id===f)).filter(Boolean))!=null?a:[],u=n.filter(f=>!(r!=null&&r.includes(f.id))&&!(o!=null&&o.includes(f.id)));return Hs(t,[...s,...u,...l],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>(n=n.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),Hs(t,n,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Hs(t,i,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightHeaderGroups=Z(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>n.find(s=>s.id===a)).filter(Boolean))!=null?o:[];return Hs(t,i,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFooterGroups=Z(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFooterGroups=Z(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFooterGroups=Z(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFooterGroups=Z(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getFlatHeaders=Z(()=>[e.getHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftFlatHeaders=Z(()=>[e.getLeftHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterFlatHeaders=Z(()=>[e.getCenterHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightFlatHeaders=Z(()=>[e.getRightHeaderGroups()],t=>t.map(n=>n.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getCenterLeafHeaders=Z(()=>[e.getCenterFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeftLeafHeaders=Z(()=>[e.getLeftFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getRightLeafHeaders=Z(()=>[e.getRightFlatHeaders()],t=>t.filter(n=>{var r;return!((r=n.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),e.getLeafHeaders=Z(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,n,r)=>{var o,i,a,s,l,u;return[...(o=(i=t[0])==null?void 0:i.headers)!=null?o:[],...(a=(s=n[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})}};function Hs(e,t,n,r){var o,i;let a=0;const s=function(d,p){p===void 0&&(p=1),a=Math.max(a,p),d.filter(v=>v.getIsVisible()).forEach(v=>{var h;(h=v.columns)!=null&&h.length&&s(v.columns,p+1)},0)};s(e);let l=[];const u=(d,p)=>{const v={depth:p,id:[r,`${p}`].filter(Boolean).join("_"),headers:[]},h=[];d.forEach(w=>{const m=[...h].reverse()[0],g=w.column.depth===v.depth;let y,b=!1;if(g&&w.column.parent?y=w.column.parent:(y=w.column,b=!0),m&&(m==null?void 0:m.column)===y)m.subHeaders.push(w);else{const E=J0(n,y,{id:[r,p,y.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:b,placeholderId:b?`${h.filter(C=>C.column===y).length}`:void 0,depth:p,index:h.length});E.subHeaders.push(w),h.push(E)}v.headers.push(w),w.headerGroup=v}),l.push(v),p>0&&u(h,p-1)},c=t.map((d,p)=>J0(n,d,{depth:a,index:p}));u(c,a-1),l.reverse();const f=d=>d.filter(v=>v.column.getIsVisible()).map(v=>{let h=0,w=0,m=[0];v.subHeaders&&v.subHeaders.length?(m=[],f(v.subHeaders).forEach(y=>{let{colSpan:b,rowSpan:E}=y;h+=b,m.push(E)})):h=1;const g=Math.min(...m);return w=w+g,v.colSpan=h,v.rowSpan=w,{colSpan:h,rowSpan:w}});return f((o=(i=l[0])==null?void 0:i.headers)!=null?o:[]),l}const Ws={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},ed=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),aD={getDefaultColumnDef:()=>Ws,getInitialState:e=>({columnSizing:{},columnSizingInfo:ed(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:It("columnSizing",e),onColumnSizingInfoChange:It("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;const i=t.getState().columnSizing[e.id];return Math.min(Math.max((n=e.columnDef.minSize)!=null?n:Ws.minSize,(r=i??e.columnDef.size)!=null?r:Ws.size),(o=e.columnDef.maxSize)!=null?o:Ws.maxSize)},e.getStart=n=>{const r=n?n==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),o=r.findIndex(i=>i.id===e.id);if(o>0){const i=r[o-1];return i.getStart(n)+i.getSize()}return 0},e.resetSize=()=>{t.setColumnSizing(n=>{let{[e.id]:r,...o}=n;return o})},e.getCanResize=()=>{var n,r;return((n=e.columnDef.enableResizing)!=null?n:!0)&&((r=t.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let n=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;n+=(i=o.column.getSize())!=null?i:0}};return r(e),n},e.getStart=()=>{if(e.index>0){const n=e.headerGroup.headers[e.index-1];return n.getStart()+n.getSize()}return 0},e.getResizeHandler=()=>{const n=t.getColumn(e.column.id),r=n==null?void 0:n.getCanResize();return o=>{if(!n||!r||(o.persist==null||o.persist(),td(o)&&o.touches&&o.touches.length>1))return;const i=e.getSize(),a=e?e.getLeafHeaders().map(h=>[h.column.id,h.column.getSize()]):[[n.id,n.getSize()]],s=td(o)?Math.round(o.touches[0].clientX):o.clientX,l={},u=(h,w)=>{typeof w=="number"&&(t.setColumnSizingInfo(m=>{var g,y;const b=w-((g=m==null?void 0:m.startOffset)!=null?g:0),E=Math.max(b/((y=m==null?void 0:m.startSize)!=null?y:0),-.999999);return m.columnSizingStart.forEach(C=>{let[_,O]=C;l[_]=Math.round(Math.max(O+O*E,0)*100)/100}),{...m,deltaOffset:b,deltaPercentage:E}}),(t.options.columnResizeMode==="onChange"||h==="end")&&t.setColumnSizing(m=>({...m,...l})))},c=h=>u("move",h),f=h=>{u("end",h),t.setColumnSizingInfo(w=>({...w,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},d={moveHandler:h=>c(h.clientX),upHandler:h=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),f(h.clientX)}},p={moveHandler:h=>(h.cancelable&&(h.preventDefault(),h.stopPropagation()),c(h.touches[0].clientX),!1),upHandler:h=>{var w;document.removeEventListener("touchmove",p.moveHandler),document.removeEventListener("touchend",p.upHandler),h.cancelable&&(h.preventDefault(),h.stopPropagation()),f((w=h.touches[0])==null?void 0:w.clientX)}},v=sD()?{passive:!1}:!1;td(o)?(document.addEventListener("touchmove",p.moveHandler,v),document.addEventListener("touchend",p.upHandler,v)):(document.addEventListener("mousemove",d.moveHandler,v),document.addEventListener("mouseup",d.upHandler,v)),t.setColumnSizingInfo(h=>({...h,startOffset:s,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:(n=e.initialState.columnSizing)!=null?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?ed():(n=e.initialState.columnSizingInfo)!=null?n:ed())},e.getTotalSize=()=>{var t,n;return(t=(n=e.getHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getLeftTotalSize=()=>{var t,n;return(t=(n=e.getLeftHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getCenterTotalSize=()=>{var t,n;return(t=(n=e.getCenterHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0},e.getRightTotalSize=()=>{var t,n;return(t=(n=e.getRightHeaderGroups()[0])==null?void 0:n.headers.reduce((r,o)=>r+o.getSize(),0))!=null?t:0}}};let Gs=null;function sD(){if(typeof Gs=="boolean")return Gs;let e=!1;try{const t={get passive(){return e=!0,!1}},n=()=>{};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return Gs=e,Gs}function td(e){return e.type==="touchstart"}const lD={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:It("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const a=i.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=r,n=(o=n)!=null?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){const{[e.id]:s,...l}=a;return l}return r})},e.getIsExpanded=()=>{var n;const r=t.getState().expanded;return!!((n=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?n:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var n,r,o;return(n=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?n:((r=t.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)r=t.getRow(r.parentId,!0),n=r.getIsExpanded();return n},e.getToggleExpandedHandler=()=>{const n=e.getCanExpand();return()=>{n&&e.toggleExpanded()}}}},Bx=(e,t,n)=>{var r;const o=n.toLowerCase();return!!(!((r=e.getValue(t))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(o))};Bx.autoRemove=e=>nn(e);const zx=(e,t,n)=>{var r;return!!(!((r=e.getValue(t))==null||(r=r.toString())==null)&&r.includes(n))};zx.autoRemove=e=>nn(e);const Hx=(e,t,n)=>{var r;return((r=e.getValue(t))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(n==null?void 0:n.toLowerCase())};Hx.autoRemove=e=>nn(e);const Wx=(e,t,n)=>{var r;return(r=e.getValue(t))==null?void 0:r.includes(n)};Wx.autoRemove=e=>nn(e)||!(e!=null&&e.length);const Gx=(e,t,n)=>!n.some(r=>{var o;return!((o=e.getValue(t))!=null&&o.includes(r))});Gx.autoRemove=e=>nn(e)||!(e!=null&&e.length);const qx=(e,t,n)=>n.some(r=>{var o;return(o=e.getValue(t))==null?void 0:o.includes(r)});qx.autoRemove=e=>nn(e)||!(e!=null&&e.length);const Qx=(e,t,n)=>e.getValue(t)===n;Qx.autoRemove=e=>nn(e);const Kx=(e,t,n)=>e.getValue(t)==n;Kx.autoRemove=e=>nn(e);const Lv=(e,t,n)=>{let[r,o]=n;const i=e.getValue(t);return i>=r&&i<=o};Lv.resolveFilterValue=e=>{let[t,n]=e,r=typeof t!="number"?parseFloat(t):t,o=typeof n!="number"?parseFloat(n):n,i=t===null||Number.isNaN(r)?-1/0:r,a=n===null||Number.isNaN(o)?1/0:o;if(i>a){const s=i;i=a,a=s}return[i,a]};Lv.autoRemove=e=>nn(e)||nn(e[0])&&nn(e[1]);const En={includesString:Bx,includesStringSensitive:zx,equalsString:Hx,arrIncludes:Wx,arrIncludesAll:Gx,arrIncludesSome:qx,equals:Qx,weakEquals:Kx,inNumberRange:Lv};function nn(e){return e==null||e===""}const uD={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:It("columnFilters",e),onGlobalFilterChange:It("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;const r=(n=e.getCoreRowModel().flatRows[0])==null||(n=n._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);return typeof r=="string"?En.includesString:typeof r=="number"?En.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?En.equals:Array.isArray(r)?En.arrIncludes:En.weakEquals},e.getFilterFn=()=>{var n,r;return Ql(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(n=(r=t.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?n:En[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return((n=e.columnDef.enableColumnFilter)!=null?n:!0)&&((r=t.options.enableColumnFilters)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getCanGlobalFilter=()=>{var n,r,o,i;return((n=e.columnDef.enableGlobalFilter)!=null?n:!0)&&((r=t.options.enableGlobalFilter)!=null?r:!0)&&((o=t.options.enableFilters)!=null?o:!0)&&((i=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return(n=t.getState().columnFilters)==null||(n=n.find(r=>r.id===e.id))==null?void 0:n.value},e.getFilterIndex=()=>{var n,r;return(n=(r=t.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.setFilterValue=n=>{t.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(c=>c.id===e.id),a=ir(n,i?i.value:void 0);if(ew(o,a,e)){var s;return(s=r==null?void 0:r.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(i){var u;return(u=r==null?void 0:r.map(c=>c.id===e.id?l:c))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})},e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.getGlobalAutoFilterFn=()=>En.includesString,e.getGlobalFilterFn=()=>{var t,n;const{globalFilterFn:r}=e.options;return Ql(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(t=(n=e.options.filterFns)==null?void 0:n[r])!=null?t:En[r]},e.setColumnFilters=t=>{const n=e.getAllLeafColumns(),r=o=>{var i;return(i=ir(t,o))==null?void 0:i.filter(a=>{const s=n.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(ew(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.setGlobalFilter=t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:(n=(r=e.initialState)==null?void 0:r.columnFilters)!=null?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}};function ew(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t>"u"||typeof t=="string"&&!t}const cD=(e,t,n)=>n.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),fD=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},dD=(e,t,n)=>{let r;return n.forEach(o=>{const i=o.getValue(e);i!=null&&(r=i)&&(r=i)}),r},pD=(e,t,n)=>{let r,o;return n.forEach(i=>{const a=i.getValue(e);a!=null&&(r===void 0?a>=a&&(r=o=a):(r>a&&(r=a),o{let n=0,r=0;if(t.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++n,r+=i)}),n)return r/n},mD=(e,t)=>{if(!t.length)return;const n=t.map(i=>i.getValue(e));if(!nD(n))return;if(n.length===1)return n[0];const r=Math.floor(n.length/2),o=n.sort((i,a)=>i-a);return n.length%2!==0?o[r]:(o[r-1]+o[r])/2},vD=(e,t)=>Array.from(new Set(t.map(n=>n.getValue(e))).values()),gD=(e,t)=>new Set(t.map(n=>n.getValue(e))).size,yD=(e,t)=>t.length,nd={sum:cD,min:fD,max:dD,extent:pD,mean:hD,median:mD,unique:vD,uniqueCount:gD,count:yD},wD={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return(t=(n=e.getValue())==null||n.toString==null?void 0:n.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:It("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(n=>n!=null&&n.includes(e.id)?n.filter(r=>r!==e.id):[...n??[],e.id])},e.getCanGroup=()=>{var n,r,o,i;return(n=(r=(o=(i=e.columnDef.enableGrouping)!=null?i:!0)!=null?o:t.options.enableGrouping)!=null?r:!0)!=null?n:!!e.accessorFn},e.getIsGrouped=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return(n=t.getState().grouping)==null?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const n=e.getCanGroup();return()=>{n&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const n=t.getCoreRowModel().flatRows[0],r=n==null?void 0:n.getValue(e.id);if(typeof r=="number")return nd.sum;if(Object.prototype.toString.call(r)==="[object Date]")return nd.extent},e.getAggregationFn=()=>{var n,r;if(!e)throw new Error;return Ql(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(n=(r=t.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?n:nd[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:(n=(r=e.initialState)==null?void 0:r.grouping)!=null?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];const r=t.getColumn(n);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=n.subRows)!=null&&o.length)}}};function SD(e,t,n){if(!(t!=null&&t.length)||!n)return e;const r=e.filter(i=>!t.includes(i.id));return n==="remove"?r:[...t.map(i=>e.find(a=>a.id===i)).filter(Boolean),...r]}const bD={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:It("columnOrder",e)}),createTable:e=>{e.setColumnOrder=t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:(n=e.initialState.columnOrder)!=null?n:[])},e._getOrderColumnsFn=Z(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,n,r)=>o=>{let i=[];if(!(t!=null&&t.length))i=o;else{const a=[...t],s=[...o];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&i.push(s.splice(u,1)[0])}i=[...i,...s]}return SD(i,n,r)},{key:!1})}},th=0,nh=10,rd=()=>({pageIndex:th,pageSize:nh}),CD={getInitialState:e=>({...e,pagination:{...rd(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:It("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t){e._queue(()=>{t=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=r=>{const o=i=>ir(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?rd():(o=e.initialState.pagination)!=null?o:rd())},e.setPageIndex=r=>{e.setPagination(o=>{let i=ir(r,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,a)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?th:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:th)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?nh:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:nh)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,ir(r,o.pageSize)),a=o.pageSize*o.pageIndex,s=Math.floor(a/i);return{...o,pageIndex:s,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let a=ir(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=Z(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},{key:!1,debug:()=>{var r;return(r=e.options.debugAll)!=null?r:e.options.debugTable}}),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:re.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}},od=()=>({left:[],right:[]}),id=()=>({top:[],bottom:[]}),xD={getInitialState:e=>({columnPinning:od(),rowPinning:id(),...e}),getDefaultOptions:e=>({onColumnPinningChange:It("columnPinning",e),onRowPinningChange:It("rowPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);t.setColumnPinning(o=>{var i,a;if(n==="right"){var s,l;return{left:((s=o==null?void 0:o.left)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((l=o==null?void 0:o.right)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(n==="left"){var u,c;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((c=o==null?void 0:o.right)!=null?c:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(f=>!(r!=null&&r.includes(f))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,a;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(a=t.options.enableColumnPinning)!=null?a:t.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const n=e.getLeafColumns().map(s=>s.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"left":a?"right":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();return o?(n=(r=t.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?n:-1:0}},createRow:(e,t)=>{e.pin=(n,r,o)=>{const i=r?e.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=o?e.getParentRows().map(l=>{let{id:u}=l;return u}):[],s=new Set([...a,e.id,...i]);t.setRowPinning(l=>{var u,c;if(n==="bottom"){var f,d;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(h=>!(s!=null&&s.has(h))),bottom:[...((d=l==null?void 0:l.bottom)!=null?d:[]).filter(h=>!(s!=null&&s.has(h))),...Array.from(s)]}}if(n==="top"){var p,v;return{top:[...((p=l==null?void 0:l.top)!=null?p:[]).filter(h=>!(s!=null&&s.has(h))),...Array.from(s)],bottom:((v=l==null?void 0:l.bottom)!=null?v:[]).filter(h=>!(s!=null&&s.has(h)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(h=>!(s!=null&&s.has(h))),bottom:((c=l==null?void 0:l.bottom)!=null?c:[]).filter(h=>!(s!=null&&s.has(h)))}})},e.getCanPin=()=>{var n;const{enableRowPinning:r,enablePinning:o}=t.options;return typeof r=="function"?r(e):(n=r??o)!=null?n:!0},e.getIsPinned=()=>{const n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(s=>r==null?void 0:r.includes(s)),a=n.some(s=>o==null?void 0:o.includes(s));return i?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var n,r;const o=e.getIsPinned();if(!o)return-1;const i=(n=t._getPinnedRows(o))==null?void 0:n.map(a=>{let{id:s}=a;return s});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1},e.getCenterVisibleCells=Z(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(n,r,o)=>{const i=[...r??[],...o??[]];return n.filter(a=>!i.includes(a.column.id))},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getLeftVisibleCells=Z(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getRightVisibleCells=Z(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(n,r)=>(r??[]).map(i=>n.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{e.setColumnPinning=t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?od():(n=(r=e.initialState)==null?void 0:r.columnPinning)!=null?n:od())},e.getIsSomeColumnsPinned=t=>{var n;const r=e.getState().columnPinning;if(!t){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e.getLeftLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getRightLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(o=>o.id===r)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.getCenterLeafColumns=Z(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r)=>{const o=[...n??[],...r??[]];return t.filter(i=>!o.includes(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),e.setRowPinning=t=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?id():(n=(r=e.initialState)==null?void 0:r.rowPinning)!=null?n:id())},e.getIsSomeRowsPinned=t=>{var n;const r=e.getState().rowPinning;if(!t){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((n=r[t])!=null&&n.length)},e._getPinnedRows=t=>Z(()=>[e.getRowModel().rows,e.getState().rowPinning[t]],(n,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(r??[]).map(a=>{const s=e.getRow(a,!0);return s.getIsAllParentsExpanded()?s:null}):(r??[]).map(a=>n.find(s=>s.id===a))).filter(Boolean).map(a=>({...a,position:t}))},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugRows}})(),e.getTopRows=()=>e._getPinnedRows("top"),e.getBottomRows=()=>e._getPinnedRows("bottom"),e.getCenterRows=Z(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(t,n,r)=>{const o=new Set([...n??[],...r??[]]);return t.filter(i=>!o.has(i.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})}},_D={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:It("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:(n=e.initialState.rowSelection)!=null?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{const r=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(i=>{rh(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?ad(e,n):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getFilteredSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?ad(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getGroupedSelectedRowModel=Z(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?ad(e,n):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),e.getIsAllRowsSelected=()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState();let r=!!(t.length&&Object.keys(n).length);return r&&t.some(o=>o.getCanSelect()&&!n[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const t=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:n}=e.getState();let r=!!t.length;return r&&t.some(o=>!n[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;const n=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return n>0&&n{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.filter(n=>n.getCanSelect()).some(n=>n.getIsSelected()||n.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{const o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=typeof n<"u"?n:!o,e.getCanSelect()&&o===n)return i;const s={...i};return rh(s,e.id,n,(a=r==null?void 0:r.selectChildren)!=null?a:!0,t),s})},e.getIsSelected=()=>{const{rowSelection:n}=t.getState();return Vv(e,n)},e.getIsSomeSelected=()=>{const{rowSelection:n}=t.getState();return oh(e,n)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:n}=t.getState();return oh(e,n)==="all"},e.getCanSelect=()=>{var n;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(n=t.options.enableRowSelection)!=null?n:!0},e.getCanSelectSubRows=()=>{var n;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(n=t.options.enableSubRowSelection)!=null?n:!0},e.getCanMultiSelect=()=>{var n;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(n=t.options.enableMultiRowSelection)!=null?n:!0},e.getToggleSelectedHandler=()=>{const n=e.getCanSelect();return r=>{var o;n&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},rh=(e,t,n,r,o)=>{var i;const a=o.getRow(t);n?(a.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&(i=a.subRows)!=null&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(s=>rh(e,s.id,n,r,o))};function ad(e,t){const n=e.getState().rowSelection,r=[],o={},i=function(a,s){return a.map(l=>{var u;const c=Vv(l,n);if(c&&(r.push(l),o[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:i(l.subRows)}),c)return l}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function Vv(e,t){var n;return(n=t[e.id])!=null?n:!1}function oh(e,t,n){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(a=>{if(!(i&&!o)&&(a.getCanSelect()&&(Vv(a,t)?i=!0:o=!1),a.subRows&&a.subRows.length)){const s=oh(a,t);s==="all"?i=!0:(s==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const ih=/([0-9]+)/gm,ED=(e,t,n)=>Xx(gr(e.getValue(n)).toLowerCase(),gr(t.getValue(n)).toLowerCase()),OD=(e,t,n)=>Xx(gr(e.getValue(n)),gr(t.getValue(n))),RD=(e,t,n)=>Uv(gr(e.getValue(n)).toLowerCase(),gr(t.getValue(n)).toLowerCase()),PD=(e,t,n)=>Uv(gr(e.getValue(n)),gr(t.getValue(n))),TD=(e,t,n)=>{const r=e.getValue(n),o=t.getValue(n);return r>o?1:rUv(e.getValue(n),t.getValue(n));function Uv(e,t){return e===t?0:e>t?1:-1}function gr(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function Xx(e,t){const n=e.split(ih).filter(Boolean),r=t.split(ih).filter(Boolean);for(;n.length&&r.length;){const o=n.shift(),i=r.shift(),a=parseInt(o,10),s=parseInt(i,10),l=[a,s].sort();if(isNaN(l[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return n.length-r.length}const Ri={alphanumeric:ED,alphanumericCaseSensitive:OD,text:RD,textCaseSensitive:PD,datetime:TD,basic:ID},MD={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:It("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{const n=t.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of n){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return Ri.datetime;if(typeof i=="string"&&(r=!0,i.split(ih).length>1))return Ri.alphanumeric}return r?Ri.text:Ri.basic},e.getAutoSortDir=()=>{const n=t.getFilteredRowModel().flatRows[0];return typeof(n==null?void 0:n.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw new Error;return Ql(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(n=(r=t.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?n:Ri[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{const o=e.getNextSortingOrder(),i=typeof n<"u"&&n!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(p=>p.id===e.id),l=a==null?void 0:a.findIndex(p=>p.id===e.id);let u=[],c,f=i?n:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(i||o||(c="remove")),c==="add"){var d;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(p=>p.id===e.id?{...p,desc:f}:p):c==="remove"?u=a.filter(p=>p.id!==e.id):u=[{id:e.id,desc:f}];return u})},e.getFirstSortDir=()=>{var n,r;return((n=(r=e.columnDef.sortDescFirst)!=null?r:t.options.sortDescFirst)!=null?n:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==i&&((r=t.options.enableSortingRemoval)==null||r)&&(!(n&&(o=t.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":i},e.getCanSort=()=>{var n,r;return((n=e.columnDef.enableSorting)!=null?n:!0)&&((r=t.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return(n=(r=e.columnDef.enableMultiSort)!=null?r:t.options.enableMultiSort)!=null?n:!!e.accessorFn},e.getIsSorted=()=>{var n;const r=(n=t.getState().sorting)==null?void 0:n.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var n,r;return(n=(r=t.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?n:-1},e.clearSorting=()=>{t.setSorting(n=>n!=null&&n.length?n.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const n=e.getCanSort();return r=>{n&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:(n=(r=e.initialState)==null?void 0:r.sorting)!=null?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},FD={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:It("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(r=>({...r,[e.id]:n??!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;return(n=(r=t.getState().columnVisibility)==null?void 0:r[e.id])!=null?n:!0},e.getCanHide=()=>{var n,r;return((n=e.columnDef.enableHiding)!=null?n:!0)&&((r=t.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>n=>{e.toggleVisibility==null||e.toggleVisibility(n.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=Z(()=>[e.getAllCells(),t.getState().columnVisibility],n=>n.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}}),e.getVisibleCells=Z(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(n,r,o)=>[...n,...r,...o],{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugRows}})},createTable:e=>{const t=(n,r)=>Z(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),{key:n,debug:()=>{var o;return(o=e.options.debugAll)!=null?o:e.options.debugColumns}});e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=n=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(n),e.resetColumnVisibility=n=>{var r;e.setColumnVisibility(n?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=n=>{var r;n=(r=n)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:n||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(n=>!(n.getIsVisible!=null&&n.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(n=>n.getIsVisible==null?void 0:n.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>n=>{var r;e.toggleAllColumnsVisible((r=n.target)==null?void 0:r.checked)}}},tw=[iD,FD,bD,xD,uD,MD,wD,lD,CD,_D,aD];function kD(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let n={_features:tw};const r=n._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(n)),{}),o=c=>n.options.mergeOptions?n.options.mergeOptions(r,c):{...r,...c};let a={...{},...(t=e.initialState)!=null?t:{}};n._features.forEach(c=>{var f;a=(f=c.getInitialState==null?void 0:c.getInitialState(a))!=null?f:a});const s=[];let l=!1;const u={_features:tw,options:{...r,...e},initialState:a,_queue:c=>{s.push(c),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{n.setState(n.initialState)},setOptions:c=>{const f=ir(c,n.options);n.options=o(f)},getState:()=>n.options.state,setState:c=>{n.options.onStateChange==null||n.options.onStateChange(c)},_getRowId:(c,f,d)=>{var p;return(p=n.options.getRowId==null?void 0:n.options.getRowId(c,f,d))!=null?p:`${d?[d.id,f].join("."):f}`},getCoreRowModel:()=>(n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()),getRowModel:()=>n.getPaginationRowModel(),getRow:(c,f)=>{const d=(f?n.getCoreRowModel():n.getRowModel()).rowsById[c];if(!d)throw new Error;return d},_getDefaultColumnDef:Z(()=>[n.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:d=>{const p=d.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:d=>{var p,v;return(p=(v=d.renderValue())==null||v.toString==null?void 0:v.toString())!=null?p:null},...n._features.reduce((d,p)=>Object.assign(d,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns},key:!1}),_getColumnDefs:()=>n.options.columns,getAllColumns:Z(()=>[n._getColumnDefs()],c=>{const f=function(d,p,v){return v===void 0&&(v=0),d.map(h=>{const w=oD(n,h,v,p),m=h;return w.columns=m.columns?f(m.columns,w,v+1):[],w})};return f(c)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllFlatColumns:Z(()=>[n.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),_getAllFlatColumnsById:Z(()=>[n.getAllFlatColumns()],c=>c.reduce((f,d)=>(f[d.id]=d,f),{}),{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllLeafColumns:Z(()=>[n.getAllColumns(),n._getOrderColumnsFn()],(c,f)=>{let d=c.flatMap(p=>p.getLeafColumns());return f(d)},{key:!1,debug:()=>{var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getColumn:c=>n._getAllFlatColumnsById()[c]};Object.assign(n,u);for(let c=0;c{var a;return(a=i.getValue())!=null?a:e.options.renderFallbackValue},i={id:`${t.id}_${n.id}`,row:t,column:n,getValue:()=>t.getValue(r),renderValue:o,getContext:Z(()=>[e,n,t,i],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,n,t,e)},{}),i}const jv=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(s._valuesCache.hasOwnProperty(l))return s._valuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return s._valuesCache[l]=u.accessorFn(s.original,r),s._valuesCache[l]},getUniqueValues:l=>{if(s._uniqueValuesCache.hasOwnProperty(l))return s._uniqueValuesCache[l];const u=e.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(s._uniqueValuesCache[l]=u.columnDef.getUniqueValues(s.original,r),s._uniqueValuesCache[l]):(s._uniqueValuesCache[l]=[s.getValue(l)],s._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=s.getValue(l))!=null?u:e.options.renderFallbackValue},subRows:i??[],getLeafRows:()=>rD(s.subRows,l=>l.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let l=[],u=s;for(;;){const c=u.getParentRow();if(!c)break;l.push(c),u=c}return l.reverse()},getAllCells:Z(()=>[e.getAllLeafColumns()],l=>l.map(u=>DD(e,s,u,u.id)),{key:!1,debug:()=>{var l;return(l=e.options.debugAll)!=null?l:e.options.debugRows}}),_getAllCellsByColumnId:Z(()=>[s.getAllCells()],l=>l.reduce((u,c)=>(u[c.column.id]=c,u),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var l;return(l=e.options.debugAll)!=null?l:e.options.debugRows}})};for(let l=0;lZ(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(o,i,a){i===void 0&&(i=0);const s=[];for(let u=0;u{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function Yx(e,t,n){return n.options.filterFromLeafRows?AD(e,t,n):ND(e,t,n)}function AD(e,t,n){var r;const o=[],i={},a=(r=n.options.maxLeafRowFilterDepth)!=null?r:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let d=0;dZ(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{if(!t.rows.length||!(n!=null&&n.length)&&!r){for(let d=0;d{var p;const v=e.getColumn(d.id);if(!v)return;const h=v.getFilterFn();h&&o.push({id:d.id,filterFn:h,resolvedValue:(p=h.resolveFilterValue==null?void 0:h.resolveFilterValue(d.value))!=null?p:d.value})});const a=n.map(d=>d.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());r&&s&&l.length&&(a.push("__global__"),l.forEach(d=>{var p;i.push({id:d.id,filterFn:s,resolvedValue:(p=s.resolveFilterValue==null?void 0:s.resolveFilterValue(r))!=null?p:r})}));let u,c;for(let d=0;d{p.columnFiltersMeta[h]=w})}if(i.length){for(let v=0;v{p.columnFiltersMeta[h]=w})){p.columnFilters.__global__=!0;break}}p.columnFilters.__global__!==!0&&(p.columnFilters.__global__=!1)}}const f=d=>{for(let p=0;p{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function VD(){return(e,t)=>Z(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter,e.getFilteredRowModel()],(n,r,o)=>{if(!n.rows.length||!(r!=null&&r.length)&&!o)return n;const i=[...r.map(s=>s.id).filter(s=>s!==t),o?"__global__":void 0].filter(Boolean),a=s=>{for(let l=0;l{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable},onChange:()=>{}})}function UD(){return(e,t)=>Z(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{if(!n)return new Map;let r=new Map;for(let i=0;i{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable},onChange:()=>{}})}function jD(){return(e,t)=>Z(()=>{var n;return[(n=e.getColumn(t))==null?void 0:n.getFacetedRowModel()]},n=>{var r;if(!n)return;const o=(r=n.flatRows[0])==null?void 0:r.getUniqueValues(t);if(typeof o>"u")return;let i=[o,o];for(let a=0;ai[1]&&(i[1]=u)}}return i},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable},onChange:()=>{}})}function BD(){return e=>Z(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(t!=null&&t.length))return n;const r=e.getState().sorting,o=[],i=r.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};i.forEach(l=>{const u=e.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=l.map(c=>({...c}));return u.sort((c,f)=>{for(let p=0;p{var f;o.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function zD(e){const t=[],n=r=>{var o;t.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function HD(e){return t=>Z(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(n,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:i}=n;let{rows:a,flatRows:s,rowsById:l}=r;const u=o*i,c=u+o;a=a.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:a,flatRows:s,rowsById:l}:f=zD({rows:a,flatRows:s,rowsById:l}),f.flatRows=[];const d=p=>{f.flatRows.push(p),p.subRows.length&&p.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var n;return(n=t.options.debugAll)!=null?n:t.options.debugTable}})}/** + * react-table + * + * Copyright (c) TanStack + * + * 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 nw(e,t){return e?WD(e)?R.createElement(e,t):e:null}function WD(e){return GD(e)||typeof e=="function"||qD(e)}function GD(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function qD(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function QD(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=R.useState(()=>({current:kD(t)})),[r,o]=R.useState(()=>n.current.initialState);return n.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),n.current}function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function KD(e,t){if(Zr(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zr(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zx(e){var t=KD(e,"string");return Zr(t)==="symbol"?t:String(t)}function $i(e,t,n){return t=Zx(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Q(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(n[o]=e[o]);return n}function Bn(e,t){if(e==null)return{};var n=JD(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var e$=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function t$(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,a=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,v=Bn(e,e$),h=R.useState(s!==void 0?s:n),w=kn(h,2),m=w[0],g=w[1],y=R.useState(l!==void 0?l:o),b=kn(y,2),E=b[0],C=b[1],_=R.useState(p!==void 0?p:a),O=kn(_,2),M=O[0],P=O[1],$=R.useCallback(function(D,j){typeof u=="function"&&u(D,j),P(D)},[u]),A=R.useCallback(function(D,j){var B;typeof c=="function"&&(B=c(D,j)),g(B!==void 0?B:D)},[c]),H=R.useCallback(function(){typeof d=="function"&&d(),C(!0)},[d]),J=R.useCallback(function(){typeof f=="function"&&f(),C(!1)},[f]),ee=s!==void 0?s:m,te=l!==void 0?l:E,ne=p!==void 0?p:M;return Q(Q({},v),{},{inputValue:ee,menuIsOpen:te,onChange:$,onInputChange:A,onMenuClose:J,onMenuOpen:H,value:ne})}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function a$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s$(e,t){if(t&&(Zr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a$(e)}function l$(e){var t=i$();return function(){var r=Kl(e),o;if(t){var i=Kl(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return s$(this,o)}}function u$(e){if(Array.isArray(e))return ah(e)}function c$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f$(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bv(e){return u$(e)||c$(e)||Jx(e)||f$()}function d$(e){if(e.sheet)return e.sheet;for(var t=0;t0?Ze(vi,--Ct):0,si--,$e===10&&(si=1,Sc--),$e}function Pt(){return $e=Ct2||ma($e)>3?"":" "}function E$(e,t){for(;--t&&Pt()&&!($e<48||$e>102||$e>57&&$e<65||$e>70&&$e<97););return Xa(e,yl()+(t<6&&Cn()==32&&Pt()==32))}function uh(e){for(;Pt();)switch($e){case e:return Ct;case 34:case 39:e!==34&&e!==39&&uh($e);break;case 40:e===41&&uh(e);break;case 92:Pt();break}return Ct}function O$(e,t){for(;Pt()&&e+$e!==57;)if(e+$e===84&&Cn()===47)break;return"/*"+Xa(t,Ct-1)+"*"+wc(e===47?e:Pt())}function R$(e){for(;!ma(Cn());)Pt();return Xa(e,Ct)}function P$(e){return i_(Sl("",null,null,null,[""],e=o_(e),0,[0],e))}function Sl(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,d=0,p=0,v=0,h=1,w=1,m=1,g=0,y="",b=o,E=i,C=r,_=y;w;)switch(v=g,g=Pt()){case 40:if(v!=108&&Ze(_,f-1)==58){lh(_+=me(wl(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:_+=wl(g);break;case 9:case 10:case 13:case 32:_+=_$(v);break;case 92:_+=E$(yl()-1,7);continue;case 47:switch(Cn()){case 42:case 47:qs(T$(O$(Pt(),yl()),t,n),l);break;default:_+="/"}break;case 123*h:s[u++]=mn(_)*m;case 125*h:case 59:case 0:switch(g){case 0:case 125:w=0;case 59+c:m==-1&&(_=me(_,/\f/g,"")),p>0&&mn(_)-f&&qs(p>32?aw(_+";",r,n,f-1):aw(me(_," ","")+";",r,n,f-2),l);break;case 59:_+=";";default:if(qs(C=iw(_,t,n,u,c,o,s,y,b=[],E=[],f),i),g===123)if(c===0)Sl(_,t,C,C,b,i,f,s,E);else switch(d===99&&Ze(_,3)===110?100:d){case 100:case 108:case 109:case 115:Sl(e,C,C,r&&qs(iw(e,C,C,0,0,o,s,y,o,b=[],f),E),o,E,f,s,r?b:E);break;default:Sl(_,C,C,C,[""],E,0,s,E)}}u=c=p=0,h=m=1,y=_="",f=a;break;case 58:f=1+mn(_),p=v;default:if(h<1){if(g==123)--h;else if(g==125&&h++==0&&x$()==125)continue}switch(_+=wc(g),g*h){case 38:m=c>0?1:(_+="\f",-1);break;case 44:s[u++]=(mn(_)-1)*m,m=1;break;case 64:Cn()===45&&(_+=wl(Pt())),d=Cn(),c=f=mn(y=_+=R$(yl())),g++;break;case 45:v===45&&mn(_)==2&&(h=0)}}return i}function iw(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,d=o===0?i:[""],p=Wv(d),v=0,h=0,w=0;v0?d[m]+" "+g:me(g,/&\f/g,d[m])))&&(l[w++]=y);return bc(e,t,n,o===0?zv:s,l,u,c)}function T$(e,t,n){return bc(e,t,n,e_,wc(C$()),ha(e,2,-2),0)}function aw(e,t,n,r){return bc(e,t,n,Hv,ha(e,0,r),ha(e,r+1,-1),r)}function $o(e,t){for(var n="",r=Wv(e),o=0;o6)switch(Ze(e,t+1)){case 109:if(Ze(e,t+4)!==45)break;case 102:return me(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+Xl+(Ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lh(e,"stretch")?a_(me(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ze(e,t+1)!==115)break;case 6444:switch(Ze(e,mn(e)-3-(~lh(e,"!important")&&10))){case 107:return me(e,":",":"+he)+e;case 101:return me(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(Ze(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(Ze(e,t+11)){case 114:return he+e+at+me(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+at+me(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+at+me(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+at+e+e}return e}var V$=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Hv:t.return=a_(t.value,t.length);break;case t_:return $o([Pi(t,{value:me(t.value,"@","@"+he)})],o);case zv:if(t.length)return b$(t.props,function(i){switch(S$(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $o([Pi(t,{props:[me(i,/:(read-\w+)/,":"+Xl+"$1")]})],o);case"::placeholder":return $o([Pi(t,{props:[me(i,/:(plac\w+)/,":"+he+"input-$1")]}),Pi(t,{props:[me(i,/:(plac\w+)/,":"+Xl+"$1")]}),Pi(t,{props:[me(i,/:(plac\w+)/,at+"input-$1")]})],o)}return""})}},U$=[V$],j$=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var w=h.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||U$,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var w=h.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Q$={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},K$=/[A-Z]|^ms/g,X$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c_=function(t){return t.charCodeAt(1)===45},lw=function(t){return t!=null&&typeof t!="boolean"},sd=k$(function(e){return c_(e)?e:e.replace(K$,"-$&").toLowerCase()}),uw=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(X$,function(r,o,i){return vn={name:o,styles:i,next:vn},o})}return Q$[t]!==1&&!c_(t)&&typeof n=="number"&&n!==0?n+"px":n};function va(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return vn={name:n.name,styles:n.styles,next:vn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)vn={name:r.name,styles:r.styles,next:vn},r=r.next;var o=n.styles+";";return o}return Y$(e,t,n)}case"function":{if(e!==void 0){var i=vn,a=n(e);return vn=i,va(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Y$(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o({x:e,y:e});function fA(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function p_(e){return m_(e)?(e.nodeName||"").toLowerCase():"#document"}function rn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function h_(e){var t;return(t=(m_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function m_(e){return e instanceof Node||e instanceof rn(e).Node}function fh(e){return e instanceof Element||e instanceof rn(e).Element}function Qv(e){return e instanceof HTMLElement||e instanceof rn(e).HTMLElement}function fw(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rn(e).ShadowRoot}function v_(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Kv(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function dA(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pA(e){return["html","body","#document"].includes(p_(e))}function Kv(e){return rn(e).getComputedStyle(e)}function hA(e){if(p_(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fw(e)&&e.host||h_(e);return fw(t)?t.host:t}function g_(e){const t=hA(e);return pA(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qv(t)&&v_(t)?t:g_(t)}function Jl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=g_(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=rn(o);return i?t.concat(a,a.visualViewport||[],v_(o)?o:[],a.frameElement&&n?Jl(a.frameElement):[]):t.concat(o,Jl(o,[],n))}function mA(e){const t=Kv(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qv(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Yl(n)!==i||Yl(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Xv(e){return fh(e)?e:e.contextElement}function ld(e){const t=Xv(e);if(!Qv(t))return Zl(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=mA(t);let a=(i?Yl(n.width):n.width)/r,s=(i?Yl(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const vA=Zl(0);function gA(e){const t=rn(e);return!dA()||!t.visualViewport?vA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yA(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==rn(e)?!1:t}function dw(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Xv(e);let a=Zl(1);t&&(r?fh(r)&&(a=ld(r)):a=ld(e));const s=yA(i,n,r)?gA(i):Zl(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,f=o.height/a.y;if(i){const d=rn(i),p=r&&fh(r)?rn(r):r;let v=d.frameElement;for(;v&&r&&p!==d;){const h=ld(v),w=v.getBoundingClientRect(),m=Kv(v),g=w.left+(v.clientLeft+parseFloat(m.paddingLeft))*h.x,y=w.top+(v.clientTop+parseFloat(m.paddingTop))*h.y;l*=h.x,u*=h.y,c*=h.x,f*=h.y,l+=g,u+=y,v=rn(v).frameElement}}return fA({width:c,height:f,x:l,y:u})}function wA(e,t){let n=null,r;const o=h_(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const p=Qs(c),v=Qs(o.clientWidth-(u+f)),h=Qs(o.clientHeight-(c+d)),w=Qs(u),g={rootMargin:-p+"px "+-v+"px "+-h+"px "+-w+"px",threshold:cA(0,uA(1,l))||1};let y=!0;function b(E){const C=E[0].intersectionRatio;if(C!==l){if(!y)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(b,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(b,g)}n.observe(e)}return a(!0),i}function SA(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Xv(e),c=o||i?[...u?Jl(u):[],...Jl(t)]:[];c.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=u&&s?wA(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(m=>{let[g]=m;g&&g.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let v,h=l?dw(e):null;l&&w();function w(){const m=dw(e);h&&(m.x!==h.x||m.y!==h.y||m.width!==h.width||m.height!==h.height)&&n(),h=m,v=requestAnimationFrame(w)}return n(),()=>{c.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),f&&f(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(v)}}var dh=R.useLayoutEffect,bA=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],eu=function(){};function CA(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function xA(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o-1}function _A(e){return Cc(e)?window.innerHeight:e.clientHeight}function w_(e){return Cc(e)?window.pageYOffset:e.scrollTop}function tu(e,t){if(Cc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function EA(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function OA(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ks(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:eu,o=w_(e),i=t-o,a=10,s=0;function l(){s+=a;var u=OA(s,o,i,n);tu(e,u),sn.bottom?tu(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o1?n-1:0),o=1;o=v)return{placement:"bottom",maxHeight:t};if(M>=v&&!a)return i&&Ks(l,P,A),{placement:"bottom",maxHeight:t};if(!a&&M>=r||a&&_>=r){i&&Ks(l,P,A);var H=a?_-b:M-b;return{placement:"bottom",maxHeight:H}}if(o==="auto"||a){var J=t,ee=a?C:O;return ee>=r&&(J=Math.min(ee-b-s,t)),{placement:"top",maxHeight:J}}if(o==="bottom")return i&&tu(l,P),{placement:"bottom",maxHeight:t};break;case"top":if(C>=v)return{placement:"top",maxHeight:t};if(O>=v&&!a)return i&&Ks(l,$,A),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&C>=r){var te=t;return(!a&&O>=r||a&&C>=r)&&(te=a?C-E:O-E),i&&Ks(l,$,A),{placement:"top",maxHeight:te}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}function NA(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var b_=function(t){return t==="auto"?"bottom":t},LA=function(t,n){var r,o=t.placement,i=t.theme,a=i.borderRadius,s=i.spacing,l=i.colors;return Q((r={label:"menu"},$i(r,NA(o),"100%"),$i(r,"position","absolute"),$i(r,"width","100%"),$i(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},C_=R.createContext(null),VA=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=R.useContext(C_)||{},c=u.setPortalPlacement,f=R.useRef(null),d=R.useState(o),p=kn(d,2),v=p[0],h=p[1],w=R.useState(null),m=kn(w,2),g=m[0],y=m[1],b=l.spacing.controlHeight;return dh(function(){var E=f.current;if(E){var C=a==="fixed",_=s&&!C,O=AA({maxHeight:o,menuEl:E,minHeight:r,placement:i,shouldScroll:_,isFixedPosition:C,controlHeight:b});h(O.maxHeight),y(O.placement),c==null||c(O.placement)}},[o,i,a,s,r,c,b]),n({ref:f,placerProps:Q(Q({},t),{},{placement:g||b_(i),maxHeight:v})})},UA=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return G("div",X({},Fe(t,"menu",{menu:!0}),{ref:r},o),n)},jA=UA,BA=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return Q({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},zA=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return G("div",X({},Fe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},x_=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return Q({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},HA=x_,WA=x_,GA=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Bn(t,DA);return G("div",X({},Fe(Q(Q({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},qA=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Bn(t,$A);return G("div",X({},Fe(Q(Q({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},QA=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},KA=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=R.useRef(null),u=R.useRef(null),c=R.useState(b_(a)),f=kn(c,2),d=f[0],p=f[1],v=R.useMemo(function(){return{setPortalPlacement:p}},[]),h=R.useState(null),w=kn(h,2),m=w[0],g=w[1],y=R.useCallback(function(){if(o){var _=RA(o),O=s==="fixed"?0:window.pageYOffset,M=_[d]+O;(M!==(m==null?void 0:m.offset)||_.left!==(m==null?void 0:m.rect.left)||_.width!==(m==null?void 0:m.rect.width))&&g({offset:M,rect:_})}},[o,s,d,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);dh(function(){y()},[y]);var b=R.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),o&&l.current&&(u.current=SA(o,l.current,y,{elementResize:"ResizeObserver"in window}))},[o,y]);dh(function(){b()},[b]);var E=R.useCallback(function(_){l.current=_,b()},[b]);if(!n&&s!=="fixed"||!m)return null;var C=G("div",X({ref:E},Fe(Q(Q({},t),{},{offset:m.offset,position:s,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return G(C_.Provider,{value:v},n?ln.createPortal(C,n):C)},XA=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},YA=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return G("div",X({},Fe(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},ZA=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,a=t.selectProps.controlShouldRenderValue;return Q({alignItems:"center",display:o&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},JA=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return G("div",X({},Fe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},eN=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},tN=function(t){var n=t.children,r=t.innerProps;return G("div",X({},Fe(t,"indicatorsContainer",{indicators:!0}),r),n)},vw,nN=["size"],rN=["innerProps","isRtl","size"],oN={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},__=function(t){var n=t.size,r=Bn(t,nN);return G("svg",X({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:oN},r))},Yv=function(t){return G(__,X({size:20},t),G("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},E_=function(t){return G(__,X({size:20},t),G("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},O_=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return Q({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:i*2,":hover":{color:r?a.neutral80:a.neutral40}})},iN=O_,aN=function(t){var n=t.children,r=t.innerProps;return G("div",X({},Fe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||G(E_,null))},sN=O_,lN=function(t){var n=t.children,r=t.innerProps;return G("div",X({},Fe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||G(Yv,null))},uN=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,a=o.colors;return Q({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:i*2,marginTop:i*2})},cN=function(t){var n=t.innerProps;return G("span",X({},n,Fe(t,"indicatorSeparator",{"indicator-separator":!0})))},fN=sA(vw||(vw=lA([` + 0%, 80%, 100% { opacity: 0; } + 40% { opacity: 1; } +`]))),dN=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,a=i.colors,s=i.spacing.baseUnit;return Q({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},ud=function(t){var n=t.delay,r=t.offset;return G("span",{css:qv({animation:"".concat(fN," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},pN=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,a=Bn(t,rN);return G("div",X({},Fe(Q(Q({},a),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),G(ud,{delay:0,offset:r}),G(ud,{delay:160,offset:!0}),G(ud,{delay:320,offset:!r}))},hN=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,a=i.colors,s=i.borderRadius,l=i.spacing;return Q({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:o?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},mN=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return G("div",X({ref:i},Fe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},vN=mN,gN=["data"],yN=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},wN=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return G("div",X({},Fe(t,"group",{group:!0}),l),G(a,X({},s,{selectProps:f,theme:c,getStyles:o,getClassNames:i,cx:r}),u),G("div",null,n))},SN=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return Q({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},bN=function(t){var n=y_(t);n.data;var r=Bn(n,gN);return G("div",X({},Fe(t,"groupHeading",{"group-heading":!0}),r))},CN=wN,xN=["innerRef","isDisabled","isHidden","inputClassName"],_N=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,a=i.spacing,s=i.colors;return Q(Q({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},EN),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},R_={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},EN={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Q({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},R_)},ON=function(t){return Q({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},R_)},RN=function(t){var n=t.cx,r=t.value,o=y_(t),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=o.inputClassName,u=Bn(o,xN);return G("div",X({},Fe(t,"input",{"input-container":!0}),{"data-value":r||""}),G("input",X({className:n({input:!0},l),ref:i,style:ON(s),disabled:a},u)))},PN=RN,TN=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors;return Q({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},IN=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,a=t.cropWithEllipsis;return Q({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},MN=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,a=r.colors,s=t.isFocused;return Q({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},P_=function(t){var n=t.children,r=t.innerProps;return G("div",r,n)},FN=P_,kN=P_;function DN(e){var t=e.children,n=e.innerProps;return G("div",X({role:"button"},n),t||G(Yv,{size:14}))}var $N=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return G(u,{data:o,innerProps:Q(Q({},Fe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:l},G(c,{data:o,innerProps:Q({},Fe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),G(f,{data:o,innerProps:Q(Q({},Fe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},AN=$N,NN=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return Q({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},LN=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,a=t.innerRef,s=t.innerProps;return G("div",X({},Fe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:a,"aria-disabled":r},s),n)},VN=LN,UN=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return Q({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},jN=function(t){var n=t.children,r=t.innerProps;return G("div",X({},Fe(t,"placeholder",{placeholder:!0}),r),n)},BN=jN,zN=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,a=o.colors;return Q({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},HN=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return G("div",X({},Fe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},WN=HN,GN={ClearIndicator:lN,Control:vN,DropdownIndicator:aN,DownChevron:E_,CrossIcon:Yv,Group:CN,GroupHeading:bN,IndicatorsContainer:tN,IndicatorSeparator:cN,Input:PN,LoadingIndicator:pN,Menu:jA,MenuList:zA,MenuPortal:KA,LoadingMessage:qA,NoOptionsMessage:GA,MultiValue:AN,MultiValueContainer:FN,MultiValueLabel:kN,MultiValueRemove:DN,Option:VN,Placeholder:BN,SelectContainer:YA,SingleValue:WN,ValueContainer:JA},qN=function(t){return Q(Q({},GN),t.components)},gw=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function QN(e,t){return!!(e===t||gw(e)&&gw(t))}function KN(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return a?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,a=i===void 0?"":i,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(h,w){return h&&h.length?"".concat(h.indexOf(w)+1," of ").concat(h.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&c){var d=l?" disabled":"",p="".concat(u?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},JN=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,v=l.isMulti,h=l.isOptionDisabled,w=l.isSearchable,m=l.menuIsOpen,g=l.options,y=l.screenReaderStatus,b=l.tabSelectsValue,E=l.isLoading,C=l["aria-label"],_=l["aria-live"],O=R.useMemo(function(){return Q(Q({},ZN),f||{})},[f]),M=R.useMemo(function(){var ee="";if(n&&O.onChange){var te=n.option,ne=n.options,D=n.removedValue,j=n.removedValues,B=n.value,Y=function(re){return Array.isArray(re)?null:re},q=D||te||Y(B),ve=q?d(q):"",Se=ne||j||void 0,tt=Se?Se.map(d):[],we=Q({isDisabled:q&&h(q,s),label:ve,labels:tt},n);ee=O.onChange(we)}return ee},[n,O,h,s,d]),P=R.useMemo(function(){var ee="",te=r||o,ne=!!(r&&s&&s.includes(r));if(te&&O.onFocus){var D={focused:te,label:d(te),isDisabled:h(te,s),isSelected:ne,options:i,context:te===r?"menu":"value",selectValue:s,isAppleDevice:c};ee=O.onFocus(D)}return ee},[r,o,d,h,O,i,s,c]),$=R.useMemo(function(){var ee="";if(m&&g.length&&!E&&O.onFilter){var te=y({count:i.length});ee=O.onFilter({inputValue:p,resultsMessage:te})}return ee},[i,p,m,O,g,y,E]),A=(n==null?void 0:n.action)==="initial-input-focus",H=R.useMemo(function(){var ee="";if(O.guidance){var te=o?"value":m?"menu":"input";ee=O.guidance({"aria-label":C,context:te,isDisabled:r&&h(r,s),isMulti:v,isSearchable:w,tabSelectsValue:b,isInitialFocus:A})}return ee},[C,r,o,v,h,w,m,O,s,b,A]),J=G(R.Fragment,null,G("span",{id:"aria-selection"},M),G("span",{id:"aria-focused"},P),G("span",{id:"aria-results"},$),G("span",{id:"aria-guidance"},H));return G(R.Fragment,null,G(yw,{id:u},A&&J),G(yw,{"aria-live":_,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!A&&J))},eL=JN,ph=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],tL=new RegExp("["+ph.map(function(e){return e.letters}).join("")+"]","g"),I_={};for(var cd=0;cd-1}},iL=["innerRef"];function aL(e){var t=e.innerRef,n=Bn(e,iL),r=kA(n,"onExited","in","enter","exit","appear");return G("input",X({ref:t},r,{css:qv({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var sL=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function lL(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=R.useRef(!1),s=R.useRef(!1),l=R.useRef(0),u=R.useRef(null),c=R.useCallback(function(w,m){if(u.current!==null){var g=u.current,y=g.scrollTop,b=g.scrollHeight,E=g.clientHeight,C=u.current,_=m>0,O=b-E-y,M=!1;O>m&&a.current&&(r&&r(w),a.current=!1),_&&s.current&&(i&&i(w),s.current=!1),_&&m>O?(n&&!a.current&&n(w),C.scrollTop=b,M=!0,a.current=!0):!_&&-m>y&&(o&&!s.current&&o(w),C.scrollTop=0,M=!0,s.current=!0),M&&sL(w)}},[n,r,o,i]),f=R.useCallback(function(w){c(w,w.deltaY)},[c]),d=R.useCallback(function(w){l.current=w.changedTouches[0].clientY},[]),p=R.useCallback(function(w){var m=l.current-w.changedTouches[0].clientY;c(w,m)},[c]),v=R.useCallback(function(w){if(w){var m=IA?{passive:!1}:!1;w.addEventListener("wheel",f,m),w.addEventListener("touchstart",d,m),w.addEventListener("touchmove",p,m)}},[p,d,f]),h=R.useCallback(function(w){w&&(w.removeEventListener("wheel",f,!1),w.removeEventListener("touchstart",d,!1),w.removeEventListener("touchmove",p,!1))},[p,d,f]);return R.useEffect(function(){if(t){var w=u.current;return v(w),function(){h(w)}}},[t,v,h]),function(w){u.current=w}}var Sw=["boxSizing","height","overflow","paddingRight","position"],bw={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Cw(e){e.preventDefault()}function xw(e){e.stopPropagation()}function _w(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ew(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ow=!!(typeof window<"u"&&window.document&&window.document.createElement),Ti=0,po={capture:!1,passive:!1};function uL(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=R.useRef({}),i=R.useRef(null),a=R.useCallback(function(l){if(Ow){var u=document.body,c=u&&u.style;if(r&&Sw.forEach(function(v){var h=c&&c[v];o.current[v]=h}),r&&Ti<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(bw).forEach(function(v){var h=bw[v];c&&(c[v]=h)}),c&&(c.paddingRight="".concat(p,"px"))}u&&Ew()&&(u.addEventListener("touchmove",Cw,po),l&&(l.addEventListener("touchstart",_w,po),l.addEventListener("touchmove",xw,po))),Ti+=1}},[r]),s=R.useCallback(function(l){if(Ow){var u=document.body,c=u&&u.style;Ti=Math.max(Ti-1,0),r&&Ti<1&&Sw.forEach(function(f){var d=o.current[f];c&&(c[f]=d)}),u&&Ew()&&(u.removeEventListener("touchmove",Cw,po),l&&(l.removeEventListener("touchstart",_w,po),l.removeEventListener("touchmove",xw,po)))}},[r]);return R.useEffect(function(){if(t){var l=i.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){i.current=l}}var cL=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},fL={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function dL(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=lL({isEnabled:o,onBottomArrive:i,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=uL({isEnabled:n}),f=function(p){u(p),c(p)};return G(R.Fragment,null,n&&G("div",{onClick:cL,css:fL}),t(f))}var pL={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},hL=function(t){var n=t.name,r=t.onFocus;return G("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:pL,value:"",onChange:function(){}})},mL=hL;function Zv(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function vL(){return Zv(/^iPhone/i)}function F_(){return Zv(/^Mac/i)}function gL(){return Zv(/^iPad/i)||F_()&&navigator.maxTouchPoints>1}function yL(){return vL()||gL()}function wL(){return F_()||yL()}var SL=function(t){return t.label},bL=function(t){return t.label},CL=function(t){return t.value},xL=function(t){return!!t.isDisabled},_L={clearIndicator:sN,container:XA,control:hN,dropdownIndicator:iN,group:yN,groupHeading:SN,indicatorsContainer:eN,indicatorSeparator:uN,input:_N,loadingIndicator:dN,loadingMessage:WA,menu:LA,menuList:BA,menuPortal:QA,multiValue:TN,multiValueLabel:IN,multiValueRemove:MN,noOptionsMessage:HA,option:NN,placeholder:UN,singleValue:zN,valueContainer:ZA},EL={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},OL=4,k_=4,RL=38,PL=k_*2,TL={baseUnit:k_,controlHeight:RL,menuGutter:PL},pd={borderRadius:OL,colors:EL,spacing:TL},IL={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:mw(),captureMenuScroll:!mw(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:oL(),formatGroupLabel:SL,getOptionLabel:bL,getOptionValue:CL,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:xL,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!PA(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Rw(e,t,n,r){var o=A_(e,t,n),i=N_(e,t,n),a=$_(e,t),s=nu(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function bl(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(a,s){return Rw(e,a,t,s)}).filter(function(a){return Tw(e,a)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=Rw(e,n,t,r);return Tw(e,i)?i:void 0}).filter(MA)}function D_(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Bv(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function Pw(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,Bv(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function ML(e,t){return D_(bl(e,t))}function Tw(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!V_(e)||!i)&&L_(e,{label:a,value:s,data:o},r)}function FL(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o-1?n:t[0]}var hd=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},$_=function(t,n){return t.getOptionLabel(n)},nu=function(t,n){return t.getOptionValue(n)};function A_(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function N_(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=nu(e,t);return n.some(function(o){return nu(e,o)===r})}function L_(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var V_=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},DL=1,U_=function(e){o$(n,e);var t=l$(n);function n(r){var o;if(n$(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=wL(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,u){var c=o.props,f=c.onChange,d=c.name;u.name=d,o.ariaOnChange(l,u),f(l,u)},o.setValue=function(l,u,c){var f=o.props,d=f.closeMenuOnSelect,p=f.isMulti,v=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:v}),d&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:u,option:c})},o.selectOption=function(l){var u=o.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,p=o.state.selectValue,v=f&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(v){var w=o.getOptionValue(l);o.setValue(p.filter(function(m){return o.getOptionValue(m)!==w}),"deselect-option",l)}else if(!h)f?o.setValue([].concat(Bv(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&o.blurInput()},o.removeValue=function(l){var u=o.props.isMulti,c=o.state.selectValue,f=o.getOptionValue(l),d=c.filter(function(v){return o.getOptionValue(v)!==f}),p=Ys(u,d,d[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(Ys(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,u=o.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Ys(l,f,f[0]||null);o.onChange(d,{action:"pop-value",removedValue:c})},o.getFocusedOptionId=function(l){return hd(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return Pw(bl(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;cp||d>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var u=o.props.inputValue,c=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(c,{action:"input-change",prevInputValue:u}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var u=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:u}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var u=o.getFocusableOptions(),c=u.indexOf(l);o.setState({focusedOption:l,focusedOptionId:c>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return V_(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var u=o.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,p=u.inputValue,v=u.isClearable,h=u.isDisabled,w=u.menuIsOpen,m=u.onKeyDown,g=u.tabSelectsValue,y=u.openMenuOnFocus,b=o.state,E=b.focusedOption,C=b.focusedValue,_=b.selectValue;if(!h&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||p)return;o.focusValue("previous");break;case"ArrowRight":if(!c||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(C)o.removeValue(C);else{if(!f)return;c?o.popValue():v&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!w||!g||!E||y&&o.isOptionSelected(E,_))return;o.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(w){if(!E||o.isComposing)return;o.selectOption(E);break}return;case"Escape":w?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):v&&d&&o.clearValue();break;case" ":if(p)return;if(!w){o.openMenu("first");break}if(!E)return;o.selectOption(E);break;case"ArrowUp":w?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":w?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!w)return;o.focusOption("pageup");break;case"PageDown":if(!w)return;o.focusOption("pagedown");break;case"Home":if(!w)return;o.focusOption("first");break;case"End":if(!w)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++DL),o.state.selectValue=pw(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),s=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=a[s],o.state.focusedOptionId=hd(i,a[s])}return o}return r$(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&hw(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,a=i.isDisabled,s=i.menuIsOpen,l=this.state.isFocused;(l&&!a&&o.isDisabled||l&&s&&!o.menuIsOpen)&&this.focusInput(),l&&a&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(hw(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=o==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,a=i.selectValue,s=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(o){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),o==="up"?l=u>0?u-1:s.length-1:o==="down"?l=(u+1)%s.length:o==="pageup"?(l=u-i,l<0&&(l=0)):o==="pagedown"?(l=u+i,l>s.length-1&&(l=s.length-1)):o==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(pd):Q(Q({},pd),this.props.theme):pd}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,v=f.options,h=this.hasValue();return{clearValue:o,cx:i,getStyles:a,getClassNames:s,getValue:l,hasValue:h,isMulti:d,isRtl:p,options:v,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,a=o.isMulti;return i===void 0?a:i}},{key:"isOptionDisabled",value:function(o,i){return A_(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return N_(this.props,o,i)}},{key:"filterOption",value:function(o,i){return L_(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:a,selectValue:s})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,a=o.isSearchable,s=o.inputId,l=o.inputValue,u=o.tabIndex,c=o.form,f=o.menuIsOpen,d=o.required,p=this.getComponents(),v=p.Input,h=this.state,w=h.inputIsHidden,m=h.ariaSelection,g=this.commonProps,y=s||this.getElementId("input"),b=Q(Q(Q({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?R.createElement(v,X({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:y,innerRef:this.getInputRef,isDisabled:i,isHidden:w,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},b)):R.createElement(aL,X({id:y,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:eu,onFocus:this.onInputFocus,disabled:i,tabIndex:u,inputMode:"none",form:c,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),a=i.MultiValue,s=i.MultiValueContainer,l=i.MultiValueLabel,u=i.MultiValueRemove,c=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,v=p.controlShouldRenderValue,h=p.isDisabled,w=p.isMulti,m=p.inputValue,g=p.placeholder,y=this.state,b=y.selectValue,E=y.focusedValue,C=y.isFocused;if(!this.hasValue()||!v)return m?null:R.createElement(f,X({},d,{key:"placeholder",isDisabled:h,isFocused:C,innerProps:{id:this.getElementId("placeholder")}}),g);if(w)return b.map(function(O,M){var P=O===E,$="".concat(o.getOptionLabel(O),"-").concat(o.getOptionValue(O));return R.createElement(a,X({},d,{components:{Container:s,Label:l,Remove:u},isFocused:P,isDisabled:h,key:$,index:M,removeProps:{onClick:function(){return o.removeValue(O)},onTouchEnd:function(){return o.removeValue(O)},onMouseDown:function(H){H.preventDefault()}},data:O}),o.formatOptionLabel(O,"value"))});if(m)return null;var _=b[0];return R.createElement(c,X({},d,{data:_,isDisabled:h}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,X({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!i||!u)return null;var f={"aria-hidden":"true"};return R.createElement(i,X({},a,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,a=o.IndicatorSeparator;if(!i||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return R.createElement(a,X({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(i,X({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),a=i.Group,s=i.GroupHeading,l=i.Menu,u=i.MenuList,c=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,v=this.commonProps,h=this.state.focusedOption,w=this.props,m=w.captureMenuScroll,g=w.inputValue,y=w.isLoading,b=w.loadingMessage,E=w.minMenuHeight,C=w.maxMenuHeight,_=w.menuIsOpen,O=w.menuPlacement,M=w.menuPosition,P=w.menuPortalTarget,$=w.menuShouldBlockScroll,A=w.menuShouldScrollIntoView,H=w.noOptionsMessage,J=w.onMenuScrollToTop,ee=w.onMenuScrollToBottom;if(!_)return null;var te=function(ve,Se){var tt=ve.type,we=ve.data,Qe=ve.isDisabled,re=ve.isSelected,F=ve.label,W=ve.value,K=h===we,Le=Qe?void 0:function(){return o.onOptionHover(we)},Nt=Qe?void 0:function(){return o.selectOption(we)},xt="".concat(o.getElementId("option"),"-").concat(Se),nt={id:xt,onClick:Nt,onMouseMove:Le,onMouseOver:Le,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:re};return R.createElement(p,X({},v,{innerProps:nt,data:we,isDisabled:Qe,isSelected:re,key:xt,label:F,type:tt,value:W,isFocused:K,innerRef:K?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(ve.data,"menu"))},ne;if(this.hasOptions())ne=this.getCategorizedOptions().map(function(q){if(q.type==="group"){var ve=q.data,Se=q.options,tt=q.index,we="".concat(o.getElementId("group"),"-").concat(tt),Qe="".concat(we,"-heading");return R.createElement(a,X({},v,{key:we,data:ve,options:Se,Heading:s,headingProps:{id:Qe,data:q.data},label:o.formatGroupLabel(q.data)}),q.options.map(function(re){return te(re,"".concat(tt,"-").concat(re.index))}))}else if(q.type==="option")return te(q,"".concat(q.index))});else if(y){var D=b({inputValue:g});if(D===null)return null;ne=R.createElement(f,v,D)}else{var j=H({inputValue:g});if(j===null)return null;ne=R.createElement(d,v,j)}var B={minMenuHeight:E,maxMenuHeight:C,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:A},Y=R.createElement(VA,X({},v,B),function(q){var ve=q.ref,Se=q.placerProps,tt=Se.placement,we=Se.maxHeight;return R.createElement(l,X({},v,B,{innerRef:ve,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:y,placement:tt}),R.createElement(dL,{captureEnabled:m,onTopArrive:J,onBottomArrive:ee,lockEnabled:$},function(Qe){return R.createElement(u,X({},v,{innerRef:function(F){o.getMenuListRef(F),Qe(F)},innerProps:{role:"listbox","aria-multiselectable":v.isMulti,id:o.getElementId("listbox")},isLoading:y,maxHeight:we,focusedOption:h}),ne)}))});return P||M==="fixed"?R.createElement(c,X({},v,{appendTo:P,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),Y):Y}},{key:"renderFormField",value:function(){var o=this,i=this.props,a=i.delimiter,s=i.isDisabled,l=i.isMulti,u=i.name,c=i.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return R.createElement(mL,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var d=f.map(function(h){return o.getOptionValue(h)}).join(a);return R.createElement("input",{name:u,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(h,w){return R.createElement("input",{key:"i-".concat(w),name:u,type:"hidden",value:o.getOptionValue(h)})}):R.createElement("input",{name:u,type:"hidden",value:""});return R.createElement("div",null,p)}else{var v=f[0]?this.getOptionValue(f[0]):"";return R.createElement("input",{name:u,type:"hidden",value:v})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,a=i.ariaSelection,s=i.focusedOption,l=i.focusedValue,u=i.isFocused,c=i.selectValue,f=this.getFocusableOptions();return R.createElement(eL,X({},o,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,a=o.IndicatorsContainer,s=o.SelectContainer,l=o.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,p=u.menuIsOpen,v=this.state.isFocused,h=this.commonProps=this.getCommonProps();return R.createElement(s,X({},h,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:v}),this.renderLiveRegion(),R.createElement(i,X({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:v,menuIsOpen:p}),R.createElement(l,X({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(a,X({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,u=i.ariaSelection,c=i.isFocused,f=i.prevWasFocused,d=i.instancePrefix,p=o.options,v=o.value,h=o.menuIsOpen,w=o.inputValue,m=o.isMulti,g=pw(v),y={};if(a&&(v!==a.value||p!==a.options||h!==a.menuIsOpen||w!==a.inputValue)){var b=h?ML(o,g):[],E=h?Pw(bl(o,g),"".concat(d,"-option")):[],C=s?FL(i,g):null,_=kL(i,b),O=hd(E,_);y={selectValue:g,focusedOption:_,focusedOptionId:O,focusableOptionsWithIds:E,focusedValue:C,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},P=u,$=c&&f;return c&&!$&&(P={value:Ys(m,g,g[0]||null),options:g,action:"initial-input-focus"},$=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(P=null),Q(Q(Q({},y),M),{},{prevProps:o,ariaSelection:P,prevWasFocused:$})}}]),n}(R.Component);U_.defaultProps=IL;var $L=R.forwardRef(function(e,t){var n=t$(e);return R.createElement(U_,X({ref:t},n))}),Ki=$L;function AL(e){return x.createElement(Ye,{target:"_blank",rel:"noopener noreferrer",disabled:!e.character_name,alt:"zKillboard",href:`https://zkillboard.com/search/${e.character_name}/`},x.createElement("span",{className:"fa-stack fas",style:{lineHeight:"1em",height:"1em",width:"1em"}},x.createElement("i",{className:"fas fa-sort-down"}),x.createElement("i",{className:"fas fa-minus fa-stack-1x",style:{top:"-3px"}})))}function NL(e){return x.createElement(Ye,{target:"_blank",rel:"noopener noreferrer",disabled:!e.character_id,alt:"Eve Who",href:`https://evewho.com/character/${e.character_id}/`},x.createElement("i",{className:"fas fa-user"}))}const LL=e=>x.createElement(vx,{height:e.height&&e.height,width:e.width&&e.width,style:e.style&&e.style,src:`https://images.evetech.net/characters/${e.character_id}/portrait?size=${e.size}`}),VL=e=>x.createElement(vx,{height:e.height&&e.height,width:e.width&&e.width,style:e.style&&e.style,src:`https://images.evetech.net/corporations/${e.corporation_id}/logo?size=${e.size}`});function j_(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",n==="top"&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var UL=`.Loader-module_flexContainer__GlMdi { + margin-top: 150px; + display: flex; + align-items: center; + justify-content: center; + align-content: center; + flex-wrap: wrap; + flex-direction: row; +} + +@keyframes Loader-module_shake__1mapc { + 10%, + 90% { + transform: translate3d(-1px, 0, 0); + } + + 20%, + 80% { + transform: translate3d(2px, 0, 0); + } + + 30%, + 50%, + 70% { + transform: translate3d(-4px, 0, 0); + } + + 40%, + 60% { + transform: translate3d(4px, 0, 0); + } +} + +.Loader-module_errorAnim__h3bUy { + animation: Loader-module_shake__1mapc 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; + animation-iteration-count: infinite; +} + +.Loader-module_ldsDualRing__EJnqD { + display: inline-block; + width: 80px; + height: 80px; +} + +.Loader-module_ldsDualRing__EJnqD:after { + content: " "; + display: block; + width: 64px; + height: 64px; + margin: 8px; + border-radius: 50%; + border-width: 6px; + border-style: solid; + border-left-color: inherit; + border-top-color: transparent; + border-right-color: inherit; + border-bottom-color: transparent; + animation: Loader-module_lds-dual-ring__4SWmn 1.2s linear infinite; +} + +@keyframes Loader-module_lds-dual-ring__4SWmn { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} + +/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkxvYWRlci5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsaUJBQWlCO0VBQ2pCLGFBQWE7RUFDYixtQkFBbUI7RUFDbkIsdUJBQXVCO0VBQ3ZCLHFCQUFxQjtFQUNyQixlQUFlO0VBQ2YsbUJBQW1CO0FBQ3JCOztBQUVBO0VBQ0U7O0lBRUUsa0NBQWtDO0VBQ3BDOztFQUVBOztJQUVFLGlDQUFpQztFQUNuQzs7RUFFQTs7O0lBR0Usa0NBQWtDO0VBQ3BDOztFQUVBOztJQUVFLGlDQUFpQztFQUNuQztBQUNGOztBQUVBO0VBQ0UscUZBQWdFO0VBQ2hFLG1DQUFtQztBQUNyQzs7QUFFQTtFQUNFLHFCQUFxQjtFQUNyQixXQUFXO0VBQ1gsWUFBWTtBQUNkOztBQUVBO0VBQ0UsWUFBWTtFQUNaLGNBQWM7RUFDZCxXQUFXO0VBQ1gsWUFBWTtFQUNaLFdBQVc7RUFDWCxrQkFBa0I7RUFDbEIsaUJBQWlCO0VBQ2pCLG1CQUFtQjtFQUNuQiwwQkFBMEI7RUFDMUIsNkJBQTZCO0VBQzdCLDJCQUEyQjtFQUMzQixnQ0FBZ0M7RUFDaEMsa0VBQTZDO0FBQy9DOztBQUVBO0VBQ0U7SUFDRSx1QkFBdUI7RUFDekI7RUFDQTtJQUNFLHlCQUF5QjtFQUMzQjtBQUNGIiwiZmlsZSI6IkxvYWRlci5tb2R1bGUuY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZsZXhDb250YWluZXIge1xuICBtYXJnaW4tdG9wOiAxNTBweDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWNvbnRlbnQ6IGNlbnRlcjtcbiAgZmxleC13cmFwOiB3cmFwO1xuICBmbGV4LWRpcmVjdGlvbjogcm93O1xufVxuXG5Aa2V5ZnJhbWVzIHNoYWtlIHtcbiAgMTAlLFxuICA5MCUge1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlM2QoLTFweCwgMCwgMCk7XG4gIH1cblxuICAyMCUsXG4gIDgwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCgycHgsIDAsIDApO1xuICB9XG5cbiAgMzAlLFxuICA1MCUsXG4gIDcwJSB7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUzZCgtNHB4LCAwLCAwKTtcbiAgfVxuXG4gIDQwJSxcbiAgNjAlIHtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZTNkKDRweCwgMCwgMCk7XG4gIH1cbn1cblxuLmVycm9yQW5pbSB7XG4gIGFuaW1hdGlvbjogc2hha2UgMC44MnMgY3ViaWMtYmV6aWVyKDAuMzYsIDAuMDcsIDAuMTksIDAuOTcpIGJvdGg7XG4gIGFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IGluZmluaXRlO1xufVxuXG4ubGRzRHVhbFJpbmcge1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHdpZHRoOiA4MHB4O1xuICBoZWlnaHQ6IDgwcHg7XG59XG5cbi5sZHNEdWFsUmluZzphZnRlciB7XG4gIGNvbnRlbnQ6IFwiIFwiO1xuICBkaXNwbGF5OiBibG9jaztcbiAgd2lkdGg6IDY0cHg7XG4gIGhlaWdodDogNjRweDtcbiAgbWFyZ2luOiA4cHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgYm9yZGVyLXdpZHRoOiA2cHg7XG4gIGJvcmRlci1zdHlsZTogc29saWQ7XG4gIGJvcmRlci1sZWZ0LWNvbG9yOiBpbmhlcml0O1xuICBib3JkZXItdG9wLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgYm9yZGVyLXJpZ2h0LWNvbG9yOiBpbmhlcml0O1xuICBib3JkZXItYm90dG9tLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgYW5pbWF0aW9uOiBsZHMtZHVhbC1yaW5nIDEuMnMgbGluZWFyIGluZmluaXRlO1xufVxuXG5Aa2V5ZnJhbWVzIGxkcy1kdWFsLXJpbmcge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7XG4gIH1cbiAgMTAwJSB7XG4gICAgdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTtcbiAgfVxufVxuIl19 */`,ru={flexContainer:"Loader-module_flexContainer__GlMdi",errorAnim:"Loader-module_errorAnim__h3bUy",shake:"Loader-module_shake__1mapc",ldsDualRing:"Loader-module_ldsDualRing__EJnqD","lds-dual-ring":"Loader-module_lds-dual-ring__4SWmn"};j_(UL);const ga=(e={title:"Loading..."})=>x.createElement("div",{className:ru.flexContainer},x.createElement("div",{className:"text-center"},x.createElement("div",null,x.createElement("div",{className:ru.ldsDualRing})),x.createElement("h3",null,e.title&&e.title),x.createElement("p",null,e.message&&e.message))),Jv=(e={title:"Error Loading Component"})=>x.createElement("div",{className:ru.flexContainer},x.createElement("div",{className:"text-center"},x.createElement("div",{className:ru.errorAnim},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"100",height:"100",fill:"currentColor",className:"bi bi-exclamation-triangle",viewBox:"0 0 16 16"},x.createElement("path",{d:"M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z"}),x.createElement("path",{d:"M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z"}))),x.createElement("h3",null,e.title&&e.title),x.createElement("p",null,e.message&&e.message),x.createElement("p",null)));var jL=`@keyframes BaseTable-module_spin__lpdYb { + from { + transform: rotate(0deg); + } + to { + transform: rotate(359deg); + } +} + +.BaseTable-module_glyphiconRefreshAnimate__HIIZm { + -animation: BaseTable-module_spin__lpdYb 2s infinite linear; + -ms-animation: BaseTable-module_spin__lpdYb 2s infinite linear; + -webkit-animation: BaseTable-module_spin__lpdYb 2s infinite linear; + -moz-animation: BaseTable-module_spin__lpdYb 2s infinite linear; +} + +.BaseTable-module_filterBtn__ODmli{ + color: hsl(0, 0%, 50%) !important; + margin-top: 2px !important; + min-height: 38px !important; + background-color: white !important; + border-color: hsl(0, 0%, 80%) !important; + border-top-left-radius: 4px !important; + border-bottom-left-radius: 4px !important; + border-right: 0 !important; + border-width: 1px !important; + font-weight: bold !important; + display: flex !important; + font-size: 15px !important; + font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif !important; +} + +.BaseTable-module_filterToggle__tmPmV{ + stroke: hsl(0, 0%, 80%) !important; + fill: hsl(0, 0%, 80%) !important; + stroke-width: 0; + padding-top: 8px !important; + margin-top: 2px !important; + min-height: 38px !important; + background-color: white !important; + border-color: hsl(0, 0%, 80%) !important; + border-top-right-radius: 4px !important; + border-bottom-right-radius: 4px !important; + border-left: 0 !important; + border-width: 1px !important; + display: flex !important; + font-size: 15px !important; +} +/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkJhc2VUYWJsZS5tb2R1bGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0U7SUFDRSx1QkFBdUI7RUFDekI7RUFDQTtJQUNFLHlCQUF5QjtFQUMzQjtBQUNGOztBQUVBO0VBQ0UsMkRBQW1DO0VBQ25DLDhEQUFzQztFQUN0QyxrRUFBMEM7RUFDMUMsK0RBQXVDO0FBQ3pDOztBQUVBO0VBQ0UsaUNBQWlDO0VBQ2pDLDBCQUEwQjtFQUMxQiwyQkFBMkI7RUFDM0Isa0NBQWtDO0VBQ2xDLHdDQUF3QztFQUN4QyxzQ0FBc0M7RUFDdEMseUNBQXlDO0VBQ3pDLDBCQUEwQjtFQUMxQiw0QkFBNEI7RUFDNUIsNEJBQTRCO0VBQzVCLHdCQUF3QjtFQUN4QiwwQkFBMEI7RUFDMUIsMEVBQTBFO0FBQzVFOztBQUVBO0VBQ0Usa0NBQWtDO0VBQ2xDLGdDQUFnQztFQUNoQyxlQUFlO0VBQ2YsMkJBQTJCO0VBQzNCLDBCQUEwQjtFQUMxQiwyQkFBMkI7RUFDM0Isa0NBQWtDO0VBQ2xDLHdDQUF3QztFQUN4Qyx1Q0FBdUM7RUFDdkMsMENBQTBDO0VBQzFDLHlCQUF5QjtFQUN6Qiw0QkFBNEI7RUFDNUIsd0JBQXdCO0VBQ3hCLDBCQUEwQjtBQUM1QiIsImZpbGUiOiJCYXNlVGFibGUubW9kdWxlLmNzcyIsInNvdXJjZXNDb250ZW50IjpbIkBrZXlmcmFtZXMgc3BpbiB7XG4gIGZyb20ge1xuICAgIHRyYW5zZm9ybTogcm90YXRlKDBkZWcpO1xuICB9XG4gIHRvIHtcbiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNTlkZWcpO1xuICB9XG59XG5cbi5nbHlwaGljb25SZWZyZXNoQW5pbWF0ZSB7XG4gIC1hbmltYXRpb246IHNwaW4gMnMgaW5maW5pdGUgbGluZWFyO1xuICAtbXMtYW5pbWF0aW9uOiBzcGluIDJzIGluZmluaXRlIGxpbmVhcjtcbiAgLXdlYmtpdC1hbmltYXRpb246IHNwaW4gMnMgaW5maW5pdGUgbGluZWFyO1xuICAtbW96LWFuaW1hdGlvbjogc3BpbiAycyBpbmZpbml0ZSBsaW5lYXI7XG59XG5cbi5maWx0ZXJCdG57XG4gIGNvbG9yOiBoc2woMCwgMCUsIDUwJSkgIWltcG9ydGFudDtcbiAgbWFyZ2luLXRvcDogMnB4ICFpbXBvcnRhbnQ7XG4gIG1pbi1oZWlnaHQ6IDM4cHggIWltcG9ydGFudDtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbiAgYm9yZGVyLWNvbG9yOiBoc2woMCwgMCUsIDgwJSkgIWltcG9ydGFudDtcbiAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogNHB4ICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDRweCAhaW1wb3J0YW50O1xuICBib3JkZXItcmlnaHQ6IDAgIWltcG9ydGFudDtcbiAgYm9yZGVyLXdpZHRoOiAxcHggIWltcG9ydGFudDtcbiAgZm9udC13ZWlnaHQ6IGJvbGQgIWltcG9ydGFudDtcbiAgZGlzcGxheTogZmxleCAhaW1wb3J0YW50O1xuICBmb250LXNpemU6IDE1cHggIWltcG9ydGFudDtcbiAgZm9udC1mYW1pbHk6IFwiTGF0b1wiLFwiSGVsdmV0aWNhIE5ldWVcIixIZWx2ZXRpY2EsQXJpYWwsc2Fucy1zZXJpZiAhaW1wb3J0YW50O1xufVxuXG4uZmlsdGVyVG9nZ2xle1xuICBzdHJva2U6IGhzbCgwLCAwJSwgODAlKSAhaW1wb3J0YW50O1xuICBmaWxsOiBoc2woMCwgMCUsIDgwJSkgIWltcG9ydGFudDtcbiAgc3Ryb2tlLXdpZHRoOiAwO1xuICBwYWRkaW5nLXRvcDogOHB4ICFpbXBvcnRhbnQ7XG4gIG1hcmdpbi10b3A6IDJweCAhaW1wb3J0YW50O1xuICBtaW4taGVpZ2h0OiAzOHB4ICFpbXBvcnRhbnQ7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1jb2xvcjogaHNsKDAsIDAlLCA4MCUpICFpbXBvcnRhbnQ7XG4gIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiA0cHggIWltcG9ydGFudDtcbiAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDRweCAhaW1wb3J0YW50O1xuICBib3JkZXItbGVmdDogMCAhaW1wb3J0YW50O1xuICBib3JkZXItd2lkdGg6IDFweCAhaW1wb3J0YW50O1xuICBkaXNwbGF5OiBmbGV4ICFpbXBvcnRhbnQ7XG4gIGZvbnQtc2l6ZTogMTVweCAhaW1wb3J0YW50O1xufSJdfQ== */`,hh={glyphiconRefreshAnimate:"BaseTable-module_glyphiconRefreshAnimate__HIIZm",spin:"BaseTable-module_spin__lpdYb",filterBtn:"BaseTable-module_filterBtn__ODmli",filterToggle:"BaseTable-module_filterToggle__tmPmV"};j_(jL);const md={option:e=>({...e,color:"black"})};function Iw(e){return x.createElement(tD,{id:"character_tooltip"},e)}const B_=({isLoading:e,isFetching:t,debugTable:n,data:r,error:o,columns:i,asyncExpandFunction:a,striped:s,hover:l,initialState:u={}})=>{const c=QD({data:r,columns:i,getCoreRowModel:$D(),getFilteredRowModel:LD(),getSortedRowModel:BD(),getPaginationRowModel:HD(),getFacetedRowModel:VD(),getFacetedUniqueValues:UD(),getFacetedMinMaxValues:jD(),debugTable:n,state:u});return e?x.createElement(x.Fragment,null,x.createElement("hr",null),x.createElement(ga,{title:"Loading Data",message:"Please Wait"})):o?x.createElement(x.Fragment,null,x.createElement("hr",null),x.createElement(Jv,{title:"Error Loading from API",message:"Try Again Later"})):x.createElement(BL,{table:c,data:r,columns:i,isFetching:t,debugTable:n,initialState:u,striped:s,hover:l})};function BL({table:e,data:t,columns:n,isFetching:r,striped:o=!1,hover:i=!1,debugTable:a=!1,initialState:s={}}){return x.createElement(x.Fragment,null,x.createElement(Zk,{striped:o,hover:i},x.createElement("thead",null,e.getHeaderGroups().map(l=>x.createElement(x.Fragment,null,x.createElement("tr",{key:`name-${l.id}`},l.headers.map(u=>x.createElement("th",{key:u.id,colSpan:u.colSpan},u.isPlaceholder?null:x.createElement("div",{className:u.column.getCanSort()?"cursor-pointer select-none":"",onClick:u.column.getToggleSortingHandler()},nw(u.column.columnDef.header,u.getContext()),u.column.getCanSort()?x.createElement(x.Fragment,null,{asc:x.createElement(_n,{className:"pull-right",glyph:"sort-by-attributes"}),desc:x.createElement(_n,{className:"pull-right",glyph:"sort-by-attributes-alt"})}[u.column.getIsSorted()]??x.createElement(_n,{className:"pull-right",glyph:"sort"})):null)))),x.createElement("tr",{key:`filter-${l.id}`},l.headers.map(u=>x.createElement("th",{key:u.id,colSpan:u.colSpan},u.column.getCanFilter()?x.createElement("div",null,x.createElement(zL,{column:u.column,table:e})):"")))))),x.createElement("tbody",null,e.getRowModel().rows.map(l=>x.createElement("tr",{key:l.id},l.getVisibleCells().map(u=>x.createElement("td",{key:u.id,style:{verticalAlign:"middle"}},nw(u.column.columnDef.cell,u.getContext()))))))),x.createElement("div",{className:"pagination pull-right"},x.createElement(vT,null,x.createElement(Vi,null,x.createElement(Ye,{bsStyle:"success",onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage()},x.createElement(_n,{glyph:"step-backward"}))," ",x.createElement(Ye,{bsStyle:"success",onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage()},x.createElement(_n,{glyph:"triangle-left"}))," ",x.createElement(Ye,{bsStyle:"success",onClick:()=>e.nextPage(),disabled:!e.getCanNextPage()},x.createElement(_n,{glyph:"triangle-right"}))," ",x.createElement(Ye,{bsStyle:"success",onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage()},x.createElement(_n,{glyph:"step-forward"}))),x.createElement(Vi,null,x.createElement(Ye,{active:!0,bsStyle:"success"},"Page Size:")," ",x.createElement(Kk,{id:"pageSizeDropdown",bsStyle:"success",title:e.getState().pagination.pageSize},[10,50,100,1e6].map(l=>x.createElement(n2,{id:l,key:l,eventKey:l,value:l,onSelect:(u,c)=>{e.setPageSize(Number(u))}},"Show ",l)))))),x.createElement("div",{className:"pagination pull-left"},x.createElement(Vi,null,x.createElement(Ye,{active:!0,bsStyle:"info"},x.createElement(x.Fragment,null,e.getState().pagination.pageIndex+1," of"," ",e.getPageCount()))," ",r?x.createElement(eh,{placement:"bottom",trigger:"focus",overlay:Iw({message:"Refreshing Data"})},x.createElement(Ye,{bsStyle:"info"},x.createElement(_n,{className:hh.glyphiconRefreshAnimate,glyph:"refresh"}))):x.createElement(eh,{placement:"bottom",trigger:"focus",overlay:Iw("Data Loaded: "+new Date().toLocaleString())},x.createElement(Ye,{bsStyle:"info"},x.createElement(_n,{glyph:"ok"}))))),a&&x.createElement("div",{className:"col-xs-12"},x.createElement("div",null,e.getRowModel().rows.length," Rows"),x.createElement("pre",null,JSON.stringify(e.getState(),null,2))))}function zL({column:e,table:t}){var u;const[n,r]=R.useState(""),o=(u=t.getPreFilteredRowModel().flatRows[0])==null?void 0:u.getValue(e.id),i=RegExp.prototype.test.bind(/(<([^>]+)>)/i),a={Menu:()=>x.createElement(x.Fragment,null),IndicatorsContainer:()=>x.createElement(x.Fragment,null)},s=e.getFilterValue(),l=x.createElement(Bk,{id:"popover-positioned-top"},x.createElement("input",{type:"number",value:(s==null?void 0:s[0])??"",onChange:c=>e.setFilterValue(f=>[c.target.value,f==null?void 0:f[1]]),placeholder:"Min",className:"form-control"}),x.createElement("p",{className:"text-center"},"to"),x.createElement("input",{type:"number",value:(s==null?void 0:s[1])??"",onChange:c=>e.setFilterValue(f=>[f==null?void 0:f[0],c.target.value]),placeholder:"Max",className:"form-control"}));if(typeof o=="number"){let c=s;return x.createElement(eh,{trigger:"click",placement:"bottom",overlay:l},x.createElement(Vi,{style:{display:"flex",width:"100%"}},x.createElement(Ye,{className:hh.filterBtn+" btn-block",bsStyle:"primary",bsSize:"small"},x.createElement(x.Fragment,null,typeof(c==null?void 0:c[0])>"u"||(c==null?void 0:c[0])===""?"-∞":c==null?void 0:c[0]," to ",typeof(c==null?void 0:c[1])>"u"||(c==null?void 0:c[1])===""?"∞":c==null?void 0:c[1])),x.createElement(Ye,{className:hh.filterToggle,bsStyle:"primary",bsSize:"small"},x.createElement("svg",{height:"20",width:"20",viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false"},x.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"})))))}else{if(typeof o=="boolean")return x.createElement(Ki,{styles:md,isClearable:!0,onChange:(c,f)=>{r(""),e.setFilterValue(c?c.value:"")},placeholder:"Filter...",options:[{value:!0,label:"Pass"},{value:!1,label:"Fail"}]});if(typeof o=="object")return x.createElement(Ki,{styles:md,isClearable:!0,onChange:(c,f)=>{r(""),e.setFilterValue(c?c.value:"")},inputValue:n,onInputChange:(c,f)=>{f.action==="input-change"&&(r(c),e.setFilterValue(c))},placeholder:"Search...",className:"",options:[],components:a});{const f=x.useMemo(()=>Array.from(e.getFacetedUniqueValues().keys()).sort(),[e.getFacetedUniqueValues(),o]).slice(0,50).reduce((d,p)=>(d.push({value:p,label:p}),d),[]);return x.createElement(Ki,{styles:md,isClearable:!0,onChange:(d,p)=>{r(""),e.setFilterValue(d?d.value:"")},inputValue:n,onInputChange:(d,p)=>{p.action==="input-change"&&(r(d),e.setFilterValue(d))},placeholder:"Search...",className:"",options:f,components:i(o)?a:{}})}}}var Ya=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},li=typeof window>"u"||"Deno"in window;function jt(){}function HL(e,t){return typeof e=="function"?e(t):e}function mh(e){return typeof e=="number"&&e>=0&&e!==1/0}function z_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Mw(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==eg(a,t.options))return!1}else if(!wa(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function Fw(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ya(t.options.mutationKey)!==ya(i))return!1}else if(!wa(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function eg(e,t){return((t==null?void 0:t.queryKeyHashFn)||ya)(e)}function ya(e){return JSON.stringify(e,(t,n)=>gh(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function wa(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!wa(e[n],t[n])):!1}function H_(e,t){if(e===t)return e;const n=kw(e)&&kw(t);if(n||gh(e)&&gh(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l"u")return!0;const n=t.prototype;return!(!Dw(n)||!n.hasOwnProperty("isPrototypeOf"))}function Dw(e){return Object.prototype.toString.call(e)==="[object Object]"}function W_(e){return new Promise(t=>{setTimeout(t,e)})}function $w(e){W_(0).then(e)}function yh(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?H_(e,t):t}function WL(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function GL(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var kr,Xn,Lo,L1,qL=(L1=class extends Ya{constructor(){super();z(this,kr,void 0);z(this,Xn,void 0);z(this,Lo,void 0);L(this,Lo,t=>{if(!li&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){I(this,Xn)||this.setEventListener(I(this,Lo))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Xn))==null||t.call(this),L(this,Xn,void 0))}setEventListener(t){var n;L(this,Lo,t),(n=I(this,Xn))==null||n.call(this),L(this,Xn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){I(this,kr)!==t&&(L(this,kr,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof I(this,kr)=="boolean"?I(this,kr):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},kr=new WeakMap,Xn=new WeakMap,Lo=new WeakMap,L1),ou=new qL,Vo,Yn,Uo,V1,QL=(V1=class extends Ya{constructor(){super();z(this,Vo,!0);z(this,Yn,void 0);z(this,Uo,void 0);L(this,Uo,t=>{if(!li&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){I(this,Yn)||this.setEventListener(I(this,Uo))}onUnsubscribe(){var t;this.hasListeners()||((t=I(this,Yn))==null||t.call(this),L(this,Yn,void 0))}setEventListener(t){var n;L(this,Uo,t),(n=I(this,Yn))==null||n.call(this),L(this,Yn,t(this.setOnline.bind(this)))}setOnline(t){I(this,Vo)!==t&&(L(this,Vo,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return I(this,Vo)}},Vo=new WeakMap,Yn=new WeakMap,Uo=new WeakMap,V1),iu=new QL;function KL(e){return Math.min(1e3*2**e,3e4)}function xc(e){return(e??"online")==="online"?iu.isOnline():!0}var G_=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function vd(e){return e instanceof G_}function q_(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((w,m)=>{i=w,a=m}),l=w=>{var m;r||(p(new G_(w)),(m=e.abort)==null||m.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>!ou.isFocused()||e.networkMode!=="always"&&!iu.isOnline(),d=w=>{var m;r||(r=!0,(m=e.onSuccess)==null||m.call(e,w),o==null||o(),i(w))},p=w=>{var m;r||(r=!0,(m=e.onError)==null||m.call(e,w),o==null||o(),a(w))},v=()=>new Promise(w=>{var m;o=g=>{const y=r||!f();return y&&w(g),y},(m=e.onPause)==null||m.call(e)}).then(()=>{var w;o=void 0,r||(w=e.onContinue)==null||w.call(e)}),h=()=>{if(r)return;let w;try{w=e.fn()}catch(m){w=Promise.reject(m)}Promise.resolve(w).then(d).catch(m=>{var C;if(r)return;const g=e.retry??(li?0:3),y=e.retryDelay??KL,b=typeof y=="function"?y(n,m):y,E=g===!0||typeof g=="number"&&n{if(f())return v()}).then(()=>{t?p(m):h()})})};return xc(e.networkMode)?h():v().then(h),{promise:s,cancel:l,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}function XL(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},i=c=>{t?e.push(c):$w(()=>{n(c)})},a=c=>(...f)=>{i(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&$w(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}var We=XL(),Dr,U1,Q_=(U1=class{constructor(){z(this,Dr,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mh(this.gcTime)&&L(this,Dr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(li?1/0:5*60*1e3))}clearGcTimeout(){I(this,Dr)&&(clearTimeout(I(this,Dr)),L(this,Dr,void 0))}},Dr=new WeakMap,U1),jo,Bo,Lt,Zn,Vt,ze,Ea,$r,zo,Cl,Yt,On,j1,YL=(j1=class extends Q_{constructor(t){super();z(this,zo);z(this,Yt);z(this,jo,void 0);z(this,Bo,void 0);z(this,Lt,void 0);z(this,Zn,void 0);z(this,Vt,void 0);z(this,ze,void 0);z(this,Ea,void 0);z(this,$r,void 0);L(this,$r,!1),L(this,Ea,t.defaultOptions),oe(this,zo,Cl).call(this,t.options),L(this,ze,[]),L(this,Lt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,L(this,jo,t.state||ZL(this.options)),this.state=I(this,jo),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!I(this,ze).length&&this.state.fetchStatus==="idle"&&I(this,Lt).remove(this)}setData(t,n){const r=yh(this.state.data,t,this.options);return oe(this,Yt,On).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){oe(this,Yt,On).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=I(this,Zn);return(r=I(this,Vt))==null||r.cancel(t),n?n.then(jt).catch(jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(I(this,jo))}isActive(){return I(this,ze).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||I(this,ze).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!z_(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=I(this,ze).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Vt))==null||n.continue()}onOnline(){var n;const t=I(this,ze).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=I(this,Vt))==null||n.continue()}addObserver(t){I(this,ze).includes(t)||(I(this,ze).push(t),this.clearGcTimeout(),I(this,Lt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){I(this,ze).includes(t)&&(L(this,ze,I(this,ze).filter(n=>n!==t)),I(this,ze).length||(I(this,Vt)&&(I(this,$r)?I(this,Vt).cancel({revert:!0}):I(this,Vt).cancelRetry()),this.scheduleGc()),I(this,Lt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return I(this,ze).length}invalidate(){this.state.isInvalidated||oe(this,Yt,On).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f,d;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(I(this,Zn))return(u=I(this,Vt))==null||u.continueRetry(),I(this,Zn)}if(t&&oe(this,zo,Cl).call(this,t),!this.options.queryFn){const p=I(this,ze).find(v=>v.options.queryFn);p&&oe(this,zo,Cl).call(this,p.options)}const r=new AbortController,o={queryKey:this.queryKey,meta:this.meta},i=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(L(this,$r,!0),r.signal)})};i(o);const a=()=>this.options.queryFn?(L(this,$r,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(c=this.options.behavior)==null||c.onFetch(s,this),L(this,Bo,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&oe(this,Yt,On).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const l=p=>{var v,h,w,m;vd(p)&&p.silent||oe(this,Yt,On).call(this,{type:"error",error:p}),vd(p)||((h=(v=I(this,Lt).config).onError)==null||h.call(v,p,this),(m=(w=I(this,Lt).config).onSettled)==null||m.call(w,this.state.data,p,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return L(this,Vt,q_({fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:p=>{var v,h,w,m;if(typeof p>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(p),(h=(v=I(this,Lt).config).onSuccess)==null||h.call(v,p,this),(m=(w=I(this,Lt).config).onSettled)==null||m.call(w,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(p,v)=>{oe(this,Yt,On).call(this,{type:"failed",failureCount:p,error:v})},onPause:()=>{oe(this,Yt,On).call(this,{type:"pause"})},onContinue:()=>{oe(this,Yt,On).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode})),L(this,Zn,I(this,Vt).promise),I(this,Zn)}},jo=new WeakMap,Bo=new WeakMap,Lt=new WeakMap,Zn=new WeakMap,Vt=new WeakMap,ze=new WeakMap,Ea=new WeakMap,$r=new WeakMap,zo=new WeakSet,Cl=function(t){this.options={...I(this,Ea),...t},this.updateGcTime(this.options.gcTime)},Yt=new WeakSet,On=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:t.meta??null,fetchStatus:xc(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return vd(o)&&o.revert&&I(this,Bo)?{...I(this,Bo),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),We.batch(()=>{I(this,ze).forEach(r=>{r.onQueryUpdate()}),I(this,Lt).notify({query:this,type:"updated",action:t})})},j1);function ZL(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var fn,B1,JL=(B1=class extends Ya{constructor(t={}){super();z(this,fn,void 0);this.config=t,L(this,fn,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??eg(o,n);let a=this.get(i);return a||(a=new YL({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){I(this,fn).has(t.queryHash)||(I(this,fn).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=I(this,fn).get(t.queryHash);n&&(t.destroy(),n===t&&I(this,fn).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return I(this,fn).get(t)}getAll(){return[...I(this,fn).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Mw(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Mw(t,r)):n}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},fn=new WeakMap,B1),dn,Oa,_t,Ho,pn,Hn,z1,eV=(z1=class extends Q_{constructor(t){super();z(this,pn);z(this,dn,void 0);z(this,Oa,void 0);z(this,_t,void 0);z(this,Ho,void 0);this.mutationId=t.mutationId,L(this,Oa,t.defaultOptions),L(this,_t,t.mutationCache),L(this,dn,[]),this.state=t.state||tV(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...I(this,Oa),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){I(this,dn).includes(t)||(I(this,dn).push(t),this.clearGcTimeout(),I(this,_t).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){L(this,dn,I(this,dn).filter(n=>n!==t)),this.scheduleGc(),I(this,_t).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){I(this,dn).length||(this.state.status==="pending"?this.scheduleGc():I(this,_t).remove(this))}continue(){var t;return((t=I(this,Ho))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,u,c,f,d,p,v,h,w,m,g,y,b,E,C,_;const n=()=>(L(this,Ho,q_({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(O,M)=>{oe(this,pn,Hn).call(this,{type:"failed",failureCount:O,error:M})},onPause:()=>{oe(this,pn,Hn).call(this,{type:"pause"})},onContinue:()=>{oe(this,pn,Hn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),I(this,Ho).promise),r=this.state.status==="pending";try{if(!r){oe(this,pn,Hn).call(this,{type:"pending",variables:t}),await((i=(o=I(this,_t).config).onMutate)==null?void 0:i.call(o,t,this));const M=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));M!==this.state.context&&oe(this,pn,Hn).call(this,{type:"pending",context:M,variables:t})}const O=await n();return await((u=(l=I(this,_t).config).onSuccess)==null?void 0:u.call(l,O,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,O,t,this.state.context)),await((p=(d=I(this,_t).config).onSettled)==null?void 0:p.call(d,O,null,this.state.variables,this.state.context,this)),await((h=(v=this.options).onSettled)==null?void 0:h.call(v,O,null,t,this.state.context)),oe(this,pn,Hn).call(this,{type:"success",data:O}),O}catch(O){try{throw await((m=(w=I(this,_t).config).onError)==null?void 0:m.call(w,O,t,this.state.context,this)),await((y=(g=this.options).onError)==null?void 0:y.call(g,O,t,this.state.context)),await((E=(b=I(this,_t).config).onSettled)==null?void 0:E.call(b,void 0,O,this.state.variables,this.state.context,this)),await((_=(C=this.options).onSettled)==null?void 0:_.call(C,void 0,O,t,this.state.context)),O}finally{oe(this,pn,Hn).call(this,{type:"error",error:O})}}}},dn=new WeakMap,Oa=new WeakMap,_t=new WeakMap,Ho=new WeakMap,pn=new WeakSet,Hn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!xc(this.options.networkMode),status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),We.batch(()=>{I(this,dn).forEach(r=>{r.onMutationUpdate(t)}),I(this,_t).notify({mutation:this,type:"updated",action:t})})},z1);function tV(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ut,Ra,Ar,H1,nV=(H1=class extends Ya{constructor(t={}){super();z(this,Ut,void 0);z(this,Ra,void 0);z(this,Ar,void 0);this.config=t,L(this,Ut,[]),L(this,Ra,0)}build(t,n,r){const o=new eV({mutationCache:this,mutationId:++es(this,Ra)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){I(this,Ut).push(t),this.notify({type:"added",mutation:t})}remove(t){L(this,Ut,I(this,Ut).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){We.batch(()=>{I(this,Ut).forEach(t=>{this.remove(t)})})}getAll(){return I(this,Ut)}find(t){const n={exact:!0,...t};return I(this,Ut).find(r=>Fw(n,r))}findAll(t={}){return I(this,Ut).filter(n=>Fw(t,n))}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return L(this,Ar,(I(this,Ar)??Promise.resolve()).then(()=>{const t=I(this,Ut).filter(n=>n.state.isPaused);return We.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(jt)),Promise.resolve()))}).then(()=>{L(this,Ar,void 0)})),I(this,Ar)}},Ut=new WeakMap,Ra=new WeakMap,Ar=new WeakMap,H1);function rV(e){return{onFetch:(t,n)=>{const r=async()=>{var v,h,w,m,g;const o=t.options,i=(w=(h=(v=t.fetchOptions)==null?void 0:v.meta)==null?void 0:h.fetchMore)==null?void 0:w.direction,a=((m=t.state.data)==null?void 0:m.pages)||[],s=((g=t.state.data)==null?void 0:g.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),d=async(y,b,E)=>{if(u)return Promise.reject();if(b==null&&y.pages.length)return Promise.resolve(y);const C={queryKey:t.queryKey,pageParam:b,direction:E?"backward":"forward",meta:t.options.meta};c(C);const _=await f(C),{maxPages:O}=t.options,M=E?GL:WL;return{pages:M(y.pages,_,O),pageParams:M(y.pageParams,b,O)}};let p;if(i&&a.length){const y=i==="backward",b=y?oV:Aw,E={pages:a,pageParams:s},C=b(o,E);p=await d(E,C,y)}else{p=await d(l,s[0]??o.initialPageParam);const y=e??a.length;for(let b=1;b{var o,i;return(i=(o=t.options).persister)==null?void 0:i.call(o,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function Aw(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function oV(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}var Ve,Jn,er,Wo,Go,tr,qo,Qo,W1,iV=(W1=class{constructor(e={}){z(this,Ve,void 0);z(this,Jn,void 0);z(this,er,void 0);z(this,Wo,void 0);z(this,Go,void 0);z(this,tr,void 0);z(this,qo,void 0);z(this,Qo,void 0);L(this,Ve,e.queryCache||new JL),L(this,Jn,e.mutationCache||new nV),L(this,er,e.defaultOptions||{}),L(this,Wo,new Map),L(this,Go,new Map),L(this,tr,0)}mount(){es(this,tr)._++,I(this,tr)===1&&(L(this,qo,ou.subscribe(()=>{ou.isFocused()&&(this.resumePausedMutations(),I(this,Ve).onFocus())})),L(this,Qo,iu.subscribe(()=>{iu.isOnline()&&(this.resumePausedMutations(),I(this,Ve).onOnline())})))}unmount(){var e,t;es(this,tr)._--,I(this,tr)===0&&((e=I(this,qo))==null||e.call(this),L(this,qo,void 0),(t=I(this,Qo))==null||t.call(this),L(this,Qo,void 0))}isFetching(e){return I(this,Ve).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return I(this,Jn).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=I(this,Ve).find({queryKey:e}))==null?void 0:t.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:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=I(this,Ve).find({queryKey:e}),o=r==null?void 0:r.state.data,i=HL(t,o);if(typeof i>"u")return;const a=this.defaultQueryOptions({queryKey:e});return I(this,Ve).build(this,a).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return We.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=I(this,Ve).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=I(this,Ve);We.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=I(this,Ve),r={type:"active",...e};return We.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=We.batch(()=>I(this,Ve).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(jt).catch(jt)}invalidateQueries(e={},t={}){return We.batch(()=>{if(I(this,Ve).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=We.batch(()=>I(this,Ve).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(jt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=I(this,Ve).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jt).catch(jt)}fetchInfiniteQuery(e){return e.behavior=rV(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jt).catch(jt)}resumePausedMutations(){return I(this,Jn).resumePausedMutations()}getQueryCache(){return I(this,Ve)}getMutationCache(){return I(this,Jn)}getDefaultOptions(){return I(this,er)}setDefaultOptions(e){L(this,er,e)}setQueryDefaults(e,t){I(this,Wo).set(ya(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...I(this,Wo).values()];let n={};return t.forEach(r=>{wa(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){I(this,Go).set(ya(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...I(this,Go).values()];let n={};return t.forEach(r=>{wa(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...I(this,er).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eg(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.throwOnError>"u"&&(t.throwOnError=!!t.suspense),typeof t.networkMode>"u"&&t.persister&&(t.networkMode="offlineFirst"),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...I(this,er).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){I(this,Ve).clear(),I(this,Jn).clear()}},Ve=new WeakMap,Jn=new WeakMap,er=new WeakMap,Wo=new WeakMap,Go=new WeakMap,tr=new WeakMap,qo=new WeakMap,Qo=new WeakMap,W1),vt,be,Ko,st,Nr,Xo,hn,Pa,Yo,Zo,Lr,Vr,nr,Ur,jr,Ai,Ta,wh,Ia,Sh,Ma,bh,Fa,Ch,ka,xh,Da,_h,$a,Eh,hu,K_,G1,aV=(G1=class extends Ya{constructor(t,n){super();z(this,jr);z(this,Ta);z(this,Ia);z(this,Ma);z(this,Fa);z(this,ka);z(this,Da);z(this,$a);z(this,hu);z(this,vt,void 0);z(this,be,void 0);z(this,Ko,void 0);z(this,st,void 0);z(this,Nr,void 0);z(this,Xo,void 0);z(this,hn,void 0);z(this,Pa,void 0);z(this,Yo,void 0);z(this,Zo,void 0);z(this,Lr,void 0);z(this,Vr,void 0);z(this,nr,void 0);z(this,Ur,void 0);L(this,be,void 0),L(this,Ko,void 0),L(this,st,void 0),L(this,Ur,new Set),L(this,vt,t),this.options=n,L(this,hn,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(I(this,be).addObserver(this),Nw(I(this,be),this.options)?oe(this,jr,Ai).call(this):this.updateResult(),oe(this,Fa,Ch).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oh(I(this,be),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oh(I(this,be),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,oe(this,ka,xh).call(this),oe(this,Da,_h).call(this),I(this,be).removeObserver(this)}setOptions(t,n){const r=this.options,o=I(this,be);if(this.options=I(this,vt).defaultQueryOptions(t),vh(r,this.options)||I(this,vt).getQueryCache().notify({type:"observerOptionsUpdated",query:I(this,be),observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),oe(this,$a,Eh).call(this);const i=this.hasListeners();i&&Lw(I(this,be),o,this.options,r)&&oe(this,jr,Ai).call(this),this.updateResult(n),i&&(I(this,be)!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&oe(this,Ta,wh).call(this);const a=oe(this,Ia,Sh).call(this);i&&(I(this,be)!==o||this.options.enabled!==r.enabled||a!==I(this,nr))&&oe(this,Ma,bh).call(this,a)}getOptimisticResult(t){const n=I(this,vt).getQueryCache().build(I(this,vt),t),r=this.createResult(n,t);return lV(this,r)&&(L(this,st,r),L(this,Xo,this.options),L(this,Nr,I(this,be).state)),r}getCurrentResult(){return I(this,st)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(I(this,Ur).add(r),t[r])})}),n}getCurrentQuery(){return I(this,be)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=I(this,vt).defaultQueryOptions(t),r=I(this,vt).getQueryCache().build(I(this,vt),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return oe(this,jr,Ai).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),I(this,st)))}createResult(t,n){var C;const r=I(this,be),o=this.options,i=I(this,st),a=I(this,Nr),s=I(this,Xo),u=t!==r?t.state:I(this,Ko),{state:c}=t;let{error:f,errorUpdatedAt:d,fetchStatus:p,status:v}=c,h=!1,w;if(n._optimisticResults){const _=this.hasListeners(),O=!_&&Nw(t,n),M=_&&Lw(t,r,n,o);(O||M)&&(p=xc(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(v="pending")),n._optimisticResults==="isRestoring"&&(p="idle")}if(n.select&&typeof c.data<"u")if(i&&c.data===(a==null?void 0:a.data)&&n.select===I(this,Pa))w=I(this,Yo);else try{L(this,Pa,n.select),w=n.select(c.data),w=yh(i==null?void 0:i.data,w,n),L(this,Yo,w),L(this,hn,null)}catch(_){L(this,hn,_)}else w=c.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&v==="pending"){let _;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))_=i.data;else if(_=typeof n.placeholderData=="function"?n.placeholderData((C=I(this,Zo))==null?void 0:C.state.data,I(this,Zo)):n.placeholderData,n.select&&typeof _<"u")try{_=n.select(_),L(this,hn,null)}catch(O){L(this,hn,O)}typeof _<"u"&&(v="success",w=yh(i==null?void 0:i.data,_,n),h=!0)}I(this,hn)&&(f=I(this,hn),w=I(this,Yo),d=Date.now(),v="error");const m=p==="fetching",g=v==="pending",y=v==="error",b=g&&m;return{status:v,fetchStatus:p,isPending:g,isSuccess:v==="success",isError:y,isInitialLoading:b,isLoading:b,data:w,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:d,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&c.dataUpdatedAt===0,isPaused:p==="paused",isPlaceholderData:h,isRefetchError:y&&c.dataUpdatedAt!==0,isStale:tg(t,n),refetch:this.refetch}}updateResult(t){const n=I(this,st),r=this.createResult(I(this,be),this.options);if(L(this,Nr,I(this,be).state),L(this,Xo,this.options),I(this,Nr).data!==void 0&&L(this,Zo,I(this,be)),vh(r,n))return;L(this,st,r);const o={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options,s=typeof a=="function"?a():a;if(s==="all"||!s&&!I(this,Ur).size)return!0;const l=new Set(s??I(this,Ur));return this.options.throwOnError&&l.add("error"),Object.keys(I(this,st)).some(u=>{const c=u;return I(this,st)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),oe(this,hu,K_).call(this,{...o,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&oe(this,Fa,Ch).call(this)}},vt=new WeakMap,be=new WeakMap,Ko=new WeakMap,st=new WeakMap,Nr=new WeakMap,Xo=new WeakMap,hn=new WeakMap,Pa=new WeakMap,Yo=new WeakMap,Zo=new WeakMap,Lr=new WeakMap,Vr=new WeakMap,nr=new WeakMap,Ur=new WeakMap,jr=new WeakSet,Ai=function(t){oe(this,$a,Eh).call(this);let n=I(this,be).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(jt)),n},Ta=new WeakSet,wh=function(){if(oe(this,ka,xh).call(this),li||I(this,st).isStale||!mh(this.options.staleTime))return;const n=z_(I(this,st).dataUpdatedAt,this.options.staleTime)+1;L(this,Lr,setTimeout(()=>{I(this,st).isStale||this.updateResult()},n))},Ia=new WeakSet,Sh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(I(this,be)):this.options.refetchInterval)??!1},Ma=new WeakSet,bh=function(t){oe(this,Da,_h).call(this),L(this,nr,t),!(li||this.options.enabled===!1||!mh(I(this,nr))||I(this,nr)===0)&&L(this,Vr,setInterval(()=>{(this.options.refetchIntervalInBackground||ou.isFocused())&&oe(this,jr,Ai).call(this)},I(this,nr)))},Fa=new WeakSet,Ch=function(){oe(this,Ta,wh).call(this),oe(this,Ma,bh).call(this,oe(this,Ia,Sh).call(this))},ka=new WeakSet,xh=function(){I(this,Lr)&&(clearTimeout(I(this,Lr)),L(this,Lr,void 0))},Da=new WeakSet,_h=function(){I(this,Vr)&&(clearInterval(I(this,Vr)),L(this,Vr,void 0))},$a=new WeakSet,Eh=function(){const t=I(this,vt).getQueryCache().build(I(this,vt),this.options);if(t===I(this,be))return;const n=I(this,be);L(this,be,t),L(this,Ko,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},hu=new WeakSet,K_=function(t){We.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(I(this,st))}),I(this,vt).getQueryCache().notify({query:I(this,be),type:"observerResultsUpdated"})})},G1);function sV(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Nw(e,t){return sV(e,t)||e.state.dataUpdatedAt>0&&Oh(e,t,t.refetchOnMount)}function Oh(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&tg(e,t)}return!1}function Lw(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&tg(e,n)}function tg(e,t){return e.isStaleByTime(t.staleTime)}function lV(e,t){return!vh(e.getCurrentResult(),t)}var X_=R.createContext(void 0),Y_=e=>{const t=R.useContext(X_);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},uV=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.createElement(X_.Provider,{value:e},t)),Z_=R.createContext(!1),cV=()=>R.useContext(Z_);Z_.Provider;function fV(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var dV=R.createContext(fV()),pV=()=>R.useContext(dV);function hV(e,t){return typeof e=="function"?e(...t):!!e}var mV=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},vV=e=>{R.useEffect(()=>{e.clearReset()},[e])},gV=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&hV(n,[e.error,r]),yV=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},wV=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,SV=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function bV(e,t,n){const r=Y_(n),o=cV(),i=pV(),a=r.defaultQueryOptions(e);a._optimisticResults=o?"isRestoring":"optimistic",yV(a),mV(a,i),vV(i);const[s]=R.useState(()=>new t(r,a)),l=s.getOptimisticResult(a);if(R.useSyncExternalStore(R.useCallback(u=>{const c=o?()=>{}:s.subscribe(We.batchCalls(u));return s.updateResult(),c},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),R.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),wV(a,l))throw SV(a,s,i);if(gV({result:l,errorResetBoundary:i,throwOnError:a.throwOnError,query:s.getCurrentQuery()}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}function _c(e,t){return bV(e,aV,t)}function CV(e,t){const n=Y_(t),r=n.getQueryCache();return R.useSyncExternalStore(R.useCallback(o=>r.subscribe(We.batchCalls(o)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}const xV=({cid:e})=>{const{isFetching:t,data:n}=_c({queryKey:["loadUnknowns",e],queryFn:()=>_R(e)}),r=x.useMemo(()=>[{header:"Character",accessorKey:"name",cell:i=>N.jsxs("div",{style:{display:"flex",flexWrap:"nowrap",alignContent:"center",alignItems:"center"},children:[i.getValue(),N.jsxs("div",{style:{marginLeft:"auto"},children:[N.jsx(AL,{character_name:i.getValue()}),N.jsx(NL,{character_id:i.row.original.id})]})]})}],[]);return N.jsx(Vx.Body,{children:n?N.jsx(B_,{columns:r,isFetching:t,hover:!0,data:n==null?void 0:n.data}):N.jsx(ga,{title:"Loading Orphans",message:"Please Wait"})})};/** + * @remix-run/router v1.12.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 Sa(){return Sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Ec(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function EV(){return Math.random().toString(36).substr(2,8)}function Uw(e,t){return{usr:e.state,key:e.key,idx:t}}function Rh(e,t,n,r){return n===void 0&&(n=null),Sa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gi(t):t,{state:n,key:t&&t.key||r||EV()})}function J_(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 gi(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 OV(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=ar.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Sa({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=ar.Pop;let w=c(),m=w==null?null:w-u;u=w,l&&l({action:s,location:h.location,delta:m})}function d(w,m){s=ar.Push;let g=Rh(h.location,w,m);n&&n(g,w),u=c()+1;let y=Uw(g,u),b=h.createHref(g);try{a.pushState(y,"",b)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(b)}i&&l&&l({action:s,location:h.location,delta:1})}function p(w,m){s=ar.Replace;let g=Rh(h.location,w,m);n&&n(g,w),u=c();let y=Uw(g,u),b=h.createHref(g);a.replaceState(y,"",b),i&&l&&l({action:s,location:h.location,delta:0})}function v(w){let m=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof w=="string"?w:J_(w);return De(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let h={get action(){return s},get location(){return e(o,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Vw,f),l=w,()=>{o.removeEventListener(Vw,f),l=null}},createHref(w){return t(o,w)},createURL:v,encodeLocation(w){let m=v(w);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:p,go(w){return a.go(w)}};return h}var jw;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(jw||(jw={}));function RV(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?gi(t):t,o=rE(r.pathname||"/",n);if(o==null)return null;let i=eE(e);PV(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(De(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Wr([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(De(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),eE(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:$V(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of tE(i.path))o(i,a,l)}),t}function tE(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=tE(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function PV(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:AV(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const TV=/^:\w+$/,IV=3,MV=2,FV=1,kV=10,DV=-2,Bw=e=>e==="*";function $V(e,t){let n=e.split("/"),r=n.length;return n.some(Bw)&&(r+=DV),t&&(r+=MV),n.filter(o=>!Bw(o)).reduce((o,i)=>o+(TV.test(i)?IV:i===""?FV:kV),r)}function AV(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function NV(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;aa==null?"":typeof a=="string"?a:String(a),i=n.split(/\/+/).map((a,s,l)=>{if(s===l.length-1&&a==="*")return o(t["*"]);const c=a.match(/^:(\w+)(\??)$/);if(c){const[,f,d]=c;let p=t[f];return De(d==="?"||p!=null,'Missing ":'+f+'" param'),o(p)}return a.replace(/\?$/g,"")}).filter(a=>!!a);return r+i.join("/")}function LV(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=VV(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((u,c,f)=>{let{paramName:d,isOptional:p}=c;if(d==="*"){let h=s[f]||"";a=i.slice(0,i.length-h.length).replace(/(.)\/+$/,"$1")}const v=s[f];return p&&!v?u[d]=void 0:u[d]=jV(v||"",d),u},{}),pathname:i,pathnameBase:a,pattern:e}}function VV(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ec(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,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function UV(e){try{return decodeURI(e)}catch(t){return Ec(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function jV(e,t){try{return decodeURIComponent(e)}catch(n){return Ec(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function rE(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 BV(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gi(e):e;return{pathname:n?n.startsWith("/")?n:zV(n,t):t,search:WV(r),hash:GV(o)}}function zV(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function gd(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function oE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function iE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gi(e):(o=Sa({},e),De(!o.pathname||!o.pathname.includes("?"),gd("?","pathname","search",o)),De(!o.pathname||!o.pathname.includes("#"),gd("#","pathname","hash",o)),De(!o.search||!o.search.includes("#"),gd("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else if(r){let f=t[t.length-1].replace(/^\//,"").split("/");if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f.pop();o.pathname=d.join("/")}s="/"+f.join("/")}else{let f=t.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=BV(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Wr=e=>e.join("/").replace(/\/\/+/g,"/"),HV=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),WV=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,GV=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qV(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const aE=["post","put","patch","delete"];new Set(aE);const QV=["get",...aE];new Set(QV);/** + * React Router v6.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 au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;tl.pathnameBase)),a=R.useRef(!1);return lE(()=>{a.current=!0}),R.useCallback(function(l,u){if(u===void 0&&(u={}),!a.current)return;if(typeof l=="number"){n.go(l);return}let c=iE(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:Wr([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}function Pc(){let{matches:e}=R.useContext(xr),t=e[e.length-1];return t?t.params:{}}function YV(e,t){return ZV(e,t)}function ZV(e,t,n){Za()||De(!1);let{navigator:r}=R.useContext(Oc),{matches:o}=R.useContext(xr),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=rg(),u;if(t){var c;let h=typeof t=="string"?gi(t):t;s==="/"||(c=h.pathname)!=null&&c.startsWith(s)||De(!1),u=h}else u=l;let f=u.pathname||"/",d=s==="/"?f:f.slice(s.length)||"/",p=RV(e,{pathname:d}),v=r3(p&&p.map(h=>Object.assign({},h,{params:Object.assign({},a,h.params),pathname:Wr([s,r.encodeLocation?r.encodeLocation(h.pathname).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?s:Wr([s,r.encodeLocation?r.encodeLocation(h.pathnameBase).pathname:h.pathnameBase])})),o,n);return t&&v?R.createElement(Rc.Provider,{value:{location:au({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:ar.Pop}},v):v}function JV(){let e=s3(),t=qV(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return R.createElement(R.Fragment,null,R.createElement("h2",null,"Unexpected Application Error!"),R.createElement("h3",{style:{fontStyle:"italic"}},t),n?R.createElement("pre",{style:o},n):null,i)}const e3=R.createElement(JV,null);class t3 extends R.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?R.createElement(xr.Provider,{value:this.props.routeContext},R.createElement(sE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function n3(e){let{routeContext:t,match:n,children:r}=e,o=R.useContext(ng);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),R.createElement(xr.Provider,{value:t},r)}function r3(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,a=(r=n)==null?void 0:r.errors;if(a!=null){let s=i.findIndex(l=>l.route.id&&(a==null?void 0:a[l.route.id]));s>=0||De(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,l,u)=>{let c=l.route.id?a==null?void 0:a[l.route.id]:null,f=null;n&&(f=l.route.errorElement||e3);let d=t.concat(i.slice(0,u+1)),p=()=>{let v;return c?v=f:l.route.Component?v=R.createElement(l.route.Component,null):l.route.element?v=l.route.element:v=s,R.createElement(n3,{match:l,routeContext:{outlet:s,matches:d,isDataRoute:n!=null},children:v})};return n&&(l.route.ErrorBoundary||l.route.errorElement||u===0)?R.createElement(t3,{location:n.location,revalidation:n.revalidation,component:f,error:c,children:p(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):p()},null)}var uE=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(uE||{}),su=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}(su||{});function o3(e){let t=R.useContext(ng);return t||De(!1),t}function i3(e){let t=R.useContext(KV);return t||De(!1),t}function a3(e){let t=R.useContext(xr);return t||De(!1),t}function cE(e){let t=a3(),n=t.matches[t.matches.length-1];return n.route.id||De(!1),n.route.id}function s3(){var e;let t=R.useContext(sE),n=i3(su.UseRouteError),r=cE(su.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function l3(){let{router:e}=o3(uE.UseNavigateStable),t=cE(su.UseNavigateStable),n=R.useRef(!1);return lE(()=>{n.current=!0}),R.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,au({fromRouteId:t},i)))},[e,t])}function u3(e){let{to:t,replace:n,state:r,relative:o}=e;Za()||De(!1);let{matches:i}=R.useContext(xr),{pathname:a}=rg(),s=og(),l=iE(t,oE(i).map(c=>c.pathnameBase),a,o==="path"),u=JSON.stringify(l);return R.useEffect(()=>s(JSON.parse(u),{replace:n,state:r,relative:o}),[s,u,o,n,r]),null}function Ph(e){De(!1)}function c3(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ar.Pop,navigator:i,static:a=!1}=e;Za()&&De(!1);let s=t.replace(/^\/*/,"/"),l=R.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=gi(r));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:p="default"}=r,v=R.useMemo(()=>{let h=rE(u,s);return h==null?null:{location:{pathname:h,search:c,hash:f,state:d,key:p},navigationType:o}},[s,u,c,f,d,p,o]);return v==null?null:R.createElement(Oc.Provider,{value:l},R.createElement(Rc.Provider,{children:n,value:v}))}function f3(e){let{children:t,location:n}=e;return YV(Th(t),n)}new Promise(()=>{});function Th(e,t){t===void 0&&(t=[]);let n=[];return R.Children.forEach(e,(r,o)=>{if(!R.isValidElement(r))return;let i=[...t,o];if(r.type===R.Fragment){n.push.apply(n,Th(r.props.children,i));return}r.type!==Ph&&De(!1),!r.props.index||!r.props.children||De(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Th(r.props.children,i)),n.push(a)}),n}/** + * React Router DOM v6.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 + */const d3="startTransition",zw=bd[d3];function p3(e){let{basename:t,children:n,future:r,window:o}=e,i=R.useRef();i.current==null&&(i.current=_V({window:o,v5Compat:!0}));let a=i.current,[s,l]=R.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},c=R.useCallback(f=>{u&&zw?zw(()=>l(f)):l(f)},[l,u]);return R.useLayoutEffect(()=>a.listen(c),[a,c]),R.createElement(c3,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:a})}var Hw;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hw||(Hw={}));var Ww;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ww||(Ww={}));var fE="en",ig={},Ih={};function dE(){return fE}function h3(e){fE=e}function m3(e){return ig[e]}function v3(e){if(!e)throw new Error("No locale data passed");ig[e.locale]=e,Ih[e.locale.toLowerCase()]=e.locale}function Gw(e){if(ig[e])return e;if(Ih[e.toLowerCase()])return Ih[e.toLowerCase()]}function pE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return qw(e);case"best fit":return qw(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function qw(e){var t=Gw(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=Gw(e);if(r)return r}}var T={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},ast:function(t){var n=String(t).split("."),r=!n[1];return t==1&&r?"one":"other"},be:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return o==1&&i!=11?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&o==0||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},br:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),a=r&&n[0].slice(-6);return o==1&&i!=11&&i!=71&&i!=91?"one":o==2&&i!=12&&i!=72&&i!=92?"two":(o==3||o==4||o==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&a==0?"many":"other"},bs:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return i&&a==1&&s!=11||l==1&&u!=11?"one":i&&a>=2&&a<=4&&(s<12||s>14)||l>=2&&l<=4&&(u<12||u>14)?"few":"other"},ca:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t==1&&o?"one":r!=0&&i==0&&o?"many":"other"},ceb:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=o.slice(-1);return i&&(r==1||r==2||r==3)||i&&a!=4&&a!=6&&a!=9||!i&&s!=4&&s!=6&&s!=9?"one":"other"},cs:function(t){var n=String(t).split("."),r=n[0],o=!n[1];return t==1&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var n=String(t).split("."),r=n[0],o=Number(n[0])==t;return t==1||!o&&(r==0||r==1)?"one":"other"},dsb:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-2),s=o.slice(-2);return i&&a==1||s==1?"one":i&&a==2||s==2?"two":i&&(a==3||a==4)||s==3||s==4?"few":"other"},dz:function(t){return"other"},es:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t==1?"one":r!=0&&i==0&&o?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t>=0&&t<2?"one":r!=0&&i==0&&o?"many":"other"},ga:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var n=String(t).split("."),r=n[0],o=!n[1];return r==1&&o||r==0&&!o?"one":r==2&&o?"two":"other"},is:function(t){var n=String(t).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==t,a=r.slice(-1),s=r.slice(-2);return i&&a==1&&s!=11||o%10==1&&o%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var n=String(t).split("."),r=n[1]||"",o=Number(n[0])==t,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return i==1&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":r!=0?"many":"other"},lv:function(t){var n=String(t).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==t,a=i&&n[0].slice(-1),s=i&&n[0].slice(-2),l=r.slice(-2),u=r.slice(-1);return i&&a==0||s>=11&&s<=19||o==2&&l>=11&&l<=19?"zero":a==1&&s!=11||o==2&&u==1&&l!=11||o!=2&&u==1?"one":"other"},mk:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],a=r.slice(-1),s=r.slice(-2),l=o.slice(-1),u=o.slice(-2);return i&&a==1&&s!=11||l==1&&u!=11?"one":"other"},mt:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return t==1?"one":t==2?"two":t==0||o>=3&&o<=10?"few":o>=11&&o<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return t==1&&o?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&r!=1&&(i==0||i==1)||o&&i>=5&&i<=9||o&&a>=12&&a<=14?"many":"other"},pt:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return r==0||r==1?"one":r!=0&&i==0&&o?"many":"other"},ro:function(t){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-2);return t==1&&r?"one":!r||t==0||t!=1&&i>=1&&i<=19?"few":"other"},ru:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),a=r.slice(-2);return o&&i==1&&a!=11?"one":o&&i>=2&&i<=4&&(a<12||a>14)?"few":o&&i==0||o&&i>=5&&i<=9||o&&a>=11&&a<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"";return t==0||t==1||r==0&&o==1?"one":"other"},sl:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-2);return o&&i==1?"one":o&&i==2?"two":o&&(i==3||i==4)||!o?"few":"other"}};T.as=T.am;T.az=T.af;T.bg=T.af;T.bn=T.am;T.brx=T.af;T.ce=T.af;T.chr=T.af;T.de=T.ast;T.ee=T.af;T.el=T.af;T.en=T.ast;T.et=T.ast;T.eu=T.af;T.fa=T.am;T.fi=T.ast;T.fil=T.ceb;T.fo=T.af;T.fur=T.af;T.fy=T.ast;T.gl=T.ast;T.gu=T.am;T.ha=T.af;T.hi=T.am;T.hr=T.bs;T.hsb=T.dsb;T.hu=T.af;T.hy=T.ff;T.ia=T.ast;T.id=T.dz;T.ig=T.dz;T.it=T.ca;T.ja=T.dz;T.jgo=T.af;T.jv=T.dz;T.ka=T.af;T.kea=T.dz;T.kk=T.af;T.kl=T.af;T.km=T.dz;T.kn=T.am;T.ko=T.dz;T.ks=T.af;T.ku=T.af;T.ky=T.af;T.lb=T.af;T.lkt=T.dz;T.lo=T.dz;T.ml=T.af;T.mn=T.af;T.mr=T.af;T.ms=T.dz;T.my=T.dz;T.nb=T.af;T.ne=T.af;T.nl=T.ast;T.nn=T.af;T.no=T.af;T.or=T.af;T.pcm=T.am;T.ps=T.af;T.rm=T.af;T.sah=T.dz;T.sc=T.ast;T.sd=T.af;T.sk=T.cs;T.so=T.af;T.sq=T.af;T.sr=T.bs;T.su=T.dz;T.sv=T.ast;T.sw=T.ast;T.ta=T.af;T.te=T.af;T.th=T.dz;T.ti=T.pa;T.tk=T.af;T.to=T.dz;T.tr=T.af;T.ug=T.af;T.uk=T.ru;T.ur=T.ast;T.uz=T.af;T.vi=T.dz;T.wae=T.af;T.wo=T.dz;T.xh=T.af;T.yi=T.ast;T.yo=T.dz;T.yue=T.dz;T.zh=T.dz;T.zu=T.am;const Qw=T;function Kw(e){return e==="pt-PT"?e:y3(e)}var g3=/^([a-z0-9]+)/i;function y3(e){var t=e.match(g3);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function w3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xw(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};O3(this,e);var r=n.numeric,o=n.style,i=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if(T3.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(o!==void 0){if(I3.indexOf(o)<0)throw new RangeError('Invalid "style" option: '.concat(o));this.style=o}if(i!==void 0){if(M3.indexOf(i)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(i));this.localeMatcher=i}if(typeof t=="string"&&(t=[t]),t.push(dE()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");Mh.supportedLocalesOf(this.locale).length>0?this.pluralRules=new Mh(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=pE(this.locale,{localeMatcher:this.localeMatcher})}return R3(e,[{key:"format",value:function(){var n=n1(arguments),r=Jw(n,2),o=r[0],i=r[1];return this.getRule(o,i).replace("{0}",this.formatNumber(Math.abs(o)))}},{key:"formatToParts",value:function(){var n=n1(arguments),r=Jw(n,2),o=r[0],i=r[1],a=this.getRule(o,i),s=a.indexOf("{0}");if(s<0)return[{type:"literal",value:a}];var l=[];return s>0&&l.push({type:"literal",value:a.slice(0,s)}),l=l.concat(this.formatNumberToParts(Math.abs(o)).map(function(u){return Zw(Zw({},u),{},{unit:i})})),s+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(n){return pE(n,t)})};yr.addLocale=v3;yr.setDefaultLocale=h3;yr.getDefaultLocale=dE;yr.PluralRules=Mh;var yd='Invalid "unit" argument';function F3(e){if(Fh(e)==="symbol")throw new TypeError(yd);if(typeof e!="string")throw new RangeError("".concat(yd,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),P3.indexOf(e)<0)throw new RangeError("".concat(yd,": ").concat(e));return e}var k3='Invalid "number" argument';function D3(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(k3,": ").concat(e));return e}function $3(e){return 1/e===-1/0}function A3(e){return e<0||e===0&&$3(e)}function n1(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[D3(e[0]),F3(e[1])]}function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function N3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U3(e,t){if(e){if(typeof e=="string")return i1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i1(e,t)}}function i1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)if(i.pop(),o=i.join("-"),t(o))return o}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function B3(){var e=(typeof Intl>"u"?"undefined":kh(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function Dh(e){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dh(e)}function z3(e){return W3(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var H3={}.constructor;function W3(e){return Dh(e)!==void 0&&e!==null&&e.constructor===H3}var Tn=60,uu=60*Tn,Gr=24*uu,$h=7*Gr,Ah=30.44*Gr,hE=146097/400*Gr;function Ao(e){switch(e){case"second":return 1;case"minute":return Tn;case"hour":return uu;case"day":return Gr;case"week":return $h;case"month":return Ah;case"year":return hE}}function mE(e){return e.factor!==void 0?e.factor:Ao(e.unit||e.formatAs)||1}function ba(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function ag(e){switch(e){case"floor":return 1;default:return .5}}function Nh(e){"@babel/helpers - typeof";return Nh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nh(e)}function vE(e,t){var n=t.prevStep,r=t.timestamp,o=t.now,i=t.future,a=t.round,s;return n&&(n.id||n.unit)&&(s=e["threshold_for_".concat(n.id||n.unit)]),s===void 0&&e.threshold!==void 0&&(s=e.threshold,typeof s=="function"&&(s=s(o,i))),s===void 0&&(s=e.minTime),Nh(s)==="object"&&(n&&n.id&&s[n.id]!==void 0?s=s[n.id]:s=s.default),typeof s=="function"&&(s=s(r,{future:i,getMinTimeForUnit:function(u,c){return a1(u,c||n&&n.formatAs,{round:a})}})),s===void 0&&e.test&&(e.test(r,{now:o,future:i})?s=0:s=9007199254740991),s===void 0&&(n?e.formatAs&&n.formatAs&&(s=a1(e.formatAs,n.formatAs,{round:a})):s=0),s===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),s}function a1(e,t,n){var r=n.round,o=Ao(e),i;if(t==="now"?i=Ao(e):i=Ao(t),o!==void 0&&i!==void 0)return o-i*(1-ag(r))}function s1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function G3(e){for(var t=1;t0)return e[a-1]}return s}}}function gE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=vE(e[r],G3({prevStep:e[r-1],timestamp:n.now-t*1e3},n));return o===void 0||Math.abs(t)=0:!0})}function Y3(e,t,n){var r=n.now,o=n.round;if(Ao(e)){var i=Ao(e)*1e3,a=t>r,s=Math.abs(t-r),l=ba(o)(s/i)*i;return a?l>0?s-l+J3(o,i):s-l+1:-(s-l)+Z3(o,i)}}function Z3(e,t){return ag(e)*t}function J3(e,t){return(1-ag(e))*t+1}var eU=365*24*60*60*1e3,yE=1e3*eU;function tU(e,t,n){var r=n.prevStep,o=n.nextStep,i=n.now,a=n.future,s=n.round,l=e.getTime?e.getTime():e,u=function(v){return Y3(v,l,{now:i,round:s})},c=rU(a?t:o,l,{future:a,now:i,round:s,prevStep:a?r:t});if(c!==void 0){var f;if(t&&(t.getTimeToNextUpdate&&(f=t.getTimeToNextUpdate(l,{getTimeToNextUpdateForUnit:u,getRoundFunction:ba,now:i,future:a,round:s})),f===void 0)){var d=t.unit||t.formatAs;d&&(f=u(d))}return f===void 0?c:Math.min(f,c)}}function nU(e,t,n){var r=n.now,o=n.future,i=n.round,a=n.prevStep,s=vE(e,{timestamp:t,now:r,future:o,round:i,prevStep:a});if(s!==void 0)return o?t-s*1e3+1:s===0&&t===r?yE:t+s*1e3}function rU(e,t,n){var r=n.now,o=n.future,i=n.round,a=n.prevStep;if(e){var s=nU(e,t,{now:r,future:o,round:i,prevStep:a});return s===void 0?void 0:s-r}else return o?t-r+1:yE}var wE={};function Ro(e){return wE[e]}function SE(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");wE[e.locale]=e}const oU=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],Lh={steps:oU,labels:"long"};function l1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function u1(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xU(e,t){return OU(e)||EU(e,t)||xE(e,t)||_U()}function _U(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xE(e,t){if(e){if(typeof e=="string")return _1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _1(e,t)}}function _1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;RU(this,e),typeof t=="string"&&(t=[t]),this.locale=j3(t.concat(e.getDefaultLocale()),Ro),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=yr,this.IntlPluralRules=yr.PluralRules),this.relativeTimeFormatCache=new o1,this.pluralRulesCache=new o1}return PU(e,[{key:"format",value:function(n,r,o){o||(r&&!kU(r)?(o=r,r=void 0):o={}),r||(r=Vh),typeof r=="string"&&(r=bU(r));var i=TU(n),a=this.getLabels(r.flavour||r.labels),s=a.labels,l=a.labelsType,u;r.now!==void 0&&(u=r.now),u===void 0&&o.now!==void 0&&(u=o.now),u===void 0&&(u=Date.now());var c=(u-i)/1e3,f=o.future||c<0,d=FU(s,Ro(this.locale).now,Ro(this.locale).long,f);if(r.custom){var p=r.custom({now:u,date:new Date(i),time:i,elapsed:c,locale:this.locale});if(p!==void 0)return p}var v=MU(r.units,s,d),h=o.round||r.round,w=Q3(r.gradation||r.steps||Vh.steps,c,{now:u,units:v,round:h,future:f,getNextStep:!0}),m=xU(w,3),g=m[0],y=m[1],b=m[2],E=this.formatDateForStep(i,y,c,{labels:s,labelsType:l,nowLabel:d,now:u,future:f,round:h})||"";if(o.getTimeToNextUpdate){var C=tU(i,y,{nextStep:b,prevStep:g,now:u,future:f,round:h});return[E,C]}return E}},{key:"formatDateForStep",value:function(n,r,o,i){var a=this,s=i.labels,l=i.labelsType,u=i.nowLabel,c=i.now,f=i.future,d=i.round;if(r){if(r.format)return r.format(n,this.locale,{formatAs:function(m,g){return a.formatValue(g,m,{labels:s,future:f})},now:c,future:f});var p=r.unit||r.formatAs;if(!p)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(r)));if(p==="now")return u;var v=Math.abs(o)/mE(r);r.granularity&&(v=ba(d)(v/r.granularity)*r.granularity);var h=-1*Math.sign(o)*ba(d)(v);switch(h===0&&(f?h=0:h=-0),l){case"long":case"short":case"narrow":return this.getFormatter(l).format(h,p);default:return this.formatValue(h,p,{labels:s,future:f})}}}},{key:"formatValue",value:function(n,r,o){var i=o.labels,a=o.future;return this.getFormattingRule(i,r,n,{future:a}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,r,o,i){var a=i.future;if(this.locale,n=n[r],typeof n=="string")return n;var s=o===0?a?"future":"past":o<0?"past":"future",l=n[s]||n;if(typeof l=="string")return l;var u=this.getPluralRules().select(Math.abs(o));return l[u]||l.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(s){switch(s){case"tiny":case"mini-time":return"mini";default:return s}}),n=n.concat("long");for(var r=Ro(this.locale),o=CU(n),i;!(i=o()).done;){var a=i.value;if(r[a])return{labelsType:a,labels:r[a]}}}}]),e}(),_E="en";Gt.getDefaultLocale=function(){return _E};Gt.setDefaultLocale=function(e){return _E=e};Gt.addDefaultLocale=function(e){if(O1)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");O1=!0,Gt.setDefaultLocale(e.locale),Gt.addLocale(e)};var O1;Gt.addLocale=function(e){SE(e),yr.addLocale(e)};Gt.locale=Gt.addLocale;Gt.addLabels=function(e,t,n){var r=Ro(e);r||(SE({locale:e}),r=Ro(e)),r[t]=n};function TU(e){if(e.constructor===Date||IU(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(cu(e),", ").concat(e))}function IU(e){return cu(e)==="object"&&typeof e.getTime=="function"}function MU(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter(function(o){return o==="now"||r.indexOf(o)>=0})),r}function FU(e,t,n,r){var o=e.now||t&&t.now;if(o)return typeof o=="string"?o:r?o.future:o.past;if(n&&n.second&&n.second.current)return n.second.current}function kU(e){return typeof e=="string"||z3(e)}function zh(e){"@babel/helpers - typeof";return zh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zh(e)}function DU(e){if(EE())return Intl.DateTimeFormat.supportedLocalesOf(e)[0]}function EE(){var e=(typeof Intl>"u"?"undefined":zh(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function $U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R1(e,t){for(var n=0;n"u"?q1:window,Js=["moz","webkit"],No="AnimationFrame",ui=Dn["request"+No],xa=Dn["cancel"+No]||Dn["cancelRequest"+No];for(var Ii=0;!ui&&Iir)return n}else if(r=o-1,re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=n.nextUpdateTime)k1(n,this.instances);else break}},scheduleNextTick:function(){var t=this;this.scheduledTick=M1(function(){t.tick(),t.scheduleNextTick()})},start:function(){this.scheduleNextTick()},stop:function(){M1.cancel(this.scheduledTick)}};function r4(e){var t=e.getNextValue(),n=YU(t,2),r=n[0],o=n[1];e.setValue(r),e.nextUpdateTime=o}function k1(e,t){r4(e),PE(t,e),RE(t,e)}function RE(e,t){var n=o4(e,t);e.splice(n,0,t)}function PE(e,t){var n=e.indexOf(t);e.splice(n,1)}function o4(e,t){var n=t.nextUpdateTime;return XU(e,function(r){return r.nextUpdateTime===n?0:r.nextUpdateTime>n?1:-1})}var i4=["date","verboseDate","tooltip","children"];function Wh(){return Wh=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function s4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function du(e,t){var n=e.date,r=e.verboseDate,o=e.tooltip,i=e.children,a=a4(e,i4),s=R.useMemo(function(){return n.toISOString()},[n]);return x.createElement("time",Wh({ref:t},a,{dateTime:s,title:o?r:void 0}),i)}du=x.forwardRef(du);du.propTypes={date:S.instanceOf(Date).isRequired,verboseDate:S.string,tooltip:S.bool.isRequired,children:S.string.isRequired};var Gh=S.oneOfType,D1=S.arrayOf,Po=S.string,$1=S.number,Li=S.shape,el=S.func,l4=Gh([Li({minTime:$1,formatAs:Po.isRequired}),Li({test:el,formatAs:Po.isRequired}),Li({minTime:$1,format:el.isRequired}),Li({test:el,format:el.isRequired})]),u4=Gh([Po,Li({steps:D1(l4).isRequired,labels:Gh([Po,D1(Po)]).isRequired,round:Po})]),c4=["date","future","timeStyle","round","minTimeLeft","tooltip","component","container","wrapperComponent","wrapperProps","locale","locales","formatVerboseDate","verboseDateFormat","updateInterval","tick","now","timeOffset","polyfill"];function pu(){return pu=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function v4(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function _a(e){var t=e.date,n=e.future,r=e.timeStyle,o=e.round,i=e.minTimeLeft,a=e.tooltip,s=e.component,l=e.container,u=e.wrapperComponent,c=e.wrapperProps,f=e.locale,d=e.locales,p=e.formatVerboseDate,v=e.verboseDateFormat,h=e.updateInterval,w=e.tick,m=e.now,g=e.timeOffset,y=e.polyfill,b=m4(e,c4),E=R.useMemo(function(){return f&&(d=[f]),d.concat(Gt.getDefaultLocale())},[f,d]),C=R.useMemo(function(){return WU(E,{polyfill:y})},[E,y]);t=R.useMemo(function(){return BU(t)},[t]);var _=R.useCallback(function(){var q=(m||Date.now())-g,ve;if(n&&q>=t.getTime()&&(q=t.getTime(),ve=!0),i!==void 0){var Se=t.getTime()-i*1e3;q>Se&&(q=Se,ve=!0)}var tt=C.format(t,r,{getTimeToNextUpdate:!0,now:q,future:n,round:o}),we=tl(tt,2),Qe=we[0],re=we[1];return ve?re=w4:re=h||re||60*1e3,[Qe,q+re]},[t,n,r,h,o,i,C,m]),O=R.useRef();O.current=_;var M=R.useMemo(_,[]),P=tl(M,2),$=P[0],A=P[1],H=R.useState($),J=tl(H,2),ee=J[0],te=J[1],ne=R.useRef();R.useEffect(function(){if(w)return ne.current=n4.add({getNextValue:function(){return O.current()},setValue:te,nextUpdateTime:A}),function(){return ne.current.stop()}},[w]),R.useEffect(function(){if(ne.current)ne.current.forceUpdate();else{var q=_(),ve=tl(q,1),Se=ve[0];te(Se)}},[_]);var D=R.useMemo(function(){return UU(E,v)},[E,v]),j=R.useMemo(function(){return p?p(t):D(t)},[t,p,D]),B=x.createElement(s,pu({date:t,verboseDate:j,tooltip:a},b),ee),Y=u||l;return Y?x.createElement(Y,pu({},c,{verboseDate:j}),B):B}_a.propTypes={date:S.oneOfType([S.instanceOf(Date),S.number]).isRequired,locale:S.string,locales:S.arrayOf(S.string),future:S.bool,timeStyle:u4,round:S.string,minTimeLeft:S.number,component:S.elementType.isRequired,tooltip:S.bool.isRequired,formatVerboseDate:S.func,verboseDateFormat:S.object,updateInterval:S.oneOfType([S.number,S.arrayOf(S.shape({threshold:S.number,interval:S.number.isRequired}))]),tick:S.bool,now:S.number,timeOffset:S.number,polyfill:S.bool,wrapperComponent:S.elementType,wrapperProps:S.object};_a.defaultProps={locales:[],component:du,tooltip:!0,verboseDateFormat:{weekday:"long",day:"numeric",month:"long",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},tick:!0,timeOffset:0};_a=x.memo(_a);const g4=_a;var y4=365*24*60*60*1e3,w4=1e3*y4;const S4=({reportData:e,isLoading:t=!1})=>{var a,s,l;let{corporationID:n}=Pc();const[r,o]=R.useState(!1);let i=(a=e==null?void 0:e.headers)==null?void 0:a.filter(u=>u==null?void 0:u.aggregate);return N.jsxs("div",{children:[N.jsxs("div",{className:"panel",style:{display:"flex"},children:[N.jsx(VL,{corporation_id:n,size:128,style:{marginRight:"20px"}}),N.jsxs("div",{children:[N.jsx("h2",{children:(s=e==null?void 0:e.report)==null?void 0:s.corporation}),N.jsx("h3",{children:(l=e==null?void 0:e.report)==null?void 0:l.name})]}),N.jsxs("div",{style:{marginLeft:"auto",marginRight:"30px",maxWidth:"600px",display:"flex",flexDirection:"column",justifyContent:"center"},children:[N.jsx("h4",{style:{alignSelf:"center"},children:"Summary"}),N.jsxs("div",{style:{display:"flex",alignSelf:"center",flexWrap:"wrap",justifyContent:"center"},children:[e!=null&&e.updated?N.jsxs($s,{bsStyle:"primary",style:{margin:"5px"},children:["Last Updated: ",N.jsx(g4,{date:new Date(e==null?void 0:e.updated),locale:"en-US"})]}):N.jsx($s,{bsStyle:"danger",style:{margin:"5px"},children:"Last Updated: Never"}),((i==null?void 0:i.length)>0||(e==null?void 0:e.unknowns)>0)&&N.jsxs(N.Fragment,{children:[(e==null?void 0:e.unknowns)>0&&N.jsxs($s,{onClick:()=>o(!0),bsStyle:"danger",style:{margin:"5px"},children:["Unknown Characters: ",e==null?void 0:e.unknowns]}),i.map(u=>{let c=u.pass/(e==null?void 0:e.members);return N.jsxs($s,{bsStyle:c>.75?"success":u.pass/(e==null?void 0:e.members)>.5?"warning":"danger",style:{margin:"5px"},children:[u.header,": ",u.pass,"/",e==null?void 0:e.members]})})]})]})]})]}),N.jsxs(js,{show:r,bsSize:"large",onHide:()=>o(!1),children:[N.jsx(js.Header,{closeButton:!0,children:N.jsx(js.Title,{children:"Orphan Characters "})}),N.jsx(js.Body,{children:N.jsx(xV,{cid:n})})]})]})},b4={option:e=>({...e,color:"black"})},C4=()=>{let{reportID:e}=Pc();const t=og(),{isLoading:n,data:r,error:o}=_c({queryKey:["corp-select"],queryFn:()=>CR()}),i=s=>{let l=nE("/reports/show/:corporationID/:reportID/",{reportID:e||0,corporationID:s});t(l)};let a=[];return n||o||(a=r==null?void 0:r.map(s=>({value:s.corporation_id,label:s.corporation_name}))),N.jsx(Ki,{className:"flex-select",isLoading:n,styles:b4,isDisabled:o,options:a,onChange:s=>i(s.value),placeholder:"Select Corporation"})},x4={option:e=>({...e,color:"black"})},_4=()=>{let{corporationID:e}=Pc();const t=og(),{isLoading:n,data:r,error:o}=_c({queryKey:["report-select"],queryFn:()=>xR()}),i=s=>{let l=nE("/reports/show/:corporationID/:reportID/",{reportID:s,corporationID:e||0});t(l)};let a=[];return n||o||(a=r==null?void 0:r.map(s=>({value:s.id,label:s.name}))),N.jsx(Ki,{className:"flex-select",isLoading:n,styles:x4,isDisabled:o,options:a,onChange:s=>i(s.value),placeholder:"Select Report"})},E4=({reportData:e})=>{const t=CV();return N.jsxs(N.Fragment,{children:[N.jsx("br",{}),N.jsxs("div",{style:{marginBottom:"0",backgroundColor:"transparent",display:"flex",flexDirection:"row",alignContent:"center",alignItems:"center"},children:[N.jsx("h3",{style:{margin:0,marginLeft:"8px"},children:"Auth Reports"}),N.jsxs("div",{className:"pull-right",style:{marginLeft:"auto",display:"flex",flexDirection:"row"},children:[N.jsx("div",{style:{width:"300px"},children:N.jsx(C4,{})}),N.jsx("div",{style:{width:"300px"},children:N.jsx(_4,{})})]}),N.jsx("a",{className:"btn btn-default btn-sm",href:"/reports/add_corp_token",children:N.jsx("i",{class:"fas fa-plus fa-fw"})})]}),N.jsx(qk,{active:t,now:100,style:{marginBottom:"-2px",marginTop:"-5px",height:"10px"}})]})};class O4 extends x.Component{constructor(t){super(t),this.state={error:null,errorInfo:null}}componentDidCatch(t,n){this.setState({error:t,errorInfo:n})}render(){return this.state.errorInfo?N.jsx(Jv,{title:"Error in API",message:"Try refresh the page, If the error persists contact the Admins."}):this.props.children}}const R4=({reportData:e})=>{const t=x.useMemo(()=>{var a;let r=[{header:"Main Character",accessorKey:"character.name",cell:s=>N.jsx(N.Fragment,{children:s.getValue()})}],o=(a=e==null?void 0:e.headers)==null?void 0:a.sort((s,l)=>s.rank>l.rank).map(s=>s!=null&&s.checkbox?{header:s==null?void 0:s.header,accessorKey:`${s==null?void 0:s.field}.check`,enableSorting:!!(s!=null&&s.allow_sort),cell:l=>l.getValue()?N.jsx(Ye,{bsStyle:"success",bsSize:"small",children:N.jsx("i",{class:"fas fa-check-circle"})}):N.jsx(Ye,{bsStyle:"danger",bsSize:"small",children:N.jsx("i",{class:"fas fa-times-circle"})})}:{header:s==null?void 0:s.header,accessorKey:`${s==null?void 0:s.field}.data`,enableSorting:!!(s!=null&&s.allow_sort),cell:l=>typeof l.getValue()=="number"?N.jsx(N.Fragment,{children:l.getValue().toLocaleString()}):N.jsx("div",{dangerouslySetInnerHTML:{__html:l.getValue()}})}),i=[{header:" ",accessorKey:"character.id",enableColumnFilter:!1,enableSorting:!1,cell:s=>N.jsx("h4",{children:N.jsx(LL,{character_id:s.getValue(),size:128,height:64,width:64})})}];return e!=null&&e.show_avatar?i.concat(r,o):r.concat(o)},[e]);let n=e==null?void 0:e.data;return N.jsx(Vx.Body,{children:N.jsx(O4,{children:n?N.jsx(B_,{data:n,columns:t,hover:!0}):N.jsx(ga,{title:"Loading Report",message:"If this is a large report this may take considerable time"})})})},P4=()=>{let{corporationID:e,reportID:t}=Pc();const[n,r]=R.useState(3e3);R.useEffect(()=>{r(3e3)},[e,t]);const{isLoading:o,error:i,data:a,isFetching:s}=_c({queryKey:["dashboard",e,t],queryFn:()=>bR(t,e),options:{refetchInterval:n}});return a!=null&&a.data&&n&&r(null),N.jsxs(N.Fragment,{children:[N.jsx(E4,{}),N.jsx(S4,{reportData:a,isLoading:s|n}),i?N.jsx(Jv,{title:"API Error",message:"There was a problem loading data from the API"}):o?N.jsx(ga,{title:"Loading Report",message:"If this is a large report this may take considerable time"}):a===!1?N.jsx(ga,{title:"Please Select a Corporation and Report"}):N.jsx(R4,{reportData:a})]})},T4={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}};var TE,N1=ln;TE=N1.createRoot,N1.hydrateRoot;Gt.addDefaultLocale(T4);const I4=new iV,M4=()=>N.jsx(uV,{client:I4,children:N.jsx(p3,{children:N.jsxs(f3,{children:[N.jsx(Ph,{path:"reports/show/:corporationID/:reportID/",element:N.jsx(P4,{})}),N.jsx(Ph,{path:"reports/show/",element:N.jsx(u3,{to:"/reports/show/0/0/"})})]})})}),F4=document.getElementById("root"),k4=TE(F4);k4.render(N.jsx(M4,{})); diff --git a/frontend/build/static/assets/index-wyzNN-cK.css b/frontend/build/static/assets/index-wyzNN-cK.css new file mode 100644 index 0000000..2f35dc9 --- /dev/null +++ b/frontend/build/static/assets/index-wyzNN-cK.css @@ -0,0 +1 @@ +*{margin:0;padding:0}.flex{display:flex;height:80px;align-items:center}.child{margin-right:20px}.child-end{margin-left:auto}.fill-width{overflow:auto}.float-left{float:left}.flex-container{display:flex;align-items:center;justify-content:center;align-content:center;flex-wrap:wrap;flex-direction:row}.flex-container-pull-right{display:flex;align-items:flex-end;justify-content:center;align-content:center;flex-direction:row}.flex-container-vert-fill{display:flex;align-items:stretch;justify-content:center;align-content:stretch;flex-wrap:wrap;flex-direction:column}.flex-child{margin:10px}.spinner-size{height:30px;width:30px;margin:200px}.char-portrait{position:relative;margin:auto}.corp-logo{position:absolute;bottom:0;left:0;margin:5px}.alli-logo{position:absolute;bottom:0;right:0;margin:5px}.flex-body{align-items:center}.table-div{height:250px;width:400px;overflow-y:overlay}.table-div::-webkit-scrollbar{width:3;background:transparent}.table-div::-webkit-scrollbar-thumb{background-color:#375a7f4b;border-left:15px solid transparent;background-clip:padding-box}table tbbody tr td{vertical-align:middle!important}.no-wrap{white-space:nowrap}@media only screen and (max-width: 1600px){.info-hide{display:none}}@media only screen and (max-width: 1400px){.association-hide{display:none}}.btn-group.special{display:flex}.special .btn{flex:1;color:inherit;border:1px solid #f0ad4e;background-color:transparent}.no-grow{flex-grow:0!important;background:#f0ad4e!important;color:#fff}.lds-ripple{display:inline-block;position:relative;width:80px;height:80px}.lds-ripple div{position:absolute;border:4px solid rgb(136,136,136);opacity:1;border-radius:50%;animation:lds-ripple 1s cubic-bezier(0,.2,.8,1) infinite}.lds-ripple div:nth-child(2){animation-delay:-.5s}@keyframes lds-ripple{0%{top:36px;left:36px;width:0;height:0;opacity:1}to{top:0;left:0;width:72px;height:72px;opacity:0}}.flex-label-container{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:stretch}.flex-label{margin:2px}.flex-select{flex:1;margin:2px}.flex-select-size{width:300px} diff --git a/frontend/build/static/index.html b/frontend/build/static/index.html new file mode 100644 index 0000000..48c2d37 --- /dev/null +++ b/frontend/build/static/index.html @@ -0,0 +1,46 @@ + + + + + + + + + + + + + React Dev Auth? WTF! + + + + + + + + + + +
+ + +
+ + + diff --git a/frontend/public/index.html b/frontend/index.html similarity index 97% rename from frontend/public/index.html rename to frontend/index.html index 2f6bc96..b60e03e 100644 --- a/frontend/public/index.html +++ b/frontend/index.html @@ -39,5 +39,7 @@
+ + diff --git a/frontend/package.json b/frontend/package.json index d88a97f..ca58cd5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,7 +4,6 @@ "private": true, "dependencies": { "@agney/react-loading": "^0.1.2", - "@babel/plugin-proposal-class-properties": "^7.14.5", "@pvyparts/allianceauth-components": "^1.1.1", "@tanstack/react-query": "^5.8.4", "@testing-library/jest-dom": "^5.16.1", @@ -24,10 +23,8 @@ }, "scripts": { "prestart": "rm -rf node_modules/.cache/", - "start": "react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" + "start": "npx vite", + "build": "npx vite build" }, "eslintConfig": { "extends": [ @@ -47,5 +44,9 @@ "last 1 safari version" ] }, - "proxy": "http://localhost:8000" + "proxy": "http://localhost:8000", + "type": "module", + "devDependencies": { + "vite-plugin-chunk-split": "^0.5.0" + } } diff --git a/frontend/src/apis/Dashboard.js b/frontend/src/apis/Dashboard.jsx similarity index 100% rename from frontend/src/apis/Dashboard.js rename to frontend/src/apis/Dashboard.jsx diff --git a/frontend/src/components/CollapseBlock.js b/frontend/src/components/CollapseBlock.jsx similarity index 100% rename from frontend/src/components/CollapseBlock.js rename to frontend/src/components/CollapseBlock.jsx diff --git a/frontend/src/components/CorpSelect.js b/frontend/src/components/CorpSelect.jsx similarity index 100% rename from frontend/src/components/CorpSelect.js rename to frontend/src/components/CorpSelect.jsx diff --git a/frontend/src/components/ErrorBoundary.js b/frontend/src/components/ErrorBoundary.jsx similarity index 100% rename from frontend/src/components/ErrorBoundary.js rename to frontend/src/components/ErrorBoundary.jsx diff --git a/frontend/src/components/OpenCharacterButtonGroup.js b/frontend/src/components/OpenCharacterButtonGroup.jsx similarity index 100% rename from frontend/src/components/OpenCharacterButtonGroup.js rename to frontend/src/components/OpenCharacterButtonGroup.jsx diff --git a/frontend/src/components/OpenInGameButton.js b/frontend/src/components/OpenInGameButton.jsx similarity index 100% rename from frontend/src/components/OpenInGameButton.js rename to frontend/src/components/OpenInGameButton.jsx diff --git a/frontend/src/components/OrphanCharactersTable.js b/frontend/src/components/OrphanCharactersTable.jsx similarity index 100% rename from frontend/src/components/OrphanCharactersTable.js rename to frontend/src/components/OrphanCharactersTable.jsx diff --git a/frontend/src/components/Report.js b/frontend/src/components/Report.jsx similarity index 100% rename from frontend/src/components/Report.js rename to frontend/src/components/Report.jsx diff --git a/frontend/src/components/ReportHeader.js b/frontend/src/components/ReportHeader.jsx similarity index 100% rename from frontend/src/components/ReportHeader.js rename to frontend/src/components/ReportHeader.jsx diff --git a/frontend/src/components/ReportMenu.js b/frontend/src/components/ReportMenu.jsx similarity index 100% rename from frontend/src/components/ReportMenu.js rename to frontend/src/components/ReportMenu.jsx diff --git a/frontend/src/components/ReportSelect.js b/frontend/src/components/ReportSelect.jsx similarity index 100% rename from frontend/src/components/ReportSelect.js rename to frontend/src/components/ReportSelect.jsx diff --git a/frontend/src/components/ReportTable.js b/frontend/src/components/ReportTable.jsx similarity index 100% rename from frontend/src/components/ReportTable.js rename to frontend/src/components/ReportTable.jsx diff --git a/frontend/src/components/UnknownTable.js b/frontend/src/components/UnknownTable.jsx similarity index 100% rename from frontend/src/components/UnknownTable.js rename to frontend/src/components/UnknownTable.jsx diff --git a/frontend/src/index.js b/frontend/src/main.jsx similarity index 100% rename from frontend/src/index.js rename to frontend/src/main.jsx diff --git a/frontend/src/pages/ReportPage.js b/frontend/src/pages/ReportPage.jsx similarity index 100% rename from frontend/src/pages/ReportPage.js rename to frontend/src/pages/ReportPage.jsx diff --git a/frontend/src/pages/ReportUnknownsPage.js b/frontend/src/pages/ReportUnknownsPage.jsx similarity index 100% rename from frontend/src/pages/ReportUnknownsPage.js rename to frontend/src/pages/ReportUnknownsPage.jsx diff --git a/frontend/vite.config.js b/frontend/vite.config.js new file mode 100644 index 0000000..f8e18c9 --- /dev/null +++ b/frontend/vite.config.js @@ -0,0 +1,37 @@ +import react from "@vitejs/plugin-react-swc"; +import { defineConfig } from "vite"; + +export default defineConfig({ + base: "./", + plugins: [react()], + server: { + port: 3002, + }, + build: { + manifest: true, + outDir: "build/static/", + rollupOptions: { + output: { + manualChunks: {}, + }, + }, + proxy: { + "/reports/api": { + target: "http://localhost:8000", + changeOrigin: true, + secure: false, + configure: (proxy, _options) => { + proxy.on("error", (err, _req, _res) => { + console.log("proxy error", err); + }); + proxy.on("proxyReq", (proxyReq, req, _res) => { + console.log("Sending Request to the Target:", req.method, req.url); + }); + proxy.on("proxyRes", (proxyRes, req, _res) => { + console.log("Received Response from the Target:", proxyRes.statusCode, req.url); + }); + }, + }, + }, + }, +}); diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 8f7ef0a..b20a1f5 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -378,7 +378,7 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" "@babel/plugin-transform-optional-chaining" "^7.22.5" -"@babel/plugin-proposal-class-properties@^7.14.5", "@babel/plugin-proposal-class-properties@^7.16.0": +"@babel/plugin-proposal-class-properties@^7.16.0": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== @@ -1826,7 +1826,7 @@ resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.4.tgz#856a142864530d4059dda415659b48d37db2d556" integrity sha512-KE/SxsDqNs3rrWwFHcRh15ZLVFrI0YoZtgAdIyIq9k5hUNmiWRXXThPomIxHuL20sLdgzbDFyvkUMna14bvtrw== -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15": version "1.4.15" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== @@ -5056,6 +5056,11 @@ es-module-lexer@^1.2.1: resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.3.0.tgz#6be9c9e0b4543a60cd166ff6f8b4e9dae0b0c16f" integrity sha512-vZK7T0N2CBmBOixhmjdqx2gWVbFZ4DXZ/NyRMZVlJXPa7CyFS+/a4QQsDGDQy9ZfEzxFuNEsMLeQJnKP2p5/JA== +es-module-lexer@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.4.1.tgz#41ea21b43908fe6a287ffcbe4300f790555331f5" + integrity sha512-cXLGjP0c4T3flZJKQSuziYoq7MlT+rnvfZjfp7h+I7K9BNX54kP9nyWvdbwjQ4u1iWbOL4u96fgeZLToQlZC7w== + es-set-tostringtag@^2.0.1: version "2.0.2" resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz#11f7cc9f63376930a5f20be4915834f4bc74f9c9" @@ -6447,6 +6452,11 @@ import-local@^3.0.2: pkg-dir "^4.2.0" resolve-cwd "^3.0.0" +import-meta-resolve@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-meta-resolve/-/import-meta-resolve-4.0.0.tgz#0b1195915689f60ab00f830af0f15cc841e8919e" + integrity sha512-okYUR7ZQPH+efeuMJGlq4f8ubUgO50kByRPyt/Cy1Io4PSRsPjxME+YlVaCOx+NIToW7hCsZNFJyTPFFKepRSA== + imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" @@ -7836,6 +7846,13 @@ magic-string@^0.25.0, magic-string@^0.25.7: dependencies: sourcemap-codec "^1.4.8" +magic-string@^0.30.5: + version "0.30.5" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.5.tgz#1994d980bd1c8835dc6e78db7cbd4ae4f24746f9" + integrity sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA== + dependencies: + "@jridgewell/sourcemap-codec" "^1.4.15" + make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -11596,6 +11613,15 @@ vary@~1.1.2: resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== +vite-plugin-chunk-split@^0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/vite-plugin-chunk-split/-/vite-plugin-chunk-split-0.5.0.tgz#b5da3382f88b50354887560760c8b6bf15295bf8" + integrity sha512-pasNKLhH+ICjoCF6HoKKvgmZ1LEPSCIKAa8Lz0ZpMyQC9bLmCLT7UxgKMULewsc9SUw89OX0udsGiIQCtr8wLA== + dependencies: + es-module-lexer "^1.4.1" + import-meta-resolve "^4.0.0" + magic-string "^0.30.5" + vm-browserify@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"