eehitus-my-task-list-ui 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.esm.js.LICENSE.txt */
|
|
2
|
-
import*as e from"react";import*as t from"@reduxjs/toolkit";import*as n from"axios";import*as r from"react-intl";import*as o from"ehr-components";import*as i from"react-dom";import*as a from"dayjs";import*as s from"react-redux";import*as l from"moment";import*as c from"reactstrap";var u={20:(e,t,n)=>{var r=n(649),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},649:t=>{t.exports=e},848:(e,t,n)=>{e.exports=n(20)},942:(e,t)=>{var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},d={};function p(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const f=(e=>{var t={};return p.d(t,e),t})({combineReducers:()=>t.combineReducers,createAsyncThunk:()=>t.createAsyncThunk,createSelector:()=>t.createSelector,createSlice:()=>t.createSlice});const m=(0,f.createSlice)({name:"filter",initialState:{classifiers:{},documentTypes:[],institutionUsers:[],institutions:[],usageClassifierTypes:[]},reducers:{classifiersLoaded:(e,t)=>{e.classifiers=t.payload},documentTypesLoaded:(e,t)=>{e.documentTypes=t.payload},institutionUsersLoaded:(e,t)=>{e.institutionUsers=t.payload},institutionsLoaded:(e,t)=>{e.institutions=t.payload},usageClassifierTypesLoaded:(e,t)=>{e.usageClassifierTypes=t.payload}}}),{classifiersLoaded:h,documentTypesLoaded:g,institutionUsersLoaded:v,institutionsLoaded:b,usageClassifierTypesLoaded:y}=m.actions,x=m.reducer;const w=(0,f.createSlice)({name:"documents",initialState:{workingDocuments:[],signingDocuments:[],finishedDocuments:[],allowedDocumentTypesToStart:[]},reducers:{workingDocumentsLoaded:(e,t)=>{e.workingDocuments=t.payload},signingDocumentsLoaded:(e,t)=>{e.signingDocuments=t.payload},finishedDocumentsLoaded:(e,t)=>{e.finishedDocuments=t.payload},deleteDocument(e,t){e.workingDocuments=e.workingDocuments.filter((e=>e.docNr!==t.payload))},allowedDocumentTypesLoaded:(e,t)=>{e.allowedDocumentTypesToStart=t.payload}}}),S=((0,f.createSelector)((e=>e.myViewsPage.myDocuments.workingDocuments),(e=>e)),(0,f.createSelector)((e=>e.myViewsPage.myDocuments.finishedDocuments),(e=>e))),{workingDocumentsLoaded:_,signingDocumentsLoaded:E,finishedDocumentsLoaded:k,deleteDocument:C,allowedDocumentTypesLoaded:T}=w.actions,I=w.reducer;const M=(0,f.createSlice)({name:"proceedings",initialState:{myProceedings:[],proceedingsToComment:[],incomingDocuments:[]},reducers:{myProceedingsLoaded:(e,t)=>{e.myProceedings=t.payload},proceedingsToCommentLoaded:(e,t)=>{e.proceedingsToComment=t.payload},incomingDocumentsLoaded:(e,t)=>{e.incomingDocuments=t.payload}}}),{myProceedingsLoaded:D,proceedingsToCommentLoaded:O,incomingDocumentsLoaded:j}=((0,f.createSelector)((e=>e.myViewsPage.myProceedings.myProceedings),(e=>e)),(0,f.createSelector)((e=>e.myViewsPage.myProceedings.incomingDocuments),(e=>e)),M.actions),{actions:A}=M,R=M.reducer;const P=(0,f.createSlice)({name:"myOperations",initialState:{myOperations:[],toCommentOperations:[],operationInvitations:[]},reducers:{myOperationsLoaded:(e,t)=>{e.myOperations=t.payload},toCommentOperationsLoaded:(e,t)=>{e.toCommentOperations=t.payload},operationInvitationsLoaded:(e,t)=>{e.operationInvitations=t.payload}}}),{myOperationsLoaded:N,toCommentOperationsLoaded:L,operationInvitationsLoaded:F}=P.actions,U=P.reducer;const B=(0,f.createSlice)({name:"detailSearch",initialState:{buildings:[],documents:[],proceedings:[]},reducers:{buildingsLoaded:(e,t)=>{e.buildings=t.payload},documentsLoaded:(e,t)=>{e.documents=t.payload},proceedingsLoaded:(e,t)=>{e.proceedings=t.payload}}}),{buildingsLoaded:z,documentsLoaded:V,proceedingsLoaded:K}=B.actions,$=B.reducer,H={notices:[]},Y=(0,f.createSlice)({name:"notification",initialState:H,reducers:{setNotifications:(e,t)=>{e.notices=t.payload},removeNotification:(e,t)=>{const n=e.notices.filter((e=>e.id!==t.payload));e.notices=n},cleanState:e=>H}}),W=(0,f.createSelector)((e=>e.myViewsPage.notifications.notices),(e=>e)),{cleanState:G,setNotifications:q,removeNotification:J}=Y.actions,X=Y.reducer;const Z=(e=>{var t={};return p.d(t,e),t})({default:()=>n.default}),Q="https://devkluster.ehr.ee".replace(/\/+$/,"");class ee{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class te extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const ne="https://example.com",re=function(e,t,n){if(null==n)throw new te(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},oe=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const e of r)for(const n in e)if(Array.isArray(e[n])){t.delete(n);for(const r of e[n])t.append(n,r)}else t.set(n,e[n]);e.search=t.toString()},ie=function(e){return e.pathname+e.search+e.hash},ae=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||i)+e.url};return o.request(a)}},se=function(e){const t=function(e){return{getAllDocumentTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/alldocumenttypes",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getBusinessTypesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/businesstypelist",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getClassifierByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re("getClassifierByType","classifierType",t);const r="/classifier/{classifierType}".replace("{classifierType}",encodeURIComponent(String(t))),o=new URL(r,ne);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};oe(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:ie(o),options:a}},getClassifiersByRelatedType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re("getClassifiersByRelatedType","relatedClassifierType",t);const r="/classifier/related-type/{relatedClassifierType}".replace("{relatedClassifierType}",encodeURIComponent(String(t))),o=new URL(r,ne);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};oe(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:ie(o),options:a}},getClassifiersByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re("getClassifiersByType","classifierTypesCommaSeparated",t);const r="/classifiers/{classifierTypesCommaSeparated}".replace("{classifierTypesCommaSeparated}",encodeURIComponent(String(t))),o=new URL(r,ne);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};oe(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:ie(o),options:a}},getDocumentTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/documenttypes",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getFileTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/filetypes",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getUsageClassifierTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/classifier/usage",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getUserRolesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/userroleslist",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}}}}(e);return{async getAllDocumentTypes(n){const r=await t.getAllDocumentTypes(n);return ae(r,Z.default,Q,e)},async getBusinessTypesList(n){const r=await t.getBusinessTypesList(n);return ae(r,Z.default,Q,e)},async getClassifierByType(n,r){const o=await t.getClassifierByType(n,r);return ae(o,Z.default,Q,e)},async getClassifiersByRelatedType(n,r){const o=await t.getClassifiersByRelatedType(n,r);return ae(o,Z.default,Q,e)},async getClassifiersByType(n,r){const o=await t.getClassifiersByType(n,r);return ae(o,Z.default,Q,e)},async getDocumentTypes(n){const r=await t.getDocumentTypes(n);return ae(r,Z.default,Q,e)},async getFileTypes(n){const r=await t.getFileTypes(n);return ae(r,Z.default,Q,e)},async getHealth(n){const r=await t.getHealth(n);return ae(r,Z.default,Q,e)},async getUsageClassifierTypes(n){const r=await t.getUsageClassifierTypes(n);return ae(r,Z.default,Q,e)},async getUserRolesList(n){const r=await t.getUserRolesList(n);return ae(r,Z.default,Q,e)}}};class le extends ee{getAllDocumentTypes(e){return se(this.configuration).getAllDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getBusinessTypesList(e){return se(this.configuration).getBusinessTypesList(e).then((e=>e(this.axios,this.basePath)))}getClassifierByType(e,t){return se(this.configuration).getClassifierByType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByRelatedType(e,t){return se(this.configuration).getClassifiersByRelatedType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByType(e,t){return se(this.configuration).getClassifiersByType(e,t).then((e=>e(this.axios,this.basePath)))}getDocumentTypes(e){return se(this.configuration).getDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getFileTypes(e){return se(this.configuration).getFileTypes(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return se(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getUsageClassifierTypes(e){return se(this.configuration).getUsageClassifierTypes(e).then((e=>e(this.axios,this.basePath)))}getUserRolesList(e){return se(this.configuration).getUserRolesList(e).then((e=>e(this.axios,this.basePath)))}}class ce{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const ue="http://localhost:8080".replace(/\/+$/,"");class de{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class pe extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const fe="https://example.com",me=function(e,t,n){if(null==n)throw new pe(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function he(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>he(e,t,n))):Object.keys(t).forEach((r=>he(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const ge=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];he(t,r),e.search=t.toString()},ve=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},be=function(e){return e.pathname+e.search+e.hash},ye=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||i)+e.url};return o.request(a)}};const xe=function(e){const t=function(e){return{getJurKovPersons:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur/kov",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getJurPersonCoordRelJurs:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonCoordRelJurs","personId",t);const r="/person/jur/{personId}/coord".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUserPossibleProceedingSupervisorsByEHAKCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUserPossibleProceedingSupervisorsByEHAKCode","eHAKCode",t);const r="/user/possiblesupervisors/{EHAKCode}".replace("{EHAKCode}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUserPossibleProceedingSupervisorsByIdAndEHAKCode:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","id",t),me("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","eHAKCode",n);const o="/user/possiblesupervisors/{id}/{EHAKCode}".replace("{id}",encodeURIComponent(String(t))).replace("{EHAKCode}",encodeURIComponent(String(n))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ge(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:be(i),options:s}},getUserPossibleProceedingSupervisorsByJurId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUserPossibleProceedingSupervisorsByJurId","personId",t);const r="/user/jur/possiblesupervisors/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}}}}(e);return{async getJurKovPersons(n){const r=await t.getJurKovPersons(n);return ye(r,Z.default,ue,e)},async getJurPersonCoordRelJurs(n,r){const o=await t.getJurPersonCoordRelJurs(n,r);return ye(o,Z.default,ue,e)},async getUserPossibleProceedingSupervisorsByEHAKCode(n,r){const o=await t.getUserPossibleProceedingSupervisorsByEHAKCode(n,r);return ye(o,Z.default,ue,e)},async getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o){const i=await t.getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o);return ye(i,Z.default,ue,e)},async getUserPossibleProceedingSupervisorsByJurId(n,r){const o=await t.getUserPossibleProceedingSupervisorsByJurId(n,r);return ye(o,Z.default,ue,e)}}};class we extends de{getJurKovPersons(e){return xe(this.configuration).getJurKovPersons(e).then((e=>e(this.axios,this.basePath)))}getJurPersonCoordRelJurs(e,t){return xe(this.configuration).getJurPersonCoordRelJurs(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByEHAKCode(e,t){return xe(this.configuration).getUserPossibleProceedingSupervisorsByEHAKCode(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n){return xe(this.configuration).getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByJurId(e,t){return xe(this.configuration).getUserPossibleProceedingSupervisorsByJurId(e,t).then((e=>e(this.axios,this.basePath)))}}const Se=function(e){const t=function(e){return{addAllyksusToJurPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/person/jur/addAllyksus",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},addPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/person",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},deletePerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("deletePerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},findKovsAndJurPersonsInTheSameAdministrativeDivision:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};me("findKovsAndJurPersonsInTheSameAdministrativeDivision","regNameOrCode",t);const i="/person/kovs-and-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),a=new URL(i,fe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={},u={};void 0!==n&&(u.searchFromAll=n),c["Content-Type"]="application/json",ge(a,u);let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...o.headers},l.data=ve(r,l,e),{url:be(a),options:l}},findPublicSectorInstitutions:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("findPublicSectorInstitutions","regNameOrCode",t);const o="/person/public-sector-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}},findRolesByDbName:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/personroles",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getAllActiveInstitutions:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getAllClassifierBusinessTypeDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur/businessTypes",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getJurPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPerson","personId",t);const r="/person/jur/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurPersonAncestors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonAncestors","jurPersonId",t);const r="/person/jur/ancestor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurPersonSuccessors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonSuccessors","jurPersonId",t);const r="/person/jur/successor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurPersonsByEhakCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonsByEhakCode","ehakCode",t);const r="/person/jur/byEhakCode/{ehakCode}".replace("{ehakCode}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getPerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getPersonDetails:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/details",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},refreshUpdateArPersonFromAR:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("refreshUpdateArPersonFromAR","regCode",t);const r="/person/jur/refresh/{regCode}".replace("{regCode}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},removeYlemyksusReference:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("removeYlemyksusReference","allyksusId",t);const r="/person/jur/removeYlemyksusReference/{allyksusId}".replace("{allyksusId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"PUT",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},updatePerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("updatePerson","personId",t);const o="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}}}}(e);return{async addAllyksusToJurPerson(n,r){const o=await t.addAllyksusToJurPerson(n,r);return ye(o,Z.default,ue,e)},async addPerson(n,r){const o=await t.addPerson(n,r);return ye(o,Z.default,ue,e)},async deletePerson(n,r){const o=await t.deletePerson(n,r);return ye(o,Z.default,ue,e)},async findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i){const a=await t.findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i);return ye(a,Z.default,ue,e)},async findPublicSectorInstitutions(n,r,o){const i=await t.findPublicSectorInstitutions(n,r,o);return ye(i,Z.default,ue,e)},async findRolesByDbName(n){const r=await t.findRolesByDbName(n);return ye(r,Z.default,ue,e)},async getAllActiveInstitutions(n){const r=await t.getAllActiveInstitutions(n);return ye(r,Z.default,ue,e)},async getAllClassifierBusinessTypeDtos(n){const r=await t.getAllClassifierBusinessTypeDtos(n);return ye(r,Z.default,ue,e)},async getJurPerson(n,r){const o=await t.getJurPerson(n,r);return ye(o,Z.default,ue,e)},async getJurPersonAncestors(n,r){const o=await t.getJurPersonAncestors(n,r);return ye(o,Z.default,ue,e)},async getJurPersonSuccessors(n,r){const o=await t.getJurPersonSuccessors(n,r);return ye(o,Z.default,ue,e)},async getJurPersonsByEhakCode(n,r){const o=await t.getJurPersonsByEhakCode(n,r);return ye(o,Z.default,ue,e)},async getPerson(n,r){const o=await t.getPerson(n,r);return ye(o,Z.default,ue,e)},async getPersonDetails(n){const r=await t.getPersonDetails(n);return ye(r,Z.default,ue,e)},async refreshUpdateArPersonFromAR(n,r){const o=await t.refreshUpdateArPersonFromAR(n,r);return ye(o,Z.default,ue,e)},async removeYlemyksusReference(n,r){const o=await t.removeYlemyksusReference(n,r);return ye(o,Z.default,ue,e)},async updatePerson(n,r,o){const i=await t.updatePerson(n,r,o);return ye(i,Z.default,ue,e)}}};class _e extends de{addAllyksusToJurPerson(e,t){return Se(this.configuration).addAllyksusToJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}addPerson(e,t){return Se(this.configuration).addPerson(e,t).then((e=>e(this.axios,this.basePath)))}deletePerson(e,t){return Se(this.configuration).deletePerson(e,t).then((e=>e(this.axios,this.basePath)))}findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r){return Se(this.configuration).findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r).then((e=>e(this.axios,this.basePath)))}findPublicSectorInstitutions(e,t,n){return Se(this.configuration).findPublicSectorInstitutions(e,t,n).then((e=>e(this.axios,this.basePath)))}findRolesByDbName(e){return Se(this.configuration).findRolesByDbName(e).then((e=>e(this.axios,this.basePath)))}getAllActiveInstitutions(e){return Se(this.configuration).getAllActiveInstitutions(e).then((e=>e(this.axios,this.basePath)))}getAllClassifierBusinessTypeDtos(e){return Se(this.configuration).getAllClassifierBusinessTypeDtos(e).then((e=>e(this.axios,this.basePath)))}getJurPerson(e,t){return Se(this.configuration).getJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonAncestors(e,t){return Se(this.configuration).getJurPersonAncestors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonSuccessors(e,t){return Se(this.configuration).getJurPersonSuccessors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonsByEhakCode(e,t){return Se(this.configuration).getJurPersonsByEhakCode(e,t).then((e=>e(this.axios,this.basePath)))}getPerson(e,t){return Se(this.configuration).getPerson(e,t).then((e=>e(this.axios,this.basePath)))}getPersonDetails(e){return Se(this.configuration).getPersonDetails(e).then((e=>e(this.axios,this.basePath)))}refreshUpdateArPersonFromAR(e,t){return Se(this.configuration).refreshUpdateArPersonFromAR(e,t).then((e=>e(this.axios,this.basePath)))}removeYlemyksusReference(e,t){return Se(this.configuration).removeYlemyksusReference(e,t).then((e=>e(this.axios,this.basePath)))}updatePerson(e,t,n){return Se(this.configuration).updatePerson(e,t,n).then((e=>e(this.axios,this.basePath)))}}const Ee=function(e){const t=function(e){return{searchPerson:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};me("searchPerson","input",t);const i=new URL("/search/searchPerson",fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...o},l={};void 0!==t&&(l.input=t),void 0!==n&&(l.xRoad=n),void 0!==r&&(l.isPrivate=r),ge(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...o.headers},{url:be(i),options:s}}}}(e);return{async searchPerson(n,r,o,i){const a=await t.searchPerson(n,r,o,i);return ye(a,Z.default,ue,e)}}};class ke extends de{searchPerson(e,t,n,r){return Ee(this.configuration).searchPerson(e,t,n,r).then((e=>e(this.axios,this.basePath)))}}const Ce=function(e){const t=function(e){return{addRoleToUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user/addrole",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},addUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},appointSubstituteUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user-substitution/appoint-substitute",fe);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},deleteUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("deleteUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},deleteUserRole:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("deleteUserRole","userRoleRelId",t);const r="/user/role/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},findUsersByRoleId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("findUsersByRoleId","roleId",t);const r="/user/byroleid/{roleId}".replace("{roleId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getAllClassifierUserRoleDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/user/roles/all",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getJurUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurUsers","personId",t);const r="/jur/user/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurUsersWithoutGivenRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("getJurUsersWithoutGivenRole","personId",t),me("getJurUsersWithoutGivenRole","roleId",n);const o="/jur/user/withoutrole/{personId}/{roleId}".replace("{personId}",encodeURIComponent(String(t))).replace("{roleId}",encodeURIComponent(String(n))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ge(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:be(i),options:s}},getUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUserPossibleRecipients:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user/possiblerecipients",fe);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.searchInput=t),ge(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:be(r),options:i}},getUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUsers","personId",t);const r="/user/usersByPersonId/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUsersJurPerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("getUsersJurPerson","userId",t);const o="/user/jur/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};void 0!==n&&(l.valid=n),ge(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...r.headers},{url:be(i),options:s}},updateUser:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("updateUser","userId",t);const o="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}},updateUserRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("updateUserRole","userRoleRelId",t);const o="/user/modifyrole/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}}}}(e);return{async addRoleToUser(n,r){const o=await t.addRoleToUser(n,r);return ye(o,Z.default,ue,e)},async addUser(n,r){const o=await t.addUser(n,r);return ye(o,Z.default,ue,e)},async appointSubstituteUser(n,r){const o=await t.appointSubstituteUser(n,r);return ye(o,Z.default,ue,e)},async deleteUser(n,r){const o=await t.deleteUser(n,r);return ye(o,Z.default,ue,e)},async deleteUserRole(n,r){const o=await t.deleteUserRole(n,r);return ye(o,Z.default,ue,e)},async findUsersByRoleId(n,r){const o=await t.findUsersByRoleId(n,r);return ye(o,Z.default,ue,e)},async getAllClassifierUserRoleDtos(n){const r=await t.getAllClassifierUserRoleDtos(n);return ye(r,Z.default,ue,e)},async getHealth(n){const r=await t.getHealth(n);return ye(r,Z.default,ue,e)},async getJurUsers(n,r){const o=await t.getJurUsers(n,r);return ye(o,Z.default,ue,e)},async getJurUsersWithoutGivenRole(n,r,o){const i=await t.getJurUsersWithoutGivenRole(n,r,o);return ye(i,Z.default,ue,e)},async getUser(n,r){const o=await t.getUser(n,r);return ye(o,Z.default,ue,e)},async getUserPossibleRecipients(n,r){const o=await t.getUserPossibleRecipients(n,r);return ye(o,Z.default,ue,e)},async getUsers(n,r){const o=await t.getUsers(n,r);return ye(o,Z.default,ue,e)},async getUsersJurPerson(n,r,o){const i=await t.getUsersJurPerson(n,r,o);return ye(i,Z.default,ue,e)},async updateUser(n,r,o){const i=await t.updateUser(n,r,o);return ye(i,Z.default,ue,e)},async updateUserRole(n,r,o){const i=await t.updateUserRole(n,r,o);return ye(i,Z.default,ue,e)}}};class Te extends de{addRoleToUser(e,t){return Ce(this.configuration).addRoleToUser(e,t).then((e=>e(this.axios,this.basePath)))}addUser(e,t){return Ce(this.configuration).addUser(e,t).then((e=>e(this.axios,this.basePath)))}appointSubstituteUser(e,t){return Ce(this.configuration).appointSubstituteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUser(e,t){return Ce(this.configuration).deleteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUserRole(e,t){return Ce(this.configuration).deleteUserRole(e,t).then((e=>e(this.axios,this.basePath)))}findUsersByRoleId(e,t){return Ce(this.configuration).findUsersByRoleId(e,t).then((e=>e(this.axios,this.basePath)))}getAllClassifierUserRoleDtos(e){return Ce(this.configuration).getAllClassifierUserRoleDtos(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return Ce(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getJurUsers(e,t){return Ce(this.configuration).getJurUsers(e,t).then((e=>e(this.axios,this.basePath)))}getJurUsersWithoutGivenRole(e,t,n){return Ce(this.configuration).getJurUsersWithoutGivenRole(e,t,n).then((e=>e(this.axios,this.basePath)))}getUser(e,t){return Ce(this.configuration).getUser(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleRecipients(e,t){return Ce(this.configuration).getUserPossibleRecipients(e,t).then((e=>e(this.axios,this.basePath)))}getUsers(e,t){return Ce(this.configuration).getUsers(e,t).then((e=>e(this.axios,this.basePath)))}getUsersJurPerson(e,t,n){return Ce(this.configuration).getUsersJurPerson(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUser(e,t,n){return Ce(this.configuration).updateUser(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUserRole(e,t,n){return Ce(this.configuration).updateUserRole(e,t,n).then((e=>e(this.axios,this.basePath)))}}class Ie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Me="http://localhost:8080".replace(/\/+$/,"");class De{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Oe extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const je="https://example.com",Ae=function(e,t,n){if(null==n)throw new Oe(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Re(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>Re(e,t,n))):Object.keys(t).forEach((r=>Re(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const Pe=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Re(t,r),e.search=t.toString()},Ne=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},Le=function(e){return e.pathname+e.search+e.hash},Fe=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||o.defaults.baseURL||i)+e.url};return o.request(a)}},Ue=function(e){const t=function(e){return{findIncomingDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findIncomingDocuments","documentBaseQueryDto",t);const r=new URL("/documents/incomingdocuments",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findWorkingDocuments1:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findWorkingDocuments1","documentBaseQueryDto",t);const r=new URL("/documents/basedocuments",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async findIncomingDocuments(n,r){const o=await t.findIncomingDocuments(n,r);return Fe(o,Z.default,Me,e)},async findWorkingDocuments1(n,r){const o=await t.findWorkingDocuments1(n,r);return Fe(o,Z.default,Me,e)}}};class Be extends De{findIncomingDocuments(e,t){return Ue(this.configuration).findIncomingDocuments(e,t).then((e=>e(this.axios,this.basePath)))}findWorkingDocuments1(e,t){return Ue(this.configuration).findWorkingDocuments1(e,t).then((e=>e(this.axios,this.basePath)))}}const ze=function(e){const t=function(e){return{searchDetailBuildings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("searchDetailBuildings","buildingSearchDto",t);const r=new URL("/search/buildings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},searchDetailDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("searchDetailDocuments","documentSearchDto",t);const r=new URL("/search/documents",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},searchDetailProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("searchDetailProceedings","proceedingSearchDto",t);const r=new URL("/search/proceedings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async searchDetailBuildings(n,r){const o=await t.searchDetailBuildings(n,r);return Fe(o,Z.default,Me,e)},async searchDetailDocuments(n,r){const o=await t.searchDetailDocuments(n,r);return Fe(o,Z.default,Me,e)},async searchDetailProceedings(n,r){const o=await t.searchDetailProceedings(n,r);return Fe(o,Z.default,Me,e)}}};class Ve extends De{searchDetailBuildings(e,t){return ze(this.configuration).searchDetailBuildings(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailDocuments(e,t){return ze(this.configuration).searchDetailDocuments(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailProceedings(e,t){return ze(this.configuration).searchDetailProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}const Ke=function(e){const t=function(e){return{findOperationInvitations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findOperationInvitations","operationQueryDto",t);const r=new URL("/myoperations/operationinvitations",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findOperations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findOperations","operationQueryDto",t);const r=new URL("/myoperations/myoperations",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findOperationsToComment:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findOperationsToComment","operationQueryDto",t);const r=new URL("/myoperations/operationstocomment",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async findOperationInvitations(n,r){const o=await t.findOperationInvitations(n,r);return Fe(o,Z.default,Me,e)},async findOperations(n,r){const o=await t.findOperations(n,r);return Fe(o,Z.default,Me,e)},async findOperationsToComment(n,r){const o=await t.findOperationsToComment(n,r);return Fe(o,Z.default,Me,e)}}};class $e extends De{findOperationInvitations(e,t){return Ke(this.configuration).findOperationInvitations(e,t).then((e=>e(this.axios,this.basePath)))}findOperations(e,t){return Ke(this.configuration).findOperations(e,t).then((e=>e(this.axios,this.basePath)))}findOperationsToComment(e,t){return Ke(this.configuration).findOperationsToComment(e,t).then((e=>e(this.axios,this.basePath)))}}const He=function(e){const t=function(e){return{findAreaProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findAreaProceedings","proceedingQueryDto",t);const r=new URL("/myproceedings/my-area-proceedings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findProceedings","myProceedingsRequestDto",t);const r=new URL("/myproceedings/myproceedings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async findAreaProceedings(n,r){const o=await t.findAreaProceedings(n,r);return Fe(o,Z.default,Me,e)},async findProceedings(n,r){const o=await t.findProceedings(n,r);return Fe(o,Z.default,Me,e)}}};class Ye extends De{findAreaProceedings(e,t){return He(this.configuration).findAreaProceedings(e,t).then((e=>e(this.axios,this.basePath)))}findProceedings(e,t){return He(this.configuration).findProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}class We{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Ge="http://localhost:8080".replace(/\/+$/,"");class qe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Je extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Xe="https://example.com",Ze=function(e,t,n){if(null==n)throw new Je(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Qe=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}};function et(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>et(e,t,n))):Object.keys(t).forEach((r=>et(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const tt=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];et(t,r),e.search=t.toString()},nt=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},rt=function(e){return e.pathname+e.search+e.hash},ot=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||o.defaults.baseURL||i)+e.url};return o.request(a)}};const it=function(e){const t=function(e){return{addAuthz:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("addAuthz","documentType",t),Ze("addAuthz","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/addAuthz".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},apiVersion:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/version",Xe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:rt(n),options:o}},autoUpdateOwnershipType:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/document/updateOwnershipType",Xe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:rt(n),options:o}},createDoDokuDokuRel:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("createDoDokuDokuRel","documentId",t),Ze("createDoDokuDokuRel","addEntityDto",n);const o="/document/{documentId}/createDoDokuDokuRel".replace("{documentId}",encodeURIComponent(String(t))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Qe(l,e),l["Content-Type"]="application/json",tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=nt(n,s,e),{url:rt(i),options:s}},createDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("createDocument","documentType",t);const o="/document/{documentType}".replace("{documentType}",encodeURIComponent(String(t))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Qe(l,e),l["Content-Type"]="application/json",tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=nt(n,s,e),{url:rt(i),options:s}},createNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("createNewVersion","documentType",t),Ze("createNewVersion","applicationNumber",n),Ze("createNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/new".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},deleteApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("deleteApplicationByNumber","documentType",t),Ze("deleteApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},endProceedingCircleDocuments:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("endProceedingCircleDocuments","documentType",t),Ze("endProceedingCircleDocuments","applicationNumber",n),Ze("endProceedingCircleDocuments","proceedingId",r);const i="/document/{documentType}/{applicationNumber}/proceeding/{proceedingId}/endCircle".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{proceedingId}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},getAccessRights:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getAccessRights","documentType",t),Ze("getAccessRights","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/rights".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},getApplicationById:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ze("getApplicationById","documentId",t);const r="/document/{documentId}".replace("{documentId}",encodeURIComponent(String(t))),o=new URL(r,Xe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await Qe(s,e),tt(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:rt(o),options:a}},getApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getApplicationByNumber","documentType",t),Ze("getApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},getApplicationByNumberOld:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getApplicationByNumberOld","ehrCode",t),Ze("getApplicationByNumberOld","applicationNumber",n);const o="/document/old/{ehrCode}/{applicationNumber}".replace("{ehrCode}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},getApplicationByNumberWithVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("getApplicationByNumberWithVersion","documentType",t),Ze("getApplicationByNumberWithVersion","applicationNumber",n),Ze("getApplicationByNumberWithVersion","version",r);const i="/document/{documentType}/{applicationNumber}/{version}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{version}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},getApplicationStateFee:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("getApplicationStateFee","documentType",t),Ze("getApplicationStateFee","applicationNumber",n),Ze("getApplicationStateFee","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/stateFee".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},getApplicationStateFeeOfVersion:async function(t,n,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Ze("getApplicationStateFeeOfVersion","documentType",t),Ze("getApplicationStateFeeOfVersion","applicationNumber",n),Ze("getApplicationStateFeeOfVersion","version",r),Ze("getApplicationStateFeeOfVersion","applicationDto",o);const a="/document/{documentType}/{applicationNumber}/{version}/stateFee".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{version}",encodeURIComponent(String(r))),s=new URL(a,Xe);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...i},u={};await Qe(u,e),u["Content-Type"]="application/json",tt(s,{});let d=l&&l.headers?l.headers:{};return c.headers={...u,...d,...i.headers},c.data=nt(o,c,e),{url:rt(s),options:c}},getDocumentFileRels:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ze("getDocumentFileRels","docNr",t);const r=new URL("/document/fileRels",Xe);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={},s={};await Qe(a,e),void 0!==t&&(s.docNr=t),tt(r,s);let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},{url:rt(r),options:i}},getDotysBasedOnUserRights:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/document/starting_rights",Xe);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.ehrCode=t),tt(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:rt(r),options:i}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",Xe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:rt(n),options:o}},getLastStateHistory:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getLastStateHistory","documentType",t),Ze("getLastStateHistory","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/state-history/last".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},initializeAds:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("initializeAds","documentType",t),Ze("initializeAds","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/initAds".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},mergeInstitutions:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ze("mergeInstitutions","mergeInstitutionsDTO",t);const r=new URL("/document/merge",Xe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};tt(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=nt(t,i,e),{url:rt(r),options:i}},reSubmit:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("reSubmit","documentType",t),Ze("reSubmit","applicationNumber",n),Ze("reSubmit","proceedingNumber",r);const i="/document/{documentType}/{applicationNumber}/resubmit/{proceedingNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{proceedingNumber}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},recalculatestate:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("recalculatestate","documentType",t),Ze("recalculatestate","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/recalculatedetailstate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},revertCreateNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("revertCreateNewVersion","documentType",t),Ze("revertCreateNewVersion","applicationNumber",n),Ze("revertCreateNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/revert".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},saveAndValidate:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("saveAndValidate","documentType",t),Ze("saveAndValidate","applicationNumber",n),Ze("saveAndValidate","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/saveAndValidate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},saveApplicationByNumber:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("saveApplicationByNumber","documentType",t),Ze("saveApplicationByNumber","applicationNumber",n),Ze("saveApplicationByNumber","applicationDto",r);const i="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},setWaterExtractionPointsTestDates:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("setWaterExtractionPointsTestDates","documentType",t),Ze("setWaterExtractionPointsTestDates","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/water-extraction-point/set-test-dates".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},setWaterExtractionPointsTestDatesForBuilding:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("setWaterExtractionPointsTestDatesForBuilding","documentType",t),Ze("setWaterExtractionPointsTestDatesForBuilding","applicationNumber",n),Ze("setWaterExtractionPointsTestDatesForBuilding","ehrCode",r);const i="/document/{documentType}/{applicationNumber}/building/{ehrCode}/water-extraction-point/set-test-dates".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{ehrCode}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},submitStraightToRegistry:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("submitStraightToRegistry","documentType",t),Ze("submitStraightToRegistry","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToRegistry".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},submitToProcessing:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("submitToProcessing","documentType",t),Ze("submitToProcessing","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToProcessing".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},submitToSigning:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("submitToSigning","documentType",t),Ze("submitToSigning","applicationNumber",n),Ze("submitToSigning","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/submitToSigning".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},submitToSupervisorProcessing:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("submitToSupervisorProcessing","documentType",t),Ze("submitToSupervisorProcessing","applicationNumber",n),Ze("submitToSupervisorProcessing","supervisorId",r);const i="/document/{documentType}/{applicationNumber}/submitToSupervisor/{supervisorId}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{supervisorId}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},validateSavedDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("validateSavedDocument","documentType",t),Ze("validateSavedDocument","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/completeApplicationChecks".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}}}}(e);return{async addAuthz(n,r,o){const i=await t.addAuthz(n,r,o);return ot(i,Z.default,Ge,e)},async apiVersion(n){const r=await t.apiVersion(n);return ot(r,Z.default,Ge,e)},async autoUpdateOwnershipType(n){const r=await t.autoUpdateOwnershipType(n);return ot(r,Z.default,Ge,e)},async createDoDokuDokuRel(n,r,o){const i=await t.createDoDokuDokuRel(n,r,o);return ot(i,Z.default,Ge,e)},async createDocument(n,r,o){const i=await t.createDocument(n,r,o);return ot(i,Z.default,Ge,e)},async createNewVersion(n,r,o,i){const a=await t.createNewVersion(n,r,o,i);return ot(a,Z.default,Ge,e)},async deleteApplicationByNumber(n,r,o){const i=await t.deleteApplicationByNumber(n,r,o);return ot(i,Z.default,Ge,e)},async endProceedingCircleDocuments(n,r,o,i){const a=await t.endProceedingCircleDocuments(n,r,o,i);return ot(a,Z.default,Ge,e)},async getAccessRights(n,r,o){const i=await t.getAccessRights(n,r,o);return ot(i,Z.default,Ge,e)},async getApplicationById(n,r){const o=await t.getApplicationById(n,r);return ot(o,Z.default,Ge,e)},async getApplicationByNumber(n,r,o){const i=await t.getApplicationByNumber(n,r,o);return ot(i,Z.default,Ge,e)},async getApplicationByNumberOld(n,r,o){const i=await t.getApplicationByNumberOld(n,r,o);return ot(i,Z.default,Ge,e)},async getApplicationByNumberWithVersion(n,r,o,i){const a=await t.getApplicationByNumberWithVersion(n,r,o,i);return ot(a,Z.default,Ge,e)},async getApplicationStateFee(n,r,o,i){const a=await t.getApplicationStateFee(n,r,o,i);return ot(a,Z.default,Ge,e)},async getApplicationStateFeeOfVersion(n,r,o,i,a){const s=await t.getApplicationStateFeeOfVersion(n,r,o,i,a);return ot(s,Z.default,Ge,e)},async getDocumentFileRels(n,r){const o=await t.getDocumentFileRels(n,r);return ot(o,Z.default,Ge,e)},async getDotysBasedOnUserRights(n,r){const o=await t.getDotysBasedOnUserRights(n,r);return ot(o,Z.default,Ge,e)},async getHealth(n){const r=await t.getHealth(n);return ot(r,Z.default,Ge,e)},async getLastStateHistory(n,r,o){const i=await t.getLastStateHistory(n,r,o);return ot(i,Z.default,Ge,e)},async initializeAds(n,r,o){const i=await t.initializeAds(n,r,o);return ot(i,Z.default,Ge,e)},async mergeInstitutions(n,r){const o=await t.mergeInstitutions(n,r);return ot(o,Z.default,Ge,e)},async reSubmit(n,r,o,i){const a=await t.reSubmit(n,r,o,i);return ot(a,Z.default,Ge,e)},async recalculatestate(n,r,o){const i=await t.recalculatestate(n,r,o);return ot(i,Z.default,Ge,e)},async revertCreateNewVersion(n,r,o,i){const a=await t.revertCreateNewVersion(n,r,o,i);return ot(a,Z.default,Ge,e)},async saveAndValidate(n,r,o,i){const a=await t.saveAndValidate(n,r,o,i);return ot(a,Z.default,Ge,e)},async saveApplicationByNumber(n,r,o,i){const a=await t.saveApplicationByNumber(n,r,o,i);return ot(a,Z.default,Ge,e)},async setWaterExtractionPointsTestDates(n,r,o){const i=await t.setWaterExtractionPointsTestDates(n,r,o);return ot(i,Z.default,Ge,e)},async setWaterExtractionPointsTestDatesForBuilding(n,r,o,i){const a=await t.setWaterExtractionPointsTestDatesForBuilding(n,r,o,i);return ot(a,Z.default,Ge,e)},async submitStraightToRegistry(n,r,o){const i=await t.submitStraightToRegistry(n,r,o);return ot(i,Z.default,Ge,e)},async submitToProcessing(n,r,o){const i=await t.submitToProcessing(n,r,o);return ot(i,Z.default,Ge,e)},async submitToSigning(n,r,o,i){const a=await t.submitToSigning(n,r,o,i);return ot(a,Z.default,Ge,e)},async submitToSupervisorProcessing(n,r,o,i){const a=await t.submitToSupervisorProcessing(n,r,o,i);return ot(a,Z.default,Ge,e)},async validateSavedDocument(n,r,o){const i=await t.validateSavedDocument(n,r,o);return ot(i,Z.default,Ge,e)}}};class at extends qe{addAuthz(e,t,n){return it(this.configuration).addAuthz(e,t,n).then((e=>e(this.axios,this.basePath)))}apiVersion(e){return it(this.configuration).apiVersion(e).then((e=>e(this.axios,this.basePath)))}autoUpdateOwnershipType(e){return it(this.configuration).autoUpdateOwnershipType(e).then((e=>e(this.axios,this.basePath)))}createDoDokuDokuRel(e,t,n){return it(this.configuration).createDoDokuDokuRel(e,t,n).then((e=>e(this.axios,this.basePath)))}createDocument(e,t,n){return it(this.configuration).createDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}createNewVersion(e,t,n,r){return it(this.configuration).createNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteApplicationByNumber(e,t,n){return it(this.configuration).deleteApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}endProceedingCircleDocuments(e,t,n,r){return it(this.configuration).endProceedingCircleDocuments(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getAccessRights(e,t,n){return it(this.configuration).getAccessRights(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationById(e,t){return it(this.configuration).getApplicationById(e,t).then((e=>e(this.axios,this.basePath)))}getApplicationByNumber(e,t,n){return it(this.configuration).getApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberOld(e,t,n){return it(this.configuration).getApplicationByNumberOld(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberWithVersion(e,t,n,r){return it(this.configuration).getApplicationByNumberWithVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFee(e,t,n,r){return it(this.configuration).getApplicationStateFee(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFeeOfVersion(e,t,n,r,o){return it(this.configuration).getApplicationStateFeeOfVersion(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}getDocumentFileRels(e,t){return it(this.configuration).getDocumentFileRels(e,t).then((e=>e(this.axios,this.basePath)))}getDotysBasedOnUserRights(e,t){return it(this.configuration).getDotysBasedOnUserRights(e,t).then((e=>e(this.axios,this.basePath)))}getHealth(e){return it(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getLastStateHistory(e,t,n){return it(this.configuration).getLastStateHistory(e,t,n).then((e=>e(this.axios,this.basePath)))}initializeAds(e,t,n){return it(this.configuration).initializeAds(e,t,n).then((e=>e(this.axios,this.basePath)))}mergeInstitutions(e,t){return it(this.configuration).mergeInstitutions(e,t).then((e=>e(this.axios,this.basePath)))}reSubmit(e,t,n,r){return it(this.configuration).reSubmit(e,t,n,r).then((e=>e(this.axios,this.basePath)))}recalculatestate(e,t,n){return it(this.configuration).recalculatestate(e,t,n).then((e=>e(this.axios,this.basePath)))}revertCreateNewVersion(e,t,n,r){return it(this.configuration).revertCreateNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveAndValidate(e,t,n,r){return it(this.configuration).saveAndValidate(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveApplicationByNumber(e,t,n,r){return it(this.configuration).saveApplicationByNumber(e,t,n,r).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDates(e,t,n){return it(this.configuration).setWaterExtractionPointsTestDates(e,t,n).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDatesForBuilding(e,t,n,r){return it(this.configuration).setWaterExtractionPointsTestDatesForBuilding(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitStraightToRegistry(e,t,n){return it(this.configuration).submitStraightToRegistry(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToProcessing(e,t,n){return it(this.configuration).submitToProcessing(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToSigning(e,t,n,r){return it(this.configuration).submitToSigning(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitToSupervisorProcessing(e,t,n,r){return it(this.configuration).submitToSupervisorProcessing(e,t,n,r).then((e=>e(this.axios,this.basePath)))}validateSavedDocument(e,t,n){return it(this.configuration).validateSavedDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}}class st{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const lt="https://devkluster.ehr.ee/api/file-upload-api/v1".replace(/\/+$/,"");class ct{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class ut extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const dt="https://example.com",pt=function(e,t,n){if(null==n)throw new ut(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},ft=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}},mt=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const e of r)for(const n in e)if(Array.isArray(e[n])){t.delete(n);for(const r of e[n])t.append(n,r)}else t.set(n,e[n]);e.search=t.toString()},ht=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},gt=function(e){return e.pathname+e.search+e.hash},vt=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||i)+e.url};return o.request(a)}},bt=function(e){const t=function(e){return{cloneFilesAndCreateRels:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};pt("cloneFilesAndCreateRels","fileIds",t);const i=new URL("/fileClone",dt);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...o},l={},c={};await ft(l,e),t&&(c.fileIds=t),void 0!==n&&(c.docNr=n),void 0!==r&&(c.relType=r),mt(i,c);let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...o.headers},{url:gt(i),options:s}},deleteFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt("deleteFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,dt);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n},s={};await ft(s,e),mt(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:gt(o),options:a}},downloadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt("downloadFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,dt);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await ft(s,e),mt(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:gt(o),options:a}},updateFile:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pt("updateFile","fileId",t);const o="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),i=new URL(o,dt);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await ft(l,e),l["Content-Type"]="application/json",mt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ht(n,s,e),{url:gt(i),options:s}},updateFileInfo:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt("updateFileInfo","doFail",t);const r=new URL("/file/info",dt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await ft(a,e),a["Content-Type"]="application/json",mt(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ht(t,i,e),{url:gt(r),options:i}},uploadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/file",dt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={},s=new(e&&e.formDataCtor||FormData);await ft(a,e),void 0!==t&&s.append("file",t),a["Content-Type"]="multipart/form-data",mt(r,{});let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},i.data=s,{url:gt(r),options:i}},uploadFileWithFileInfo:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=new URL("/fileWithInfo",dt);let i;e&&(i=e.baseOptions);const a={method:"POST",...i,...r},s={},l=new(e&&e.formDataCtor||FormData);await ft(s,e),void 0!==t&&l.append("file",t),void 0!==n&&l.append("fileInfo",new Blob([JSON.stringify(n)],{type:"application/json"})),s["Content-Type"]="multipart/form-data",mt(o,{});let c=i&&i.headers?i.headers:{};return a.headers={...s,...c,...r.headers},a.data=l,{url:gt(o),options:a}},uploadFileWithFileInfoAndDocRel:async function(t,n,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const a=new URL("/fileWithInfoAndDocRel",dt);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...i},c={},u=new(e&&e.formDataCtor||FormData);await ft(c,e),void 0!==t&&u.append("file",t),void 0!==n&&u.append("fileInfo",new Blob([JSON.stringify(n)],{type:"application/json"})),void 0!==r&&u.append("docNr",r),void 0!==o&&u.append("relType",o),c["Content-Type"]="multipart/form-data",mt(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...i.headers},l.data=u,{url:gt(a),options:l}}}}(e);return{async cloneFilesAndCreateRels(n,r,o,i){const a=await t.cloneFilesAndCreateRels(n,r,o,i);return vt(a,Z.default,lt,e)},async deleteFile(n,r){const o=await t.deleteFile(n,r);return vt(o,Z.default,lt,e)},async downloadFile(n,r){const o=await t.downloadFile(n,r);return vt(o,Z.default,lt,e)},async updateFile(n,r,o){const i=await t.updateFile(n,r,o);return vt(i,Z.default,lt,e)},async updateFileInfo(n,r){const o=await t.updateFileInfo(n,r);return vt(o,Z.default,lt,e)},async uploadFile(n,r){const o=await t.uploadFile(n,r);return vt(o,Z.default,lt,e)},async uploadFileWithFileInfo(n,r,o){const i=await t.uploadFileWithFileInfo(n,r,o);return vt(i,Z.default,lt,e)},async uploadFileWithFileInfoAndDocRel(n,r,o,i,a){const s=await t.uploadFileWithFileInfoAndDocRel(n,r,o,i,a);return vt(s,Z.default,lt,e)}}};class yt extends ct{cloneFilesAndCreateRels(e,t,n,r){return bt(this.configuration).cloneFilesAndCreateRels(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteFile(e,t){return bt(this.configuration).deleteFile(e,t).then((e=>e(this.axios,this.basePath)))}downloadFile(e,t){return bt(this.configuration).downloadFile(e,t).then((e=>e(this.axios,this.basePath)))}updateFile(e,t,n){return bt(this.configuration).updateFile(e,t,n).then((e=>e(this.axios,this.basePath)))}updateFileInfo(e,t){return bt(this.configuration).updateFileInfo(e,t).then((e=>e(this.axios,this.basePath)))}uploadFile(e,t){return bt(this.configuration).uploadFile(e,t).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfo(e,t,n){return bt(this.configuration).uploadFileWithFileInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfoAndDocRel(e,t,n,r,o){return bt(this.configuration).uploadFileWithFileInfoAndDocRel(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}}class xt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const wt="https://devkluster.ehr.ee/api/yld-esi/v1".replace(/\/+$/,"");class St{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class _t extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Et="https://example.com",kt=function(e,t,n){if(null==n)throw new _t(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>Ct(e,t,n))):Object.keys(t).forEach((r=>Ct(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const Tt=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Ct(t,r),e.search=t.toString()},It=function(e){return e.pathname+e.search+e.hash},Mt=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||o.defaults.baseURL||i)+e.url};return o.request(a)}};const Dt=function(e){return{esileht:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};kt("esileht","id",t),kt("esileht","language",n);const o="/public/page/{id}/{language}".replace("{id}",encodeURIComponent(String(t))).replace("{language}",encodeURIComponent(String(n))),i=new URL(o,Et);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};Tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:It(i),options:s}},lehed:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages",Et);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};Tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:It(n),options:o}},lehedId:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages/dotyid",Et);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};Tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:It(n),options:o}},leht:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kt("leht","id",t);const r="/api/pages/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,Et);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};Tt(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:It(o),options:a}},lehtdSave:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kt("lehtdSave","esileht",t);const r=new URL("/api/pages",Et);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};a["Content-Type"]="application/json",Tt(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""}(t,i,e),{url:It(r),options:i}}}},Ot=function(e){const t=Dt(e);return{async esileht(n,r,o){const i=await t.esileht(n,r,o);return Mt(i,Z.default,wt,e)},async lehed(n){const r=await t.lehed(n);return Mt(r,Z.default,wt,e)},async lehedId(n){const r=await t.lehedId(n);return Mt(r,Z.default,wt,e)},async leht(n,r){const o=await t.leht(n,r);return Mt(o,Z.default,wt,e)},async lehtdSave(n,r){const o=await t.lehtdSave(n,r);return Mt(o,Z.default,wt,e)}}};class jt extends St{esileht(e,t,n){return Ot(this.configuration).esileht(e,t,n).then((e=>e(this.axios,this.basePath)))}lehed(e){return Ot(this.configuration).lehed(e).then((e=>e(this.axios,this.basePath)))}lehedId(e){return Ot(this.configuration).lehedId(e).then((e=>e(this.axios,this.basePath)))}leht(e,t){return Ot(this.configuration).leht(e,t).then((e=>e(this.axios,this.basePath)))}lehtdSave(e,t){return Ot(this.configuration).lehtdSave(e,t).then((e=>e(this.axios,this.basePath)))}}class At{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Rt={myViewsApiEndpoint:window.REACT_APP_MY_VIEWS_API_PATH,classifierApiEndpoint:window.REACT_APP_CLASSIFIER_SERVICE_ENDPOINT,userApiEndpoint:window.REACT_APP_USER_SERVICE_ENDPOINT,documentApiEndpoint:window.REACT_APP_DOCUMENT_SERVICE_ENDPOINT,fileUploadApiEndpoint:window.REACT_APP_FILE_UPLOAD_API_ENDPOINT,frontPageApiEndpoint:window.REACT_APP_YLD_API},Pt={proceedingApiService:new Ye(new We({basePath:Rt.myViewsApiEndpoint})),classifierApiService:new le(new ce({basePath:Rt.classifierApiEndpoint})),personApiService:new _e(new Ie({basePath:Rt.userApiEndpoint})),userApiService:new Te(new Ie({basePath:Rt.userApiEndpoint})),myDocumentBaseApiService:new Be(new We({basePath:Rt.myViewsApiEndpoint})),documentApiService:new at(new st({basePath:Rt.documentApiEndpoint})),fileApiService:new yt(new xt({basePath:Rt.fileUploadApiEndpoint})),frontPageApi:new jt(new At({basePath:Rt.frontPageApiEndpoint})),institutionKovEndpointApi:new we(new Ie({basePath:Rt.userApiEndpoint}))};let Nt=function(e){return e.DO_DOKUSEIS_ESITATUD="DO_DOKUSEIS_ESITATUD",e.DO_DOKUSEIS_KEHTETU="DO_DOKUSEIS_KEHTETU",e.DO_DOKUSEIS_KOOSTAMISEL="DO_DOKUSEIS_KOOSTAMISEL",e.DO_DOKUSEIS_EELNOU_AKTIIVNE="DO_DOKUSEIS_EELNOU_AKTIIVNE",e.DO_DOKUSEIS_ALLKIRJASTAMISEL="DO_DOKUSEIS_ALLKIRJASTAMISEL",e.DO_DOKUSEIS_MENETLUSES="DO_DOKUSEIS_MENETLUSES",e.DO_DOKUSEIS_MUUTMISEL="DO_DOKUSEIS_MUUTMISEL",e.DO_DOKUSEIS_TAIENDAMISEL="DO_DOKUSEIS_TAIENDAMISEL",e.DO_DOKUSEIS_TYHISTATUD="DO_DOKUSEIS_TYHISTATUD",e.DO_DOKUSEIS_VANA_VERSIOON="DO_DOKUSEIS_VANA_VERSIOON",e.DO_DOKUSEIS_LOOBUTUD="DO_DOKUSEIS_LOOBUTUD",e.DO_DOKUSEIS_ALLKIRJASTATUD="DO_DOKUSEIS_ALLKIRJASTATUD",e.DO_DOKUSEIS_MENETLETUD="DO_DOKUSEIS_MENETLETUD",e.DO_DOKUSEIS_LUBATUD="DO_DOKUSEIS_LUBATUD",e.DO_DOKUSEIS_LUB_TEAV="DO_DOKUSEIS_LUB_TEAV",e.DO_DOKUSEIS_KEELDUTUD="DO_DOKUSEIS_KEELDUTUD",e.DO_DOKUSEIS_TEAVITATUD="DO_DOKUSEIS_TEAVITATUD",e.DO_DOKUSEIS_REG_KANTUD="DO_DOKUSEIS_REG_KANTUD",e.DO_DOKUSEIS_ANTUD="DO_DOKUSEIS_ANTUD",e.DO_DOKUSEIS_KEHTIV="DO_DOKUSEIS_KEHTIV",e.DO_DOKUSEIS_TUNNIST_KEHTETUKS="DO_DOKUSEIS_TUNNIST_KEHTETUKS",e.DO_DOKUSEIS_KOOSK_RINGIL="DO_DOKUSEIS_KOOSK_RINGIL",e.DO_DOKUSEIS_EM_KINNITATUD_AKTUAL="DO_DOKUSEIS_EM_KINNITATUD_AKTUAL",e.DO_DOKUSEIS_TAGASTATUD="DO_DOKUSEIS_TAGASTATUD",e}({});const Lt=[Nt.DO_DOKUSEIS_KEHTETU,Nt.DO_DOKUSEIS_TUNNIST_KEHTETUKS,Nt.DO_DOKUSEIS_REG_KANTUD,Nt.DO_DOKUSEIS_TAGASTATUD,Nt.DO_DOKUSEIS_KEELDUTUD,Nt.DO_DOKUSEIS_TYHISTATUD,Nt.DO_DOKUSEIS_LOOBUTUD,Nt.DO_DOKUSEIS_ALLKIRJASTATUD,Nt.DO_DOKUSEIS_MENETLETUD,Nt.DO_DOKUSEIS_LUBATUD,Nt.DO_DOKUSEIS_LUB_TEAV,Nt.DO_DOKUSEIS_TEAVITATUD,Nt.DO_DOKUSEIS_ANTUD,Nt.DO_DOKUSEIS_KEHTIV],Ft=[Nt.DO_DOKUSEIS_ESITATUD,Nt.DO_DOKUSEIS_MENETLUSES],Ut=[Nt.DO_DOKUSEIS_ESITATUD,Nt.DO_DOKUSEIS_KOOSTAMISEL,Nt.DO_DOKUSEIS_EELNOU_AKTIIVNE,Nt.DO_DOKUSEIS_ALLKIRJASTAMISEL,Nt.DO_DOKUSEIS_MENETLUSES,Nt.DO_DOKUSEIS_TAIENDAMISEL,Nt.DO_DOKUSEIS_MUUTMISEL],Bt="SIGNING_DOCUMENTS",zt="WORKING_DOCUMENTS",Vt="FINISHED_DOCUMENTS",Kt="INCOMING_DOCUMENTS",$t="MY_APPROVALS",Ht="MY_OPINIONS",Yt="MY_INVOLVEMENTS",Wt="MY_OPERATIONS",Gt="OPERATIONS_TO_COMMENT",qt="OPERATION_INVITATIONS",Jt="PROCEEDINGS_TO_COMMENT",Xt="BUILDINGS_SEARCH";let Zt=function(e){return e.KAIMASOLEV="MENSEIS_TEHN_KAIMASOLEV",e.AKT_ALGATATUD="MENSEIS_TEHN_AKT_KOOSTATUD",e.AKT_KOOSTAMINE="MENSEIS_TEHN_AKT_KOOSTAMINE",e.TAOT_MUUTMINE="MENSEIS_TEHN_TAOT_MUUTMINE",e.LOPETATUD="MENSEIS_TEHN_LOPETATUD",e.MENSEIS_KAIMASOLEV="MENSEIS_KAIMASOLEV",e.MENSEIS_LOPETATUD="MENSEIS_LOPETATUD",e.MENSEIS_TAIENDAMISEL="MENSEIS_TAIENDAMISEL",e.MENSEIS_ALGATATUD="MENSEIS_ALGATATUD",e.MENSEIS_MUUTMISEL="MENSEIS_MUUTMISEL",e.MENSEIS_PEATATUD="MENSEIS_PEATATUD",e.MENSEIS_ARHIIVIS="MENSEIS_ARHIIVIS",e}({}),Qt=function(e){return e.Default="default",e.Info="info",e.Success="success",e.Warning="warning",e.Danger="danger",e}({}),en=function(e){return e.Danger="danger",e.Default="neutral",e.Info="brand",e.Success="success",e.Warning="warning",e}({});const tn="BUILDING",nn="PROCEEDING",rn="DOCUMENT";let on=function(e){return e.KOV="KOV",e.MKM="MKM",e.A="A",e.N="N",e.KT="KT",e.JUR="JUR",e.AMAS="AMAS",e.TJA="TJA",e}({});let an=function(e){return e.MENTOIMLIIK_AUTO_REG="MENTOIMLIIK_AUTO_REG",e.MENTOIMLIIK_KAASAMINE="MENTOIMLIIK_KAASAMINE",e.MENTOIMLIIK_MASSKAASAMINE="MENTOIMLIIK_MASSKAASAMINE",e.MENTOIMLIIK_YKSIKKAASAMINE="MENTOIMLIIK_YKSIKKAASAMINE",e.MENTOIMLIIK_ARVAMUS="MENTOIMLIIK_ARVAMUS",e.MENTOIMLIIK_VALINE_KOOSK="MENTOIMLIIK_VALINE_KOOSK",e.MENTOIMLIIK_SISENE_KOOSK="MENTOIMLIIK_SISENE_KOOSK",e.MENTOIMLIIK_KOOSK="MENTOIMLIIK_KOOSK",e.MENTOIMLIIK_MARKUS_TAIEND="MENTOIMLIIK_MARKUS_TAIEND",e.MENTOIMLIIK_MEN_MARKUS="MENTOIMLIIK_MEN_MARKUS",e.MENTOIMLIIK_EHIT_KK_RING="MENTOIMLIIK_EHIT_KK_RING",e.MENTOIMLIIK_ADS="MENTOIMLIIK_ADS",e.MENTOIMLIIK_ADS_SAADA="MENTOIMLIIK_ADS_SAADA",e.MENTOIMLIIK_ADS_ESIT="MENTOIMLIIK_ADS_ESIT",e.MENTOIMLIIK_AVALIK="MENTOIMLIIK_AVALIK",e.MENTOIMLIIK_AVALIK_TAGASISIDE="MENTOIMLIIK_AVALIK_TAGASISIDE",e.MENTOIMLIIK_RAHV_KAASAMINE="MENTOIMLIIK_RAHV_KAASAMINE",e.MENTOIMLIIK_KAAS_TAGASISIDE="MENTOIMLIIK_KAAS_TAGASISIDE",e.MENTOIMLIIK_ALLKIRJASTAMINE="MENTOIMLIIK_ALLKIRJASTAMINE",e.MENTOIMLIIK_KMH_PR="MENTOIMLIIK_KMH_PR",e.MENTOIMLIIK_KMH_AR="MENTOIMLIIK_KMH_AR",e}({}),sn=function(e){return e.Proceeding="PROCEEDING",e.Document="DOCUMENT",e.Operation="OPERATION",e}({}),ln=function(e){return e.PlanningsProceedings="PlanningsProceedings",e.PlanningsInstitution="PlanningsInstitution",e.PlanningsOngoing="PlanningsOngoing",e.PlanningsCompleted="PlanningsCompleted",e}({});const cn="12975",un="12976",dn="11274",pn="11275",fn="12977",mn="12978",hn="11261",gn=["11272","12972",cn,"12974",mn,pn],vn=["11273","12973",un,"12971",fn,dn],bn=[cn,un],yn={[un]:fn,[cn]:mn},xn={[un]:dn,[cn]:pn},wn=[...["12510","12511","12512","12513","12514","14102","14103","14104","14105"],...[hn,"14101"]],Sn=(0,f.createAsyncThunk)("myPlannings/getOngoingDocuments",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{userId:r,businessId:o}=n.activeRole||{};return null!==(t=(await Pt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:wn,states:Ut})).data)&&void 0!==t?t:[]})),_n=(0,f.createAsyncThunk)("myPlannings/getPlanningProceedings",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{userId:r,businessId:o}=n.activeRole||{},i=await Pt.proceedingApiService.findProceedings({userId:r,personId:o,dotys:wn,states:Ut});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),En=(0,f.createAsyncThunk)("myPlannings/getIncomingDocuments",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{userId:r,businessId:o}=n.activeRole||{},i=await Pt.myDocumentBaseApiService.findIncomingDocuments({userId:r,personId:o,dotys:wn,states:Ft});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),kn=(0,f.createAsyncThunk)("myPlannings/findFinishedDocuments",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{userId:r,businessId:o}=n.activeRole||{},i=await Pt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:wn,states:Lt});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),Cn=(0,f.createSlice)({name:"myPlannings",initialState:{planningProceedings:[],planningProceedingsLoading:!1,planningProceedingsError:!1,incomingDocuments:[],incomingDocumentsLoading:!1,incomingDocumentsError:!1,ongoingDocuments:[],ongoingDocumentsLoading:!1,ongoingDocumentsError:!1,signingDocuments:[],signingDocumentsLoading:!1,signingDocumentsError:!1,finishedDocuments:[],finishedDocumentsLoading:!1,finishedDocumentsError:!1,proceedingCommentOperations:[],proceedingCommentOperationsLoading:!1,proceedingCommentOperationsrror:!1},reducers:{},extraReducers:e=>{e.addCase(_n.pending,(e=>{e.planningProceedingsLoading=!0})),e.addCase(_n.fulfilled,((e,t)=>{var n;e.planningProceedingsLoading=!1,e.planningProceedings=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(_n.rejected,(e=>{e.planningProceedingsLoading=!1,e.planningProceedingsError=!0})),e.addCase(En.pending,(e=>{e.incomingDocumentsLoading=!0})),e.addCase(En.fulfilled,((e,t)=>{var n;e.incomingDocumentsLoading=!1,e.incomingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(En.rejected,(e=>{e.incomingDocumentsLoading=!1,e.incomingDocumentsError=!0})),e.addCase(Sn.pending,(e=>{e.ongoingDocumentsLoading=!0})),e.addCase(Sn.fulfilled,((e,t)=>{var n;e.ongoingDocumentsLoading=!1,e.ongoingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(Sn.rejected,(e=>{e.ongoingDocumentsLoading=!1,e.ongoingDocumentsError=!0})),e.addCase(kn.pending,(e=>{e.finishedDocumentsLoading=!0})),e.addCase(kn.fulfilled,((e,t)=>{var n;e.finishedDocumentsLoading=!1,e.finishedDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(kn.rejected,(e=>{e.finishedDocumentsLoading=!1,e.finishedDocumentsError=!0}))}}),Tn=(0,f.createSelector)((e=>({proceedings:e.myViewsPage.myPlannings.planningProceedings,isLoading:e.myViewsPage.myPlannings.planningProceedingsLoading,isError:e.myViewsPage.myPlannings.planningProceedingsError})),(e=>e)),In=(0,f.createSelector)((e=>({documents:e.myViewsPage.myPlannings.incomingDocuments,isLoading:e.myViewsPage.myPlannings.incomingDocumentsLoading,isError:e.myViewsPage.myPlannings.incomingDocumentsError})),(e=>e)),Mn=(0,f.createSelector)((e=>({documents:e.myViewsPage.myPlannings.ongoingDocuments,isLoading:e.myViewsPage.myPlannings.ongoingDocumentsLoading,isError:e.myViewsPage.myPlannings.ongoingDocumentsError})),(e=>e)),{}=((0,f.createSelector)((e=>({documents:e.myViewsPage.myPlannings.finishedDocuments,isLoading:e.myViewsPage.myPlannings.finishedDocumentsLoading,isError:e.myViewsPage.myPlannings.finishedDocumentsError})),(e=>e)),Cn.actions),Dn=Cn.reducer,On=(0,f.combineReducers)({filter:x,myDocuments:I,myProceedings:R,myOperations:U,detailSearch:$,notifications:X,myPlannings:Dn});var jn=p(649);const An=(e=>{var t={};return p.d(t,e),t})({FormattedMessage:()=>r.FormattedMessage,useIntl:()=>r.useIntl});const Rn=(e=>{var t={};return p.d(t,e),t})({Button:()=>o.Button,Checkbox:()=>o.Checkbox,Col:()=>o.Col,CollapseTable:()=>o.CollapseTable,CollapseTableRow:()=>o.CollapseTableRow,ControlledPopover:()=>o.ControlledPopover,DatePicker:()=>o.DatePicker,DateRange:()=>o.DateRange,FieldWrapper:()=>o.FieldWrapper,Form:()=>o.Form,Icon:()=>o.Icon,Info:()=>o.Info,Input:()=>o.Input,Link:()=>o.Link,Loader:()=>o.Loader,MessageBlock:()=>o.MessageBlock,Multiselect:()=>o.Multiselect,NumberRangeExtended:()=>o.NumberRangeExtended,PersonSearchPageExtended:()=>o.PersonSearchPageExtended,RichTextEditor:()=>o.RichTextEditor,Row:()=>o.Row,Section:()=>o.Section,SectionLoader:()=>o.SectionLoader,Select:()=>o.Select,Status:()=>o.Status,TableComponent:()=>o.TableComponent,Text:()=>o.Text,Tooltip:()=>o.Tooltip});var Pn=p(848);const Nn=11272,Ln=e=>{var t;let{userInfo:n}=e;const r=(0,An.useIntl)(),[o,i]=(0,jn.useState)(!0),[a,s]=(0,jn.useState)(""),[l,c]=(0,jn.useState)(""),u=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===on.MKM;(0,jn.useEffect)((()=>{u?d():p()}),[]);const d=async()=>{Pt.frontPageApi.leht(Nn).then((e=>{const t=e.data;t[0].body&&(s(t[0].body),c(t[0].body))}))},p=async()=>{Pt.frontPageApi.esileht(Nn,"ee").then((e=>{const t=e.data;t.body&&(s(t.body),c(t.body))}))};return(0,Pn.jsx)(Rn.Section,{collapsed:!1,title:"my_admin_proceedings.admin_proceedings_reminder",showSettings:!0,children:(0,Pn.jsxs)("div",{className:o?"d-flex justify-content-between":"",children:[(0,Pn.jsx)(Rn.RichTextEditor,{placeholder:o?"":r.formatMessage({id:"placeholder.writing"}),onChange:e=>c(e),value:l,readOnly:o,view:o}),u&&o&&(0,Pn.jsx)(Rn.Link,{onClick:()=>i(!1),type:"edit"}),!o&&(0,Pn.jsxs)("div",{className:"pt-2",children:[(0,Pn.jsx)(Rn.Button,{colourScheme:"light",squared:!0,onClick:()=>{c(a),i(!0)},children:r.formatMessage({id:"button.cancel"})}),(0,Pn.jsx)(Rn.Button,{className:"float-right",colourScheme:"success",squared:!0,onClick:()=>(async()=>{i(!o),s(l),Pt.frontPageApi.lehtdSave({id:Nn,body:l,language:"ee"})})(),children:r.formatMessage({id:"button.save"})})]})]})})},Fn={default:"header-arrow-up-down-icon",des:"header-arrow-down-icon",asc:"header-arrow-up-icon"},Un=e=>(0,Pn.jsx)(Rn.Tooltip,{content:(0,Pn.jsx)(Rn.Text,{raw:e.tooltipText}),placement:"bottom",theme:"dark",children:e.functionCall?(0,Pn.jsx)(Rn.Link,{onClick:t=>{var n;return null===(n=e.functionCall)||void 0===n?void 0:n.call(e,t)},text:e.linkName,href:e.href}):(0,Pn.jsx)(Rn.Link,{text:e.linkName,href:e.href,onClick:t=>{t.preventDefault(),t.stopPropagation();const n=window.open(e.href,"_blank");null==n||n.focus()}})},e.linkName),Bn=e=>{let{proceedings:t,linkGen:n}=e;const r=(0,An.useIntl)(),o=[{id:"document_type",property:"documentType",size:180,getValue:e=>{var t;return null!==(t=e.documentType)&&void 0!==t?t:""}},{id:"proceeding_nr",property:"proceedingNr",size:130,getValue:e=>{return(t=e).proceedingNr?(0,Pn.jsx)(Un,{linkName:t.proceedingNr,tooltipText:"detailsearch.tooltip.open_proceeding",functionCall:e=>{n(!0,e,void 0,`administrativeActProceeding/${t.proceedingNr}`)}}):(0,Pn.jsx)(Pn.Fragment,{children:"-"});var t}},{id:"doty",property:"document",size:160,getValue:e=>e.document&&null!==e.document?(0,Pn.jsx)(Un,{linkName:e.document,tooltipText:"detailsearch.tooltip.open_document",functionCall:t=>{n(!0,t,"DOCUMENT",e.document)}}):""},{id:"ehr_code",property:"ehrCode",size:130,getValue:e=>e.ehrCode&&null!==e.ehrCode?e.ehrCode.map(((t,r)=>(0,Pn.jsxs)(Pn.Fragment,{children:[(0,Pn.jsx)(Un,{linkName:t,tooltipText:"detailsearch.tooltip.open_building",functionCall:e=>{n(!0,e,"BUILDING",t)}}),r!==e.ehrCode.length-1?(0,Pn.jsx)("span",{children:", "}):""]}))):""},{id:"proceeding_state",property:"state",size:130,getValue:e=>e.state}];return(0,Pn.jsx)(Rn.TableComponent,{config:{thead:{headers:o.map((e=>({id:e.id,size:e.size,className:"table-header-field text-align-left",label:r.formatMessage({id:"my_admin_proceedings.table.header."+e.id}),tooltip:{text:r.formatMessage({id:"my_admin_proceedings.table.tooltip."+e.id})},propertyName:e.property,sortable:!0,isShown:!0,type:"input",valueFormatter:t=>e.getValue(t)}))),icons:Fn,expandableRow:!1,isFilter:!1}},data:t,handleEvent:()=>!0})},zn=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[n,r]=(0,jn.useState)(!1),[o,i]=(0,jn.useState)(void 0),[a,s]=(0,jn.useState)([]);(0,jn.useEffect)((()=>{i(void 0),l()}),[e,t]);const l=async()=>{var n;if((null===(n=e.activeRole)||void 0===n?void 0:n.businessType)===on.TJA){r(!0);try{var o;const n=t?{institutionId:e.activeRole.businessId}:{userId:e.userId},r=await Pt.proceedingApiService.findAreaProceedings(n);s(null!==(o=null==r?void 0:r.data)&&void 0!==o?o:[])}catch(e){i("my_admin_proceedings.proceedings_request.error")}finally{r(!1)}}else s([])};return{loading:n,proceedings:a,error:o}},Vn=e=>{let{userInfo:t,linkGen:n}=e;const r=(0,An.useIntl)(),[o,i]=(0,jn.useState)(!1),{loading:a,error:s,proceedings:l}=zn(t,o);return(0,Pn.jsxs)(Rn.Section,{collapsed:!1,title:"my_admin_proceedings.my_proceedings",showSettings:!0,children:[s&&(0,Pn.jsx)(Rn.MessageBlock,{dismissible:!1,theme:"danger",children:r.formatMessage({id:s})}),a&&(0,Pn.jsxs)(Rn.Row,{className:"mb-4 justify-content-center",children:[(0,Pn.jsx)("br",{}),(0,Pn.jsx)(Rn.Loader,{}),(0,Pn.jsx)("br",{})]}),!a&&!(null==l||!l.length)&&!s&&(0,Pn.jsx)(Bn,{proceedings:l,linkGen:n}),(0,Pn.jsx)("div",{className:"d-flex justify-content-start my-2",children:(0,Pn.jsx)(Rn.Checkbox,{name:"checkbox",onChange:e=>i(e),text:r.formatMessage({id:"my_proceedings.view_all_institution_admin_proceedings"}),checked:o})})]})},Kn=e=>{var t;let{userInfo:n,linkGen:r}=e;const o=(0,An.useIntl)(),i=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===on.TJA;return(0,Pn.jsxs)("div",{children:[(0,Pn.jsx)("h2",{children:o.formatMessage({id:"my_admin_proceedings.page_title"})}),i&&(0,Pn.jsx)("div",{className:"d-flex justify-content-end mt-2",children:(0,Pn.jsx)(Rn.Button,{withPlus:!0,type:"submit",onClick:()=>{r(!0,void 0,"","/administrativeActProceeding")},children:o.formatMessage({id:"my_admin_proceedings.new_proceeding"})})}),(0,Pn.jsx)(Ln,{userInfo:n}),i&&(0,Pn.jsx)(Vn,{userInfo:n,linkGen:r})]})};const $n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Hn="object"==typeof global&&global&&global.Object===Object&&global;var Yn="object"==typeof self&&self&&self.Object===Object&&self;const Wn=Hn||Yn||Function("return this")();const Gn=function(){return Wn.Date.now()};var qn=/\s/;const Jn=function(e){for(var t=e.length;t--&&qn.test(e.charAt(t)););return t};var Xn=/^\s+/;const Zn=function(e){return e?e.slice(0,Jn(e)+1).replace(Xn,""):e};const Qn=Wn.Symbol;var er=Object.prototype,tr=er.hasOwnProperty,nr=er.toString,rr=Qn?Qn.toStringTag:void 0;const or=function(e){var t=tr.call(e,rr),n=e[rr];try{e[rr]=void 0;var r=!0}catch(e){}var o=nr.call(e);return r&&(t?e[rr]=n:delete e[rr]),o};var ir=Object.prototype.toString;const ar=function(e){return ir.call(e)};var sr=Qn?Qn.toStringTag:void 0;const lr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sr&&sr in Object(e)?or(e):ar(e)};const cr=function(e){return null!=e&&"object"==typeof e};const ur=function(e){return"symbol"==typeof e||cr(e)&&"[object Symbol]"==lr(e)};var dr=/^[-+]0x[0-9a-f]+$/i,pr=/^0b[01]+$/i,fr=/^0o[0-7]+$/i,mr=parseInt;const hr=function(e){if("number"==typeof e)return e;if(ur(e))return NaN;if($n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zn(e);var n=pr.test(e);return n||fr.test(e)?mr(e.slice(2),n?2:8):dr.test(e)?NaN:+e};var gr=Math.max,vr=Math.min;const br=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=Gn();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?vr(n,i-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=Gn(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=hr(t)||0,$n(n)&&(u=!!n.leading,i=(d="maxWait"in n)?gr(hr(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Gn())},v};const yr=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};const xr=function(){this.__data__=[],this.size=0};const wr=function(e,t){return e===t||e!=e&&t!=t};const Sr=function(e,t){for(var n=e.length;n--;)if(wr(e[n][0],t))return n;return-1};var _r=Array.prototype.splice;const Er=function(e){var t=this.__data__,n=Sr(t,e);return!(n<0)&&(n==t.length-1?t.pop():_r.call(t,n,1),--this.size,!0)};const kr=function(e){var t=this.__data__,n=Sr(t,e);return n<0?void 0:t[n][1]};const Cr=function(e){return Sr(this.__data__,e)>-1};const Tr=function(e,t){var n=this.__data__,r=Sr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ir(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ir.prototype.clear=xr,Ir.prototype.delete=Er,Ir.prototype.get=kr,Ir.prototype.has=Cr,Ir.prototype.set=Tr;const Mr=Ir;const Dr=function(){this.__data__=new Mr,this.size=0};const Or=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const jr=function(e){return this.__data__.get(e)};const Ar=function(e){return this.__data__.has(e)};const Rr=function(e){if(!$n(e))return!1;var t=lr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Pr=Wn["__core-js_shared__"];var Nr,Lr=(Nr=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||""))?"Symbol(src)_1."+Nr:"";const Fr=function(e){return!!Lr&&Lr in e};var Ur=Function.prototype.toString;const Br=function(e){if(null!=e){try{return Ur.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var zr=/^\[object .+?Constructor\]$/,Vr=Function.prototype,Kr=Object.prototype,$r=Vr.toString,Hr=Kr.hasOwnProperty,Yr=RegExp("^"+$r.call(Hr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Wr=function(e){return!(!$n(e)||Fr(e))&&(Rr(e)?Yr:zr).test(Br(e))};const Gr=function(e,t){return null==e?void 0:e[t]};const qr=function(e,t){var n=Gr(e,t);return Wr(n)?n:void 0};const Jr=qr(Wn,"Map");const Xr=qr(Object,"create");const Zr=function(){this.__data__=Xr?Xr(null):{},this.size=0};const Qr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var eo=Object.prototype.hasOwnProperty;const to=function(e){var t=this.__data__;if(Xr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return eo.call(t,e)?t[e]:void 0};var no=Object.prototype.hasOwnProperty;const ro=function(e){var t=this.__data__;return Xr?void 0!==t[e]:no.call(t,e)};const oo=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xr&&void 0===t?"__lodash_hash_undefined__":t,this};function io(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}io.prototype.clear=Zr,io.prototype.delete=Qr,io.prototype.get=to,io.prototype.has=ro,io.prototype.set=oo;const ao=io;const so=function(){this.size=0,this.__data__={hash:new ao,map:new(Jr||Mr),string:new ao}};const lo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const co=function(e,t){var n=e.__data__;return lo(t)?n["string"==typeof t?"string":"hash"]:n.map};const uo=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t};const po=function(e){return co(this,e).get(e)};const fo=function(e){return co(this,e).has(e)};const mo=function(e,t){var n=co(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ho(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ho.prototype.clear=so,ho.prototype.delete=uo,ho.prototype.get=po,ho.prototype.has=fo,ho.prototype.set=mo;const go=ho;const vo=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!Jr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new go(r)}return n.set(e,t),this.size=n.size,this};function bo(e){var t=this.__data__=new Mr(e);this.size=t.size}bo.prototype.clear=Dr,bo.prototype.delete=Or,bo.prototype.get=jr,bo.prototype.has=Ar,bo.prototype.set=vo;const yo=bo;const xo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const wo=function(e){return this.__data__.has(e)};function So(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new go;++t<n;)this.add(e[t])}So.prototype.add=So.prototype.push=xo,So.prototype.has=wo;const _o=So;const Eo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const ko=function(e,t){return e.has(t)};const Co=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new _o:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=a?r(h,m,d,t,e,i):r(m,h,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!Eo(t,(function(e,t){if(!ko(f,t)&&(m===e||o(m,e,n,r,i)))return f.push(t)}))){p=!1;break}}else if(m!==h&&!o(m,h,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p};const To=Wn.Uint8Array;const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const Mo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Do=Qn?Qn.prototype:void 0,Oo=Do?Do.valueOf:void 0;const jo=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new To(e),new To(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Io;case"[object Set]":var l=1&r;if(s||(s=Mo),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Co(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(Oo)return Oo.call(e)==Oo.call(t)}return!1};const Ao=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const Ro=Array.isArray;const Po=function(e,t,n){var r=t(e);return Ro(e)?r:Ao(r,n(e))};const No=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};const Lo=function(){return[]};var Fo=Object.prototype.propertyIsEnumerable,Uo=Object.getOwnPropertySymbols;const Bo=Uo?function(e){return null==e?[]:(e=Object(e),No(Uo(e),(function(t){return Fo.call(e,t)})))}:Lo;const zo=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const Vo=function(e){return cr(e)&&"[object Arguments]"==lr(e)};var Ko=Object.prototype,$o=Ko.hasOwnProperty,Ho=Ko.propertyIsEnumerable;const Yo=Vo(function(){return arguments}())?Vo:function(e){return cr(e)&&$o.call(e,"callee")&&!Ho.call(e,"callee")};const Wo=function(){return!1};var Go="object"==typeof exports&&exports&&!exports.nodeType&&exports,qo=Go&&"object"==typeof module&&module&&!module.nodeType&&module,Jo=qo&&qo.exports===Go?Wn.Buffer:void 0;const Xo=(Jo?Jo.isBuffer:void 0)||Wo;var Zo=/^(?:0|[1-9]\d*)$/;const Qo=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Zo.test(e))&&e>-1&&e%1==0&&e<t};const ei=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ti={};ti["[object Float32Array]"]=ti["[object Float64Array]"]=ti["[object Int8Array]"]=ti["[object Int16Array]"]=ti["[object Int32Array]"]=ti["[object Uint8Array]"]=ti["[object Uint8ClampedArray]"]=ti["[object Uint16Array]"]=ti["[object Uint32Array]"]=!0,ti["[object Arguments]"]=ti["[object Array]"]=ti["[object ArrayBuffer]"]=ti["[object Boolean]"]=ti["[object DataView]"]=ti["[object Date]"]=ti["[object Error]"]=ti["[object Function]"]=ti["[object Map]"]=ti["[object Number]"]=ti["[object Object]"]=ti["[object RegExp]"]=ti["[object Set]"]=ti["[object String]"]=ti["[object WeakMap]"]=!1;const ni=function(e){return cr(e)&&ei(e.length)&&!!ti[lr(e)]};const ri=function(e){return function(t){return e(t)}};var oi="object"==typeof exports&&exports&&!exports.nodeType&&exports,ii=oi&&"object"==typeof module&&module&&!module.nodeType&&module,ai=ii&&ii.exports===oi&&Hn.process,si=function(){try{var e=ii&&ii.require&&ii.require("util").types;return e||ai&&ai.binding&&ai.binding("util")}catch(e){}}();var li=si&&si.isTypedArray;const ci=li?ri(li):ni;var ui=Object.prototype.hasOwnProperty;const di=function(e,t){var n=Ro(e),r=!n&&Yo(e),o=!n&&!r&&Xo(e),i=!n&&!r&&!o&&ci(e),a=n||r||o||i,s=a?zo(e.length,String):[],l=s.length;for(var c in e)!t&&!ui.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Qo(c,l))||s.push(c);return s};var pi=Object.prototype;const fi=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pi)};const mi=function(e,t){return function(n){return e(t(n))}};const hi=mi(Object.keys,Object);var gi=Object.prototype.hasOwnProperty;const vi=function(e){if(!fi(e))return hi(e);var t=[];for(var n in Object(e))gi.call(e,n)&&"constructor"!=n&&t.push(n);return t};const bi=function(e){return null!=e&&ei(e.length)&&!Rr(e)};const yi=function(e){return bi(e)?di(e):vi(e)};const xi=function(e){return Po(e,yi,Bo)};var wi=Object.prototype.hasOwnProperty;const Si=function(e,t,n,r,o,i){var a=1&n,s=xi(e),l=s.length;if(l!=xi(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:wi.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var m=a;++c<l;){var h=e[u=s[c]],g=t[u];if(r)var v=a?r(g,h,u,t,e,i):r(h,g,u,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){f=!1;break}m||(m="constructor"==u)}if(f&&!m){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(f=!1)}return i.delete(e),i.delete(t),f};const _i=qr(Wn,"DataView");const Ei=qr(Wn,"Promise");const ki=qr(Wn,"Set");const Ci=qr(Wn,"WeakMap");var Ti="[object Map]",Ii="[object Promise]",Mi="[object Set]",Di="[object WeakMap]",Oi="[object DataView]",ji=Br(_i),Ai=Br(Jr),Ri=Br(Ei),Pi=Br(ki),Ni=Br(Ci),Li=lr;(_i&&Li(new _i(new ArrayBuffer(1)))!=Oi||Jr&&Li(new Jr)!=Ti||Ei&&Li(Ei.resolve())!=Ii||ki&&Li(new ki)!=Mi||Ci&&Li(new Ci)!=Di)&&(Li=function(e){var t=lr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Br(n):"";if(r)switch(r){case ji:return Oi;case Ai:return Ti;case Ri:return Ii;case Pi:return Mi;case Ni:return Di}return t});const Fi=Li;var Ui="[object Arguments]",Bi="[object Array]",zi="[object Object]",Vi=Object.prototype.hasOwnProperty;const Ki=function(e,t,n,r,o,i){var a=Ro(e),s=Ro(t),l=a?Bi:Fi(e),c=s?Bi:Fi(t),u=(l=l==Ui?zi:l)==zi,d=(c=c==Ui?zi:c)==zi,p=l==c;if(p&&Xo(e)){if(!Xo(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new yo),a||ci(e)?Co(e,t,n,r,o,i):jo(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&Vi.call(e,"__wrapped__"),m=d&&Vi.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,g=m?t.value():t;return i||(i=new yo),o(h,g,n,r,i)}}return!!p&&(i||(i=new yo),Si(e,t,n,r,o,i))};const $i=function e(t,n,r,o,i){return t===n||(null==t||null==n||!cr(t)&&!cr(n)?t!=t&&n!=n:Ki(t,n,r,o,e,i))};const Hi=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new yo;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?$i(u,c,3,r,d):p))return!1}}return!0};const Yi=function(e){return e==e&&!$n(e)};const Wi=function(e){for(var t=yi(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Yi(o)]}return t};const Gi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const qi=function(e){var t=Wi(e);return 1==t.length&&t[0][2]?Gi(t[0][0],t[0][1]):function(n){return n===e||Hi(n,e,t)}};var Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xi=/^\w*$/;const Zi=function(e,t){if(Ro(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ur(e))||(Xi.test(e)||!Ji.test(e)||null!=t&&e in Object(t))};function Qi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Qi.Cache||go),n}Qi.Cache=go;const ea=Qi;var ta=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,na=/\\(\\)?/g;const ra=function(e){var t=ea(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ta,(function(e,n,r,o){t.push(r?o.replace(na,"$1"):n||e)})),t}));var oa=Qn?Qn.prototype:void 0,ia=oa?oa.toString:void 0;const aa=function e(t){if("string"==typeof t)return t;if(Ro(t))return yr(t,e)+"";if(ur(t))return ia?ia.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const sa=function(e){return null==e?"":aa(e)};const la=function(e,t){return Ro(e)?e:Zi(e,t)?[e]:ra(sa(e))};const ca=function(e){if("string"==typeof e||ur(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const ua=function(e,t){for(var n=0,r=(t=la(t,e)).length;null!=e&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:void 0};const da=function(e,t,n){var r=null==e?void 0:ua(e,t);return void 0===r?n:r};const pa=function(e,t){return null!=e&&t in Object(e)};const fa=function(e,t,n){for(var r=-1,o=(t=la(t,e)).length,i=!1;++r<o;){var a=ca(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ei(o)&&Qo(a,o)&&(Ro(e)||Yo(e))};const ma=function(e,t){return null!=e&&fa(e,t,pa)};const ha=function(e,t){return Zi(e)&&Yi(t)?Gi(ca(e),t):function(n){var r=da(n,e);return void 0===r&&r===t?ma(n,e):$i(t,r,3)}};const ga=function(e){return e};const va=function(e){return function(t){return null==t?void 0:t[e]}};const ba=function(e){return function(t){return ua(t,e)}};const ya=function(e){return Zi(e)?va(ca(e)):ba(e)};const xa=function(e){return"function"==typeof e?e:null==e?ga:"object"==typeof e?Ro(e)?ha(e[0],e[1]):qi(e):ya(e)};const wa=function(){try{var e=qr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const Sa=function(e,t,n){"__proto__"==t&&wa?wa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var _a=Object.prototype.hasOwnProperty;const Ea=function(e,t,n){var r=e[t];_a.call(e,t)&&wr(r,n)&&(void 0!==n||t in e)||Sa(e,t,n)};const ka=function(e,t,n,r){if(!$n(e))return e;for(var o=-1,i=(t=la(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=ca(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=$n(u)?u:Qo(t[o+1])?[]:{})}Ea(s,l,c),s=s[l]}return e};const Ca=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=ua(e,a);n(s,a)&&ka(i,la(a,e),s)}return i};const Ta=mi(Object.getPrototypeOf,Object);const Ia=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ao(t,Bo(e)),e=Ta(e);return t}:Lo;const Ma=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Da=Object.prototype.hasOwnProperty;const Oa=function(e){if(!$n(e))return Ma(e);var t=fi(e),n=[];for(var r in e)("constructor"!=r||!t&&Da.call(e,r))&&n.push(r);return n};const ja=function(e){return bi(e)?di(e,!0):Oa(e)};const Aa=function(e){return Po(e,ja,Ia)};const Ra=function(e,t){if(null==e)return{};var n=yr(Aa(e),(function(e){return[e]}));return t=xa(t),Ca(e,n,(function(e,n){return t(e,n[0])}))};const Pa=(e=>{var t={};return p.d(t,e),t})({createPortal:()=>i.createPortal,default:()=>i.default,flushSync:()=>i.flushSync});var Na=p(942);const La=(e=>{var t={};return p.d(t,e),t})({default:()=>a.default});var Fa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var za={exports:{}};za.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){e.exports=function(){if(typeof document>"u"||typeof window>"u")return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",r=n,o=Date.now(),i=!1,a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],c=[],u={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,p={x:null,y:null},f={2:"touch",3:"touch",4:"mouse"},m=!1;try{var h=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,h)}catch{}var g=function(){u[T()]="mouse",v()},v=function(){var e=!m||{passive:!0,capture:!0};document.addEventListener("DOMContentLoaded",b,!0),window.PointerEvent?(window.addEventListener("pointerdown",y,!0),window.addEventListener("pointermove",w,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y,!0),window.addEventListener("MSPointerMove",w,!0)):(window.addEventListener("mousedown",y,!0),window.addEventListener("mousemove",w,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",y,e),window.addEventListener("touchend",y,!0))),window.addEventListener(T(),w,e),window.addEventListener("keydown",y,!0),window.addEventListener("keyup",y,!0),window.addEventListener("focusin",S,!0),window.addEventListener("focusout",_,!0)},b=function(){if(i=!("false"===e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch{}x("input"),x("intent")},y=function(e){var t=e.which,o=u[e.type];"pointer"===o&&(o=k(e));var i=!c.length&&-1===l.indexOf(t),s=c.length&&-1!==c.indexOf(t),d="keyboard"===o&&t&&(i||s)||"mouse"===o||"touch"===o;if(C(o)&&(d=!1),d&&n!==o&&(E("input",n=o),x("input")),d&&r!==o){var p=document.activeElement;p&&p.nodeName&&(-1===a.indexOf(p.nodeName.toLowerCase())||"button"===p.nodeName.toLowerCase()&&!O(p,"form"))&&(E("intent",r=o),x("intent"))}},x=function(t){e.setAttribute("data-what"+t,"input"===t?n:r),I(t)},w=function(e){var t=u[e.type];"pointer"===t&&(t=k(e)),D(e),(!d&&!C(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&r!==t&&(E("intent",r=t),x("intent"))},S=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):_()},_=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},E=function(e,t){if(i)try{window.sessionStorage.setItem("what-"+e,t)}catch{}},k=function(e){return"number"==typeof e.pointerType?f[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},C=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-o<200;return o=t,r},T=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},I=function(e){for(var t=0,o=s.length;t<o;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:r)},M=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t},D=function(e){p.x!==e.screenX||p.y!==e.screenY?(d=!1,p.x=e.screenX,p.y=e.screenY):d=!0},O=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&g(),{ask:function(e){return"intent"===e?r:n},element:function(){return t},ignoreKeys:function(e){l=e},specificKeys:function(e){c=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=M(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}]);const Va=Ua(za.exports);function Ka(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var $a="object"==typeof global&&global&&global.Object===Object&&global,Ha="object"==typeof self&&self&&self.Object===Object&&self,Ya=$a||Ha||Function("return this")(),Wa=function(){return Ya.Date.now()},Ga=/\s/;var qa=/^\s+/;function Ja(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&Ga.test(e.charAt(t)););return t}(e)+1).replace(qa,"")}var Xa=Ya.Symbol,Za=Object.prototype,Qa=Za.hasOwnProperty,es=Za.toString,ts=Xa?Xa.toStringTag:void 0;var ns=Object.prototype.toString;var rs=Xa?Xa.toStringTag:void 0;function os(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":rs&&rs in Object(e)?function(e){var t=Qa.call(e,ts),n=e[ts];try{e[ts]=void 0;var r=!0}catch{}var o=es.call(e);return r&&(t?e[ts]=n:delete e[ts]),o}(e):function(e){return ns.call(e)}(e)}function is(e){return null!=e&&"object"==typeof e}function as(e){return"symbol"==typeof e||is(e)&&"[object Symbol]"==os(e)}var ss=/^[-+]0x[0-9a-f]+$/i,ls=/^0b[01]+$/i,cs=/^0o[0-7]+$/i,us=parseInt;function ds(e){if("number"==typeof e)return e;if(as(e))return NaN;if(Ka(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ka(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ja(e);var n=ls.test(e);return n||cs.test(e)?us(e.slice(2),n?2:8):ss.test(e)?NaN:+e}var ps=Math.max,fs=Math.min;function ms(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=Wa();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?fs(n,i-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=Wa(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=ds(t)||0,Ka(n)&&(u=!!n.leading,i=(d="maxWait"in n)?ps(ds(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Wa())},v}const hs=["xs","sm","md","lg","xl","xxl"],gs=()=>{const[e,t]=(0,jn.useState)(vs());return(0,jn.useEffect)((()=>{const e=ms((()=>{t(vs())}),20);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]),e},vs=()=>{let e=null;return typeof window<"u"&&(e=window.matchMedia("(min-width: 1400px)").matches?"xxl":window.matchMedia("(min-width: 1200px)").matches?"xl":window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs"),e},bs=()=>{const e=gs(),t=jn.default.useMemo((()=>e?hs.slice(0,hs.indexOf(e)+1):[]),[e]);return{getCurrentBreakpointProps:jn.default.useCallback(((e,n={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...t.map((t=>Ra("xs"===t?l:e[t],(e=>void 0!==e))))].filter(Boolean);return Object.assign(n,...c)}),[t])}},ys=["xs","sm"],xs=["md"],ws=["lg","xl","xxl"],Ss=e=>{const t=gs(),n=null==e?void 0:e.reduce(((e,t)=>{switch(t){case"desktop":return[...e,...ws];case"tablet":return[...e,...xs];case"mobile":return[...e,...ys];default:return[...e,t]}}),[]);return!!t&&n.includes(t)},_s={"primary-main":"primary-main-ea0565ff","primary-active":"primary-active-d24cbc9e","primary-active-subtle":"primary-active-subtle-c2ab8b5f","primary-highlight":"primary-highlight-212d11b7","primary-highlight-subtle":"primary-highlight-subtle-715c2641","accent-main":"accent-main-f55c9be5","accent-highlight":"accent-highlight-6810179d","bg-default":"bg-default-099a281c","bg-muted":"bg-muted-13732b1c","bg-subtle":"bg-subtle-e7130c61","bg-disabled":"bg-disabled-eed0584e","bg-inverted":"bg-inverted-2bf8047e","bg-inverted-contrast":"bg-inverted-contrast-304e2c10",black:"black-d9cad7d6",white:"white-5992ce1a","positive-main":"positive-main-dfc533f2","positive-active":"positive-active-f4288715","positive-highlight":"positive-highlight-6594b5a8","important-main":"important-main-67d03aad","important-active":"important-active-5ebf547d","important-highlight":"important-highlight-aa19e975","info-main":"info-main-80c1cd50","info-active":"info-active-5f165e38","info-highlight":"info-highlight-578939bc","warning-main":"warning-main-2fae5383","warning-highlight":"warning-highlight-f87e48b3",transparent:"transparent-74d01799"},Es=e=>e?_s[e]:"",ks=e=>{const{getCurrentBreakpointProps:t}=bs(),{children:n,className:r,tabIndex:o,element:i="p",modifiers:a,color:s,...l}=t(e,{tabIndex:e.id?-1:void 0}),c="string"==typeof a?[a]:a,u=Na(r,null==c?void 0:c.map((e=>`text-${e}`)),{[`text-${s}`]:s});return(0,Pn.jsx)(i,{className:u,...l,tabIndex:o,children:n})},Cs=e=>{const{children:t,element:n="h1",...r}=e;return(0,Pn.jsx)(ks,{element:n,...r,children:t})};function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ts.apply(null,arguments)}const Is=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ts}},Symbol.toStringTag,{value:"Module"}));var Ms={exports:{}};var Ds=Object.getOwnPropertySymbols,Os=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable;var As,Rs,Ps,Ns,Ls=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch{return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))Os.call(n,a)&&(o[a]=n[a]);if(Ds){r=Ds(n);for(var s=0;s<r.length;s++)js.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function Fs(){if(Rs)return As;Rs=1;return As="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}Ms.exports=function(){if(Ns)return Ps;Ns=1;var e=Fs();function t(){}function n(){}return n.resetWarningCache=t,Ps=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ps}()();const Us=Ua(Ms.exports);function Bs(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const zs=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Vs="$$material";function Ks(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var $s=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Hs="-ms-",Ys="-moz-",Ws="-webkit-",Gs="comm",qs="rule",Js="decl",Xs="@keyframes",Zs=Math.abs,Qs=String.fromCharCode,el=Object.assign;function tl(e){return e.trim()}function nl(e,t,n){return e.replace(t,n)}function rl(e,t){return e.indexOf(t)}function ol(e,t){return 0|e.charCodeAt(t)}function il(e,t,n){return e.slice(t,n)}function al(e){return e.length}function sl(e){return e.length}function ll(e,t){return t.push(e),e}var cl=1,ul=1,dl=0,pl=0,fl=0,ml="";function hl(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cl,column:ul,length:a,return:""}}function gl(e,t){return el(hl("",null,null,"",null,null,0),e,{length:-e.length},t)}function vl(){return fl=pl<dl?ol(ml,pl++):0,ul++,10===fl&&(ul=1,cl++),fl}function bl(){return ol(ml,pl)}function yl(){return pl}function xl(e,t){return il(ml,e,t)}function wl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Sl(e){return cl=ul=1,dl=al(ml=e),pl=0,[]}function _l(e){return ml="",e}function El(e){return tl(xl(pl-1,Tl(91===e?e+2:40===e?e+1:e)))}function kl(e){for(;(fl=bl())&&fl<33;)vl();return wl(e)>2||wl(fl)>3?"":" "}function Cl(e,t){for(;--t&&vl()&&!(fl<48||fl>102||fl>57&&fl<65||fl>70&&fl<97););return xl(e,yl()+(t<6&&32==bl()&&32==vl()))}function Tl(e){for(;vl();)switch(fl){case e:return pl;case 34:case 39:34!==e&&39!==e&&Tl(fl);break;case 40:41===e&&Tl(e);break;case 92:vl()}return pl}function Il(e,t){for(;vl()&&e+fl!==57&&(e+fl!==84||47!==bl()););return"/*"+xl(t,pl-1)+"*"+Qs(47===e?e:vl())}function Ml(e){for(;!wl(bl());)vl();return xl(e,pl)}function Dl(e){return _l(Ol("",null,null,null,[""],e=Sl(e),0,[0],e))}function Ol(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,w=i,S=r,_=y;g;)switch(m=b,b=vl()){case 40:if(108!=m&&58==ol(_,d-1)){-1!=rl(_+=nl(El(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=El(b);break;case 9:case 10:case 13:case 32:_+=kl(m);break;case 92:_+=Cl(yl()-1,7);continue;case 47:switch(bl()){case 42:case 47:ll(Al(Il(vl(),yl()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=al(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=nl(_,/\f/g,"")),f>0&&al(_)-d&&ll(f>32?Rl(_+";",r,n,d-1):Rl(nl(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(ll(S=jl(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)Ol(_,t,S,S,x,i,d,s,w);else switch(99===p&&110===ol(_,3)?100:p){case 100:case 108:case 109:case 115:Ol(e,S,S,r&&ll(jl(e,S,S,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Ol(_,S,S,S,[""],w,0,s,w)}}c=u=f=0,h=v=1,y=_="",d=a;break;case 58:d=1+al(_),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(fl=pl>0?ol(ml,--pl):0,ul--,10===fl&&(ul=1,cl--),fl))continue;switch(_+=Qs(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(al(_)-1)*v,v=1;break;case 64:45===bl()&&(_+=El(vl())),p=bl(),u=d=al(y=_+=Ml(yl())),b++;break;case 45:45===m&&2==al(_)&&(h=0)}}return i}function jl(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=sl(p),m=0,h=0,g=0;m<r;++m)for(var v=0,b=il(e,d+1,d=Zs(h=a[m])),y=e;v<f;++v)(y=tl(h>0?p[v]+" "+b:nl(b,/&\f/g,p[v])))&&(l[g++]=y);return hl(e,t,n,0===o?qs:s,l,c,u)}function Al(e,t,n){return hl(e,t,n,Gs,Qs(fl),il(e,2,-2),0)}function Rl(e,t,n,r){return hl(e,t,n,Js,il(e,0,r),il(e,r+1,-1),r)}function Pl(e,t){for(var n="",r=sl(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Nl(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Js:return e.return=e.return||e.value;case Gs:return"";case Xs:return e.return=e.value+"{"+Pl(e.children,r)+"}";case qs:e.value=e.props.join(",")}return al(n=Pl(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ll(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Fl=function(e,t,n){for(var r=0,o=0;r=o,o=bl(),38===r&&12===o&&(t[n]=1),!wl(o);)vl();return xl(e,pl)},Ul=function(e,t){return _l(function(e,t){var n=-1,r=44;do{switch(wl(r)){case 0:38===r&&12===bl()&&(t[n]=1),e[n]+=Fl(pl-1,t,n);break;case 2:e[n]+=El(r);break;case 4:if(44===r){e[++n]=58===bl()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Qs(r)}}while(r=vl());return e}(Sl(e),t))},Bl=new WeakMap,zl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Bl.get(n))&&!r){Bl.set(e,!0);for(var o=[],i=Ul(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Vl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Kl(e,t){switch(function(e,t){return 45^ol(e,0)?(((t<<2^ol(e,0))<<2^ol(e,1))<<2^ol(e,2))<<2^ol(e,3):0}(e,t)){case 5103:return Ws+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ws+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ws+e+Ys+e+Hs+e+e;case 6828:case 4268:return Ws+e+Hs+e+e;case 6165:return Ws+e+Hs+"flex-"+e+e;case 5187:return Ws+e+nl(e,/(\w+).+(:[^]+)/,Ws+"box-$1$2"+Hs+"flex-$1$2")+e;case 5443:return Ws+e+Hs+"flex-item-"+nl(e,/flex-|-self/,"")+e;case 4675:return Ws+e+Hs+"flex-line-pack"+nl(e,/align-content|flex-|-self/,"")+e;case 5548:return Ws+e+Hs+nl(e,"shrink","negative")+e;case 5292:return Ws+e+Hs+nl(e,"basis","preferred-size")+e;case 6060:return Ws+"box-"+nl(e,"-grow","")+Ws+e+Hs+nl(e,"grow","positive")+e;case 4554:return Ws+nl(e,/([^-])(transform)/g,"$1"+Ws+"$2")+e;case 6187:return nl(nl(nl(e,/(zoom-|grab)/,Ws+"$1"),/(image-set)/,Ws+"$1"),e,"")+e;case 5495:case 3959:return nl(e,/(image-set\([^]*)/,Ws+"$1$`$1");case 4968:return nl(nl(e,/(.+:)(flex-)?(.*)/,Ws+"box-pack:$3"+Hs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ws+e+e;case 4095:case 3583:case 4068:case 2532:return nl(e,/(.+)-inline(.+)/,Ws+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(al(e)-1-t>6)switch(ol(e,t+1)){case 109:if(45!==ol(e,t+4))break;case 102:return nl(e,/(.+:)(.+)-([^]+)/,"$1"+Ws+"$2-$3$1"+Ys+(108==ol(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rl(e,"stretch")?Kl(nl(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ol(e,t+1))break;case 6444:switch(ol(e,al(e)-3-(~rl(e,"!important")&&10))){case 107:return nl(e,":",":"+Ws)+e;case 101:return nl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ws+(45===ol(e,14)?"inline-":"")+"box$3$1"+Ws+"$2$3$1"+Hs+"$2box$3")+e}break;case 5936:switch(ol(e,t+11)){case 114:return Ws+e+Hs+nl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ws+e+Hs+nl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ws+e+Hs+nl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ws+e+Hs+e+e}return e}var $l,Hl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Js:e.return=Kl(e.value,e.length);break;case Xs:return Pl([gl(e,{value:nl(e.value,"@","@"+Ws)})],r);case qs:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pl([gl(e,{props:[nl(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Pl([gl(e,{props:[nl(t,/:(plac\w+)/,":"+Ws+"input-$1")]}),gl(e,{props:[nl(t,/:(plac\w+)/,":-moz-$1")]}),gl(e,{props:[nl(t,/:(plac\w+)/,Hs+"input-$1")]})],r)}return""}))}}],Yl=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o=e.stylisPlugins||Hl,i={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;a.push(e)}));var s,l,c,u=[Nl,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=sl(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([zl,Vl].concat(o,u));s=function(e,t,n,r){l=n,function(e){Pl(Dl(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new $s({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(a),p},Wl={exports:{}},Gl={};Wl.exports=function(){if($l)return Gl;$l=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return Gl.AsyncMode=l,Gl.ConcurrentMode=c,Gl.ContextConsumer=s,Gl.ContextProvider=a,Gl.Element=t,Gl.ForwardRef=u,Gl.Fragment=r,Gl.Lazy=m,Gl.Memo=f,Gl.Portal=n,Gl.Profiler=i,Gl.StrictMode=o,Gl.Suspense=d,Gl.isAsyncMode=function(e){return x(e)||y(e)===l},Gl.isConcurrentMode=x,Gl.isContextConsumer=function(e){return y(e)===s},Gl.isContextProvider=function(e){return y(e)===a},Gl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Gl.isForwardRef=function(e){return y(e)===u},Gl.isFragment=function(e){return y(e)===r},Gl.isLazy=function(e){return y(e)===m},Gl.isMemo=function(e){return y(e)===f},Gl.isPortal=function(e){return y(e)===n},Gl.isProfiler=function(e){return y(e)===i},Gl.isStrictMode=function(e){return y(e)===o},Gl.isSuspense=function(e){return y(e)===d},Gl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===h)},Gl.typeOf=y,Gl}();var ql=Wl.exports,Jl={};Jl[ql.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jl[ql.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Xl(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Zl=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ql=function(e,t,n){Zl(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var ec={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,scale: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},tc=/[A-Z]|^ms/g,nc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rc=function(e){return 45===e.charCodeAt(1)},oc=function(e){return null!=e&&"boolean"!=typeof e},ic=Ll((function(e){return rc(e)?e:e.replace(tc,"-$&").toLowerCase()})),ac=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(nc,(function(e,t,n){return lc={name:t,styles:n,next:lc},t}))}return 1===ec[e]||rc(e)||"number"!=typeof t||0===t?t:t+"px"};function sc(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return lc={name:o.name,styles:o.styles,next:lc},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)lc={name:a.name,styles:a.styles,next:lc},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sc(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":oc(s)&&(r+=ic(i)+":"+ac(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=sc(e,t,a);switch(i){case"animation":case"animationName":r+=ic(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)oc(a[c])&&(r+=ic(i)+":"+ac(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=lc,l=n(e);return lc=s,sc(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var lc,cc=/label:\s*([^\s;{]+)\s*(;|$)/g;function uc(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";lc=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=sc(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)if(o+=sc(n,t,e[a]),r){o+=i[a]}cc.lastIndex=0;for(var s,l="";null!==(s=cc.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:lc}}var dc,pc,fc=!!jn.useInsertionEffect&&jn.useInsertionEffect,mc=fc||function(e){return e()},hc=fc||jn.useLayoutEffect,gc=jn.createContext(typeof HTMLElement<"u"?Yl({key:"css"}):null),vc=gc.Provider,bc=function(e){return(0,jn.forwardRef)((function(t,n){var r=(0,jn.useContext)(gc);return e(t,r,n)}))},yc=jn.createContext({}),xc={}.hasOwnProperty,wc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Sc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Zl(t,n,r),mc((function(){return Ql(t,n,r)})),null},_c=bc((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[wc],i=[r],a="";"string"==typeof e.className?a=Xl(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=uc(i,void 0,jn.useContext(yc));a+=t.key+"-"+s.name;var l={};for(var c in e)xc.call(e,c)&&"css"!==c&&c!==wc&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),jn.createElement(jn.Fragment,null,jn.createElement(Sc,{cache:t,serialized:s,isStringTag:"string"==typeof o}),jn.createElement(o,l))})),Ec=_c,kc=function(e,t){var n=arguments;if(null==t||!xc.call(t,"css"))return jn.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ec,o[1]=function(e,t){var n={};for(var r in t)xc.call(t,r)&&(n[r]=t[r]);return n[wc]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return jn.createElement.apply(null,o)};dc=kc||(kc={}),pc||(pc=dc.JSX||(dc.JSX={}));var Cc=bc((function(e,t){var n=uc([e.styles],void 0,jn.useContext(yc)),r=jn.useRef();return hc((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),hc((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ql(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function Tc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return uc(t)}function Ic(){var e=Tc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Mc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dc=Ll((function(e){return Mc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Oc=Dc,jc=function(e){return"theme"!==e},Ac=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Oc:jc},Rc=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Pc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Zl(t,n,r),mc((function(){return Ql(t,n,r)})),null},Nc=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Rc(t,n,i),l=s||Ac(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],p[m])}var h=bc((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=jn.useContext(yc)}"string"==typeof e.className?i=Xl(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=uc(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?Ac(r):l,g={};for(var v in e)c&&"as"===v||h(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),jn.createElement(jn.Fragment,null,jn.createElement(Pc,{cache:t,serialized:m,isStringTag:"string"==typeof r}),jn.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Ts({},n,r,{shouldForwardProp:Rc(h,r,!0)})).apply(void 0,d)},h}}.bind(null);let Lc;["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Nc[e]=Nc(e)})),"object"==typeof document&&(Lc=Yl({key:"css",prepend:!0}));const Fc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e;return(0,Pn.jsx)(Cc,{styles:"function"==typeof t?e=>t(function(e){return null==e||0===Object.keys(e).length}(e)?n:e):t})},StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Lc?(0,Pn.jsx)(vc,{value:Lc,children:n}):n},ThemeContext:yc,css:Tc,default:function(e,t){return Nc(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:Ic},Symbol.toStringTag,{value:"Module"}));function Uc(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Bc(e){if(jn.isValidElement(e)||!Uc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Bc(e[n])})),t}function zc(e,t,n={clone:!0}){const r=n.clone?Ts({},e):e;return Uc(e)&&Uc(t)&&Object.keys(t).forEach((o=>{jn.isValidElement(t[o])?r[o]=t[o]:Uc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Uc(e[o])?r[o]=zc(e[o],t[o],n):n.clone?r[o]=Uc(t[o])?Bc(t[o]):t[o]:r[o]=t[o]})),r}const Vc=Object.freeze(Object.defineProperty({__proto__:null,default:zc,isPlainObject:Uc},Symbol.toStringTag,{value:"Module"})),Kc=["values","unit","step"];function $c(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ks(e,Kc),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Ts({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ts({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Hc={borderRadius:4};function Yc(e,t){return t?zc(e,t,{clone:!1}):e}const Wc={xs:0,sm:600,md:900,lg:1200,xl:1536},Gc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Wc[e]}px)`};function qc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Gc;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Gc;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Wc).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Jc({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Xc(e){if("string"!=typeof e)throw new Error(Bs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Zc=Object.freeze(Object.defineProperty({__proto__:null,default:Xc},Symbol.toStringTag,{value:"Module"}));function Qc(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function eu(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Qc(e,n)||r,t&&(o=t(o,r,e)),o}function tu(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Qc(e.theme,r)||{};return qc(e,i,(e=>{let r=eu(a,o,e);return e===r&&"string"==typeof e&&(r=eu(a,o,`${t}${"default"===e?"":Xc(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const nu={m:"margin",p:"padding"},ru={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ou={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iu=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ou[e])return[e];e=ou[e]}const[t,n]=e.split(""),r=nu[t],o=ru[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),au=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],su=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function lu(e,t,n,r){var o;const i=null!=(o=Qc(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function cu(e){return lu(e,"spacing",8)}function uu(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function du(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=uu(t,n),e)),{})}(iu(n),r);return qc(e,e[n],o)}function pu(e,t){const n=cu(e.theme);return Object.keys(e).map((r=>du(e,t,r,n))).reduce(Yc,{})}function fu(e){return pu(e,au)}function mu(e){return pu(e,su)}function hu(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Yc(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function gu(e){return"number"!=typeof e?e:`${e}px solid`}function vu(e,t){return tu({prop:e,themeKey:"borders",transform:t})}fu.propTypes={},fu.filterProps=au,mu.propTypes={},mu.filterProps=su;const bu=vu("border",gu),yu=vu("borderTop",gu),xu=vu("borderRight",gu),wu=vu("borderBottom",gu),Su=vu("borderLeft",gu),_u=vu("borderColor"),Eu=vu("borderTopColor"),ku=vu("borderRightColor"),Cu=vu("borderBottomColor"),Tu=vu("borderLeftColor"),Iu=vu("outline",gu),Mu=vu("outlineColor"),Du=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=lu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:uu(t,e)});return qc(e,e.borderRadius,n)}return null};Du.propTypes={},Du.filterProps=["borderRadius"],hu(bu,yu,xu,wu,Su,_u,Eu,ku,Cu,Tu,Du,Iu,Mu);const Ou=e=>{if(void 0!==e.gap&&null!==e.gap){const t=lu(e.theme,"spacing",8),n=e=>({gap:uu(t,e)});return qc(e,e.gap,n)}return null};Ou.propTypes={},Ou.filterProps=["gap"];const ju=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=lu(e.theme,"spacing",8),n=e=>({columnGap:uu(t,e)});return qc(e,e.columnGap,n)}return null};ju.propTypes={},ju.filterProps=["columnGap"];const Au=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=lu(e.theme,"spacing",8),n=e=>({rowGap:uu(t,e)});return qc(e,e.rowGap,n)}return null};Au.propTypes={},Au.filterProps=["rowGap"];function Ru(e,t){return"grey"===t?t:e}hu(Ou,ju,Au,tu({prop:"gridColumn"}),tu({prop:"gridRow"}),tu({prop:"gridAutoFlow"}),tu({prop:"gridAutoColumns"}),tu({prop:"gridAutoRows"}),tu({prop:"gridTemplateColumns"}),tu({prop:"gridTemplateRows"}),tu({prop:"gridTemplateAreas"}),tu({prop:"gridArea"}));function Pu(e){return e<=1&&0!==e?100*e+"%":e}hu(tu({prop:"color",themeKey:"palette",transform:Ru}),tu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ru}),tu({prop:"backgroundColor",themeKey:"palette",transform:Ru}));const Nu=tu({prop:"width",transform:Pu}),Lu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Wc[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Pu(t)}};return qc(e,e.maxWidth,t)}return null};Lu.filterProps=["maxWidth"];const Fu=tu({prop:"minWidth",transform:Pu}),Uu=tu({prop:"height",transform:Pu}),Bu=tu({prop:"maxHeight",transform:Pu}),zu=tu({prop:"minHeight",transform:Pu});tu({prop:"size",cssProperty:"width",transform:Pu}),tu({prop:"size",cssProperty:"height",transform:Pu});hu(Nu,Lu,Fu,Uu,Bu,zu,tu({prop:"boxSizing"}));const Vu={border:{themeKey:"borders",transform:gu},borderTop:{themeKey:"borders",transform:gu},borderRight:{themeKey:"borders",transform:gu},borderBottom:{themeKey:"borders",transform:gu},borderLeft:{themeKey:"borders",transform:gu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Du},color:{themeKey:"palette",transform:Ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ru},backgroundColor:{themeKey:"palette",transform:Ru},p:{style:mu},pt:{style:mu},pr:{style:mu},pb:{style:mu},pl:{style:mu},px:{style:mu},py:{style:mu},padding:{style:mu},paddingTop:{style:mu},paddingRight:{style:mu},paddingBottom:{style:mu},paddingLeft:{style:mu},paddingX:{style:mu},paddingY:{style:mu},paddingInline:{style:mu},paddingInlineStart:{style:mu},paddingInlineEnd:{style:mu},paddingBlock:{style:mu},paddingBlockStart:{style:mu},paddingBlockEnd:{style:mu},m:{style:fu},mt:{style:fu},mr:{style:fu},mb:{style:fu},ml:{style:fu},mx:{style:fu},my:{style:fu},margin:{style:fu},marginTop:{style:fu},marginRight:{style:fu},marginBottom:{style:fu},marginLeft:{style:fu},marginX:{style:fu},marginY:{style:fu},marginInline:{style:fu},marginInlineStart:{style:fu},marginInlineEnd:{style:fu},marginBlock:{style:fu},marginBlockStart:{style:fu},marginBlockEnd:{style:fu},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ou},rowGap:{style:Au},columnGap:{style:ju},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pu},maxWidth:{style:Lu},minWidth:{transform:Pu},height:{transform:Pu},maxHeight:{transform:Pu},minHeight:{transform:Pu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ku(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Qc(n,s)||{};return c?c(o):qc(o,t,(t=>{let n=eu(u,l,t);return t===n&&"string"==typeof t&&(n=eu(u,l,`${e}${"default"===t?"":Xc(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Vu;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])l=Yc(l,e(n,o,i,a));else{const e=qc({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=Yc(l,e):l[n]=t({sx:o,theme:i})}else l=Yc(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const $u=Ku();function Hu(e,t){const n=this;return n.vars&&"function"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}$u.filterProps=["sx"];const Yu=["breakpoints","palette","spacing","shape"];function Wu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ks(e,Yu),s=$c(n),l=function(e=8){if(e.mui)return e;const t=cu({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let c=zc({breakpoints:s,direction:"ltr",components:{},palette:Ts({mode:"light"},r),spacing:l,shape:Ts({},Hc,i)},a);return c.applyStyles=Hu,c=t.reduce(((e,t)=>zc(e,t)),c),c.unstable_sxConfig=Ts({},Vu,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return $u({sx:e,theme:this})},c}const Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Wu,private_createBreakpoints:$c,unstable_applyStyles:Hu},Symbol.toStringTag,{value:"Module"}));function qu(e=null){const t=jn.useContext(yc);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const Ju=Wu();function Xu(e=Ju){return qu(e)}const Zu=["sx"];function Qu(e){const{sx:t}=e,n=Ks(e,Zu),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Vu;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Uc(n)?Ts({},r,n):r}:Ts({},r,t),Ts({},o,{sx:i})}const ed=Object.freeze(Object.defineProperty({__proto__:null,default:$u,extendSxProp:Qu,unstable_createStyleFunctionSx:Ku,unstable_defaultSxConfig:Vu},Symbol.toStringTag,{value:"Module"})),td=e=>e,nd=(()=>{let e=td;return{configure(t){e=t},generate:t=>e(t),reset(){e=td}}})();function rd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=rd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function od(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=rd(e))&&(r&&(r+=" "),r+=t);return r}const id={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ad(e,t,n="Mui"){const r=id[t];return r?`${n}-${r}`:`${nd.generate(e)}-${t}`}function sd(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ad(e,t,n)})),r}var ld,cd={exports:{}},ud={};cd.exports=function(){if(ld)return ud;ld=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");function m(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return f}}case t:return f}}}return ud.ContextConsumer=i,ud.ContextProvider=a,ud.Element=e,ud.ForwardRef=s,ud.Fragment=n,ud.Lazy=d,ud.Memo=u,ud.Portal=t,ud.Profiler=o,ud.StrictMode=r,ud.Suspense=l,ud.SuspenseList=c,ud.isContextConsumer=function(e){return m(e)===i},ud.isContextProvider=function(e){return m(e)===a},ud.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ud.isForwardRef=function(e){return m(e)===s},ud.isFragment=function(e){return m(e)===n},ud.isLazy=function(e){return m(e)===d},ud.isMemo=function(e){return m(e)===u},ud.isPortal=function(e){return m(e)===t},ud.isProfiler=function(e){return m(e)===o},ud.isStrictMode=function(e){return m(e)===r},ud.isSuspense=function(e){return m(e)===l},ud.isSuspenseList=function(e){return m(e)===c},ud.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},ud.typeOf=m,ud}();var dd=cd.exports;const pd=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fd(e){const t=`${e}`.match(pd);return t&&t[1]||""}function md(e,t=""){return e.displayName||e.name||fd(e)||t}function hd(e,t,n){const r=md(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const gd=Object.freeze(Object.defineProperty({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return md(e,"Component");if("object"==typeof e)switch(e.$$typeof){case dd.ForwardRef:return hd(e,e.render,"ForwardRef");case dd.Memo:return hd(e,e.type,"memo");default:return}}},getFunctionName:fd},Symbol.toStringTag,{value:"Module"}));function vd(e,t){const n=Ts({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ts({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ts({},i),Object.keys(o).forEach((e=>{n[r][e]=vd(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function bd(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?vd(t.components[n].defaultProps,r):r}const yd=typeof window<"u"?jn.useLayoutEffect:jn.useEffect;function xd(e,t,n,r,o){const[i,a]=jn.useState((()=>o&&n?n(e).matches:r?r(e).matches:t));return yd((()=>{let t=!0;if(!n)return;const r=n(e),o=()=>{t&&a(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}}),[e,n]),i}const wd=jn.useSyncExternalStore;function Sd(e,t,n,r,o){const i=jn.useCallback((()=>t),[t]),a=jn.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return i}),[i,e,r,o,n]),[s,l]=jn.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,n,e]);return wd(l,s,a)}function _d(e,t={}){const n=qu(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=bd({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==wd?Sd:xd)(l,o,i,a,s)}function Ed(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kd=Object.freeze(Object.defineProperty({__proto__:null,default:Ed},Symbol.toStringTag,{value:"Module"}));function Cd(e){if(e.type)return e;if("#"===e.charAt(0))return Cd(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Bs(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Bs(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Td(e,t){return e=Cd(e),t=function(e,t=0,n=1){return Ed(e,t,n)}(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}(Us.element,()=>null).isRequired=(Us.element.isRequired,()=>null);Us.elementType;Us.oneOfType([Us.func,Us.object]);function Id(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Md(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Dd(e){return e&&e.ownerDocument||document}function Od(e){return Dd(e).defaultView||window}function jd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ad=0;const Rd=jn.useId;function Pd(e){if(void 0!==Rd){const t=Rd();return e??t}return function(e){const[t,n]=jn.useState(e),r=e||t;return jn.useEffect((()=>{null==t&&(Ad+=1,n(`mui-${Ad}`))}),[t]),r}(e)}function Nd({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=jn.useRef(void 0!==e),[i,a]=jn.useState(t);return[o?e:i,jn.useCallback((e=>{o||a(e)}),[])]}function Ld(e){const t=jn.useRef(e);return yd((()=>{t.current=e})),jn.useRef(((...e)=>(0,t.current)(...e))).current}function Fd(...e){return jn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{jd(e,t)}))}),e)}const Ud={};const Bd=[];class zd{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new zd}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Vd(){const e=function(e,t){const n=jn.useRef(Ud);return n.current===Ud&&(n.current=e(t)),n}(zd.create).current;return function(e){jn.useEffect(e,Bd)}(e.disposeEffect),e}let Kd=!0,$d=!1;const Hd=new zd,Yd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Wd(e){e.metaKey||e.altKey||e.ctrlKey||(Kd=!0)}function Gd(){Kd=!1}function qd(){"hidden"===this.visibilityState&&$d&&(Kd=!0)}function Jd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Kd||function(e){const{type:t,tagName:n}=e;return!!("INPUT"===n&&Yd[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||e.isContentEditable)}(t)}function Xd(){const e=jn.useCallback((e=>{null!=e&&function(e){e.addEventListener("keydown",Wd,!0),e.addEventListener("mousedown",Gd,!0),e.addEventListener("pointerdown",Gd,!0),e.addEventListener("touchstart",Gd,!0),e.addEventListener("visibilitychange",qd,!0)}(e.ownerDocument)}),[]),t=jn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Jd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&($d=!0,Hd.start(100,(()=>{$d=!1})),t.current=!1,!0)},ref:e}}let Zd;function Qd(){if(Zd)return Zd;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Zd="reverse",e.scrollLeft>0?Zd="default":(e.scrollLeft=1,0===e.scrollLeft&&(Zd="negative")),document.body.removeChild(e),Zd}function ep(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Qd()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}Number.isInteger;function tp(){return null}tp.isRequired=tp;function np(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function rp(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function op(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const ip=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ap(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ks(e,ip),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=od(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ts({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ts({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=rp(Ts({},o,r)),s=op(r),l=op(o),c=t(a),u=od(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ts({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ts({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Ts({},a,{externalSlotProps:s}));return function(e,t,n){return void 0===e||function(e){return"string"==typeof e}(e)?t:Ts({},t,{ownerState:Ts({},t.ownerState,n)})}(n,Ts({},l,{ref:Fd(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function sp(e){var t;return parseInt(jn.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const lp=jn.createContext(),cp=()=>jn.useContext(lp)??!1,up=jn.createContext(void 0);function dp({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?vd(o.defaultProps,r):o.styleOverrides||o.variants?r:vd(o,r)}({props:e,name:t,theme:{components:jn.useContext(up)}})}function pp(e){return pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pp(e)}function fp(e){var t=function(e,t){if("object"!=pp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=pp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pp(t)?t:t+""}function mp(e,t){return Ts({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var hp={},gp={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(gp);var vp=gp.exports;const bp=Ba(zs),yp=Ba(kd);var xp=vp;Object.defineProperty(hp,"__esModule",{value:!0});var wp=hp.alpha=Rp;hp.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Mp(e),a=Mp(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Op({type:"rgb",values:s})},hp.colorChannel=void 0;var Sp=hp.darken=Pp;hp.decomposeColor=Mp,hp.emphasize=Lp;var _p=hp.getContrastRatio=function(e,t){const n=Ap(e),r=Ap(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};hp.getLuminance=Ap,hp.hexToRgb=Ip,hp.hslToRgb=jp;var Ep=hp.lighten=Np;hp.private_safeAlpha=function(e,t,n){try{return Rp(e,t)}catch{return e}},hp.private_safeColorChannel=void 0,hp.private_safeDarken=function(e,t,n){try{return Pp(e,t)}catch{return e}},hp.private_safeEmphasize=function(e,t,n){try{return Lp(e,t)}catch{return e}},hp.private_safeLighten=function(e,t,n){try{return Np(e,t)}catch{return e}},hp.recomposeColor=Op,hp.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Mp(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var kp=xp(bp),Cp=xp(yp);function Tp(e,t=0,n=1){return(0,Cp.default)(e,t,n)}function Ip(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Mp(e){if(e.type)return e;if("#"===e.charAt(0))return Mp(Ip(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,kp.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,kp.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Dp=e=>{const t=Mp(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};hp.colorChannel=Dp;function Op(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function jp(e){e=Mp(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Op({type:s,values:l})}function Ap(e){let t="hsl"===(e=Mp(e)).type||"hsla"===e.type?Mp(jp(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Rp(e,t){return e=Mp(e),t=Tp(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Op(e)}function Pp(e,t){if(e=Mp(e),t=Tp(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Op(e)}function Np(e,t){if(e=Mp(e),t=Tp(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Op(e)}function Lp(e,t=.15){return Ap(e)>.5?Pp(e,t):Np(e,t)}hp.private_safeColorChannel=(e,t)=>{try{return Dp(e)}catch{return e}};const Fp={black:"#000",white:"#fff"},Up={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Bp="#f3e5f5",zp="#ce93d8",Vp="#ba68c8",Kp="#ab47bc",$p="#9c27b0",Hp="#7b1fa2",Yp="#e57373",Wp="#ef5350",Gp="#f44336",qp="#d32f2f",Jp="#c62828",Xp="#ffb74d",Zp="#ffa726",Qp="#ff9800",ef="#f57c00",tf="#e65100",nf="#e3f2fd",rf="#90caf9",of="#42a5f5",af="#1976d2",sf="#1565c0",lf="#4fc3f7",cf="#29b6f6",uf="#03a9f4",df="#0288d1",pf="#01579b",ff="#81c784",mf="#66bb6a",hf="#4caf50",gf="#388e3c",vf="#2e7d32",bf="#1b5e20",yf=["mode","contrastThreshold","tonalOffset"],xf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fp.white,default:Fp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},wf={text:{primary:Fp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Sf(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ep(e.main,o):"dark"===t&&(e.dark=Sp(e.main,i)))}function _f(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ks(e,yf),i=e.primary||function(e="light"){return"dark"===e?{main:rf,light:nf,dark:of}:{main:af,light:of,dark:sf}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:zp,light:Bp,dark:Kp}:{main:$p,light:Vp,dark:Hp}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Gp,light:Yp,dark:qp}:{main:qp,light:Wp,dark:Jp}}(t),l=e.info||function(e="light"){return"dark"===e?{main:cf,light:lf,dark:df}:{main:df,light:uf,dark:pf}}(t),c=e.success||function(e="light"){return"dark"===e?{main:mf,light:ff,dark:gf}:{main:vf,light:hf,dark:bf}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Zp,light:Xp,dark:ef}:{main:"#ed6c02",light:Qp,dark:tf}}(t);function d(e){return _p(e,wf.text.primary)>=n?wf.text.primary:xf.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ts({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Bs(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Bs(12,t?` (${t})`:"",JSON.stringify(e.main)));return Sf(e,"light",o,r),Sf(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:wf,light:xf};return zc(Ts({common:Ts({},Fp),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Up,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ef=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function kf(e){return Math.round(1e5*e)/1e5}const Cf={textTransform:"uppercase"},Tf='"Roboto", "Helvetica", "Arial", sans-serif';function If(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Tf,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Ks(n,Ef),f=o/14,m=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>Ts({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Tf?{letterSpacing:`${kf(o/t)}em`}:{},i,u),g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Cf),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Cf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zc(Ts({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Mf(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Df=["none",Mf(0,2,1,-1,0,1,1,0,0,1,3,0),Mf(0,3,1,-2,0,2,2,0,0,1,5,0),Mf(0,3,3,-2,0,3,4,0,0,1,8,0),Mf(0,2,4,-1,0,4,5,0,0,1,10,0),Mf(0,3,5,-1,0,5,8,0,0,1,14,0),Mf(0,3,5,-1,0,6,10,0,0,1,18,0),Mf(0,4,5,-2,0,7,10,1,0,2,16,1),Mf(0,5,5,-3,0,8,10,1,0,3,14,2),Mf(0,5,6,-3,0,9,12,1,0,3,16,2),Mf(0,6,6,-3,0,10,14,1,0,4,18,3),Mf(0,6,7,-4,0,11,15,1,0,4,20,3),Mf(0,7,8,-4,0,12,17,2,0,5,22,4),Mf(0,7,8,-4,0,13,19,2,0,5,24,4),Mf(0,7,9,-4,0,14,21,2,0,5,26,4),Mf(0,8,9,-5,0,15,22,2,0,6,28,5),Mf(0,8,10,-5,0,16,24,2,0,6,30,5),Mf(0,8,11,-5,0,17,26,2,0,6,32,5),Mf(0,9,11,-5,0,18,28,2,0,7,34,6),Mf(0,9,12,-6,0,19,29,2,0,7,36,6),Mf(0,10,13,-6,0,20,31,3,0,8,38,7),Mf(0,10,13,-6,0,21,33,3,0,8,40,7),Mf(0,10,14,-6,0,22,35,3,0,8,42,7),Mf(0,11,14,-7,0,23,36,3,0,9,44,8),Mf(0,11,15,-7,0,24,38,3,0,9,46,8)],Of=["duration","easing","delay"],jf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Af={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rf(e){return`${Math.round(e)}ms`}function Pf(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Nf(e){const t=Ts({},jf,e.easing),n=Ts({},Af,e.duration);return Ts({getAutoHeightDuration:Pf,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;Ks(r,Of);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Rf(o)} ${i} ${"string"==typeof a?a:Rf(a)}`)).join(",")}},e,{easing:t,duration:n})}const Lf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ff=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Uf=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ks(e,Ff);if(e.vars)throw new Error(Bs(18));const s=_f(r),l=Wu(e);let c=zc(l,{mixins:mp(l.breakpoints,n),palette:s,shadows:Df.slice(),typography:If(s,i),transitions:Nf(o),zIndex:Ts({},Lf)});return c=zc(c,a),c=t.reduce(((e,t)=>zc(e,t)),c),c.unstable_sxConfig=Ts({},Vu,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return $u({sx:e,theme:this})},c}();function Bf(){const e=Xu(Uf);return e[Vs]||e}function zf({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=Xu(n);return o=o[r]||o,bd({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Uf,themeId:Vs})}var Vf={};const Kf=Ba(Is);var $f,Hf={exports:{}};const Yf=Ba(Fc),Wf=Ba(Vc),Gf=Ba(Zc),qf=Ba(gd),Jf=Ba(Gu),Xf=Ba(ed);var Zf=vp;Object.defineProperty(Vf,"__esModule",{value:!0});var Qf=Vf.default=function(e={}){const{themeId:t,defaultTheme:n=dm,rootShouldForwardProp:r=um,slotShouldForwardProp:o=um}=e,i=e=>(0,im.default)((0,em.default)({},e,{theme:fm((0,em.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,nm.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=mm(pm(l))}=a,p=(0,tm.default)(a,lm),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=um;"Root"===l||"root"===l?h=r:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,nm.default)(e,(0,em.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,rm.isPlainObject)(e)?r=>hm(e,(0,em.default)({},r,{theme:fm({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const l=o?o.map(v):[];s&&d&&l.push((e=>{const r=fm((0,em.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=hm(n,(0,em.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=fm((0,em.default)({},e,{defaultTheme:n,themeId:t}));return hm({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,em.default)({},e,{theme:o}))})),m||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};Vf.shouldForwardProp=um,Vf.systemDefaultTheme=void 0;var em=Zf(Kf),tm=Zf(($f||($f=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Hf)),Hf.exports)),nm=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=cm(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Yf),rm=Wf,om=(Zf(Gf),Zf(qf),Zf(Jf)),im=Zf(Xf);const am=["ownerState"],sm=["variants"],lm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cm(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(cm=function(e){return e?n:t})(e)}function um(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const dm=Vf.systemDefaultTheme=(0,om.default)(),pm=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fm({defaultTheme:e,theme:t,themeId:n}){return function(e){return 0===Object.keys(e).length}(t)?e:t[n]||t}function mm(e){return e?(t,n)=>n[e]:null}function hm(e,t){let{ownerState:n}=t,r=(0,tm.default)(t,am);const o="function"==typeof e?e((0,em.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>hm(e,(0,em.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,tm.default)(o,sm);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,em.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,em.default)({ownerState:n},r,n)):e.style))})),t}return o}const gm=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,vm=Qf({themeId:Vs,defaultTheme:Uf,rootShouldForwardProp:gm}),bm=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ym={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},xm=ym;(e=>{Ts({},e)})(ym);const wm=jn.createContext(null);function Sm(e){const t=zf({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:o,dateLibInstance:i,locale:a,adapterLocale:s,localeText:l}=t,c=jn.useMemo((()=>new r({locale:s??a,formats:o,instance:i})),[r,a,s,o,i]),u=jn.useMemo((()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")})),[c]),d=jn.useMemo((()=>({utils:c,defaultDates:u,localeText:Ts({},xm,l??{})})),[u,c,l]);return(0,Pn.jsx)(wm.Provider,{value:d,children:n})}const _m={icon:"icon-8081be27","icon--block":"icon--block-4aa6379d","icon--inline":"icon--inline-5d045b85"},Em=(0,jn.forwardRef)(((e,t)=>{const{className:n,name:r,filled:o=!1,label:i,type:a="outlined",size:s=24,display:l="block",color:c,...u}=e,d=Na("notranslate","material-symbols",_m.icon,_m[`icon--${l}`],{[`material-symbols--${a}`]:a,[`text-${c}`]:c},n),p={...s?{"--icon-internal-variation-size":s/16+"rem"}:{},...o?{"--icon-internal-variation-fill":1}:{}};return(0,Pn.jsx)("span",{"data-name":"icon",role:"img","aria-hidden":!i,...u,className:d,style:p,ref:t,"aria-label":i,children:r})}));Em.displayName="Icon";const km={btn:"btn-a9ce955b","btn--small":"btn--small-5daaaf3d","btn--icon-only":"btn--icon-only-375cfc7d","btn--tertiary":"btn--tertiary-c1cc08ad","btn--default":"btn--default-eca73b71","btn--primary":"btn--primary-22126c0a","btn--is-active":"btn--is-active-a0b6b950","btn--is-hovered":"btn--is-hovered-4a27da20","btn--secondary":"btn--secondary-a76a0864","btn--important":"btn--important-1a53be26","btn--positive":"btn--positive-46a2598e","btn--inverted":"btn--inverted-3fc5447d","btn--link":"btn--link-92dffb55","btn--text-color":"btn--text-color-2cc027f7",btn__text:"btn__text-7d9d1a13","btn--is-loading":"btn--is-loading-00320401","btn--icon":"btn--icon-456b539f",btn__inner:"btn__inner-804ab13a","btn__icon--left":"btn__icon--left-50b31870","btn__icon--right":"btn__icon--right-9b9e8607",btn__icon:"btn__icon-738969c8",btn__spinner:"btn__spinner-5ad34e4e","btn--underline":"btn--underline-e2d2c82b","btn--no-style":"btn--no-style-ed081476","btn--full-width":"btn--full-width-9809b856"},Cm=(0,jn.forwardRef)((({children:e,as:t,text:n,className:r,visualType:o="primary",color:i="default",size:a,icon:s,iconLeft:l,iconRight:c,underline:u=!1,isHovered:d,isActive:p,isLoading:f=!1,noStyle:m,renderWrapperElement:h,fullWidth:g,onClick:v,...b},y)=>{const x=t||"button",w=s||l||c,S=m?Na(km["btn--no-style"],r,{[km["btn--full-width"]]:g}):Na(km.btn,km[`btn--${o}`],km[`btn--${i}`],r,{[km[`btn--${a}`]]:a},{[km["btn--underline"]]:u},{[km["btn--is-hovered"]]:d},{[km["btn--is-active"]]:p},{[km["btn--is-loading"]]:f},{[km["btn--icon-only"]]:s},{[km["btn--icon"]]:w},{[km["btn--full-width"]]:g}),_=(e,t)=>{const n={size:16,className:Na(km.btn__icon,km[`btn__icon--${e}`],{[km.btn__spinner]:f})},r="string"==typeof t?{...n,name:t}:{...n,...t,className:Na(n.className,null==t?void 0:t.className)};return f?(0,Pn.jsx)(g0,{className:r.className}):(0,Pn.jsx)(Em,{...r})};return(0,Pn.jsx)(RQ,{visibility:"hide",children:(0,Pn.jsx)(x,{"data-name":"button-content",...b,"aria-disabled":f||b["aria-disabled"],onClick:e=>{v&&!f&&v(e)},ref:y,className:S,children:m?e:(0,Pn.jsxs)("span",{className:km.btn__inner,children:[s&&_("centre",s),l&&_("left",l),(0,Pn.jsx)("span",{className:km.btn__text,children:e}),f&&!w&&(0,Pn.jsx)(g0,{position:"absolute",className:km.btn__spinner}),c&&_("right",c)]})})})}));Cm.displayName="ButtonContent";const Tm=Cm,Im=(0,jn.forwardRef)(((e,t)=>{const{children:n,as:r,type:o,formNoValidate:i,visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:m,noStyle:h,...g}=e;return(0,Pn.jsx)(Tm,{"data-name":"button",...g,type:o||"button",formNoValidate:!!(i??"submit"===o)||void 0,ref:t,as:r||"button",visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:m,noStyle:h,children:n})}));Im.displayName="Button";const Mm=Im;function Dm(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function Om(e,t,n){0===t&&!n&&null!=e&&e.style&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}const jm={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function Am(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter((e=>e)).join(" ")}const Rm=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],Pm=jn.default.forwardRef(((e,t)=>{const{animateOpacity:n=!1,animationStateClasses:r={},applyInlineTransitions:o=!0,children:i,className:a="",contentClassName:s,delay:l=0,disableDisplayNone:c=!1,duration:u=500,easing:d="ease",height:p,onHeightAnimationEnd:f,onHeightAnimationStart:m,style:h,contentRef:g}=e,v=Object.assign({},e);Rm.forEach((e=>{delete v[e]}));const b=(0,jn.useRef)(p),y=(0,jn.useRef)(null),x=(0,jn.useRef)(),w=(0,jn.useRef)(),S=(0,jn.useRef)(Object.assign(Object.assign({},jm),r)),_=(0,jn.useRef)(!!(typeof window<"u"&&window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),E=_.current?0:l,k=_.current?0:u;let C=p,T="visible";"number"==typeof p?(C=p<0?0:p,T="hidden"):Dm(C)&&(C="0%"===p?0:p,T="hidden");const[I,M]=(0,jn.useState)(C),[D,O]=(0,jn.useState)(T),[j,A]=(0,jn.useState)(!1),[R,P]=(0,jn.useState)(Am(S.current,p));(0,jn.useEffect)((()=>{Om(y.current,I,c)}),[]),(0,jn.useEffect)((()=>{if(p!==b.current&&y.current){(function(e,t){0===t&&null!=e&&e.style&&(e.style.display="")})(y.current,b.current),y.current.style.overflow="hidden";const e=y.current.offsetHeight;y.current.style.overflow="";const t=k+E;let n,r,o,i="hidden";const a="auto"===b.current;"number"==typeof p?(n=p<0?0:p,r=n):Dm(p)?(n="0%"===p?0:p,r=n):(n=e,r="auto",i=void 0),a&&(r=n,n=e);const s=[S.current.animating,("auto"===b.current||p<b.current)&&S.current.animatingUp,("auto"===p||p>b.current)&&S.current.animatingDown,0===r&&S.current.animatingToHeightZero,"auto"===r&&S.current.animatingToHeightAuto,"number"==typeof r&&r>0?S.current.animatingToHeightSpecific:null].filter((e=>e)).join(" "),l=Am(S.current,r);M(n),O("hidden"),A(!a),P(s),clearTimeout(w.current),clearTimeout(x.current),a?(o=!0,w.current=setTimeout((()=>{M(r),O(i),A(o),null==m||m(r)}),50),x.current=setTimeout((()=>{A(!1),P(l),Om(y.current,r,c),null==f||f(r)}),t)):(null==m||m(n),w.current=setTimeout((()=>{M(r),O(i),A(!1),P(l),"auto"!==p&&Om(y.current,n,c),null==f||f(n)}),t))}return b.current=p,()=>{clearTimeout(w.current),clearTimeout(x.current)}}),[p]);const N=Object.assign(Object.assign({},h),{height:I,overflow:D||(null==h?void 0:h.overflow)});j&&o&&(N.transition=`height ${k}ms ${d} ${E}ms`,null!=h&&h.transition&&(N.transition=`${h.transition}, ${N.transition}`),N.WebkitTransition=N.transition);const L={};n&&(L.transition=`opacity ${k}ms ${d} ${E}ms`,L.WebkitTransition=L.transition,0===I&&(L.opacity=0));const F=typeof v["aria-hidden"]<"u"?v["aria-hidden"]:0===p;return jn.default.createElement("div",Object.assign({},v,{"aria-hidden":F,className:`${R} ${a}`,style:N,ref:t}),jn.default.createElement("div",{className:s,style:L,ref:e=>{y.current=e,g&&(g.current=e)}},i))})),Nm={collapse__title:"collapse__title-8b98d783",collapse__icon:"collapse__icon-6cfc1cff","collapse--is-open":"collapse--is-open-67cf3662",collapse__content:"collapse__content-c7ea2935"},Lm=e=>{const{getLabel:t}=m0(),{id:n,children:r,className:o,openText:i=t("open"),closeText:a=t("close"),hideCollapseText:s=!1,title:l,titleRowProps:c,defaultOpen:u,open:d,onToggle:p,...f}=e,[m,h]=jn.default.useState(u),g=BQ(),v=g||(void 0!==d?d:m),b=Na(Nm.collapse,o,{[Nm["collapse--is-open"]]:v}),y=()=>{h((e=>!e)),null==p||p(!v)},x=(0,Pn.jsx)("div",{className:Nm.collapse__content,children:r});return(0,Pn.jsxs)("div",{"data-name":"collapse",...f,className:b,children:[(0,Pn.jsx)("button",{type:"button","data-name":"collapse-trigger",className:Nm.collapse__title,"aria-expanded":v,"aria-controls":n,onKeyDown:e=>{("Enter"===e.code||"Space"===e.code)&&!e.repeat&&(e.preventDefault(),y())},onClick:y,children:(0,Pn.jsxs)(x0,{justifyContent:"between",alignItems:"center",wrap:"nowrap",...c,element:"span",children:[l&&(0,Pn.jsx)(w0,{children:l}),(0,Pn.jsx)(w0,{width:"auto",children:(0,Pn.jsxs)(x0,{element:"span",alignItems:"center",gutter:1,children:[(0,Pn.jsx)(RQ,{visibility:"hide",children:(0,Pn.jsx)(w0,{width:"auto",className:Na({"visually-hidden":s}),children:(0,Pn.jsx)(ks,{element:"span",color:"primary",children:v?a:i})})}),(0,Pn.jsx)(w0,{width:"auto",children:(0,Pn.jsx)(Em,{className:Nm.collapse__icon,name:"expand_more"})})]})})]})}),g?x:(0,Pn.jsx)(Pm,{duration:300,id:n,height:v?"auto":0,"data-testid":"collapse-inner",children:x})]})},Fm=(0,jn.forwardRef)(((e,t)=>{const{getLabel:n}=m0(),{visualType:r="link",as:o,children:i,...a}=e;return(0,Pn.jsxs)(Tm,{"data-name":"anchor",...a,ref:t,as:o||"a",visualType:r,children:[i,"_blank"===a.target&&(0,Pn.jsxs)("span",{className:"sr-only",children:["(",n("anchor.new-tab"),")"]})]})}));Fm.displayName="Anchor";const Um=jn.default.createContext({menuOpen:!1,toggleMenu:()=>null,headerType:"system",reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),context:{},y:null,headerElement:null,headerBottomElement:null,headerBottomSize:void 0}),Bm={card:"card-1dcacf64","card--borderless":"card--borderless-32e5f5c2","card--no-border-radius-top":"card--no-border-radius-top-b4365e4f",card__content:"card__content-815d48ff","card--no-border-radius-right":"card--no-border-radius-right-3ceb8758","card--no-border-radius-bottom":"card--no-border-radius-bottom-63f3360b","card--no-border-radius-left":"card--no-border-radius-left-a3acce4a","card--border-left":"card--border-left-e9b3151f","card--border-top":"card--border-top-e2a66b39","card__header--default":"card__header--default-90734e02","card__header--primary-main":"card__header--primary-main-8de91e10","card__header--primary-active":"card__header--primary-active-6877b9af","card__header--white":"card__header--white-9243bce2","card__header--bg-muted":"card__header--bg-muted-7904d086",card__header:"card__header-5d78acc3"},zm=jn.default.createContext({}),Vm=e=>{const t=null==e?void 0:e.replace(/(top-)|(left-)/s,"");return[null==e?void 0:e.replace(new RegExp(`(${t})|-`,"g"),""),t]},Km=e=>{const t=e=>"object"==typeof e&&"vertical"in e&&"horizontal"in e;return{"--card-content-padding-top":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.top}rem`,"--card-content-padding-right":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.right}rem`,"--card-content-padding-bottom":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.bottom}rem`,"--card-content-padding-left":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.left}rem`}},$m=(0,jn.forwardRef)(((e,t)=>{const{getCurrentBreakpointProps:n}=bs(),{children:r,className:o,padding:i,background:a="bg-default",borderRadius:s,borderless:l,border:c="border-default",...u}=n(e,{padding:1}),[d,p]=Vm(c),f=Na(Bm.card,o,{[Bm[`card--border-${d}`]]:d,[Bm["card--borderless"]]:l,[Bm["card--no-border-radius-top"]]:!1===s||!1===(null==s?void 0:s.top),[Bm["card--no-border-radius-right"]]:!1===s||!1===(null==s?void 0:s.right),[Bm["card--no-border-radius-bottom"]]:!1===s||!1===(null==s?void 0:s.bottom),[Bm["card--no-border-radius-left"]]:!1===s||!1===(null==s?void 0:s.left)});return(0,Pn.jsx)(zm.Provider,{value:{padding:i,background:a},children:(0,Pn.jsx)("div",{"data-name":"card",...u,className:f,ref:t,style:p?{"--card-border-color":`var(--color-${p})`}:void 0,children:r})})}));$m.displayName="Card";const Hm=e=>{const{variant:t,...n}=e,{getCurrentBreakpointProps:r}=bs(),{padding:o}=jn.default.useContext(zm),{children:i,className:a,background:s,padding:l,...c}=r(n,{background:t??"default",padding:o}),u=Na(Bm.card__header,Bm[`card__header--${s}`],a);return(0,Pn.jsx)("div",{"data-name":"card-header",style:Km(l),...c,className:u,children:i})};Hm.displayName="CardHeader";const Ym=e=>{const{padding:t,background:n}=jn.default.useContext(zm),{getCurrentBreakpointProps:r}=bs(),{children:o,className:i,padding:a,background:s,...l}=r(e,{padding:t,background:n}),c=Na(Bm.card__content,{[Es(s)]:s},i);return(0,Pn.jsx)("div",{"data-name":"card-content","data-padding":"number"==typeof a?`${a}rem`:void 0,style:Km(a),...l,className:c,children:o})};Ym.displayName="CardContent";const Wm="card__notification-content-4c89a40e",Gm="card__notification-b07a1cfd",qm=e=>{const{children:t,padding:n,className:r,...o}=e,i=Na(Gm,r);return(0,Pn.jsx)(Ym,{"data-name":"card-notification",padding:n,className:Wm,children:(0,Pn.jsx)(A0,{className:i,...o,children:t})})},Jm=({children:e})=>(0,Pn.jsx)(Pn.Fragment,{children:e});function Xm(){return typeof window<"u"}function Zm(e){return th(e)?(e.nodeName||"").toLowerCase():"#document"}function Qm(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eh(e){var t;return null==(t=(th(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function th(e){return!!Xm()&&(e instanceof Node||e instanceof Qm(e).Node)}function nh(e){return!!Xm()&&(e instanceof Element||e instanceof Qm(e).Element)}function rh(e){return!!Xm()&&(e instanceof HTMLElement||e instanceof Qm(e).HTMLElement)}function oh(e){return!(!Xm()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Qm(e).ShadowRoot)}function ih(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ah(e){return["table","td","th"].includes(Zm(e))}function sh(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function lh(e){const t=ch(),n=nh(e)?dh(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ch(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function uh(e){return["html","body","#document"].includes(Zm(e))}function dh(e){return Qm(e).getComputedStyle(e)}function ph(e){return nh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fh(e){if("html"===Zm(e))return e;const t=e.assignedSlot||e.parentNode||oh(e)&&e.host||eh(e);return oh(t)?t.host:t}function mh(e){const t=fh(e);return uh(t)?e.ownerDocument?e.ownerDocument.body:e.body:rh(t)&&ih(t)?t:mh(t)}function hh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=mh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Qm(o);if(i){const e=gh(a);return t.concat(a,a.visualViewport||[],ih(o)?o:[],e&&n?hh(e):[])}return t.concat(o,hh(o,[],n))}function gh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vh(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function bh(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&oh(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function yh(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function xh(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function wh(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Eh()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Sh(e){return!xh().includes("jsdom/")&&(!Eh()&&0===e.width&&0===e.height||Eh()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function _h(){return/apple/i.test(navigator.vendor)}function Eh(){const e=/android/i;return e.test(yh())||e.test(xh())}function kh(){return yh().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Ch(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Th(e){return(null==e?void 0:e.ownerDocument)||document}function Ih(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Mh(e){return"composedPath"in e?e.composedPath()[0]:e.target}Jm.displayName="HeaderContent";function Dh(e){return rh(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Oh(e){e.preventDefault(),e.stopPropagation()}function jh(e){return!!e&&("combobox"===e.getAttribute("role")&&Dh(e))}const Ah=Math.min,Rh=Math.max,Ph=Math.round,Nh=Math.floor,Lh=e=>({x:e,y:e}),Fh={left:"right",right:"left",bottom:"top",top:"bottom"},Uh={start:"end",end:"start"};function Bh(e,t,n){return Rh(e,Ah(t,n))}function zh(e,t){return"function"==typeof e?e(t):e}function Vh(e){return e.split("-")[0]}function Kh(e){return e.split("-")[1]}function $h(e){return"x"===e?"y":"x"}function Hh(e){return"y"===e?"height":"width"}function Yh(e){return["top","bottom"].includes(Vh(e))?"y":"x"}function Wh(e){return $h(Yh(e))}function Gh(e){return e.replace(/start|end/g,(e=>Uh[e]))}function qh(e){return e.replace(/left|right|bottom|top/g,(e=>Fh[e]))}function Jh(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Xh(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Zh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Qh=typeof Element>"u",eg=Qh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tg=!Qh&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ng=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},rg=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!ng(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{eg.call(a,Zh)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!ng(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},og=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ig=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!og(e)?0:e.tabIndex},ag=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},sg=function(e){return"INPUT"===e.tagName},lg=function(e){return function(e){return sg(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||tg(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},cg=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ug=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=eg.call(e,"details>summary:first-of-type")?e.parentElement:e;if(eg.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return cg(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=tg(e);if(a&&!a.shadowRoot&&!0===r(a))return cg(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&tg(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=tg(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},dg=function(e,t){return!(t.disabled||ng(t)||function(e){return sg(e)&&"hidden"===e.type}(t)||ug(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!eg.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},pg=function(e,t){return!(lg(t)||ig(t)<0||!dg(e,t))},fg=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mg=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=ig(e);return n<0&&t&&!og(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(ag).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},hg=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rg([e],t.includeContainer,{filter:pg.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:fg}):function(e,t,n){if(ng(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Zh));return t&&eg.call(e,Zh)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,pg.bind(null,t)),mg(n)};function gg(e,t,n){let{reference:r,floating:o}=e;const i=Yh(t),a=Wh(t),s=Hh(a),l=Vh(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Kh(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function vg(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=zh(t,e),m=Jh(f),h=s[p?"floating"===d?"reference":"floating":d],g=Xh(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Xh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+m.top)/y.y,bottom:(x.bottom-g.bottom+m.bottom)/y.y,left:(g.left-x.left+m.left)/y.x,right:(x.right-g.right+m.right)/y.x}}function bg(e){const t=dh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rh(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ph(n)!==i||Ph(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function yg(e){return nh(e)?e:e.contextElement}function xg(e){const t=yg(e);if(!rh(t))return Lh(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bg(t);let a=(i?Ph(n.width):n.width)/r,s=(i?Ph(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const wg=Lh(0);function Sg(e){const t=Qm(e);return ch()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wg}function _g(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=yg(e);let a=Lh(1);t&&(r?nh(r)&&(a=xg(r)):a=xg(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Qm(e))&&t}(i,n,r)?Sg(i):Lh(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Qm(i),t=r&&nh(r)?Qm(r):r;let n=e,o=gh(n);for(;o&&r&&t!==n;){const e=xg(o),t=o.getBoundingClientRect(),r=dh(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Qm(o),o=gh(n)}}return Xh({width:u,height:d,x:l,y:c})}function Eg(e,t){const n=ph(e).scrollLeft;return t?t.left+n:_g(eh(e)).left+n}function kg(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Eg(e,r)),y:r.top+t.scrollTop}}function Cg(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Qm(e),r=eh(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=ch();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=eh(e),n=ph(e),r=e.ownerDocument.body,o=Rh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Rh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Eg(e);const s=-n.scrollTop;return"rtl"===dh(r).direction&&(a+=Rh(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(eh(e));else if(nh(t))r=function(e,t){const n=_g(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=rh(e)?xg(e):Lh(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Sg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xh(r)}function Tg(e,t){const n=fh(e);return!(n===t||!nh(n)||uh(n))&&("fixed"===dh(n).position||Tg(n,t))}function Ig(e,t){const n=t.get(e);if(n)return n;let r=hh(e,[],!1).filter((e=>nh(e)&&"body"!==Zm(e))),o=null;const i="fixed"===dh(e).position;let a=i?fh(e):e;for(;nh(a)&&!uh(a);){const t=dh(a),n=lh(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ih(a)&&!n&&Tg(e,a))?r=r.filter((e=>e!==a)):o=t,a=fh(a)}return t.set(e,r),r}function Mg(e,t,n){const r=rh(t),o=eh(t),i="fixed"===n,a=_g(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Lh(0);if(r||!r&&!i)if(("body"!==Zm(t)||ih(o))&&(s=ph(t)),r){const e=_g(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Eg(o));const c=!o||r||i?Lh(0):kg(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Dg(e){return"static"===dh(e).position}function Og(e,t){if(!rh(e)||"fixed"===dh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eh(e)===n&&(n=n.ownerDocument.body),n}function jg(e,t){const n=Qm(e);if(sh(e))return n;if(!rh(e)){let t=fh(e);for(;t&&!uh(t);){if(nh(t)&&!Dg(t))return t;t=fh(t)}return n}let r=Og(e,t);for(;r&&ah(r)&&Dg(r);)r=Og(r,t);return r&&uh(r)&&Dg(r)&&!lh(r)?n:r||function(e){let t=fh(e);for(;rh(t)&&!uh(t);){if(lh(t))return t;if(sh(t))return null;t=fh(t)}return null}(e)||n}const Ag={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=eh(r),s=!!t&&sh(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Lh(1);const u=Lh(0),d=rh(r);if((d||!d&&!i)&&(("body"!==Zm(r)||ih(a))&&(l=ph(r)),rh(r))){const e=_g(r);c=xg(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?Lh(0):kg(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:eh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?sh(t)?[]:Ig(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Cg(t,n,o);return e.top=Rh(r.top,e.top),e.right=Ah(r.right,e.right),e.bottom=Ah(r.bottom,e.bottom),e.left=Rh(r.left,e.left),e}),Cg(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jg,getElementRects:async function(e){const t=this.getOffsetParent||jg,n=this.getDimensions,r=await n(e.floating);return{reference:Mg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=bg(e);return{width:t,height:n}},getScale:xg,isElement:nh,isRTL:function(e){return"rtl"===dh(e).direction}};function Rg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pg(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=yg(e),u=o||i?[...c?hh(c):[],...hh(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=eh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const m={rootMargin:-Nh(d)+"px "+-Nh(o.clientWidth-(u+p))+"px "+-Nh(o.clientHeight-(d+f))+"px "+-Nh(u)+"px",threshold:Rh(0,Ah(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1===r&&!Rg(c,e.getBoundingClientRect())&&a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch{r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let p=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m,h=l?_g(e):null;return l&&function t(){const r=_g(e);h&&!Rg(h,r)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const Ng=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Vh(n),s=Kh(n),l="y"===Yh(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=zh(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Lg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=zh(e,t),c={x:n,y:r},u=await vg(t,l),d=Yh(Vh(o)),p=$h(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=Bh(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=Bh(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:i,[d]:a}}}}}},Fg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=zh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Vh(o),b=Yh(s),y=Vh(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!h?[qh(s)]:function(e){const t=qh(e);return[Gh(e),t,Gh(t)]}(s)),S="none"!==m;!p&&S&&w.push(...function(e,t,n,r){const o=Kh(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Vh(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Gh)))),i}(s,h,m,x));const _=[s,...w],E=await vg(t,g),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Kh(e),o=Wh(e),i=Hh(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=qh(a)),[a,qh(a)]}(o,a,x);k.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every((e=>e<=0))){var T,I;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var M;const e=null==(M=C.filter((e=>{if(S){const t=Yh(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Ug=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=zh(e,t)||{};if(null==c)return{};const d=Jh(u),p={x:n,y:r},f=Wh(o),m=Hh(f),h=await a.getDimensions(c),g="y"===f,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=S?S[y]:0;(!_||!await(null==a.isElement?void 0:a.isElement(S)))&&(_=s.floating[y]||i.floating[m]);const E=x/2-w/2,k=_/2-h[m]/2-1,C=Ah(d[v],k),T=Ah(d[b],k),I=C,M=_-h[m]-T,D=_/2-h[m]/2+E,O=Bh(I,D,M),j=!l.arrow&&null!=Kh(o)&&D!==O&&i.reference[m]/2-(D<I?C:T)-h[m]/2<0,A=j?D<I?D-I:D-M:0;return{[f]:p[f]+A,data:{[f]:O,centerOffset:D-O-A,...j&&{alignmentOffset:A}},reset:j}}}),Bg=(e,t,n)=>{const r=new Map,o={platform:Ag,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=gg(c,r,l),p=r,f={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=g??u,d=v??d,f={...f,[i]:{...f[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=gg(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var zg=typeof document<"u"?jn.useLayoutEffect:jn.useEffect;function Vg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Vg(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Vg(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Kg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $g(e,t){const n=Kg(e);return Math.round(t*n)/n}function Hg(e){const t=jn.useRef(e);return zg((()=>{t.current=e})),t}const Yg=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?Ug({element:n.current,padding:r}).fn(t):{}:n?Ug({element:n,padding:r}).fn(t):{}}}),Wg=(e,t)=>({...Ng(e),options:[e,t]}),Gg=(e,t)=>({...Lg(e),options:[e,t]}),qg=(e,t)=>({...Fg(e),options:[e,t]}),Jg=(e,t)=>({...Yg(e),options:[e,t]});function Xg(e){return jn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const Zg={...jn},Qg=Zg.useInsertionEffect||(e=>e());function ev(e){const t=jn.useRef((()=>{0}));return Qg((()=>{t.current=e})),jn.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var tv=typeof document<"u"?jn.useLayoutEffect:jn.useEffect;function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}let rv=!1,ov=0;const iv=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ov++;const av=Zg.useId||function(){const[e,t]=jn.useState((()=>rv?iv():void 0));return tv((()=>{null==e&&t(iv())}),[]),jn.useEffect((()=>{rv=!0}),[]),e};const sv=jn.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...m}={},...h}=e,g=av(),[v,b]=jn.useState(!1);if(tv((()=>{r&&"rtl"===dh(r).direction&&b(!0)}),[r]),!r)return null;const[y,x]=n.split("-"),w="top"===y||"bottom"===y;let S=u;(w&&null!=i&&i.x||!w&&null!=i&&i.y)&&(S=null);const _=2*c,E=_/2,k=a/2*(l/-8+1),C=s/2*l/4,T=!!p,I=S&&"end"===x?"bottom":"top";let M=S&&"end"===x?"right":"left";S&&v&&(M="end"===x?"left":"right");const D=null!=(null==o?void 0:o.x)?S||o.x:"",O=null!=(null==o?void 0:o.y)?S||o.y:"",j=p||"M0,0 H"+a+" L"+(a-k)+","+(s-C)+" Q"+a/2+","+s+" "+k+","+(s-C)+" Z",A={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[y];return jn.createElement("svg",nv({},h,{"aria-hidden":!0,ref:t,width:T?a:a+_,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[M]:D,[I]:O,[y]:w||T?"100%":"calc(100% - "+_/2+"px)",transform:[A,f].filter((e=>!!e)).join(" "),...m}}),_>0&&jn.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:_+(p?0:1),d:j}),jn.createElement("path",{stroke:_&&!p?h.fill:"none",d:j}),jn.createElement("clipPath",{id:g},jn.createElement("rect",{x:-E,y:E*(T?-1:1),width:a+_,height:a})))}));const lv=jn.createContext(null),cv=jn.createContext(null),uv=()=>{var e;return(null==(e=jn.useContext(lv))?void 0:e.id)||null},dv=()=>jn.useContext(cv);function pv(e){return"data-floating-ui-"+e}function fv(e){const t=(0,jn.useRef)(e);return tv((()=>{t.current=e})),t}const mv=pv("safe-polygon");function hv(e,t,n){return n&&!Ch(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function gv(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:p=!0}=t,f=dv(),m=uv(),h=fv(c),g=fv(l),v=fv(n),b=jn.useRef(),y=jn.useRef(-1),x=jn.useRef(),w=jn.useRef(-1),S=jn.useRef(!0),_=jn.useRef(!1),E=jn.useRef((()=>{})),k=jn.useRef(!1),C=jn.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);jn.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(y.current),clearTimeout(w.current),S.current=!0,k.current=!1)}}),[s,i]),jn.useEffect((()=>{if(!s||!h.current||!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Th(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,h,C]);const T=jn.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=hv(g.current,"close",b.current);o&&!x.current?(clearTimeout(y.current),y.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(y.current),r(!1,e,n))}),[g,r]),I=ev((()=>{E.current(),x.current=void 0})),M=ev((()=>{if(_.current){const e=Th(a.floating).body;e.style.pointerEvents="",e.removeAttribute(mv),_.current=!1}})),D=ev((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));jn.useEffect((()=>{if(s&&nh(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=a.floating)||e.addEventListener("mouseleave",l),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=a.floating)||e.removeEventListener("mouseleave",l),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(y.current),S.current=!1,u&&!Ch(b.current)||d>0&&!hv(g.current,"open"))return;const t=hv(g.current,"open",b.current);t?y.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(D())return;E.current();const t=Th(a.floating);if(clearTimeout(w.current),k.current=!1,h.current&&o.current.floatingContext){n||clearTimeout(y.current),x.current=h.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){M(),I(),D()||T(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(E.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!bh(a.floating,e.relatedTarget))&&T(e)}function l(e){D()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){M(),I(),D()||T(e)}})(e))}}),[a,s,e,u,d,p,T,I,M,r,n,v,f,g,h,o,D]),tv((()=>{var e;if(s&&n&&null!=(e=h.current)&&e.__options.blockPointerEvents&&C()){_.current=!0;const e=a.floating;if(nh(a.domReference)&&e){var t;const n=Th(a.floating).body;n.setAttribute(mv,"");const r=a.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,m,a,f,h,C]),tv((()=>{n||(b.current=void 0,k.current=!1,I(),M())}),[n,I,M]),jn.useEffect((()=>()=>{I(),clearTimeout(y.current),clearTimeout(w.current),M()}),[s,a.domReference,I,M]);const O=jn.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){!S.current&&!v.current&&r(!0,t,"hover")}u&&!Ch(b.current)||n||0===d||k.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(w.current),"touch"===b.current?o():(k.current=!0,w.current=window.setTimeout(o,d)))}}}),[u,r,n,v,d]),j=jn.useMemo((()=>({onMouseEnter(){clearTimeout(y.current)},onMouseLeave(e){D()||T(e.nativeEvent,!1)}})),[T,D]);return jn.useMemo((()=>s?{reference:O,floating:j}:{}),[s,O,j])}let vv=0;function bv(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(vv);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():vv=requestAnimationFrame(i)}function yv(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let xv=new WeakMap,wv=new WeakSet,Sv={},_v=0;const Ev=e=>e&&(e.host||Ev(e.parentNode));function kv(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=((e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Ev(t);return e.contains(n)?n:null})).filter((e=>null!=e)))(t,e),s=new Set,l=new Set(a),c=[];Sv[o]||(Sv[o]=new WeakMap);const u=Sv[o];return a.forEach((function e(t){!t||s.has(t)||(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){!t||l.has(t)||[].forEach.call(t.children,(t=>{if("script"!==Zm(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(xv.get(t)||0)+1,a=(u.get(t)||0)+1;xv.set(t,r),u.set(t,a),c.push(t),1===r&&n&&wv.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),s.clear(),_v++,()=>{c.forEach((e=>{const t=(xv.get(e)||0)-1,n=(u.get(e)||0)-1;xv.set(e,t),u.set(e,n),t||(!wv.has(e)&&i&&e.removeAttribute(i),wv.delete(e)),n||e.removeAttribute(o)})),_v--,_v||(xv=new WeakMap,xv=new WeakMap,wv=new WeakSet,Sv={})}}function Cv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Th(e[0]).body;return kv(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Tv=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Iv(e,t){const n=hg(e,Tv());"prev"===t&&n.reverse();const r=n.indexOf(vh(Th(e)));return n.slice(r+1)[0]}function Mv(){return Iv(document.body,"next")}function Dv(){return Iv(document.body,"prev")}function Ov(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!bh(n,r)}function jv(e){hg(e,Tv()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Av(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Rv={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Pv(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Nv=jn.forwardRef((function(e,t){const[n,r]=jn.useState();tv((()=>(_h()&&r("button"),document.addEventListener("keydown",Pv),()=>{document.removeEventListener("keydown",Pv)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[pv("focus-guard")]:"",style:Rv};return jn.createElement("span",nv({},e,o))})),Lv=jn.createContext(null),Fv=pv("portal");function Uv(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=av(),o=Bv(),[i,a]=jn.useState(null),s=jn.useRef(null);return tv((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),tv((()=>{if(!r||s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Fv,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),tv((()=>{if(null===n||!r||s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!nh(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(Fv,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=jn.useState(null),l=jn.useRef(null),c=jn.useRef(null),u=jn.useRef(null),d=jn.useRef(null),p=null==a?void 0:a.modal,f=null==a?void 0:a.open,m=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return jn.useEffect((()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Ov(e)&&("focusin"===e.type?Av:jv)(i)}}),[i,o,p]),jn.useEffect((()=>{i&&(f||Av(i))}),[f,i]),jn.createElement(Lv.Provider,{value:jn.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},m&&i&&jn.createElement(Nv,{"data-type":"outside",ref:l,onFocus:e=>{if(Ov(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=Dv()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),m&&i&&jn.createElement("span",{"aria-owns":i.id,style:Rv}),i&&Pa.createPortal(t,i),m&&i&&jn.createElement(Nv,{"data-type":"outside",ref:c,onFocus:e=>{if(Ov(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=Mv()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),null!=a&&a.closeOnFocusOut&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Bv=()=>jn.useContext(Lv),zv="data-floating-ui-focusable";function Vv(e){return e?e.hasAttribute(zv)?e:e.querySelector("["+zv+"]")||e:null}let Kv=[];function $v(e){Kv=Kv.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Zm(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==eg.call(e,Zh)&&pg(t,e)}(t,Tv())){const e=hg(t,Tv())[0];e&&(t=e)}Kv.push(t),Kv.length>20&&(Kv=Kv.slice(-20))}}function Hv(){return Kv.slice().reverse().find((e=>e.isConnected))}const Yv=jn.forwardRef((function(e,t){return jn.createElement("button",nv({},e,{type:"button",ref:t,tabIndex:-1,style:Rv}))}));function Wv(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:p,refs:f,nodeId:m,onOpenChange:h,events:g,dataRef:v,floatingId:b,elements:{domReference:y,floating:x}}=t,w="number"==typeof a&&a<0,S=jh(y)&&w,_=!(typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype)||i,E=fv(o),k=fv(a),C=fv(s),T=dv(),I=Bv(),M=jn.useRef(null),D=jn.useRef(null),O=jn.useRef(!1),j=jn.useRef(!1),A=jn.useRef(-1),R=null!=I,P=Vv(x),N=ev((function(e){return void 0===e&&(e=P),e?hg(e,Tv()):[]})),L=ev((e=>{const t=N(e);return E.current.map((e=>y&&"reference"===e?y:P&&"floating"===e?P:t)).filter(Boolean).flat()}));function F(e){return!r&&u&&c?jn.createElement(Yv,{ref:"start"===e?M:D,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}jn.useEffect((()=>{if(r||!c)return;function e(e){if("Tab"===e.key){bh(P,vh(Th(P)))&&0===N().length&&!S&&Oh(e);const t=L(),n=Mh(e);"reference"===E.current[0]&&n===y&&(Oh(e),e.shiftKey?bv(t[t.length-1]):bv(t[1])),"floating"===E.current[1]&&n===P&&e.shiftKey&&(Oh(e),bv(t[0]))}}const t=Th(P);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,y,P,c,E,S,N,L]),jn.useEffect((()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=Mh(e),n=N().indexOf(t);-1!==n&&(A.current=n)}}),[r,x,N]),jn.useEffect((()=>{if(!r&&d)return x&&rh(y)?(y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){j.current=!0,setTimeout((()=>{j.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(bh(y,t)||bh(x,t)||bh(t,x)||bh(null==I?void 0:I.portalNode,t)||null!=t&&t.hasAttribute(pv("focus-guard"))||T&&(yv(T.nodesRef.current,m).find((e=>{var n,r;return bh(null==(n=e.context)?void 0:n.elements.floating,t)||bh(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(T.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(l&&n&&vh(Th(P))===Th(P).body){rh(P)&&P.focus();const e=A.current,t=N(),n=t[e]||t[t.length-1]||P;rh(n)&&n.focus()}(S||!c)&&t&&n&&!j.current&&t!==Hv()&&(O.current=!0,h(!1,e,"focus-out"))}))}}),[r,y,x,P,c,m,T,I,h,d,l,N,S]),jn.useEffect((()=>{var e;if(r)return;const t=Array.from((null==I||null==(e=I.portalNode)?void 0:e.querySelectorAll("["+pv("portal")+"]"))||[]);if(x){const e=[x,...t,M.current,D.current,E.current.includes("reference")||S?y:null].filter((e=>null!=e)),n=c||S?Cv(e,_,!_):Cv(e);return()=>{n()}}}),[r,y,x,c,E,I,S,_]),tv((()=>{if(r||!rh(P))return;const e=vh(Th(P));queueMicrotask((()=>{const t=L(P),n=k.current,r=("number"==typeof n?t[n]:n.current)||P,o=bh(P,e);!w&&!o&&p&&bv(r,{preventScroll:r===P})}))}),[r,p,P,w,L,k]),tv((()=>{if(r||!P)return;let e=!1;const t=Th(P),n=vh(t);let o=v.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:a}=t;n&&(o=i),"escape-key"===r&&f.domReference.current&&$v(f.domReference.current),"hover"===r&&"mouseleave"===i.type&&(O.current=!0),"outside-press"===r&&(a?(O.current=!1,e=!0):O.current=!(wh(i)||Sh(i)))}$v(n),g.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Rv),R&&y&&y.insertAdjacentElement("afterend",a),()=>{g.off("openchange",i);const n=vh(t),r=bh(x,n)||T&&yv(T.nodesRef.current,m).some((e=>{var t;return bh(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&f.domReference.current&&$v(f.domReference.current);const s="boolean"==typeof C.current?Hv()||a:C.current.current||a;queueMicrotask((()=>{C.current&&!O.current&&rh(s)&&(!(s!==n&&n!==t.body)||r)&&s.focus({preventScroll:e}),a.remove()}))}}),[r,x,P,C,v,f,g,T,m,R,y]),jn.useEffect((()=>{queueMicrotask((()=>{O.current=!1}))}),[r]),tv((()=>{if(!r&&I)return I.setFocusManagerState({modal:c,closeOnFocusOut:d,open:p,onOpenChange:h,refs:f}),()=>{I.setFocusManagerState(null)}}),[r,I,c,p,h,f,d]),tv((()=>{if(r||!P||"function"!=typeof MutationObserver||w)return;const e=()=>{const e=P.getAttribute("tabindex"),t=N(),n=vh(Th(x)),r=t.indexOf(n);-1!==r&&(A.current=r),E.current.includes("floating")||n!==f.domReference.current&&0===t.length?"0"!==e&&P.setAttribute("tabindex","0"):"-1"!==e&&P.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(P,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,P,f,E,N,w]);const U=!r&&_&&(!c||!S)&&(R||c);return jn.createElement(jn.Fragment,null,U&&jn.createElement(Nv,{"data-type":"inside",ref:null==I?void 0:I.beforeInsideRef,onFocus:e=>{if(c){const e=L();bv("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(O.current=!1,Ov(e,I.portalNode)){const e=Mv()||y;null==e||e.focus()}else{var t;null==(t=I.beforeOutsideRef.current)||t.focus()}}}),!S&&F("start"),n,F("end"),U&&jn.createElement(Nv,{"data-type":"inside",ref:null==I?void 0:I.afterInsideRef,onFocus:e=>{if(c)bv(L()[0]);else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(d&&(O.current=!0),Ov(e,I.portalNode)){const e=Dv()||y;null==e||e.focus()}else{var t;null==(t=I.afterOutsideRef.current)||t.focus()}}}))}let Gv=0;let qv=()=>{};const Jv=jn.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return tv((()=>{if(n)return Gv++,1===Gv&&(qv=function(){const e=/iP(hone|ad|od)|iOS/.test(yh()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,s;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{Gv--,0===Gv&&qv()}}),[n]),jn.createElement("div",nv({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function Xv(e){return rh(e.target)&&"BUTTON"===e.target.tagName}function Zv(e){return Dh(e)}function Qv(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,p=jn.useRef(),f=jn.useRef(!1),m=jn.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==s&&(Ch(t,!0)&&c||(!n||!l||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===s&&p.current?p.current=void 0:Ch(t,!0)&&c||(!n||!l||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,!e.defaultPrevented&&u&&!Xv(e)&&(" "===e.key&&!Zv(i)&&(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!(n&&l),e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Xv(e)||Zv(i)||" "===e.key&&f.current&&(f.current=!1,r(!(n&&l),e.nativeEvent,"click"))}})),[o,i,s,c,u,r,n,d,l]);return jn.useMemo((()=>a?{reference:m}:{}),[a,m])}const eb={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tb={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nb=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function rb(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:m}=t,h=dv(),g=ev("function"==typeof l?l:()=>!1),v="function"==typeof l?g:l,b=jn.useRef(!1),y=jn.useRef(!1),{escapeKey:x,outsidePress:w}=nb(f),{escapeKey:S,outsidePress:_}=nb(m),E=jn.useRef(!1),k=ev((e=>{var t;if(!n||!a||!s||"Escape"!==e.key||E.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=h?yv(h.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),C=ev((e=>{var t;const n=()=>{var t;k(e),null==(t=Mh(e))||t.removeEventListener("keydown",n)};null==(t=Mh(e))||t.addEventListener("keydown",n)})),T=ev((e=>{var t;const n=b.current;b.current=!1;const a=y.current;if(y.current=!1,"click"===c&&a||n||"function"==typeof v&&!v(e))return;const s=Mh(e),l="["+pv("inert")+"]",u=Th(o.floating).querySelectorAll(l);let d=nh(s)?s:null;for(;d&&!uh(d);){const e=fh(d);if(uh(e)||!nh(e))break;d=e}if(u.length&&nh(s)&&!function(e){return e.matches("html,body")}(s)&&!bh(s,o.floating)&&Array.from(u).every((e=>!bh(d,e))))return;if(rh(s)&&D){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===dh(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,f=h&&yv(h.nodesRef.current,p).some((t=>{var n;return Ih(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Ih(e,o.floating)||Ih(e,o.domReference)||f)return;const m=h?yv(h.nodesRef.current,p):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),I=ev((e=>{var t;const n=()=>{var t;T(e),null==(t=Mh(e))||t.removeEventListener(c,n)};null==(t=Mh(e))||t.addEventListener(c,n)}));jn.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),E.current=!0}function u(){e=window.setTimeout((()=>{E.current=!1}),ch()?5:0)}const d=Th(o.floating);s&&(d.addEventListener("keydown",S?C:k,S),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),v&&d.addEventListener(c,_?I:T,_);let f=[];return p&&(nh(o.domReference)&&(f=hh(o.domReference)),nh(o.floating)&&(f=f.concat(hh(o.floating))),!nh(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(hh(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(d.removeEventListener("keydown",S?C:k,S),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),v&&d.removeEventListener(c,_?I:T,_),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,v,c,n,r,p,a,x,w,k,S,C,T,_,I]),jn.useEffect((()=>{b.current=!1}),[v,c]);const M=jn.useMemo((()=>({onKeyDown:k,[eb[d]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}})),[k,r,u,d]),D=jn.useMemo((()=>({onKeyDown:k,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[tb[c]]:()=>{b.current=!0}})),[k,c]);return jn.useMemo((()=>a?{reference:M,floating:D}:{}),[a,M,D])}function ob(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=av(),i=jn.useRef({}),[a]=jn.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=uv();const[l,c]=jn.useState(r.reference),u=ev(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=jn.useMemo((()=>({setPositionReference:c})),[]),p=jn.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return jn.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d})),[t,u,p,a,o,d])}function ib(e){void 0===e&&(e={});const{nodeId:t}=e,n=ob({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=jn.useState(null),[s,l]=jn.useState(null),c=(null==o?void 0:o.domReference)||i,u=jn.useRef(null),d=dv();tv((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=jn.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=jn.useState(r);Vg(p,r)||f(r);const[m,h]=jn.useState(null),[g,v]=jn.useState(null),b=jn.useCallback((e=>{e!==S.current&&(S.current=e,h(e))}),[]),y=jn.useCallback((e=>{e!==_.current&&(_.current=e,v(e))}),[]),x=i||m,w=a||g,S=jn.useRef(null),_=jn.useRef(null),E=jn.useRef(u),k=null!=l,C=Hg(l),T=Hg(o),I=Hg(c),M=jn.useCallback((()=>{if(!S.current||!_.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),Bg(S.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};D.current&&!Vg(E.current,t)&&(E.current=t,Pa.flushSync((()=>{d(t)})))}))}),[p,t,n,T,I]);zg((()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const D=jn.useRef(!1);zg((()=>(D.current=!0,()=>{D.current=!1})),[]),zg((()=>{if(x&&(S.current=x),w&&(_.current=w),x&&w){if(C.current)return C.current(x,w,M);M()}}),[x,w,M,C,k]);const O=jn.useMemo((()=>({reference:S,floating:_,setReference:b,setFloating:y})),[b,y]),j=jn.useMemo((()=>({reference:x,floating:w})),[x,w]),A=jn.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=$g(j.floating,u.x),r=$g(j.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Kg(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,u.x,u.y]);return jn.useMemo((()=>({...u,update:M,refs:O,elements:j,floatingStyles:A})),[u,M,O,j,A])}({...e,elements:{...o,...s&&{reference:s}}}),f=jn.useCallback((e=>{const t=nh(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),m=jn.useCallback((e=>{(nh(e)||null===e)&&(u.current=e,a(e)),(nh(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!nh(e))&&p.refs.setReference(e)}),[p.refs]),h=jn.useMemo((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=jn.useMemo((()=>({...p.elements,domReference:c})),[p.elements,c]),v=jn.useMemo((()=>({...p,...r,refs:h,elements:g,nodeId:t})),[p,h,g,t,r]);return tv((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),jn.useMemo((()=>({...p,context:v,refs:h,elements:g})),[p,h,g,v])}function ab(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=jn.useRef(!1),u=jn.useRef(),d=jn.useRef(!0);jn.useEffect((()=>{if(!s)return;const e=Qm(a.domReference);function t(){!n&&rh(a.domReference)&&a.domReference===vh(Th(a.domReference))&&(c.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,s]),jn.useEffect((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(c.current=!0)}}),[o,s]),jn.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const p=jn.useMemo((()=>({onPointerDown(e){Sh(e.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Mh(e.nativeEvent);if(l&&nh(t))try{if(_h()&&kh())throw Error();if(!t.matches(":focus-visible"))return}catch{if(!d.current&&!Dh(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=nh(t)&&t.hasAttribute(pv("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const s=vh(a.domReference?a.domReference.ownerDocument:document);!t&&s===a.domReference||bh(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||bh(a.domReference,s)||o||r(!1,n,"focus")}))}})),[i,a.domReference,r,l]);return jn.useMemo((()=>s?{reference:p}:{}),[s,p])}const sb="active",lb="selected";function cb(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[sb]:t,[lb]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[zv]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>(t&&Object.entries(t).forEach((t=>{let[n,i]=t;if(!o||![sb,lb].includes(n))if(0===n.indexOf("on")){var a;if(r.has(n)||r.set(n,[]),"function"==typeof i)null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))}}else e[n]=i})),e)),{})}}function ub(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=jn.useCallback((t=>cb(t,e,"reference")),t),i=jn.useCallback((t=>cb(t,e,"floating")),n),a=jn.useCallback((t=>cb(t,e,"item")),r);return jn.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}const db=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pb(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=db.get(a))?n:a,l=av(),c=null!=uv(),u=jn.useMemo((()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":r?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[s,o,c,r,l,a]),d=jn.useMemo((()=>{const e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}}),[s,o,l,a]),p=jn.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,a]);return jn.useMemo((()=>i?{reference:u,floating:d,item:p}:{}),[i,u,d,p])}function fb(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function mb(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:p,nodeId:f,tree:m}=e;return function(e){function h(){clearTimeout(o),p()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:v}=e,b=[g,v],y=Mh(e),x="mouseleave"===e.type,w=bh(d.floating,y),S=bh(d.domReference,y),_=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),k=u.split("-")[0],C=n>E.right-E.width/2,T=c>E.bottom-E.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,_),M=E.width>_.width,D=E.height>_.height,O=(M?_:E).left,j=(M?_:E).right,A=(D?_:E).top,R=(D?_:E).bottom;if(w&&(i=!0,!x))return;if(S&&(i=!1),S&&!x)return void(i=!0);if(x&&nh(e.relatedTarget)&&bh(d.floating,e.relatedTarget)||m&&yv(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=_.bottom-1||"bottom"===k&&c<=_.top+1||"left"===k&&n>=_.right-1||"right"===k&&n<=_.left+1)return h();let P=[];switch(k){case"top":P=[[O,_.top+1],[O,E.bottom-1],[j,E.bottom-1],[j,_.top+1]];break;case"bottom":P=[[O,E.top+1],[O,_.bottom-1],[j,_.bottom-1],[j,E.top+1]];break;case"left":P=[[E.right-1,R],[E.right-1,A],[_.left+1,A],[_.left+1,R]];break;case"right":P=[[_.right-1,R],[_.right-1,A],[E.left+1,A],[E.left+1,R]]}if(!fb([g,v],P)){if(i&&!I)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i)/r;return a=e,s=t,l=n,c}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}fb([g,v],function(e){let[n,r]=e;switch(k){case"top":return[[M?n+t/2:C?n+4*t:n-4*t,r+t+1],[M?n-t/2:C?n+4*t:n-4*t,r+t+1],[E.left,C||M?E.bottom-t:E.top],[E.right,C?M?E.bottom-t:E.top:E.bottom-t]];case"bottom":return[[M?n+t/2:C?n+4*t:n-4*t,r-t],[M?n-t/2:C?n+4*t:n-4*t,r-t],[E.left,C||M?E.top+t:E.bottom],[E.right,C?M?E.top+t:E.bottom:E.top+t]];case"left":{const e=[n+t+1,D?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,D?r-t/2:T?r+4*t:r-4*t];return[[T||D?E.right-t:E.left,E.top],[T?D?E.right-t:E.left:E.right-t,E.bottom],e,o]}case"right":return[[n-t,D?r+t/2:T?r+4*t:r-4*t],[n-t,D?r-t/2:T?r+4*t:r-4*t],[T||D?E.left+t:E.right,E.top],[T?D?E.left+t:E.right:E.left+t,E.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const hb={tooltip:"tooltip-413196ab","tooltip--none":"tooltip--none-01bd521a","tooltip--small":"tooltip--small-f23b2c64","tooltip--medium":"tooltip--medium-33ed6e9a","tooltip--large":"tooltip--large-84d7b683",tooltip__arrow:"tooltip__arrow-7d8214bc","tooltip__arrow--stroke":"tooltip__arrow--stroke-092e3c3e",tooltip__trigger:"tooltip__trigger-f6422045","tooltip__trigger--click":"tooltip__trigger--click-bb6703b1"},gb=10,vb=jn.default.createContext({open:!1,isMounted:!1,openWith:"hover",reference:()=>null,floating:()=>null,focusManager:{},arrowRef:{current:null},x:null,y:null,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{x:0,y:0,centerOffset:0},placement:"top",context:{}}),bb=e=>{const{getLabel:t}=m0(),n=zQ(),{children:r,placement:o="bottom",openWith:i=(n?"click":"hover"),defaultOpen:a=!1,open:s,onToggle:l,role:c="tooltip",offset:u=gb}=e,{order:d=["reference","content"],modal:p=!1,initialFocus:f=-1,...m}=e.focusManager??{},{visuallyHiddenDismiss:h=!!p&&t("close")}=m??{},[g,v]=jn.default.useState(a),b=jn.default.useRef(null),y=l&&typeof s<"u"?s:g,x=PQ(),{x:w,y:S,refs:_,strategy:E,context:k,middlewareData:C,placement:T}=ib({placement:o,open:y,onOpenChange:e=>{typeof s>"u"&&v(e),null==l||l(e)},middleware:[Wg(u),qg(),Gg({padding:8}),Jg({element:b,padding:4})],whileElementsMounted:Pg}),{getReferenceProps:I,getFloatingProps:M}=ub([gv(k,{handleClose:mb(),enabled:"hover"===i}),Qv(k),ab(k,{enabled:"hover"===i}),pb(k,{role:c}),rb(k,{outsidePressEvent:"click"===i?"mousedown":"pointerdown"})]);return(0,Pn.jsx)(vb.Provider,{value:{open:y,isMounted:x,openWith:i,reference:_.setReference,floating:_.setFloating,arrowRef:b,focusManager:{order:d,initialFocus:f,modal:p,visuallyHiddenDismiss:h,...m},x:w,y:S,strategy:E,getReferenceProps:I,getFloatingProps:M,arrow:{...C.arrow},context:k,placement:T},children:r})},yb=e=>{const{children:t,maxWidth:n="medium",cardProps:r,className:o}=e,{open:i,x:a,y:s,strategy:l,focusManager:c,floating:u,arrowRef:d,getFloatingProps:p,placement:f,context:m}=jn.default.useContext(vb),[h,g]=Vm(null==r?void 0:r.border),v=()=>h&&g?`var(--color-${g})`:"none",b="none"!==v();return(0,Pn.jsx)(Uv,{"data-name":"tooltip",children:(()=>{const e=(0,Pn.jsx)(Wv,{...c,context:m,children:(0,Pn.jsxs)("div",{...p({ref:u,style:{position:l,left:a??0,top:s??0},className:Na(hb.tooltip,o,{[hb[`tooltip--${n}`]]:n})}),"data-placement":f,children:[(0,Pn.jsx)(sv,{ref:e=>d.current=e,context:m,fill:null!=r&&r.background?`var(--color-${null==r?void 0:r.background})`:"var(--color-bg-default)",stroke:v(),strokeWidth:b?4:0,className:Na(hb.tooltip__arrow,{[hb["tooltip__arrow--stroke"]]:b}),height:7,width:14}),(0,Pn.jsx)($m,{padding:.5,borderless:!0,...r,children:(0,Pn.jsx)(Ym,{children:t})})]})});return i?e:null})()})},xb=e=>{const{children:t}=e,{getLabel:n}=m0(),{getReferenceProps:r,reference:o,openWith:i}=jn.default.useContext(vb),a=Xg([o,t.ref]);return jn.default.cloneElement(t,r({ref:a,tabIndex:0,label:t.type===Em?n("tooltip.icon-trigger"):void 0,...t.props,className:Na(hb.tooltip__trigger,{[hb["tooltip__trigger--click"]]:"click"===i},t.props.className)}))},wb="header__dropdown-cb8faff9",Sb="header__dropdown--open-03680708",_b=e=>{const{children:t,triggerProps:n,defaultOpen:r,open:o,onToggle:i,shouldAnimate:a,tooltipProps:s}=e,[l,c]=jn.default.useState(r),[u,d]=jn.default.useState(gb),{headerElement:p}=jn.default.useContext(Um),f=jn.default.useRef(null);jn.default.useEffect((()=>{if(null!=p&&p.current&&null!=f&&f.current){const e=p.current.getBoundingClientRect(),t=f.current.getBoundingClientRect(),n=e.bottom-t.bottom;d(n)}}),[p,f,t]);const m=void 0!==o?o:l;return(0,Pn.jsxs)(bb,{offset:u,openWith:"click",role:"dialog",onToggle:e=>{c(e),null==i||i(e)},open:m,children:[(0,Pn.jsx)(xb,{children:(0,Pn.jsx)(Mm,{...n,ref:f,className:Na(wb,n.className,{[Sb]:a&&m})})}),(0,Pn.jsx)(yb,{...s,cardProps:{...null==s?void 0:s.cardProps,border:"top-primary-active-subtle",borderless:!1,background:"bg-muted"},children:t})]})},Eb={modal:"modal-11cfca5e","modal--center":"modal--center-b671c09c","modal--no-overlay":"modal--no-overlay-a990d10a",modal__inner:"modal__inner-10a95cee","modal--right":"modal--right-d7b9213c","modal--bottom":"modal--bottom-b9033478","modal--10":"modal--10-bc4c5908","modal--8":"modal--8-46477dbb","modal--6":"modal--6-cd8246bc",modal__card:"modal__card-f5ca2013","close-button":"close-button-9544f148"},kb=jn.default.createContext({isOpen:!1,reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),closeModal:()=>null,context:{},isDismissable:!0,escapeKey:!0,outsidePress:!0}),Cb=e=>{const{children:t,defaultOpen:n=!1,onToggle:r,isDismissable:o=!0,escapeKey:i=!0,outsidePress:a=!0}=e,[s,l]=jn.default.useState(n),c=r&&typeof e.open<"u"?e.open:s,{refs:u,context:d}=ib({open:c,onOpenChange:e=>e?h():m()}),{getReferenceProps:p,getFloatingProps:f}=ub([Qv(d),pb(d),rb(d,{enabled:o,escapeKey:i,outsidePress:a})]),m=()=>{typeof e.open>"u"&&l(!1),null==r||r(!1)},h=()=>{typeof e.open>"u"&&l(!0),null==r||r(!0)};return(0,Pn.jsx)(kb.Provider,{value:{isOpen:c,reference:u.setReference,floating:u.setFloating,getReferenceProps:p,getFloatingProps:f,closeModal:m,context:d,isDismissable:o,escapeKey:i,outsidePress:a},children:t})},Tb=e=>{const{children:t}=e,{closeModal:n}=jn.default.useContext(kb);return jn.default.cloneElement(t,{onClick:()=>{var e,r;null==(r=(e=t.props).onClick)||r.call(e),n()}})},Ib=e=>{const{children:t,size:n=6,cardProps:r={},hideCloseButton:o,position:i,lockScroll:a=!0,trapFocus:s=!0,returnFocus:l=!0,overlay:c,visuallyHiddenDismiss:u=!1}=e,{getLabel:d}=m0(),p=e["aria-labelledby"],f=e["aria-describedby"],{isOpen:m,floating:h,getFloatingProps:g,context:v,isDismissable:b}=jn.default.useContext(kb),y=jn.default.useMemo((()=>{let e=!1;const n=e=>e.type.displayName;return o?t:jn.default.Children.map(t,((t,r)=>e||!jn.default.isValidElement(t)||"CardHeader"!==n(t)&&"CardContent"!==n(t)?t:(e=!0,jn.default.cloneElement(t,{...t.props,children:(0,Pn.jsxs)(Pn.Fragment,{children:[(0,Pn.jsx)(Tb,{children:(0,Pn.jsx)(M0,{size:"large",className:Eb["close-button"]})}),t.props.children]})}))))}),[t,d,o]);return(0,Pn.jsx)(Uv,{"data-name":"modal",children:m&&(0,Pn.jsx)(Jv,{lockScroll:a,className:Na(Eb.modal,Eb[`modal--${n}`],Eb[`modal--${i}`],{[Eb["modal--no-overlay"]]:"none"===c}),children:(0,Pn.jsx)(Wv,{context:v,closeOnFocusOut:!s&&b,visuallyHiddenDismiss:u?d("modal.close"):void 0,returnFocus:l,modal:s,children:(0,Pn.jsx)("div",{...g({ref:h,className:Eb.modal__inner,"aria-labelledby":p,"aria-describedby":f,"aria-modal":s}),children:(0,Pn.jsx)($m,{...r,className:Na(Eb.modal__card,null==r?void 0:r.className),children:y})})})})})},Mb=e=>{const{children:t}=e,{getReferenceProps:n,reference:r}=jn.default.useContext(kb);return jn.default.cloneElement(t,n({ref:r,...t.props}))},Db="header-modal__close-824b7dc8",Ob=e=>{const{triggerProps:t,defaultOpen:n,open:r,onToggle:o,children:i,ariaLabelledby:a}=e,{getLabel:s}=m0();return(0,Pn.jsxs)(Cb,{defaultOpen:n,open:r,onToggle:o,children:[(0,Pn.jsx)(Mb,{children:(0,Pn.jsx)(Mm,{...t})}),(0,Pn.jsx)(Ib,{"aria-labelledby":a,hideCloseButton:!0,position:"right",children:(0,Pn.jsxs)(Ym,{padding:0,children:[(0,Pn.jsx)($m,{borderless:!0,background:"primary-highlight-subtle",padding:.5,borderRadius:!1,children:(0,Pn.jsx)(Ym,{children:(0,Pn.jsx)(ks,{element:"div",modifiers:"right",children:(0,Pn.jsx)(Tb,{children:(0,Pn.jsx)(M0,{title:s("modal.close"),size:"large",className:Db})})})})}),(0,Pn.jsx)($m,{border:"top-border-default",borderRadius:!1,padding:0,children:(0,Pn.jsx)(Ym,{children:i})})]})})]})},jb=e=>{const{languages:t}=e,n=Ss(["desktop","tablet"]),{getLabel:r}=m0(),[o,i]=jn.default.useState(!1),a=null==t?void 0:t.find((e=>e.isSelected)),s={children:null==a?void 0:a.label,"aria-label":`${r("header.select-lang")} ${(null==a?void 0:a["aria-label"])??(null==a?void 0:a.label)}`,visualType:n?"link":"tertiary",iconRight:n?{name:"expand_more",color:"primary",size:24}:void 0},l=({isSelected:e,onClick:t,label:n,"aria-label":r},o=!0)=>(0,Pn.jsx)(Mm,{visualType:o?"link":e?"primary":"tertiary","aria-current":e,"aria-label":r,onClick:()=>(e=>{null==e||e({onToggle:i})})(t),children:n}),c=(0,Pn.jsxs)("div",{children:[(0,Pn.jsx)(ks,{color:"muted",modifiers:"small",children:r("header.select-lang")}),(0,Pn.jsx)(_b,{shouldAnimate:!0,open:o,onToggle:i,tooltipProps:{cardProps:{padding:1}},triggerProps:s,children:(0,Pn.jsx)(N0,{verticalSpacing:{size:.75},element:"ul",children:(null==t?void 0:t.map((e=>(0,Pn.jsx)(P0,{children:l(e)},e.label))))||[]})})]}),u=(0,Pn.jsx)(Ob,{ariaLabelledby:"header-language-modal-label",open:o,onToggle:i,triggerProps:s,children:(0,Pn.jsx)($m,{borderless:!0,children:(0,Pn.jsxs)(Ym,{children:[(0,Pn.jsx)(Cs,{id:"header-language-modal-label",className:"sr-only",children:r("header.select-lang")}),(0,Pn.jsx)(x0,{alignItems:"center",element:"ul",children:null==t?void 0:t.map((e=>(0,Pn.jsx)(w0,{width:"auto",children:l(e,!1)},e.label)))})]})})});return n?c:u};jb.displayName="HeaderLanguage";const Ab={tag:"tag-de7cd582","tag--default":"tag--default-77443d27","tag--type-ghost":"tag--type-ghost-80dfabdb","tag--large":"tag--large-81928b3e","tag--color-default":"tag--color-default-9aabde81","tag--type-default":"tag--type-default-328f991f","tag--type-secondary":"tag--type-secondary-495a8ed8","tag--color-accent":"tag--color-accent-798040f8","tag--type-borderless":"tag--type-borderless-1c5fcca7","tag--type-invisible":"tag--type-invisible-c8d11eb5","tag--icon-only":"tag--icon-only-1f412944","tag--disabled":"tag--disabled-06b14065","tag--with-arrow":"tag--with-arrow-a7d0d694","tag--color-primary":"tag--color-primary-d4a64cd4","tag--color-positive":"tag--color-positive-f823c0df","tag--color-warning":"tag--color-warning-3efdfe52","tag--color-important":"tag--color-important-81499159","tag--status-error":"tag--status-error-30c88b17","tag--status-success":"tag--status-success-e31be3e2","tag--status-inactive":"tag--status-inactive-09947563","tag--rounded":"tag--rounded-e9419f54"},Rb=(0,jn.forwardRef)(((e,t)=>{const{children:n,size:r,className:o,title:i,color:a="default",status:s,type:l="default",rounded:c=!1,hasArrow:u=!1,isLoading:d=!1,isDisabled:p=!1,iconOnly:f=!1,id:m}=e,h=d?V0:i?"abbr":"div",g=Na(Ab.tag,o,{[Ab[`tag--${r}`]]:r},{[Ab[`tag--type-${l}`]]:l},{[Ab[`tag--color-${a}`]]:a},{[Ab[`tag--status-${s}`]]:s},{[Ab["tag--rounded"]]:c},{[Ab["tag--icon-only"]]:f},{[Ab["tag--disabled"]]:p},{[Ab["tag--with-arrow"]]:u&&!c});return(0,Pn.jsx)(h,{id:m,"data-name":"tag",className:g,title:i,ref:t,children:n})}));Rb.displayName="Tag";const Pb="header-role-collapse-7664165f",Nb="header-role-wrapper-c65bcd63",Lb="header-role-children-3fdd2c2c",Fb=e=>{const{renderModal:t=!1,...n}=e,[r,o]=jn.default.useState(!1);return t?(0,Pn.jsx)(Bb,{...n,open:r,onToggle:o}):(0,Pn.jsx)(Ub,{...n,open:r,onToggle:o})};Fb.displayName="HeaderRole";const Ub=e=>{const{getLabel:t}=m0(),{children:n,open:r,onToggle:o,primaryInfo:i,secondaryInfo:a,label:s=t("header.role-label")}=e,l="function"==typeof n?n({onToggle:o}):n,c=(0,Pn.jsx)(_b,{shouldAnimate:!0,open:r,onToggle:o,tooltipProps:{cardProps:{padding:0},maxWidth:"medium"},triggerProps:{children:i,"aria-label":`${s??""} ${a??""} ${i??""}`,visualType:"link",iconRight:{name:"expand_more",color:"primary",size:24}},children:(0,Pn.jsx)("div",{className:Nb,children:(0,Pn.jsx)(F0,{fadeSize:0,children:(0,Pn.jsx)("div",{className:Lb,children:l})})})});return(0,Pn.jsxs)("div",{children:[s===t("header.role-label")?(0,Pn.jsx)("div",{children:(0,Pn.jsx)(Rb,{color:"primary",type:"secondary",children:s})}):(0,Pn.jsxs)(ks,{color:"muted",modifiers:["bold","small"],children:[s,!!a&&(0,Pn.jsxs)(Pn.Fragment,{children:[" ",(0,Pn.jsxs)(ks,{element:"span",modifiers:["small","normal"],children:[(0,Pn.jsx)("span",{style:{color:"var(--color-border-default)"},children:"|"})," ",a]})]})]}),l?c:i]})},Bb=e=>{const{getLabel:t}=m0(),{children:n,open:r,onToggle:o,primaryInfo:i,secondaryInfo:a,label:s=t("header.role-label")}=e,l=(0,Pn.jsxs)(ks,{element:"span",color:"muted",modifiers:"bold",children:[s," ",i,a&&(0,Pn.jsx)(ks,{element:"span",modifiers:"normal",children:` | ${a}`})]}),c="function"==typeof n?n({onToggle:o}):n;return(0,Pn.jsx)($m,{background:"bg-muted",borderRadius:!1,borderless:!0,children:(0,Pn.jsx)(Ym,{padding:0,children:c?(0,Pn.jsx)(Lm,{id:"role-collapse",open:r,onToggle:o,className:Pb,hideCollapseText:!0,title:l,children:(0,Pn.jsx)("div",{className:Nb,children:(0,Pn.jsx)(F0,{fadeSize:0,children:(0,Pn.jsx)("div",{className:Lb,children:c})})})}):(0,Pn.jsx)("div",{className:Lb,children:l})})})},zb=e=>{const{children:t,onActionClick:n,closeOnAction:r=!0,iconName:o}=e,[i,a]=jn.default.useState(!1),s=Ss(["desktop"]),l=Ss(["mobile"]),{getLabel:c}=m0(),{headerType:u}=jn.default.useContext(Um),d={children:c("header.settings"),visualType:"tertiary",icon:{name:o||"account_circle",color:"primary",size:36}};if("public"===u)return(0,Pn.jsx)(Mm,{icon:l?{name:"login",color:"primary",size:24}:void 0,visualType:l?"tertiary":"primary",onClick:n,children:c("header.login")});const p="function"==typeof t?t({onToggle:a}):t;if(!p)return(0,Pn.jsx)(Mm,{icon:{name:"logout",color:"primary",size:24},visualType:"tertiary",onClick:n,children:c("header.logout")});const f=()=>(0,Pn.jsx)(Mm,{onClick:()=>{n(),r&&a(!1)},iconLeft:"logout",visualType:"link",children:c("header.logout")}),m=(0,Pn.jsx)(_b,{open:i,onToggle:a,tooltipProps:{cardProps:{padding:1}},triggerProps:d,children:(0,Pn.jsxs)(k0,{size:1,children:[p,(0,Pn.jsx)($0,{isStretched:!0}),(0,Pn.jsx)(f,{})]})}),h=(0,Pn.jsxs)(Ob,{open:i,onToggle:a,ariaLabelledby:"header-settings-modal-label",triggerProps:d,children:[(0,Pn.jsx)(Cs,{id:"header-settings-modal-label",className:"sr-only",children:c("header.settings")}),p,(0,Pn.jsx)($0,{isStretched:!0}),(0,Pn.jsx)($m,{borderless:!0,children:(0,Pn.jsx)(Ym,{children:(0,Pn.jsx)(f,{})})}),(0,Pn.jsx)($0,{isStretched:!0})]});return s?m:h};zb.displayName="HeaderSettings";jn.default.createContext({activeStep:0,allowStepLabelClick:!0,handleActiveStepChange:()=>null});function Vb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Vb(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Kb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Vb(e))&&(r&&(r+=" "),r+=t);return r}function $b(e){return dp(e)}function Hb(e){return ad("MuiSvgIcon",e)}sd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Wb=vm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Xc(n.color)}`],t[`fontSize${Xc(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Gb=jn.forwardRef((function(e,t){const n=$b({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Ks(n,Yb),f=jn.isValidElement(r)&&"svg"===r.type,m=Ts({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return np({root:["root","inherit"!==t&&`color${Xc(t)}`,`fontSize${Xc(n)}`]},Hb,r)})(m);return(0,Pn.jsxs)(Wb,Ts({as:a,className:od(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,u?(0,Pn.jsx)("title",{children:u}):null]}))}));function qb(e,t){function n(n,r){return(0,Pn.jsx)(Gb,Ts({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Gb.muiName,jn.memo(jn.forwardRef(n))}function Jb(e,t){return(Jb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jb(e,t)}function Zb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}Gb.muiName="SvgIcon";const Qb=!1;const ey=jn.default.createContext(null);var ty=function(e){return e.scrollTop},ny="unmounted",ry="exited",oy="entering",iy="entered",ay="exiting",sy=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=ry,r.appearStatus=oy):o=iy:o=t.unmountOnExit||t.mountOnEnter?ny:ry,r.state={status:o},r.nextCallback=null,r}Xb(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ny?{status:ry}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oy&&n!==iy&&(t=oy):(n===oy||n===iy)&&(t=ay)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===oy){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Pa.default.findDOMNode(this);n&&ty(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ry&&this.setState({status:ny})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Pa.default.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Qb?this.safeSetState({status:iy},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:oy},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:iy},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Pa.default.findDOMNode(this);t&&!Qb?(this.props.onExit(r),this.safeSetState({status:ay},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ry},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ry},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Pa.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ny)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ks(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return jn.default.createElement(ey.Provider,{value:null},"function"==typeof n?n(e,r):jn.default.cloneElement(jn.default.Children.only(n),r))},t}(jn.default.Component);function ly(){}sy.contextType=ey,sy.propTypes={},sy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ly,onEntering:ly,onEntered:ly,onExit:ly,onExiting:ly,onExited:ly},sy.UNMOUNTED=ny,sy.EXITED=ry,sy.ENTERING=oy,sy.ENTERED=iy,sy.EXITING=ay;var cy=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Zb(e.className,t):e.setAttribute("class",Zb(e.className&&e.className.baseVal||"",t))}(e,t)}))},uy=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Xb(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&ty(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}(e,t)}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&cy(e,r),o&&cy(e,o),i&&cy(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Ks(e,["classNames"]);return jn.default.createElement(sy,Ts({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(jn.default.Component);function dy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function py(e,t){var n=Object.create(null);return e&&jn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,jn.isValidElement)(e)?t(e):e}(e)})),n}function fy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function my(e,t){return py(e.children,(function(n){return(0,jn.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:fy(n,"appear",e),enter:fy(n,"enter",e),exit:fy(n,"exit",e)})}))}function hy(e,t,n){var r=py(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,jn.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],u=(0,jn.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,jn.isValidElement)(c)&&(o[i]=(0,jn.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:fy(a,"exit",e),enter:fy(a,"enter",e)})):o[i]=(0,jn.cloneElement)(a,{in:!1}):o[i]=(0,jn.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:fy(a,"exit",e),enter:fy(a,"enter",e)})}})),o}uy.defaultProps={classNames:""},uy.propTypes={};var gy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},vy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(dy(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xb(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?my(e,r):hy(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=py(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ts({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ks(e,["component","childFactory"]),o=this.state.contextValue,i=gy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?jn.default.createElement(ey.Provider,{value:o},i):jn.default.createElement(ey.Provider,{value:o},jn.default.createElement(t,r,i))},t}(jn.default.Component);vy.propTypes={},vy.defaultProps={component:"div",childFactory:function(e){return e}};const by=e=>e.scrollTop;function yy(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function xy(e){return ad("MuiPaper",e)}sd("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wy=["className","component","elevation","square","variant"],Sy=vm("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ts({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ts({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${wp("#fff",bm(t.elevation))}, ${wp("#fff",bm(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),_y=jn.forwardRef((function(e,t){const n=$b({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Ks(n,wy),c=Ts({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return np({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},xy,o)})(c);return(0,Pn.jsx)(Sy,Ts({as:o,ownerState:c,className:od(u.root,r),ref:t},l))}));const Ey=sd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ky=["center","classes","className"];let Cy,Ty,Iy,My,Dy=e=>e;const Oy=Ic(Cy||(Cy=Dy`
|
|
2
|
+
import*as e from"react";import*as t from"@reduxjs/toolkit";import*as n from"axios";import*as r from"react-intl";import*as o from"ehr-components";import*as i from"react-dom";import*as a from"dayjs";import*as s from"react-redux";import*as l from"moment";import*as c from"reactstrap";var u={20:(e,t,n)=>{var r=n(649),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},649:t=>{t.exports=e},848:(e,t,n)=>{e.exports=n(20)},942:(e,t)=>{var n;!function(){var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},d={};function p(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);const f=(e=>{var t={};return p.d(t,e),t})({combineReducers:()=>t.combineReducers,createAsyncThunk:()=>t.createAsyncThunk,createSelector:()=>t.createSelector,createSlice:()=>t.createSlice});const m=(0,f.createSlice)({name:"filter",initialState:{classifiers:{},documentTypes:[],institutionUsers:[],institutions:[],usageClassifierTypes:[]},reducers:{classifiersLoaded:(e,t)=>{e.classifiers=t.payload},documentTypesLoaded:(e,t)=>{e.documentTypes=t.payload},institutionUsersLoaded:(e,t)=>{e.institutionUsers=t.payload},institutionsLoaded:(e,t)=>{e.institutions=t.payload},usageClassifierTypesLoaded:(e,t)=>{e.usageClassifierTypes=t.payload}}}),{classifiersLoaded:h,documentTypesLoaded:g,institutionUsersLoaded:v,institutionsLoaded:b,usageClassifierTypesLoaded:y}=m.actions,x=m.reducer;const w=(0,f.createSlice)({name:"documents",initialState:{workingDocuments:[],signingDocuments:[],finishedDocuments:[],allowedDocumentTypesToStart:[]},reducers:{workingDocumentsLoaded:(e,t)=>{e.workingDocuments=t.payload},signingDocumentsLoaded:(e,t)=>{e.signingDocuments=t.payload},finishedDocumentsLoaded:(e,t)=>{e.finishedDocuments=t.payload},deleteDocument(e,t){e.workingDocuments=e.workingDocuments.filter((e=>e.docNr!==t.payload))},allowedDocumentTypesLoaded:(e,t)=>{e.allowedDocumentTypesToStart=t.payload}}}),S=((0,f.createSelector)((e=>e.myViewsPage.myDocuments.workingDocuments),(e=>e)),(0,f.createSelector)((e=>e.myViewsPage.myDocuments.finishedDocuments),(e=>e))),{workingDocumentsLoaded:_,signingDocumentsLoaded:E,finishedDocumentsLoaded:k,deleteDocument:C,allowedDocumentTypesLoaded:T}=w.actions,I=w.reducer;const M=(0,f.createSlice)({name:"proceedings",initialState:{myProceedings:[],proceedingsToComment:[],incomingDocuments:[]},reducers:{myProceedingsLoaded:(e,t)=>{e.myProceedings=t.payload},proceedingsToCommentLoaded:(e,t)=>{e.proceedingsToComment=t.payload},incomingDocumentsLoaded:(e,t)=>{e.incomingDocuments=t.payload}}}),{myProceedingsLoaded:D,proceedingsToCommentLoaded:O,incomingDocumentsLoaded:j}=((0,f.createSelector)((e=>e.myViewsPage.myProceedings.myProceedings),(e=>e)),(0,f.createSelector)((e=>e.myViewsPage.myProceedings.incomingDocuments),(e=>e)),M.actions),{actions:A}=M,R=M.reducer;const P=(0,f.createSlice)({name:"myOperations",initialState:{myOperations:[],toCommentOperations:[],operationInvitations:[]},reducers:{myOperationsLoaded:(e,t)=>{e.myOperations=t.payload},toCommentOperationsLoaded:(e,t)=>{e.toCommentOperations=t.payload},operationInvitationsLoaded:(e,t)=>{e.operationInvitations=t.payload}}}),{myOperationsLoaded:N,toCommentOperationsLoaded:L,operationInvitationsLoaded:F}=P.actions,U=P.reducer;const B=(0,f.createSlice)({name:"detailSearch",initialState:{buildings:[],documents:[],proceedings:[]},reducers:{buildingsLoaded:(e,t)=>{e.buildings=t.payload},documentsLoaded:(e,t)=>{e.documents=t.payload},proceedingsLoaded:(e,t)=>{e.proceedings=t.payload}}}),{buildingsLoaded:z,documentsLoaded:V,proceedingsLoaded:K}=B.actions,$=B.reducer,H={notices:[]},Y=(0,f.createSlice)({name:"notification",initialState:H,reducers:{setNotifications:(e,t)=>{e.notices=t.payload},removeNotification:(e,t)=>{const n=e.notices.filter((e=>e.id!==t.payload));e.notices=n},cleanState:e=>H}}),W=(0,f.createSelector)((e=>e.myViewsPage.notifications.notices),(e=>e)),{cleanState:G,setNotifications:q,removeNotification:J}=Y.actions,X=Y.reducer;const Z=(e=>{var t={};return p.d(t,e),t})({default:()=>n.default}),Q="https://devkluster.ehr.ee".replace(/\/+$/,"");class ee{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Q,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class te extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const ne="https://example.com",re=function(e,t,n){if(null==n)throw new te(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},oe=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const e of r)for(const n in e)if(Array.isArray(e[n])){t.delete(n);for(const r of e[n])t.append(n,r)}else t.set(n,e[n]);e.search=t.toString()},ie=function(e){return e.pathname+e.search+e.hash},ae=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||i)+e.url};return o.request(a)}},se=function(e){const t=function(e){return{getAllDocumentTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/alldocumenttypes",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getBusinessTypesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/businesstypelist",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getClassifierByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re("getClassifierByType","classifierType",t);const r="/classifier/{classifierType}".replace("{classifierType}",encodeURIComponent(String(t))),o=new URL(r,ne);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};oe(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:ie(o),options:a}},getClassifiersByRelatedType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re("getClassifiersByRelatedType","relatedClassifierType",t);const r="/classifier/related-type/{relatedClassifierType}".replace("{relatedClassifierType}",encodeURIComponent(String(t))),o=new URL(r,ne);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};oe(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:ie(o),options:a}},getClassifiersByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};re("getClassifiersByType","classifierTypesCommaSeparated",t);const r="/classifiers/{classifierTypesCommaSeparated}".replace("{classifierTypesCommaSeparated}",encodeURIComponent(String(t))),o=new URL(r,ne);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};oe(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:ie(o),options:a}},getDocumentTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/documenttypes",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getFileTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/filetypes",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getUsageClassifierTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/classifier/usage",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}},getUserRolesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/userroleslist",ne);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};oe(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:ie(n),options:o}}}}(e);return{async getAllDocumentTypes(n){const r=await t.getAllDocumentTypes(n);return ae(r,Z.default,Q,e)},async getBusinessTypesList(n){const r=await t.getBusinessTypesList(n);return ae(r,Z.default,Q,e)},async getClassifierByType(n,r){const o=await t.getClassifierByType(n,r);return ae(o,Z.default,Q,e)},async getClassifiersByRelatedType(n,r){const o=await t.getClassifiersByRelatedType(n,r);return ae(o,Z.default,Q,e)},async getClassifiersByType(n,r){const o=await t.getClassifiersByType(n,r);return ae(o,Z.default,Q,e)},async getDocumentTypes(n){const r=await t.getDocumentTypes(n);return ae(r,Z.default,Q,e)},async getFileTypes(n){const r=await t.getFileTypes(n);return ae(r,Z.default,Q,e)},async getHealth(n){const r=await t.getHealth(n);return ae(r,Z.default,Q,e)},async getUsageClassifierTypes(n){const r=await t.getUsageClassifierTypes(n);return ae(r,Z.default,Q,e)},async getUserRolesList(n){const r=await t.getUserRolesList(n);return ae(r,Z.default,Q,e)}}};class le extends ee{getAllDocumentTypes(e){return se(this.configuration).getAllDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getBusinessTypesList(e){return se(this.configuration).getBusinessTypesList(e).then((e=>e(this.axios,this.basePath)))}getClassifierByType(e,t){return se(this.configuration).getClassifierByType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByRelatedType(e,t){return se(this.configuration).getClassifiersByRelatedType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByType(e,t){return se(this.configuration).getClassifiersByType(e,t).then((e=>e(this.axios,this.basePath)))}getDocumentTypes(e){return se(this.configuration).getDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getFileTypes(e){return se(this.configuration).getFileTypes(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return se(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getUsageClassifierTypes(e){return se(this.configuration).getUsageClassifierTypes(e).then((e=>e(this.axios,this.basePath)))}getUserRolesList(e){return se(this.configuration).getUserRolesList(e).then((e=>e(this.axios,this.basePath)))}}class ce{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const ue="http://localhost:8080".replace(/\/+$/,"");class de{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ue,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class pe extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const fe="https://example.com",me=function(e,t,n){if(null==n)throw new pe(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function he(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>he(e,t,n))):Object.keys(t).forEach((r=>he(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const ge=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];he(t,r),e.search=t.toString()},ve=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},be=function(e){return e.pathname+e.search+e.hash},ye=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||i)+e.url};return o.request(a)}};const xe=function(e){const t=function(e){return{getJurKovPersons:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur/kov",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getJurPersonCoordRelJurs:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonCoordRelJurs","personId",t);const r="/person/jur/{personId}/coord".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUserPossibleProceedingSupervisorsByEHAKCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUserPossibleProceedingSupervisorsByEHAKCode","eHAKCode",t);const r="/user/possiblesupervisors/{EHAKCode}".replace("{EHAKCode}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUserPossibleProceedingSupervisorsByIdAndEHAKCode:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","id",t),me("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","eHAKCode",n);const o="/user/possiblesupervisors/{id}/{EHAKCode}".replace("{id}",encodeURIComponent(String(t))).replace("{EHAKCode}",encodeURIComponent(String(n))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ge(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:be(i),options:s}},getUserPossibleProceedingSupervisorsByJurId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUserPossibleProceedingSupervisorsByJurId","personId",t);const r="/user/jur/possiblesupervisors/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}}}}(e);return{async getJurKovPersons(n){const r=await t.getJurKovPersons(n);return ye(r,Z.default,ue,e)},async getJurPersonCoordRelJurs(n,r){const o=await t.getJurPersonCoordRelJurs(n,r);return ye(o,Z.default,ue,e)},async getUserPossibleProceedingSupervisorsByEHAKCode(n,r){const o=await t.getUserPossibleProceedingSupervisorsByEHAKCode(n,r);return ye(o,Z.default,ue,e)},async getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o){const i=await t.getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o);return ye(i,Z.default,ue,e)},async getUserPossibleProceedingSupervisorsByJurId(n,r){const o=await t.getUserPossibleProceedingSupervisorsByJurId(n,r);return ye(o,Z.default,ue,e)}}};class we extends de{getJurKovPersons(e){return xe(this.configuration).getJurKovPersons(e).then((e=>e(this.axios,this.basePath)))}getJurPersonCoordRelJurs(e,t){return xe(this.configuration).getJurPersonCoordRelJurs(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByEHAKCode(e,t){return xe(this.configuration).getUserPossibleProceedingSupervisorsByEHAKCode(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n){return xe(this.configuration).getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByJurId(e,t){return xe(this.configuration).getUserPossibleProceedingSupervisorsByJurId(e,t).then((e=>e(this.axios,this.basePath)))}}const Se=function(e){const t=function(e){return{addAllyksusToJurPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/person/jur/addAllyksus",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},addPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/person",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},deletePerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("deletePerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},findKovsAndJurPersonsInTheSameAdministrativeDivision:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};me("findKovsAndJurPersonsInTheSameAdministrativeDivision","regNameOrCode",t);const i="/person/kovs-and-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),a=new URL(i,fe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={},u={};void 0!==n&&(u.searchFromAll=n),c["Content-Type"]="application/json",ge(a,u);let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...o.headers},l.data=ve(r,l,e),{url:be(a),options:l}},findPublicSectorInstitutions:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("findPublicSectorInstitutions","regNameOrCode",t);const o="/person/public-sector-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}},findRolesByDbName:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/personroles",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getAllActiveInstitutions:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getAllClassifierBusinessTypeDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur/businessTypes",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getJurPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPerson","personId",t);const r="/person/jur/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurPersonAncestors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonAncestors","jurPersonId",t);const r="/person/jur/ancestor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurPersonSuccessors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonSuccessors","jurPersonId",t);const r="/person/jur/successor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurPersonsByEhakCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurPersonsByEhakCode","ehakCode",t);const r="/person/jur/byEhakCode/{ehakCode}".replace("{ehakCode}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getPerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getPersonDetails:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/details",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},refreshUpdateArPersonFromAR:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("refreshUpdateArPersonFromAR","regCode",t);const r="/person/jur/refresh/{regCode}".replace("{regCode}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},removeYlemyksusReference:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("removeYlemyksusReference","allyksusId",t);const r="/person/jur/removeYlemyksusReference/{allyksusId}".replace("{allyksusId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"PUT",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},updatePerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("updatePerson","personId",t);const o="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}}}}(e);return{async addAllyksusToJurPerson(n,r){const o=await t.addAllyksusToJurPerson(n,r);return ye(o,Z.default,ue,e)},async addPerson(n,r){const o=await t.addPerson(n,r);return ye(o,Z.default,ue,e)},async deletePerson(n,r){const o=await t.deletePerson(n,r);return ye(o,Z.default,ue,e)},async findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i){const a=await t.findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i);return ye(a,Z.default,ue,e)},async findPublicSectorInstitutions(n,r,o){const i=await t.findPublicSectorInstitutions(n,r,o);return ye(i,Z.default,ue,e)},async findRolesByDbName(n){const r=await t.findRolesByDbName(n);return ye(r,Z.default,ue,e)},async getAllActiveInstitutions(n){const r=await t.getAllActiveInstitutions(n);return ye(r,Z.default,ue,e)},async getAllClassifierBusinessTypeDtos(n){const r=await t.getAllClassifierBusinessTypeDtos(n);return ye(r,Z.default,ue,e)},async getJurPerson(n,r){const o=await t.getJurPerson(n,r);return ye(o,Z.default,ue,e)},async getJurPersonAncestors(n,r){const o=await t.getJurPersonAncestors(n,r);return ye(o,Z.default,ue,e)},async getJurPersonSuccessors(n,r){const o=await t.getJurPersonSuccessors(n,r);return ye(o,Z.default,ue,e)},async getJurPersonsByEhakCode(n,r){const o=await t.getJurPersonsByEhakCode(n,r);return ye(o,Z.default,ue,e)},async getPerson(n,r){const o=await t.getPerson(n,r);return ye(o,Z.default,ue,e)},async getPersonDetails(n){const r=await t.getPersonDetails(n);return ye(r,Z.default,ue,e)},async refreshUpdateArPersonFromAR(n,r){const o=await t.refreshUpdateArPersonFromAR(n,r);return ye(o,Z.default,ue,e)},async removeYlemyksusReference(n,r){const o=await t.removeYlemyksusReference(n,r);return ye(o,Z.default,ue,e)},async updatePerson(n,r,o){const i=await t.updatePerson(n,r,o);return ye(i,Z.default,ue,e)}}};class _e extends de{addAllyksusToJurPerson(e,t){return Se(this.configuration).addAllyksusToJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}addPerson(e,t){return Se(this.configuration).addPerson(e,t).then((e=>e(this.axios,this.basePath)))}deletePerson(e,t){return Se(this.configuration).deletePerson(e,t).then((e=>e(this.axios,this.basePath)))}findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r){return Se(this.configuration).findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r).then((e=>e(this.axios,this.basePath)))}findPublicSectorInstitutions(e,t,n){return Se(this.configuration).findPublicSectorInstitutions(e,t,n).then((e=>e(this.axios,this.basePath)))}findRolesByDbName(e){return Se(this.configuration).findRolesByDbName(e).then((e=>e(this.axios,this.basePath)))}getAllActiveInstitutions(e){return Se(this.configuration).getAllActiveInstitutions(e).then((e=>e(this.axios,this.basePath)))}getAllClassifierBusinessTypeDtos(e){return Se(this.configuration).getAllClassifierBusinessTypeDtos(e).then((e=>e(this.axios,this.basePath)))}getJurPerson(e,t){return Se(this.configuration).getJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonAncestors(e,t){return Se(this.configuration).getJurPersonAncestors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonSuccessors(e,t){return Se(this.configuration).getJurPersonSuccessors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonsByEhakCode(e,t){return Se(this.configuration).getJurPersonsByEhakCode(e,t).then((e=>e(this.axios,this.basePath)))}getPerson(e,t){return Se(this.configuration).getPerson(e,t).then((e=>e(this.axios,this.basePath)))}getPersonDetails(e){return Se(this.configuration).getPersonDetails(e).then((e=>e(this.axios,this.basePath)))}refreshUpdateArPersonFromAR(e,t){return Se(this.configuration).refreshUpdateArPersonFromAR(e,t).then((e=>e(this.axios,this.basePath)))}removeYlemyksusReference(e,t){return Se(this.configuration).removeYlemyksusReference(e,t).then((e=>e(this.axios,this.basePath)))}updatePerson(e,t,n){return Se(this.configuration).updatePerson(e,t,n).then((e=>e(this.axios,this.basePath)))}}const Ee=function(e){const t=function(e){return{searchPerson:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};me("searchPerson","input",t);const i=new URL("/search/searchPerson",fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...o},l={};void 0!==t&&(l.input=t),void 0!==n&&(l.xRoad=n),void 0!==r&&(l.isPrivate=r),ge(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...o.headers},{url:be(i),options:s}}}}(e);return{async searchPerson(n,r,o,i){const a=await t.searchPerson(n,r,o,i);return ye(a,Z.default,ue,e)}}};class ke extends de{searchPerson(e,t,n,r){return Ee(this.configuration).searchPerson(e,t,n,r).then((e=>e(this.axios,this.basePath)))}}const Ce=function(e){const t=function(e){return{addRoleToUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user/addrole",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},addUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user",fe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},appointSubstituteUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user-substitution/appoint-substitute",fe);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...n},a={"Content-Type":"application/json"};ge(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ve(t,i,e),{url:be(r),options:i}},deleteUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("deleteUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},deleteUserRole:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("deleteUserRole","userRoleRelId",t);const r="/user/role/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},findUsersByRoleId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("findUsersByRoleId","roleId",t);const r="/user/byroleid/{roleId}".replace("{roleId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getAllClassifierUserRoleDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/user/roles/all",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",fe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ge(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:be(n),options:o}},getJurUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getJurUsers","personId",t);const r="/jur/user/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getJurUsersWithoutGivenRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("getJurUsersWithoutGivenRole","personId",t),me("getJurUsersWithoutGivenRole","roleId",n);const o="/jur/user/withoutrole/{personId}/{roleId}".replace("{personId}",encodeURIComponent(String(t))).replace("{roleId}",encodeURIComponent(String(n))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ge(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:be(i),options:s}},getUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUserPossibleRecipients:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user/possiblerecipients",fe);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.searchInput=t),ge(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:be(r),options:i}},getUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};me("getUsers","personId",t);const r="/user/usersByPersonId/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,fe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ge(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:be(o),options:a}},getUsersJurPerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("getUsersJurPerson","userId",t);const o="/user/jur/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};void 0!==n&&(l.valid=n),ge(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...r.headers},{url:be(i),options:s}},updateUser:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("updateUser","userId",t);const o="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}},updateUserRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me("updateUserRole","userRoleRelId",t);const o="/user/modifyrole/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),i=new URL(o,fe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ge(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ve(n,s,e),{url:be(i),options:s}}}}(e);return{async addRoleToUser(n,r){const o=await t.addRoleToUser(n,r);return ye(o,Z.default,ue,e)},async addUser(n,r){const o=await t.addUser(n,r);return ye(o,Z.default,ue,e)},async appointSubstituteUser(n,r){const o=await t.appointSubstituteUser(n,r);return ye(o,Z.default,ue,e)},async deleteUser(n,r){const o=await t.deleteUser(n,r);return ye(o,Z.default,ue,e)},async deleteUserRole(n,r){const o=await t.deleteUserRole(n,r);return ye(o,Z.default,ue,e)},async findUsersByRoleId(n,r){const o=await t.findUsersByRoleId(n,r);return ye(o,Z.default,ue,e)},async getAllClassifierUserRoleDtos(n){const r=await t.getAllClassifierUserRoleDtos(n);return ye(r,Z.default,ue,e)},async getHealth(n){const r=await t.getHealth(n);return ye(r,Z.default,ue,e)},async getJurUsers(n,r){const o=await t.getJurUsers(n,r);return ye(o,Z.default,ue,e)},async getJurUsersWithoutGivenRole(n,r,o){const i=await t.getJurUsersWithoutGivenRole(n,r,o);return ye(i,Z.default,ue,e)},async getUser(n,r){const o=await t.getUser(n,r);return ye(o,Z.default,ue,e)},async getUserPossibleRecipients(n,r){const o=await t.getUserPossibleRecipients(n,r);return ye(o,Z.default,ue,e)},async getUsers(n,r){const o=await t.getUsers(n,r);return ye(o,Z.default,ue,e)},async getUsersJurPerson(n,r,o){const i=await t.getUsersJurPerson(n,r,o);return ye(i,Z.default,ue,e)},async updateUser(n,r,o){const i=await t.updateUser(n,r,o);return ye(i,Z.default,ue,e)},async updateUserRole(n,r,o){const i=await t.updateUserRole(n,r,o);return ye(i,Z.default,ue,e)}}};class Te extends de{addRoleToUser(e,t){return Ce(this.configuration).addRoleToUser(e,t).then((e=>e(this.axios,this.basePath)))}addUser(e,t){return Ce(this.configuration).addUser(e,t).then((e=>e(this.axios,this.basePath)))}appointSubstituteUser(e,t){return Ce(this.configuration).appointSubstituteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUser(e,t){return Ce(this.configuration).deleteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUserRole(e,t){return Ce(this.configuration).deleteUserRole(e,t).then((e=>e(this.axios,this.basePath)))}findUsersByRoleId(e,t){return Ce(this.configuration).findUsersByRoleId(e,t).then((e=>e(this.axios,this.basePath)))}getAllClassifierUserRoleDtos(e){return Ce(this.configuration).getAllClassifierUserRoleDtos(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return Ce(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getJurUsers(e,t){return Ce(this.configuration).getJurUsers(e,t).then((e=>e(this.axios,this.basePath)))}getJurUsersWithoutGivenRole(e,t,n){return Ce(this.configuration).getJurUsersWithoutGivenRole(e,t,n).then((e=>e(this.axios,this.basePath)))}getUser(e,t){return Ce(this.configuration).getUser(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleRecipients(e,t){return Ce(this.configuration).getUserPossibleRecipients(e,t).then((e=>e(this.axios,this.basePath)))}getUsers(e,t){return Ce(this.configuration).getUsers(e,t).then((e=>e(this.axios,this.basePath)))}getUsersJurPerson(e,t,n){return Ce(this.configuration).getUsersJurPerson(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUser(e,t,n){return Ce(this.configuration).updateUser(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUserRole(e,t,n){return Ce(this.configuration).updateUserRole(e,t,n).then((e=>e(this.axios,this.basePath)))}}class Ie{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Me="http://localhost:8080".replace(/\/+$/,"");class De{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Oe extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const je="https://example.com",Ae=function(e,t,n){if(null==n)throw new Oe(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Re(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>Re(e,t,n))):Object.keys(t).forEach((r=>Re(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const Pe=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Re(t,r),e.search=t.toString()},Ne=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},Le=function(e){return e.pathname+e.search+e.hash},Fe=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||o.defaults.baseURL||i)+e.url};return o.request(a)}},Ue=function(e){const t=function(e){return{findIncomingDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findIncomingDocuments","documentBaseQueryDto",t);const r=new URL("/documents/incomingdocuments",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findWorkingDocuments1:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findWorkingDocuments1","documentBaseQueryDto",t);const r=new URL("/documents/basedocuments",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async findIncomingDocuments(n,r){const o=await t.findIncomingDocuments(n,r);return Fe(o,Z.default,Me,e)},async findWorkingDocuments1(n,r){const o=await t.findWorkingDocuments1(n,r);return Fe(o,Z.default,Me,e)}}};class Be extends De{findIncomingDocuments(e,t){return Ue(this.configuration).findIncomingDocuments(e,t).then((e=>e(this.axios,this.basePath)))}findWorkingDocuments1(e,t){return Ue(this.configuration).findWorkingDocuments1(e,t).then((e=>e(this.axios,this.basePath)))}}const ze=function(e){const t=function(e){return{searchDetailBuildings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("searchDetailBuildings","buildingSearchDto",t);const r=new URL("/search/buildings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},searchDetailDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("searchDetailDocuments","documentSearchDto",t);const r=new URL("/search/documents",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},searchDetailProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("searchDetailProceedings","proceedingSearchDto",t);const r=new URL("/search/proceedings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async searchDetailBuildings(n,r){const o=await t.searchDetailBuildings(n,r);return Fe(o,Z.default,Me,e)},async searchDetailDocuments(n,r){const o=await t.searchDetailDocuments(n,r);return Fe(o,Z.default,Me,e)},async searchDetailProceedings(n,r){const o=await t.searchDetailProceedings(n,r);return Fe(o,Z.default,Me,e)}}};class Ve extends De{searchDetailBuildings(e,t){return ze(this.configuration).searchDetailBuildings(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailDocuments(e,t){return ze(this.configuration).searchDetailDocuments(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailProceedings(e,t){return ze(this.configuration).searchDetailProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}const Ke=function(e){const t=function(e){return{findOperationInvitations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findOperationInvitations","operationQueryDto",t);const r=new URL("/myoperations/operationinvitations",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findOperations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findOperations","operationQueryDto",t);const r=new URL("/myoperations/myoperations",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findOperationsToComment:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findOperationsToComment","operationQueryDto",t);const r=new URL("/myoperations/operationstocomment",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async findOperationInvitations(n,r){const o=await t.findOperationInvitations(n,r);return Fe(o,Z.default,Me,e)},async findOperations(n,r){const o=await t.findOperations(n,r);return Fe(o,Z.default,Me,e)},async findOperationsToComment(n,r){const o=await t.findOperationsToComment(n,r);return Fe(o,Z.default,Me,e)}}};class $e extends De{findOperationInvitations(e,t){return Ke(this.configuration).findOperationInvitations(e,t).then((e=>e(this.axios,this.basePath)))}findOperations(e,t){return Ke(this.configuration).findOperations(e,t).then((e=>e(this.axios,this.basePath)))}findOperationsToComment(e,t){return Ke(this.configuration).findOperationsToComment(e,t).then((e=>e(this.axios,this.basePath)))}}const He=function(e){const t=function(e){return{findAreaProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findAreaProceedings","proceedingQueryDto",t);const r=new URL("/myproceedings/my-area-proceedings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}},findProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ae("findProceedings","myProceedingsRequestDto",t);const r=new URL("/myproceedings/myproceedings",je);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};Pe(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ne(t,i,e),{url:Le(r),options:i}}}}(e);return{async findAreaProceedings(n,r){const o=await t.findAreaProceedings(n,r);return Fe(o,Z.default,Me,e)},async findProceedings(n,r){const o=await t.findProceedings(n,r);return Fe(o,Z.default,Me,e)}}};class Ye extends De{findAreaProceedings(e,t){return He(this.configuration).findAreaProceedings(e,t).then((e=>e(this.axios,this.basePath)))}findProceedings(e,t){return He(this.configuration).findProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}class We{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Ge="http://localhost:8080".replace(/\/+$/,"");class qe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ge,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Je extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Xe="https://example.com",Ze=function(e,t,n){if(null==n)throw new Je(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Qe=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}};function et(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>et(e,t,n))):Object.keys(t).forEach((r=>et(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const tt=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];et(t,r),e.search=t.toString()},nt=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},rt=function(e){return e.pathname+e.search+e.hash},ot=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||o.defaults.baseURL||i)+e.url};return o.request(a)}};const it=function(e){const t=function(e){return{addAuthz:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("addAuthz","documentType",t),Ze("addAuthz","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/addAuthz".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},apiVersion:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/version",Xe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:rt(n),options:o}},autoUpdateOwnershipType:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/document/updateOwnershipType",Xe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:rt(n),options:o}},createDoDokuDokuRel:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("createDoDokuDokuRel","documentId",t),Ze("createDoDokuDokuRel","addEntityDto",n);const o="/document/{documentId}/createDoDokuDokuRel".replace("{documentId}",encodeURIComponent(String(t))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Qe(l,e),l["Content-Type"]="application/json",tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=nt(n,s,e),{url:rt(i),options:s}},createDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("createDocument","documentType",t);const o="/document/{documentType}".replace("{documentType}",encodeURIComponent(String(t))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Qe(l,e),l["Content-Type"]="application/json",tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=nt(n,s,e),{url:rt(i),options:s}},createNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("createNewVersion","documentType",t),Ze("createNewVersion","applicationNumber",n),Ze("createNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/new".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},deleteApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("deleteApplicationByNumber","documentType",t),Ze("deleteApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},endProceedingCircleDocuments:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("endProceedingCircleDocuments","documentType",t),Ze("endProceedingCircleDocuments","applicationNumber",n),Ze("endProceedingCircleDocuments","proceedingId",r);const i="/document/{documentType}/{applicationNumber}/proceeding/{proceedingId}/endCircle".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{proceedingId}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},getAccessRights:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getAccessRights","documentType",t),Ze("getAccessRights","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/rights".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},getApplicationById:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ze("getApplicationById","documentId",t);const r="/document/{documentId}".replace("{documentId}",encodeURIComponent(String(t))),o=new URL(r,Xe);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await Qe(s,e),tt(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:rt(o),options:a}},getApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getApplicationByNumber","documentType",t),Ze("getApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},getApplicationByNumberOld:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getApplicationByNumberOld","ehrCode",t),Ze("getApplicationByNumberOld","applicationNumber",n);const o="/document/old/{ehrCode}/{applicationNumber}".replace("{ehrCode}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},getApplicationByNumberWithVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("getApplicationByNumberWithVersion","documentType",t),Ze("getApplicationByNumberWithVersion","applicationNumber",n),Ze("getApplicationByNumberWithVersion","version",r);const i="/document/{documentType}/{applicationNumber}/{version}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{version}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},getApplicationStateFee:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("getApplicationStateFee","documentType",t),Ze("getApplicationStateFee","applicationNumber",n),Ze("getApplicationStateFee","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/stateFee".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},getApplicationStateFeeOfVersion:async function(t,n,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Ze("getApplicationStateFeeOfVersion","documentType",t),Ze("getApplicationStateFeeOfVersion","applicationNumber",n),Ze("getApplicationStateFeeOfVersion","version",r),Ze("getApplicationStateFeeOfVersion","applicationDto",o);const a="/document/{documentType}/{applicationNumber}/{version}/stateFee".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{version}",encodeURIComponent(String(r))),s=new URL(a,Xe);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...i},u={};await Qe(u,e),u["Content-Type"]="application/json",tt(s,{});let d=l&&l.headers?l.headers:{};return c.headers={...u,...d,...i.headers},c.data=nt(o,c,e),{url:rt(s),options:c}},getDocumentFileRels:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ze("getDocumentFileRels","docNr",t);const r=new URL("/document/fileRels",Xe);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={},s={};await Qe(a,e),void 0!==t&&(s.docNr=t),tt(r,s);let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},{url:rt(r),options:i}},getDotysBasedOnUserRights:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/document/starting_rights",Xe);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.ehrCode=t),tt(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:rt(r),options:i}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",Xe);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:rt(n),options:o}},getLastStateHistory:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("getLastStateHistory","documentType",t),Ze("getLastStateHistory","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/state-history/last".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},initializeAds:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("initializeAds","documentType",t),Ze("initializeAds","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/initAds".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},mergeInstitutions:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ze("mergeInstitutions","mergeInstitutionsDTO",t);const r=new URL("/document/merge",Xe);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};tt(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=nt(t,i,e),{url:rt(r),options:i}},reSubmit:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("reSubmit","documentType",t),Ze("reSubmit","applicationNumber",n),Ze("reSubmit","proceedingNumber",r);const i="/document/{documentType}/{applicationNumber}/resubmit/{proceedingNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{proceedingNumber}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},recalculatestate:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("recalculatestate","documentType",t),Ze("recalculatestate","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/recalculatedetailstate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}},revertCreateNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("revertCreateNewVersion","documentType",t),Ze("revertCreateNewVersion","applicationNumber",n),Ze("revertCreateNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/revert".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},saveAndValidate:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("saveAndValidate","documentType",t),Ze("saveAndValidate","applicationNumber",n),Ze("saveAndValidate","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/saveAndValidate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},saveApplicationByNumber:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("saveApplicationByNumber","documentType",t),Ze("saveApplicationByNumber","applicationNumber",n),Ze("saveApplicationByNumber","applicationDto",r);const i="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},setWaterExtractionPointsTestDates:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("setWaterExtractionPointsTestDates","documentType",t),Ze("setWaterExtractionPointsTestDates","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/water-extraction-point/set-test-dates".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},setWaterExtractionPointsTestDatesForBuilding:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("setWaterExtractionPointsTestDatesForBuilding","documentType",t),Ze("setWaterExtractionPointsTestDatesForBuilding","applicationNumber",n),Ze("setWaterExtractionPointsTestDatesForBuilding","ehrCode",r);const i="/document/{documentType}/{applicationNumber}/building/{ehrCode}/water-extraction-point/set-test-dates".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{ehrCode}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},submitStraightToRegistry:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("submitStraightToRegistry","documentType",t),Ze("submitStraightToRegistry","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToRegistry".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},submitToProcessing:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("submitToProcessing","documentType",t),Ze("submitToProcessing","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToProcessing".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Qe(l,e),tt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:rt(i),options:s}},submitToSigning:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("submitToSigning","documentType",t),Ze("submitToSigning","applicationNumber",n),Ze("submitToSigning","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/submitToSigning".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Qe(c,e),c["Content-Type"]="application/json",tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=nt(r,l,e),{url:rt(a),options:l}},submitToSupervisorProcessing:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ze("submitToSupervisorProcessing","documentType",t),Ze("submitToSupervisorProcessing","applicationNumber",n),Ze("submitToSupervisorProcessing","supervisorId",r);const i="/document/{documentType}/{applicationNumber}/submitToSupervisor/{supervisorId}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))).replace("{supervisorId}",encodeURIComponent(String(r))),a=new URL(i,Xe);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Qe(c,e),tt(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:rt(a),options:l}},validateSavedDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ze("validateSavedDocument","documentType",t),Ze("validateSavedDocument","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/completeApplicationChecks".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,Xe);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:rt(i),options:s}}}}(e);return{async addAuthz(n,r,o){const i=await t.addAuthz(n,r,o);return ot(i,Z.default,Ge,e)},async apiVersion(n){const r=await t.apiVersion(n);return ot(r,Z.default,Ge,e)},async autoUpdateOwnershipType(n){const r=await t.autoUpdateOwnershipType(n);return ot(r,Z.default,Ge,e)},async createDoDokuDokuRel(n,r,o){const i=await t.createDoDokuDokuRel(n,r,o);return ot(i,Z.default,Ge,e)},async createDocument(n,r,o){const i=await t.createDocument(n,r,o);return ot(i,Z.default,Ge,e)},async createNewVersion(n,r,o,i){const a=await t.createNewVersion(n,r,o,i);return ot(a,Z.default,Ge,e)},async deleteApplicationByNumber(n,r,o){const i=await t.deleteApplicationByNumber(n,r,o);return ot(i,Z.default,Ge,e)},async endProceedingCircleDocuments(n,r,o,i){const a=await t.endProceedingCircleDocuments(n,r,o,i);return ot(a,Z.default,Ge,e)},async getAccessRights(n,r,o){const i=await t.getAccessRights(n,r,o);return ot(i,Z.default,Ge,e)},async getApplicationById(n,r){const o=await t.getApplicationById(n,r);return ot(o,Z.default,Ge,e)},async getApplicationByNumber(n,r,o){const i=await t.getApplicationByNumber(n,r,o);return ot(i,Z.default,Ge,e)},async getApplicationByNumberOld(n,r,o){const i=await t.getApplicationByNumberOld(n,r,o);return ot(i,Z.default,Ge,e)},async getApplicationByNumberWithVersion(n,r,o,i){const a=await t.getApplicationByNumberWithVersion(n,r,o,i);return ot(a,Z.default,Ge,e)},async getApplicationStateFee(n,r,o,i){const a=await t.getApplicationStateFee(n,r,o,i);return ot(a,Z.default,Ge,e)},async getApplicationStateFeeOfVersion(n,r,o,i,a){const s=await t.getApplicationStateFeeOfVersion(n,r,o,i,a);return ot(s,Z.default,Ge,e)},async getDocumentFileRels(n,r){const o=await t.getDocumentFileRels(n,r);return ot(o,Z.default,Ge,e)},async getDotysBasedOnUserRights(n,r){const o=await t.getDotysBasedOnUserRights(n,r);return ot(o,Z.default,Ge,e)},async getHealth(n){const r=await t.getHealth(n);return ot(r,Z.default,Ge,e)},async getLastStateHistory(n,r,o){const i=await t.getLastStateHistory(n,r,o);return ot(i,Z.default,Ge,e)},async initializeAds(n,r,o){const i=await t.initializeAds(n,r,o);return ot(i,Z.default,Ge,e)},async mergeInstitutions(n,r){const o=await t.mergeInstitutions(n,r);return ot(o,Z.default,Ge,e)},async reSubmit(n,r,o,i){const a=await t.reSubmit(n,r,o,i);return ot(a,Z.default,Ge,e)},async recalculatestate(n,r,o){const i=await t.recalculatestate(n,r,o);return ot(i,Z.default,Ge,e)},async revertCreateNewVersion(n,r,o,i){const a=await t.revertCreateNewVersion(n,r,o,i);return ot(a,Z.default,Ge,e)},async saveAndValidate(n,r,o,i){const a=await t.saveAndValidate(n,r,o,i);return ot(a,Z.default,Ge,e)},async saveApplicationByNumber(n,r,o,i){const a=await t.saveApplicationByNumber(n,r,o,i);return ot(a,Z.default,Ge,e)},async setWaterExtractionPointsTestDates(n,r,o){const i=await t.setWaterExtractionPointsTestDates(n,r,o);return ot(i,Z.default,Ge,e)},async setWaterExtractionPointsTestDatesForBuilding(n,r,o,i){const a=await t.setWaterExtractionPointsTestDatesForBuilding(n,r,o,i);return ot(a,Z.default,Ge,e)},async submitStraightToRegistry(n,r,o){const i=await t.submitStraightToRegistry(n,r,o);return ot(i,Z.default,Ge,e)},async submitToProcessing(n,r,o){const i=await t.submitToProcessing(n,r,o);return ot(i,Z.default,Ge,e)},async submitToSigning(n,r,o,i){const a=await t.submitToSigning(n,r,o,i);return ot(a,Z.default,Ge,e)},async submitToSupervisorProcessing(n,r,o,i){const a=await t.submitToSupervisorProcessing(n,r,o,i);return ot(a,Z.default,Ge,e)},async validateSavedDocument(n,r,o){const i=await t.validateSavedDocument(n,r,o);return ot(i,Z.default,Ge,e)}}};class at extends qe{addAuthz(e,t,n){return it(this.configuration).addAuthz(e,t,n).then((e=>e(this.axios,this.basePath)))}apiVersion(e){return it(this.configuration).apiVersion(e).then((e=>e(this.axios,this.basePath)))}autoUpdateOwnershipType(e){return it(this.configuration).autoUpdateOwnershipType(e).then((e=>e(this.axios,this.basePath)))}createDoDokuDokuRel(e,t,n){return it(this.configuration).createDoDokuDokuRel(e,t,n).then((e=>e(this.axios,this.basePath)))}createDocument(e,t,n){return it(this.configuration).createDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}createNewVersion(e,t,n,r){return it(this.configuration).createNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteApplicationByNumber(e,t,n){return it(this.configuration).deleteApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}endProceedingCircleDocuments(e,t,n,r){return it(this.configuration).endProceedingCircleDocuments(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getAccessRights(e,t,n){return it(this.configuration).getAccessRights(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationById(e,t){return it(this.configuration).getApplicationById(e,t).then((e=>e(this.axios,this.basePath)))}getApplicationByNumber(e,t,n){return it(this.configuration).getApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberOld(e,t,n){return it(this.configuration).getApplicationByNumberOld(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberWithVersion(e,t,n,r){return it(this.configuration).getApplicationByNumberWithVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFee(e,t,n,r){return it(this.configuration).getApplicationStateFee(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFeeOfVersion(e,t,n,r,o){return it(this.configuration).getApplicationStateFeeOfVersion(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}getDocumentFileRels(e,t){return it(this.configuration).getDocumentFileRels(e,t).then((e=>e(this.axios,this.basePath)))}getDotysBasedOnUserRights(e,t){return it(this.configuration).getDotysBasedOnUserRights(e,t).then((e=>e(this.axios,this.basePath)))}getHealth(e){return it(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getLastStateHistory(e,t,n){return it(this.configuration).getLastStateHistory(e,t,n).then((e=>e(this.axios,this.basePath)))}initializeAds(e,t,n){return it(this.configuration).initializeAds(e,t,n).then((e=>e(this.axios,this.basePath)))}mergeInstitutions(e,t){return it(this.configuration).mergeInstitutions(e,t).then((e=>e(this.axios,this.basePath)))}reSubmit(e,t,n,r){return it(this.configuration).reSubmit(e,t,n,r).then((e=>e(this.axios,this.basePath)))}recalculatestate(e,t,n){return it(this.configuration).recalculatestate(e,t,n).then((e=>e(this.axios,this.basePath)))}revertCreateNewVersion(e,t,n,r){return it(this.configuration).revertCreateNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveAndValidate(e,t,n,r){return it(this.configuration).saveAndValidate(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveApplicationByNumber(e,t,n,r){return it(this.configuration).saveApplicationByNumber(e,t,n,r).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDates(e,t,n){return it(this.configuration).setWaterExtractionPointsTestDates(e,t,n).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDatesForBuilding(e,t,n,r){return it(this.configuration).setWaterExtractionPointsTestDatesForBuilding(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitStraightToRegistry(e,t,n){return it(this.configuration).submitStraightToRegistry(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToProcessing(e,t,n){return it(this.configuration).submitToProcessing(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToSigning(e,t,n,r){return it(this.configuration).submitToSigning(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitToSupervisorProcessing(e,t,n,r){return it(this.configuration).submitToSupervisorProcessing(e,t,n,r).then((e=>e(this.axios,this.basePath)))}validateSavedDocument(e,t,n){return it(this.configuration).validateSavedDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}}class st{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const lt="https://devkluster.ehr.ee/api/file-upload-api/v1".replace(/\/+$/,"");class ct{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class ut extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const dt="https://example.com",pt=function(e,t,n){if(null==n)throw new ut(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},ft=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}},mt=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(const e of r)for(const n in e)if(Array.isArray(e[n])){t.delete(n);for(const r of e[n])t.append(n,r)}else t.set(n,e[n]);e.search=t.toString()},ht=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},gt=function(e){return e.pathname+e.search+e.hash},vt=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||i)+e.url};return o.request(a)}},bt=function(e){const t=function(e){return{cloneFilesAndCreateRels:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};pt("cloneFilesAndCreateRels","fileIds",t);const i=new URL("/fileClone",dt);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...o},l={},c={};await ft(l,e),t&&(c.fileIds=t),void 0!==n&&(c.docNr=n),void 0!==r&&(c.relType=r),mt(i,c);let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...o.headers},{url:gt(i),options:s}},deleteFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt("deleteFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,dt);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n},s={};await ft(s,e),mt(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:gt(o),options:a}},downloadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt("downloadFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,dt);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await ft(s,e),mt(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:gt(o),options:a}},updateFile:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};pt("updateFile","fileId",t);const o="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),i=new URL(o,dt);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await ft(l,e),l["Content-Type"]="application/json",mt(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=ht(n,s,e),{url:gt(i),options:s}},updateFileInfo:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pt("updateFileInfo","doFail",t);const r=new URL("/file/info",dt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await ft(a,e),a["Content-Type"]="application/json",mt(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=ht(t,i,e),{url:gt(r),options:i}},uploadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/file",dt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={},s=new(e&&e.formDataCtor||FormData);await ft(a,e),void 0!==t&&s.append("file",t),a["Content-Type"]="multipart/form-data",mt(r,{});let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},i.data=s,{url:gt(r),options:i}},uploadFileWithFileInfo:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=new URL("/fileWithInfo",dt);let i;e&&(i=e.baseOptions);const a={method:"POST",...i,...r},s={},l=new(e&&e.formDataCtor||FormData);await ft(s,e),void 0!==t&&l.append("file",t),void 0!==n&&l.append("fileInfo",new Blob([JSON.stringify(n)],{type:"application/json"})),s["Content-Type"]="multipart/form-data",mt(o,{});let c=i&&i.headers?i.headers:{};return a.headers={...s,...c,...r.headers},a.data=l,{url:gt(o),options:a}},uploadFileWithFileInfoAndDocRel:async function(t,n,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const a=new URL("/fileWithInfoAndDocRel",dt);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...i},c={},u=new(e&&e.formDataCtor||FormData);await ft(c,e),void 0!==t&&u.append("file",t),void 0!==n&&u.append("fileInfo",new Blob([JSON.stringify(n)],{type:"application/json"})),void 0!==r&&u.append("docNr",r),void 0!==o&&u.append("relType",o),c["Content-Type"]="multipart/form-data",mt(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...i.headers},l.data=u,{url:gt(a),options:l}}}}(e);return{async cloneFilesAndCreateRels(n,r,o,i){const a=await t.cloneFilesAndCreateRels(n,r,o,i);return vt(a,Z.default,lt,e)},async deleteFile(n,r){const o=await t.deleteFile(n,r);return vt(o,Z.default,lt,e)},async downloadFile(n,r){const o=await t.downloadFile(n,r);return vt(o,Z.default,lt,e)},async updateFile(n,r,o){const i=await t.updateFile(n,r,o);return vt(i,Z.default,lt,e)},async updateFileInfo(n,r){const o=await t.updateFileInfo(n,r);return vt(o,Z.default,lt,e)},async uploadFile(n,r){const o=await t.uploadFile(n,r);return vt(o,Z.default,lt,e)},async uploadFileWithFileInfo(n,r,o){const i=await t.uploadFileWithFileInfo(n,r,o);return vt(i,Z.default,lt,e)},async uploadFileWithFileInfoAndDocRel(n,r,o,i,a){const s=await t.uploadFileWithFileInfoAndDocRel(n,r,o,i,a);return vt(s,Z.default,lt,e)}}};class yt extends ct{cloneFilesAndCreateRels(e,t,n,r){return bt(this.configuration).cloneFilesAndCreateRels(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteFile(e,t){return bt(this.configuration).deleteFile(e,t).then((e=>e(this.axios,this.basePath)))}downloadFile(e,t){return bt(this.configuration).downloadFile(e,t).then((e=>e(this.axios,this.basePath)))}updateFile(e,t,n){return bt(this.configuration).updateFile(e,t,n).then((e=>e(this.axios,this.basePath)))}updateFileInfo(e,t){return bt(this.configuration).updateFileInfo(e,t).then((e=>e(this.axios,this.basePath)))}uploadFile(e,t){return bt(this.configuration).uploadFile(e,t).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfo(e,t,n){return bt(this.configuration).uploadFileWithFileInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfoAndDocRel(e,t,n,r,o){return bt(this.configuration).uploadFileWithFileInfoAndDocRel(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}}class xt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const wt="https://devkluster.ehr.ee/api/yld-esi/v1".replace(/\/+$/,"");class St{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.default;this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class _t extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Et="https://example.com",kt=function(e,t,n){if(null==n)throw new _t(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Ct(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>Ct(e,t,n))):Object.keys(t).forEach((r=>Ct(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const Tt=function(e){const t=new URLSearchParams(e.search);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];Ct(t,r),e.search=t.toString()},It=function(e){return e.pathname+e.search+e.hash},Mt=function(e,t,n,r){return function(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;const a={...e.options,url:((null==r?void 0:r.basePath)||o.defaults.baseURL||i)+e.url};return o.request(a)}};const Dt=function(e){return{esileht:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};kt("esileht","id",t),kt("esileht","language",n);const o="/public/page/{id}/{language}".replace("{id}",encodeURIComponent(String(t))).replace("{language}",encodeURIComponent(String(n))),i=new URL(o,Et);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};Tt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:It(i),options:s}},lehed:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages",Et);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};Tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:It(n),options:o}},lehedId:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages/dotyid",Et);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};Tt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:It(n),options:o}},leht:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kt("leht","id",t);const r="/api/pages/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,Et);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};Tt(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:It(o),options:a}},lehtdSave:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};kt("lehtdSave","esileht",t);const r=new URL("/api/pages",Et);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};a["Content-Type"]="application/json",Tt(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=function(e,t,n){const r="string"!=typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""}(t,i,e),{url:It(r),options:i}}}},Ot=function(e){const t=Dt(e);return{async esileht(n,r,o){const i=await t.esileht(n,r,o);return Mt(i,Z.default,wt,e)},async lehed(n){const r=await t.lehed(n);return Mt(r,Z.default,wt,e)},async lehedId(n){const r=await t.lehedId(n);return Mt(r,Z.default,wt,e)},async leht(n,r){const o=await t.leht(n,r);return Mt(o,Z.default,wt,e)},async lehtdSave(n,r){const o=await t.lehtdSave(n,r);return Mt(o,Z.default,wt,e)}}};class jt extends St{esileht(e,t,n){return Ot(this.configuration).esileht(e,t,n).then((e=>e(this.axios,this.basePath)))}lehed(e){return Ot(this.configuration).lehed(e).then((e=>e(this.axios,this.basePath)))}lehedId(e){return Ot(this.configuration).lehedId(e).then((e=>e(this.axios,this.basePath)))}leht(e,t){return Ot(this.configuration).leht(e,t).then((e=>e(this.axios,this.basePath)))}lehtdSave(e,t){return Ot(this.configuration).lehtdSave(e,t).then((e=>e(this.axios,this.basePath)))}}class At{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}const Rt={myViewsApiEndpoint:window.REACT_APP_MY_VIEWS_API_PATH,classifierApiEndpoint:window.REACT_APP_CLASSIFIER_SERVICE_ENDPOINT,userApiEndpoint:window.REACT_APP_USER_SERVICE_ENDPOINT,documentApiEndpoint:window.REACT_APP_DOCUMENT_SERVICE_ENDPOINT,fileUploadApiEndpoint:window.REACT_APP_FILE_UPLOAD_API_ENDPOINT,frontPageApiEndpoint:window.REACT_APP_YLD_API},Pt={proceedingApiService:new Ye(new We({basePath:Rt.myViewsApiEndpoint})),classifierApiService:new le(new ce({basePath:Rt.classifierApiEndpoint})),personApiService:new _e(new Ie({basePath:Rt.userApiEndpoint})),userApiService:new Te(new Ie({basePath:Rt.userApiEndpoint})),myDocumentBaseApiService:new Be(new We({basePath:Rt.myViewsApiEndpoint})),documentApiService:new at(new st({basePath:Rt.documentApiEndpoint})),fileApiService:new yt(new xt({basePath:Rt.fileUploadApiEndpoint})),frontPageApi:new jt(new At({basePath:Rt.frontPageApiEndpoint})),institutionKovEndpointApi:new we(new Ie({basePath:Rt.userApiEndpoint}))};let Nt=function(e){return e.DO_DOKUSEIS_ESITATUD="DO_DOKUSEIS_ESITATUD",e.DO_DOKUSEIS_KEHTETU="DO_DOKUSEIS_KEHTETU",e.DO_DOKUSEIS_KOOSTAMISEL="DO_DOKUSEIS_KOOSTAMISEL",e.DO_DOKUSEIS_EELNOU_AKTIIVNE="DO_DOKUSEIS_EELNOU_AKTIIVNE",e.DO_DOKUSEIS_ALLKIRJASTAMISEL="DO_DOKUSEIS_ALLKIRJASTAMISEL",e.DO_DOKUSEIS_MENETLUSES="DO_DOKUSEIS_MENETLUSES",e.DO_DOKUSEIS_MUUTMISEL="DO_DOKUSEIS_MUUTMISEL",e.DO_DOKUSEIS_TAIENDAMISEL="DO_DOKUSEIS_TAIENDAMISEL",e.DO_DOKUSEIS_TYHISTATUD="DO_DOKUSEIS_TYHISTATUD",e.DO_DOKUSEIS_VANA_VERSIOON="DO_DOKUSEIS_VANA_VERSIOON",e.DO_DOKUSEIS_LOOBUTUD="DO_DOKUSEIS_LOOBUTUD",e.DO_DOKUSEIS_ALLKIRJASTATUD="DO_DOKUSEIS_ALLKIRJASTATUD",e.DO_DOKUSEIS_MENETLETUD="DO_DOKUSEIS_MENETLETUD",e.DO_DOKUSEIS_LUBATUD="DO_DOKUSEIS_LUBATUD",e.DO_DOKUSEIS_LUB_TEAV="DO_DOKUSEIS_LUB_TEAV",e.DO_DOKUSEIS_KEELDUTUD="DO_DOKUSEIS_KEELDUTUD",e.DO_DOKUSEIS_TEAVITATUD="DO_DOKUSEIS_TEAVITATUD",e.DO_DOKUSEIS_REG_KANTUD="DO_DOKUSEIS_REG_KANTUD",e.DO_DOKUSEIS_ANTUD="DO_DOKUSEIS_ANTUD",e.DO_DOKUSEIS_KEHTIV="DO_DOKUSEIS_KEHTIV",e.DO_DOKUSEIS_TUNNIST_KEHTETUKS="DO_DOKUSEIS_TUNNIST_KEHTETUKS",e.DO_DOKUSEIS_KOOSK_RINGIL="DO_DOKUSEIS_KOOSK_RINGIL",e.DO_DOKUSEIS_EM_KINNITATUD_AKTUAL="DO_DOKUSEIS_EM_KINNITATUD_AKTUAL",e.DO_DOKUSEIS_TAGASTATUD="DO_DOKUSEIS_TAGASTATUD",e}({});const Lt=[Nt.DO_DOKUSEIS_KEHTETU,Nt.DO_DOKUSEIS_TUNNIST_KEHTETUKS,Nt.DO_DOKUSEIS_REG_KANTUD,Nt.DO_DOKUSEIS_TAGASTATUD,Nt.DO_DOKUSEIS_KEELDUTUD,Nt.DO_DOKUSEIS_TYHISTATUD,Nt.DO_DOKUSEIS_LOOBUTUD,Nt.DO_DOKUSEIS_ALLKIRJASTATUD,Nt.DO_DOKUSEIS_MENETLETUD,Nt.DO_DOKUSEIS_LUBATUD,Nt.DO_DOKUSEIS_LUB_TEAV,Nt.DO_DOKUSEIS_TEAVITATUD,Nt.DO_DOKUSEIS_ANTUD,Nt.DO_DOKUSEIS_KEHTIV],Ft=[Nt.DO_DOKUSEIS_ESITATUD,Nt.DO_DOKUSEIS_MENETLUSES],Ut=[Nt.DO_DOKUSEIS_ESITATUD,Nt.DO_DOKUSEIS_KOOSTAMISEL,Nt.DO_DOKUSEIS_EELNOU_AKTIIVNE,Nt.DO_DOKUSEIS_ALLKIRJASTAMISEL,Nt.DO_DOKUSEIS_MENETLUSES,Nt.DO_DOKUSEIS_TAIENDAMISEL,Nt.DO_DOKUSEIS_MUUTMISEL],Bt="SIGNING_DOCUMENTS",zt="WORKING_DOCUMENTS",Vt="FINISHED_DOCUMENTS",Kt="INCOMING_DOCUMENTS",$t="MY_APPROVALS",Ht="MY_OPINIONS",Yt="MY_INVOLVEMENTS",Wt="MY_OPERATIONS",Gt="OPERATIONS_TO_COMMENT",qt="OPERATION_INVITATIONS",Jt="PROCEEDINGS_TO_COMMENT",Xt="BUILDINGS_SEARCH";let Zt=function(e){return e.KAIMASOLEV="MENSEIS_TEHN_KAIMASOLEV",e.AKT_ALGATATUD="MENSEIS_TEHN_AKT_KOOSTATUD",e.AKT_KOOSTAMINE="MENSEIS_TEHN_AKT_KOOSTAMINE",e.TAOT_MUUTMINE="MENSEIS_TEHN_TAOT_MUUTMINE",e.LOPETATUD="MENSEIS_TEHN_LOPETATUD",e.MENSEIS_KAIMASOLEV="MENSEIS_KAIMASOLEV",e.MENSEIS_LOPETATUD="MENSEIS_LOPETATUD",e.MENSEIS_TAIENDAMISEL="MENSEIS_TAIENDAMISEL",e.MENSEIS_ALGATATUD="MENSEIS_ALGATATUD",e.MENSEIS_MUUTMISEL="MENSEIS_MUUTMISEL",e.MENSEIS_PEATATUD="MENSEIS_PEATATUD",e.MENSEIS_ARHIIVIS="MENSEIS_ARHIIVIS",e}({}),Qt=function(e){return e.Default="default",e.Info="info",e.Success="success",e.Warning="warning",e.Danger="danger",e}({}),en=function(e){return e.Danger="danger",e.Default="neutral",e.Info="brand",e.Success="success",e.Warning="warning",e}({});const tn="BUILDING",nn="PROCEEDING",rn="DOCUMENT";let on=function(e){return e.KOV="KOV",e.MKM="MKM",e.A="A",e.N="N",e.KT="KT",e.JUR="JUR",e.AMAS="AMAS",e.TJA="TJA",e}({});let an=function(e){return e.MENTOIMLIIK_AUTO_REG="MENTOIMLIIK_AUTO_REG",e.MENTOIMLIIK_KAASAMINE="MENTOIMLIIK_KAASAMINE",e.MENTOIMLIIK_MASSKAASAMINE="MENTOIMLIIK_MASSKAASAMINE",e.MENTOIMLIIK_YKSIKKAASAMINE="MENTOIMLIIK_YKSIKKAASAMINE",e.MENTOIMLIIK_ARVAMUS="MENTOIMLIIK_ARVAMUS",e.MENTOIMLIIK_VALINE_KOOSK="MENTOIMLIIK_VALINE_KOOSK",e.MENTOIMLIIK_SISENE_KOOSK="MENTOIMLIIK_SISENE_KOOSK",e.MENTOIMLIIK_KOOSK="MENTOIMLIIK_KOOSK",e.MENTOIMLIIK_MARKUS_TAIEND="MENTOIMLIIK_MARKUS_TAIEND",e.MENTOIMLIIK_MEN_MARKUS="MENTOIMLIIK_MEN_MARKUS",e.MENTOIMLIIK_EHIT_KK_RING="MENTOIMLIIK_EHIT_KK_RING",e.MENTOIMLIIK_ADS="MENTOIMLIIK_ADS",e.MENTOIMLIIK_ADS_SAADA="MENTOIMLIIK_ADS_SAADA",e.MENTOIMLIIK_ADS_ESIT="MENTOIMLIIK_ADS_ESIT",e.MENTOIMLIIK_AVALIK="MENTOIMLIIK_AVALIK",e.MENTOIMLIIK_AVALIK_TAGASISIDE="MENTOIMLIIK_AVALIK_TAGASISIDE",e.MENTOIMLIIK_RAHV_KAASAMINE="MENTOIMLIIK_RAHV_KAASAMINE",e.MENTOIMLIIK_KAAS_TAGASISIDE="MENTOIMLIIK_KAAS_TAGASISIDE",e.MENTOIMLIIK_ALLKIRJASTAMINE="MENTOIMLIIK_ALLKIRJASTAMINE",e.MENTOIMLIIK_KMH_PR="MENTOIMLIIK_KMH_PR",e.MENTOIMLIIK_KMH_AR="MENTOIMLIIK_KMH_AR",e}({}),sn=function(e){return e.Proceeding="PROCEEDING",e.Document="DOCUMENT",e.Operation="OPERATION",e}({}),ln=function(e){return e.PlanningsProceedings="PlanningsProceedings",e.PlanningsInstitution="PlanningsInstitution",e.PlanningsOngoing="PlanningsOngoing",e.PlanningsCompleted="PlanningsCompleted",e}({});const cn="12975",un="12976",dn="11274",pn="11275",fn="12977",mn="12978",hn="11261",gn=["11272","12972",cn,"12974",mn,pn],vn=["11273","12973",un,"12971",fn,dn],bn=[cn,un],yn={[un]:fn,[cn]:mn},xn={[un]:dn,[cn]:pn},wn=[...["12510","12511","12512","12513","12514","14102","14103","14104","14105"],...[hn,"14101"]],Sn=(0,f.createAsyncThunk)("myPlannings/getOngoingDocuments",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{userId:r,businessId:o}=n.activeRole||{};return null!==(t=(await Pt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:wn,states:Ut})).data)&&void 0!==t?t:[]})),_n=(0,f.createAsyncThunk)("myPlannings/getPlanningProceedings",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{userId:r,businessId:o}=n.activeRole||{},i=await Pt.proceedingApiService.findProceedings({userId:r,personId:o,dotys:wn,states:Ut});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),En=(0,f.createAsyncThunk)("myPlannings/getIncomingDocuments",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{businessId:r}=n.activeRole||{},o=await Pt.myDocumentBaseApiService.findIncomingDocuments({userId:void 0,personId:r,dotys:wn,states:Ft});return null!==(t=null==o?void 0:o.data)&&void 0!==t?t:[]})),kn=(0,f.createAsyncThunk)("myPlannings/findFinishedDocuments",(async e=>{var t;let{userInfo:n}=e;if(!n)throw Error("User info missing");const{userId:r,businessId:o}=n.activeRole||{},i=await Pt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:wn,states:Lt});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),Cn=(0,f.createSlice)({name:"myPlannings",initialState:{planningProceedings:[],planningProceedingsLoading:!1,planningProceedingsError:!1,incomingDocuments:[],incomingDocumentsLoading:!1,incomingDocumentsError:!1,ongoingDocuments:[],ongoingDocumentsLoading:!1,ongoingDocumentsError:!1,signingDocuments:[],signingDocumentsLoading:!1,signingDocumentsError:!1,finishedDocuments:[],finishedDocumentsLoading:!1,finishedDocumentsError:!1,proceedingCommentOperations:[],proceedingCommentOperationsLoading:!1,proceedingCommentOperationsrror:!1},reducers:{},extraReducers:e=>{e.addCase(_n.pending,(e=>{e.planningProceedingsLoading=!0})),e.addCase(_n.fulfilled,((e,t)=>{var n;e.planningProceedingsLoading=!1,e.planningProceedings=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(_n.rejected,(e=>{e.planningProceedingsLoading=!1,e.planningProceedingsError=!0})),e.addCase(En.pending,(e=>{e.incomingDocumentsLoading=!0})),e.addCase(En.fulfilled,((e,t)=>{var n;e.incomingDocumentsLoading=!1,e.incomingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(En.rejected,(e=>{e.incomingDocumentsLoading=!1,e.incomingDocumentsError=!0})),e.addCase(Sn.pending,(e=>{e.ongoingDocumentsLoading=!0})),e.addCase(Sn.fulfilled,((e,t)=>{var n;e.ongoingDocumentsLoading=!1,e.ongoingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(Sn.rejected,(e=>{e.ongoingDocumentsLoading=!1,e.ongoingDocumentsError=!0})),e.addCase(kn.pending,(e=>{e.finishedDocumentsLoading=!0})),e.addCase(kn.fulfilled,((e,t)=>{var n;e.finishedDocumentsLoading=!1,e.finishedDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(kn.rejected,(e=>{e.finishedDocumentsLoading=!1,e.finishedDocumentsError=!0}))}}),Tn=(0,f.createSelector)((e=>({proceedings:e.myViewsPage.myPlannings.planningProceedings,isLoading:e.myViewsPage.myPlannings.planningProceedingsLoading,isError:e.myViewsPage.myPlannings.planningProceedingsError})),(e=>e)),In=(0,f.createSelector)((e=>({documents:e.myViewsPage.myPlannings.incomingDocuments,isLoading:e.myViewsPage.myPlannings.incomingDocumentsLoading,isError:e.myViewsPage.myPlannings.incomingDocumentsError})),(e=>e)),Mn=(0,f.createSelector)((e=>({documents:e.myViewsPage.myPlannings.ongoingDocuments,isLoading:e.myViewsPage.myPlannings.ongoingDocumentsLoading,isError:e.myViewsPage.myPlannings.ongoingDocumentsError})),(e=>e)),{}=((0,f.createSelector)((e=>({documents:e.myViewsPage.myPlannings.finishedDocuments,isLoading:e.myViewsPage.myPlannings.finishedDocumentsLoading,isError:e.myViewsPage.myPlannings.finishedDocumentsError})),(e=>e)),Cn.actions),Dn=Cn.reducer,On=(0,f.combineReducers)({filter:x,myDocuments:I,myProceedings:R,myOperations:U,detailSearch:$,notifications:X,myPlannings:Dn});var jn=p(649);const An=(e=>{var t={};return p.d(t,e),t})({FormattedMessage:()=>r.FormattedMessage,useIntl:()=>r.useIntl});const Rn=(e=>{var t={};return p.d(t,e),t})({Button:()=>o.Button,Checkbox:()=>o.Checkbox,Col:()=>o.Col,CollapseTable:()=>o.CollapseTable,CollapseTableRow:()=>o.CollapseTableRow,ControlledPopover:()=>o.ControlledPopover,DatePicker:()=>o.DatePicker,DateRange:()=>o.DateRange,FieldWrapper:()=>o.FieldWrapper,Form:()=>o.Form,Icon:()=>o.Icon,Info:()=>o.Info,Input:()=>o.Input,Link:()=>o.Link,Loader:()=>o.Loader,MessageBlock:()=>o.MessageBlock,Multiselect:()=>o.Multiselect,NumberRangeExtended:()=>o.NumberRangeExtended,PersonSearchPageExtended:()=>o.PersonSearchPageExtended,RichTextEditor:()=>o.RichTextEditor,Row:()=>o.Row,Section:()=>o.Section,SectionLoader:()=>o.SectionLoader,Select:()=>o.Select,Status:()=>o.Status,TableComponent:()=>o.TableComponent,Text:()=>o.Text,Tooltip:()=>o.Tooltip});var Pn=p(848);const Nn=11272,Ln=e=>{var t;let{userInfo:n}=e;const r=(0,An.useIntl)(),[o,i]=(0,jn.useState)(!0),[a,s]=(0,jn.useState)(""),[l,c]=(0,jn.useState)(""),u=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===on.MKM;(0,jn.useEffect)((()=>{u?d():p()}),[]);const d=async()=>{Pt.frontPageApi.leht(Nn).then((e=>{const t=e.data;t[0].body&&(s(t[0].body),c(t[0].body))}))},p=async()=>{Pt.frontPageApi.esileht(Nn,"ee").then((e=>{const t=e.data;t.body&&(s(t.body),c(t.body))}))};return(0,Pn.jsx)(Rn.Section,{collapsed:!1,title:"my_admin_proceedings.admin_proceedings_reminder",showSettings:!0,children:(0,Pn.jsxs)("div",{className:o?"d-flex justify-content-between":"",children:[(0,Pn.jsx)(Rn.RichTextEditor,{placeholder:o?"":r.formatMessage({id:"placeholder.writing"}),onChange:e=>c(e),value:l,readOnly:o,view:o}),u&&o&&(0,Pn.jsx)(Rn.Link,{onClick:()=>i(!1),type:"edit"}),!o&&(0,Pn.jsxs)("div",{className:"pt-2",children:[(0,Pn.jsx)(Rn.Button,{colourScheme:"light",squared:!0,onClick:()=>{c(a),i(!0)},children:r.formatMessage({id:"button.cancel"})}),(0,Pn.jsx)(Rn.Button,{className:"float-right",colourScheme:"success",squared:!0,onClick:()=>(async()=>{i(!o),s(l),Pt.frontPageApi.lehtdSave({id:Nn,body:l,language:"ee"})})(),children:r.formatMessage({id:"button.save"})})]})]})})},Fn={default:"header-arrow-up-down-icon",des:"header-arrow-down-icon",asc:"header-arrow-up-icon"},Un=e=>(0,Pn.jsx)(Rn.Tooltip,{content:(0,Pn.jsx)(Rn.Text,{raw:e.tooltipText}),placement:"bottom",theme:"dark",children:e.functionCall?(0,Pn.jsx)(Rn.Link,{onClick:t=>{var n;return null===(n=e.functionCall)||void 0===n?void 0:n.call(e,t)},text:e.linkName,href:e.href}):(0,Pn.jsx)(Rn.Link,{text:e.linkName,href:e.href,onClick:t=>{t.preventDefault(),t.stopPropagation();const n=window.open(e.href,"_blank");null==n||n.focus()}})},e.linkName),Bn=e=>{let{proceedings:t,linkGen:n}=e;const r=(0,An.useIntl)(),o=[{id:"document_type",property:"documentType",size:180,getValue:e=>{var t;return null!==(t=e.documentType)&&void 0!==t?t:""}},{id:"proceeding_nr",property:"proceedingNr",size:130,getValue:e=>{return(t=e).proceedingNr?(0,Pn.jsx)(Un,{linkName:t.proceedingNr,tooltipText:"detailsearch.tooltip.open_proceeding",functionCall:e=>{n(!0,e,void 0,`administrativeActProceeding/${t.proceedingNr}`)}}):(0,Pn.jsx)(Pn.Fragment,{children:"-"});var t}},{id:"doty",property:"document",size:160,getValue:e=>e.document&&null!==e.document?(0,Pn.jsx)(Un,{linkName:e.document,tooltipText:"detailsearch.tooltip.open_document",functionCall:t=>{n(!0,t,"DOCUMENT",e.document)}}):""},{id:"ehr_code",property:"ehrCode",size:130,getValue:e=>e.ehrCode&&null!==e.ehrCode?e.ehrCode.map(((t,r)=>(0,Pn.jsxs)(Pn.Fragment,{children:[(0,Pn.jsx)(Un,{linkName:t,tooltipText:"detailsearch.tooltip.open_building",functionCall:e=>{n(!0,e,"BUILDING",t)}}),r!==e.ehrCode.length-1?(0,Pn.jsx)("span",{children:", "}):""]}))):""},{id:"proceeding_state",property:"state",size:130,getValue:e=>e.state}];return(0,Pn.jsx)(Rn.TableComponent,{config:{thead:{headers:o.map((e=>({id:e.id,size:e.size,className:"table-header-field text-align-left",label:r.formatMessage({id:"my_admin_proceedings.table.header."+e.id}),tooltip:{text:r.formatMessage({id:"my_admin_proceedings.table.tooltip."+e.id})},propertyName:e.property,sortable:!0,isShown:!0,type:"input",valueFormatter:t=>e.getValue(t)}))),icons:Fn,expandableRow:!1,isFilter:!1}},data:t,handleEvent:()=>!0})},zn=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[n,r]=(0,jn.useState)(!1),[o,i]=(0,jn.useState)(void 0),[a,s]=(0,jn.useState)([]);(0,jn.useEffect)((()=>{i(void 0),l()}),[e,t]);const l=async()=>{var n;if((null===(n=e.activeRole)||void 0===n?void 0:n.businessType)===on.TJA){r(!0);try{var o;const n=t?{institutionId:e.activeRole.businessId}:{userId:e.userId},r=await Pt.proceedingApiService.findAreaProceedings(n);s(null!==(o=null==r?void 0:r.data)&&void 0!==o?o:[])}catch(e){i("my_admin_proceedings.proceedings_request.error")}finally{r(!1)}}else s([])};return{loading:n,proceedings:a,error:o}},Vn=e=>{let{userInfo:t,linkGen:n}=e;const r=(0,An.useIntl)(),[o,i]=(0,jn.useState)(!1),{loading:a,error:s,proceedings:l}=zn(t,o);return(0,Pn.jsxs)(Rn.Section,{collapsed:!1,title:"my_admin_proceedings.my_proceedings",showSettings:!0,children:[s&&(0,Pn.jsx)(Rn.MessageBlock,{dismissible:!1,theme:"danger",children:r.formatMessage({id:s})}),a&&(0,Pn.jsxs)(Rn.Row,{className:"mb-4 justify-content-center",children:[(0,Pn.jsx)("br",{}),(0,Pn.jsx)(Rn.Loader,{}),(0,Pn.jsx)("br",{})]}),!a&&!(null==l||!l.length)&&!s&&(0,Pn.jsx)(Bn,{proceedings:l,linkGen:n}),(0,Pn.jsx)("div",{className:"d-flex justify-content-start my-2",children:(0,Pn.jsx)(Rn.Checkbox,{name:"checkbox",onChange:e=>i(e),text:r.formatMessage({id:"my_proceedings.view_all_institution_admin_proceedings"}),checked:o})})]})},Kn=e=>{var t;let{userInfo:n,linkGen:r}=e;const o=(0,An.useIntl)(),i=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===on.TJA;return(0,Pn.jsxs)("div",{children:[(0,Pn.jsx)("h2",{children:o.formatMessage({id:"my_admin_proceedings.page_title"})}),i&&(0,Pn.jsx)("div",{className:"d-flex justify-content-end mt-2",children:(0,Pn.jsx)(Rn.Button,{withPlus:!0,type:"submit",onClick:()=>{r(!0,void 0,"","/administrativeActProceeding")},children:o.formatMessage({id:"my_admin_proceedings.new_proceeding"})})}),(0,Pn.jsx)(Ln,{userInfo:n}),i&&(0,Pn.jsx)(Vn,{userInfo:n,linkGen:r})]})};const $n=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Hn="object"==typeof global&&global&&global.Object===Object&&global;var Yn="object"==typeof self&&self&&self.Object===Object&&self;const Wn=Hn||Yn||Function("return this")();const Gn=function(){return Wn.Date.now()};var qn=/\s/;const Jn=function(e){for(var t=e.length;t--&&qn.test(e.charAt(t)););return t};var Xn=/^\s+/;const Zn=function(e){return e?e.slice(0,Jn(e)+1).replace(Xn,""):e};const Qn=Wn.Symbol;var er=Object.prototype,tr=er.hasOwnProperty,nr=er.toString,rr=Qn?Qn.toStringTag:void 0;const or=function(e){var t=tr.call(e,rr),n=e[rr];try{e[rr]=void 0;var r=!0}catch(e){}var o=nr.call(e);return r&&(t?e[rr]=n:delete e[rr]),o};var ir=Object.prototype.toString;const ar=function(e){return ir.call(e)};var sr=Qn?Qn.toStringTag:void 0;const lr=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":sr&&sr in Object(e)?or(e):ar(e)};const cr=function(e){return null!=e&&"object"==typeof e};const ur=function(e){return"symbol"==typeof e||cr(e)&&"[object Symbol]"==lr(e)};var dr=/^[-+]0x[0-9a-f]+$/i,pr=/^0b[01]+$/i,fr=/^0o[0-7]+$/i,mr=parseInt;const hr=function(e){if("number"==typeof e)return e;if(ur(e))return NaN;if($n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zn(e);var n=pr.test(e);return n||fr.test(e)?mr(e.slice(2),n?2:8):dr.test(e)?NaN:+e};var gr=Math.max,vr=Math.min;const br=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=Gn();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?vr(n,i-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=Gn(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=hr(t)||0,$n(n)&&(u=!!n.leading,i=(d="maxWait"in n)?gr(hr(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Gn())},v};const yr=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o};const xr=function(){this.__data__=[],this.size=0};const wr=function(e,t){return e===t||e!=e&&t!=t};const Sr=function(e,t){for(var n=e.length;n--;)if(wr(e[n][0],t))return n;return-1};var _r=Array.prototype.splice;const Er=function(e){var t=this.__data__,n=Sr(t,e);return!(n<0)&&(n==t.length-1?t.pop():_r.call(t,n,1),--this.size,!0)};const kr=function(e){var t=this.__data__,n=Sr(t,e);return n<0?void 0:t[n][1]};const Cr=function(e){return Sr(this.__data__,e)>-1};const Tr=function(e,t){var n=this.__data__,r=Sr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ir(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ir.prototype.clear=xr,Ir.prototype.delete=Er,Ir.prototype.get=kr,Ir.prototype.has=Cr,Ir.prototype.set=Tr;const Mr=Ir;const Dr=function(){this.__data__=new Mr,this.size=0};const Or=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const jr=function(e){return this.__data__.get(e)};const Ar=function(e){return this.__data__.has(e)};const Rr=function(e){if(!$n(e))return!1;var t=lr(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Pr=Wn["__core-js_shared__"];var Nr,Lr=(Nr=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||""))?"Symbol(src)_1."+Nr:"";const Fr=function(e){return!!Lr&&Lr in e};var Ur=Function.prototype.toString;const Br=function(e){if(null!=e){try{return Ur.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var zr=/^\[object .+?Constructor\]$/,Vr=Function.prototype,Kr=Object.prototype,$r=Vr.toString,Hr=Kr.hasOwnProperty,Yr=RegExp("^"+$r.call(Hr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Wr=function(e){return!(!$n(e)||Fr(e))&&(Rr(e)?Yr:zr).test(Br(e))};const Gr=function(e,t){return null==e?void 0:e[t]};const qr=function(e,t){var n=Gr(e,t);return Wr(n)?n:void 0};const Jr=qr(Wn,"Map");const Xr=qr(Object,"create");const Zr=function(){this.__data__=Xr?Xr(null):{},this.size=0};const Qr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var eo=Object.prototype.hasOwnProperty;const to=function(e){var t=this.__data__;if(Xr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return eo.call(t,e)?t[e]:void 0};var no=Object.prototype.hasOwnProperty;const ro=function(e){var t=this.__data__;return Xr?void 0!==t[e]:no.call(t,e)};const oo=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xr&&void 0===t?"__lodash_hash_undefined__":t,this};function io(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}io.prototype.clear=Zr,io.prototype.delete=Qr,io.prototype.get=to,io.prototype.has=ro,io.prototype.set=oo;const ao=io;const so=function(){this.size=0,this.__data__={hash:new ao,map:new(Jr||Mr),string:new ao}};const lo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const co=function(e,t){var n=e.__data__;return lo(t)?n["string"==typeof t?"string":"hash"]:n.map};const uo=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t};const po=function(e){return co(this,e).get(e)};const fo=function(e){return co(this,e).has(e)};const mo=function(e,t){var n=co(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ho(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ho.prototype.clear=so,ho.prototype.delete=uo,ho.prototype.get=po,ho.prototype.has=fo,ho.prototype.set=mo;const go=ho;const vo=function(e,t){var n=this.__data__;if(n instanceof Mr){var r=n.__data__;if(!Jr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new go(r)}return n.set(e,t),this.size=n.size,this};function bo(e){var t=this.__data__=new Mr(e);this.size=t.size}bo.prototype.clear=Dr,bo.prototype.delete=Or,bo.prototype.get=jr,bo.prototype.has=Ar,bo.prototype.set=vo;const yo=bo;const xo=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const wo=function(e){return this.__data__.has(e)};function So(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new go;++t<n;)this.add(e[t])}So.prototype.add=So.prototype.push=xo,So.prototype.has=wo;const _o=So;const Eo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};const ko=function(e,t){return e.has(t)};const Co=function(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new _o:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=a?r(h,m,d,t,e,i):r(m,h,d,e,t,i);if(void 0!==g){if(g)continue;p=!1;break}if(f){if(!Eo(t,(function(e,t){if(!ko(f,t)&&(m===e||o(m,e,n,r,i)))return f.push(t)}))){p=!1;break}}else if(m!==h&&!o(m,h,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p};const To=Wn.Uint8Array;const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const Mo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Do=Qn?Qn.prototype:void 0,Oo=Do?Do.valueOf:void 0;const jo=function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new To(e),new To(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wr(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Io;case"[object Set]":var l=1&r;if(s||(s=Mo),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Co(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(Oo)return Oo.call(e)==Oo.call(t)}return!1};const Ao=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const Ro=Array.isArray;const Po=function(e,t,n){var r=t(e);return Ro(e)?r:Ao(r,n(e))};const No=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};const Lo=function(){return[]};var Fo=Object.prototype.propertyIsEnumerable,Uo=Object.getOwnPropertySymbols;const Bo=Uo?function(e){return null==e?[]:(e=Object(e),No(Uo(e),(function(t){return Fo.call(e,t)})))}:Lo;const zo=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const Vo=function(e){return cr(e)&&"[object Arguments]"==lr(e)};var Ko=Object.prototype,$o=Ko.hasOwnProperty,Ho=Ko.propertyIsEnumerable;const Yo=Vo(function(){return arguments}())?Vo:function(e){return cr(e)&&$o.call(e,"callee")&&!Ho.call(e,"callee")};const Wo=function(){return!1};var Go="object"==typeof exports&&exports&&!exports.nodeType&&exports,qo=Go&&"object"==typeof module&&module&&!module.nodeType&&module,Jo=qo&&qo.exports===Go?Wn.Buffer:void 0;const Xo=(Jo?Jo.isBuffer:void 0)||Wo;var Zo=/^(?:0|[1-9]\d*)$/;const Qo=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Zo.test(e))&&e>-1&&e%1==0&&e<t};const ei=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var ti={};ti["[object Float32Array]"]=ti["[object Float64Array]"]=ti["[object Int8Array]"]=ti["[object Int16Array]"]=ti["[object Int32Array]"]=ti["[object Uint8Array]"]=ti["[object Uint8ClampedArray]"]=ti["[object Uint16Array]"]=ti["[object Uint32Array]"]=!0,ti["[object Arguments]"]=ti["[object Array]"]=ti["[object ArrayBuffer]"]=ti["[object Boolean]"]=ti["[object DataView]"]=ti["[object Date]"]=ti["[object Error]"]=ti["[object Function]"]=ti["[object Map]"]=ti["[object Number]"]=ti["[object Object]"]=ti["[object RegExp]"]=ti["[object Set]"]=ti["[object String]"]=ti["[object WeakMap]"]=!1;const ni=function(e){return cr(e)&&ei(e.length)&&!!ti[lr(e)]};const ri=function(e){return function(t){return e(t)}};var oi="object"==typeof exports&&exports&&!exports.nodeType&&exports,ii=oi&&"object"==typeof module&&module&&!module.nodeType&&module,ai=ii&&ii.exports===oi&&Hn.process,si=function(){try{var e=ii&&ii.require&&ii.require("util").types;return e||ai&&ai.binding&&ai.binding("util")}catch(e){}}();var li=si&&si.isTypedArray;const ci=li?ri(li):ni;var ui=Object.prototype.hasOwnProperty;const di=function(e,t){var n=Ro(e),r=!n&&Yo(e),o=!n&&!r&&Xo(e),i=!n&&!r&&!o&&ci(e),a=n||r||o||i,s=a?zo(e.length,String):[],l=s.length;for(var c in e)!t&&!ui.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Qo(c,l))||s.push(c);return s};var pi=Object.prototype;const fi=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||pi)};const mi=function(e,t){return function(n){return e(t(n))}};const hi=mi(Object.keys,Object);var gi=Object.prototype.hasOwnProperty;const vi=function(e){if(!fi(e))return hi(e);var t=[];for(var n in Object(e))gi.call(e,n)&&"constructor"!=n&&t.push(n);return t};const bi=function(e){return null!=e&&ei(e.length)&&!Rr(e)};const yi=function(e){return bi(e)?di(e):vi(e)};const xi=function(e){return Po(e,yi,Bo)};var wi=Object.prototype.hasOwnProperty;const Si=function(e,t,n,r,o,i){var a=1&n,s=xi(e),l=s.length;if(l!=xi(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:wi.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var m=a;++c<l;){var h=e[u=s[c]],g=t[u];if(r)var v=a?r(g,h,u,t,e,i):r(h,g,u,e,t,i);if(!(void 0===v?h===g||o(h,g,n,r,i):v)){f=!1;break}m||(m="constructor"==u)}if(f&&!m){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(f=!1)}return i.delete(e),i.delete(t),f};const _i=qr(Wn,"DataView");const Ei=qr(Wn,"Promise");const ki=qr(Wn,"Set");const Ci=qr(Wn,"WeakMap");var Ti="[object Map]",Ii="[object Promise]",Mi="[object Set]",Di="[object WeakMap]",Oi="[object DataView]",ji=Br(_i),Ai=Br(Jr),Ri=Br(Ei),Pi=Br(ki),Ni=Br(Ci),Li=lr;(_i&&Li(new _i(new ArrayBuffer(1)))!=Oi||Jr&&Li(new Jr)!=Ti||Ei&&Li(Ei.resolve())!=Ii||ki&&Li(new ki)!=Mi||Ci&&Li(new Ci)!=Di)&&(Li=function(e){var t=lr(e),n="[object Object]"==t?e.constructor:void 0,r=n?Br(n):"";if(r)switch(r){case ji:return Oi;case Ai:return Ti;case Ri:return Ii;case Pi:return Mi;case Ni:return Di}return t});const Fi=Li;var Ui="[object Arguments]",Bi="[object Array]",zi="[object Object]",Vi=Object.prototype.hasOwnProperty;const Ki=function(e,t,n,r,o,i){var a=Ro(e),s=Ro(t),l=a?Bi:Fi(e),c=s?Bi:Fi(t),u=(l=l==Ui?zi:l)==zi,d=(c=c==Ui?zi:c)==zi,p=l==c;if(p&&Xo(e)){if(!Xo(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new yo),a||ci(e)?Co(e,t,n,r,o,i):jo(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&Vi.call(e,"__wrapped__"),m=d&&Vi.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,g=m?t.value():t;return i||(i=new yo),o(h,g,n,r,i)}}return!!p&&(i||(i=new yo),Si(e,t,n,r,o,i))};const $i=function e(t,n,r,o,i){return t===n||(null==t||null==n||!cr(t)&&!cr(n)?t!=t&&n!=n:Ki(t,n,r,o,e,i))};const Hi=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new yo;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?$i(u,c,3,r,d):p))return!1}}return!0};const Yi=function(e){return e==e&&!$n(e)};const Wi=function(e){for(var t=yi(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Yi(o)]}return t};const Gi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const qi=function(e){var t=Wi(e);return 1==t.length&&t[0][2]?Gi(t[0][0],t[0][1]):function(n){return n===e||Hi(n,e,t)}};var Ji=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xi=/^\w*$/;const Zi=function(e,t){if(Ro(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ur(e))||(Xi.test(e)||!Ji.test(e)||null!=t&&e in Object(t))};function Qi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Qi.Cache||go),n}Qi.Cache=go;const ea=Qi;var ta=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,na=/\\(\\)?/g;const ra=function(e){var t=ea(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ta,(function(e,n,r,o){t.push(r?o.replace(na,"$1"):n||e)})),t}));var oa=Qn?Qn.prototype:void 0,ia=oa?oa.toString:void 0;const aa=function e(t){if("string"==typeof t)return t;if(Ro(t))return yr(t,e)+"";if(ur(t))return ia?ia.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const sa=function(e){return null==e?"":aa(e)};const la=function(e,t){return Ro(e)?e:Zi(e,t)?[e]:ra(sa(e))};const ca=function(e){if("string"==typeof e||ur(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const ua=function(e,t){for(var n=0,r=(t=la(t,e)).length;null!=e&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:void 0};const da=function(e,t,n){var r=null==e?void 0:ua(e,t);return void 0===r?n:r};const pa=function(e,t){return null!=e&&t in Object(e)};const fa=function(e,t,n){for(var r=-1,o=(t=la(t,e)).length,i=!1;++r<o;){var a=ca(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ei(o)&&Qo(a,o)&&(Ro(e)||Yo(e))};const ma=function(e,t){return null!=e&&fa(e,t,pa)};const ha=function(e,t){return Zi(e)&&Yi(t)?Gi(ca(e),t):function(n){var r=da(n,e);return void 0===r&&r===t?ma(n,e):$i(t,r,3)}};const ga=function(e){return e};const va=function(e){return function(t){return null==t?void 0:t[e]}};const ba=function(e){return function(t){return ua(t,e)}};const ya=function(e){return Zi(e)?va(ca(e)):ba(e)};const xa=function(e){return"function"==typeof e?e:null==e?ga:"object"==typeof e?Ro(e)?ha(e[0],e[1]):qi(e):ya(e)};const wa=function(){try{var e=qr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const Sa=function(e,t,n){"__proto__"==t&&wa?wa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var _a=Object.prototype.hasOwnProperty;const Ea=function(e,t,n){var r=e[t];_a.call(e,t)&&wr(r,n)&&(void 0!==n||t in e)||Sa(e,t,n)};const ka=function(e,t,n,r){if(!$n(e))return e;for(var o=-1,i=(t=la(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=ca(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=$n(u)?u:Qo(t[o+1])?[]:{})}Ea(s,l,c),s=s[l]}return e};const Ca=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=ua(e,a);n(s,a)&&ka(i,la(a,e),s)}return i};const Ta=mi(Object.getPrototypeOf,Object);const Ia=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ao(t,Bo(e)),e=Ta(e);return t}:Lo;const Ma=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Da=Object.prototype.hasOwnProperty;const Oa=function(e){if(!$n(e))return Ma(e);var t=fi(e),n=[];for(var r in e)("constructor"!=r||!t&&Da.call(e,r))&&n.push(r);return n};const ja=function(e){return bi(e)?di(e,!0):Oa(e)};const Aa=function(e){return Po(e,ja,Ia)};const Ra=function(e,t){if(null==e)return{};var n=yr(Aa(e),(function(e){return[e]}));return t=xa(t),Ca(e,n,(function(e,n){return t(e,n[0])}))};const Pa=(e=>{var t={};return p.d(t,e),t})({createPortal:()=>i.createPortal,default:()=>i.default,flushSync:()=>i.flushSync});var Na=p(942);const La=(e=>{var t={};return p.d(t,e),t})({default:()=>a.default});var Fa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ba(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var za={exports:{}};za.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){e.exports=function(){if(typeof document>"u"||typeof window>"u")return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",r=n,o=Date.now(),i=!1,a=["button","input","select","textarea"],s=[],l=[16,17,18,91,93],c=[],u={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},d=!1,p={x:null,y:null},f={2:"touch",3:"touch",4:"mouse"},m=!1;try{var h=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,h)}catch{}var g=function(){u[T()]="mouse",v()},v=function(){var e=!m||{passive:!0,capture:!0};document.addEventListener("DOMContentLoaded",b,!0),window.PointerEvent?(window.addEventListener("pointerdown",y,!0),window.addEventListener("pointermove",w,!0)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",y,!0),window.addEventListener("MSPointerMove",w,!0)):(window.addEventListener("mousedown",y,!0),window.addEventListener("mousemove",w,!0),"ontouchstart"in window&&(window.addEventListener("touchstart",y,e),window.addEventListener("touchend",y,!0))),window.addEventListener(T(),w,e),window.addEventListener("keydown",y,!0),window.addEventListener("keyup",y,!0),window.addEventListener("focusin",S,!0),window.addEventListener("focusout",_,!0)},b=function(){if(i=!("false"===e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch{}x("input"),x("intent")},y=function(e){var t=e.which,o=u[e.type];"pointer"===o&&(o=k(e));var i=!c.length&&-1===l.indexOf(t),s=c.length&&-1!==c.indexOf(t),d="keyboard"===o&&t&&(i||s)||"mouse"===o||"touch"===o;if(C(o)&&(d=!1),d&&n!==o&&(E("input",n=o),x("input")),d&&r!==o){var p=document.activeElement;p&&p.nodeName&&(-1===a.indexOf(p.nodeName.toLowerCase())||"button"===p.nodeName.toLowerCase()&&!O(p,"form"))&&(E("intent",r=o),x("intent"))}},x=function(t){e.setAttribute("data-what"+t,"input"===t?n:r),I(t)},w=function(e){var t=u[e.type];"pointer"===t&&(t=k(e)),D(e),(!d&&!C(t)||d&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&r!==t&&(E("intent",r=t),x("intent"))},S=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):_()},_=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},E=function(e,t){if(i)try{window.sessionStorage.setItem("what-"+e,t)}catch{}},k=function(e){return"number"==typeof e.pointerType?f[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},C=function(e){var t=Date.now(),r="mouse"===e&&"touch"===n&&t-o<200;return o=t,r},T=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},I=function(e){for(var t=0,o=s.length;t<o;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:r)},M=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t},D=function(e){p.x!==e.screenX||p.y!==e.screenY?(d=!1,p.x=e.screenX,p.y=e.screenY):d=!0},O=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&g(),{ask:function(e){return"intent"===e?r:n},element:function(){return t},ignoreKeys:function(e){l=e},specificKeys:function(e){c=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=M(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}]);const Va=Ua(za.exports);function Ka(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var $a="object"==typeof global&&global&&global.Object===Object&&global,Ha="object"==typeof self&&self&&self.Object===Object&&self,Ya=$a||Ha||Function("return this")(),Wa=function(){return Ya.Date.now()},Ga=/\s/;var qa=/^\s+/;function Ja(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&Ga.test(e.charAt(t)););return t}(e)+1).replace(qa,"")}var Xa=Ya.Symbol,Za=Object.prototype,Qa=Za.hasOwnProperty,es=Za.toString,ts=Xa?Xa.toStringTag:void 0;var ns=Object.prototype.toString;var rs=Xa?Xa.toStringTag:void 0;function os(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":rs&&rs in Object(e)?function(e){var t=Qa.call(e,ts),n=e[ts];try{e[ts]=void 0;var r=!0}catch{}var o=es.call(e);return r&&(t?e[ts]=n:delete e[ts]),o}(e):function(e){return ns.call(e)}(e)}function is(e){return null!=e&&"object"==typeof e}function as(e){return"symbol"==typeof e||is(e)&&"[object Symbol]"==os(e)}var ss=/^[-+]0x[0-9a-f]+$/i,ls=/^0b[01]+$/i,cs=/^0o[0-7]+$/i,us=parseInt;function ds(e){if("number"==typeof e)return e;if(as(e))return NaN;if(Ka(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ka(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Ja(e);var n=ls.test(e);return n||cs.test(e)?us(e.slice(2),n?2:8):ss.test(e)?NaN:+e}var ps=Math.max,fs=Math.min;function ms(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function h(){var e=Wa();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?fs(n,i-(e-c)):n}(e))}function g(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function v(){var e=Wa(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(h,t),u?f(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(h,t),f(l)}return void 0===s&&(s=setTimeout(h,t)),a}return t=ds(t)||0,Ka(n)&&(u=!!n.leading,i=(d="maxWait"in n)?ps(ds(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(Wa())},v}const hs=["xs","sm","md","lg","xl","xxl"],gs=()=>{const[e,t]=(0,jn.useState)(vs());return(0,jn.useEffect)((()=>{const e=ms((()=>{t(vs())}),20);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]),e},vs=()=>{let e=null;return typeof window<"u"&&(e=window.matchMedia("(min-width: 1400px)").matches?"xxl":window.matchMedia("(min-width: 1200px)").matches?"xl":window.matchMedia("(min-width: 992px)").matches?"lg":window.matchMedia("(min-width: 768px)").matches?"md":window.matchMedia("(min-width: 576px)").matches?"sm":"xs"),e},bs=()=>{const e=gs(),t=jn.default.useMemo((()=>e?hs.slice(0,hs.indexOf(e)+1):[]),[e]);return{getCurrentBreakpointProps:jn.default.useCallback(((e,n={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...t.map((t=>Ra("xs"===t?l:e[t],(e=>void 0!==e))))].filter(Boolean);return Object.assign(n,...c)}),[t])}},ys=["xs","sm"],xs=["md"],ws=["lg","xl","xxl"],Ss=e=>{const t=gs(),n=null==e?void 0:e.reduce(((e,t)=>{switch(t){case"desktop":return[...e,...ws];case"tablet":return[...e,...xs];case"mobile":return[...e,...ys];default:return[...e,t]}}),[]);return!!t&&n.includes(t)},_s={"primary-main":"primary-main-ea0565ff","primary-active":"primary-active-d24cbc9e","primary-active-subtle":"primary-active-subtle-c2ab8b5f","primary-highlight":"primary-highlight-212d11b7","primary-highlight-subtle":"primary-highlight-subtle-715c2641","accent-main":"accent-main-f55c9be5","accent-highlight":"accent-highlight-6810179d","bg-default":"bg-default-099a281c","bg-muted":"bg-muted-13732b1c","bg-subtle":"bg-subtle-e7130c61","bg-disabled":"bg-disabled-eed0584e","bg-inverted":"bg-inverted-2bf8047e","bg-inverted-contrast":"bg-inverted-contrast-304e2c10",black:"black-d9cad7d6",white:"white-5992ce1a","positive-main":"positive-main-dfc533f2","positive-active":"positive-active-f4288715","positive-highlight":"positive-highlight-6594b5a8","important-main":"important-main-67d03aad","important-active":"important-active-5ebf547d","important-highlight":"important-highlight-aa19e975","info-main":"info-main-80c1cd50","info-active":"info-active-5f165e38","info-highlight":"info-highlight-578939bc","warning-main":"warning-main-2fae5383","warning-highlight":"warning-highlight-f87e48b3",transparent:"transparent-74d01799"},Es=e=>e?_s[e]:"",ks=e=>{const{getCurrentBreakpointProps:t}=bs(),{children:n,className:r,tabIndex:o,element:i="p",modifiers:a,color:s,...l}=t(e,{tabIndex:e.id?-1:void 0}),c="string"==typeof a?[a]:a,u=Na(r,null==c?void 0:c.map((e=>`text-${e}`)),{[`text-${s}`]:s});return(0,Pn.jsx)(i,{className:u,...l,tabIndex:o,children:n})},Cs=e=>{const{children:t,element:n="h1",...r}=e;return(0,Pn.jsx)(ks,{element:n,...r,children:t})};function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ts.apply(null,arguments)}const Is=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Ts}},Symbol.toStringTag,{value:"Module"}));var Ms={exports:{}};var Ds=Object.getOwnPropertySymbols,Os=Object.prototype.hasOwnProperty,js=Object.prototype.propertyIsEnumerable;var As,Rs,Ps,Ns,Ls=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch{return!1}}()?Object.assign:function(e,t){for(var n,r,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var a in n=Object(arguments[i]))Os.call(n,a)&&(o[a]=n[a]);if(Ds){r=Ds(n);for(var s=0;s<r.length;s++)js.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function Fs(){if(Rs)return As;Rs=1;return As="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}Ms.exports=function(){if(Ns)return Ps;Ns=1;var e=Fs();function t(){}function n(){}return n.resetWarningCache=t,Ps=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ps}()();const Us=Ua(Ms.exports);function Bs(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const zs=Object.freeze(Object.defineProperty({__proto__:null,default:Bs},Symbol.toStringTag,{value:"Module"})),Vs="$$material";function Ks(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var $s=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Hs="-ms-",Ys="-moz-",Ws="-webkit-",Gs="comm",qs="rule",Js="decl",Xs="@keyframes",Zs=Math.abs,Qs=String.fromCharCode,el=Object.assign;function tl(e){return e.trim()}function nl(e,t,n){return e.replace(t,n)}function rl(e,t){return e.indexOf(t)}function ol(e,t){return 0|e.charCodeAt(t)}function il(e,t,n){return e.slice(t,n)}function al(e){return e.length}function sl(e){return e.length}function ll(e,t){return t.push(e),e}var cl=1,ul=1,dl=0,pl=0,fl=0,ml="";function hl(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:cl,column:ul,length:a,return:""}}function gl(e,t){return el(hl("",null,null,"",null,null,0),e,{length:-e.length},t)}function vl(){return fl=pl<dl?ol(ml,pl++):0,ul++,10===fl&&(ul=1,cl++),fl}function bl(){return ol(ml,pl)}function yl(){return pl}function xl(e,t){return il(ml,e,t)}function wl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Sl(e){return cl=ul=1,dl=al(ml=e),pl=0,[]}function _l(e){return ml="",e}function El(e){return tl(xl(pl-1,Tl(91===e?e+2:40===e?e+1:e)))}function kl(e){for(;(fl=bl())&&fl<33;)vl();return wl(e)>2||wl(fl)>3?"":" "}function Cl(e,t){for(;--t&&vl()&&!(fl<48||fl>102||fl>57&&fl<65||fl>70&&fl<97););return xl(e,yl()+(t<6&&32==bl()&&32==vl()))}function Tl(e){for(;vl();)switch(fl){case e:return pl;case 34:case 39:34!==e&&39!==e&&Tl(fl);break;case 40:41===e&&Tl(e);break;case 92:vl()}return pl}function Il(e,t){for(;vl()&&e+fl!==57&&(e+fl!==84||47!==bl()););return"/*"+xl(t,pl-1)+"*"+Qs(47===e?e:vl())}function Ml(e){for(;!wl(bl());)vl();return xl(e,pl)}function Dl(e){return _l(Ol("",null,null,null,[""],e=Sl(e),0,[0],e))}function Ol(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,v=1,b=0,y="",x=o,w=i,S=r,_=y;g;)switch(m=b,b=vl()){case 40:if(108!=m&&58==ol(_,d-1)){-1!=rl(_+=nl(El(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=El(b);break;case 9:case 10:case 13:case 32:_+=kl(m);break;case 92:_+=Cl(yl()-1,7);continue;case 47:switch(bl()){case 42:case 47:ll(Al(Il(vl(),yl()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=al(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=nl(_,/\f/g,"")),f>0&&al(_)-d&&ll(f>32?Rl(_+";",r,n,d-1):Rl(nl(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(ll(S=jl(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)Ol(_,t,S,S,x,i,d,s,w);else switch(99===p&&110===ol(_,3)?100:p){case 100:case 108:case 109:case 115:Ol(e,S,S,r&&ll(jl(e,S,S,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Ol(_,S,S,S,[""],w,0,s,w)}}c=u=f=0,h=v=1,y=_="",d=a;break;case 58:d=1+al(_),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(fl=pl>0?ol(ml,--pl):0,ul--,10===fl&&(ul=1,cl--),fl))continue;switch(_+=Qs(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(al(_)-1)*v,v=1;break;case 64:45===bl()&&(_+=El(vl())),p=bl(),u=d=al(y=_+=Ml(yl())),b++;break;case 45:45===m&&2==al(_)&&(h=0)}}return i}function jl(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=sl(p),m=0,h=0,g=0;m<r;++m)for(var v=0,b=il(e,d+1,d=Zs(h=a[m])),y=e;v<f;++v)(y=tl(h>0?p[v]+" "+b:nl(b,/&\f/g,p[v])))&&(l[g++]=y);return hl(e,t,n,0===o?qs:s,l,c,u)}function Al(e,t,n){return hl(e,t,n,Gs,Qs(fl),il(e,2,-2),0)}function Rl(e,t,n,r){return hl(e,t,n,Js,il(e,0,r),il(e,r+1,-1),r)}function Pl(e,t){for(var n="",r=sl(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Nl(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Js:return e.return=e.return||e.value;case Gs:return"";case Xs:return e.return=e.value+"{"+Pl(e.children,r)+"}";case qs:e.value=e.props.join(",")}return al(n=Pl(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ll(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Fl=function(e,t,n){for(var r=0,o=0;r=o,o=bl(),38===r&&12===o&&(t[n]=1),!wl(o);)vl();return xl(e,pl)},Ul=function(e,t){return _l(function(e,t){var n=-1,r=44;do{switch(wl(r)){case 0:38===r&&12===bl()&&(t[n]=1),e[n]+=Fl(pl-1,t,n);break;case 2:e[n]+=El(r);break;case 4:if(44===r){e[++n]=58===bl()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Qs(r)}}while(r=vl());return e}(Sl(e),t))},Bl=new WeakMap,zl=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Bl.get(n))&&!r){Bl.set(e,!0);for(var o=[],i=Ul(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Vl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Kl(e,t){switch(function(e,t){return 45^ol(e,0)?(((t<<2^ol(e,0))<<2^ol(e,1))<<2^ol(e,2))<<2^ol(e,3):0}(e,t)){case 5103:return Ws+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ws+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ws+e+Ys+e+Hs+e+e;case 6828:case 4268:return Ws+e+Hs+e+e;case 6165:return Ws+e+Hs+"flex-"+e+e;case 5187:return Ws+e+nl(e,/(\w+).+(:[^]+)/,Ws+"box-$1$2"+Hs+"flex-$1$2")+e;case 5443:return Ws+e+Hs+"flex-item-"+nl(e,/flex-|-self/,"")+e;case 4675:return Ws+e+Hs+"flex-line-pack"+nl(e,/align-content|flex-|-self/,"")+e;case 5548:return Ws+e+Hs+nl(e,"shrink","negative")+e;case 5292:return Ws+e+Hs+nl(e,"basis","preferred-size")+e;case 6060:return Ws+"box-"+nl(e,"-grow","")+Ws+e+Hs+nl(e,"grow","positive")+e;case 4554:return Ws+nl(e,/([^-])(transform)/g,"$1"+Ws+"$2")+e;case 6187:return nl(nl(nl(e,/(zoom-|grab)/,Ws+"$1"),/(image-set)/,Ws+"$1"),e,"")+e;case 5495:case 3959:return nl(e,/(image-set\([^]*)/,Ws+"$1$`$1");case 4968:return nl(nl(e,/(.+:)(flex-)?(.*)/,Ws+"box-pack:$3"+Hs+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ws+e+e;case 4095:case 3583:case 4068:case 2532:return nl(e,/(.+)-inline(.+)/,Ws+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(al(e)-1-t>6)switch(ol(e,t+1)){case 109:if(45!==ol(e,t+4))break;case 102:return nl(e,/(.+:)(.+)-([^]+)/,"$1"+Ws+"$2-$3$1"+Ys+(108==ol(e,t+3)?"$3":"$2-$3"))+e;case 115:return~rl(e,"stretch")?Kl(nl(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ol(e,t+1))break;case 6444:switch(ol(e,al(e)-3-(~rl(e,"!important")&&10))){case 107:return nl(e,":",":"+Ws)+e;case 101:return nl(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ws+(45===ol(e,14)?"inline-":"")+"box$3$1"+Ws+"$2$3$1"+Hs+"$2box$3")+e}break;case 5936:switch(ol(e,t+11)){case 114:return Ws+e+Hs+nl(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ws+e+Hs+nl(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ws+e+Hs+nl(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ws+e+Hs+e+e}return e}var $l,Hl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Js:e.return=Kl(e.value,e.length);break;case Xs:return Pl([gl(e,{value:nl(e.value,"@","@"+Ws)})],r);case qs:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pl([gl(e,{props:[nl(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Pl([gl(e,{props:[nl(t,/:(plac\w+)/,":"+Ws+"input-$1")]}),gl(e,{props:[nl(t,/:(plac\w+)/,":-moz-$1")]}),gl(e,{props:[nl(t,/:(plac\w+)/,Hs+"input-$1")]})],r)}return""}))}}],Yl=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o=e.stylisPlugins||Hl,i={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;a.push(e)}));var s,l,c,u=[Nl,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=sl(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([zl,Vl].concat(o,u));s=function(e,t,n,r){l=n,function(e){Pl(Dl(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new $s({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(a),p},Wl={exports:{}},Gl={};Wl.exports=function(){if($l)return Gl;$l=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case r:case i:case o:case d:return e;default:switch(e=e&&e.$$typeof){case s:case u:case m:case f:case a:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return Gl.AsyncMode=l,Gl.ConcurrentMode=c,Gl.ContextConsumer=s,Gl.ContextProvider=a,Gl.Element=t,Gl.ForwardRef=u,Gl.Fragment=r,Gl.Lazy=m,Gl.Memo=f,Gl.Portal=n,Gl.Profiler=i,Gl.StrictMode=o,Gl.Suspense=d,Gl.isAsyncMode=function(e){return x(e)||y(e)===l},Gl.isConcurrentMode=x,Gl.isContextConsumer=function(e){return y(e)===s},Gl.isContextProvider=function(e){return y(e)===a},Gl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Gl.isForwardRef=function(e){return y(e)===u},Gl.isFragment=function(e){return y(e)===r},Gl.isLazy=function(e){return y(e)===m},Gl.isMemo=function(e){return y(e)===f},Gl.isPortal=function(e){return y(e)===n},Gl.isProfiler=function(e){return y(e)===i},Gl.isStrictMode=function(e){return y(e)===o},Gl.isSuspense=function(e){return y(e)===d},Gl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===i||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===u||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===h)},Gl.typeOf=y,Gl}();var ql=Wl.exports,Jl={};Jl[ql.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jl[ql.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Xl(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Zl=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ql=function(e,t,n){Zl(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var ec={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,scale: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},tc=/[A-Z]|^ms/g,nc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rc=function(e){return 45===e.charCodeAt(1)},oc=function(e){return null!=e&&"boolean"!=typeof e},ic=Ll((function(e){return rc(e)?e:e.replace(tc,"-$&").toLowerCase()})),ac=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(nc,(function(e,t,n){return lc={name:t,styles:n,next:lc},t}))}return 1===ec[e]||rc(e)||"number"!=typeof t||0===t?t:t+"px"};function sc(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return lc={name:o.name,styles:o.styles,next:lc},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)lc={name:a.name,styles:a.styles,next:lc},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=sc(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":oc(s)&&(r+=ic(i)+":"+ac(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=sc(e,t,a);switch(i){case"animation":case"animationName":r+=ic(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)oc(a[c])&&(r+=ic(i)+":"+ac(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=lc,l=n(e);return lc=s,sc(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var lc,cc=/label:\s*([^\s;{]+)\s*(;|$)/g;function uc(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";lc=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=sc(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)if(o+=sc(n,t,e[a]),r){o+=i[a]}cc.lastIndex=0;for(var s,l="";null!==(s=cc.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:lc}}var dc,pc,fc=!!jn.useInsertionEffect&&jn.useInsertionEffect,mc=fc||function(e){return e()},hc=fc||jn.useLayoutEffect,gc=jn.createContext(typeof HTMLElement<"u"?Yl({key:"css"}):null),vc=gc.Provider,bc=function(e){return(0,jn.forwardRef)((function(t,n){var r=(0,jn.useContext)(gc);return e(t,r,n)}))},yc=jn.createContext({}),xc={}.hasOwnProperty,wc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Sc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Zl(t,n,r),mc((function(){return Ql(t,n,r)})),null},_c=bc((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[wc],i=[r],a="";"string"==typeof e.className?a=Xl(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=uc(i,void 0,jn.useContext(yc));a+=t.key+"-"+s.name;var l={};for(var c in e)xc.call(e,c)&&"css"!==c&&c!==wc&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),jn.createElement(jn.Fragment,null,jn.createElement(Sc,{cache:t,serialized:s,isStringTag:"string"==typeof o}),jn.createElement(o,l))})),Ec=_c,kc=function(e,t){var n=arguments;if(null==t||!xc.call(t,"css"))return jn.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Ec,o[1]=function(e,t){var n={};for(var r in t)xc.call(t,r)&&(n[r]=t[r]);return n[wc]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return jn.createElement.apply(null,o)};dc=kc||(kc={}),pc||(pc=dc.JSX||(dc.JSX={}));var Cc=bc((function(e,t){var n=uc([e.styles],void 0,jn.useContext(yc)),r=jn.useRef();return hc((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),hc((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ql(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function Tc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return uc(t)}function Ic(){var e=Tc.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Mc=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Dc=Ll((function(e){return Mc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Oc=Dc,jc=function(e){return"theme"!==e},Ac=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Oc:jc},Rc=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Pc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Zl(t,n,r),mc((function(){return Ql(t,n,r)})),null},Nc=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Rc(t,n,i),l=s||Ac(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],p[m])}var h=bc((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=jn.useContext(yc)}"string"==typeof e.className?i=Xl(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=uc(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?Ac(r):l,g={};for(var v in e)c&&"as"===v||h(v)&&(g[v]=e[v]);return g.className=i,n&&(g.ref=n),jn.createElement(jn.Fragment,null,jn.createElement(Pc,{cache:t,serialized:m,isStringTag:"string"==typeof r}),jn.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Ts({},n,r,{shouldForwardProp:Rc(h,r,!0)})).apply(void 0,d)},h}}.bind(null);let Lc;["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Nc[e]=Nc(e)})),"object"==typeof document&&(Lc=Yl({key:"css",prepend:!0}));const Fc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e;return(0,Pn.jsx)(Cc,{styles:"function"==typeof t?e=>t(function(e){return null==e||0===Object.keys(e).length}(e)?n:e):t})},StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&Lc?(0,Pn.jsx)(vc,{value:Lc,children:n}):n},ThemeContext:yc,css:Tc,default:function(e,t){return Nc(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:Ic},Symbol.toStringTag,{value:"Module"}));function Uc(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Bc(e){if(jn.isValidElement(e)||!Uc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Bc(e[n])})),t}function zc(e,t,n={clone:!0}){const r=n.clone?Ts({},e):e;return Uc(e)&&Uc(t)&&Object.keys(t).forEach((o=>{jn.isValidElement(t[o])?r[o]=t[o]:Uc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Uc(e[o])?r[o]=zc(e[o],t[o],n):n.clone?r[o]=Uc(t[o])?Bc(t[o]):t[o]:r[o]=t[o]})),r}const Vc=Object.freeze(Object.defineProperty({__proto__:null,default:zc,isPlainObject:Uc},Symbol.toStringTag,{value:"Module"})),Kc=["values","unit","step"];function $c(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ks(e,Kc),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Ts({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Ts({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Hc={borderRadius:4};function Yc(e,t){return t?zc(e,t,{clone:!1}):e}const Wc={xs:0,sm:600,md:900,lg:1200,xl:1536},Gc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Wc[e]}px)`};function qc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Gc;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Gc;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Wc).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Jc({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Xc(e){if("string"!=typeof e)throw new Error(Bs(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Zc=Object.freeze(Object.defineProperty({__proto__:null,default:Xc},Symbol.toStringTag,{value:"Module"}));function Qc(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function eu(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Qc(e,n)||r,t&&(o=t(o,r,e)),o}function tu(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Qc(e.theme,r)||{};return qc(e,i,(e=>{let r=eu(a,o,e);return e===r&&"string"==typeof e&&(r=eu(a,o,`${t}${"default"===e?"":Xc(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const nu={m:"margin",p:"padding"},ru={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ou={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},iu=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ou[e])return[e];e=ou[e]}const[t,n]=e.split(""),r=nu[t],o=ru[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),au=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],su=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function lu(e,t,n,r){var o;const i=null!=(o=Qc(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function cu(e){return lu(e,"spacing",8)}function uu(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function du(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=uu(t,n),e)),{})}(iu(n),r);return qc(e,e[n],o)}function pu(e,t){const n=cu(e.theme);return Object.keys(e).map((r=>du(e,t,r,n))).reduce(Yc,{})}function fu(e){return pu(e,au)}function mu(e){return pu(e,su)}function hu(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Yc(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function gu(e){return"number"!=typeof e?e:`${e}px solid`}function vu(e,t){return tu({prop:e,themeKey:"borders",transform:t})}fu.propTypes={},fu.filterProps=au,mu.propTypes={},mu.filterProps=su;const bu=vu("border",gu),yu=vu("borderTop",gu),xu=vu("borderRight",gu),wu=vu("borderBottom",gu),Su=vu("borderLeft",gu),_u=vu("borderColor"),Eu=vu("borderTopColor"),ku=vu("borderRightColor"),Cu=vu("borderBottomColor"),Tu=vu("borderLeftColor"),Iu=vu("outline",gu),Mu=vu("outlineColor"),Du=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=lu(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:uu(t,e)});return qc(e,e.borderRadius,n)}return null};Du.propTypes={},Du.filterProps=["borderRadius"],hu(bu,yu,xu,wu,Su,_u,Eu,ku,Cu,Tu,Du,Iu,Mu);const Ou=e=>{if(void 0!==e.gap&&null!==e.gap){const t=lu(e.theme,"spacing",8),n=e=>({gap:uu(t,e)});return qc(e,e.gap,n)}return null};Ou.propTypes={},Ou.filterProps=["gap"];const ju=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=lu(e.theme,"spacing",8),n=e=>({columnGap:uu(t,e)});return qc(e,e.columnGap,n)}return null};ju.propTypes={},ju.filterProps=["columnGap"];const Au=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=lu(e.theme,"spacing",8),n=e=>({rowGap:uu(t,e)});return qc(e,e.rowGap,n)}return null};Au.propTypes={},Au.filterProps=["rowGap"];function Ru(e,t){return"grey"===t?t:e}hu(Ou,ju,Au,tu({prop:"gridColumn"}),tu({prop:"gridRow"}),tu({prop:"gridAutoFlow"}),tu({prop:"gridAutoColumns"}),tu({prop:"gridAutoRows"}),tu({prop:"gridTemplateColumns"}),tu({prop:"gridTemplateRows"}),tu({prop:"gridTemplateAreas"}),tu({prop:"gridArea"}));function Pu(e){return e<=1&&0!==e?100*e+"%":e}hu(tu({prop:"color",themeKey:"palette",transform:Ru}),tu({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ru}),tu({prop:"backgroundColor",themeKey:"palette",transform:Ru}));const Nu=tu({prop:"width",transform:Pu}),Lu=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Wc[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Pu(t)}};return qc(e,e.maxWidth,t)}return null};Lu.filterProps=["maxWidth"];const Fu=tu({prop:"minWidth",transform:Pu}),Uu=tu({prop:"height",transform:Pu}),Bu=tu({prop:"maxHeight",transform:Pu}),zu=tu({prop:"minHeight",transform:Pu});tu({prop:"size",cssProperty:"width",transform:Pu}),tu({prop:"size",cssProperty:"height",transform:Pu});hu(Nu,Lu,Fu,Uu,Bu,zu,tu({prop:"boxSizing"}));const Vu={border:{themeKey:"borders",transform:gu},borderTop:{themeKey:"borders",transform:gu},borderRight:{themeKey:"borders",transform:gu},borderBottom:{themeKey:"borders",transform:gu},borderLeft:{themeKey:"borders",transform:gu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:gu},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Du},color:{themeKey:"palette",transform:Ru},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ru},backgroundColor:{themeKey:"palette",transform:Ru},p:{style:mu},pt:{style:mu},pr:{style:mu},pb:{style:mu},pl:{style:mu},px:{style:mu},py:{style:mu},padding:{style:mu},paddingTop:{style:mu},paddingRight:{style:mu},paddingBottom:{style:mu},paddingLeft:{style:mu},paddingX:{style:mu},paddingY:{style:mu},paddingInline:{style:mu},paddingInlineStart:{style:mu},paddingInlineEnd:{style:mu},paddingBlock:{style:mu},paddingBlockStart:{style:mu},paddingBlockEnd:{style:mu},m:{style:fu},mt:{style:fu},mr:{style:fu},mb:{style:fu},ml:{style:fu},mx:{style:fu},my:{style:fu},margin:{style:fu},marginTop:{style:fu},marginRight:{style:fu},marginBottom:{style:fu},marginLeft:{style:fu},marginX:{style:fu},marginY:{style:fu},marginInline:{style:fu},marginInlineStart:{style:fu},marginInlineEnd:{style:fu},marginBlock:{style:fu},marginBlockStart:{style:fu},marginBlockEnd:{style:fu},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ou},rowGap:{style:Au},columnGap:{style:ju},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pu},maxWidth:{style:Lu},minWidth:{transform:Pu},height:{transform:Pu},maxHeight:{transform:Pu},minHeight:{transform:Pu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ku(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Qc(n,s)||{};return c?c(o):qc(o,t,(t=>{let n=eu(u,l,t);return t===n&&"string"==typeof t&&(n=eu(u,l,`${e}${"default"===t?"":Xc(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Vu;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=function(e,t){return"function"==typeof e?e(t):e}(r[n],i);if(null!=o)if("object"==typeof o)if(a[n])l=Yc(l,e(n,o,i,a));else{const e=qc({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=Yc(l,e):l[n]=t({sx:o,theme:i})}else l=Yc(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const $u=Ku();function Hu(e,t){const n=this;return n.vars&&"function"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}$u.filterProps=["sx"];const Yu=["breakpoints","palette","spacing","shape"];function Wu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ks(e,Yu),s=$c(n),l=function(e=8){if(e.mui)return e;const t=cu({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let c=zc({breakpoints:s,direction:"ltr",components:{},palette:Ts({mode:"light"},r),spacing:l,shape:Ts({},Hc,i)},a);return c.applyStyles=Hu,c=t.reduce(((e,t)=>zc(e,t)),c),c.unstable_sxConfig=Ts({},Vu,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return $u({sx:e,theme:this})},c}const Gu=Object.freeze(Object.defineProperty({__proto__:null,default:Wu,private_createBreakpoints:$c,unstable_applyStyles:Hu},Symbol.toStringTag,{value:"Module"}));function qu(e=null){const t=jn.useContext(yc);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const Ju=Wu();function Xu(e=Ju){return qu(e)}const Zu=["sx"];function Qu(e){const{sx:t}=e,n=Ks(e,Zu),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Vu;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Uc(n)?Ts({},r,n):r}:Ts({},r,t),Ts({},o,{sx:i})}const ed=Object.freeze(Object.defineProperty({__proto__:null,default:$u,extendSxProp:Qu,unstable_createStyleFunctionSx:Ku,unstable_defaultSxConfig:Vu},Symbol.toStringTag,{value:"Module"})),td=e=>e,nd=(()=>{let e=td;return{configure(t){e=t},generate:t=>e(t),reset(){e=td}}})();function rd(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=rd(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function od(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=rd(e))&&(r&&(r+=" "),r+=t);return r}const id={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ad(e,t,n="Mui"){const r=id[t];return r?`${n}-${r}`:`${nd.generate(e)}-${t}`}function sd(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ad(e,t,n)})),r}var ld,cd={exports:{}},ud={};cd.exports=function(){if(ld)return ud;ld=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),f=Symbol.for("react.client.reference");function m(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case n:case o:case r:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return f}}case t:return f}}}return ud.ContextConsumer=i,ud.ContextProvider=a,ud.Element=e,ud.ForwardRef=s,ud.Fragment=n,ud.Lazy=d,ud.Memo=u,ud.Portal=t,ud.Profiler=o,ud.StrictMode=r,ud.Suspense=l,ud.SuspenseList=c,ud.isContextConsumer=function(e){return m(e)===i},ud.isContextProvider=function(e){return m(e)===a},ud.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ud.isForwardRef=function(e){return m(e)===s},ud.isFragment=function(e){return m(e)===n},ud.isLazy=function(e){return m(e)===d},ud.isMemo=function(e){return m(e)===u},ud.isPortal=function(e){return m(e)===t},ud.isProfiler=function(e){return m(e)===o},ud.isStrictMode=function(e){return m(e)===r},ud.isSuspense=function(e){return m(e)===l},ud.isSuspenseList=function(e){return m(e)===c},ud.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===r||e===l||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===a||e.$$typeof===i||e.$$typeof===s||e.$$typeof===f||void 0!==e.getModuleId)},ud.typeOf=m,ud}();var dd=cd.exports;const pd=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fd(e){const t=`${e}`.match(pd);return t&&t[1]||""}function md(e,t=""){return e.displayName||e.name||fd(e)||t}function hd(e,t,n){const r=md(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const gd=Object.freeze(Object.defineProperty({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return md(e,"Component");if("object"==typeof e)switch(e.$$typeof){case dd.ForwardRef:return hd(e,e.render,"ForwardRef");case dd.Memo:return hd(e,e.type,"memo");default:return}}},getFunctionName:fd},Symbol.toStringTag,{value:"Module"}));function vd(e,t){const n=Ts({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Ts({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Ts({},i),Object.keys(o).forEach((e=>{n[r][e]=vd(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function bd(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?vd(t.components[n].defaultProps,r):r}const yd=typeof window<"u"?jn.useLayoutEffect:jn.useEffect;function xd(e,t,n,r,o){const[i,a]=jn.useState((()=>o&&n?n(e).matches:r?r(e).matches:t));return yd((()=>{let t=!0;if(!n)return;const r=n(e),o=()=>{t&&a(r.matches)};return o(),r.addListener(o),()=>{t=!1,r.removeListener(o)}}),[e,n]),i}const wd=jn.useSyncExternalStore;function Sd(e,t,n,r,o){const i=jn.useCallback((()=>t),[t]),a=jn.useMemo((()=>{if(o&&n)return()=>n(e).matches;if(null!==r){const{matches:t}=r(e);return()=>t}return i}),[i,e,r,o,n]),[s,l]=jn.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,n,e]);return wd(l,s,a)}function _d(e,t={}){const n=qu(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=bd({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==wd?Sd:xd)(l,o,i,a,s)}function Ed(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kd=Object.freeze(Object.defineProperty({__proto__:null,default:Ed},Symbol.toStringTag,{value:"Module"}));function Cd(e){if(e.type)return e;if("#"===e.charAt(0))return Cd(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Bs(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Bs(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Td(e,t){return e=Cd(e),t=function(e,t=0,n=1){return Ed(e,t,n)}(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}(Us.element,()=>null).isRequired=(Us.element.isRequired,()=>null);Us.elementType;Us.oneOfType([Us.func,Us.object]);function Id(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Md(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Dd(e){return e&&e.ownerDocument||document}function Od(e){return Dd(e).defaultView||window}function jd(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ad=0;const Rd=jn.useId;function Pd(e){if(void 0!==Rd){const t=Rd();return e??t}return function(e){const[t,n]=jn.useState(e),r=e||t;return jn.useEffect((()=>{null==t&&(Ad+=1,n(`mui-${Ad}`))}),[t]),r}(e)}function Nd({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=jn.useRef(void 0!==e),[i,a]=jn.useState(t);return[o?e:i,jn.useCallback((e=>{o||a(e)}),[])]}function Ld(e){const t=jn.useRef(e);return yd((()=>{t.current=e})),jn.useRef(((...e)=>(0,t.current)(...e))).current}function Fd(...e){return jn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{jd(e,t)}))}),e)}const Ud={};const Bd=[];class zd{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new zd}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Vd(){const e=function(e,t){const n=jn.useRef(Ud);return n.current===Ud&&(n.current=e(t)),n}(zd.create).current;return function(e){jn.useEffect(e,Bd)}(e.disposeEffect),e}let Kd=!0,$d=!1;const Hd=new zd,Yd={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Wd(e){e.metaKey||e.altKey||e.ctrlKey||(Kd=!0)}function Gd(){Kd=!1}function qd(){"hidden"===this.visibilityState&&$d&&(Kd=!0)}function Jd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Kd||function(e){const{type:t,tagName:n}=e;return!!("INPUT"===n&&Yd[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||e.isContentEditable)}(t)}function Xd(){const e=jn.useCallback((e=>{null!=e&&function(e){e.addEventListener("keydown",Wd,!0),e.addEventListener("mousedown",Gd,!0),e.addEventListener("pointerdown",Gd,!0),e.addEventListener("touchstart",Gd,!0),e.addEventListener("visibilitychange",qd,!0)}(e.ownerDocument)}),[]),t=jn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Jd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&($d=!0,Hd.start(100,(()=>{$d=!1})),t.current=!1,!0)},ref:e}}let Zd;function Qd(){if(Zd)return Zd;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Zd="reverse",e.scrollLeft>0?Zd="default":(e.scrollLeft=1,0===e.scrollLeft&&(Zd="negative")),document.body.removeChild(e),Zd}function ep(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Qd()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}Number.isInteger;function tp(){return null}tp.isRequired=tp;function np(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function rp(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function op(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const ip=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ap(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Ks(e,ip),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=od(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Ts({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Ts({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=rp(Ts({},o,r)),s=op(r),l=op(o),c=t(a),u=od(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Ts({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Ts({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Ts({},a,{externalSlotProps:s}));return function(e,t,n){return void 0===e||function(e){return"string"==typeof e}(e)?t:Ts({},t,{ownerState:Ts({},t.ownerState,n)})}(n,Ts({},l,{ref:Fd(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function sp(e){var t;return parseInt(jn.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const lp=jn.createContext(),cp=()=>jn.useContext(lp)??!1,up=jn.createContext(void 0);function dp({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?vd(o.defaultProps,r):o.styleOverrides||o.variants?r:vd(o,r)}({props:e,name:t,theme:{components:jn.useContext(up)}})}function pp(e){return pp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pp(e)}function fp(e){var t=function(e,t){if("object"!=pp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=pp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pp(t)?t:t+""}function mp(e,t){return Ts({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var hp={},gp={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(gp);var vp=gp.exports;const bp=Ba(zs),yp=Ba(kd);var xp=vp;Object.defineProperty(hp,"__esModule",{value:!0});var wp=hp.alpha=Rp;hp.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Mp(e),a=Mp(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Op({type:"rgb",values:s})},hp.colorChannel=void 0;var Sp=hp.darken=Pp;hp.decomposeColor=Mp,hp.emphasize=Lp;var _p=hp.getContrastRatio=function(e,t){const n=Ap(e),r=Ap(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};hp.getLuminance=Ap,hp.hexToRgb=Ip,hp.hslToRgb=jp;var Ep=hp.lighten=Np;hp.private_safeAlpha=function(e,t,n){try{return Rp(e,t)}catch{return e}},hp.private_safeColorChannel=void 0,hp.private_safeDarken=function(e,t,n){try{return Pp(e,t)}catch{return e}},hp.private_safeEmphasize=function(e,t,n){try{return Lp(e,t)}catch{return e}},hp.private_safeLighten=function(e,t,n){try{return Np(e,t)}catch{return e}},hp.recomposeColor=Op,hp.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Mp(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var kp=xp(bp),Cp=xp(yp);function Tp(e,t=0,n=1){return(0,Cp.default)(e,t,n)}function Ip(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Mp(e){if(e.type)return e;if("#"===e.charAt(0))return Mp(Ip(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,kp.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,kp.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Dp=e=>{const t=Mp(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};hp.colorChannel=Dp;function Op(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function jp(e){e=Mp(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Op({type:s,values:l})}function Ap(e){let t="hsl"===(e=Mp(e)).type||"hsla"===e.type?Mp(jp(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Rp(e,t){return e=Mp(e),t=Tp(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Op(e)}function Pp(e,t){if(e=Mp(e),t=Tp(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Op(e)}function Np(e,t){if(e=Mp(e),t=Tp(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Op(e)}function Lp(e,t=.15){return Ap(e)>.5?Pp(e,t):Np(e,t)}hp.private_safeColorChannel=(e,t)=>{try{return Dp(e)}catch{return e}};const Fp={black:"#000",white:"#fff"},Up={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Bp="#f3e5f5",zp="#ce93d8",Vp="#ba68c8",Kp="#ab47bc",$p="#9c27b0",Hp="#7b1fa2",Yp="#e57373",Wp="#ef5350",Gp="#f44336",qp="#d32f2f",Jp="#c62828",Xp="#ffb74d",Zp="#ffa726",Qp="#ff9800",ef="#f57c00",tf="#e65100",nf="#e3f2fd",rf="#90caf9",of="#42a5f5",af="#1976d2",sf="#1565c0",lf="#4fc3f7",cf="#29b6f6",uf="#03a9f4",df="#0288d1",pf="#01579b",ff="#81c784",mf="#66bb6a",hf="#4caf50",gf="#388e3c",vf="#2e7d32",bf="#1b5e20",yf=["mode","contrastThreshold","tonalOffset"],xf={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fp.white,default:Fp.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},wf={text:{primary:Fp.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fp.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Sf(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Ep(e.main,o):"dark"===t&&(e.dark=Sp(e.main,i)))}function _f(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Ks(e,yf),i=e.primary||function(e="light"){return"dark"===e?{main:rf,light:nf,dark:of}:{main:af,light:of,dark:sf}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:zp,light:Bp,dark:Kp}:{main:$p,light:Vp,dark:Hp}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Gp,light:Yp,dark:qp}:{main:qp,light:Wp,dark:Jp}}(t),l=e.info||function(e="light"){return"dark"===e?{main:cf,light:lf,dark:df}:{main:df,light:uf,dark:pf}}(t),c=e.success||function(e="light"){return"dark"===e?{main:mf,light:ff,dark:gf}:{main:vf,light:hf,dark:bf}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Zp,light:Xp,dark:ef}:{main:"#ed6c02",light:Qp,dark:tf}}(t);function d(e){return _p(e,wf.text.primary)>=n?wf.text.primary:xf.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ts({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Bs(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Bs(12,t?` (${t})`:"",JSON.stringify(e.main)));return Sf(e,"light",o,r),Sf(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:wf,light:xf};return zc(Ts({common:Ts({},Fp),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Up,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ef=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function kf(e){return Math.round(1e5*e)/1e5}const Cf={textTransform:"uppercase"},Tf='"Roboto", "Helvetica", "Arial", sans-serif';function If(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Tf,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Ks(n,Ef),f=o/14,m=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>Ts({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Tf?{letterSpacing:`${kf(o/t)}em`}:{},i,u),g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Cf),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Cf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zc(Ts({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Mf(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Df=["none",Mf(0,2,1,-1,0,1,1,0,0,1,3,0),Mf(0,3,1,-2,0,2,2,0,0,1,5,0),Mf(0,3,3,-2,0,3,4,0,0,1,8,0),Mf(0,2,4,-1,0,4,5,0,0,1,10,0),Mf(0,3,5,-1,0,5,8,0,0,1,14,0),Mf(0,3,5,-1,0,6,10,0,0,1,18,0),Mf(0,4,5,-2,0,7,10,1,0,2,16,1),Mf(0,5,5,-3,0,8,10,1,0,3,14,2),Mf(0,5,6,-3,0,9,12,1,0,3,16,2),Mf(0,6,6,-3,0,10,14,1,0,4,18,3),Mf(0,6,7,-4,0,11,15,1,0,4,20,3),Mf(0,7,8,-4,0,12,17,2,0,5,22,4),Mf(0,7,8,-4,0,13,19,2,0,5,24,4),Mf(0,7,9,-4,0,14,21,2,0,5,26,4),Mf(0,8,9,-5,0,15,22,2,0,6,28,5),Mf(0,8,10,-5,0,16,24,2,0,6,30,5),Mf(0,8,11,-5,0,17,26,2,0,6,32,5),Mf(0,9,11,-5,0,18,28,2,0,7,34,6),Mf(0,9,12,-6,0,19,29,2,0,7,36,6),Mf(0,10,13,-6,0,20,31,3,0,8,38,7),Mf(0,10,13,-6,0,21,33,3,0,8,40,7),Mf(0,10,14,-6,0,22,35,3,0,8,42,7),Mf(0,11,14,-7,0,23,36,3,0,9,44,8),Mf(0,11,15,-7,0,24,38,3,0,9,46,8)],Of=["duration","easing","delay"],jf={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Af={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Rf(e){return`${Math.round(e)}ms`}function Pf(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Nf(e){const t=Ts({},jf,e.easing),n=Ts({},Af,e.duration);return Ts({getAutoHeightDuration:Pf,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;Ks(r,Of);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Rf(o)} ${i} ${"string"==typeof a?a:Rf(a)}`)).join(",")}},e,{easing:t,duration:n})}const Lf={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ff=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Uf=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Ks(e,Ff);if(e.vars)throw new Error(Bs(18));const s=_f(r),l=Wu(e);let c=zc(l,{mixins:mp(l.breakpoints,n),palette:s,shadows:Df.slice(),typography:If(s,i),transitions:Nf(o),zIndex:Ts({},Lf)});return c=zc(c,a),c=t.reduce(((e,t)=>zc(e,t)),c),c.unstable_sxConfig=Ts({},Vu,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return $u({sx:e,theme:this})},c}();function Bf(){const e=Xu(Uf);return e[Vs]||e}function zf({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=Xu(n);return o=o[r]||o,bd({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Uf,themeId:Vs})}var Vf={};const Kf=Ba(Is);var $f,Hf={exports:{}};const Yf=Ba(Fc),Wf=Ba(Vc),Gf=Ba(Zc),qf=Ba(gd),Jf=Ba(Gu),Xf=Ba(ed);var Zf=vp;Object.defineProperty(Vf,"__esModule",{value:!0});var Qf=Vf.default=function(e={}){const{themeId:t,defaultTheme:n=dm,rootShouldForwardProp:r=um,slotShouldForwardProp:o=um}=e,i=e=>(0,im.default)((0,em.default)({},e,{theme:fm((0,em.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,nm.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=mm(pm(l))}=a,p=(0,tm.default)(a,lm),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=um;"Root"===l||"root"===l?h=r:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,nm.default)(e,(0,em.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,rm.isPlainObject)(e)?r=>hm(e,(0,em.default)({},r,{theme:fm({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let a=v(r);const l=o?o.map(v):[];s&&d&&l.push((e=>{const r=fm((0,em.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=hm(n,(0,em.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=fm((0,em.default)({},e,{defaultTheme:n,themeId:t}));return hm({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,em.default)({},e,{theme:o}))})),m||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};Vf.shouldForwardProp=um,Vf.systemDefaultTheme=void 0;var em=Zf(Kf),tm=Zf(($f||($f=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Hf)),Hf.exports)),nm=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=cm(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Yf),rm=Wf,om=(Zf(Gf),Zf(qf),Zf(Jf)),im=Zf(Xf);const am=["ownerState"],sm=["variants"],lm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function cm(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(cm=function(e){return e?n:t})(e)}function um(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const dm=Vf.systemDefaultTheme=(0,om.default)(),pm=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function fm({defaultTheme:e,theme:t,themeId:n}){return function(e){return 0===Object.keys(e).length}(t)?e:t[n]||t}function mm(e){return e?(t,n)=>n[e]:null}function hm(e,t){let{ownerState:n}=t,r=(0,tm.default)(t,am);const o="function"==typeof e?e((0,em.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>hm(e,(0,em.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,tm.default)(o,sm);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,em.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,em.default)({ownerState:n},r,n)):e.style))})),t}return o}const gm=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,vm=Qf({themeId:Vs,defaultTheme:Uf,rootShouldForwardProp:gm}),bm=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},ym={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(e,t)=>e?`text input view is open, go to ${t} view`:`${t} view is open, go to text input view`,start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${null===t?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,openDatePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose date, selected date is ${t.format(t.date(e),"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e&&t.isValid(t.date(e))?`Choose time, selected time is ${t.format(t.date(e),"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},xm=ym;(e=>{Ts({},e)})(ym);const wm=jn.createContext(null);function Sm(e){const t=zf({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:o,dateLibInstance:i,locale:a,adapterLocale:s,localeText:l}=t,c=jn.useMemo((()=>new r({locale:s??a,formats:o,instance:i})),[r,a,s,o,i]),u=jn.useMemo((()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")})),[c]),d=jn.useMemo((()=>({utils:c,defaultDates:u,localeText:Ts({},xm,l??{})})),[u,c,l]);return(0,Pn.jsx)(wm.Provider,{value:d,children:n})}const _m={icon:"icon-8081be27","icon--block":"icon--block-4aa6379d","icon--inline":"icon--inline-5d045b85"},Em=(0,jn.forwardRef)(((e,t)=>{const{className:n,name:r,filled:o=!1,label:i,type:a="outlined",size:s=24,display:l="block",color:c,...u}=e,d=Na("notranslate","material-symbols",_m.icon,_m[`icon--${l}`],{[`material-symbols--${a}`]:a,[`text-${c}`]:c},n),p={...s?{"--icon-internal-variation-size":s/16+"rem"}:{},...o?{"--icon-internal-variation-fill":1}:{}};return(0,Pn.jsx)("span",{"data-name":"icon",role:"img","aria-hidden":!i,...u,className:d,style:p,ref:t,"aria-label":i,children:r})}));Em.displayName="Icon";const km={btn:"btn-a9ce955b","btn--small":"btn--small-5daaaf3d","btn--icon-only":"btn--icon-only-375cfc7d","btn--tertiary":"btn--tertiary-c1cc08ad","btn--default":"btn--default-eca73b71","btn--primary":"btn--primary-22126c0a","btn--is-active":"btn--is-active-a0b6b950","btn--is-hovered":"btn--is-hovered-4a27da20","btn--secondary":"btn--secondary-a76a0864","btn--important":"btn--important-1a53be26","btn--positive":"btn--positive-46a2598e","btn--inverted":"btn--inverted-3fc5447d","btn--link":"btn--link-92dffb55","btn--text-color":"btn--text-color-2cc027f7",btn__text:"btn__text-7d9d1a13","btn--is-loading":"btn--is-loading-00320401","btn--icon":"btn--icon-456b539f",btn__inner:"btn__inner-804ab13a","btn__icon--left":"btn__icon--left-50b31870","btn__icon--right":"btn__icon--right-9b9e8607",btn__icon:"btn__icon-738969c8",btn__spinner:"btn__spinner-5ad34e4e","btn--underline":"btn--underline-e2d2c82b","btn--no-style":"btn--no-style-ed081476","btn--full-width":"btn--full-width-9809b856"},Cm=(0,jn.forwardRef)((({children:e,as:t,text:n,className:r,visualType:o="primary",color:i="default",size:a,icon:s,iconLeft:l,iconRight:c,underline:u=!1,isHovered:d,isActive:p,isLoading:f=!1,noStyle:m,renderWrapperElement:h,fullWidth:g,onClick:v,...b},y)=>{const x=t||"button",w=s||l||c,S=m?Na(km["btn--no-style"],r,{[km["btn--full-width"]]:g}):Na(km.btn,km[`btn--${o}`],km[`btn--${i}`],r,{[km[`btn--${a}`]]:a},{[km["btn--underline"]]:u},{[km["btn--is-hovered"]]:d},{[km["btn--is-active"]]:p},{[km["btn--is-loading"]]:f},{[km["btn--icon-only"]]:s},{[km["btn--icon"]]:w},{[km["btn--full-width"]]:g}),_=(e,t)=>{const n={size:16,className:Na(km.btn__icon,km[`btn__icon--${e}`],{[km.btn__spinner]:f})},r="string"==typeof t?{...n,name:t}:{...n,...t,className:Na(n.className,null==t?void 0:t.className)};return f?(0,Pn.jsx)(g0,{className:r.className}):(0,Pn.jsx)(Em,{...r})};return(0,Pn.jsx)(RQ,{visibility:"hide",children:(0,Pn.jsx)(x,{"data-name":"button-content",...b,"aria-disabled":f||b["aria-disabled"],onClick:e=>{v&&!f&&v(e)},ref:y,className:S,children:m?e:(0,Pn.jsxs)("span",{className:km.btn__inner,children:[s&&_("centre",s),l&&_("left",l),(0,Pn.jsx)("span",{className:km.btn__text,children:e}),f&&!w&&(0,Pn.jsx)(g0,{position:"absolute",className:km.btn__spinner}),c&&_("right",c)]})})})}));Cm.displayName="ButtonContent";const Tm=Cm,Im=(0,jn.forwardRef)(((e,t)=>{const{children:n,as:r,type:o,formNoValidate:i,visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:m,noStyle:h,...g}=e;return(0,Pn.jsx)(Tm,{"data-name":"button",...g,type:o||"button",formNoValidate:!!(i??"submit"===o)||void 0,ref:t,as:r||"button",visualType:a,color:s,size:l,icon:c,iconLeft:u,iconRight:d,underline:p,isHovered:f,isActive:m,noStyle:h,children:n})}));Im.displayName="Button";const Mm=Im;function Dm(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function Om(e,t,n){0===t&&!n&&null!=e&&e.style&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}const jm={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function Am(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter((e=>e)).join(" ")}const Rm=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],Pm=jn.default.forwardRef(((e,t)=>{const{animateOpacity:n=!1,animationStateClasses:r={},applyInlineTransitions:o=!0,children:i,className:a="",contentClassName:s,delay:l=0,disableDisplayNone:c=!1,duration:u=500,easing:d="ease",height:p,onHeightAnimationEnd:f,onHeightAnimationStart:m,style:h,contentRef:g}=e,v=Object.assign({},e);Rm.forEach((e=>{delete v[e]}));const b=(0,jn.useRef)(p),y=(0,jn.useRef)(null),x=(0,jn.useRef)(),w=(0,jn.useRef)(),S=(0,jn.useRef)(Object.assign(Object.assign({},jm),r)),_=(0,jn.useRef)(!!(typeof window<"u"&&window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),E=_.current?0:l,k=_.current?0:u;let C=p,T="visible";"number"==typeof p?(C=p<0?0:p,T="hidden"):Dm(C)&&(C="0%"===p?0:p,T="hidden");const[I,M]=(0,jn.useState)(C),[D,O]=(0,jn.useState)(T),[j,A]=(0,jn.useState)(!1),[R,P]=(0,jn.useState)(Am(S.current,p));(0,jn.useEffect)((()=>{Om(y.current,I,c)}),[]),(0,jn.useEffect)((()=>{if(p!==b.current&&y.current){(function(e,t){0===t&&null!=e&&e.style&&(e.style.display="")})(y.current,b.current),y.current.style.overflow="hidden";const e=y.current.offsetHeight;y.current.style.overflow="";const t=k+E;let n,r,o,i="hidden";const a="auto"===b.current;"number"==typeof p?(n=p<0?0:p,r=n):Dm(p)?(n="0%"===p?0:p,r=n):(n=e,r="auto",i=void 0),a&&(r=n,n=e);const s=[S.current.animating,("auto"===b.current||p<b.current)&&S.current.animatingUp,("auto"===p||p>b.current)&&S.current.animatingDown,0===r&&S.current.animatingToHeightZero,"auto"===r&&S.current.animatingToHeightAuto,"number"==typeof r&&r>0?S.current.animatingToHeightSpecific:null].filter((e=>e)).join(" "),l=Am(S.current,r);M(n),O("hidden"),A(!a),P(s),clearTimeout(w.current),clearTimeout(x.current),a?(o=!0,w.current=setTimeout((()=>{M(r),O(i),A(o),null==m||m(r)}),50),x.current=setTimeout((()=>{A(!1),P(l),Om(y.current,r,c),null==f||f(r)}),t)):(null==m||m(n),w.current=setTimeout((()=>{M(r),O(i),A(!1),P(l),"auto"!==p&&Om(y.current,n,c),null==f||f(n)}),t))}return b.current=p,()=>{clearTimeout(w.current),clearTimeout(x.current)}}),[p]);const N=Object.assign(Object.assign({},h),{height:I,overflow:D||(null==h?void 0:h.overflow)});j&&o&&(N.transition=`height ${k}ms ${d} ${E}ms`,null!=h&&h.transition&&(N.transition=`${h.transition}, ${N.transition}`),N.WebkitTransition=N.transition);const L={};n&&(L.transition=`opacity ${k}ms ${d} ${E}ms`,L.WebkitTransition=L.transition,0===I&&(L.opacity=0));const F=typeof v["aria-hidden"]<"u"?v["aria-hidden"]:0===p;return jn.default.createElement("div",Object.assign({},v,{"aria-hidden":F,className:`${R} ${a}`,style:N,ref:t}),jn.default.createElement("div",{className:s,style:L,ref:e=>{y.current=e,g&&(g.current=e)}},i))})),Nm={collapse__title:"collapse__title-8b98d783",collapse__icon:"collapse__icon-6cfc1cff","collapse--is-open":"collapse--is-open-67cf3662",collapse__content:"collapse__content-c7ea2935"},Lm=e=>{const{getLabel:t}=m0(),{id:n,children:r,className:o,openText:i=t("open"),closeText:a=t("close"),hideCollapseText:s=!1,title:l,titleRowProps:c,defaultOpen:u,open:d,onToggle:p,...f}=e,[m,h]=jn.default.useState(u),g=BQ(),v=g||(void 0!==d?d:m),b=Na(Nm.collapse,o,{[Nm["collapse--is-open"]]:v}),y=()=>{h((e=>!e)),null==p||p(!v)},x=(0,Pn.jsx)("div",{className:Nm.collapse__content,children:r});return(0,Pn.jsxs)("div",{"data-name":"collapse",...f,className:b,children:[(0,Pn.jsx)("button",{type:"button","data-name":"collapse-trigger",className:Nm.collapse__title,"aria-expanded":v,"aria-controls":n,onKeyDown:e=>{("Enter"===e.code||"Space"===e.code)&&!e.repeat&&(e.preventDefault(),y())},onClick:y,children:(0,Pn.jsxs)(x0,{justifyContent:"between",alignItems:"center",wrap:"nowrap",...c,element:"span",children:[l&&(0,Pn.jsx)(w0,{children:l}),(0,Pn.jsx)(w0,{width:"auto",children:(0,Pn.jsxs)(x0,{element:"span",alignItems:"center",gutter:1,children:[(0,Pn.jsx)(RQ,{visibility:"hide",children:(0,Pn.jsx)(w0,{width:"auto",className:Na({"visually-hidden":s}),children:(0,Pn.jsx)(ks,{element:"span",color:"primary",children:v?a:i})})}),(0,Pn.jsx)(w0,{width:"auto",children:(0,Pn.jsx)(Em,{className:Nm.collapse__icon,name:"expand_more"})})]})})]})}),g?x:(0,Pn.jsx)(Pm,{duration:300,id:n,height:v?"auto":0,"data-testid":"collapse-inner",children:x})]})},Fm=(0,jn.forwardRef)(((e,t)=>{const{getLabel:n}=m0(),{visualType:r="link",as:o,children:i,...a}=e;return(0,Pn.jsxs)(Tm,{"data-name":"anchor",...a,ref:t,as:o||"a",visualType:r,children:[i,"_blank"===a.target&&(0,Pn.jsxs)("span",{className:"sr-only",children:["(",n("anchor.new-tab"),")"]})]})}));Fm.displayName="Anchor";const Um=jn.default.createContext({menuOpen:!1,toggleMenu:()=>null,headerType:"system",reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),context:{},y:null,headerElement:null,headerBottomElement:null,headerBottomSize:void 0}),Bm={card:"card-1dcacf64","card--borderless":"card--borderless-32e5f5c2","card--no-border-radius-top":"card--no-border-radius-top-b4365e4f",card__content:"card__content-815d48ff","card--no-border-radius-right":"card--no-border-radius-right-3ceb8758","card--no-border-radius-bottom":"card--no-border-radius-bottom-63f3360b","card--no-border-radius-left":"card--no-border-radius-left-a3acce4a","card--border-left":"card--border-left-e9b3151f","card--border-top":"card--border-top-e2a66b39","card__header--default":"card__header--default-90734e02","card__header--primary-main":"card__header--primary-main-8de91e10","card__header--primary-active":"card__header--primary-active-6877b9af","card__header--white":"card__header--white-9243bce2","card__header--bg-muted":"card__header--bg-muted-7904d086",card__header:"card__header-5d78acc3"},zm=jn.default.createContext({}),Vm=e=>{const t=null==e?void 0:e.replace(/(top-)|(left-)/s,"");return[null==e?void 0:e.replace(new RegExp(`(${t})|-`,"g"),""),t]},Km=e=>{const t=e=>"object"==typeof e&&"vertical"in e&&"horizontal"in e;return{"--card-content-padding-top":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.top}rem`,"--card-content-padding-right":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.right}rem`,"--card-content-padding-bottom":`${"number"==typeof e?e:t(e)?e.vertical:null==e?void 0:e.bottom}rem`,"--card-content-padding-left":`${"number"==typeof e?e:t(e)?e.horizontal:null==e?void 0:e.left}rem`}},$m=(0,jn.forwardRef)(((e,t)=>{const{getCurrentBreakpointProps:n}=bs(),{children:r,className:o,padding:i,background:a="bg-default",borderRadius:s,borderless:l,border:c="border-default",...u}=n(e,{padding:1}),[d,p]=Vm(c),f=Na(Bm.card,o,{[Bm[`card--border-${d}`]]:d,[Bm["card--borderless"]]:l,[Bm["card--no-border-radius-top"]]:!1===s||!1===(null==s?void 0:s.top),[Bm["card--no-border-radius-right"]]:!1===s||!1===(null==s?void 0:s.right),[Bm["card--no-border-radius-bottom"]]:!1===s||!1===(null==s?void 0:s.bottom),[Bm["card--no-border-radius-left"]]:!1===s||!1===(null==s?void 0:s.left)});return(0,Pn.jsx)(zm.Provider,{value:{padding:i,background:a},children:(0,Pn.jsx)("div",{"data-name":"card",...u,className:f,ref:t,style:p?{"--card-border-color":`var(--color-${p})`}:void 0,children:r})})}));$m.displayName="Card";const Hm=e=>{const{variant:t,...n}=e,{getCurrentBreakpointProps:r}=bs(),{padding:o}=jn.default.useContext(zm),{children:i,className:a,background:s,padding:l,...c}=r(n,{background:t??"default",padding:o}),u=Na(Bm.card__header,Bm[`card__header--${s}`],a);return(0,Pn.jsx)("div",{"data-name":"card-header",style:Km(l),...c,className:u,children:i})};Hm.displayName="CardHeader";const Ym=e=>{const{padding:t,background:n}=jn.default.useContext(zm),{getCurrentBreakpointProps:r}=bs(),{children:o,className:i,padding:a,background:s,...l}=r(e,{padding:t,background:n}),c=Na(Bm.card__content,{[Es(s)]:s},i);return(0,Pn.jsx)("div",{"data-name":"card-content","data-padding":"number"==typeof a?`${a}rem`:void 0,style:Km(a),...l,className:c,children:o})};Ym.displayName="CardContent";const Wm="card__notification-content-4c89a40e",Gm="card__notification-b07a1cfd",qm=e=>{const{children:t,padding:n,className:r,...o}=e,i=Na(Gm,r);return(0,Pn.jsx)(Ym,{"data-name":"card-notification",padding:n,className:Wm,children:(0,Pn.jsx)(A0,{className:i,...o,children:t})})},Jm=({children:e})=>(0,Pn.jsx)(Pn.Fragment,{children:e});function Xm(){return typeof window<"u"}function Zm(e){return th(e)?(e.nodeName||"").toLowerCase():"#document"}function Qm(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eh(e){var t;return null==(t=(th(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function th(e){return!!Xm()&&(e instanceof Node||e instanceof Qm(e).Node)}function nh(e){return!!Xm()&&(e instanceof Element||e instanceof Qm(e).Element)}function rh(e){return!!Xm()&&(e instanceof HTMLElement||e instanceof Qm(e).HTMLElement)}function oh(e){return!(!Xm()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof Qm(e).ShadowRoot)}function ih(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function ah(e){return["table","td","th"].includes(Zm(e))}function sh(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function lh(e){const t=ch(),n=nh(e)?dh(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ch(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function uh(e){return["html","body","#document"].includes(Zm(e))}function dh(e){return Qm(e).getComputedStyle(e)}function ph(e){return nh(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fh(e){if("html"===Zm(e))return e;const t=e.assignedSlot||e.parentNode||oh(e)&&e.host||eh(e);return oh(t)?t.host:t}function mh(e){const t=fh(e);return uh(t)?e.ownerDocument?e.ownerDocument.body:e.body:rh(t)&&ih(t)?t:mh(t)}function hh(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=mh(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Qm(o);if(i){const e=gh(a);return t.concat(a,a.visualViewport||[],ih(o)?o:[],e&&n?hh(e):[])}return t.concat(o,hh(o,[],n))}function gh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vh(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function bh(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&oh(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function yh(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function xh(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function wh(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Eh()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function Sh(e){return!xh().includes("jsdom/")&&(!Eh()&&0===e.width&&0===e.height||Eh()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function _h(){return/apple/i.test(navigator.vendor)}function Eh(){const e=/android/i;return e.test(yh())||e.test(xh())}function kh(){return yh().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Ch(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Th(e){return(null==e?void 0:e.ownerDocument)||document}function Ih(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function Mh(e){return"composedPath"in e?e.composedPath()[0]:e.target}Jm.displayName="HeaderContent";function Dh(e){return rh(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Oh(e){e.preventDefault(),e.stopPropagation()}function jh(e){return!!e&&("combobox"===e.getAttribute("role")&&Dh(e))}const Ah=Math.min,Rh=Math.max,Ph=Math.round,Nh=Math.floor,Lh=e=>({x:e,y:e}),Fh={left:"right",right:"left",bottom:"top",top:"bottom"},Uh={start:"end",end:"start"};function Bh(e,t,n){return Rh(e,Ah(t,n))}function zh(e,t){return"function"==typeof e?e(t):e}function Vh(e){return e.split("-")[0]}function Kh(e){return e.split("-")[1]}function $h(e){return"x"===e?"y":"x"}function Hh(e){return"y"===e?"height":"width"}function Yh(e){return["top","bottom"].includes(Vh(e))?"y":"x"}function Wh(e){return $h(Yh(e))}function Gh(e){return e.replace(/start|end/g,(e=>Uh[e]))}function qh(e){return e.replace(/left|right|bottom|top/g,(e=>Fh[e]))}function Jh(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Xh(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var Zh=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),Qh=typeof Element>"u",eg=Qh?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tg=!Qh&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},ng=function e(t,n){var r;void 0===n&&(n=!0);var o=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},rg=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!ng(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{eg.call(a,Zh)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!ng(c,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(c&&u){var d=e(!0===c?a.children:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},og=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},ig=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!og(e)?0:e.tabIndex},ag=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},sg=function(e){return"INPUT"===e.tagName},lg=function(e){return function(e){return sg(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||tg(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if(typeof window<"u"&&typeof window.CSS<"u"&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)},cg=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},ug=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=eg.call(e,"details>summary:first-of-type")?e.parentElement:e;if(eg.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return cg(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=tg(e);if(a&&!a.shadowRoot&&!0===r(a))return cg(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&tg(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,c,u;s=!(null===(c=a=null===(l=i=tg(a))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},dg=function(e,t){return!(t.disabled||ng(t)||function(e){return sg(e)&&"hidden"===e.type}(t)||ug(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!eg.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},pg=function(e,t){return!(lg(t)||ig(t)<0||!dg(e,t))},fg=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mg=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=ig(e);return n<0&&t&&!og(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(ag).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},hg=function(e,t){var n;return n=(t=t||{}).getShadowRoot?rg([e],t.includeContainer,{filter:pg.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:fg}):function(e,t,n){if(ng(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Zh));return t&&eg.call(e,Zh)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,pg.bind(null,t)),mg(n)};function gg(e,t,n){let{reference:r,floating:o}=e;const i=Yh(t),a=Wh(t),s=Hh(a),l=Vh(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[s]/2-o[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(Kh(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function vg(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=zh(t,e),m=Jh(f),h=s[p?"floating"===d?"reference":"floating":d],g=Xh(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=Xh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-x.top+m.top)/y.y,bottom:(x.bottom-g.bottom+m.bottom)/y.y,left:(g.left-x.left+m.left)/y.x,right:(x.right-g.right+m.right)/y.x}}function bg(e){const t=dh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rh(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ph(n)!==i||Ph(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function yg(e){return nh(e)?e:e.contextElement}function xg(e){const t=yg(e);if(!rh(t))return Lh(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=bg(t);let a=(i?Ph(n.width):n.width)/r,s=(i?Ph(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const wg=Lh(0);function Sg(e){const t=Qm(e);return ch()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wg}function _g(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=yg(e);let a=Lh(1);t&&(r?nh(r)&&(a=xg(r)):a=xg(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Qm(e))&&t}(i,n,r)?Sg(i):Lh(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Qm(i),t=r&&nh(r)?Qm(r):r;let n=e,o=gh(n);for(;o&&r&&t!==n;){const e=xg(o),t=o.getBoundingClientRect(),r=dh(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Qm(o),o=gh(n)}}return Xh({width:u,height:d,x:l,y:c})}function Eg(e,t){const n=ph(e).scrollLeft;return t?t.left+n:_g(eh(e)).left+n}function kg(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Eg(e,r)),y:r.top+t.scrollTop}}function Cg(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Qm(e),r=eh(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=ch();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=eh(e),n=ph(e),r=e.ownerDocument.body,o=Rh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Rh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Eg(e);const s=-n.scrollTop;return"rtl"===dh(r).direction&&(a+=Rh(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(eh(e));else if(nh(t))r=function(e,t){const n=_g(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=rh(e)?xg(e):Lh(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Sg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xh(r)}function Tg(e,t){const n=fh(e);return!(n===t||!nh(n)||uh(n))&&("fixed"===dh(n).position||Tg(n,t))}function Ig(e,t){const n=t.get(e);if(n)return n;let r=hh(e,[],!1).filter((e=>nh(e)&&"body"!==Zm(e))),o=null;const i="fixed"===dh(e).position;let a=i?fh(e):e;for(;nh(a)&&!uh(a);){const t=dh(a),n=lh(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ih(a)&&!n&&Tg(e,a))?r=r.filter((e=>e!==a)):o=t,a=fh(a)}return t.set(e,r),r}function Mg(e,t,n){const r=rh(t),o=eh(t),i="fixed"===n,a=_g(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Lh(0);if(r||!r&&!i)if(("body"!==Zm(t)||ih(o))&&(s=ph(t)),r){const e=_g(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Eg(o));const c=!o||r||i?Lh(0):kg(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Dg(e){return"static"===dh(e).position}function Og(e,t){if(!rh(e)||"fixed"===dh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eh(e)===n&&(n=n.ownerDocument.body),n}function jg(e,t){const n=Qm(e);if(sh(e))return n;if(!rh(e)){let t=fh(e);for(;t&&!uh(t);){if(nh(t)&&!Dg(t))return t;t=fh(t)}return n}let r=Og(e,t);for(;r&&ah(r)&&Dg(r);)r=Og(r,t);return r&&uh(r)&&Dg(r)&&!lh(r)?n:r||function(e){let t=fh(e);for(;rh(t)&&!uh(t);){if(lh(t))return t;if(sh(t))return null;t=fh(t)}return null}(e)||n}const Ag={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=eh(r),s=!!t&&sh(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Lh(1);const u=Lh(0),d=rh(r);if((d||!d&&!i)&&(("body"!==Zm(r)||ih(a))&&(l=ph(r)),rh(r))){const e=_g(r);c=xg(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?Lh(0):kg(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:eh,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?sh(t)?[]:Ig(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Cg(t,n,o);return e.top=Rh(r.top,e.top),e.right=Ah(r.right,e.right),e.bottom=Ah(r.bottom,e.bottom),e.left=Rh(r.left,e.left),e}),Cg(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:jg,getElementRects:async function(e){const t=this.getOffsetParent||jg,n=this.getDimensions,r=await n(e.floating);return{reference:Mg(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=bg(e);return{width:t,height:n}},getScale:xg,isElement:nh,isRTL:function(e){return"rtl"===dh(e).direction}};function Rg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pg(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=yg(e),u=o||i?[...c?hh(c):[],...hh(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=eh(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const m={rootMargin:-Nh(d)+"px "+-Nh(o.clientWidth-(u+p))+"px "+-Nh(o.clientHeight-(d+f))+"px "+-Nh(u)+"px",threshold:Rh(0,Ah(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return a();r?a(!1,r):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1===r&&!Rg(c,e.getBoundingClientRect())&&a(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch{r=new IntersectionObserver(g,m)}r.observe(e)}(!0),i}(c,n):null;let p=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let m,h=l?_g(e):null;return l&&function t(){const r=_g(e);h&&!Rg(h,r)&&n(),h=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(m)}}const Ng=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Vh(n),s=Kh(n),l="y"===Yh(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=zh(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(f="end"===s?-1*m:m),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Lg=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=zh(e,t),c={x:n,y:r},u=await vg(t,l),d=Yh(Vh(o)),p=$h(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=Bh(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=Bh(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[p]:f,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[p]:i,[d]:a}}}}}},Fg=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=zh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Vh(o),b=Yh(s),y=Vh(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!h?[qh(s)]:function(e){const t=qh(e);return[Gh(e),t,Gh(t)]}(s)),S="none"!==m;!p&&S&&w.push(...function(e,t,n,r){const o=Kh(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Vh(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Gh)))),i}(s,h,m,x));const _=[s,...w],E=await vg(t,g),k=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Kh(e),o=Wh(e),i=Hh(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=qh(a)),[a,qh(a)]}(o,a,x);k.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:k}],!k.every((e=>e<=0))){var T,I;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=_[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(f){case"bestFit":{var M;const e=null==(M=C.filter((e=>{if(S){const t=Yh(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:M[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Ug=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=zh(e,t)||{};if(null==c)return{};const d=Jh(u),p={x:n,y:r},f=Wh(o),m=Hh(f),h=await a.getDimensions(c),g="y"===f,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",x=i.reference[m]+i.reference[f]-p[f]-i.floating[m],w=p[f]-i.reference[f],S=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=S?S[y]:0;(!_||!await(null==a.isElement?void 0:a.isElement(S)))&&(_=s.floating[y]||i.floating[m]);const E=x/2-w/2,k=_/2-h[m]/2-1,C=Ah(d[v],k),T=Ah(d[b],k),I=C,M=_-h[m]-T,D=_/2-h[m]/2+E,O=Bh(I,D,M),j=!l.arrow&&null!=Kh(o)&&D!==O&&i.reference[m]/2-(D<I?C:T)-h[m]/2<0,A=j?D<I?D-I:D-M:0;return{[f]:p[f]+A,data:{[f]:O,centerOffset:D-O-A,...j&&{alignmentOffset:A}},reset:j}}}),Bg=(e,t,n)=>{const r=new Map,o={platform:Ag,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=gg(c,r,l),p=r,f={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=g??u,d=v??d,f={...f,[i]:{...f[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=gg(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var zg=typeof document<"u"?jn.useLayoutEffect:jn.useEffect;function Vg(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Vg(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||Vg(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Kg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $g(e,t){const n=Kg(e);return Math.round(t*n)/n}function Hg(e){const t=jn.useRef(e);return zg((()=>{t.current=e})),t}const Yg=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?Ug({element:n.current,padding:r}).fn(t):{}:n?Ug({element:n,padding:r}).fn(t):{}}}),Wg=(e,t)=>({...Ng(e),options:[e,t]}),Gg=(e,t)=>({...Lg(e),options:[e,t]}),qg=(e,t)=>({...Fg(e),options:[e,t]}),Jg=(e,t)=>({...Yg(e),options:[e,t]});function Xg(e){return jn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const Zg={...jn},Qg=Zg.useInsertionEffect||(e=>e());function ev(e){const t=jn.useRef((()=>{0}));return Qg((()=>{t.current=e})),jn.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var tv=typeof document<"u"?jn.useLayoutEffect:jn.useEffect;function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}let rv=!1,ov=0;const iv=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ov++;const av=Zg.useId||function(){const[e,t]=jn.useState((()=>rv?iv():void 0));return tv((()=>{null==e&&t(iv())}),[]),jn.useEffect((()=>{rv=!0}),[]),e};const sv=jn.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:o,shift:i}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:c=0,staticOffset:u,stroke:d,d:p,style:{transform:f,...m}={},...h}=e,g=av(),[v,b]=jn.useState(!1);if(tv((()=>{r&&"rtl"===dh(r).direction&&b(!0)}),[r]),!r)return null;const[y,x]=n.split("-"),w="top"===y||"bottom"===y;let S=u;(w&&null!=i&&i.x||!w&&null!=i&&i.y)&&(S=null);const _=2*c,E=_/2,k=a/2*(l/-8+1),C=s/2*l/4,T=!!p,I=S&&"end"===x?"bottom":"top";let M=S&&"end"===x?"right":"left";S&&v&&(M="end"===x?"left":"right");const D=null!=(null==o?void 0:o.x)?S||o.x:"",O=null!=(null==o?void 0:o.y)?S||o.y:"",j=p||"M0,0 H"+a+" L"+(a-k)+","+(s-C)+" Q"+a/2+","+s+" "+k+","+(s-C)+" Z",A={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[y];return jn.createElement("svg",nv({},h,{"aria-hidden":!0,ref:t,width:T?a:a+_,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[M]:D,[I]:O,[y]:w||T?"100%":"calc(100% - "+_/2+"px)",transform:[A,f].filter((e=>!!e)).join(" "),...m}}),_>0&&jn.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:_+(p?0:1),d:j}),jn.createElement("path",{stroke:_&&!p?h.fill:"none",d:j}),jn.createElement("clipPath",{id:g},jn.createElement("rect",{x:-E,y:E*(T?-1:1),width:a+_,height:a})))}));const lv=jn.createContext(null),cv=jn.createContext(null),uv=()=>{var e;return(null==(e=jn.useContext(lv))?void 0:e.id)||null},dv=()=>jn.useContext(cv);function pv(e){return"data-floating-ui-"+e}function fv(e){const t=(0,jn.useRef)(e);return tv((()=>{t.current=e})),t}const mv=pv("safe-polygon");function hv(e,t,n){return n&&!Ch(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function gv(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:c=null,mouseOnly:u=!1,restMs:d=0,move:p=!0}=t,f=dv(),m=uv(),h=fv(c),g=fv(l),v=fv(n),b=jn.useRef(),y=jn.useRef(-1),x=jn.useRef(),w=jn.useRef(-1),S=jn.useRef(!0),_=jn.useRef(!1),E=jn.useRef((()=>{})),k=jn.useRef(!1),C=jn.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);jn.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(y.current),clearTimeout(w.current),S.current=!0,k.current=!1)}}),[s,i]),jn.useEffect((()=>{if(!s||!h.current||!n)return;function e(e){C()&&r(!1,e,"hover")}const t=Th(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,h,C]);const T=jn.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=hv(g.current,"close",b.current);o&&!x.current?(clearTimeout(y.current),y.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(y.current),r(!1,e,n))}),[g,r]),I=ev((()=>{E.current(),x.current=void 0})),M=ev((()=>{if(_.current){const e=Th(a.floating).body;e.style.pointerEvents="",e.removeAttribute(mv),_.current=!1}})),D=ev((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));jn.useEffect((()=>{if(s&&nh(a.domReference)){var e;const r=a.domReference;return n&&r.addEventListener("mouseleave",l),null==(e=a.floating)||e.addEventListener("mouseleave",l),p&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",i),()=>{var e;n&&r.removeEventListener("mouseleave",l),null==(e=a.floating)||e.removeEventListener("mouseleave",l),p&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(y.current),S.current=!1,u&&!Ch(b.current)||d>0&&!hv(g.current,"open"))return;const t=hv(g.current,"open",b.current);t?y.current=window.setTimeout((()=>{v.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function i(e){if(D())return;E.current();const t=Th(a.floating);if(clearTimeout(w.current),k.current=!1,h.current&&o.current.floatingContext){n||clearTimeout(y.current),x.current=h.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){M(),I(),D()||T(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(E.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!bh(a.floating,e.relatedTarget))&&T(e)}function l(e){D()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){M(),I(),D()||T(e)}})(e))}}),[a,s,e,u,d,p,T,I,M,r,n,v,f,g,h,o,D]),tv((()=>{var e;if(s&&n&&null!=(e=h.current)&&e.__options.blockPointerEvents&&C()){_.current=!0;const e=a.floating;if(nh(a.domReference)&&e){var t;const n=Th(a.floating).body;n.setAttribute(mv,"");const r=a.domReference,o=null==f||null==(t=f.nodesRef.current.find((e=>e.id===m)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,n,m,a,f,h,C]),tv((()=>{n||(b.current=void 0,k.current=!1,I(),M())}),[n,I,M]),jn.useEffect((()=>()=>{I(),clearTimeout(y.current),clearTimeout(w.current),M()}),[s,a.domReference,I,M]);const O=jn.useMemo((()=>{function e(e){b.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){!S.current&&!v.current&&r(!0,t,"hover")}u&&!Ch(b.current)||n||0===d||k.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(w.current),"touch"===b.current?o():(k.current=!0,w.current=window.setTimeout(o,d)))}}}),[u,r,n,v,d]),j=jn.useMemo((()=>({onMouseEnter(){clearTimeout(y.current)},onMouseLeave(e){D()||T(e.nativeEvent,!1)}})),[T,D]);return jn.useMemo((()=>s?{reference:O,floating:j}:{}),[s,O,j])}let vv=0;function bv(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(vv);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():vv=requestAnimationFrame(i)}function yv(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let xv=new WeakMap,wv=new WeakSet,Sv={},_v=0;const Ev=e=>e&&(e.host||Ev(e.parentNode));function kv(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=((e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Ev(t);return e.contains(n)?n:null})).filter((e=>null!=e)))(t,e),s=new Set,l=new Set(a),c=[];Sv[o]||(Sv[o]=new WeakMap);const u=Sv[o];return a.forEach((function e(t){!t||s.has(t)||(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){!t||l.has(t)||[].forEach.call(t.children,(t=>{if("script"!==Zm(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(xv.get(t)||0)+1,a=(u.get(t)||0)+1;xv.set(t,r),u.set(t,a),c.push(t),1===r&&n&&wv.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),s.clear(),_v++,()=>{c.forEach((e=>{const t=(xv.get(e)||0)-1,n=(u.get(e)||0)-1;xv.set(e,t),u.set(e,n),t||(!wv.has(e)&&i&&e.removeAttribute(i),wv.delete(e)),n||e.removeAttribute(o)})),_v--,_v||(xv=new WeakMap,xv=new WeakMap,wv=new WeakSet,Sv={})}}function Cv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=Th(e[0]).body;return kv(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Tv=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Iv(e,t){const n=hg(e,Tv());"prev"===t&&n.reverse();const r=n.indexOf(vh(Th(e)));return n.slice(r+1)[0]}function Mv(){return Iv(document.body,"next")}function Dv(){return Iv(document.body,"prev")}function Ov(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!bh(n,r)}function jv(e){hg(e,Tv()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Av(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Rv={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Pv(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Nv=jn.forwardRef((function(e,t){const[n,r]=jn.useState();tv((()=>(_h()&&r("button"),document.addEventListener("keydown",Pv),()=>{document.removeEventListener("keydown",Pv)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[pv("focus-guard")]:"",style:Rv};return jn.createElement("span",nv({},e,o))})),Lv=jn.createContext(null),Fv=pv("portal");function Uv(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:n}=e,r=av(),o=Bv(),[i,a]=jn.useState(null),s=jn.useRef(null);return tv((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),tv((()=>{if(!r||s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(Fv,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),tv((()=>{if(null===n||!r||s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!nh(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=r,l.setAttribute(Fv,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=jn.useState(null),l=jn.useRef(null),c=jn.useRef(null),u=jn.useRef(null),d=jn.useRef(null),p=null==a?void 0:a.modal,f=null==a?void 0:a.open,m=!!a&&!a.modal&&a.open&&o&&!(!r&&!i);return jn.useEffect((()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&Ov(e)&&("focusin"===e.type?Av:jv)(i)}}),[i,o,p]),jn.useEffect((()=>{i&&(f||Av(i))}),[f,i]),jn.createElement(Lv.Provider,{value:jn.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},m&&i&&jn.createElement(Nv,{"data-type":"outside",ref:l,onFocus:e=>{if(Ov(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=Dv()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),m&&i&&jn.createElement("span",{"aria-owns":i.id,style:Rv}),i&&Pa.createPortal(t,i),m&&i&&jn.createElement(Nv,{"data-type":"outside",ref:c,onFocus:e=>{if(Ov(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=Mv()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),null!=a&&a.closeOnFocusOut&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const Bv=()=>jn.useContext(Lv),zv="data-floating-ui-focusable";function Vv(e){return e?e.hasAttribute(zv)?e:e.querySelector("["+zv+"]")||e:null}let Kv=[];function $v(e){Kv=Kv.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Zm(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==eg.call(e,Zh)&&pg(t,e)}(t,Tv())){const e=hg(t,Tv())[0];e&&(t=e)}Kv.push(t),Kv.length>20&&(Kv=Kv.slice(-20))}}function Hv(){return Kv.slice().reverse().find((e=>e.isConnected))}const Yv=jn.forwardRef((function(e,t){return jn.createElement("button",nv({},e,{type:"button",ref:t,tabIndex:-1,style:Rv}))}));function Wv(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:c=!0,visuallyHiddenDismiss:u=!1,closeOnFocusOut:d=!0}=e,{open:p,refs:f,nodeId:m,onOpenChange:h,events:g,dataRef:v,floatingId:b,elements:{domReference:y,floating:x}}=t,w="number"==typeof a&&a<0,S=jh(y)&&w,_=!(typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype)||i,E=fv(o),k=fv(a),C=fv(s),T=dv(),I=Bv(),M=jn.useRef(null),D=jn.useRef(null),O=jn.useRef(!1),j=jn.useRef(!1),A=jn.useRef(-1),R=null!=I,P=Vv(x),N=ev((function(e){return void 0===e&&(e=P),e?hg(e,Tv()):[]})),L=ev((e=>{const t=N(e);return E.current.map((e=>y&&"reference"===e?y:P&&"floating"===e?P:t)).filter(Boolean).flat()}));function F(e){return!r&&u&&c?jn.createElement(Yv,{ref:"start"===e?M:D,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}jn.useEffect((()=>{if(r||!c)return;function e(e){if("Tab"===e.key){bh(P,vh(Th(P)))&&0===N().length&&!S&&Oh(e);const t=L(),n=Mh(e);"reference"===E.current[0]&&n===y&&(Oh(e),e.shiftKey?bv(t[t.length-1]):bv(t[1])),"floating"===E.current[1]&&n===P&&e.shiftKey&&(Oh(e),bv(t[0]))}}const t=Th(P);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,y,P,c,E,S,N,L]),jn.useEffect((()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=Mh(e),n=N().indexOf(t);-1!==n&&(A.current=n)}}),[r,x,N]),jn.useEffect((()=>{if(!r&&d)return x&&rh(y)?(y.addEventListener("focusout",t),y.addEventListener("pointerdown",e),x.addEventListener("focusout",t),()=>{y.removeEventListener("focusout",t),y.removeEventListener("pointerdown",e),x.removeEventListener("focusout",t)}):void 0;function e(){j.current=!0,setTimeout((()=>{j.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(bh(y,t)||bh(x,t)||bh(t,x)||bh(null==I?void 0:I.portalNode,t)||null!=t&&t.hasAttribute(pv("focus-guard"))||T&&(yv(T.nodesRef.current,m).find((e=>{var n,r;return bh(null==(n=e.context)?void 0:n.elements.floating,t)||bh(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(T.nodesRef.current,m).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(l&&n&&vh(Th(P))===Th(P).body){rh(P)&&P.focus();const e=A.current,t=N(),n=t[e]||t[t.length-1]||P;rh(n)&&n.focus()}(S||!c)&&t&&n&&!j.current&&t!==Hv()&&(O.current=!0,h(!1,e,"focus-out"))}))}}),[r,y,x,P,c,m,T,I,h,d,l,N,S]),jn.useEffect((()=>{var e;if(r)return;const t=Array.from((null==I||null==(e=I.portalNode)?void 0:e.querySelectorAll("["+pv("portal")+"]"))||[]);if(x){const e=[x,...t,M.current,D.current,E.current.includes("reference")||S?y:null].filter((e=>null!=e)),n=c||S?Cv(e,_,!_):Cv(e);return()=>{n()}}}),[r,y,x,c,E,I,S,_]),tv((()=>{if(r||!rh(P))return;const e=vh(Th(P));queueMicrotask((()=>{const t=L(P),n=k.current,r=("number"==typeof n?t[n]:n.current)||P,o=bh(P,e);!w&&!o&&p&&bv(r,{preventScroll:r===P})}))}),[r,p,P,w,L,k]),tv((()=>{if(r||!P)return;let e=!1;const t=Th(P),n=vh(t);let o=v.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:a}=t;n&&(o=i),"escape-key"===r&&f.domReference.current&&$v(f.domReference.current),"hover"===r&&"mouseleave"===i.type&&(O.current=!0),"outside-press"===r&&(a?(O.current=!1,e=!0):O.current=!(wh(i)||Sh(i)))}$v(n),g.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Rv),R&&y&&y.insertAdjacentElement("afterend",a),()=>{g.off("openchange",i);const n=vh(t),r=bh(x,n)||T&&yv(T.nodesRef.current,m).some((e=>{var t;return bh(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&f.domReference.current&&$v(f.domReference.current);const s="boolean"==typeof C.current?Hv()||a:C.current.current||a;queueMicrotask((()=>{C.current&&!O.current&&rh(s)&&(!(s!==n&&n!==t.body)||r)&&s.focus({preventScroll:e}),a.remove()}))}}),[r,x,P,C,v,f,g,T,m,R,y]),jn.useEffect((()=>{queueMicrotask((()=>{O.current=!1}))}),[r]),tv((()=>{if(!r&&I)return I.setFocusManagerState({modal:c,closeOnFocusOut:d,open:p,onOpenChange:h,refs:f}),()=>{I.setFocusManagerState(null)}}),[r,I,c,p,h,f,d]),tv((()=>{if(r||!P||"function"!=typeof MutationObserver||w)return;const e=()=>{const e=P.getAttribute("tabindex"),t=N(),n=vh(Th(x)),r=t.indexOf(n);-1!==r&&(A.current=r),E.current.includes("floating")||n!==f.domReference.current&&0===t.length?"0"!==e&&P.setAttribute("tabindex","0"):"-1"!==e&&P.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(P,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,P,f,E,N,w]);const U=!r&&_&&(!c||!S)&&(R||c);return jn.createElement(jn.Fragment,null,U&&jn.createElement(Nv,{"data-type":"inside",ref:null==I?void 0:I.beforeInsideRef,onFocus:e=>{if(c){const e=L();bv("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(O.current=!1,Ov(e,I.portalNode)){const e=Mv()||y;null==e||e.focus()}else{var t;null==(t=I.beforeOutsideRef.current)||t.focus()}}}),!S&&F("start"),n,F("end"),U&&jn.createElement(Nv,{"data-type":"inside",ref:null==I?void 0:I.afterInsideRef,onFocus:e=>{if(c)bv(L()[0]);else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(d&&(O.current=!0),Ov(e,I.portalNode)){const e=Dv()||y;null==e||e.focus()}else{var t;null==(t=I.afterOutsideRef.current)||t.focus()}}}))}let Gv=0;let qv=()=>{};const Jv=jn.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return tv((()=>{if(n)return Gv++,1===Gv&&(qv=function(){const e=/iP(hone|ad|od)|iOS/.test(yh()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,s;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{Gv--,0===Gv&&qv()}}),[n]),jn.createElement("div",nv({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function Xv(e){return rh(e.target)&&"BUTTON"===e.target.tagName}function Zv(e){return Dh(e)}function Qv(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:c=!1,keyboardHandlers:u=!0,stickIfOpen:d=!0}=t,p=jn.useRef(),f=jn.useRef(!1),m=jn.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==s&&(Ch(t,!0)&&c||(!n||!l||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===s&&p.current?p.current=void 0:Ch(t,!0)&&c||(!n||!l||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,!e.defaultPrevented&&u&&!Xv(e)&&(" "===e.key&&!Zv(i)&&(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!(n&&l),e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Xv(e)||Zv(i)||" "===e.key&&f.current&&(f.current=!1,r(!(n&&l),e.nativeEvent,"click"))}})),[o,i,s,c,u,r,n,d,l]);return jn.useMemo((()=>a?{reference:m}:{}),[a,m])}const eb={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tb={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},nb=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function rb(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:u=!1,referencePressEvent:d="pointerdown",ancestorScroll:p=!1,bubbles:f,capture:m}=t,h=dv(),g=ev("function"==typeof l?l:()=>!1),v="function"==typeof l?g:l,b=jn.useRef(!1),y=jn.useRef(!1),{escapeKey:x,outsidePress:w}=nb(f),{escapeKey:S,outsidePress:_}=nb(m),E=jn.useRef(!1),k=ev((e=>{var t;if(!n||!a||!s||"Escape"!==e.key||E.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=h?yv(h.nodesRef.current,o):[];if(!x&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),C=ev((e=>{var t;const n=()=>{var t;k(e),null==(t=Mh(e))||t.removeEventListener("keydown",n)};null==(t=Mh(e))||t.addEventListener("keydown",n)})),T=ev((e=>{var t;const n=b.current;b.current=!1;const a=y.current;if(y.current=!1,"click"===c&&a||n||"function"==typeof v&&!v(e))return;const s=Mh(e),l="["+pv("inert")+"]",u=Th(o.floating).querySelectorAll(l);let d=nh(s)?s:null;for(;d&&!uh(d);){const e=fh(d);if(uh(e)||!nh(e))break;d=e}if(u.length&&nh(s)&&!function(e){return e.matches("html,body")}(s)&&!bh(s,o.floating)&&Array.from(u).every((e=>!bh(d,e))))return;if(rh(s)&&D){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n&&"rtl"===dh(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth),r||t&&e.offsetY>s.clientHeight)return}const p=null==(t=i.current.floatingContext)?void 0:t.nodeId,f=h&&yv(h.nodesRef.current,p).some((t=>{var n;return Ih(e,null==(n=t.context)?void 0:n.elements.floating)}));if(Ih(e,o.floating)||Ih(e,o.domReference)||f)return;const m=h?yv(h.nodesRef.current,p):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),I=ev((e=>{var t;const n=()=>{var t;T(e),null==(t=Mh(e))||t.removeEventListener(c,n)};null==(t=Mh(e))||t.addEventListener(c,n)}));jn.useEffect((()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=x,i.current.__outsidePressBubbles=w;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),E.current=!0}function u(){e=window.setTimeout((()=>{E.current=!1}),ch()?5:0)}const d=Th(o.floating);s&&(d.addEventListener("keydown",S?C:k,S),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",u)),v&&d.addEventListener(c,_?I:T,_);let f=[];return p&&(nh(o.domReference)&&(f=hh(o.domReference)),nh(o.floating)&&(f=f.concat(hh(o.floating))),!nh(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(hh(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(d.removeEventListener("keydown",S?C:k,S),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",u)),v&&d.removeEventListener(c,_?I:T,_),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,v,c,n,r,p,a,x,w,k,S,C,T,_,I]),jn.useEffect((()=>{b.current=!1}),[v,c]);const M=jn.useMemo((()=>({onKeyDown:k,[eb[d]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}})),[k,r,u,d]),D=jn.useMemo((()=>({onKeyDown:k,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[tb[c]]:()=>{b.current=!0}})),[k,c]);return jn.useMemo((()=>a?{reference:M,floating:D}:{}),[a,M,D])}function ob(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=av(),i=jn.useRef({}),[a]=jn.useState((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=uv();const[l,c]=jn.useState(r.reference),u=ev(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=jn.useMemo((()=>({setPositionReference:c})),[]),p=jn.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return jn.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d})),[t,u,p,a,o,d])}function ib(e){void 0===e&&(e={});const{nodeId:t}=e,n=ob({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=jn.useState(null),[s,l]=jn.useState(null),c=(null==o?void 0:o.domReference)||i,u=jn.useRef(null),d=dv();tv((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=jn.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=jn.useState(r);Vg(p,r)||f(r);const[m,h]=jn.useState(null),[g,v]=jn.useState(null),b=jn.useCallback((e=>{e!==S.current&&(S.current=e,h(e))}),[]),y=jn.useCallback((e=>{e!==_.current&&(_.current=e,v(e))}),[]),x=i||m,w=a||g,S=jn.useRef(null),_=jn.useRef(null),E=jn.useRef(u),k=null!=l,C=Hg(l),T=Hg(o),I=Hg(c),M=jn.useCallback((()=>{if(!S.current||!_.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),Bg(S.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};D.current&&!Vg(E.current,t)&&(E.current=t,Pa.flushSync((()=>{d(t)})))}))}),[p,t,n,T,I]);zg((()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const D=jn.useRef(!1);zg((()=>(D.current=!0,()=>{D.current=!1})),[]),zg((()=>{if(x&&(S.current=x),w&&(_.current=w),x&&w){if(C.current)return C.current(x,w,M);M()}}),[x,w,M,C,k]);const O=jn.useMemo((()=>({reference:S,floating:_,setReference:b,setFloating:y})),[b,y]),j=jn.useMemo((()=>({reference:x,floating:w})),[x,w]),A=jn.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=$g(j.floating,u.x),r=$g(j.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Kg(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,u.x,u.y]);return jn.useMemo((()=>({...u,update:M,refs:O,elements:j,floatingStyles:A})),[u,M,O,j,A])}({...e,elements:{...o,...s&&{reference:s}}}),f=jn.useCallback((e=>{const t=nh(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),m=jn.useCallback((e=>{(nh(e)||null===e)&&(u.current=e,a(e)),(nh(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!nh(e))&&p.refs.setReference(e)}),[p.refs]),h=jn.useMemo((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=jn.useMemo((()=>({...p.elements,domReference:c})),[p.elements,c]),v=jn.useMemo((()=>({...p,...r,refs:h,elements:g,nodeId:t})),[p,h,g,t,r]);return tv((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),jn.useMemo((()=>({...p,context:v,refs:h,elements:g})),[p,h,g,v])}function ab(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,c=jn.useRef(!1),u=jn.useRef(),d=jn.useRef(!0);jn.useEffect((()=>{if(!s)return;const e=Qm(a.domReference);function t(){!n&&rh(a.domReference)&&a.domReference===vh(Th(a.domReference))&&(c.current=!0)}function r(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[a.domReference,n,s]),jn.useEffect((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(c.current=!0)}}),[o,s]),jn.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const p=jn.useMemo((()=>({onPointerDown(e){Sh(e.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=Mh(e.nativeEvent);if(l&&nh(t))try{if(_h()&&kh())throw Error();if(!t.matches(":focus-visible"))return}catch{if(!d.current&&!Dh(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=nh(t)&&t.hasAttribute(pv("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const s=vh(a.domReference?a.domReference.ownerDocument:document);!t&&s===a.domReference||bh(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||bh(a.domReference,s)||o||r(!1,n,"focus")}))}})),[i,a.domReference,r,l]);return jn.useMemo((()=>s?{reference:p}:{}),[s,p])}const sb="active",lb="selected";function cb(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[sb]:t,[lb]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[zv]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>(t&&Object.entries(t).forEach((t=>{let[n,i]=t;if(!o||![sb,lb].includes(n))if(0===n.indexOf("on")){var a;if(r.has(n)||r.set(n,[]),"function"==typeof i)null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))}}else e[n]=i})),e)),{})}}function ub(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=jn.useCallback((t=>cb(t,e,"reference")),t),i=jn.useCallback((t=>cb(t,e,"floating")),n),a=jn.useCallback((t=>cb(t,e,"item")),r);return jn.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}const db=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function pb(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=db.get(a))?n:a,l=av(),c=null!=uv(),u=jn.useMemo((()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":r?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&c&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[s,o,c,r,l,a]),d=jn.useMemo((()=>{const e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}}),[s,o,l,a]),p=jn.useCallback((e=>{let{active:t,selected:n}=e;const r={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...r,"aria-selected":t&&n};case"combobox":return{...r,...t&&{"aria-selected":!0}}}return{}}),[o,a]);return jn.useMemo((()=>i?{reference:u,floating:d,item:p}:{}),[i,u,d,p])}function fb(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,c]=t[a]||[0,0];s>=r!=c>=r&&n<=(l-i)*(r-s)/(c-s)+i&&(o=!o)}return o}function mb(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const c=e=>{let{x:n,y:c,placement:u,elements:d,onClose:p,nodeId:f,tree:m}=e;return function(e){function h(){clearTimeout(o),p()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==n||null==c)return;const{clientX:g,clientY:v}=e,b=[g,v],y=Mh(e),x="mouseleave"===e.type,w=bh(d.floating,y),S=bh(d.domReference,y),_=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),k=u.split("-")[0],C=n>E.right-E.width/2,T=c>E.bottom-E.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,_),M=E.width>_.width,D=E.height>_.height,O=(M?_:E).left,j=(M?_:E).right,A=(D?_:E).top,R=(D?_:E).bottom;if(w&&(i=!0,!x))return;if(S&&(i=!1),S&&!x)return void(i=!0);if(x&&nh(e.relatedTarget)&&bh(d.floating,e.relatedTarget)||m&&yv(m.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===k&&c>=_.bottom-1||"bottom"===k&&c<=_.top+1||"left"===k&&n>=_.right-1||"right"===k&&n<=_.left+1)return h();let P=[];switch(k){case"top":P=[[O,_.top+1],[O,E.bottom-1],[j,E.bottom-1],[j,_.top+1]];break;case"bottom":P=[[O,E.top+1],[O,_.bottom-1],[j,_.bottom-1],[j,E.top+1]];break;case"left":P=[[E.right-1,R],[E.right-1,A],[_.left+1,A],[_.left+1,R]];break;case"right":P=[[_.right-1,R],[_.right-1,A],[E.left+1,A],[E.left+1,R]]}if(!fb([g,v],P)){if(i&&!I)return h();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,c=Math.sqrt(o*o+i*i)/r;return a=e,s=t,l=n,c}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}fb([g,v],function(e){let[n,r]=e;switch(k){case"top":return[[M?n+t/2:C?n+4*t:n-4*t,r+t+1],[M?n-t/2:C?n+4*t:n-4*t,r+t+1],[E.left,C||M?E.bottom-t:E.top],[E.right,C?M?E.bottom-t:E.top:E.bottom-t]];case"bottom":return[[M?n+t/2:C?n+4*t:n-4*t,r-t],[M?n-t/2:C?n+4*t:n-4*t,r-t],[E.left,C||M?E.top+t:E.bottom],[E.right,C?M?E.top+t:E.bottom:E.top+t]];case"left":{const e=[n+t+1,D?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,D?r-t/2:T?r+4*t:r-4*t];return[[T||D?E.right-t:E.left,E.top],[T?D?E.right-t:E.left:E.right-t,E.bottom],e,o]}case"right":return[[n-t,D?r+t/2:T?r+4*t:r-4*t],[n-t,D?r-t/2:T?r+4*t:r-4*t],[T||D?E.left+t:E.right,E.top],[T?D?E.left+t:E.right:E.left+t,E.bottom]]}}([n,c]))?!i&&r&&(o=window.setTimeout(h,40)):h()}}};return c.__options={blockPointerEvents:n},c}const hb={tooltip:"tooltip-413196ab","tooltip--none":"tooltip--none-01bd521a","tooltip--small":"tooltip--small-f23b2c64","tooltip--medium":"tooltip--medium-33ed6e9a","tooltip--large":"tooltip--large-84d7b683",tooltip__arrow:"tooltip__arrow-7d8214bc","tooltip__arrow--stroke":"tooltip__arrow--stroke-092e3c3e",tooltip__trigger:"tooltip__trigger-f6422045","tooltip__trigger--click":"tooltip__trigger--click-bb6703b1"},gb=10,vb=jn.default.createContext({open:!1,isMounted:!1,openWith:"hover",reference:()=>null,floating:()=>null,focusManager:{},arrowRef:{current:null},x:null,y:null,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{x:0,y:0,centerOffset:0},placement:"top",context:{}}),bb=e=>{const{getLabel:t}=m0(),n=zQ(),{children:r,placement:o="bottom",openWith:i=(n?"click":"hover"),defaultOpen:a=!1,open:s,onToggle:l,role:c="tooltip",offset:u=gb}=e,{order:d=["reference","content"],modal:p=!1,initialFocus:f=-1,...m}=e.focusManager??{},{visuallyHiddenDismiss:h=!!p&&t("close")}=m??{},[g,v]=jn.default.useState(a),b=jn.default.useRef(null),y=l&&typeof s<"u"?s:g,x=PQ(),{x:w,y:S,refs:_,strategy:E,context:k,middlewareData:C,placement:T}=ib({placement:o,open:y,onOpenChange:e=>{typeof s>"u"&&v(e),null==l||l(e)},middleware:[Wg(u),qg(),Gg({padding:8}),Jg({element:b,padding:4})],whileElementsMounted:Pg}),{getReferenceProps:I,getFloatingProps:M}=ub([gv(k,{handleClose:mb(),enabled:"hover"===i}),Qv(k),ab(k,{enabled:"hover"===i}),pb(k,{role:c}),rb(k,{outsidePressEvent:"click"===i?"mousedown":"pointerdown"})]);return(0,Pn.jsx)(vb.Provider,{value:{open:y,isMounted:x,openWith:i,reference:_.setReference,floating:_.setFloating,arrowRef:b,focusManager:{order:d,initialFocus:f,modal:p,visuallyHiddenDismiss:h,...m},x:w,y:S,strategy:E,getReferenceProps:I,getFloatingProps:M,arrow:{...C.arrow},context:k,placement:T},children:r})},yb=e=>{const{children:t,maxWidth:n="medium",cardProps:r,className:o}=e,{open:i,x:a,y:s,strategy:l,focusManager:c,floating:u,arrowRef:d,getFloatingProps:p,placement:f,context:m}=jn.default.useContext(vb),[h,g]=Vm(null==r?void 0:r.border),v=()=>h&&g?`var(--color-${g})`:"none",b="none"!==v();return(0,Pn.jsx)(Uv,{"data-name":"tooltip",children:(()=>{const e=(0,Pn.jsx)(Wv,{...c,context:m,children:(0,Pn.jsxs)("div",{...p({ref:u,style:{position:l,left:a??0,top:s??0},className:Na(hb.tooltip,o,{[hb[`tooltip--${n}`]]:n})}),"data-placement":f,children:[(0,Pn.jsx)(sv,{ref:e=>d.current=e,context:m,fill:null!=r&&r.background?`var(--color-${null==r?void 0:r.background})`:"var(--color-bg-default)",stroke:v(),strokeWidth:b?4:0,className:Na(hb.tooltip__arrow,{[hb["tooltip__arrow--stroke"]]:b}),height:7,width:14}),(0,Pn.jsx)($m,{padding:.5,borderless:!0,...r,children:(0,Pn.jsx)(Ym,{children:t})})]})});return i?e:null})()})},xb=e=>{const{children:t}=e,{getLabel:n}=m0(),{getReferenceProps:r,reference:o,openWith:i}=jn.default.useContext(vb),a=Xg([o,t.ref]);return jn.default.cloneElement(t,r({ref:a,tabIndex:0,label:t.type===Em?n("tooltip.icon-trigger"):void 0,...t.props,className:Na(hb.tooltip__trigger,{[hb["tooltip__trigger--click"]]:"click"===i},t.props.className)}))},wb="header__dropdown-cb8faff9",Sb="header__dropdown--open-03680708",_b=e=>{const{children:t,triggerProps:n,defaultOpen:r,open:o,onToggle:i,shouldAnimate:a,tooltipProps:s}=e,[l,c]=jn.default.useState(r),[u,d]=jn.default.useState(gb),{headerElement:p}=jn.default.useContext(Um),f=jn.default.useRef(null);jn.default.useEffect((()=>{if(null!=p&&p.current&&null!=f&&f.current){const e=p.current.getBoundingClientRect(),t=f.current.getBoundingClientRect(),n=e.bottom-t.bottom;d(n)}}),[p,f,t]);const m=void 0!==o?o:l;return(0,Pn.jsxs)(bb,{offset:u,openWith:"click",role:"dialog",onToggle:e=>{c(e),null==i||i(e)},open:m,children:[(0,Pn.jsx)(xb,{children:(0,Pn.jsx)(Mm,{...n,ref:f,className:Na(wb,n.className,{[Sb]:a&&m})})}),(0,Pn.jsx)(yb,{...s,cardProps:{...null==s?void 0:s.cardProps,border:"top-primary-active-subtle",borderless:!1,background:"bg-muted"},children:t})]})},Eb={modal:"modal-11cfca5e","modal--center":"modal--center-b671c09c","modal--no-overlay":"modal--no-overlay-a990d10a",modal__inner:"modal__inner-10a95cee","modal--right":"modal--right-d7b9213c","modal--bottom":"modal--bottom-b9033478","modal--10":"modal--10-bc4c5908","modal--8":"modal--8-46477dbb","modal--6":"modal--6-cd8246bc",modal__card:"modal__card-f5ca2013","close-button":"close-button-9544f148"},kb=jn.default.createContext({isOpen:!1,reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),closeModal:()=>null,context:{},isDismissable:!0,escapeKey:!0,outsidePress:!0}),Cb=e=>{const{children:t,defaultOpen:n=!1,onToggle:r,isDismissable:o=!0,escapeKey:i=!0,outsidePress:a=!0}=e,[s,l]=jn.default.useState(n),c=r&&typeof e.open<"u"?e.open:s,{refs:u,context:d}=ib({open:c,onOpenChange:e=>e?h():m()}),{getReferenceProps:p,getFloatingProps:f}=ub([Qv(d),pb(d),rb(d,{enabled:o,escapeKey:i,outsidePress:a})]),m=()=>{typeof e.open>"u"&&l(!1),null==r||r(!1)},h=()=>{typeof e.open>"u"&&l(!0),null==r||r(!0)};return(0,Pn.jsx)(kb.Provider,{value:{isOpen:c,reference:u.setReference,floating:u.setFloating,getReferenceProps:p,getFloatingProps:f,closeModal:m,context:d,isDismissable:o,escapeKey:i,outsidePress:a},children:t})},Tb=e=>{const{children:t}=e,{closeModal:n}=jn.default.useContext(kb);return jn.default.cloneElement(t,{onClick:()=>{var e,r;null==(r=(e=t.props).onClick)||r.call(e),n()}})},Ib=e=>{const{children:t,size:n=6,cardProps:r={},hideCloseButton:o,position:i,lockScroll:a=!0,trapFocus:s=!0,returnFocus:l=!0,overlay:c,visuallyHiddenDismiss:u=!1}=e,{getLabel:d}=m0(),p=e["aria-labelledby"],f=e["aria-describedby"],{isOpen:m,floating:h,getFloatingProps:g,context:v,isDismissable:b}=jn.default.useContext(kb),y=jn.default.useMemo((()=>{let e=!1;const n=e=>e.type.displayName;return o?t:jn.default.Children.map(t,((t,r)=>e||!jn.default.isValidElement(t)||"CardHeader"!==n(t)&&"CardContent"!==n(t)?t:(e=!0,jn.default.cloneElement(t,{...t.props,children:(0,Pn.jsxs)(Pn.Fragment,{children:[(0,Pn.jsx)(Tb,{children:(0,Pn.jsx)(M0,{size:"large",className:Eb["close-button"]})}),t.props.children]})}))))}),[t,d,o]);return(0,Pn.jsx)(Uv,{"data-name":"modal",children:m&&(0,Pn.jsx)(Jv,{lockScroll:a,className:Na(Eb.modal,Eb[`modal--${n}`],Eb[`modal--${i}`],{[Eb["modal--no-overlay"]]:"none"===c}),children:(0,Pn.jsx)(Wv,{context:v,closeOnFocusOut:!s&&b,visuallyHiddenDismiss:u?d("modal.close"):void 0,returnFocus:l,modal:s,children:(0,Pn.jsx)("div",{...g({ref:h,className:Eb.modal__inner,"aria-labelledby":p,"aria-describedby":f,"aria-modal":s}),children:(0,Pn.jsx)($m,{...r,className:Na(Eb.modal__card,null==r?void 0:r.className),children:y})})})})})},Mb=e=>{const{children:t}=e,{getReferenceProps:n,reference:r}=jn.default.useContext(kb);return jn.default.cloneElement(t,n({ref:r,...t.props}))},Db="header-modal__close-824b7dc8",Ob=e=>{const{triggerProps:t,defaultOpen:n,open:r,onToggle:o,children:i,ariaLabelledby:a}=e,{getLabel:s}=m0();return(0,Pn.jsxs)(Cb,{defaultOpen:n,open:r,onToggle:o,children:[(0,Pn.jsx)(Mb,{children:(0,Pn.jsx)(Mm,{...t})}),(0,Pn.jsx)(Ib,{"aria-labelledby":a,hideCloseButton:!0,position:"right",children:(0,Pn.jsxs)(Ym,{padding:0,children:[(0,Pn.jsx)($m,{borderless:!0,background:"primary-highlight-subtle",padding:.5,borderRadius:!1,children:(0,Pn.jsx)(Ym,{children:(0,Pn.jsx)(ks,{element:"div",modifiers:"right",children:(0,Pn.jsx)(Tb,{children:(0,Pn.jsx)(M0,{title:s("modal.close"),size:"large",className:Db})})})})}),(0,Pn.jsx)($m,{border:"top-border-default",borderRadius:!1,padding:0,children:(0,Pn.jsx)(Ym,{children:i})})]})})]})},jb=e=>{const{languages:t}=e,n=Ss(["desktop","tablet"]),{getLabel:r}=m0(),[o,i]=jn.default.useState(!1),a=null==t?void 0:t.find((e=>e.isSelected)),s={children:null==a?void 0:a.label,"aria-label":`${r("header.select-lang")} ${(null==a?void 0:a["aria-label"])??(null==a?void 0:a.label)}`,visualType:n?"link":"tertiary",iconRight:n?{name:"expand_more",color:"primary",size:24}:void 0},l=({isSelected:e,onClick:t,label:n,"aria-label":r},o=!0)=>(0,Pn.jsx)(Mm,{visualType:o?"link":e?"primary":"tertiary","aria-current":e,"aria-label":r,onClick:()=>(e=>{null==e||e({onToggle:i})})(t),children:n}),c=(0,Pn.jsxs)("div",{children:[(0,Pn.jsx)(ks,{color:"muted",modifiers:"small",children:r("header.select-lang")}),(0,Pn.jsx)(_b,{shouldAnimate:!0,open:o,onToggle:i,tooltipProps:{cardProps:{padding:1}},triggerProps:s,children:(0,Pn.jsx)(N0,{verticalSpacing:{size:.75},element:"ul",children:(null==t?void 0:t.map((e=>(0,Pn.jsx)(P0,{children:l(e)},e.label))))||[]})})]}),u=(0,Pn.jsx)(Ob,{ariaLabelledby:"header-language-modal-label",open:o,onToggle:i,triggerProps:s,children:(0,Pn.jsx)($m,{borderless:!0,children:(0,Pn.jsxs)(Ym,{children:[(0,Pn.jsx)(Cs,{id:"header-language-modal-label",className:"sr-only",children:r("header.select-lang")}),(0,Pn.jsx)(x0,{alignItems:"center",element:"ul",children:null==t?void 0:t.map((e=>(0,Pn.jsx)(w0,{width:"auto",children:l(e,!1)},e.label)))})]})})});return n?c:u};jb.displayName="HeaderLanguage";const Ab={tag:"tag-de7cd582","tag--default":"tag--default-77443d27","tag--type-ghost":"tag--type-ghost-80dfabdb","tag--large":"tag--large-81928b3e","tag--color-default":"tag--color-default-9aabde81","tag--type-default":"tag--type-default-328f991f","tag--type-secondary":"tag--type-secondary-495a8ed8","tag--color-accent":"tag--color-accent-798040f8","tag--type-borderless":"tag--type-borderless-1c5fcca7","tag--type-invisible":"tag--type-invisible-c8d11eb5","tag--icon-only":"tag--icon-only-1f412944","tag--disabled":"tag--disabled-06b14065","tag--with-arrow":"tag--with-arrow-a7d0d694","tag--color-primary":"tag--color-primary-d4a64cd4","tag--color-positive":"tag--color-positive-f823c0df","tag--color-warning":"tag--color-warning-3efdfe52","tag--color-important":"tag--color-important-81499159","tag--status-error":"tag--status-error-30c88b17","tag--status-success":"tag--status-success-e31be3e2","tag--status-inactive":"tag--status-inactive-09947563","tag--rounded":"tag--rounded-e9419f54"},Rb=(0,jn.forwardRef)(((e,t)=>{const{children:n,size:r,className:o,title:i,color:a="default",status:s,type:l="default",rounded:c=!1,hasArrow:u=!1,isLoading:d=!1,isDisabled:p=!1,iconOnly:f=!1,id:m}=e,h=d?V0:i?"abbr":"div",g=Na(Ab.tag,o,{[Ab[`tag--${r}`]]:r},{[Ab[`tag--type-${l}`]]:l},{[Ab[`tag--color-${a}`]]:a},{[Ab[`tag--status-${s}`]]:s},{[Ab["tag--rounded"]]:c},{[Ab["tag--icon-only"]]:f},{[Ab["tag--disabled"]]:p},{[Ab["tag--with-arrow"]]:u&&!c});return(0,Pn.jsx)(h,{id:m,"data-name":"tag",className:g,title:i,ref:t,children:n})}));Rb.displayName="Tag";const Pb="header-role-collapse-7664165f",Nb="header-role-wrapper-c65bcd63",Lb="header-role-children-3fdd2c2c",Fb=e=>{const{renderModal:t=!1,...n}=e,[r,o]=jn.default.useState(!1);return t?(0,Pn.jsx)(Bb,{...n,open:r,onToggle:o}):(0,Pn.jsx)(Ub,{...n,open:r,onToggle:o})};Fb.displayName="HeaderRole";const Ub=e=>{const{getLabel:t}=m0(),{children:n,open:r,onToggle:o,primaryInfo:i,secondaryInfo:a,label:s=t("header.role-label")}=e,l="function"==typeof n?n({onToggle:o}):n,c=(0,Pn.jsx)(_b,{shouldAnimate:!0,open:r,onToggle:o,tooltipProps:{cardProps:{padding:0},maxWidth:"medium"},triggerProps:{children:i,"aria-label":`${s??""} ${a??""} ${i??""}`,visualType:"link",iconRight:{name:"expand_more",color:"primary",size:24}},children:(0,Pn.jsx)("div",{className:Nb,children:(0,Pn.jsx)(F0,{fadeSize:0,children:(0,Pn.jsx)("div",{className:Lb,children:l})})})});return(0,Pn.jsxs)("div",{children:[s===t("header.role-label")?(0,Pn.jsx)("div",{children:(0,Pn.jsx)(Rb,{color:"primary",type:"secondary",children:s})}):(0,Pn.jsxs)(ks,{color:"muted",modifiers:["bold","small"],children:[s,!!a&&(0,Pn.jsxs)(Pn.Fragment,{children:[" ",(0,Pn.jsxs)(ks,{element:"span",modifiers:["small","normal"],children:[(0,Pn.jsx)("span",{style:{color:"var(--color-border-default)"},children:"|"})," ",a]})]})]}),l?c:i]})},Bb=e=>{const{getLabel:t}=m0(),{children:n,open:r,onToggle:o,primaryInfo:i,secondaryInfo:a,label:s=t("header.role-label")}=e,l=(0,Pn.jsxs)(ks,{element:"span",color:"muted",modifiers:"bold",children:[s," ",i,a&&(0,Pn.jsx)(ks,{element:"span",modifiers:"normal",children:` | ${a}`})]}),c="function"==typeof n?n({onToggle:o}):n;return(0,Pn.jsx)($m,{background:"bg-muted",borderRadius:!1,borderless:!0,children:(0,Pn.jsx)(Ym,{padding:0,children:c?(0,Pn.jsx)(Lm,{id:"role-collapse",open:r,onToggle:o,className:Pb,hideCollapseText:!0,title:l,children:(0,Pn.jsx)("div",{className:Nb,children:(0,Pn.jsx)(F0,{fadeSize:0,children:(0,Pn.jsx)("div",{className:Lb,children:c})})})}):(0,Pn.jsx)("div",{className:Lb,children:l})})})},zb=e=>{const{children:t,onActionClick:n,closeOnAction:r=!0,iconName:o}=e,[i,a]=jn.default.useState(!1),s=Ss(["desktop"]),l=Ss(["mobile"]),{getLabel:c}=m0(),{headerType:u}=jn.default.useContext(Um),d={children:c("header.settings"),visualType:"tertiary",icon:{name:o||"account_circle",color:"primary",size:36}};if("public"===u)return(0,Pn.jsx)(Mm,{icon:l?{name:"login",color:"primary",size:24}:void 0,visualType:l?"tertiary":"primary",onClick:n,children:c("header.login")});const p="function"==typeof t?t({onToggle:a}):t;if(!p)return(0,Pn.jsx)(Mm,{icon:{name:"logout",color:"primary",size:24},visualType:"tertiary",onClick:n,children:c("header.logout")});const f=()=>(0,Pn.jsx)(Mm,{onClick:()=>{n(),r&&a(!1)},iconLeft:"logout",visualType:"link",children:c("header.logout")}),m=(0,Pn.jsx)(_b,{open:i,onToggle:a,tooltipProps:{cardProps:{padding:1}},triggerProps:d,children:(0,Pn.jsxs)(k0,{size:1,children:[p,(0,Pn.jsx)($0,{isStretched:!0}),(0,Pn.jsx)(f,{})]})}),h=(0,Pn.jsxs)(Ob,{open:i,onToggle:a,ariaLabelledby:"header-settings-modal-label",triggerProps:d,children:[(0,Pn.jsx)(Cs,{id:"header-settings-modal-label",className:"sr-only",children:c("header.settings")}),p,(0,Pn.jsx)($0,{isStretched:!0}),(0,Pn.jsx)($m,{borderless:!0,children:(0,Pn.jsx)(Ym,{children:(0,Pn.jsx)(f,{})})}),(0,Pn.jsx)($0,{isStretched:!0})]});return s?m:h};zb.displayName="HeaderSettings";jn.default.createContext({activeStep:0,allowStepLabelClick:!0,handleActiveStepChange:()=>null});function Vb(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Vb(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Kb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Vb(e))&&(r&&(r+=" "),r+=t);return r}function $b(e){return dp(e)}function Hb(e){return ad("MuiSvgIcon",e)}sd("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Yb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Wb=vm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Xc(n.color)}`],t[`fontSize${Xc(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Gb=jn.forwardRef((function(e,t){const n=$b({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Ks(n,Yb),f=jn.isValidElement(r)&&"svg"===r.type,m=Ts({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return np({root:["root","inherit"!==t&&`color${Xc(t)}`,`fontSize${Xc(n)}`]},Hb,r)})(m);return(0,Pn.jsxs)(Wb,Ts({as:a,className:od(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,u?(0,Pn.jsx)("title",{children:u}):null]}))}));function qb(e,t){function n(n,r){return(0,Pn.jsx)(Gb,Ts({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Gb.muiName,jn.memo(jn.forwardRef(n))}function Jb(e,t){return(Jb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jb(e,t)}function Zb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}Gb.muiName="SvgIcon";const Qb=!1;const ey=jn.default.createContext(null);var ty=function(e){return e.scrollTop},ny="unmounted",ry="exited",oy="entering",iy="entered",ay="exiting",sy=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=ry,r.appearStatus=oy):o=iy:o=t.unmountOnExit||t.mountOnEnter?ny:ry,r.state={status:o},r.nextCallback=null,r}Xb(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ny?{status:ry}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==oy&&n!==iy&&(t=oy):(n===oy||n===iy)&&(t=ay)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===oy){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Pa.default.findDOMNode(this);n&&ty(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ry&&this.setState({status:ny})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Pa.default.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Qb?this.safeSetState({status:iy},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:oy},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:iy},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Pa.default.findDOMNode(this);t&&!Qb?(this.props.onExit(r),this.safeSetState({status:ay},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:ry},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:ry},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Pa.default.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===ny)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ks(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return jn.default.createElement(ey.Provider,{value:null},"function"==typeof n?n(e,r):jn.default.cloneElement(jn.default.Children.only(n),r))},t}(jn.default.Component);function ly(){}sy.contextType=ey,sy.propTypes={},sy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ly,onEntering:ly,onEntered:ly,onExit:ly,onExiting:ly,onExited:ly},sy.UNMOUNTED=ny,sy.EXITED=ry,sy.ENTERING=oy,sy.ENTERED=iy,sy.EXITING=ay;var cy=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Zb(e.className,t):e.setAttribute("class",Zb(e.className&&e.className.baseVal||"",t))}(e,t)}))},uy=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Xb(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&ty(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return function(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}(e,t)}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&cy(e,r),o&&cy(e,o),i&&cy(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Ks(e,["classNames"]);return jn.default.createElement(sy,Ts({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(jn.default.Component);function dy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function py(e,t){var n=Object.create(null);return e&&jn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,jn.isValidElement)(e)?t(e):e}(e)})),n}function fy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function my(e,t){return py(e.children,(function(n){return(0,jn.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:fy(n,"appear",e),enter:fy(n,"enter",e),exit:fy(n,"exit",e)})}))}function hy(e,t,n){var r=py(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var c=r[l][a];s[r[l][a]]=n(c)}s[l]=n(l)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if((0,jn.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],u=(0,jn.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,jn.isValidElement)(c)&&(o[i]=(0,jn.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:fy(a,"exit",e),enter:fy(a,"enter",e)})):o[i]=(0,jn.cloneElement)(a,{in:!1}):o[i]=(0,jn.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:fy(a,"exit",e),enter:fy(a,"enter",e)})}})),o}uy.defaultProps={classNames:""},uy.propTypes={};var gy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},vy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(dy(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Xb(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?my(e,r):hy(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=py(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ts({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ks(e,["component","childFactory"]),o=this.state.contextValue,i=gy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?jn.default.createElement(ey.Provider,{value:o},i):jn.default.createElement(ey.Provider,{value:o},jn.default.createElement(t,r,i))},t}(jn.default.Component);vy.propTypes={},vy.defaultProps={component:"div",childFactory:function(e){return e}};const by=e=>e.scrollTop;function yy(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function xy(e){return ad("MuiPaper",e)}sd("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const wy=["className","component","elevation","square","variant"],Sy=vm("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Ts({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Ts({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${wp("#fff",bm(t.elevation))}, ${wp("#fff",bm(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),_y=jn.forwardRef((function(e,t){const n=$b({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Ks(n,wy),c=Ts({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return np({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},xy,o)})(c);return(0,Pn.jsx)(Sy,Ts({as:o,ownerState:c,className:od(u.root,r),ref:t},l))}));const Ey=sd("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ky=["center","classes","className"];let Cy,Ty,Iy,My,Dy=e=>e;const Oy=Ic(Cy||(Cy=Dy`
|
|
3
3
|
0% {
|
|
4
4
|
transform: scale(0);
|
|
5
5
|
opacity: 0.1;
|