eehitus-my-task-list-ui 1.1.7 → 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.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*! For license information please see index.cjs.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e,t,n={20:(e,t,n)=>{"use strict";var r=n(953),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},848:(e,t,n)=>{"use strict";e.exports=n(20)},942:(e,t)=>{var n;!function(){"use strict";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)}()},953:e=>{"use strict";e.exports=require("react")}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";o.r(i),o.d(i,{DetailSearch:()=>$4,MyAdministrativeProceedings:()=>Rn,MyApprovals:()=>g4,MyDocuments:()=>H5,MyInvolvements:()=>y4,MyOpinions:()=>v4,MyPlanningsPage:()=>q3,MyProceedings:()=>h4,documentsReducer:()=>v,filterReducer:()=>c,myOperationsReducer:()=>I,proceedingsReducer:()=>_,rootReducer:()=>wn});const e=require("@reduxjs/toolkit");const t=(0,e.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:n,documentTypesLoaded:r,institutionUsersLoaded:a,institutionsLoaded:s,usageClassifierTypesLoaded:l}=t.actions,c=t.reducer;const u=(0,e.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}}}),d=((0,e.createSelector)((e=>e.myViewsPage.myDocuments.workingDocuments),(e=>e)),(0,e.createSelector)((e=>e.myViewsPage.myDocuments.finishedDocuments),(e=>e))),{workingDocumentsLoaded:p,signingDocumentsLoaded:f,finishedDocumentsLoaded:m,deleteDocument:h,allowedDocumentTypesLoaded:g}=u.actions,v=u.reducer;const b=(0,e.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:y,proceedingsToCommentLoaded:x,incomingDocumentsLoaded:w}=((0,e.createSelector)((e=>e.myViewsPage.myProceedings.myProceedings),(e=>e)),(0,e.createSelector)((e=>e.myViewsPage.myProceedings.incomingDocuments),(e=>e)),b.actions),{actions:S}=b,_=b.reducer;const E=(0,e.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:k,toCommentOperationsLoaded:C,operationInvitationsLoaded:T}=E.actions,I=E.reducer;const M=(0,e.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:O,documentsLoaded:D,proceedingsLoaded:j}=M.actions,A=M.reducer,P={notices:[]},R=(0,e.createSlice)({name:"notification",initialState:P,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=>P}}),N=(0,e.createSelector)((e=>e.myViewsPage.notifications.notices),(e=>e)),{cleanState:L,setNotifications:F,removeNotification:U}=R.actions,B=R.reducer,z=require("axios");var V=o.n(z);const K="https://devkluster.ehr.ee".replace(/\/+$/,"");class ${constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class H extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const Y="https://example.com",W=function(e,t,n){if(null==n)throw new H(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},G=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()},q=function(e){return e.pathname+e.search+e.hash},J=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)}},X=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",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getBusinessTypesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/businesstypelist",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getClassifierByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W("getClassifierByType","classifierType",t);const r="/classifier/{classifierType}".replace("{classifierType}",encodeURIComponent(String(t))),o=new URL(r,Y);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};G(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:q(o),options:a}},getClassifiersByRelatedType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W("getClassifiersByRelatedType","relatedClassifierType",t);const r="/classifier/related-type/{relatedClassifierType}".replace("{relatedClassifierType}",encodeURIComponent(String(t))),o=new URL(r,Y);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};G(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:q(o),options:a}},getClassifiersByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W("getClassifiersByType","classifierTypesCommaSeparated",t);const r="/classifiers/{classifierTypesCommaSeparated}".replace("{classifierTypesCommaSeparated}",encodeURIComponent(String(t))),o=new URL(r,Y);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};G(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:q(o),options:a}},getDocumentTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/documenttypes",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getFileTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/filetypes",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getUsageClassifierTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/classifier/usage",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getUserRolesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/userroleslist",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}}}}(e);return{async getAllDocumentTypes(n){const r=await t.getAllDocumentTypes(n);return J(r,V(),K,e)},async getBusinessTypesList(n){const r=await t.getBusinessTypesList(n);return J(r,V(),K,e)},async getClassifierByType(n,r){const o=await t.getClassifierByType(n,r);return J(o,V(),K,e)},async getClassifiersByRelatedType(n,r){const o=await t.getClassifiersByRelatedType(n,r);return J(o,V(),K,e)},async getClassifiersByType(n,r){const o=await t.getClassifiersByType(n,r);return J(o,V(),K,e)},async getDocumentTypes(n){const r=await t.getDocumentTypes(n);return J(r,V(),K,e)},async getFileTypes(n){const r=await t.getFileTypes(n);return J(r,V(),K,e)},async getHealth(n){const r=await t.getHealth(n);return J(r,V(),K,e)},async getUsageClassifierTypes(n){const r=await t.getUsageClassifierTypes(n);return J(r,V(),K,e)},async getUserRolesList(n){const r=await t.getUserRolesList(n);return J(r,V(),K,e)}}};class Z extends ${getAllDocumentTypes(e){return X(this.configuration).getAllDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getBusinessTypesList(e){return X(this.configuration).getBusinessTypesList(e).then((e=>e(this.axios,this.basePath)))}getClassifierByType(e,t){return X(this.configuration).getClassifierByType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByRelatedType(e,t){return X(this.configuration).getClassifiersByRelatedType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByType(e,t){return X(this.configuration).getClassifiersByType(e,t).then((e=>e(this.axios,this.basePath)))}getDocumentTypes(e){return X(this.configuration).getDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getFileTypes(e){return X(this.configuration).getFileTypes(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return X(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getUsageClassifierTypes(e){return X(this.configuration).getUsageClassifierTypes(e).then((e=>e(this.axios,this.basePath)))}getUserRolesList(e){return X(this.configuration).getUserRolesList(e).then((e=>e(this.axios,this.basePath)))}}class Q{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 ee="http://localhost:8080".replace(/\/+$/,"");class te{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class ne extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const re="https://example.com",oe=function(e,t,n){if(null==n)throw new ne(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function ie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>ie(e,t,n))):Object.keys(t).forEach((r=>ie(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const ae=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];ie(t,r),e.search=t.toString()},se=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},ce=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 ue=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",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getJurPersonCoordRelJurs:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonCoordRelJurs","personId",t);const r="/person/jur/{personId}/coord".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUserPossibleProceedingSupervisorsByEHAKCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUserPossibleProceedingSupervisorsByEHAKCode","eHAKCode",t);const r="/user/possiblesupervisors/{EHAKCode}".replace("{EHAKCode}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUserPossibleProceedingSupervisorsByIdAndEHAKCode:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","id",t),oe("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","eHAKCode",n);const o="/user/possiblesupervisors/{id}/{EHAKCode}".replace("{id}",encodeURIComponent(String(t))).replace("{EHAKCode}",encodeURIComponent(String(n))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ae(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:le(i),options:s}},getUserPossibleProceedingSupervisorsByJurId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUserPossibleProceedingSupervisorsByJurId","personId",t);const r="/user/jur/possiblesupervisors/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}}}}(e);return{async getJurKovPersons(n){const r=await t.getJurKovPersons(n);return ce(r,V(),ee,e)},async getJurPersonCoordRelJurs(n,r){const o=await t.getJurPersonCoordRelJurs(n,r);return ce(o,V(),ee,e)},async getUserPossibleProceedingSupervisorsByEHAKCode(n,r){const o=await t.getUserPossibleProceedingSupervisorsByEHAKCode(n,r);return ce(o,V(),ee,e)},async getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o){const i=await t.getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o);return ce(i,V(),ee,e)},async getUserPossibleProceedingSupervisorsByJurId(n,r){const o=await t.getUserPossibleProceedingSupervisorsByJurId(n,r);return ce(o,V(),ee,e)}}};class de extends te{getJurKovPersons(e){return ue(this.configuration).getJurKovPersons(e).then((e=>e(this.axios,this.basePath)))}getJurPersonCoordRelJurs(e,t){return ue(this.configuration).getJurPersonCoordRelJurs(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByEHAKCode(e,t){return ue(this.configuration).getUserPossibleProceedingSupervisorsByEHAKCode(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n){return ue(this.configuration).getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByJurId(e,t){return ue(this.configuration).getUserPossibleProceedingSupervisorsByJurId(e,t).then((e=>e(this.axios,this.basePath)))}}const pe=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",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},addPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/person",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},deletePerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("deletePerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},findKovsAndJurPersonsInTheSameAdministrativeDivision:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};oe("findKovsAndJurPersonsInTheSameAdministrativeDivision","regNameOrCode",t);const i="/person/kovs-and-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),a=new URL(i,re);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",ae(a,u);let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...o.headers},l.data=se(r,l,e),{url:le(a),options:l}},findPublicSectorInstitutions:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("findPublicSectorInstitutions","regNameOrCode",t);const o="/person/public-sector-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}},findRolesByDbName:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/personroles",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getAllActiveInstitutions:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getAllClassifierBusinessTypeDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur/businessTypes",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getJurPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPerson","personId",t);const r="/person/jur/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurPersonAncestors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonAncestors","jurPersonId",t);const r="/person/jur/ancestor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurPersonSuccessors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonSuccessors","jurPersonId",t);const r="/person/jur/successor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurPersonsByEhakCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonsByEhakCode","ehakCode",t);const r="/person/jur/byEhakCode/{ehakCode}".replace("{ehakCode}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getPerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getPersonDetails:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/details",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},refreshUpdateArPersonFromAR:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("refreshUpdateArPersonFromAR","regCode",t);const r="/person/jur/refresh/{regCode}".replace("{regCode}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},removeYlemyksusReference:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("removeYlemyksusReference","allyksusId",t);const r="/person/jur/removeYlemyksusReference/{allyksusId}".replace("{allyksusId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"PUT",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},updatePerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("updatePerson","personId",t);const o="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}}}}(e);return{async addAllyksusToJurPerson(n,r){const o=await t.addAllyksusToJurPerson(n,r);return ce(o,V(),ee,e)},async addPerson(n,r){const o=await t.addPerson(n,r);return ce(o,V(),ee,e)},async deletePerson(n,r){const o=await t.deletePerson(n,r);return ce(o,V(),ee,e)},async findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i){const a=await t.findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i);return ce(a,V(),ee,e)},async findPublicSectorInstitutions(n,r,o){const i=await t.findPublicSectorInstitutions(n,r,o);return ce(i,V(),ee,e)},async findRolesByDbName(n){const r=await t.findRolesByDbName(n);return ce(r,V(),ee,e)},async getAllActiveInstitutions(n){const r=await t.getAllActiveInstitutions(n);return ce(r,V(),ee,e)},async getAllClassifierBusinessTypeDtos(n){const r=await t.getAllClassifierBusinessTypeDtos(n);return ce(r,V(),ee,e)},async getJurPerson(n,r){const o=await t.getJurPerson(n,r);return ce(o,V(),ee,e)},async getJurPersonAncestors(n,r){const o=await t.getJurPersonAncestors(n,r);return ce(o,V(),ee,e)},async getJurPersonSuccessors(n,r){const o=await t.getJurPersonSuccessors(n,r);return ce(o,V(),ee,e)},async getJurPersonsByEhakCode(n,r){const o=await t.getJurPersonsByEhakCode(n,r);return ce(o,V(),ee,e)},async getPerson(n,r){const o=await t.getPerson(n,r);return ce(o,V(),ee,e)},async getPersonDetails(n){const r=await t.getPersonDetails(n);return ce(r,V(),ee,e)},async refreshUpdateArPersonFromAR(n,r){const o=await t.refreshUpdateArPersonFromAR(n,r);return ce(o,V(),ee,e)},async removeYlemyksusReference(n,r){const o=await t.removeYlemyksusReference(n,r);return ce(o,V(),ee,e)},async updatePerson(n,r,o){const i=await t.updatePerson(n,r,o);return ce(i,V(),ee,e)}}};class fe extends te{addAllyksusToJurPerson(e,t){return pe(this.configuration).addAllyksusToJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}addPerson(e,t){return pe(this.configuration).addPerson(e,t).then((e=>e(this.axios,this.basePath)))}deletePerson(e,t){return pe(this.configuration).deletePerson(e,t).then((e=>e(this.axios,this.basePath)))}findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r){return pe(this.configuration).findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r).then((e=>e(this.axios,this.basePath)))}findPublicSectorInstitutions(e,t,n){return pe(this.configuration).findPublicSectorInstitutions(e,t,n).then((e=>e(this.axios,this.basePath)))}findRolesByDbName(e){return pe(this.configuration).findRolesByDbName(e).then((e=>e(this.axios,this.basePath)))}getAllActiveInstitutions(e){return pe(this.configuration).getAllActiveInstitutions(e).then((e=>e(this.axios,this.basePath)))}getAllClassifierBusinessTypeDtos(e){return pe(this.configuration).getAllClassifierBusinessTypeDtos(e).then((e=>e(this.axios,this.basePath)))}getJurPerson(e,t){return pe(this.configuration).getJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonAncestors(e,t){return pe(this.configuration).getJurPersonAncestors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonSuccessors(e,t){return pe(this.configuration).getJurPersonSuccessors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonsByEhakCode(e,t){return pe(this.configuration).getJurPersonsByEhakCode(e,t).then((e=>e(this.axios,this.basePath)))}getPerson(e,t){return pe(this.configuration).getPerson(e,t).then((e=>e(this.axios,this.basePath)))}getPersonDetails(e){return pe(this.configuration).getPersonDetails(e).then((e=>e(this.axios,this.basePath)))}refreshUpdateArPersonFromAR(e,t){return pe(this.configuration).refreshUpdateArPersonFromAR(e,t).then((e=>e(this.axios,this.basePath)))}removeYlemyksusReference(e,t){return pe(this.configuration).removeYlemyksusReference(e,t).then((e=>e(this.axios,this.basePath)))}updatePerson(e,t,n){return pe(this.configuration).updatePerson(e,t,n).then((e=>e(this.axios,this.basePath)))}}const me=function(e){const t=function(e){return{searchPerson:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};oe("searchPerson","input",t);const i=new URL("/search/searchPerson",re);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),ae(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...o.headers},{url:le(i),options:s}}}}(e);return{async searchPerson(n,r,o,i){const a=await t.searchPerson(n,r,o,i);return ce(a,V(),ee,e)}}};class he extends te{searchPerson(e,t,n,r){return me(this.configuration).searchPerson(e,t,n,r).then((e=>e(this.axios,this.basePath)))}}const ge=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",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},addUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(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",re);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},deleteUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("deleteUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},deleteUserRole:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("deleteUserRole","userRoleRelId",t);const r="/user/role/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},findUsersByRoleId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("findUsersByRoleId","roleId",t);const r="/user/byroleid/{roleId}".replace("{roleId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getAllClassifierUserRoleDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/user/roles/all",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getJurUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurUsers","personId",t);const r="/jur/user/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurUsersWithoutGivenRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("getJurUsersWithoutGivenRole","personId",t),oe("getJurUsersWithoutGivenRole","roleId",n);const o="/jur/user/withoutrole/{personId}/{roleId}".replace("{personId}",encodeURIComponent(String(t))).replace("{roleId}",encodeURIComponent(String(n))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ae(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:le(i),options:s}},getUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUserPossibleRecipients:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user/possiblerecipients",re);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.searchInput=t),ae(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:le(r),options:i}},getUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUsers","personId",t);const r="/user/usersByPersonId/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUsersJurPerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("getUsersJurPerson","userId",t);const o="/user/jur/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};void 0!==n&&(l.valid=n),ae(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...r.headers},{url:le(i),options:s}},updateUser:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("updateUser","userId",t);const o="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}},updateUserRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("updateUserRole","userRoleRelId",t);const o="/user/modifyrole/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}}}}(e);return{async addRoleToUser(n,r){const o=await t.addRoleToUser(n,r);return ce(o,V(),ee,e)},async addUser(n,r){const o=await t.addUser(n,r);return ce(o,V(),ee,e)},async appointSubstituteUser(n,r){const o=await t.appointSubstituteUser(n,r);return ce(o,V(),ee,e)},async deleteUser(n,r){const o=await t.deleteUser(n,r);return ce(o,V(),ee,e)},async deleteUserRole(n,r){const o=await t.deleteUserRole(n,r);return ce(o,V(),ee,e)},async findUsersByRoleId(n,r){const o=await t.findUsersByRoleId(n,r);return ce(o,V(),ee,e)},async getAllClassifierUserRoleDtos(n){const r=await t.getAllClassifierUserRoleDtos(n);return ce(r,V(),ee,e)},async getHealth(n){const r=await t.getHealth(n);return ce(r,V(),ee,e)},async getJurUsers(n,r){const o=await t.getJurUsers(n,r);return ce(o,V(),ee,e)},async getJurUsersWithoutGivenRole(n,r,o){const i=await t.getJurUsersWithoutGivenRole(n,r,o);return ce(i,V(),ee,e)},async getUser(n,r){const o=await t.getUser(n,r);return ce(o,V(),ee,e)},async getUserPossibleRecipients(n,r){const o=await t.getUserPossibleRecipients(n,r);return ce(o,V(),ee,e)},async getUsers(n,r){const o=await t.getUsers(n,r);return ce(o,V(),ee,e)},async getUsersJurPerson(n,r,o){const i=await t.getUsersJurPerson(n,r,o);return ce(i,V(),ee,e)},async updateUser(n,r,o){const i=await t.updateUser(n,r,o);return ce(i,V(),ee,e)},async updateUserRole(n,r,o){const i=await t.updateUserRole(n,r,o);return ce(i,V(),ee,e)}}};class ve extends te{addRoleToUser(e,t){return ge(this.configuration).addRoleToUser(e,t).then((e=>e(this.axios,this.basePath)))}addUser(e,t){return ge(this.configuration).addUser(e,t).then((e=>e(this.axios,this.basePath)))}appointSubstituteUser(e,t){return ge(this.configuration).appointSubstituteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUser(e,t){return ge(this.configuration).deleteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUserRole(e,t){return ge(this.configuration).deleteUserRole(e,t).then((e=>e(this.axios,this.basePath)))}findUsersByRoleId(e,t){return ge(this.configuration).findUsersByRoleId(e,t).then((e=>e(this.axios,this.basePath)))}getAllClassifierUserRoleDtos(e){return ge(this.configuration).getAllClassifierUserRoleDtos(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return ge(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getJurUsers(e,t){return ge(this.configuration).getJurUsers(e,t).then((e=>e(this.axios,this.basePath)))}getJurUsersWithoutGivenRole(e,t,n){return ge(this.configuration).getJurUsersWithoutGivenRole(e,t,n).then((e=>e(this.axios,this.basePath)))}getUser(e,t){return ge(this.configuration).getUser(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleRecipients(e,t){return ge(this.configuration).getUserPossibleRecipients(e,t).then((e=>e(this.axios,this.basePath)))}getUsers(e,t){return ge(this.configuration).getUsers(e,t).then((e=>e(this.axios,this.basePath)))}getUsersJurPerson(e,t,n){return ge(this.configuration).getUsersJurPerson(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUser(e,t,n){return ge(this.configuration).updateUser(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUserRole(e,t,n){return ge(this.configuration).updateUserRole(e,t,n).then((e=>e(this.axios,this.basePath)))}}class be{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 ye="http://localhost:8080".replace(/\/+$/,"");class xe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class we extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Se="https://example.com",_e=function(e,t,n){if(null==n)throw new we(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Ee(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>Ee(e,t,n))):Object.keys(t).forEach((r=>Ee(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const ke=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];Ee(t,r),e.search=t.toString()},Ce=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||""},Te=function(e){return e.pathname+e.search+e.hash},Ie=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)}},Me=function(e){const t=function(e){return{findIncomingDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findIncomingDocuments","documentBaseQueryDto",t);const r=new URL("/documents/incomingdocuments",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findWorkingDocuments1:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findWorkingDocuments1","documentBaseQueryDto",t);const r=new URL("/documents/basedocuments",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async findIncomingDocuments(n,r){const o=await t.findIncomingDocuments(n,r);return Ie(o,V(),ye,e)},async findWorkingDocuments1(n,r){const o=await t.findWorkingDocuments1(n,r);return Ie(o,V(),ye,e)}}};class Oe extends xe{findIncomingDocuments(e,t){return Me(this.configuration).findIncomingDocuments(e,t).then((e=>e(this.axios,this.basePath)))}findWorkingDocuments1(e,t){return Me(this.configuration).findWorkingDocuments1(e,t).then((e=>e(this.axios,this.basePath)))}}const De=function(e){const t=function(e){return{searchDetailBuildings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("searchDetailBuildings","buildingSearchDto",t);const r=new URL("/search/buildings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},searchDetailDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("searchDetailDocuments","documentSearchDto",t);const r=new URL("/search/documents",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},searchDetailProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("searchDetailProceedings","proceedingSearchDto",t);const r=new URL("/search/proceedings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async searchDetailBuildings(n,r){const o=await t.searchDetailBuildings(n,r);return Ie(o,V(),ye,e)},async searchDetailDocuments(n,r){const o=await t.searchDetailDocuments(n,r);return Ie(o,V(),ye,e)},async searchDetailProceedings(n,r){const o=await t.searchDetailProceedings(n,r);return Ie(o,V(),ye,e)}}};class je extends xe{searchDetailBuildings(e,t){return De(this.configuration).searchDetailBuildings(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailDocuments(e,t){return De(this.configuration).searchDetailDocuments(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailProceedings(e,t){return De(this.configuration).searchDetailProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}const Ae=function(e){const t=function(e){return{findOperationInvitations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findOperationInvitations","operationQueryDto",t);const r=new URL("/myoperations/operationinvitations",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findOperations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findOperations","operationQueryDto",t);const r=new URL("/myoperations/myoperations",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findOperationsToComment:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findOperationsToComment","operationQueryDto",t);const r=new URL("/myoperations/operationstocomment",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async findOperationInvitations(n,r){const o=await t.findOperationInvitations(n,r);return Ie(o,V(),ye,e)},async findOperations(n,r){const o=await t.findOperations(n,r);return Ie(o,V(),ye,e)},async findOperationsToComment(n,r){const o=await t.findOperationsToComment(n,r);return Ie(o,V(),ye,e)}}};class Pe extends xe{findOperationInvitations(e,t){return Ae(this.configuration).findOperationInvitations(e,t).then((e=>e(this.axios,this.basePath)))}findOperations(e,t){return Ae(this.configuration).findOperations(e,t).then((e=>e(this.axios,this.basePath)))}findOperationsToComment(e,t){return Ae(this.configuration).findOperationsToComment(e,t).then((e=>e(this.axios,this.basePath)))}}const Re=function(e){const t=function(e){return{findAreaProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findAreaProceedings","proceedingQueryDto",t);const r=new URL("/myproceedings/my-area-proceedings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findProceedings","myProceedingsRequestDto",t);const r=new URL("/myproceedings/myproceedings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async findAreaProceedings(n,r){const o=await t.findAreaProceedings(n,r);return Ie(o,V(),ye,e)},async findProceedings(n,r){const o=await t.findProceedings(n,r);return Ie(o,V(),ye,e)}}};class Ne extends xe{findAreaProceedings(e,t){return Re(this.configuration).findAreaProceedings(e,t).then((e=>e(this.axios,this.basePath)))}findProceedings(e,t){return Re(this.configuration).findProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}class Le{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 Fe="http://localhost:8080".replace(/\/+$/,"");class Ue{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Be extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const ze="https://example.com",Ve=function(e,t,n){if(null==n)throw new Be(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Ke=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 $e(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>$e(e,t,n))):Object.keys(t).forEach((r=>$e(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const He=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];$e(t,r),e.search=t.toString()},Ye=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||""},We=function(e){return e.pathname+e.search+e.hash},Ge=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 qe=function(e){const t=function(e){return{addAuthz:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("addAuthz","documentType",t),Ve("addAuthz","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/addAuthz".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},apiVersion:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/version",ze);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};He(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:We(n),options:o}},autoUpdateOwnershipType:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/document/updateOwnershipType",ze);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};He(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:We(n),options:o}},createDoDokuDokuRel:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("createDoDokuDokuRel","documentId",t),Ve("createDoDokuDokuRel","addEntityDto",n);const o="/document/{documentId}/createDoDokuDokuRel".replace("{documentId}",encodeURIComponent(String(t))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Ke(l,e),l["Content-Type"]="application/json",He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=Ye(n,s,e),{url:We(i),options:s}},createDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("createDocument","documentType",t);const o="/document/{documentType}".replace("{documentType}",encodeURIComponent(String(t))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Ke(l,e),l["Content-Type"]="application/json",He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=Ye(n,s,e),{url:We(i),options:s}},createNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("createNewVersion","documentType",t),Ve("createNewVersion","applicationNumber",n),Ve("createNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/new".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},deleteApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("deleteApplicationByNumber","documentType",t),Ve("deleteApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},endProceedingCircleDocuments:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("endProceedingCircleDocuments","documentType",t),Ve("endProceedingCircleDocuments","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},getAccessRights:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getAccessRights","documentType",t),Ve("getAccessRights","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/rights".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},getApplicationById:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ve("getApplicationById","documentId",t);const r="/document/{documentId}".replace("{documentId}",encodeURIComponent(String(t))),o=new URL(r,ze);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await Ke(s,e),He(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:We(o),options:a}},getApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getApplicationByNumber","documentType",t),Ve("getApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},getApplicationByNumberOld:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getApplicationByNumberOld","ehrCode",t),Ve("getApplicationByNumberOld","applicationNumber",n);const o="/document/old/{ehrCode}/{applicationNumber}".replace("{ehrCode}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},getApplicationByNumberWithVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("getApplicationByNumberWithVersion","documentType",t),Ve("getApplicationByNumberWithVersion","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},getApplicationStateFee:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("getApplicationStateFee","documentType",t),Ve("getApplicationStateFee","applicationNumber",n),Ve("getApplicationStateFee","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/stateFee".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},getApplicationStateFeeOfVersion:async function(t,n,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Ve("getApplicationStateFeeOfVersion","documentType",t),Ve("getApplicationStateFeeOfVersion","applicationNumber",n),Ve("getApplicationStateFeeOfVersion","version",r),Ve("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,ze);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...i},u={};await Ke(u,e),u["Content-Type"]="application/json",He(s,{});let d=l&&l.headers?l.headers:{};return c.headers={...u,...d,...i.headers},c.data=Ye(o,c,e),{url:We(s),options:c}},getDocumentFileRels:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ve("getDocumentFileRels","docNr",t);const r=new URL("/document/fileRels",ze);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={},s={};await Ke(a,e),void 0!==t&&(s.docNr=t),He(r,s);let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},{url:We(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",ze);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.ehrCode=t),He(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:We(r),options:i}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",ze);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};He(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:We(n),options:o}},getLastStateHistory:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getLastStateHistory","documentType",t),Ve("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,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},initializeAds:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("initializeAds","documentType",t),Ve("initializeAds","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/initAds".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},mergeInstitutions:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ve("mergeInstitutions","mergeInstitutionsDTO",t);const r=new URL("/document/merge",ze);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};He(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ye(t,i,e),{url:We(r),options:i}},reSubmit:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("reSubmit","documentType",t),Ve("reSubmit","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},recalculatestate:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("recalculatestate","documentType",t),Ve("recalculatestate","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/recalculatedetailstate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},revertCreateNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("revertCreateNewVersion","documentType",t),Ve("revertCreateNewVersion","applicationNumber",n),Ve("revertCreateNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/revert".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},saveAndValidate:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("saveAndValidate","documentType",t),Ve("saveAndValidate","applicationNumber",n),Ve("saveAndValidate","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/saveAndValidate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},saveApplicationByNumber:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("saveApplicationByNumber","documentType",t),Ve("saveApplicationByNumber","applicationNumber",n),Ve("saveApplicationByNumber","applicationDto",r);const i="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},setWaterExtractionPointsTestDates:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("setWaterExtractionPointsTestDates","documentType",t),Ve("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,ze);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},setWaterExtractionPointsTestDatesForBuilding:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("setWaterExtractionPointsTestDatesForBuilding","documentType",t),Ve("setWaterExtractionPointsTestDatesForBuilding","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},submitStraightToRegistry:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("submitStraightToRegistry","documentType",t),Ve("submitStraightToRegistry","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToRegistry".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},submitToProcessing:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("submitToProcessing","documentType",t),Ve("submitToProcessing","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToProcessing".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},submitToSigning:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("submitToSigning","documentType",t),Ve("submitToSigning","applicationNumber",n),Ve("submitToSigning","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/submitToSigning".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},submitToSupervisorProcessing:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("submitToSupervisorProcessing","documentType",t),Ve("submitToSupervisorProcessing","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},validateSavedDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("validateSavedDocument","documentType",t),Ve("validateSavedDocument","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/completeApplicationChecks".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}}}}(e);return{async addAuthz(n,r,o){const i=await t.addAuthz(n,r,o);return Ge(i,V(),Fe,e)},async apiVersion(n){const r=await t.apiVersion(n);return Ge(r,V(),Fe,e)},async autoUpdateOwnershipType(n){const r=await t.autoUpdateOwnershipType(n);return Ge(r,V(),Fe,e)},async createDoDokuDokuRel(n,r,o){const i=await t.createDoDokuDokuRel(n,r,o);return Ge(i,V(),Fe,e)},async createDocument(n,r,o){const i=await t.createDocument(n,r,o);return Ge(i,V(),Fe,e)},async createNewVersion(n,r,o,i){const a=await t.createNewVersion(n,r,o,i);return Ge(a,V(),Fe,e)},async deleteApplicationByNumber(n,r,o){const i=await t.deleteApplicationByNumber(n,r,o);return Ge(i,V(),Fe,e)},async endProceedingCircleDocuments(n,r,o,i){const a=await t.endProceedingCircleDocuments(n,r,o,i);return Ge(a,V(),Fe,e)},async getAccessRights(n,r,o){const i=await t.getAccessRights(n,r,o);return Ge(i,V(),Fe,e)},async getApplicationById(n,r){const o=await t.getApplicationById(n,r);return Ge(o,V(),Fe,e)},async getApplicationByNumber(n,r,o){const i=await t.getApplicationByNumber(n,r,o);return Ge(i,V(),Fe,e)},async getApplicationByNumberOld(n,r,o){const i=await t.getApplicationByNumberOld(n,r,o);return Ge(i,V(),Fe,e)},async getApplicationByNumberWithVersion(n,r,o,i){const a=await t.getApplicationByNumberWithVersion(n,r,o,i);return Ge(a,V(),Fe,e)},async getApplicationStateFee(n,r,o,i){const a=await t.getApplicationStateFee(n,r,o,i);return Ge(a,V(),Fe,e)},async getApplicationStateFeeOfVersion(n,r,o,i,a){const s=await t.getApplicationStateFeeOfVersion(n,r,o,i,a);return Ge(s,V(),Fe,e)},async getDocumentFileRels(n,r){const o=await t.getDocumentFileRels(n,r);return Ge(o,V(),Fe,e)},async getDotysBasedOnUserRights(n,r){const o=await t.getDotysBasedOnUserRights(n,r);return Ge(o,V(),Fe,e)},async getHealth(n){const r=await t.getHealth(n);return Ge(r,V(),Fe,e)},async getLastStateHistory(n,r,o){const i=await t.getLastStateHistory(n,r,o);return Ge(i,V(),Fe,e)},async initializeAds(n,r,o){const i=await t.initializeAds(n,r,o);return Ge(i,V(),Fe,e)},async mergeInstitutions(n,r){const o=await t.mergeInstitutions(n,r);return Ge(o,V(),Fe,e)},async reSubmit(n,r,o,i){const a=await t.reSubmit(n,r,o,i);return Ge(a,V(),Fe,e)},async recalculatestate(n,r,o){const i=await t.recalculatestate(n,r,o);return Ge(i,V(),Fe,e)},async revertCreateNewVersion(n,r,o,i){const a=await t.revertCreateNewVersion(n,r,o,i);return Ge(a,V(),Fe,e)},async saveAndValidate(n,r,o,i){const a=await t.saveAndValidate(n,r,o,i);return Ge(a,V(),Fe,e)},async saveApplicationByNumber(n,r,o,i){const a=await t.saveApplicationByNumber(n,r,o,i);return Ge(a,V(),Fe,e)},async setWaterExtractionPointsTestDates(n,r,o){const i=await t.setWaterExtractionPointsTestDates(n,r,o);return Ge(i,V(),Fe,e)},async setWaterExtractionPointsTestDatesForBuilding(n,r,o,i){const a=await t.setWaterExtractionPointsTestDatesForBuilding(n,r,o,i);return Ge(a,V(),Fe,e)},async submitStraightToRegistry(n,r,o){const i=await t.submitStraightToRegistry(n,r,o);return Ge(i,V(),Fe,e)},async submitToProcessing(n,r,o){const i=await t.submitToProcessing(n,r,o);return Ge(i,V(),Fe,e)},async submitToSigning(n,r,o,i){const a=await t.submitToSigning(n,r,o,i);return Ge(a,V(),Fe,e)},async submitToSupervisorProcessing(n,r,o,i){const a=await t.submitToSupervisorProcessing(n,r,o,i);return Ge(a,V(),Fe,e)},async validateSavedDocument(n,r,o){const i=await t.validateSavedDocument(n,r,o);return Ge(i,V(),Fe,e)}}};class Je extends Ue{addAuthz(e,t,n){return qe(this.configuration).addAuthz(e,t,n).then((e=>e(this.axios,this.basePath)))}apiVersion(e){return qe(this.configuration).apiVersion(e).then((e=>e(this.axios,this.basePath)))}autoUpdateOwnershipType(e){return qe(this.configuration).autoUpdateOwnershipType(e).then((e=>e(this.axios,this.basePath)))}createDoDokuDokuRel(e,t,n){return qe(this.configuration).createDoDokuDokuRel(e,t,n).then((e=>e(this.axios,this.basePath)))}createDocument(e,t,n){return qe(this.configuration).createDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}createNewVersion(e,t,n,r){return qe(this.configuration).createNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteApplicationByNumber(e,t,n){return qe(this.configuration).deleteApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}endProceedingCircleDocuments(e,t,n,r){return qe(this.configuration).endProceedingCircleDocuments(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getAccessRights(e,t,n){return qe(this.configuration).getAccessRights(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationById(e,t){return qe(this.configuration).getApplicationById(e,t).then((e=>e(this.axios,this.basePath)))}getApplicationByNumber(e,t,n){return qe(this.configuration).getApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberOld(e,t,n){return qe(this.configuration).getApplicationByNumberOld(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberWithVersion(e,t,n,r){return qe(this.configuration).getApplicationByNumberWithVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFee(e,t,n,r){return qe(this.configuration).getApplicationStateFee(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFeeOfVersion(e,t,n,r,o){return qe(this.configuration).getApplicationStateFeeOfVersion(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}getDocumentFileRels(e,t){return qe(this.configuration).getDocumentFileRels(e,t).then((e=>e(this.axios,this.basePath)))}getDotysBasedOnUserRights(e,t){return qe(this.configuration).getDotysBasedOnUserRights(e,t).then((e=>e(this.axios,this.basePath)))}getHealth(e){return qe(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getLastStateHistory(e,t,n){return qe(this.configuration).getLastStateHistory(e,t,n).then((e=>e(this.axios,this.basePath)))}initializeAds(e,t,n){return qe(this.configuration).initializeAds(e,t,n).then((e=>e(this.axios,this.basePath)))}mergeInstitutions(e,t){return qe(this.configuration).mergeInstitutions(e,t).then((e=>e(this.axios,this.basePath)))}reSubmit(e,t,n,r){return qe(this.configuration).reSubmit(e,t,n,r).then((e=>e(this.axios,this.basePath)))}recalculatestate(e,t,n){return qe(this.configuration).recalculatestate(e,t,n).then((e=>e(this.axios,this.basePath)))}revertCreateNewVersion(e,t,n,r){return qe(this.configuration).revertCreateNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveAndValidate(e,t,n,r){return qe(this.configuration).saveAndValidate(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveApplicationByNumber(e,t,n,r){return qe(this.configuration).saveApplicationByNumber(e,t,n,r).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDates(e,t,n){return qe(this.configuration).setWaterExtractionPointsTestDates(e,t,n).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDatesForBuilding(e,t,n,r){return qe(this.configuration).setWaterExtractionPointsTestDatesForBuilding(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitStraightToRegistry(e,t,n){return qe(this.configuration).submitStraightToRegistry(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToProcessing(e,t,n){return qe(this.configuration).submitToProcessing(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToSigning(e,t,n,r){return qe(this.configuration).submitToSigning(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitToSupervisorProcessing(e,t,n,r){return qe(this.configuration).submitToSupervisorProcessing(e,t,n,r).then((e=>e(this.axios,this.basePath)))}validateSavedDocument(e,t,n){return qe(this.configuration).validateSavedDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}}class Xe{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 Ze="https://devkluster.ehr.ee/api/file-upload-api/v1".replace(/\/+$/,"");class Qe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class et extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const tt="https://example.com",nt=function(e,t,n){if(null==n)throw new et(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},rt=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}},ot=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()},it=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||""},at=function(e){return e.pathname+e.search+e.hash},st=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)}},lt=function(e){const t=function(e){return{cloneFilesAndCreateRels:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};nt("cloneFilesAndCreateRels","fileIds",t);const i=new URL("/fileClone",tt);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...o},l={},c={};await rt(l,e),t&&(c.fileIds=t),void 0!==n&&(c.docNr=n),void 0!==r&&(c.relType=r),ot(i,c);let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...o.headers},{url:at(i),options:s}},deleteFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nt("deleteFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,tt);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n},s={};await rt(s,e),ot(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:at(o),options:a}},downloadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nt("downloadFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,tt);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await rt(s,e),ot(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:at(o),options:a}},updateFile:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};nt("updateFile","fileId",t);const o="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),i=new URL(o,tt);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await rt(l,e),l["Content-Type"]="application/json",ot(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=it(n,s,e),{url:at(i),options:s}},updateFileInfo:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nt("updateFileInfo","doFail",t);const r=new URL("/file/info",tt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await rt(a,e),a["Content-Type"]="application/json",ot(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=it(t,i,e),{url:at(r),options:i}},uploadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/file",tt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={},s=new(e&&e.formDataCtor||FormData);await rt(a,e),void 0!==t&&s.append("file",t),a["Content-Type"]="multipart/form-data",ot(r,{});let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},i.data=s,{url:at(r),options:i}},uploadFileWithFileInfo:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=new URL("/fileWithInfo",tt);let i;e&&(i=e.baseOptions);const a={method:"POST",...i,...r},s={},l=new(e&&e.formDataCtor||FormData);await rt(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",ot(o,{});let c=i&&i.headers?i.headers:{};return a.headers={...s,...c,...r.headers},a.data=l,{url:at(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",tt);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...i},c={},u=new(e&&e.formDataCtor||FormData);await rt(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",ot(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...i.headers},l.data=u,{url:at(a),options:l}}}}(e);return{async cloneFilesAndCreateRels(n,r,o,i){const a=await t.cloneFilesAndCreateRels(n,r,o,i);return st(a,V(),Ze,e)},async deleteFile(n,r){const o=await t.deleteFile(n,r);return st(o,V(),Ze,e)},async downloadFile(n,r){const o=await t.downloadFile(n,r);return st(o,V(),Ze,e)},async updateFile(n,r,o){const i=await t.updateFile(n,r,o);return st(i,V(),Ze,e)},async updateFileInfo(n,r){const o=await t.updateFileInfo(n,r);return st(o,V(),Ze,e)},async uploadFile(n,r){const o=await t.uploadFile(n,r);return st(o,V(),Ze,e)},async uploadFileWithFileInfo(n,r,o){const i=await t.uploadFileWithFileInfo(n,r,o);return st(i,V(),Ze,e)},async uploadFileWithFileInfoAndDocRel(n,r,o,i,a){const s=await t.uploadFileWithFileInfoAndDocRel(n,r,o,i,a);return st(s,V(),Ze,e)}}};class ct extends Qe{cloneFilesAndCreateRels(e,t,n,r){return lt(this.configuration).cloneFilesAndCreateRels(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteFile(e,t){return lt(this.configuration).deleteFile(e,t).then((e=>e(this.axios,this.basePath)))}downloadFile(e,t){return lt(this.configuration).downloadFile(e,t).then((e=>e(this.axios,this.basePath)))}updateFile(e,t,n){return lt(this.configuration).updateFile(e,t,n).then((e=>e(this.axios,this.basePath)))}updateFileInfo(e,t){return lt(this.configuration).updateFileInfo(e,t).then((e=>e(this.axios,this.basePath)))}uploadFile(e,t){return lt(this.configuration).uploadFile(e,t).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfo(e,t,n){return lt(this.configuration).uploadFileWithFileInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfoAndDocRel(e,t,n,r,o){return lt(this.configuration).uploadFileWithFileInfoAndDocRel(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}}class ut{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 dt="https://devkluster.ehr.ee/api/yld-esi/v1".replace(/\/+$/,"");class pt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class ft extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const mt="https://example.com",ht=function(e,t,n){if(null==n)throw new ft(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function gt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>gt(e,t,n))):Object.keys(t).forEach((r=>gt(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const vt=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];gt(t,r),e.search=t.toString()},bt=function(e){return e.pathname+e.search+e.hash},yt=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 xt=function(e){return{esileht:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht("esileht","id",t),ht("esileht","language",n);const o="/public/page/{id}/{language}".replace("{id}",encodeURIComponent(String(t))).replace("{language}",encodeURIComponent(String(n))),i=new URL(o,mt);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};vt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:bt(i),options:s}},lehed:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages",mt);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};vt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:bt(n),options:o}},lehedId:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages/dotyid",mt);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};vt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:bt(n),options:o}},leht:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht("leht","id",t);const r="/api/pages/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,mt);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};vt(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:bt(o),options:a}},lehtdSave:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht("lehtdSave","esileht",t);const r=new URL("/api/pages",mt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};a["Content-Type"]="application/json",vt(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:bt(r),options:i}}}},wt=function(e){const t=xt(e);return{async esileht(n,r,o){const i=await t.esileht(n,r,o);return yt(i,V(),dt,e)},async lehed(n){const r=await t.lehed(n);return yt(r,V(),dt,e)},async lehedId(n){const r=await t.lehedId(n);return yt(r,V(),dt,e)},async leht(n,r){const o=await t.leht(n,r);return yt(o,V(),dt,e)},async lehtdSave(n,r){const o=await t.lehtdSave(n,r);return yt(o,V(),dt,e)}}};class St extends pt{esileht(e,t,n){return wt(this.configuration).esileht(e,t,n).then((e=>e(this.axios,this.basePath)))}lehed(e){return wt(this.configuration).lehed(e).then((e=>e(this.axios,this.basePath)))}lehedId(e){return wt(this.configuration).lehedId(e).then((e=>e(this.axios,this.basePath)))}leht(e,t){return wt(this.configuration).leht(e,t).then((e=>e(this.axios,this.basePath)))}lehtdSave(e,t){return wt(this.configuration).lehtdSave(e,t).then((e=>e(this.axios,this.basePath)))}}class _t{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 Et={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},kt={proceedingApiService:new Ne(new Le({basePath:Et.myViewsApiEndpoint})),classifierApiService:new Z(new Q({basePath:Et.classifierApiEndpoint})),personApiService:new fe(new be({basePath:Et.userApiEndpoint})),userApiService:new ve(new be({basePath:Et.userApiEndpoint})),myDocumentBaseApiService:new Oe(new Le({basePath:Et.myViewsApiEndpoint})),documentApiService:new Je(new Xe({basePath:Et.documentApiEndpoint})),fileApiService:new ct(new ut({basePath:Et.fileUploadApiEndpoint})),frontPageApi:new St(new _t({basePath:Et.frontPageApiEndpoint})),institutionKovEndpointApi:new de(new be({basePath:Et.userApiEndpoint}))};let Ct=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 Tt=[Ct.DO_DOKUSEIS_KEHTETU,Ct.DO_DOKUSEIS_TUNNIST_KEHTETUKS,Ct.DO_DOKUSEIS_REG_KANTUD,Ct.DO_DOKUSEIS_TAGASTATUD,Ct.DO_DOKUSEIS_KEELDUTUD,Ct.DO_DOKUSEIS_TYHISTATUD,Ct.DO_DOKUSEIS_LOOBUTUD,Ct.DO_DOKUSEIS_ALLKIRJASTATUD,Ct.DO_DOKUSEIS_MENETLETUD,Ct.DO_DOKUSEIS_LUBATUD,Ct.DO_DOKUSEIS_LUB_TEAV,Ct.DO_DOKUSEIS_TEAVITATUD,Ct.DO_DOKUSEIS_ANTUD,Ct.DO_DOKUSEIS_KEHTIV],It=[Ct.DO_DOKUSEIS_ESITATUD,Ct.DO_DOKUSEIS_MENETLUSES],Mt=[Ct.DO_DOKUSEIS_ESITATUD,Ct.DO_DOKUSEIS_KOOSTAMISEL,Ct.DO_DOKUSEIS_EELNOU_AKTIIVNE,Ct.DO_DOKUSEIS_ALLKIRJASTAMISEL,Ct.DO_DOKUSEIS_MENETLUSES,Ct.DO_DOKUSEIS_TAIENDAMISEL,Ct.DO_DOKUSEIS_MUUTMISEL],Ot="SIGNING_DOCUMENTS",Dt="WORKING_DOCUMENTS",jt="FINISHED_DOCUMENTS",At="INCOMING_DOCUMENTS",Pt="MY_APPROVALS",Rt="MY_OPINIONS",Nt="MY_INVOLVEMENTS",Lt="MY_OPERATIONS",Ft="OPERATIONS_TO_COMMENT",Ut="OPERATION_INVITATIONS",Bt="PROCEEDINGS_TO_COMMENT",zt="BUILDINGS_SEARCH";let Vt=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}({}),Kt=function(e){return e.Default="default",e.Info="info",e.Success="success",e.Warning="warning",e.Danger="danger",e}({}),$t=function(e){return e.Danger="danger",e.Default="neutral",e.Info="brand",e.Success="success",e.Warning="warning",e}({});const Ht="BUILDING",Yt="PROCEEDING",Wt="DOCUMENT";let Gt=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 qt=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}({}),Jt=function(e){return e.Proceeding="PROCEEDING",e.Document="DOCUMENT",e.Operation="OPERATION",e}({}),Xt=function(e){return e.PlanningsProceedings="PlanningsProceedings",e.PlanningsInstitution="PlanningsInstitution",e.PlanningsOngoing="PlanningsOngoing",e.PlanningsCompleted="PlanningsCompleted",e}({});const Zt="12975",Qt="12976",en="11274",tn="11275",nn="12977",rn="12978",on="11261",an=["11272","12972",Zt,"12974",rn,tn],sn=["11273","12973",Qt,"12971",nn,en],ln=[Zt,Qt],cn={[Qt]:nn,[Zt]:rn},un={[Qt]:en,[Zt]:tn},dn=[...["12510","12511","12512","12513","12514","14102","14103","14104","14105"],...[on,"14101"]],pn=(0,e.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 kt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:dn,states:Mt})).data)&&void 0!==t?t:[]})),fn=(0,e.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 kt.proceedingApiService.findProceedings({userId:r,personId:o,dotys:dn,states:Mt});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),mn=(0,e.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 kt.myDocumentBaseApiService.findIncomingDocuments({userId:r,personId:o,dotys:dn,states:It});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),hn=(0,e.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 kt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:dn,states:Tt});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),gn=(0,e.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(fn.pending,(e=>{e.planningProceedingsLoading=!0})),e.addCase(fn.fulfilled,((e,t)=>{var n;e.planningProceedingsLoading=!1,e.planningProceedings=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(fn.rejected,(e=>{e.planningProceedingsLoading=!1,e.planningProceedingsError=!0})),e.addCase(mn.pending,(e=>{e.incomingDocumentsLoading=!0})),e.addCase(mn.fulfilled,((e,t)=>{var n;e.incomingDocumentsLoading=!1,e.incomingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(mn.rejected,(e=>{e.incomingDocumentsLoading=!1,e.incomingDocumentsError=!0})),e.addCase(pn.pending,(e=>{e.ongoingDocumentsLoading=!0})),e.addCase(pn.fulfilled,((e,t)=>{var n;e.ongoingDocumentsLoading=!1,e.ongoingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(pn.rejected,(e=>{e.ongoingDocumentsLoading=!1,e.ongoingDocumentsError=!0})),e.addCase(hn.pending,(e=>{e.finishedDocumentsLoading=!0})),e.addCase(hn.fulfilled,((e,t)=>{var n;e.finishedDocumentsLoading=!1,e.finishedDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(hn.rejected,(e=>{e.finishedDocumentsLoading=!1,e.finishedDocumentsError=!0}))}}),vn=(0,e.createSelector)((e=>({proceedings:e.myViewsPage.myPlannings.planningProceedings,isLoading:e.myViewsPage.myPlannings.planningProceedingsLoading,isError:e.myViewsPage.myPlannings.planningProceedingsError})),(e=>e)),bn=(0,e.createSelector)((e=>({documents:e.myViewsPage.myPlannings.incomingDocuments,isLoading:e.myViewsPage.myPlannings.incomingDocumentsLoading,isError:e.myViewsPage.myPlannings.incomingDocumentsError})),(e=>e)),yn=(0,e.createSelector)((e=>({documents:e.myViewsPage.myPlannings.ongoingDocuments,isLoading:e.myViewsPage.myPlannings.ongoingDocumentsLoading,isError:e.myViewsPage.myPlannings.ongoingDocumentsError})),(e=>e)),{}=((0,e.createSelector)((e=>({documents:e.myViewsPage.myPlannings.finishedDocuments,isLoading:e.myViewsPage.myPlannings.finishedDocumentsLoading,isError:e.myViewsPage.myPlannings.finishedDocumentsError})),(e=>e)),gn.actions),xn=gn.reducer,wn=(0,e.combineReducers)({filter:c,myDocuments:v,myProceedings:_,myOperations:I,detailSearch:A,notifications:B,myPlannings:xn});var Sn=o(953),_n=o.t(Sn,2),En=o.n(Sn);const kn=require("react-intl"),Cn=require("ehr-components");var Tn=o(848);const In=11272,Mn=e=>{var t;let{userInfo:n}=e;const r=(0,kn.useIntl)(),[o,i]=(0,Sn.useState)(!0),[a,s]=(0,Sn.useState)(""),[l,c]=(0,Sn.useState)(""),u=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===Gt.MKM;(0,Sn.useEffect)((()=>{u?d():p()}),[]);const d=async()=>{kt.frontPageApi.leht(In).then((e=>{const t=e.data;t[0].body&&(s(t[0].body),c(t[0].body))}))},p=async()=>{kt.frontPageApi.esileht(In,"ee").then((e=>{const t=e.data;t.body&&(s(t.body),c(t.body))}))};return(0,Tn.jsx)(Cn.Section,{collapsed:!1,title:"my_admin_proceedings.admin_proceedings_reminder",showSettings:!0,children:(0,Tn.jsxs)("div",{className:o?"d-flex justify-content-between":"",children:[(0,Tn.jsx)(Cn.RichTextEditor,{placeholder:o?"":r.formatMessage({id:"placeholder.writing"}),onChange:e=>c(e),value:l,readOnly:o,view:o}),u&&o&&(0,Tn.jsx)(Cn.Link,{onClick:()=>i(!1),type:"edit"}),!o&&(0,Tn.jsxs)("div",{className:"pt-2",children:[(0,Tn.jsx)(Cn.Button,{colourScheme:"light",squared:!0,onClick:()=>{c(a),i(!0)},children:r.formatMessage({id:"button.cancel"})}),(0,Tn.jsx)(Cn.Button,{className:"float-right",colourScheme:"success",squared:!0,onClick:()=>(async()=>{i(!o),s(l),kt.frontPageApi.lehtdSave({id:In,body:l,language:"ee"})})(),children:r.formatMessage({id:"button.save"})})]})]})})},On={default:"header-arrow-up-down-icon",des:"header-arrow-down-icon",asc:"header-arrow-up-icon"},Dn=e=>(0,Tn.jsx)(Cn.Tooltip,{content:(0,Tn.jsx)(Cn.Text,{raw:e.tooltipText}),placement:"bottom",theme:"dark",children:e.functionCall?(0,Tn.jsx)(Cn.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,Tn.jsx)(Cn.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),jn=e=>{let{proceedings:t,linkGen:n}=e;const r=(0,kn.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,Tn.jsx)(Dn,{linkName:t.proceedingNr,tooltipText:"detailsearch.tooltip.open_proceeding",functionCall:e=>{n(!0,e,void 0,`administrativeActProceeding/${t.proceedingNr}`)}}):(0,Tn.jsx)(Tn.Fragment,{children:"-"});var t}},{id:"doty",property:"document",size:160,getValue:e=>e.document&&null!==e.document?(0,Tn.jsx)(Dn,{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,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)(Dn,{linkName:t,tooltipText:"detailsearch.tooltip.open_building",functionCall:e=>{n(!0,e,"BUILDING",t)}}),r!==e.ehrCode.length-1?(0,Tn.jsx)("span",{children:", "}):""]}))):""},{id:"proceeding_state",property:"state",size:130,getValue:e=>e.state}];return(0,Tn.jsx)(Cn.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:On,expandableRow:!1,isFilter:!1}},data:t,handleEvent:()=>!0})},An=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[n,r]=(0,Sn.useState)(!1),[o,i]=(0,Sn.useState)(void 0),[a,s]=(0,Sn.useState)([]);(0,Sn.useEffect)((()=>{i(void 0),l()}),[e,t]);const l=async()=>{var n;if((null===(n=e.activeRole)||void 0===n?void 0:n.businessType)===Gt.TJA){r(!0);try{var o;const n=t?{institutionId:e.activeRole.businessId}:{userId:e.userId},r=await kt.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}},Pn=e=>{let{userInfo:t,linkGen:n}=e;const r=(0,kn.useIntl)(),[o,i]=(0,Sn.useState)(!1),{loading:a,error:s,proceedings:l}=An(t,o);return(0,Tn.jsxs)(Cn.Section,{collapsed:!1,title:"my_admin_proceedings.my_proceedings",showSettings:!0,children:[s&&(0,Tn.jsx)(Cn.MessageBlock,{dismissible:!1,theme:"danger",children:r.formatMessage({id:s})}),a&&(0,Tn.jsxs)(Cn.Row,{className:"mb-4 justify-content-center",children:[(0,Tn.jsx)("br",{}),(0,Tn.jsx)(Cn.Loader,{}),(0,Tn.jsx)("br",{})]}),!a&&!(null==l||!l.length)&&!s&&(0,Tn.jsx)(jn,{proceedings:l,linkGen:n}),(0,Tn.jsx)("div",{className:"d-flex justify-content-start my-2",children:(0,Tn.jsx)(Cn.Checkbox,{name:"checkbox",onChange:e=>i(e),text:r.formatMessage({id:"my_proceedings.view_all_institution_admin_proceedings"}),checked:o})})]})},Rn=e=>{var t;let{userInfo:n,linkGen:r}=e;const o=(0,kn.useIntl)(),i=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===Gt.TJA;return(0,Tn.jsxs)("div",{children:[(0,Tn.jsx)("h2",{children:o.formatMessage({id:"my_admin_proceedings.page_title"})}),i&&(0,Tn.jsx)("div",{className:"d-flex justify-content-end mt-2",children:(0,Tn.jsx)(Cn.Button,{withPlus:!0,type:"submit",onClick:()=>{r(!0,void 0,"","/administrativeActProceeding")},children:o.formatMessage({id:"my_admin_proceedings.new_proceeding"})})}),(0,Tn.jsx)(Mn,{userInfo:n}),i&&(0,Tn.jsx)(Pn,{userInfo:n,linkGen:r})]})};const Nn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Ln="object"==typeof global&&global&&global.Object===Object&&global;var Fn="object"==typeof self&&self&&self.Object===Object&&self;const Un=Ln||Fn||Function("return this")();const Bn=function(){return Un.Date.now()};var zn=/\s/;const Vn=function(e){for(var t=e.length;t--&&zn.test(e.charAt(t)););return t};var Kn=/^\s+/;const $n=function(e){return e?e.slice(0,Vn(e)+1).replace(Kn,""):e};const Hn=Un.Symbol;var Yn=Object.prototype,Wn=Yn.hasOwnProperty,Gn=Yn.toString,qn=Hn?Hn.toStringTag:void 0;const Jn=function(e){var t=Wn.call(e,qn),n=e[qn];try{e[qn]=void 0;var r=!0}catch(e){}var o=Gn.call(e);return r&&(t?e[qn]=n:delete e[qn]),o};var Xn=Object.prototype.toString;const Zn=function(e){return Xn.call(e)};var Qn=Hn?Hn.toStringTag:void 0;const er=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Qn&&Qn in Object(e)?Jn(e):Zn(e)};const tr=function(e){return null!=e&&"object"==typeof e};const nr=function(e){return"symbol"==typeof e||tr(e)&&"[object Symbol]"==er(e)};var rr=/^[-+]0x[0-9a-f]+$/i,or=/^0b[01]+$/i,ir=/^0o[0-7]+$/i,ar=parseInt;const sr=function(e){if("number"==typeof e)return e;if(nr(e))return NaN;if(Nn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Nn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$n(e);var n=or.test(e);return n||ir.test(e)?ar(e.slice(2),n?2:8):rr.test(e)?NaN:+e};var lr=Math.max,cr=Math.min;const ur=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=Bn();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?cr(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=Bn(),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=sr(t)||0,Nn(n)&&(u=!!n.leading,i=(d="maxWait"in n)?lr(sr(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(Bn())},v};const dr=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 pr=function(){this.__data__=[],this.size=0};const fr=function(e,t){return e===t||e!=e&&t!=t};const mr=function(e,t){for(var n=e.length;n--;)if(fr(e[n][0],t))return n;return-1};var hr=Array.prototype.splice;const gr=function(e){var t=this.__data__,n=mr(t,e);return!(n<0)&&(n==t.length-1?t.pop():hr.call(t,n,1),--this.size,!0)};const vr=function(e){var t=this.__data__,n=mr(t,e);return n<0?void 0:t[n][1]};const br=function(e){return mr(this.__data__,e)>-1};const yr=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function xr(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])}}xr.prototype.clear=pr,xr.prototype.delete=gr,xr.prototype.get=vr,xr.prototype.has=br,xr.prototype.set=yr;const wr=xr;const Sr=function(){this.__data__=new wr,this.size=0};const _r=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Er=function(e){return this.__data__.get(e)};const kr=function(e){return this.__data__.has(e)};const Cr=function(e){if(!Nn(e))return!1;var t=er(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Tr=Un["__core-js_shared__"];var Ir,Mr=(Ir=/[^.]+$/.exec(Tr&&Tr.keys&&Tr.keys.IE_PROTO||""))?"Symbol(src)_1."+Ir:"";const Or=function(e){return!!Mr&&Mr in e};var Dr=Function.prototype.toString;const jr=function(e){if(null!=e){try{return Dr.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ar=/^\[object .+?Constructor\]$/,Pr=Function.prototype,Rr=Object.prototype,Nr=Pr.toString,Lr=Rr.hasOwnProperty,Fr=RegExp("^"+Nr.call(Lr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ur=function(e){return!(!Nn(e)||Or(e))&&(Cr(e)?Fr:Ar).test(jr(e))};const Br=function(e,t){return null==e?void 0:e[t]};const zr=function(e,t){var n=Br(e,t);return Ur(n)?n:void 0};const Vr=zr(Un,"Map");const Kr=zr(Object,"create");const $r=function(){this.__data__=Kr?Kr(null):{},this.size=0};const Hr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Yr=Object.prototype.hasOwnProperty;const Wr=function(e){var t=this.__data__;if(Kr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Yr.call(t,e)?t[e]:void 0};var Gr=Object.prototype.hasOwnProperty;const qr=function(e){var t=this.__data__;return Kr?void 0!==t[e]:Gr.call(t,e)};const Jr=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Kr&&void 0===t?"__lodash_hash_undefined__":t,this};function Xr(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])}}Xr.prototype.clear=$r,Xr.prototype.delete=Hr,Xr.prototype.get=Wr,Xr.prototype.has=qr,Xr.prototype.set=Jr;const Zr=Xr;const Qr=function(){this.size=0,this.__data__={hash:new Zr,map:new(Vr||wr),string:new Zr}};const eo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const to=function(e,t){var n=e.__data__;return eo(t)?n["string"==typeof t?"string":"hash"]:n.map};const no=function(e){var t=to(this,e).delete(e);return this.size-=t?1:0,t};const ro=function(e){return to(this,e).get(e)};const oo=function(e){return to(this,e).has(e)};const io=function(e,t){var n=to(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ao(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])}}ao.prototype.clear=Qr,ao.prototype.delete=no,ao.prototype.get=ro,ao.prototype.has=oo,ao.prototype.set=io;const so=ao;const lo=function(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!Vr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new so(r)}return n.set(e,t),this.size=n.size,this};function co(e){var t=this.__data__=new wr(e);this.size=t.size}co.prototype.clear=Sr,co.prototype.delete=_r,co.prototype.get=Er,co.prototype.has=kr,co.prototype.set=lo;const uo=co;const po=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const fo=function(e){return this.__data__.has(e)};function mo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new so;++t<n;)this.add(e[t])}mo.prototype.add=mo.prototype.push=po,mo.prototype.has=fo;const ho=mo;const go=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 vo=function(e,t){return e.has(t)};const bo=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 ho: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(!go(t,(function(e,t){if(!vo(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 yo=Un.Uint8Array;const xo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const wo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var So=Hn?Hn.prototype:void 0,_o=So?So.valueOf:void 0;const Eo=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 yo(e),new yo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fr(+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=xo;case"[object Set]":var l=1&r;if(s||(s=wo),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=bo(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(_o)return _o.call(e)==_o.call(t)}return!1};const ko=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const Co=Array.isArray;const To=function(e,t,n){var r=t(e);return Co(e)?r:ko(r,n(e))};const Io=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 Mo=function(){return[]};var Oo=Object.prototype.propertyIsEnumerable,Do=Object.getOwnPropertySymbols;const jo=Do?function(e){return null==e?[]:(e=Object(e),Io(Do(e),(function(t){return Oo.call(e,t)})))}:Mo;const Ao=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const Po=function(e){return tr(e)&&"[object Arguments]"==er(e)};var Ro=Object.prototype,No=Ro.hasOwnProperty,Lo=Ro.propertyIsEnumerable;const Fo=Po(function(){return arguments}())?Po:function(e){return tr(e)&&No.call(e,"callee")&&!Lo.call(e,"callee")};const Uo=function(){return!1};var Bo="object"==typeof exports&&exports&&!exports.nodeType&&exports,zo=Bo&&"object"==typeof module&&module&&!module.nodeType&&module,Vo=zo&&zo.exports===Bo?Un.Buffer:void 0;const Ko=(Vo?Vo.isBuffer:void 0)||Uo;var $o=/^(?:0|[1-9]\d*)$/;const Ho=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&$o.test(e))&&e>-1&&e%1==0&&e<t};const Yo=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Wo={};Wo["[object Float32Array]"]=Wo["[object Float64Array]"]=Wo["[object Int8Array]"]=Wo["[object Int16Array]"]=Wo["[object Int32Array]"]=Wo["[object Uint8Array]"]=Wo["[object Uint8ClampedArray]"]=Wo["[object Uint16Array]"]=Wo["[object Uint32Array]"]=!0,Wo["[object Arguments]"]=Wo["[object Array]"]=Wo["[object ArrayBuffer]"]=Wo["[object Boolean]"]=Wo["[object DataView]"]=Wo["[object Date]"]=Wo["[object Error]"]=Wo["[object Function]"]=Wo["[object Map]"]=Wo["[object Number]"]=Wo["[object Object]"]=Wo["[object RegExp]"]=Wo["[object Set]"]=Wo["[object String]"]=Wo["[object WeakMap]"]=!1;const Go=function(e){return tr(e)&&Yo(e.length)&&!!Wo[er(e)]};const qo=function(e){return function(t){return e(t)}};var Jo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xo=Jo&&"object"==typeof module&&module&&!module.nodeType&&module,Zo=Xo&&Xo.exports===Jo&&Ln.process,Qo=function(){try{var e=Xo&&Xo.require&&Xo.require("util").types;return e||Zo&&Zo.binding&&Zo.binding("util")}catch(e){}}();var ei=Qo&&Qo.isTypedArray;const ti=ei?qo(ei):Go;var ni=Object.prototype.hasOwnProperty;const ri=function(e,t){var n=Co(e),r=!n&&Fo(e),o=!n&&!r&&Ko(e),i=!n&&!r&&!o&&ti(e),a=n||r||o||i,s=a?Ao(e.length,String):[],l=s.length;for(var c in e)!t&&!ni.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ho(c,l))||s.push(c);return s};var oi=Object.prototype;const ii=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||oi)};const ai=function(e,t){return function(n){return e(t(n))}};const si=ai(Object.keys,Object);var li=Object.prototype.hasOwnProperty;const ci=function(e){if(!ii(e))return si(e);var t=[];for(var n in Object(e))li.call(e,n)&&"constructor"!=n&&t.push(n);return t};const ui=function(e){return null!=e&&Yo(e.length)&&!Cr(e)};const di=function(e){return ui(e)?ri(e):ci(e)};const pi=function(e){return To(e,di,jo)};var fi=Object.prototype.hasOwnProperty;const mi=function(e,t,n,r,o,i){var a=1&n,s=pi(e),l=s.length;if(l!=pi(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:fi.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 hi=zr(Un,"DataView");const gi=zr(Un,"Promise");const vi=zr(Un,"Set");const bi=zr(Un,"WeakMap");var yi="[object Map]",xi="[object Promise]",wi="[object Set]",Si="[object WeakMap]",_i="[object DataView]",Ei=jr(hi),ki=jr(Vr),Ci=jr(gi),Ti=jr(vi),Ii=jr(bi),Mi=er;(hi&&Mi(new hi(new ArrayBuffer(1)))!=_i||Vr&&Mi(new Vr)!=yi||gi&&Mi(gi.resolve())!=xi||vi&&Mi(new vi)!=wi||bi&&Mi(new bi)!=Si)&&(Mi=function(e){var t=er(e),n="[object Object]"==t?e.constructor:void 0,r=n?jr(n):"";if(r)switch(r){case Ei:return _i;case ki:return yi;case Ci:return xi;case Ti:return wi;case Ii:return Si}return t});const Oi=Mi;var Di="[object Arguments]",ji="[object Array]",Ai="[object Object]",Pi=Object.prototype.hasOwnProperty;const Ri=function(e,t,n,r,o,i){var a=Co(e),s=Co(t),l=a?ji:Oi(e),c=s?ji:Oi(t),u=(l=l==Di?Ai:l)==Ai,d=(c=c==Di?Ai:c)==Ai,p=l==c;if(p&&Ko(e)){if(!Ko(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new uo),a||ti(e)?bo(e,t,n,r,o,i):Eo(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&Pi.call(e,"__wrapped__"),m=d&&Pi.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,g=m?t.value():t;return i||(i=new uo),o(h,g,n,r,i)}}return!!p&&(i||(i=new uo),mi(e,t,n,r,o,i))};const Ni=function e(t,n,r,o,i){return t===n||(null==t||null==n||!tr(t)&&!tr(n)?t!=t&&n!=n:Ri(t,n,r,o,e,i))};const Li=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 uo;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?Ni(u,c,3,r,d):p))return!1}}return!0};const Fi=function(e){return e==e&&!Nn(e)};const Ui=function(e){for(var t=di(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Fi(o)]}return t};const Bi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const zi=function(e){var t=Ui(e);return 1==t.length&&t[0][2]?Bi(t[0][0],t[0][1]):function(n){return n===e||Li(n,e,t)}};var Vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ki=/^\w*$/;const $i=function(e,t){if(Co(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!nr(e))||(Ki.test(e)||!Vi.test(e)||null!=t&&e in Object(t))};function Hi(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(Hi.Cache||so),n}Hi.Cache=so;const Yi=Hi;var Wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/\\(\\)?/g;const qi=function(e){var t=Yi(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(Wi,(function(e,n,r,o){t.push(r?o.replace(Gi,"$1"):n||e)})),t}));var Ji=Hn?Hn.prototype:void 0,Xi=Ji?Ji.toString:void 0;const Zi=function e(t){if("string"==typeof t)return t;if(Co(t))return dr(t,e)+"";if(nr(t))return Xi?Xi.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const Qi=function(e){return null==e?"":Zi(e)};const ea=function(e,t){return Co(e)?e:$i(e,t)?[e]:qi(Qi(e))};const ta=function(e){if("string"==typeof e||nr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const na=function(e,t){for(var n=0,r=(t=ea(t,e)).length;null!=e&&n<r;)e=e[ta(t[n++])];return n&&n==r?e:void 0};const ra=function(e,t,n){var r=null==e?void 0:na(e,t);return void 0===r?n:r};const oa=function(e,t){return null!=e&&t in Object(e)};const ia=function(e,t,n){for(var r=-1,o=(t=ea(t,e)).length,i=!1;++r<o;){var a=ta(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Yo(o)&&Ho(a,o)&&(Co(e)||Fo(e))};const aa=function(e,t){return null!=e&&ia(e,t,oa)};const sa=function(e,t){return $i(e)&&Fi(t)?Bi(ta(e),t):function(n){var r=ra(n,e);return void 0===r&&r===t?aa(n,e):Ni(t,r,3)}};const la=function(e){return e};const ca=function(e){return function(t){return null==t?void 0:t[e]}};const ua=function(e){return function(t){return na(t,e)}};const da=function(e){return $i(e)?ca(ta(e)):ua(e)};const pa=function(e){return"function"==typeof e?e:null==e?la:"object"==typeof e?Co(e)?sa(e[0],e[1]):zi(e):da(e)};const fa=function(){try{var e=zr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const ma=function(e,t,n){"__proto__"==t&&fa?fa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ha=Object.prototype.hasOwnProperty;const ga=function(e,t,n){var r=e[t];ha.call(e,t)&&fr(r,n)&&(void 0!==n||t in e)||ma(e,t,n)};const va=function(e,t,n,r){if(!Nn(e))return e;for(var o=-1,i=(t=ea(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=ta(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=Nn(u)?u:Ho(t[o+1])?[]:{})}ga(s,l,c),s=s[l]}return e};const ba=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=na(e,a);n(s,a)&&va(i,ea(a,e),s)}return i};const ya=ai(Object.getPrototypeOf,Object);const xa=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ko(t,jo(e)),e=ya(e);return t}:Mo;const wa=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Sa=Object.prototype.hasOwnProperty;const _a=function(e){if(!Nn(e))return wa(e);var t=ii(e),n=[];for(var r in e)("constructor"!=r||!t&&Sa.call(e,r))&&n.push(r);return n};const Ea=function(e){return ui(e)?ri(e,!0):_a(e)};const ka=function(e){return To(e,Ea,xa)};const Ca=function(e,t){if(null==e)return{};var n=dr(ka(e),(function(e){return[e]}));return t=pa(t),ba(e,n,(function(e,n){return t(e,n[0])}))},Ta=require("react-dom");var Ia=o(942);const Ma=require("dayjs");var Oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ja(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 Aa={exports:{}};Aa.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()&&!D(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)),O(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},O=function(e){p.x!==e.screenX||p.y!==e.screenY?(d=!1,p.x=e.screenX,p.y=e.screenY):d=!0},D=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 Pa=Da(Aa.exports);function Ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Na="object"==typeof global&&global&&global.Object===Object&&global,La="object"==typeof self&&self&&self.Object===Object&&self,Fa=Na||La||Function("return this")(),Ua=function(){return Fa.Date.now()},Ba=/\s/;var za=/^\s+/;function Va(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&Ba.test(e.charAt(t)););return t}(e)+1).replace(za,"")}var Ka=Fa.Symbol,$a=Object.prototype,Ha=$a.hasOwnProperty,Ya=$a.toString,Wa=Ka?Ka.toStringTag:void 0;var Ga=Object.prototype.toString;var qa=Ka?Ka.toStringTag:void 0;function Ja(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qa&&qa in Object(e)?function(e){var t=Ha.call(e,Wa),n=e[Wa];try{e[Wa]=void 0;var r=!0}catch{}var o=Ya.call(e);return r&&(t?e[Wa]=n:delete e[Wa]),o}(e):function(e){return Ga.call(e)}(e)}function Xa(e){return null!=e&&"object"==typeof e}function Za(e){return"symbol"==typeof e||Xa(e)&&"[object Symbol]"==Ja(e)}var Qa=/^[-+]0x[0-9a-f]+$/i,es=/^0b[01]+$/i,ts=/^0o[0-7]+$/i,ns=parseInt;function rs(e){if("number"==typeof e)return e;if(Za(e))return NaN;if(Ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Va(e);var n=es.test(e);return n||ts.test(e)?ns(e.slice(2),n?2:8):Qa.test(e)?NaN:+e}var os=Math.max,is=Math.min;function as(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=Ua();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?is(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=Ua(),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=rs(t)||0,Ra(n)&&(u=!!n.leading,i=(d="maxWait"in n)?os(rs(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(Ua())},v}const ss=["xs","sm","md","lg","xl","xxl"],ls=()=>{const[e,t]=(0,Sn.useState)(cs());return(0,Sn.useEffect)((()=>{const e=as((()=>{t(cs())}),20);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]),e},cs=()=>{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},us=()=>{const e=ls(),t=Sn.useMemo((()=>e?ss.slice(0,ss.indexOf(e)+1):[]),[e]);return{getCurrentBreakpointProps:Sn.useCallback(((e,n={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...t.map((t=>Ca("xs"===t?l:e[t],(e=>void 0!==e))))].filter(Boolean);return Object.assign(n,...c)}),[t])}},ds=["xs","sm"],ps=["md"],fs=["lg","xl","xxl"],ms=e=>{const t=ls(),n=null==e?void 0:e.reduce(((e,t)=>{switch(t){case"desktop":return[...e,...fs];case"tablet":return[...e,...ps];case"mobile":return[...e,...ds];default:return[...e,t]}}),[]);return!!t&&n.includes(t)},hs={"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"},gs=e=>e?hs[e]:"",vs=e=>{const{getCurrentBreakpointProps:t}=us(),{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=Ia(r,null==c?void 0:c.map((e=>`text-${e}`)),{[`text-${s}`]:s});return(0,Tn.jsx)(i,{className:u,...l,tabIndex:o,children:n})},bs=e=>{const{children:t,element:n="h1",...r}=e;return(0,Tn.jsx)(vs,{element:n,...r,children:t})};function ys(){return ys=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},ys.apply(null,arguments)}const xs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ys}},Symbol.toStringTag,{value:"Module"}));var ws={exports:{}};var Ss=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable;var ks,Cs,Ts,Is,Ms=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]))_s.call(n,a)&&(o[a]=n[a]);if(Ss){r=Ss(n);for(var s=0;s<r.length;s++)Es.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function Os(){if(Cs)return ks;Cs=1;return ks="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}ws.exports=function(){if(Is)return Ts;Is=1;var e=Os();function t(){}function n(){}return n.resetWarningCache=t,Ts=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},Ts}()();const Ds=Da(ws.exports);function js(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 As=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Ps="$$material";function Rs(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 Ns=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}(),Ls="-ms-",Fs="-moz-",Us="-webkit-",Bs="comm",zs="rule",Vs="decl",Ks="@keyframes",$s=Math.abs,Hs=String.fromCharCode,Ys=Object.assign;function Ws(e){return e.trim()}function Gs(e,t,n){return e.replace(t,n)}function qs(e,t){return e.indexOf(t)}function Js(e,t){return 0|e.charCodeAt(t)}function Xs(e,t,n){return e.slice(t,n)}function Zs(e){return e.length}function Qs(e){return e.length}function el(e,t){return t.push(e),e}var tl=1,nl=1,rl=0,ol=0,il=0,al="";function sl(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:tl,column:nl,length:a,return:""}}function ll(e,t){return Ys(sl("",null,null,"",null,null,0),e,{length:-e.length},t)}function cl(){return il=ol<rl?Js(al,ol++):0,nl++,10===il&&(nl=1,tl++),il}function ul(){return Js(al,ol)}function dl(){return ol}function pl(e,t){return Xs(al,e,t)}function fl(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 ml(e){return tl=nl=1,rl=Zs(al=e),ol=0,[]}function hl(e){return al="",e}function gl(e){return Ws(pl(ol-1,yl(91===e?e+2:40===e?e+1:e)))}function vl(e){for(;(il=ul())&&il<33;)cl();return fl(e)>2||fl(il)>3?"":" "}function bl(e,t){for(;--t&&cl()&&!(il<48||il>102||il>57&&il<65||il>70&&il<97););return pl(e,dl()+(t<6&&32==ul()&&32==cl()))}function yl(e){for(;cl();)switch(il){case e:return ol;case 34:case 39:34!==e&&39!==e&&yl(il);break;case 40:41===e&&yl(e);break;case 92:cl()}return ol}function xl(e,t){for(;cl()&&e+il!==57&&(e+il!==84||47!==ul()););return"/*"+pl(t,ol-1)+"*"+Hs(47===e?e:cl())}function wl(e){for(;!fl(ul());)cl();return pl(e,ol)}function Sl(e){return hl(_l("",null,null,null,[""],e=ml(e),0,[0],e))}function _l(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=cl()){case 40:if(108!=m&&58==Js(_,d-1)){-1!=qs(_+=Gs(gl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=gl(b);break;case 9:case 10:case 13:case 32:_+=vl(m);break;case 92:_+=bl(dl()-1,7);continue;case 47:switch(ul()){case 42:case 47:el(kl(xl(cl(),dl()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=Zs(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=Gs(_,/\f/g,"")),f>0&&Zs(_)-d&&el(f>32?Cl(_+";",r,n,d-1):Cl(Gs(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(el(S=El(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)_l(_,t,S,S,x,i,d,s,w);else switch(99===p&&110===Js(_,3)?100:p){case 100:case 108:case 109:case 115:_l(e,S,S,r&&el(El(e,S,S,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:_l(_,S,S,S,[""],w,0,s,w)}}c=u=f=0,h=v=1,y=_="",d=a;break;case 58:d=1+Zs(_),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(il=ol>0?Js(al,--ol):0,nl--,10===il&&(nl=1,tl--),il))continue;switch(_+=Hs(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Zs(_)-1)*v,v=1;break;case 64:45===ul()&&(_+=gl(cl())),p=ul(),u=d=Zs(y=_+=wl(dl())),b++;break;case 45:45===m&&2==Zs(_)&&(h=0)}}return i}function El(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Qs(p),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Xs(e,d+1,d=$s(h=a[m])),y=e;v<f;++v)(y=Ws(h>0?p[v]+" "+b:Gs(b,/&\f/g,p[v])))&&(l[g++]=y);return sl(e,t,n,0===o?zs:s,l,c,u)}function kl(e,t,n){return sl(e,t,n,Bs,Hs(il),Xs(e,2,-2),0)}function Cl(e,t,n,r){return sl(e,t,n,Vs,Xs(e,0,r),Xs(e,r+1,-1),r)}function Tl(e,t){for(var n="",r=Qs(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Il(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Vs:return e.return=e.return||e.value;case Bs:return"";case Ks:return e.return=e.value+"{"+Tl(e.children,r)+"}";case zs:e.value=e.props.join(",")}return Zs(n=Tl(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ml(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ol(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Dl=function(e,t,n){for(var r=0,o=0;r=o,o=ul(),38===r&&12===o&&(t[n]=1),!fl(o);)cl();return pl(e,ol)},jl=function(e,t){return hl(function(e,t){var n=-1,r=44;do{switch(fl(r)){case 0:38===r&&12===ul()&&(t[n]=1),e[n]+=Dl(ol-1,t,n);break;case 2:e[n]+=gl(r);break;case 4:if(44===r){e[++n]=58===ul()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Hs(r)}}while(r=cl());return e}(ml(e),t))},Al=new WeakMap,Pl=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)||Al.get(n))&&!r){Al.set(e,!0);for(var o=[],i=jl(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]}}},Rl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Nl(e,t){switch(function(e,t){return 45^Js(e,0)?(((t<<2^Js(e,0))<<2^Js(e,1))<<2^Js(e,2))<<2^Js(e,3):0}(e,t)){case 5103:return Us+"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 Us+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Us+e+Fs+e+Ls+e+e;case 6828:case 4268:return Us+e+Ls+e+e;case 6165:return Us+e+Ls+"flex-"+e+e;case 5187:return Us+e+Gs(e,/(\w+).+(:[^]+)/,Us+"box-$1$2"+Ls+"flex-$1$2")+e;case 5443:return Us+e+Ls+"flex-item-"+Gs(e,/flex-|-self/,"")+e;case 4675:return Us+e+Ls+"flex-line-pack"+Gs(e,/align-content|flex-|-self/,"")+e;case 5548:return Us+e+Ls+Gs(e,"shrink","negative")+e;case 5292:return Us+e+Ls+Gs(e,"basis","preferred-size")+e;case 6060:return Us+"box-"+Gs(e,"-grow","")+Us+e+Ls+Gs(e,"grow","positive")+e;case 4554:return Us+Gs(e,/([^-])(transform)/g,"$1"+Us+"$2")+e;case 6187:return Gs(Gs(Gs(e,/(zoom-|grab)/,Us+"$1"),/(image-set)/,Us+"$1"),e,"")+e;case 5495:case 3959:return Gs(e,/(image-set\([^]*)/,Us+"$1$`$1");case 4968:return Gs(Gs(e,/(.+:)(flex-)?(.*)/,Us+"box-pack:$3"+Ls+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Us+e+e;case 4095:case 3583:case 4068:case 2532:return Gs(e,/(.+)-inline(.+)/,Us+"$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(Zs(e)-1-t>6)switch(Js(e,t+1)){case 109:if(45!==Js(e,t+4))break;case 102:return Gs(e,/(.+:)(.+)-([^]+)/,"$1"+Us+"$2-$3$1"+Fs+(108==Js(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qs(e,"stretch")?Nl(Gs(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Js(e,t+1))break;case 6444:switch(Js(e,Zs(e)-3-(~qs(e,"!important")&&10))){case 107:return Gs(e,":",":"+Us)+e;case 101:return Gs(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Us+(45===Js(e,14)?"inline-":"")+"box$3$1"+Us+"$2$3$1"+Ls+"$2box$3")+e}break;case 5936:switch(Js(e,t+11)){case 114:return Us+e+Ls+Gs(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Us+e+Ls+Gs(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Us+e+Ls+Gs(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Us+e+Ls+e+e}return e}var Ll,Fl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Vs:e.return=Nl(e.value,e.length);break;case Ks:return Tl([ll(e,{value:Gs(e.value,"@","@"+Us)})],r);case zs: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 Tl([ll(e,{props:[Gs(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Tl([ll(e,{props:[Gs(t,/:(plac\w+)/,":"+Us+"input-$1")]}),ll(e,{props:[Gs(t,/:(plac\w+)/,":-moz-$1")]}),ll(e,{props:[Gs(t,/:(plac\w+)/,Ls+"input-$1")]})],r)}return""}))}}],Ul=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||Fl,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=[Pl,Rl],u=[Il,Ml((function(e){l.insert(e)}))],d=function(e){var t=Qs(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(c.concat(o,u));s=function(e,t,n,r){l=n,function(e){Tl(Sl(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ns({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},Bl={exports:{}},zl={};Bl.exports=function(){if(Ll)return zl;Ll=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 zl.AsyncMode=l,zl.ConcurrentMode=c,zl.ContextConsumer=s,zl.ContextProvider=a,zl.Element=t,zl.ForwardRef=u,zl.Fragment=r,zl.Lazy=m,zl.Memo=f,zl.Portal=n,zl.Profiler=i,zl.StrictMode=o,zl.Suspense=d,zl.isAsyncMode=function(e){return x(e)||y(e)===l},zl.isConcurrentMode=x,zl.isContextConsumer=function(e){return y(e)===s},zl.isContextProvider=function(e){return y(e)===a},zl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zl.isForwardRef=function(e){return y(e)===u},zl.isFragment=function(e){return y(e)===r},zl.isLazy=function(e){return y(e)===m},zl.isMemo=function(e){return y(e)===f},zl.isPortal=function(e){return y(e)===n},zl.isProfiler=function(e){return y(e)===i},zl.isStrictMode=function(e){return y(e)===o},zl.isSuspense=function(e){return y(e)===d},zl.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)},zl.typeOf=y,zl}();var Vl=Bl.exports,Kl={};Kl[Vl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kl[Vl.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function $l(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Hl=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Yl=function(e,t,n){Hl(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 Wl={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},Gl=/[A-Z]|^ms/g,ql=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jl=function(e){return 45===e.charCodeAt(1)},Xl=function(e){return null!=e&&"boolean"!=typeof e},Zl=Ol((function(e){return Jl(e)?e:e.replace(Gl,"-$&").toLowerCase()})),Ql=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ql,(function(e,t,n){return tc={name:t,styles:n,next:tc},t}))}return 1===Wl[e]||Jl(e)||"number"!=typeof t||0===t?t:t+"px"};function ec(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 tc={name:o.name,styles:o.styles,next:tc},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)tc={name:a.name,styles:a.styles,next:tc},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+=ec(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]+"}":Xl(s)&&(r+=Zl(i)+":"+Ql(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ec(e,t,a);switch(i){case"animation":case"animationName":r+=Zl(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Xl(a[c])&&(r+=Zl(i)+":"+Ql(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=tc,l=n(e);return tc=s,ec(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var tc,nc=/label:\s*([^\s;{]+)\s*(;|$)/g;function rc(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="";tc=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ec(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)if(o+=ec(n,t,e[a]),r){o+=i[a]}nc.lastIndex=0;for(var s,l="";null!==(s=nc.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:tc}}var oc=!!Sn.useInsertionEffect&&Sn.useInsertionEffect,ic=oc||function(e){return e()},ac=oc||Sn.useLayoutEffect,sc=Sn.createContext(typeof HTMLElement<"u"?Ul({key:"css"}):null),lc=sc.Provider,cc=function(e){return(0,Sn.forwardRef)((function(t,n){var r=(0,Sn.useContext)(sc);return e(t,r,n)}))},uc=Sn.createContext({}),dc={}.hasOwnProperty,pc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Hl(t,n,r),ic((function(){return Yl(t,n,r)})),null},mc=cc((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[pc],i=[r],a="";"string"==typeof e.className?a=$l(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=rc(i,void 0,Sn.useContext(uc));a+=t.key+"-"+s.name;var l={};for(var c in e)dc.call(e,c)&&"css"!==c&&c!==pc&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),Sn.createElement(Sn.Fragment,null,Sn.createElement(fc,{cache:t,serialized:s,isStringTag:"string"==typeof o}),Sn.createElement(o,l))})),hc=mc,gc=function(e,t){var n=arguments;if(null==t||!dc.call(t,"css"))return Sn.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=hc,o[1]=function(e,t){var n={};for(var r in t)dc.call(t,r)&&(n[r]=t[r]);return n[pc]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return Sn.createElement.apply(null,o)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(gc||(gc={}));var vc=cc((function(e,t){var n=rc([e.styles],void 0,Sn.useContext(uc)),r=Sn.useRef();return ac((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]),ac((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Yl(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 bc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rc(t)}function yc(){var e=bc.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 xc=/^((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)-.*))$/,wc=Ol((function(e){return xc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Sc=wc,_c=function(e){return"theme"!==e},Ec=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Sc:_c},kc=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},Cc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Hl(t,n,r),ic((function(){return Yl(t,n,r)})),null},Tc=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=kc(t,n,i),l=s||Ec(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=cc((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=Sn.useContext(uc)}"string"==typeof e.className?i=$l(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=rc(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?Ec(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),Sn.createElement(Sn.Fragment,null,Sn.createElement(Cc,{cache:t,serialized:m,isStringTag:"string"==typeof r}),Sn.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,ys({},n,r,{shouldForwardProp:kc(h,r,!0)})).apply(void 0,d)},h}}.bind(null);let Ic;["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){Tc[e]=Tc(e)})),"object"==typeof document&&(Ic=Ul({key:"css",prepend:!0}));const Mc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e;return(0,Tn.jsx)(vc,{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&&Ic?(0,Tn.jsx)(lc,{value:Ic,children:n}):n},ThemeContext:uc,css:bc,default:function(e,t){return Tc(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:yc},Symbol.toStringTag,{value:"Module"}));function Oc(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 Dc(e){if(Sn.isValidElement(e)||!Oc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Dc(e[n])})),t}function jc(e,t,n={clone:!0}){const r=n.clone?ys({},e):e;return Oc(e)&&Oc(t)&&Object.keys(t).forEach((o=>{Sn.isValidElement(t[o])?r[o]=t[o]:Oc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Oc(e[o])?r[o]=jc(e[o],t[o],n):n.clone?r[o]=Oc(t[o])?Dc(t[o]):t[o]:r[o]=t[o]})),r}const Ac=Object.freeze(Object.defineProperty({__proto__:null,default:jc,isPlainObject:Oc},Symbol.toStringTag,{value:"Module"})),Pc=["values","unit","step"];function Rc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Rs(e,Pc),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)=>ys({},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 ys({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 Nc={borderRadius:4};function Lc(e,t){return t?jc(e,t,{clone:!1}):e}const Fc={xs:0,sm:600,md:900,lg:1200,xl:1536},Uc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fc[e]}px)`};function Bc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Uc;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Uc;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Fc).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function zc({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 Vc(e){if("string"!=typeof e)throw new Error(js(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Vc},Symbol.toStringTag,{value:"Module"}));function $c(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 Hc(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:$c(e,n)||r,t&&(o=t(o,r,e)),o}function Yc(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=$c(e.theme,r)||{};return Bc(e,i,(e=>{let r=Hc(a,o,e);return e===r&&"string"==typeof e&&(r=Hc(a,o,`${t}${"default"===e?"":Vc(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Wc={m:"margin",p:"padding"},Gc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jc=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qc[e])return[e];e=qc[e]}const[t,n]=e.split(""),r=Wc[t],o=Gc[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Qc(e,t,n,r){var o;const i=null!=(o=$c(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 eu(e){return Qc(e,"spacing",8)}function tu(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 nu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=tu(t,n),e)),{})}(Jc(n),r);return Bc(e,e[n],o)}function ru(e,t){const n=eu(e.theme);return Object.keys(e).map((r=>nu(e,t,r,n))).reduce(Lc,{})}function ou(e){return ru(e,Xc)}function iu(e){return ru(e,Zc)}function au(...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]?Lc(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function su(e){return"number"!=typeof e?e:`${e}px solid`}function lu(e,t){return Yc({prop:e,themeKey:"borders",transform:t})}ou.propTypes={},ou.filterProps=Xc,iu.propTypes={},iu.filterProps=Zc;const cu=lu("border",su),uu=lu("borderTop",su),du=lu("borderRight",su),pu=lu("borderBottom",su),fu=lu("borderLeft",su),mu=lu("borderColor"),hu=lu("borderTopColor"),gu=lu("borderRightColor"),vu=lu("borderBottomColor"),bu=lu("borderLeftColor"),yu=lu("outline",su),xu=lu("outlineColor"),wu=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Qc(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:tu(t,e)});return Bc(e,e.borderRadius,n)}return null};wu.propTypes={},wu.filterProps=["borderRadius"],au(cu,uu,du,pu,fu,mu,hu,gu,vu,bu,wu,yu,xu);const Su=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Qc(e.theme,"spacing",8),n=e=>({gap:tu(t,e)});return Bc(e,e.gap,n)}return null};Su.propTypes={},Su.filterProps=["gap"];const _u=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Qc(e.theme,"spacing",8),n=e=>({columnGap:tu(t,e)});return Bc(e,e.columnGap,n)}return null};_u.propTypes={},_u.filterProps=["columnGap"];const Eu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Qc(e.theme,"spacing",8),n=e=>({rowGap:tu(t,e)});return Bc(e,e.rowGap,n)}return null};Eu.propTypes={},Eu.filterProps=["rowGap"];function ku(e,t){return"grey"===t?t:e}au(Su,_u,Eu,Yc({prop:"gridColumn"}),Yc({prop:"gridRow"}),Yc({prop:"gridAutoFlow"}),Yc({prop:"gridAutoColumns"}),Yc({prop:"gridAutoRows"}),Yc({prop:"gridTemplateColumns"}),Yc({prop:"gridTemplateRows"}),Yc({prop:"gridTemplateAreas"}),Yc({prop:"gridArea"}));function Cu(e){return e<=1&&0!==e?100*e+"%":e}au(Yc({prop:"color",themeKey:"palette",transform:ku}),Yc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ku}),Yc({prop:"backgroundColor",themeKey:"palette",transform:ku}));const Tu=Yc({prop:"width",transform:Cu}),Iu=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])||Fc[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:Cu(t)}};return Bc(e,e.maxWidth,t)}return null};Iu.filterProps=["maxWidth"];const Mu=Yc({prop:"minWidth",transform:Cu}),Ou=Yc({prop:"height",transform:Cu}),Du=Yc({prop:"maxHeight",transform:Cu}),ju=Yc({prop:"minHeight",transform:Cu});Yc({prop:"size",cssProperty:"width",transform:Cu}),Yc({prop:"size",cssProperty:"height",transform:Cu});au(Tu,Iu,Mu,Ou,Du,ju,Yc({prop:"boxSizing"}));const Au={border:{themeKey:"borders",transform:su},borderTop:{themeKey:"borders",transform:su},borderRight:{themeKey:"borders",transform:su},borderBottom:{themeKey:"borders",transform:su},borderLeft:{themeKey:"borders",transform:su},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:su},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wu},color:{themeKey:"palette",transform:ku},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ku},backgroundColor:{themeKey:"palette",transform:ku},p:{style:iu},pt:{style:iu},pr:{style:iu},pb:{style:iu},pl:{style:iu},px:{style:iu},py:{style:iu},padding:{style:iu},paddingTop:{style:iu},paddingRight:{style:iu},paddingBottom:{style:iu},paddingLeft:{style:iu},paddingX:{style:iu},paddingY:{style:iu},paddingInline:{style:iu},paddingInlineStart:{style:iu},paddingInlineEnd:{style:iu},paddingBlock:{style:iu},paddingBlockStart:{style:iu},paddingBlockEnd:{style:iu},m:{style:ou},mt:{style:ou},mr:{style:ou},mb:{style:ou},ml:{style:ou},mx:{style:ou},my:{style:ou},margin:{style:ou},marginTop:{style:ou},marginRight:{style:ou},marginBottom:{style:ou},marginLeft:{style:ou},marginX:{style:ou},marginY:{style:ou},marginInline:{style:ou},marginInlineStart:{style:ou},marginInlineEnd:{style:ou},marginBlock:{style:ou},marginBlockStart:{style:ou},marginBlockEnd:{style:ou},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:Su},rowGap:{style:Eu},columnGap:{style:_u},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cu},maxWidth:{style:Iu},minWidth:{transform:Cu},height:{transform:Cu},maxHeight:{transform:Cu},minHeight:{transform:Cu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Pu(){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=$c(n,s)||{};return c?c(o):Bc(o,t,(t=>{let n=Hc(u,l,t);return t===n&&"string"==typeof t&&(n=Hc(u,l,`${e}${"default"===t?"":Vc(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:Au;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=Lc(l,e(n,o,i,a));else{const e=Bc({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=Lc(l,e):l[n]=t({sx:o,theme:i})}else l=Lc(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 Ru=Pu();function Nu(e,t){const n=this;return n.vars&&"function"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}Ru.filterProps=["sx"];const Lu=["breakpoints","palette","spacing","shape"];function Fu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Rs(e,Lu),s=Rc(n),l=function(e=8){if(e.mui)return e;const t=eu({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=jc({breakpoints:s,direction:"ltr",components:{},palette:ys({mode:"light"},r),spacing:l,shape:ys({},Nc,i)},a);return c.applyStyles=Nu,c=t.reduce(((e,t)=>jc(e,t)),c),c.unstable_sxConfig=ys({},Au,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ru({sx:e,theme:this})},c}const Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Fu,private_createBreakpoints:Rc,unstable_applyStyles:Nu},Symbol.toStringTag,{value:"Module"}));function Bu(e=null){const t=Sn.useContext(uc);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const zu=Fu();function Vu(e=zu){return Bu(e)}const Ku=["sx"];function $u(e){const{sx:t}=e,n=Rs(e,Ku),{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:Au;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 Oc(n)?ys({},r,n):r}:ys({},r,t),ys({},o,{sx:i})}const Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ru,extendSxProp:$u,unstable_createStyleFunctionSx:Pu,unstable_defaultSxConfig:Au},Symbol.toStringTag,{value:"Module"})),Yu=e=>e,Wu=(()=>{let e=Yu;return{configure(t){e=t},generate:t=>e(t),reset(){e=Yu}}})();function Gu(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=Gu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qu(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gu(e))&&(r&&(r+=" "),r+=t);return r}const Ju={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 Xu(e,t,n="Mui"){const r=Ju[t];return r?`${n}-${r}`:`${Wu.generate(e)}-${t}`}function Zu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Xu(e,t,n)})),r}var Qu,ed={exports:{}},td={};ed.exports=function(){if(Qu)return td;Qu=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 td.ContextConsumer=i,td.ContextProvider=a,td.Element=e,td.ForwardRef=s,td.Fragment=n,td.Lazy=d,td.Memo=u,td.Portal=t,td.Profiler=o,td.StrictMode=r,td.Suspense=l,td.SuspenseList=c,td.isContextConsumer=function(e){return m(e)===i},td.isContextProvider=function(e){return m(e)===a},td.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},td.isForwardRef=function(e){return m(e)===s},td.isFragment=function(e){return m(e)===n},td.isLazy=function(e){return m(e)===d},td.isMemo=function(e){return m(e)===u},td.isPortal=function(e){return m(e)===t},td.isProfiler=function(e){return m(e)===o},td.isStrictMode=function(e){return m(e)===r},td.isSuspense=function(e){return m(e)===l},td.isSuspenseList=function(e){return m(e)===c},td.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)},td.typeOf=m,td}();var nd=ed.exports;const rd=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function od(e){const t=`${e}`.match(rd);return t&&t[1]||""}function id(e,t=""){return e.displayName||e.name||od(e)||t}function ad(e,t,n){const r=id(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const sd=Object.freeze(Object.defineProperty({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return id(e,"Component");if("object"==typeof e)switch(e.$$typeof){case nd.ForwardRef:return ad(e,e.render,"ForwardRef");case nd.Memo:return ad(e,e.type,"memo");default:return}}},getFunctionName:od},Symbol.toStringTag,{value:"Module"}));function ld(e,t){const n=ys({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ys({},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]=ys({},i),Object.keys(o).forEach((e=>{n[r][e]=ld(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function cd(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?ld(t.components[n].defaultProps,r):r}const ud=typeof window<"u"?Sn.useLayoutEffect:Sn.useEffect;function dd(e,t,n,r,o){const[i,a]=Sn.useState((()=>o&&n?n(e).matches:r?r(e).matches:t));return ud((()=>{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 pd=Sn.useSyncExternalStore;function fd(e,t,n,r,o){const i=Sn.useCallback((()=>t),[t]),a=Sn.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]=Sn.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,n,e]);return pd(l,s,a)}function md(e,t={}){const n=Bu(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=cd({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==pd?fd:dd)(l,o,i,a,s)}function hd(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const gd=Object.freeze(Object.defineProperty({__proto__:null,default:hd},Symbol.toStringTag,{value:"Module"}));function vd(e){if(e.type)return e;if("#"===e.charAt(0))return vd(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(js(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(js(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function bd(e,t){return e=vd(e),t=function(e,t=0,n=1){return hd(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)}(Ds.element,()=>null).isRequired=(Ds.element.isRequired,()=>null);Ds.elementType;Ds.oneOfType([Ds.func,Ds.object]);function yd(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function xd(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function wd(e){return e&&e.ownerDocument||document}function Sd(e){return wd(e).defaultView||window}function _d(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ed=0;const kd=Sn.useId;function Cd(e){if(void 0!==kd){const t=kd();return e??t}return function(e){const[t,n]=Sn.useState(e),r=e||t;return Sn.useEffect((()=>{null==t&&(Ed+=1,n(`mui-${Ed}`))}),[t]),r}(e)}function Td({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Sn.useRef(void 0!==e),[i,a]=Sn.useState(t);return[o?e:i,Sn.useCallback((e=>{o||a(e)}),[])]}function Id(e){const t=Sn.useRef(e);return ud((()=>{t.current=e})),Sn.useRef(((...e)=>(0,t.current)(...e))).current}function Md(...e){return Sn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{_d(e,t)}))}),e)}const Od={};const Dd=[];class jd{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new jd}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Ad(){const e=function(e,t){const n=Sn.useRef(Od);return n.current===Od&&(n.current=e(t)),n}(jd.create).current;return function(e){Sn.useEffect(e,Dd)}(e.disposeEffect),e}let Pd=!0,Rd=!1;const Nd=new jd,Ld={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 Fd(e){e.metaKey||e.altKey||e.ctrlKey||(Pd=!0)}function Ud(){Pd=!1}function Bd(){"hidden"===this.visibilityState&&Rd&&(Pd=!0)}function zd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Pd||function(e){const{type:t,tagName:n}=e;return!!("INPUT"===n&&Ld[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||e.isContentEditable)}(t)}function Vd(){const e=Sn.useCallback((e=>{null!=e&&function(e){e.addEventListener("keydown",Fd,!0),e.addEventListener("mousedown",Ud,!0),e.addEventListener("pointerdown",Ud,!0),e.addEventListener("touchstart",Ud,!0),e.addEventListener("visibilitychange",Bd,!0)}(e.ownerDocument)}),[]),t=Sn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!zd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rd=!0,Nd.start(100,(()=>{Rd=!1})),t.current=!1,!0)},ref:e}}let Kd;function $d(){if(Kd)return Kd;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),Kd="reverse",e.scrollLeft>0?Kd="default":(e.scrollLeft=1,0===e.scrollLeft&&(Kd="negative")),document.body.removeChild(e),Kd}function Hd(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch($d()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}Number.isInteger;function Yd(){return null}Yd.isRequired=Yd;function Wd(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 Gd(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 qd(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 Jd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Rs(e,Jd),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=qu(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=ys({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=ys({},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=Gd(ys({},o,r)),s=qd(r),l=qd(o),c=t(a),u=qu(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=ys({},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=ys({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(ys({},a,{externalSlotProps:s}));return function(e,t,n){return void 0===e||function(e){return"string"==typeof e}(e)?t:ys({},t,{ownerState:ys({},t.ownerState,n)})}(n,ys({},l,{ref:Md(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function Zd(e){var t;return parseInt(Sn.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Qd=Sn.createContext(),ep=()=>Sn.useContext(Qd)??!1,tp=Sn.createContext(void 0);function np({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?ld(o.defaultProps,r):o.styleOverrides||o.variants?r:ld(o,r)}({props:e,name:t,theme:{components:Sn.useContext(tp)}})}function rp(e){return(rp="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})(e)}function op(e){var t=function(e,t){if("object"!=rp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=rp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rp(t)?t:t+""}function ip(e,t){return ys({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ap={},sp={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(sp);var lp=sp.exports;const cp=ja(As),up=ja(gd);var dp=lp;Object.defineProperty(ap,"__esModule",{value:!0});var pp=ap.alpha=kp;ap.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=xp(e),a=xp(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Sp({type:"rgb",values:s})},ap.colorChannel=void 0;var fp=ap.darken=Cp;ap.decomposeColor=xp,ap.emphasize=Ip;var mp=ap.getContrastRatio=function(e,t){const n=Ep(e),r=Ep(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};ap.getLuminance=Ep,ap.hexToRgb=yp,ap.hslToRgb=_p;var hp=ap.lighten=Tp;ap.private_safeAlpha=function(e,t,n){try{return kp(e,t)}catch{return e}},ap.private_safeColorChannel=void 0,ap.private_safeDarken=function(e,t,n){try{return Cp(e,t)}catch{return e}},ap.private_safeEmphasize=function(e,t,n){try{return Ip(e,t)}catch{return e}},ap.private_safeLighten=function(e,t,n){try{return Tp(e,t)}catch{return e}},ap.recomposeColor=Sp,ap.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=xp(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 gp=dp(cp),vp=dp(up);function bp(e,t=0,n=1){return(0,vp.default)(e,t,n)}function yp(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 xp(e){if(e.type)return e;if("#"===e.charAt(0))return xp(yp(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,gp.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,gp.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const wp=e=>{const t=xp(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};ap.colorChannel=wp;function Sp(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 _p(e){e=xp(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])),Sp({type:s,values:l})}function Ep(e){let t="hsl"===(e=xp(e)).type||"hsla"===e.type?xp(_p(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 kp(e,t){return e=xp(e),t=bp(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Sp(e)}function Cp(e,t){if(e=xp(e),t=bp(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 Sp(e)}function Tp(e,t){if(e=xp(e),t=bp(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 Sp(e)}function Ip(e,t=.15){return Ep(e)>.5?Cp(e,t):Tp(e,t)}ap.private_safeColorChannel=(e,t)=>{try{return wp(e)}catch{return e}};const Mp={black:"#000",white:"#fff"},Op={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"},Dp="#f3e5f5",jp="#ce93d8",Ap="#ba68c8",Pp="#ab47bc",Rp="#9c27b0",Np="#7b1fa2",Lp="#e57373",Fp="#ef5350",Up="#f44336",Bp="#d32f2f",zp="#c62828",Vp="#ffb74d",Kp="#ffa726",$p="#ff9800",Hp="#f57c00",Yp="#e65100",Wp="#e3f2fd",Gp="#90caf9",qp="#42a5f5",Jp="#1976d2",Xp="#1565c0",Zp="#4fc3f7",Qp="#29b6f6",ef="#03a9f4",tf="#0288d1",nf="#01579b",rf="#81c784",of="#66bb6a",af="#4caf50",sf="#388e3c",lf="#2e7d32",cf="#1b5e20",uf=["mode","contrastThreshold","tonalOffset"],df={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:Mp.white,default:Mp.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}},pf={text:{primary:Mp.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:Mp.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 ff(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=hp(e.main,o):"dark"===t&&(e.dark=fp(e.main,i)))}function mf(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rs(e,uf),i=e.primary||function(e="light"){return"dark"===e?{main:Gp,light:Wp,dark:qp}:{main:Jp,light:qp,dark:Xp}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:jp,light:Dp,dark:Pp}:{main:Rp,light:Ap,dark:Np}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Up,light:Lp,dark:Bp}:{main:Bp,light:Fp,dark:zp}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Qp,light:Zp,dark:tf}:{main:tf,light:ef,dark:nf}}(t),c=e.success||function(e="light"){return"dark"===e?{main:of,light:rf,dark:sf}:{main:lf,light:af,dark:cf}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Kp,light:Vp,dark:Hp}:{main:"#ed6c02",light:$p,dark:Yp}}(t);function d(e){return mp(e,pf.text.primary)>=n?pf.text.primary:df.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ys({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(js(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(js(12,t?` (${t})`:"",JSON.stringify(e.main)));return ff(e,"light",o,r),ff(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:pf,light:df};return jc(ys({common:ys({},Mp),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:Op,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const hf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function gf(e){return Math.round(1e5*e)/1e5}const vf={textTransform:"uppercase"},bf='"Roboto", "Helvetica", "Arial", sans-serif';function yf(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=bf,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Rs(n,hf),f=o/14,m=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>ys({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===bf?{letterSpacing:`${gf(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,vf),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,vf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jc(ys({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function xf(...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 wf=["none",xf(0,2,1,-1,0,1,1,0,0,1,3,0),xf(0,3,1,-2,0,2,2,0,0,1,5,0),xf(0,3,3,-2,0,3,4,0,0,1,8,0),xf(0,2,4,-1,0,4,5,0,0,1,10,0),xf(0,3,5,-1,0,5,8,0,0,1,14,0),xf(0,3,5,-1,0,6,10,0,0,1,18,0),xf(0,4,5,-2,0,7,10,1,0,2,16,1),xf(0,5,5,-3,0,8,10,1,0,3,14,2),xf(0,5,6,-3,0,9,12,1,0,3,16,2),xf(0,6,6,-3,0,10,14,1,0,4,18,3),xf(0,6,7,-4,0,11,15,1,0,4,20,3),xf(0,7,8,-4,0,12,17,2,0,5,22,4),xf(0,7,8,-4,0,13,19,2,0,5,24,4),xf(0,7,9,-4,0,14,21,2,0,5,26,4),xf(0,8,9,-5,0,15,22,2,0,6,28,5),xf(0,8,10,-5,0,16,24,2,0,6,30,5),xf(0,8,11,-5,0,17,26,2,0,6,32,5),xf(0,9,11,-5,0,18,28,2,0,7,34,6),xf(0,9,12,-6,0,19,29,2,0,7,36,6),xf(0,10,13,-6,0,20,31,3,0,8,38,7),xf(0,10,13,-6,0,21,33,3,0,8,40,7),xf(0,10,14,-6,0,22,35,3,0,8,42,7),xf(0,11,14,-7,0,23,36,3,0,9,44,8),xf(0,11,15,-7,0,24,38,3,0,9,46,8)],Sf=["duration","easing","delay"],_f={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)"},Ef={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kf(e){return`${Math.round(e)}ms`}function Cf(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Tf(e){const t=ys({},_f,e.easing),n=ys({},Ef,e.duration);return ys({getAutoHeightDuration:Cf,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;Rs(r,Sf);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:kf(o)} ${i} ${"string"==typeof a?a:kf(a)}`)).join(",")}},e,{easing:t,duration:n})}const If={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Mf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Of=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Rs(e,Mf);if(e.vars)throw new Error(js(18));const s=mf(r),l=Fu(e);let c=jc(l,{mixins:ip(l.breakpoints,n),palette:s,shadows:wf.slice(),typography:yf(s,i),transitions:Tf(o),zIndex:ys({},If)});return c=jc(c,a),c=t.reduce(((e,t)=>jc(e,t)),c),c.unstable_sxConfig=ys({},Au,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ru({sx:e,theme:this})},c}();function Df(){const e=Vu(Of);return e[Ps]||e}function jf({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=Vu(n);return o=o[r]||o,cd({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Of,themeId:Ps})}var Af={};const Pf=ja(xs);var Rf,Nf={exports:{}};const Lf=ja(Mc),Ff=ja(Ac),Uf=ja(Kc),Bf=ja(sd),zf=ja(Uu),Vf=ja(Hu);var Kf=lp;Object.defineProperty(Af,"__esModule",{value:!0});var $f=Af.default=function(e={}){const{themeId:t,defaultTheme:n=nm,rootShouldForwardProp:r=tm,slotShouldForwardProp:o=tm}=e,i=e=>(0,Jf.default)((0,Hf.default)({},e,{theme:om((0,Hf.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Wf.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=im(rm(l))}=a,p=(0,Yf.default)(a,Qf),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=tm;"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,Wf.default)(e,(0,Hf.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Gf.isPlainObject)(e)?r=>am(e,(0,Hf.default)({},r,{theme:om({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=om((0,Hf.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]=am(n,(0,Hf.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=om((0,Hf.default)({},e,{defaultTheme:n,themeId:t}));return am({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,Hf.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}};Af.shouldForwardProp=tm,Af.systemDefaultTheme=void 0;var Hf=Kf(Pf),Yf=Kf((Rf||(Rf=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}(Nf)),Nf.exports)),Wf=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=em(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}(Lf),Gf=Ff,qf=(Kf(Uf),Kf(Bf),Kf(zf)),Jf=Kf(Vf);const Xf=["ownerState"],Zf=["variants"],Qf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function em(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(em=function(e){return e?n:t})(e)}function tm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nm=Af.systemDefaultTheme=(0,qf.default)(),rm=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function om({defaultTheme:e,theme:t,themeId:n}){return function(e){return 0===Object.keys(e).length}(t)?e:t[n]||t}function im(e){return e?(t,n)=>n[e]:null}function am(e,t){let{ownerState:n}=t,r=(0,Yf.default)(t,Xf);const o="function"==typeof e?e((0,Hf.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>am(e,(0,Hf.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Yf.default)(o,Zf);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Hf.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,Hf.default)({ownerState:n},r,n)):e.style))})),t}return o}const sm=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,lm=$f({themeId:Ps,defaultTheme:Of,rootShouldForwardProp:sm}),cm=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},um={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"},dm=um;(e=>{ys({},e)})(um);const pm=Sn.createContext(null);function fm(e){const t=jf({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:o,dateLibInstance:i,locale:a,adapterLocale:s,localeText:l}=t,c=Sn.useMemo((()=>new r({locale:s??a,formats:o,instance:i})),[r,a,s,o,i]),u=Sn.useMemo((()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")})),[c]),d=Sn.useMemo((()=>({utils:c,defaultDates:u,localeText:ys({},dm,l??{})})),[u,c,l]);return(0,Tn.jsx)(pm.Provider,{value:d,children:n})}const mm={icon:"icon-8081be27","icon--block":"icon--block-4aa6379d","icon--inline":"icon--inline-5d045b85"},hm=(0,Sn.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=Ia("notranslate","material-symbols",mm.icon,mm[`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,Tn.jsx)("span",{"data-name":"icon",role:"img","aria-hidden":!i,...u,className:d,style:p,ref:t,"aria-label":i,children:r})}));hm.displayName="Icon";const gm={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"},vm=(0,Sn.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?Ia(gm["btn--no-style"],r,{[gm["btn--full-width"]]:g}):Ia(gm.btn,gm[`btn--${o}`],gm[`btn--${i}`],r,{[gm[`btn--${a}`]]:a},{[gm["btn--underline"]]:u},{[gm["btn--is-hovered"]]:d},{[gm["btn--is-active"]]:p},{[gm["btn--is-loading"]]:f},{[gm["btn--icon-only"]]:s},{[gm["btn--icon"]]:w},{[gm["btn--full-width"]]:g}),_=(e,t)=>{const n={size:16,className:Ia(gm.btn__icon,gm[`btn__icon--${e}`],{[gm.btn__spinner]:f})},r="string"==typeof t?{...n,name:t}:{...n,...t,className:Ia(n.className,null==t?void 0:t.className)};return f?(0,Tn.jsx)(s0,{className:r.className}):(0,Tn.jsx)(hm,{...r})};return(0,Tn.jsx)(CQ,{visibility:"hide",children:(0,Tn.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,Tn.jsxs)("span",{className:gm.btn__inner,children:[s&&_("centre",s),l&&_("left",l),(0,Tn.jsx)("span",{className:gm.btn__text,children:e}),f&&!w&&(0,Tn.jsx)(s0,{position:"absolute",className:gm.btn__spinner}),c&&_("right",c)]})})})}));vm.displayName="ButtonContent";const bm=vm,ym=(0,Sn.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,Tn.jsx)(bm,{"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})}));ym.displayName="Button";const xm=ym;function wm(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 Sm(e,t,n){0===t&&!n&&null!=e&&e.style&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}const _m={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 Em(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 km=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],Cm=Sn.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);km.forEach((e=>{delete v[e]}));const b=(0,Sn.useRef)(p),y=(0,Sn.useRef)(null),x=(0,Sn.useRef)(),w=(0,Sn.useRef)(),S=(0,Sn.useRef)(Object.assign(Object.assign({},_m),r)),_=(0,Sn.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"):wm(C)&&(C="0%"===p?0:p,T="hidden");const[I,M]=(0,Sn.useState)(C),[O,D]=(0,Sn.useState)(T),[j,A]=(0,Sn.useState)(!1),[P,R]=(0,Sn.useState)(Em(S.current,p));(0,Sn.useEffect)((()=>{Sm(y.current,I,c)}),[]),(0,Sn.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):wm(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=Em(S.current,r);M(n),D("hidden"),A(!a),R(s),clearTimeout(w.current),clearTimeout(x.current),a?(o=!0,w.current=setTimeout((()=>{M(r),D(i),A(o),null==m||m(r)}),50),x.current=setTimeout((()=>{A(!1),R(l),Sm(y.current,r,c),null==f||f(r)}),t)):(null==m||m(n),w.current=setTimeout((()=>{M(r),D(i),A(!1),R(l),"auto"!==p&&Sm(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:O||(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 Sn.createElement("div",Object.assign({},v,{"aria-hidden":F,className:`${P} ${a}`,style:N,ref:t}),Sn.createElement("div",{className:s,style:L,ref:e=>{y.current=e,g&&(g.current=e)}},i))})),Tm={collapse__title:"collapse__title-8b98d783",collapse__icon:"collapse__icon-6cfc1cff","collapse--is-open":"collapse--is-open-67cf3662",collapse__content:"collapse__content-c7ea2935"},Im=e=>{const{getLabel:t}=i0(),{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]=Sn.useState(u),g=jQ(),v=g||(void 0!==d?d:m),b=Ia(Tm.collapse,o,{[Tm["collapse--is-open"]]:v}),y=()=>{h((e=>!e)),null==p||p(!v)},x=(0,Tn.jsx)("div",{className:Tm.collapse__content,children:r});return(0,Tn.jsxs)("div",{"data-name":"collapse",...f,className:b,children:[(0,Tn.jsx)("button",{type:"button","data-name":"collapse-trigger",className:Tm.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,Tn.jsxs)(d0,{justifyContent:"between",alignItems:"center",wrap:"nowrap",...c,element:"span",children:[l&&(0,Tn.jsx)(p0,{children:l}),(0,Tn.jsx)(p0,{width:"auto",children:(0,Tn.jsxs)(d0,{element:"span",alignItems:"center",gutter:1,children:[(0,Tn.jsx)(CQ,{visibility:"hide",children:(0,Tn.jsx)(p0,{width:"auto",className:Ia({"visually-hidden":s}),children:(0,Tn.jsx)(vs,{element:"span",color:"primary",children:v?a:i})})}),(0,Tn.jsx)(p0,{width:"auto",children:(0,Tn.jsx)(hm,{className:Tm.collapse__icon,name:"expand_more"})})]})})]})}),g?x:(0,Tn.jsx)(Cm,{duration:300,id:n,height:v?"auto":0,"data-testid":"collapse-inner",children:x})]})},Mm=(0,Sn.forwardRef)(((e,t)=>{const{getLabel:n}=i0(),{visualType:r="link",as:o,children:i,...a}=e;return(0,Tn.jsxs)(bm,{"data-name":"anchor",...a,ref:t,as:o||"a",visualType:r,children:[i,"_blank"===a.target&&(0,Tn.jsxs)("span",{className:"sr-only",children:["(",n("anchor.new-tab"),")"]})]})}));Mm.displayName="Anchor";const Om=Sn.createContext({menuOpen:!1,toggleMenu:()=>null,headerType:"system",reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),context:{},y:null,headerElement:null,headerBottomElement:null,headerBottomSize:void 0}),Dm={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"},jm=Sn.createContext({}),Am=e=>{const t=null==e?void 0:e.replace(/(top-)|(left-)/s,"");return[null==e?void 0:e.replace(new RegExp(`(${t})|-`,"g"),""),t]},Pm=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`}},Rm=(0,Sn.forwardRef)(((e,t)=>{const{getCurrentBreakpointProps:n}=us(),{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]=Am(c),f=Ia(Dm.card,o,{[Dm[`card--border-${d}`]]:d,[Dm["card--borderless"]]:l,[Dm["card--no-border-radius-top"]]:!1===s||!1===(null==s?void 0:s.top),[Dm["card--no-border-radius-right"]]:!1===s||!1===(null==s?void 0:s.right),[Dm["card--no-border-radius-bottom"]]:!1===s||!1===(null==s?void 0:s.bottom),[Dm["card--no-border-radius-left"]]:!1===s||!1===(null==s?void 0:s.left)});return(0,Tn.jsx)(jm.Provider,{value:{padding:i,background:a},children:(0,Tn.jsx)("div",{"data-name":"card",...u,className:f,ref:t,style:p?{"--card-border-color":`var(--color-${p})`}:void 0,children:r})})}));Rm.displayName="Card";const Nm=e=>{const{variant:t,...n}=e,{getCurrentBreakpointProps:r}=us(),{padding:o}=Sn.useContext(jm),{children:i,className:a,background:s,padding:l,...c}=r(n,{background:t??"default",padding:o}),u=Ia(Dm.card__header,Dm[`card__header--${s}`],a);return(0,Tn.jsx)("div",{"data-name":"card-header",style:Pm(l),...c,className:u,children:i})};Nm.displayName="CardHeader";const Lm=e=>{const{padding:t,background:n}=Sn.useContext(jm),{getCurrentBreakpointProps:r}=us(),{children:o,className:i,padding:a,background:s,...l}=r(e,{padding:t,background:n}),c=Ia(Dm.card__content,{[gs(s)]:s},i);return(0,Tn.jsx)("div",{"data-name":"card-content","data-padding":"number"==typeof a?`${a}rem`:void 0,style:Pm(a),...l,className:c,children:o})};Lm.displayName="CardContent";const Fm="card__notification-content-4c89a40e",Um="card__notification-b07a1cfd",Bm=e=>{const{children:t,padding:n,className:r,...o}=e,i=Ia(Um,r);return(0,Tn.jsx)(Lm,{"data-name":"card-notification",padding:n,className:Fm,children:(0,Tn.jsx)(E0,{className:i,...o,children:t})})},zm=({children:e})=>(0,Tn.jsx)(Tn.Fragment,{children:e});function Vm(){return typeof window<"u"}function Km(e){return Ym(e)?(e.nodeName||"").toLowerCase():"#document"}function $m(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Hm(e){var t;return null==(t=(Ym(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ym(e){return!!Vm()&&(e instanceof Node||e instanceof $m(e).Node)}function Wm(e){return!!Vm()&&(e instanceof Element||e instanceof $m(e).Element)}function Gm(e){return!!Vm()&&(e instanceof HTMLElement||e instanceof $m(e).HTMLElement)}function qm(e){return!(!Vm()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof $m(e).ShadowRoot)}function Jm(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Xm(e){return["table","td","th"].includes(Km(e))}function Zm(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function Qm(e){const t=eh(),n=Wm(e)?nh(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 eh(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function th(e){return["html","body","#document"].includes(Km(e))}function nh(e){return $m(e).getComputedStyle(e)}function rh(e){return Wm(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oh(e){if("html"===Km(e))return e;const t=e.assignedSlot||e.parentNode||qm(e)&&e.host||Hm(e);return qm(t)?t.host:t}function ih(e){const t=oh(e);return th(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gm(t)&&Jm(t)?t:ih(t)}function ah(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ih(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=$m(o);if(i){const e=sh(a);return t.concat(a,a.visualViewport||[],Jm(o)?o:[],e&&n?ah(e):[])}return t.concat(o,ah(o,[],n))}function sh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lh(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 ch(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&qm(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function uh(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function dh(){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 ph(e){return!(0!==e.mozInputSource||!e.isTrusted)||(hh()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function fh(e){return!dh().includes("jsdom/")&&(!hh()&&0===e.width&&0===e.height||hh()&&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 mh(){return/apple/i.test(navigator.vendor)}function hh(){const e=/android/i;return e.test(uh())||e.test(dh())}function gh(){return uh().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vh(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function bh(e){return(null==e?void 0:e.ownerDocument)||document}function yh(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 xh(e){return"composedPath"in e?e.composedPath()[0]:e.target}zm.displayName="HeaderContent";function wh(e){return Gm(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Sh(e){e.preventDefault(),e.stopPropagation()}function _h(e){return!!e&&("combobox"===e.getAttribute("role")&&wh(e))}const Eh=Math.min,kh=Math.max,Ch=Math.round,Th=Math.floor,Ih=e=>({x:e,y:e}),Mh={left:"right",right:"left",bottom:"top",top:"bottom"},Oh={start:"end",end:"start"};function Dh(e,t,n){return kh(e,Eh(t,n))}function jh(e,t){return"function"==typeof e?e(t):e}function Ah(e){return e.split("-")[0]}function Ph(e){return e.split("-")[1]}function Rh(e){return"x"===e?"y":"x"}function Nh(e){return"y"===e?"height":"width"}function Lh(e){return["top","bottom"].includes(Ah(e))?"y":"x"}function Fh(e){return Rh(Lh(e))}function Uh(e){return e.replace(/start|end/g,(e=>Oh[e]))}function Bh(e){return e.replace(/left|right|bottom|top/g,(e=>Mh[e]))}function zh(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 Vh(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 Kh=["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(","),$h=typeof Element>"u",Hh=$h?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yh=!$h&&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},Wh=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)},Gh=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!Wh(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{Hh.call(a,Kh)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!Wh(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},qh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Jh=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))&&!qh(e)?0:e.tabIndex},Xh=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Zh=function(e){return"INPUT"===e.tagName},Qh=function(e){return function(e){return Zh(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Yh(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)},eg=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},tg=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Hh.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Hh.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return eg(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=Yh(e);if(a&&!a.shadowRoot&&!0===r(a))return eg(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&&Yh(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=Yh(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},ng=function(e,t){return!(t.disabled||Wh(t)||function(e){return Zh(e)&&"hidden"===e.type}(t)||tg(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!!Hh.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},rg=function(e,t){return!(Qh(t)||Jh(t)<0||!ng(e,t))},og=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ig=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=Jh(e);return n<0&&t&&!qh(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(Xh).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},ag=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Gh([e],t.includeContainer,{filter:rg.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:og}):function(e,t,n){if(Wh(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Kh));return t&&Hh.call(e,Kh)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,rg.bind(null,t)),ig(n)};function sg(e,t,n){let{reference:r,floating:o}=e;const i=Lh(t),a=Fh(t),s=Nh(a),l=Ah(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(Ph(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function lg(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}=jh(t,e),m=zh(f),h=s[p?"floating"===d?"reference":"floating":d],g=Vh(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=Vh(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 cg(e){const t=nh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gm(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ch(n)!==i||Ch(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ug(e){return Wm(e)?e:e.contextElement}function dg(e){const t=ug(e);if(!Gm(t))return Ih(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=cg(t);let a=(i?Ch(n.width):n.width)/r,s=(i?Ch(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const pg=Ih(0);function fg(e){const t=$m(e);return eh()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:pg}function mg(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ug(e);let a=Ih(1);t&&(r?Wm(r)&&(a=dg(r)):a=dg(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$m(e))&&t}(i,n,r)?fg(i):Ih(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=$m(i),t=r&&Wm(r)?$m(r):r;let n=e,o=sh(n);for(;o&&r&&t!==n;){const e=dg(o),t=o.getBoundingClientRect(),r=nh(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=$m(o),o=sh(n)}}return Vh({width:u,height:d,x:l,y:c})}function hg(e,t){const n=rh(e).scrollLeft;return t?t.left+n:mg(Hm(e)).left+n}function gg(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:hg(e,r)),y:r.top+t.scrollTop}}function vg(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=$m(e),r=Hm(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=eh();(!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=Hm(e),n=rh(e),r=e.ownerDocument.body,o=kh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=kh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hg(e);const s=-n.scrollTop;return"rtl"===nh(r).direction&&(a+=kh(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Hm(e));else if(Wm(t))r=function(e,t){const n=mg(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Gm(e)?dg(e):Ih(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=fg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Vh(r)}function bg(e,t){const n=oh(e);return!(n===t||!Wm(n)||th(n))&&("fixed"===nh(n).position||bg(n,t))}function yg(e,t){const n=t.get(e);if(n)return n;let r=ah(e,[],!1).filter((e=>Wm(e)&&"body"!==Km(e))),o=null;const i="fixed"===nh(e).position;let a=i?oh(e):e;for(;Wm(a)&&!th(a);){const t=nh(a),n=Qm(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Jm(a)&&!n&&bg(e,a))?r=r.filter((e=>e!==a)):o=t,a=oh(a)}return t.set(e,r),r}function xg(e,t,n){const r=Gm(t),o=Hm(t),i="fixed"===n,a=mg(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ih(0);if(r||!r&&!i)if(("body"!==Km(t)||Jm(o))&&(s=rh(t)),r){const e=mg(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=hg(o));const c=!o||r||i?Ih(0):gg(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 wg(e){return"static"===nh(e).position}function Sg(e,t){if(!Gm(e)||"fixed"===nh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Hm(e)===n&&(n=n.ownerDocument.body),n}function _g(e,t){const n=$m(e);if(Zm(e))return n;if(!Gm(e)){let t=oh(e);for(;t&&!th(t);){if(Wm(t)&&!wg(t))return t;t=oh(t)}return n}let r=Sg(e,t);for(;r&&Xm(r)&&wg(r);)r=Sg(r,t);return r&&th(r)&&wg(r)&&!Qm(r)?n:r||function(e){let t=oh(e);for(;Gm(t)&&!th(t);){if(Qm(t))return t;if(Zm(t))return null;t=oh(t)}return null}(e)||n}const Eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Hm(r),s=!!t&&Zm(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ih(1);const u=Ih(0),d=Gm(r);if((d||!d&&!i)&&(("body"!==Km(r)||Jm(a))&&(l=rh(r)),Gm(r))){const e=mg(r);c=dg(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?Ih(0):gg(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:Hm,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Zm(t)?[]:yg(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=vg(t,n,o);return e.top=kh(r.top,e.top),e.right=Eh(r.right,e.right),e.bottom=Eh(r.bottom,e.bottom),e.left=kh(r.left,e.left),e}),vg(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:_g,getElementRects:async function(e){const t=this.getOffsetParent||_g,n=this.getDimensions,r=await n(e.floating);return{reference:xg(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}=cg(e);return{width:t,height:n}},getScale:dg,isElement:Wm,isRTL:function(e){return"rtl"===nh(e).direction}};function kg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cg(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=ug(e),u=o||i?[...c?ah(c):[],...ah(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=Hm(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:-Th(d)+"px "+-Th(o.clientWidth-(u+p))+"px "+-Th(o.clientHeight-(d+f))+"px "+-Th(u)+"px",threshold:kh(0,Eh(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&&!kg(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?mg(e):null;return l&&function t(){const r=mg(e);h&&!kg(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 Tg=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=Ah(n),s=Ph(n),l="y"===Lh(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=jh(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}}}}},Ig=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}=jh(e,t),c={x:n,y:r},u=await lg(t,l),d=Lh(Ah(o)),p=Rh(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=Dh(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=Dh(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}}}}}},Mg=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}=jh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Ah(o),b=Lh(s),y=Ah(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!h?[Bh(s)]:function(e){const t=Bh(e);return[Uh(e),t,Uh(t)]}(s)),S="none"!==m;!p&&S&&w.push(...function(e,t,n,r){const o=Ph(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[]}}(Ah(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Uh)))),i}(s,h,m,x));const _=[s,...w],E=await lg(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=Ph(e),o=Fh(e),i=Nh(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Bh(a)),[a,Bh(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=Lh(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{}}}},Og=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}=jh(e,t)||{};if(null==c)return{};const d=zh(u),p={x:n,y:r},f=Fh(o),m=Nh(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=Eh(d[v],k),T=Eh(d[b],k),I=C,M=_-h[m]-T,O=_/2-h[m]/2+E,D=Dh(I,O,M),j=!l.arrow&&null!=Ph(o)&&O!==D&&i.reference[m]/2-(O<I?C:T)-h[m]/2<0,A=j?O<I?O-I:O-M:0;return{[f]:p[f]+A,data:{[f]:D,centerOffset:O-D-A,...j&&{alignmentOffset:A}},reset:j}}}),Dg=(e,t,n)=>{const r=new Map,o={platform:Eg,...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}=sg(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}=sg(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var jg=typeof document<"u"?Sn.useLayoutEffect:Sn.useEffect;function Ag(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(!Ag(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||Ag(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Pg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rg(e,t){const n=Pg(e);return Math.round(t*n)/n}function Ng(e){const t=Sn.useRef(e);return jg((()=>{t.current=e})),t}const Lg=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?Og({element:n.current,padding:r}).fn(t):{}:n?Og({element:n,padding:r}).fn(t):{}}}),Fg=(e,t)=>({...Tg(e),options:[e,t]}),Ug=(e,t)=>({...Ig(e),options:[e,t]}),Bg=(e,t)=>({...Mg(e),options:[e,t]}),zg=(e,t)=>({...Lg(e),options:[e,t]});function Vg(e){return Sn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const Kg={..._n},$g=Kg.useInsertionEffect||(e=>e());function Hg(e){const t=Sn.useRef((()=>{0}));return $g((()=>{t.current=e})),Sn.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 Yg=typeof document<"u"?Sn.useLayoutEffect:Sn.useEffect;function Wg(){return Wg=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},Wg.apply(this,arguments)}let Gg=!1,qg=0;const Jg=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+qg++;const Xg=Kg.useId||function(){const[e,t]=Sn.useState((()=>Gg?Jg():void 0));return Yg((()=>{null==e&&t(Jg())}),[]),Sn.useEffect((()=>{Gg=!0}),[]),e};const Zg=Sn.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=Xg(),[v,b]=Sn.useState(!1);if(Yg((()=>{r&&"rtl"===nh(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 O=null!=(null==o?void 0:o.x)?S||o.x:"",D=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 Sn.createElement("svg",Wg({},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]:O,[I]:D,[y]:w||T?"100%":"calc(100% - "+_/2+"px)",transform:[A,f].filter((e=>!!e)).join(" "),...m}}),_>0&&Sn.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:_+(p?0:1),d:j}),Sn.createElement("path",{stroke:_&&!p?h.fill:"none",d:j}),Sn.createElement("clipPath",{id:g},Sn.createElement("rect",{x:-E,y:E*(T?-1:1),width:a+_,height:a})))}));const Qg=Sn.createContext(null),ev=Sn.createContext(null),tv=()=>{var e;return(null==(e=Sn.useContext(Qg))?void 0:e.id)||null},nv=()=>Sn.useContext(ev);function rv(e){return"data-floating-ui-"+e}function ov(e){const t=(0,Sn.useRef)(e);return Yg((()=>{t.current=e})),t}const iv=rv("safe-polygon");function av(e,t,n){return n&&!vh(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function sv(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=nv(),m=tv(),h=ov(c),g=ov(l),v=ov(n),b=Sn.useRef(),y=Sn.useRef(-1),x=Sn.useRef(),w=Sn.useRef(-1),S=Sn.useRef(!0),_=Sn.useRef(!1),E=Sn.useRef((()=>{})),k=Sn.useRef(!1),C=Sn.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]);Sn.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]),Sn.useEffect((()=>{if(!s||!h.current||!n)return;function e(e){C()&&r(!1,e,"hover")}const t=bh(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,h,C]);const T=Sn.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=av(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=Hg((()=>{E.current(),x.current=void 0})),M=Hg((()=>{if(_.current){const e=bh(a.floating).body;e.style.pointerEvents="",e.removeAttribute(iv),_.current=!1}})),O=Hg((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));Sn.useEffect((()=>{if(s&&Wm(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&&!vh(b.current)||d>0&&!av(g.current,"open"))return;const t=av(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(O())return;E.current();const t=bh(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(),O()||T(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(E.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!ch(a.floating,e.relatedTarget))&&T(e)}function l(e){O()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){M(),I(),O()||T(e)}})(e))}}),[a,s,e,u,d,p,T,I,M,r,n,v,f,g,h,o,O]),Yg((()=>{var e;if(s&&n&&null!=(e=h.current)&&e.__options.blockPointerEvents&&C()){_.current=!0;const e=a.floating;if(Wm(a.domReference)&&e){var t;const n=bh(a.floating).body;n.setAttribute(iv,"");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]),Yg((()=>{n||(b.current=void 0,k.current=!1,I(),M())}),[n,I,M]),Sn.useEffect((()=>()=>{I(),clearTimeout(y.current),clearTimeout(w.current),M()}),[s,a.domReference,I,M]);const D=Sn.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&&!vh(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=Sn.useMemo((()=>({onMouseEnter(){clearTimeout(y.current)},onMouseLeave(e){O()||T(e.nativeEvent,!1)}})),[T,O]);return Sn.useMemo((()=>s?{reference:D,floating:j}:{}),[s,D,j])}let lv=0;function cv(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(lv);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():lv=requestAnimationFrame(i)}function uv(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 dv=new WeakMap,pv=new WeakSet,fv={},mv=0;const hv=e=>e&&(e.host||hv(e.parentNode));function gv(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=hv(t);return e.contains(n)?n:null})).filter((e=>null!=e)))(t,e),s=new Set,l=new Set(a),c=[];fv[o]||(fv[o]=new WeakMap);const u=fv[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"!==Km(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(dv.get(t)||0)+1,a=(u.get(t)||0)+1;dv.set(t,r),u.set(t,a),c.push(t),1===r&&n&&pv.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),s.clear(),mv++,()=>{c.forEach((e=>{const t=(dv.get(e)||0)-1,n=(u.get(e)||0)-1;dv.set(e,t),u.set(e,n),t||(!pv.has(e)&&i&&e.removeAttribute(i),pv.delete(e)),n||e.removeAttribute(o)})),mv--,mv||(dv=new WeakMap,dv=new WeakMap,pv=new WeakSet,fv={})}}function vv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=bh(e[0]).body;return gv(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const bv=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function yv(e,t){const n=ag(e,bv());"prev"===t&&n.reverse();const r=n.indexOf(lh(bh(e)));return n.slice(r+1)[0]}function xv(){return yv(document.body,"next")}function wv(){return yv(document.body,"prev")}function Sv(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ch(n,r)}function _v(e){ag(e,bv()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Ev(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 kv={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 Cv(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Tv=Sn.forwardRef((function(e,t){const[n,r]=Sn.useState();Yg((()=>(mh()&&r("button"),document.addEventListener("keydown",Cv),()=>{document.removeEventListener("keydown",Cv)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[rv("focus-guard")]:"",style:kv};return Sn.createElement("span",Wg({},e,o))})),Iv=Sn.createContext(null),Mv=rv("portal");function Ov(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=Xg(),o=Dv(),[i,a]=Sn.useState(null),s=Sn.useRef(null);return Yg((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Yg((()=>{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(Mv,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Yg((()=>{if(null===n||!r||s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Wm(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(Mv,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=Sn.useState(null),l=Sn.useRef(null),c=Sn.useRef(null),u=Sn.useRef(null),d=Sn.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 Sn.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&&Sv(e)&&("focusin"===e.type?Ev:_v)(i)}}),[i,o,p]),Sn.useEffect((()=>{i&&(f||Ev(i))}),[f,i]),Sn.createElement(Iv.Provider,{value:Sn.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},m&&i&&Sn.createElement(Tv,{"data-type":"outside",ref:l,onFocus:e=>{if(Sv(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=wv()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),m&&i&&Sn.createElement("span",{"aria-owns":i.id,style:kv}),i&&Ta.createPortal(t,i),m&&i&&Sn.createElement(Tv,{"data-type":"outside",ref:c,onFocus:e=>{if(Sv(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=xv()||(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 Dv=()=>Sn.useContext(Iv),jv="data-floating-ui-focusable";function Av(e){return e?e.hasAttribute(jv)?e:e.querySelector("["+jv+"]")||e:null}let Pv=[];function Rv(e){Pv=Pv.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Km(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Hh.call(e,Kh)&&rg(t,e)}(t,bv())){const e=ag(t,bv())[0];e&&(t=e)}Pv.push(t),Pv.length>20&&(Pv=Pv.slice(-20))}}function Nv(){return Pv.slice().reverse().find((e=>e.isConnected))}const Lv=Sn.forwardRef((function(e,t){return Sn.createElement("button",Wg({},e,{type:"button",ref:t,tabIndex:-1,style:kv}))}));function Fv(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=_h(y)&&w,_=!(typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype)||i,E=ov(o),k=ov(a),C=ov(s),T=nv(),I=Dv(),M=Sn.useRef(null),O=Sn.useRef(null),D=Sn.useRef(!1),j=Sn.useRef(!1),A=Sn.useRef(-1),P=null!=I,R=Av(x),N=Hg((function(e){return void 0===e&&(e=R),e?ag(e,bv()):[]})),L=Hg((e=>{const t=N(e);return E.current.map((e=>y&&"reference"===e?y:R&&"floating"===e?R:t)).filter(Boolean).flat()}));function F(e){return!r&&u&&c?Sn.createElement(Lv,{ref:"start"===e?M:O,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}Sn.useEffect((()=>{if(r||!c)return;function e(e){if("Tab"===e.key){ch(R,lh(bh(R)))&&0===N().length&&!S&&Sh(e);const t=L(),n=xh(e);"reference"===E.current[0]&&n===y&&(Sh(e),e.shiftKey?cv(t[t.length-1]):cv(t[1])),"floating"===E.current[1]&&n===R&&e.shiftKey&&(Sh(e),cv(t[0]))}}const t=bh(R);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,y,R,c,E,S,N,L]),Sn.useEffect((()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=xh(e),n=N().indexOf(t);-1!==n&&(A.current=n)}}),[r,x,N]),Sn.useEffect((()=>{if(!r&&d)return x&&Gm(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=!(ch(y,t)||ch(x,t)||ch(t,x)||ch(null==I?void 0:I.portalNode,t)||null!=t&&t.hasAttribute(rv("focus-guard"))||T&&(uv(T.nodesRef.current,m).find((e=>{var n,r;return ch(null==(n=e.context)?void 0:n.elements.floating,t)||ch(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&&lh(bh(R))===bh(R).body){Gm(R)&&R.focus();const e=A.current,t=N(),n=t[e]||t[t.length-1]||R;Gm(n)&&n.focus()}(S||!c)&&t&&n&&!j.current&&t!==Nv()&&(D.current=!0,h(!1,e,"focus-out"))}))}}),[r,y,x,R,c,m,T,I,h,d,l,N,S]),Sn.useEffect((()=>{var e;if(r)return;const t=Array.from((null==I||null==(e=I.portalNode)?void 0:e.querySelectorAll("["+rv("portal")+"]"))||[]);if(x){const e=[x,...t,M.current,O.current,E.current.includes("reference")||S?y:null].filter((e=>null!=e)),n=c||S?vv(e,_,!_):vv(e);return()=>{n()}}}),[r,y,x,c,E,I,S,_]),Yg((()=>{if(r||!Gm(R))return;const e=lh(bh(R));queueMicrotask((()=>{const t=L(R),n=k.current,r=("number"==typeof n?t[n]:n.current)||R,o=ch(R,e);!w&&!o&&p&&cv(r,{preventScroll:r===R})}))}),[r,p,R,w,L,k]),Yg((()=>{if(r||!R)return;let e=!1;const t=bh(R),n=lh(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&&Rv(f.domReference.current),"hover"===r&&"mouseleave"===i.type&&(D.current=!0),"outside-press"===r&&(a?(D.current=!1,e=!0):D.current=!(ph(i)||fh(i)))}Rv(n),g.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,kv),P&&y&&y.insertAdjacentElement("afterend",a),()=>{g.off("openchange",i);const n=lh(t),r=ch(x,n)||T&&uv(T.nodesRef.current,m).some((e=>{var t;return ch(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&f.domReference.current&&Rv(f.domReference.current);const s="boolean"==typeof C.current?Nv()||a:C.current.current||a;queueMicrotask((()=>{C.current&&!D.current&&Gm(s)&&(!(s!==n&&n!==t.body)||r)&&s.focus({preventScroll:e}),a.remove()}))}}),[r,x,R,C,v,f,g,T,m,P,y]),Sn.useEffect((()=>{queueMicrotask((()=>{D.current=!1}))}),[r]),Yg((()=>{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]),Yg((()=>{if(r||!R||"function"!=typeof MutationObserver||w)return;const e=()=>{const e=R.getAttribute("tabindex"),t=N(),n=lh(bh(x)),r=t.indexOf(n);-1!==r&&(A.current=r),E.current.includes("floating")||n!==f.domReference.current&&0===t.length?"0"!==e&&R.setAttribute("tabindex","0"):"-1"!==e&&R.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(R,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,R,f,E,N,w]);const U=!r&&_&&(!c||!S)&&(P||c);return Sn.createElement(Sn.Fragment,null,U&&Sn.createElement(Tv,{"data-type":"inside",ref:null==I?void 0:I.beforeInsideRef,onFocus:e=>{if(c){const e=L();cv("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(D.current=!1,Sv(e,I.portalNode)){const e=xv()||y;null==e||e.focus()}else{var t;null==(t=I.beforeOutsideRef.current)||t.focus()}}}),!S&&F("start"),n,F("end"),U&&Sn.createElement(Tv,{"data-type":"inside",ref:null==I?void 0:I.afterInsideRef,onFocus:e=>{if(c)cv(L()[0]);else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(d&&(D.current=!0),Sv(e,I.portalNode)){const e=wv()||y;null==e||e.focus()}else{var t;null==(t=I.afterOutsideRef.current)||t.focus()}}}))}let Uv=0;let Bv=()=>{};const zv=Sn.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return Yg((()=>{if(n)return Uv++,1===Uv&&(Bv=function(){const e=/iP(hone|ad|od)|iOS/.test(uh()),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))}}()),()=>{Uv--,0===Uv&&Bv()}}),[n]),Sn.createElement("div",Wg({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function Vv(e){return Gm(e.target)&&"BUTTON"===e.target.tagName}function Kv(e){return wh(e)}function $v(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=Sn.useRef(),f=Sn.useRef(!1),m=Sn.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==s&&(vh(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:vh(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&&!Vv(e)&&(" "===e.key&&!Kv(i)&&(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!(n&&l),e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Vv(e)||Kv(i)||" "===e.key&&f.current&&(f.current=!1,r(!(n&&l),e.nativeEvent,"click"))}})),[o,i,s,c,u,r,n,d,l]);return Sn.useMemo((()=>a?{reference:m}:{}),[a,m])}const Hv={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Yv={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Wv=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 Gv(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=nv(),g=Hg("function"==typeof l?l:()=>!1),v="function"==typeof l?g:l,b=Sn.useRef(!1),y=Sn.useRef(!1),{escapeKey:x,outsidePress:w}=Wv(f),{escapeKey:S,outsidePress:_}=Wv(m),E=Sn.useRef(!1),k=Hg((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?uv(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=Hg((e=>{var t;const n=()=>{var t;k(e),null==(t=xh(e))||t.removeEventListener("keydown",n)};null==(t=xh(e))||t.addEventListener("keydown",n)})),T=Hg((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=xh(e),l="["+rv("inert")+"]",u=bh(o.floating).querySelectorAll(l);let d=Wm(s)?s:null;for(;d&&!th(d);){const e=oh(d);if(th(e)||!Wm(e))break;d=e}if(u.length&&Wm(s)&&!function(e){return e.matches("html,body")}(s)&&!ch(s,o.floating)&&Array.from(u).every((e=>!ch(d,e))))return;if(Gm(s)&&O){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"===nh(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&&uv(h.nodesRef.current,p).some((t=>{var n;return yh(e,null==(n=t.context)?void 0:n.elements.floating)}));if(yh(e,o.floating)||yh(e,o.domReference)||f)return;const m=h?uv(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=Hg((e=>{var t;const n=()=>{var t;T(e),null==(t=xh(e))||t.removeEventListener(c,n)};null==(t=xh(e))||t.addEventListener(c,n)}));Sn.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}),eh()?5:0)}const d=bh(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&&(Wm(o.domReference)&&(f=ah(o.domReference)),Wm(o.floating)&&(f=f.concat(ah(o.floating))),!Wm(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(ah(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]),Sn.useEffect((()=>{b.current=!1}),[v,c]);const M=Sn.useMemo((()=>({onKeyDown:k,[Hv[d]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}})),[k,r,u,d]),O=Sn.useMemo((()=>({onKeyDown:k,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[Yv[c]]:()=>{b.current=!0}})),[k,c]);return Sn.useMemo((()=>a?{reference:M,floating:O}:{}),[a,M,O])}function qv(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Xg(),i=Sn.useRef({}),[a]=Sn.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!=tv();const[l,c]=Sn.useState(r.reference),u=Hg(((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=Sn.useMemo((()=>({setPositionReference:c})),[]),p=Sn.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return Sn.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d})),[t,u,p,a,o,d])}function Jv(e){void 0===e&&(e={});const{nodeId:t}=e,n=qv({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=Sn.useState(null),[s,l]=Sn.useState(null),c=(null==o?void 0:o.domReference)||i,u=Sn.useRef(null),d=nv();Yg((()=>{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]=Sn.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=Sn.useState(r);Ag(p,r)||f(r);const[m,h]=Sn.useState(null),[g,v]=Sn.useState(null),b=Sn.useCallback((e=>{e!==S.current&&(S.current=e,h(e))}),[]),y=Sn.useCallback((e=>{e!==_.current&&(_.current=e,v(e))}),[]),x=i||m,w=a||g,S=Sn.useRef(null),_=Sn.useRef(null),E=Sn.useRef(u),k=null!=l,C=Ng(l),T=Ng(o),I=Ng(c),M=Sn.useCallback((()=>{if(!S.current||!_.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),Dg(S.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};O.current&&!Ag(E.current,t)&&(E.current=t,Ta.flushSync((()=>{d(t)})))}))}),[p,t,n,T,I]);jg((()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=Sn.useRef(!1);jg((()=>(O.current=!0,()=>{O.current=!1})),[]),jg((()=>{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 D=Sn.useMemo((()=>({reference:S,floating:_,setReference:b,setFloating:y})),[b,y]),j=Sn.useMemo((()=>({reference:x,floating:w})),[x,w]),A=Sn.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=Rg(j.floating,u.x),r=Rg(j.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Pg(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,u.x,u.y]);return Sn.useMemo((()=>({...u,update:M,refs:D,elements:j,floatingStyles:A})),[u,M,D,j,A])}({...e,elements:{...o,...s&&{reference:s}}}),f=Sn.useCallback((e=>{const t=Wm(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),m=Sn.useCallback((e=>{(Wm(e)||null===e)&&(u.current=e,a(e)),(Wm(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Wm(e))&&p.refs.setReference(e)}),[p.refs]),h=Sn.useMemo((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=Sn.useMemo((()=>({...p.elements,domReference:c})),[p.elements,c]),v=Sn.useMemo((()=>({...p,...r,refs:h,elements:g,nodeId:t})),[p,h,g,t,r]);return Yg((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Sn.useMemo((()=>({...p,context:v,refs:h,elements:g})),[p,h,g,v])}function Xv(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=Sn.useRef(!1),u=Sn.useRef(),d=Sn.useRef(!0);Sn.useEffect((()=>{if(!s)return;const e=$m(a.domReference);function t(){!n&&Gm(a.domReference)&&a.domReference===lh(bh(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]),Sn.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]),Sn.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const p=Sn.useMemo((()=>({onPointerDown(e){fh(e.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=xh(e.nativeEvent);if(l&&Wm(t))try{if(mh()&&gh())throw Error();if(!t.matches(":focus-visible"))return}catch{if(!d.current&&!wh(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Wm(t)&&t.hasAttribute(rv("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const s=lh(a.domReference?a.domReference.ownerDocument:document);!t&&s===a.domReference||ch(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||ch(a.domReference,s)||o||r(!1,n,"focus")}))}})),[i,a.domReference,r,l]);return Sn.useMemo((()=>s?{reference:p}:{}),[s,p])}const Zv="active",Qv="selected";function eb(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Zv]:t,[Qv]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[jv]:""},...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||![Zv,Qv].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 tb(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=Sn.useCallback((t=>eb(t,e,"reference")),t),i=Sn.useCallback((t=>eb(t,e,"floating")),n),a=Sn.useCallback((t=>eb(t,e,"item")),r);return Sn.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}const nb=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function rb(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=nb.get(a))?n:a,l=Xg(),c=null!=tv(),u=Sn.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=Sn.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=Sn.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 Sn.useMemo((()=>i?{reference:u,floating:d,item:p}:{}),[i,u,d,p])}function ob(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 ib(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=xh(e),x="mouseleave"===e.type,w=ch(d.floating,y),S=ch(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,O=E.height>_.height,D=(M?_:E).left,j=(M?_:E).right,A=(O?_:E).top,P=(O?_:E).bottom;if(w&&(i=!0,!x))return;if(S&&(i=!1),S&&!x)return void(i=!0);if(x&&Wm(e.relatedTarget)&&ch(d.floating,e.relatedTarget)||m&&uv(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 R=[];switch(k){case"top":R=[[D,_.top+1],[D,E.bottom-1],[j,E.bottom-1],[j,_.top+1]];break;case"bottom":R=[[D,E.top+1],[D,_.bottom-1],[j,_.bottom-1],[j,E.top+1]];break;case"left":R=[[E.right-1,P],[E.right-1,A],[_.left+1,A],[_.left+1,P]];break;case"right":R=[[_.right-1,P],[_.right-1,A],[E.left+1,A],[E.left+1,P]]}if(!ob([g,v],R)){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()}ob([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,O?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,O?r-t/2:T?r+4*t:r-4*t];return[[T||O?E.right-t:E.left,E.top],[T?O?E.right-t:E.left:E.right-t,E.bottom],e,o]}case"right":return[[n-t,O?r+t/2:T?r+4*t:r-4*t],[n-t,O?r-t/2:T?r+4*t:r-4*t],[T||O?E.left+t:E.right,E.top],[T?O?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 ab={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"},sb=10,lb=Sn.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:{}}),cb=e=>{const{getLabel:t}=i0(),n=AQ(),{children:r,placement:o="bottom",openWith:i=(n?"click":"hover"),defaultOpen:a=!1,open:s,onToggle:l,role:c="tooltip",offset:u=sb}=e,{order:d=["reference","content"],modal:p=!1,initialFocus:f=-1,...m}=e.focusManager??{},{visuallyHiddenDismiss:h=!!p&&t("close")}=m??{},[g,v]=Sn.useState(a),b=Sn.useRef(null),y=l&&typeof s<"u"?s:g,x=TQ(),{x:w,y:S,refs:_,strategy:E,context:k,middlewareData:C,placement:T}=Jv({placement:o,open:y,onOpenChange:e=>{typeof s>"u"&&v(e),null==l||l(e)},middleware:[Fg(u),Bg(),Ug({padding:8}),zg({element:b,padding:4})],whileElementsMounted:Cg}),{getReferenceProps:I,getFloatingProps:M}=tb([sv(k,{handleClose:ib(),enabled:"hover"===i}),$v(k),Xv(k,{enabled:"hover"===i}),rb(k,{role:c}),Gv(k,{outsidePressEvent:"click"===i?"mousedown":"pointerdown"})]);return(0,Tn.jsx)(lb.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})},ub=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}=Sn.useContext(lb),[h,g]=Am(null==r?void 0:r.border),v=()=>h&&g?`var(--color-${g})`:"none",b="none"!==v();return(0,Tn.jsx)(Ov,{"data-name":"tooltip",children:(()=>{const e=(0,Tn.jsx)(Fv,{...c,context:m,children:(0,Tn.jsxs)("div",{...p({ref:u,style:{position:l,left:a??0,top:s??0},className:Ia(ab.tooltip,o,{[ab[`tooltip--${n}`]]:n})}),"data-placement":f,children:[(0,Tn.jsx)(Zg,{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:Ia(ab.tooltip__arrow,{[ab["tooltip__arrow--stroke"]]:b}),height:7,width:14}),(0,Tn.jsx)(Rm,{padding:.5,borderless:!0,...r,children:(0,Tn.jsx)(Lm,{children:t})})]})});return i?e:null})()})},db=e=>{const{children:t}=e,{getLabel:n}=i0(),{getReferenceProps:r,reference:o,openWith:i}=Sn.useContext(lb),a=Vg([o,t.ref]);return Sn.cloneElement(t,r({ref:a,tabIndex:0,label:t.type===hm?n("tooltip.icon-trigger"):void 0,...t.props,className:Ia(ab.tooltip__trigger,{[ab["tooltip__trigger--click"]]:"click"===i},t.props.className)}))},pb="header__dropdown-cb8faff9",fb="header__dropdown--open-03680708",mb=e=>{const{children:t,triggerProps:n,defaultOpen:r,open:o,onToggle:i,shouldAnimate:a,tooltipProps:s}=e,[l,c]=Sn.useState(r),[u,d]=Sn.useState(sb),{headerElement:p}=Sn.useContext(Om),f=Sn.useRef(null);Sn.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,Tn.jsxs)(cb,{offset:u,openWith:"click",role:"dialog",onToggle:e=>{c(e),null==i||i(e)},open:m,children:[(0,Tn.jsx)(db,{children:(0,Tn.jsx)(xm,{...n,ref:f,className:Ia(pb,n.className,{[fb]:a&&m})})}),(0,Tn.jsx)(ub,{...s,cardProps:{...null==s?void 0:s.cardProps,border:"top-primary-active-subtle",borderless:!1,background:"bg-muted"},children:t})]})},hb={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"},gb=Sn.createContext({isOpen:!1,reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),closeModal:()=>null,context:{},isDismissable:!0,escapeKey:!0,outsidePress:!0}),vb=e=>{const{children:t,defaultOpen:n=!1,onToggle:r,isDismissable:o=!0,escapeKey:i=!0,outsidePress:a=!0}=e,[s,l]=Sn.useState(n),c=r&&typeof e.open<"u"?e.open:s,{refs:u,context:d}=Jv({open:c,onOpenChange:e=>e?h():m()}),{getReferenceProps:p,getFloatingProps:f}=tb([$v(d),rb(d),Gv(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,Tn.jsx)(gb.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})},bb=e=>{const{children:t}=e,{closeModal:n}=Sn.useContext(gb);return Sn.cloneElement(t,{onClick:()=>{var e,r;null==(r=(e=t.props).onClick)||r.call(e),n()}})},yb=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}=i0(),p=e["aria-labelledby"],f=e["aria-describedby"],{isOpen:m,floating:h,getFloatingProps:g,context:v,isDismissable:b}=Sn.useContext(gb),y=Sn.useMemo((()=>{let e=!1;const n=e=>e.type.displayName;return o?t:Sn.Children.map(t,((t,r)=>e||!Sn.isValidElement(t)||"CardHeader"!==n(t)&&"CardContent"!==n(t)?t:(e=!0,Sn.cloneElement(t,{...t.props,children:(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)(bb,{children:(0,Tn.jsx)(x0,{size:"large",className:hb["close-button"]})}),t.props.children]})}))))}),[t,d,o]);return(0,Tn.jsx)(Ov,{"data-name":"modal",children:m&&(0,Tn.jsx)(zv,{lockScroll:a,className:Ia(hb.modal,hb[`modal--${n}`],hb[`modal--${i}`],{[hb["modal--no-overlay"]]:"none"===c}),children:(0,Tn.jsx)(Fv,{context:v,closeOnFocusOut:!s&&b,visuallyHiddenDismiss:u?d("modal.close"):void 0,returnFocus:l,modal:s,children:(0,Tn.jsx)("div",{...g({ref:h,className:hb.modal__inner,"aria-labelledby":p,"aria-describedby":f,"aria-modal":s}),children:(0,Tn.jsx)(Rm,{...r,className:Ia(hb.modal__card,null==r?void 0:r.className),children:y})})})})})},xb=e=>{const{children:t}=e,{getReferenceProps:n,reference:r}=Sn.useContext(gb);return Sn.cloneElement(t,n({ref:r,...t.props}))},wb="header-modal__close-824b7dc8",Sb=e=>{const{triggerProps:t,defaultOpen:n,open:r,onToggle:o,children:i,ariaLabelledby:a}=e,{getLabel:s}=i0();return(0,Tn.jsxs)(vb,{defaultOpen:n,open:r,onToggle:o,children:[(0,Tn.jsx)(xb,{children:(0,Tn.jsx)(xm,{...t})}),(0,Tn.jsx)(yb,{"aria-labelledby":a,hideCloseButton:!0,position:"right",children:(0,Tn.jsxs)(Lm,{padding:0,children:[(0,Tn.jsx)(Rm,{borderless:!0,background:"primary-highlight-subtle",padding:.5,borderRadius:!1,children:(0,Tn.jsx)(Lm,{children:(0,Tn.jsx)(vs,{element:"div",modifiers:"right",children:(0,Tn.jsx)(bb,{children:(0,Tn.jsx)(x0,{title:s("modal.close"),size:"large",className:wb})})})})}),(0,Tn.jsx)(Rm,{border:"top-border-default",borderRadius:!1,padding:0,children:(0,Tn.jsx)(Lm,{children:i})})]})})]})},_b=e=>{const{languages:t}=e,n=ms(["desktop","tablet"]),{getLabel:r}=i0(),[o,i]=Sn.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,Tn.jsx)(xm,{visualType:o?"link":e?"primary":"tertiary","aria-current":e,"aria-label":r,onClick:()=>(e=>{null==e||e({onToggle:i})})(t),children:n}),c=(0,Tn.jsxs)("div",{children:[(0,Tn.jsx)(vs,{color:"muted",modifiers:"small",children:r("header.select-lang")}),(0,Tn.jsx)(mb,{shouldAnimate:!0,open:o,onToggle:i,tooltipProps:{cardProps:{padding:1}},triggerProps:s,children:(0,Tn.jsx)(T0,{verticalSpacing:{size:.75},element:"ul",children:(null==t?void 0:t.map((e=>(0,Tn.jsx)(C0,{children:l(e)},e.label))))||[]})})]}),u=(0,Tn.jsx)(Sb,{ariaLabelledby:"header-language-modal-label",open:o,onToggle:i,triggerProps:s,children:(0,Tn.jsx)(Rm,{borderless:!0,children:(0,Tn.jsxs)(Lm,{children:[(0,Tn.jsx)(bs,{id:"header-language-modal-label",className:"sr-only",children:r("header.select-lang")}),(0,Tn.jsx)(d0,{alignItems:"center",element:"ul",children:null==t?void 0:t.map((e=>(0,Tn.jsx)(p0,{width:"auto",children:l(e,!1)},e.label)))})]})})});return n?c:u};_b.displayName="HeaderLanguage";const Eb={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"},kb=(0,Sn.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?A0:i?"abbr":"div",g=Ia(Eb.tag,o,{[Eb[`tag--${r}`]]:r},{[Eb[`tag--type-${l}`]]:l},{[Eb[`tag--color-${a}`]]:a},{[Eb[`tag--status-${s}`]]:s},{[Eb["tag--rounded"]]:c},{[Eb["tag--icon-only"]]:f},{[Eb["tag--disabled"]]:p},{[Eb["tag--with-arrow"]]:u&&!c});return(0,Tn.jsx)(h,{id:m,"data-name":"tag",className:g,title:i,ref:t,children:n})}));kb.displayName="Tag";const Cb="header-role-collapse-7664165f",Tb="header-role-wrapper-c65bcd63",Ib="header-role-children-3fdd2c2c",Mb=e=>{const{renderModal:t=!1,...n}=e,[r,o]=Sn.useState(!1);return t?(0,Tn.jsx)(Db,{...n,open:r,onToggle:o}):(0,Tn.jsx)(Ob,{...n,open:r,onToggle:o})};Mb.displayName="HeaderRole";const Ob=e=>{const{getLabel:t}=i0(),{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,Tn.jsx)(mb,{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,Tn.jsx)("div",{className:Tb,children:(0,Tn.jsx)(M0,{fadeSize:0,children:(0,Tn.jsx)("div",{className:Ib,children:l})})})});return(0,Tn.jsxs)("div",{children:[s===t("header.role-label")?(0,Tn.jsx)("div",{children:(0,Tn.jsx)(kb,{color:"primary",type:"secondary",children:s})}):(0,Tn.jsxs)(vs,{color:"muted",modifiers:["bold","small"],children:[s,!!a&&(0,Tn.jsxs)(Tn.Fragment,{children:[" ",(0,Tn.jsxs)(vs,{element:"span",modifiers:["small","normal"],children:[(0,Tn.jsx)("span",{style:{color:"var(--color-border-default)"},children:"|"})," ",a]})]})]}),l?c:i]})},Db=e=>{const{getLabel:t}=i0(),{children:n,open:r,onToggle:o,primaryInfo:i,secondaryInfo:a,label:s=t("header.role-label")}=e,l=(0,Tn.jsxs)(vs,{element:"span",color:"muted",modifiers:"bold",children:[s," ",i,a&&(0,Tn.jsx)(vs,{element:"span",modifiers:"normal",children:` | ${a}`})]}),c="function"==typeof n?n({onToggle:o}):n;return(0,Tn.jsx)(Rm,{background:"bg-muted",borderRadius:!1,borderless:!0,children:(0,Tn.jsx)(Lm,{padding:0,children:c?(0,Tn.jsx)(Im,{id:"role-collapse",open:r,onToggle:o,className:Cb,hideCollapseText:!0,title:l,children:(0,Tn.jsx)("div",{className:Tb,children:(0,Tn.jsx)(M0,{fadeSize:0,children:(0,Tn.jsx)("div",{className:Ib,children:c})})})}):(0,Tn.jsx)("div",{className:Ib,children:l})})})},jb=e=>{const{children:t,onActionClick:n,closeOnAction:r=!0,iconName:o}=e,[i,a]=Sn.useState(!1),s=ms(["desktop"]),l=ms(["mobile"]),{getLabel:c}=i0(),{headerType:u}=Sn.useContext(Om),d={children:c("header.settings"),visualType:"tertiary",icon:{name:o||"account_circle",color:"primary",size:36}};if("public"===u)return(0,Tn.jsx)(xm,{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,Tn.jsx)(xm,{icon:{name:"logout",color:"primary",size:24},visualType:"tertiary",onClick:n,children:c("header.logout")});const f=()=>(0,Tn.jsx)(xm,{onClick:()=>{n(),r&&a(!1)},iconLeft:"logout",visualType:"link",children:c("header.logout")}),m=(0,Tn.jsx)(mb,{open:i,onToggle:a,tooltipProps:{cardProps:{padding:1}},triggerProps:d,children:(0,Tn.jsxs)(g0,{size:1,children:[p,(0,Tn.jsx)(R0,{isStretched:!0}),(0,Tn.jsx)(f,{})]})}),h=(0,Tn.jsxs)(Sb,{open:i,onToggle:a,ariaLabelledby:"header-settings-modal-label",triggerProps:d,children:[(0,Tn.jsx)(bs,{id:"header-settings-modal-label",className:"sr-only",children:c("header.settings")}),p,(0,Tn.jsx)(R0,{isStretched:!0}),(0,Tn.jsx)(Rm,{borderless:!0,children:(0,Tn.jsx)(Lm,{children:(0,Tn.jsx)(f,{})})}),(0,Tn.jsx)(R0,{isStretched:!0})]});return s?m:h};jb.displayName="HeaderSettings";Sn.createContext({activeStep:0,allowStepLabelClick:!0,handleActiveStepChange:()=>null});function Ab(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=Ab(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Pb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ab(e))&&(r&&(r+=" "),r+=t);return r}function Rb(e){return np(e)}function Nb(e){return Xu("MuiSvgIcon",e)}Zu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Fb=lm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Vc(n.color)}`],t[`fontSize${Vc(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]}})),Ub=Sn.forwardRef((function(e,t){const n=Rb({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=Rs(n,Lb),f=Sn.isValidElement(r)&&"svg"===r.type,m=ys({},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 Wd({root:["root","inherit"!==t&&`color${Vc(t)}`,`fontSize${Vc(n)}`]},Nb,r)})(m);return(0,Tn.jsxs)(Fb,ys({as:a,className:qu(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,Tn.jsx)("title",{children:u}):null]}))}));function Bb(e,t){function n(n,r){return(0,Tn.jsx)(Ub,ys({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ub.muiName,Sn.memo(Sn.forwardRef(n))}function zb(e,t){return(zb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zb(e,t)}function Kb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}Ub.muiName="SvgIcon";const $b=!1;const Hb=Sn.createContext(null);var Yb=function(e){return e.scrollTop},Wb="unmounted",Gb="exited",qb="entering",Jb="entered",Xb="exiting",Zb=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=Gb,r.appearStatus=qb):o=Jb:o=t.unmountOnExit||t.mountOnEnter?Wb:Gb,r.state={status:o},r.nextCallback=null,r}Vb(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Wb?{status:Gb}: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!==qb&&n!==Jb&&(t=qb):(n===qb||n===Jb)&&(t=Xb)}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===qb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ta.findDOMNode(this);n&&Yb(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Gb&&this.setState({status:Wb})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ta.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||$b?this.safeSetState({status:Jb},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:qb},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Jb},(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:Ta.findDOMNode(this);t&&!$b?(this.props.onExit(r),this.safeSetState({status:Xb},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Gb},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Gb},(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:Ta.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===Wb)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=Rs(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Sn.createElement(Hb.Provider,{value:null},"function"==typeof n?n(e,r):Sn.cloneElement(Sn.Children.only(n),r))},t}(Sn.Component);function Qb(){}Zb.contextType=Hb,Zb.propTypes={},Zb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qb,onEntering:Qb,onEntered:Qb,onExit:Qb,onExiting:Qb,onExited:Qb},Zb.UNMOUNTED=Wb,Zb.EXITED=Gb,Zb.ENTERING=qb,Zb.ENTERED=Jb,Zb.EXITING=Xb;var ey=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=Kb(e.className,t):e.setAttribute("class",Kb(e.className&&e.className.baseVal||"",t))}(e,t)}))},ty=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}Vb(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&&Yb(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&&ey(e,r),o&&ey(e,o),i&&ey(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Rs(e,["classNames"]);return Sn.createElement(Zb,ys({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Sn.Component);function ny(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ry(e,t){var n=Object.create(null);return e&&Sn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,Sn.isValidElement)(e)?t(e):e}(e)})),n}function oy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function iy(e,t){return ry(e.children,(function(n){return(0,Sn.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:oy(n,"appear",e),enter:oy(n,"enter",e),exit:oy(n,"exit",e)})}))}function ay(e,t,n){var r=ry(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,Sn.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],u=(0,Sn.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,Sn.isValidElement)(c)&&(o[i]=(0,Sn.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:oy(a,"exit",e),enter:oy(a,"enter",e)})):o[i]=(0,Sn.cloneElement)(a,{in:!1}):o[i]=(0,Sn.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:oy(a,"exit",e),enter:oy(a,"enter",e)})}})),o}ty.defaultProps={classNames:""},ty.propTypes={};var sy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ly=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(ny(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Vb(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?iy(e,r):ay(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=ry(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ys({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Rs(e,["component","childFactory"]),o=this.state.contextValue,i=sy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Sn.createElement(Hb.Provider,{value:o},i):Sn.createElement(Hb.Provider,{value:o},Sn.createElement(t,r,i))},t}(Sn.Component);ly.propTypes={},ly.defaultProps={component:"div",childFactory:function(e){return e}};const cy=e=>e.scrollTop;function uy(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 dy(e){return Xu("MuiPaper",e)}Zu("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 py=["className","component","elevation","square","variant"],fy=lm("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 ys({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&&ys({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${pp("#fff",cm(t.elevation))}, ${pp("#fff",cm(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),my=Sn.forwardRef((function(e,t){const n=Rb({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Rs(n,py),c=ys({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Wd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},dy,o)})(c);return(0,Tn.jsx)(fy,ys({as:o,ownerState:c,className:qu(u.root,r),ref:t},l))}));const hy=Zu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),gy=["center","classes","className"];let vy,by,yy,xy,wy=e=>e;const Sy=yc(vy||(vy=wy`
|
|
2
|
+
(()=>{var e,t,n={20:(e,t,n)=>{"use strict";var r=n(953),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},848:(e,t,n)=>{"use strict";e.exports=n(20)},942:(e,t)=>{var n;!function(){"use strict";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)}()},953:e=>{"use strict";e.exports=require("react")}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";o.r(i),o.d(i,{DetailSearch:()=>$4,MyAdministrativeProceedings:()=>Rn,MyApprovals:()=>g4,MyDocuments:()=>H5,MyInvolvements:()=>y4,MyOpinions:()=>v4,MyPlanningsPage:()=>q3,MyProceedings:()=>h4,documentsReducer:()=>v,filterReducer:()=>c,myOperationsReducer:()=>I,proceedingsReducer:()=>_,rootReducer:()=>wn});const e=require("@reduxjs/toolkit");const t=(0,e.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:n,documentTypesLoaded:r,institutionUsersLoaded:a,institutionsLoaded:s,usageClassifierTypesLoaded:l}=t.actions,c=t.reducer;const u=(0,e.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}}}),d=((0,e.createSelector)((e=>e.myViewsPage.myDocuments.workingDocuments),(e=>e)),(0,e.createSelector)((e=>e.myViewsPage.myDocuments.finishedDocuments),(e=>e))),{workingDocumentsLoaded:p,signingDocumentsLoaded:f,finishedDocumentsLoaded:m,deleteDocument:h,allowedDocumentTypesLoaded:g}=u.actions,v=u.reducer;const b=(0,e.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:y,proceedingsToCommentLoaded:x,incomingDocumentsLoaded:w}=((0,e.createSelector)((e=>e.myViewsPage.myProceedings.myProceedings),(e=>e)),(0,e.createSelector)((e=>e.myViewsPage.myProceedings.incomingDocuments),(e=>e)),b.actions),{actions:S}=b,_=b.reducer;const E=(0,e.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:k,toCommentOperationsLoaded:C,operationInvitationsLoaded:T}=E.actions,I=E.reducer;const M=(0,e.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:O,documentsLoaded:D,proceedingsLoaded:j}=M.actions,A=M.reducer,P={notices:[]},R=(0,e.createSlice)({name:"notification",initialState:P,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=>P}}),N=(0,e.createSelector)((e=>e.myViewsPage.notifications.notices),(e=>e)),{cleanState:L,setNotifications:F,removeNotification:U}=R.actions,B=R.reducer,z=require("axios");var V=o.n(z);const K="https://devkluster.ehr.ee".replace(/\/+$/,"");class ${constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class H extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const Y="https://example.com",W=function(e,t,n){if(null==n)throw new H(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},G=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()},q=function(e){return e.pathname+e.search+e.hash},J=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)}},X=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",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getBusinessTypesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/businesstypelist",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getClassifierByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W("getClassifierByType","classifierType",t);const r="/classifier/{classifierType}".replace("{classifierType}",encodeURIComponent(String(t))),o=new URL(r,Y);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};G(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:q(o),options:a}},getClassifiersByRelatedType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W("getClassifiersByRelatedType","relatedClassifierType",t);const r="/classifier/related-type/{relatedClassifierType}".replace("{relatedClassifierType}",encodeURIComponent(String(t))),o=new URL(r,Y);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};G(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:q(o),options:a}},getClassifiersByType:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W("getClassifiersByType","classifierTypesCommaSeparated",t);const r="/classifiers/{classifierTypesCommaSeparated}".replace("{classifierTypesCommaSeparated}",encodeURIComponent(String(t))),o=new URL(r,Y);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};G(o,{},n.query);let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:q(o),options:a}},getDocumentTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/documenttypes",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getFileTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/filetypes",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getUsageClassifierTypes:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/classifier/usage",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}},getUserRolesList:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/userroleslist",Y);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};G(n,{},t.query);let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:q(n),options:o}}}}(e);return{async getAllDocumentTypes(n){const r=await t.getAllDocumentTypes(n);return J(r,V(),K,e)},async getBusinessTypesList(n){const r=await t.getBusinessTypesList(n);return J(r,V(),K,e)},async getClassifierByType(n,r){const o=await t.getClassifierByType(n,r);return J(o,V(),K,e)},async getClassifiersByRelatedType(n,r){const o=await t.getClassifiersByRelatedType(n,r);return J(o,V(),K,e)},async getClassifiersByType(n,r){const o=await t.getClassifiersByType(n,r);return J(o,V(),K,e)},async getDocumentTypes(n){const r=await t.getDocumentTypes(n);return J(r,V(),K,e)},async getFileTypes(n){const r=await t.getFileTypes(n);return J(r,V(),K,e)},async getHealth(n){const r=await t.getHealth(n);return J(r,V(),K,e)},async getUsageClassifierTypes(n){const r=await t.getUsageClassifierTypes(n);return J(r,V(),K,e)},async getUserRolesList(n){const r=await t.getUserRolesList(n);return J(r,V(),K,e)}}};class Z extends ${getAllDocumentTypes(e){return X(this.configuration).getAllDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getBusinessTypesList(e){return X(this.configuration).getBusinessTypesList(e).then((e=>e(this.axios,this.basePath)))}getClassifierByType(e,t){return X(this.configuration).getClassifierByType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByRelatedType(e,t){return X(this.configuration).getClassifiersByRelatedType(e,t).then((e=>e(this.axios,this.basePath)))}getClassifiersByType(e,t){return X(this.configuration).getClassifiersByType(e,t).then((e=>e(this.axios,this.basePath)))}getDocumentTypes(e){return X(this.configuration).getDocumentTypes(e).then((e=>e(this.axios,this.basePath)))}getFileTypes(e){return X(this.configuration).getFileTypes(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return X(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getUsageClassifierTypes(e){return X(this.configuration).getUsageClassifierTypes(e).then((e=>e(this.axios,this.basePath)))}getUserRolesList(e){return X(this.configuration).getUserRolesList(e).then((e=>e(this.axios,this.basePath)))}}class Q{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 ee="http://localhost:8080".replace(/\/+$/,"");class te{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class ne extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const re="https://example.com",oe=function(e,t,n){if(null==n)throw new ne(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function ie(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>ie(e,t,n))):Object.keys(t).forEach((r=>ie(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const ae=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];ie(t,r),e.search=t.toString()},se=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},ce=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 ue=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",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getJurPersonCoordRelJurs:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonCoordRelJurs","personId",t);const r="/person/jur/{personId}/coord".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUserPossibleProceedingSupervisorsByEHAKCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUserPossibleProceedingSupervisorsByEHAKCode","eHAKCode",t);const r="/user/possiblesupervisors/{EHAKCode}".replace("{EHAKCode}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUserPossibleProceedingSupervisorsByIdAndEHAKCode:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","id",t),oe("getUserPossibleProceedingSupervisorsByIdAndEHAKCode","eHAKCode",n);const o="/user/possiblesupervisors/{id}/{EHAKCode}".replace("{id}",encodeURIComponent(String(t))).replace("{EHAKCode}",encodeURIComponent(String(n))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ae(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:le(i),options:s}},getUserPossibleProceedingSupervisorsByJurId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUserPossibleProceedingSupervisorsByJurId","personId",t);const r="/user/jur/possiblesupervisors/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}}}}(e);return{async getJurKovPersons(n){const r=await t.getJurKovPersons(n);return ce(r,V(),ee,e)},async getJurPersonCoordRelJurs(n,r){const o=await t.getJurPersonCoordRelJurs(n,r);return ce(o,V(),ee,e)},async getUserPossibleProceedingSupervisorsByEHAKCode(n,r){const o=await t.getUserPossibleProceedingSupervisorsByEHAKCode(n,r);return ce(o,V(),ee,e)},async getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o){const i=await t.getUserPossibleProceedingSupervisorsByIdAndEHAKCode(n,r,o);return ce(i,V(),ee,e)},async getUserPossibleProceedingSupervisorsByJurId(n,r){const o=await t.getUserPossibleProceedingSupervisorsByJurId(n,r);return ce(o,V(),ee,e)}}};class de extends te{getJurKovPersons(e){return ue(this.configuration).getJurKovPersons(e).then((e=>e(this.axios,this.basePath)))}getJurPersonCoordRelJurs(e,t){return ue(this.configuration).getJurPersonCoordRelJurs(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByEHAKCode(e,t){return ue(this.configuration).getUserPossibleProceedingSupervisorsByEHAKCode(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n){return ue(this.configuration).getUserPossibleProceedingSupervisorsByIdAndEHAKCode(e,t,n).then((e=>e(this.axios,this.basePath)))}getUserPossibleProceedingSupervisorsByJurId(e,t){return ue(this.configuration).getUserPossibleProceedingSupervisorsByJurId(e,t).then((e=>e(this.axios,this.basePath)))}}const pe=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",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},addPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/person",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},deletePerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("deletePerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},findKovsAndJurPersonsInTheSameAdministrativeDivision:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};oe("findKovsAndJurPersonsInTheSameAdministrativeDivision","regNameOrCode",t);const i="/person/kovs-and-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),a=new URL(i,re);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",ae(a,u);let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...o.headers},l.data=se(r,l,e),{url:le(a),options:l}},findPublicSectorInstitutions:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("findPublicSectorInstitutions","regNameOrCode",t);const o="/person/public-sector-institutions/{regNameOrCode}".replace("{regNameOrCode}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}},findRolesByDbName:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/personroles",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getAllActiveInstitutions:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getAllClassifierBusinessTypeDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/jur/businessTypes",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getJurPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPerson","personId",t);const r="/person/jur/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurPersonAncestors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonAncestors","jurPersonId",t);const r="/person/jur/ancestor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurPersonSuccessors:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonSuccessors","jurPersonId",t);const r="/person/jur/successor/{jurPersonId}".replace("{jurPersonId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurPersonsByEhakCode:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurPersonsByEhakCode","ehakCode",t);const r="/person/jur/byEhakCode/{ehakCode}".replace("{ehakCode}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getPerson:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getPerson","personId",t);const r="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getPersonDetails:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/person/details",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},refreshUpdateArPersonFromAR:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("refreshUpdateArPersonFromAR","regCode",t);const r="/person/jur/refresh/{regCode}".replace("{regCode}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},removeYlemyksusReference:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("removeYlemyksusReference","allyksusId",t);const r="/person/jur/removeYlemyksusReference/{allyksusId}".replace("{allyksusId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"PUT",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},updatePerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("updatePerson","personId",t);const o="/person/{personId}".replace("{personId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}}}}(e);return{async addAllyksusToJurPerson(n,r){const o=await t.addAllyksusToJurPerson(n,r);return ce(o,V(),ee,e)},async addPerson(n,r){const o=await t.addPerson(n,r);return ce(o,V(),ee,e)},async deletePerson(n,r){const o=await t.deletePerson(n,r);return ce(o,V(),ee,e)},async findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i){const a=await t.findKovsAndJurPersonsInTheSameAdministrativeDivision(n,r,o,i);return ce(a,V(),ee,e)},async findPublicSectorInstitutions(n,r,o){const i=await t.findPublicSectorInstitutions(n,r,o);return ce(i,V(),ee,e)},async findRolesByDbName(n){const r=await t.findRolesByDbName(n);return ce(r,V(),ee,e)},async getAllActiveInstitutions(n){const r=await t.getAllActiveInstitutions(n);return ce(r,V(),ee,e)},async getAllClassifierBusinessTypeDtos(n){const r=await t.getAllClassifierBusinessTypeDtos(n);return ce(r,V(),ee,e)},async getJurPerson(n,r){const o=await t.getJurPerson(n,r);return ce(o,V(),ee,e)},async getJurPersonAncestors(n,r){const o=await t.getJurPersonAncestors(n,r);return ce(o,V(),ee,e)},async getJurPersonSuccessors(n,r){const o=await t.getJurPersonSuccessors(n,r);return ce(o,V(),ee,e)},async getJurPersonsByEhakCode(n,r){const o=await t.getJurPersonsByEhakCode(n,r);return ce(o,V(),ee,e)},async getPerson(n,r){const o=await t.getPerson(n,r);return ce(o,V(),ee,e)},async getPersonDetails(n){const r=await t.getPersonDetails(n);return ce(r,V(),ee,e)},async refreshUpdateArPersonFromAR(n,r){const o=await t.refreshUpdateArPersonFromAR(n,r);return ce(o,V(),ee,e)},async removeYlemyksusReference(n,r){const o=await t.removeYlemyksusReference(n,r);return ce(o,V(),ee,e)},async updatePerson(n,r,o){const i=await t.updatePerson(n,r,o);return ce(i,V(),ee,e)}}};class fe extends te{addAllyksusToJurPerson(e,t){return pe(this.configuration).addAllyksusToJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}addPerson(e,t){return pe(this.configuration).addPerson(e,t).then((e=>e(this.axios,this.basePath)))}deletePerson(e,t){return pe(this.configuration).deletePerson(e,t).then((e=>e(this.axios,this.basePath)))}findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r){return pe(this.configuration).findKovsAndJurPersonsInTheSameAdministrativeDivision(e,t,n,r).then((e=>e(this.axios,this.basePath)))}findPublicSectorInstitutions(e,t,n){return pe(this.configuration).findPublicSectorInstitutions(e,t,n).then((e=>e(this.axios,this.basePath)))}findRolesByDbName(e){return pe(this.configuration).findRolesByDbName(e).then((e=>e(this.axios,this.basePath)))}getAllActiveInstitutions(e){return pe(this.configuration).getAllActiveInstitutions(e).then((e=>e(this.axios,this.basePath)))}getAllClassifierBusinessTypeDtos(e){return pe(this.configuration).getAllClassifierBusinessTypeDtos(e).then((e=>e(this.axios,this.basePath)))}getJurPerson(e,t){return pe(this.configuration).getJurPerson(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonAncestors(e,t){return pe(this.configuration).getJurPersonAncestors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonSuccessors(e,t){return pe(this.configuration).getJurPersonSuccessors(e,t).then((e=>e(this.axios,this.basePath)))}getJurPersonsByEhakCode(e,t){return pe(this.configuration).getJurPersonsByEhakCode(e,t).then((e=>e(this.axios,this.basePath)))}getPerson(e,t){return pe(this.configuration).getPerson(e,t).then((e=>e(this.axios,this.basePath)))}getPersonDetails(e){return pe(this.configuration).getPersonDetails(e).then((e=>e(this.axios,this.basePath)))}refreshUpdateArPersonFromAR(e,t){return pe(this.configuration).refreshUpdateArPersonFromAR(e,t).then((e=>e(this.axios,this.basePath)))}removeYlemyksusReference(e,t){return pe(this.configuration).removeYlemyksusReference(e,t).then((e=>e(this.axios,this.basePath)))}updatePerson(e,t,n){return pe(this.configuration).updatePerson(e,t,n).then((e=>e(this.axios,this.basePath)))}}const me=function(e){const t=function(e){return{searchPerson:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};oe("searchPerson","input",t);const i=new URL("/search/searchPerson",re);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),ae(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...o.headers},{url:le(i),options:s}}}}(e);return{async searchPerson(n,r,o,i){const a=await t.searchPerson(n,r,o,i);return ce(a,V(),ee,e)}}};class he extends te{searchPerson(e,t,n,r){return me(this.configuration).searchPerson(e,t,n,r).then((e=>e(this.axios,this.basePath)))}}const ge=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",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},addUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user",re);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(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",re);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...n},a={"Content-Type":"application/json"};ae(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=se(t,i,e),{url:le(r),options:i}},deleteUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("deleteUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},deleteUserRole:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("deleteUserRole","userRoleRelId",t);const r="/user/role/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},findUsersByRoleId:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("findUsersByRoleId","roleId",t);const r="/user/byroleid/{roleId}".replace("{roleId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getAllClassifierUserRoleDtos:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/user/roles/all",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",re);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};ae(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:le(n),options:o}},getJurUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getJurUsers","personId",t);const r="/jur/user/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getJurUsersWithoutGivenRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("getJurUsersWithoutGivenRole","personId",t),oe("getJurUsersWithoutGivenRole","roleId",n);const o="/jur/user/withoutrole/{personId}/{roleId}".replace("{personId}",encodeURIComponent(String(t))).replace("{roleId}",encodeURIComponent(String(n))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};ae(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:le(i),options:s}},getUser:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUser","userId",t);const r="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUserPossibleRecipients:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/user/possiblerecipients",re);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.searchInput=t),ae(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:le(r),options:i}},getUsers:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oe("getUsers","personId",t);const r="/user/usersByPersonId/{personId}".replace("{personId}",encodeURIComponent(String(t))),o=new URL(r,re);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};ae(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:le(o),options:a}},getUsersJurPerson:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("getUsersJurPerson","userId",t);const o="/user/jur/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};void 0!==n&&(l.valid=n),ae(i,l);let c=a&&a.headers?a.headers:{};return s.headers={...c,...r.headers},{url:le(i),options:s}},updateUser:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("updateUser","userId",t);const o="/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}},updateUserRole:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};oe("updateUserRole","userRoleRelId",t);const o="/user/modifyrole/{userRoleRelId}".replace("{userRoleRelId}",encodeURIComponent(String(t))),i=new URL(o,re);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={"Content-Type":"application/json"};ae(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=se(n,s,e),{url:le(i),options:s}}}}(e);return{async addRoleToUser(n,r){const o=await t.addRoleToUser(n,r);return ce(o,V(),ee,e)},async addUser(n,r){const o=await t.addUser(n,r);return ce(o,V(),ee,e)},async appointSubstituteUser(n,r){const o=await t.appointSubstituteUser(n,r);return ce(o,V(),ee,e)},async deleteUser(n,r){const o=await t.deleteUser(n,r);return ce(o,V(),ee,e)},async deleteUserRole(n,r){const o=await t.deleteUserRole(n,r);return ce(o,V(),ee,e)},async findUsersByRoleId(n,r){const o=await t.findUsersByRoleId(n,r);return ce(o,V(),ee,e)},async getAllClassifierUserRoleDtos(n){const r=await t.getAllClassifierUserRoleDtos(n);return ce(r,V(),ee,e)},async getHealth(n){const r=await t.getHealth(n);return ce(r,V(),ee,e)},async getJurUsers(n,r){const o=await t.getJurUsers(n,r);return ce(o,V(),ee,e)},async getJurUsersWithoutGivenRole(n,r,o){const i=await t.getJurUsersWithoutGivenRole(n,r,o);return ce(i,V(),ee,e)},async getUser(n,r){const o=await t.getUser(n,r);return ce(o,V(),ee,e)},async getUserPossibleRecipients(n,r){const o=await t.getUserPossibleRecipients(n,r);return ce(o,V(),ee,e)},async getUsers(n,r){const o=await t.getUsers(n,r);return ce(o,V(),ee,e)},async getUsersJurPerson(n,r,o){const i=await t.getUsersJurPerson(n,r,o);return ce(i,V(),ee,e)},async updateUser(n,r,o){const i=await t.updateUser(n,r,o);return ce(i,V(),ee,e)},async updateUserRole(n,r,o){const i=await t.updateUserRole(n,r,o);return ce(i,V(),ee,e)}}};class ve extends te{addRoleToUser(e,t){return ge(this.configuration).addRoleToUser(e,t).then((e=>e(this.axios,this.basePath)))}addUser(e,t){return ge(this.configuration).addUser(e,t).then((e=>e(this.axios,this.basePath)))}appointSubstituteUser(e,t){return ge(this.configuration).appointSubstituteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUser(e,t){return ge(this.configuration).deleteUser(e,t).then((e=>e(this.axios,this.basePath)))}deleteUserRole(e,t){return ge(this.configuration).deleteUserRole(e,t).then((e=>e(this.axios,this.basePath)))}findUsersByRoleId(e,t){return ge(this.configuration).findUsersByRoleId(e,t).then((e=>e(this.axios,this.basePath)))}getAllClassifierUserRoleDtos(e){return ge(this.configuration).getAllClassifierUserRoleDtos(e).then((e=>e(this.axios,this.basePath)))}getHealth(e){return ge(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getJurUsers(e,t){return ge(this.configuration).getJurUsers(e,t).then((e=>e(this.axios,this.basePath)))}getJurUsersWithoutGivenRole(e,t,n){return ge(this.configuration).getJurUsersWithoutGivenRole(e,t,n).then((e=>e(this.axios,this.basePath)))}getUser(e,t){return ge(this.configuration).getUser(e,t).then((e=>e(this.axios,this.basePath)))}getUserPossibleRecipients(e,t){return ge(this.configuration).getUserPossibleRecipients(e,t).then((e=>e(this.axios,this.basePath)))}getUsers(e,t){return ge(this.configuration).getUsers(e,t).then((e=>e(this.axios,this.basePath)))}getUsersJurPerson(e,t,n){return ge(this.configuration).getUsersJurPerson(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUser(e,t,n){return ge(this.configuration).updateUser(e,t,n).then((e=>e(this.axios,this.basePath)))}updateUserRole(e,t,n){return ge(this.configuration).updateUserRole(e,t,n).then((e=>e(this.axios,this.basePath)))}}class be{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 ye="http://localhost:8080".replace(/\/+$/,"");class xe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class we extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const Se="https://example.com",_e=function(e,t,n){if(null==n)throw new we(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Ee(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>Ee(e,t,n))):Object.keys(t).forEach((r=>Ee(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const ke=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];Ee(t,r),e.search=t.toString()},Ce=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||""},Te=function(e){return e.pathname+e.search+e.hash},Ie=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)}},Me=function(e){const t=function(e){return{findIncomingDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findIncomingDocuments","documentBaseQueryDto",t);const r=new URL("/documents/incomingdocuments",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findWorkingDocuments1:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findWorkingDocuments1","documentBaseQueryDto",t);const r=new URL("/documents/basedocuments",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async findIncomingDocuments(n,r){const o=await t.findIncomingDocuments(n,r);return Ie(o,V(),ye,e)},async findWorkingDocuments1(n,r){const o=await t.findWorkingDocuments1(n,r);return Ie(o,V(),ye,e)}}};class Oe extends xe{findIncomingDocuments(e,t){return Me(this.configuration).findIncomingDocuments(e,t).then((e=>e(this.axios,this.basePath)))}findWorkingDocuments1(e,t){return Me(this.configuration).findWorkingDocuments1(e,t).then((e=>e(this.axios,this.basePath)))}}const De=function(e){const t=function(e){return{searchDetailBuildings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("searchDetailBuildings","buildingSearchDto",t);const r=new URL("/search/buildings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},searchDetailDocuments:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("searchDetailDocuments","documentSearchDto",t);const r=new URL("/search/documents",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},searchDetailProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("searchDetailProceedings","proceedingSearchDto",t);const r=new URL("/search/proceedings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async searchDetailBuildings(n,r){const o=await t.searchDetailBuildings(n,r);return Ie(o,V(),ye,e)},async searchDetailDocuments(n,r){const o=await t.searchDetailDocuments(n,r);return Ie(o,V(),ye,e)},async searchDetailProceedings(n,r){const o=await t.searchDetailProceedings(n,r);return Ie(o,V(),ye,e)}}};class je extends xe{searchDetailBuildings(e,t){return De(this.configuration).searchDetailBuildings(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailDocuments(e,t){return De(this.configuration).searchDetailDocuments(e,t).then((e=>e(this.axios,this.basePath)))}searchDetailProceedings(e,t){return De(this.configuration).searchDetailProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}const Ae=function(e){const t=function(e){return{findOperationInvitations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findOperationInvitations","operationQueryDto",t);const r=new URL("/myoperations/operationinvitations",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findOperations:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findOperations","operationQueryDto",t);const r=new URL("/myoperations/myoperations",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findOperationsToComment:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findOperationsToComment","operationQueryDto",t);const r=new URL("/myoperations/operationstocomment",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async findOperationInvitations(n,r){const o=await t.findOperationInvitations(n,r);return Ie(o,V(),ye,e)},async findOperations(n,r){const o=await t.findOperations(n,r);return Ie(o,V(),ye,e)},async findOperationsToComment(n,r){const o=await t.findOperationsToComment(n,r);return Ie(o,V(),ye,e)}}};class Pe extends xe{findOperationInvitations(e,t){return Ae(this.configuration).findOperationInvitations(e,t).then((e=>e(this.axios,this.basePath)))}findOperations(e,t){return Ae(this.configuration).findOperations(e,t).then((e=>e(this.axios,this.basePath)))}findOperationsToComment(e,t){return Ae(this.configuration).findOperationsToComment(e,t).then((e=>e(this.axios,this.basePath)))}}const Re=function(e){const t=function(e){return{findAreaProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findAreaProceedings","proceedingQueryDto",t);const r=new URL("/myproceedings/my-area-proceedings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}},findProceedings:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_e("findProceedings","myProceedingsRequestDto",t);const r=new URL("/myproceedings/myproceedings",Se);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};ke(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ce(t,i,e),{url:Te(r),options:i}}}}(e);return{async findAreaProceedings(n,r){const o=await t.findAreaProceedings(n,r);return Ie(o,V(),ye,e)},async findProceedings(n,r){const o=await t.findProceedings(n,r);return Ie(o,V(),ye,e)}}};class Ne extends xe{findAreaProceedings(e,t){return Re(this.configuration).findAreaProceedings(e,t).then((e=>e(this.axios,this.basePath)))}findProceedings(e,t){return Re(this.configuration).findProceedings(e,t).then((e=>e(this.axios,this.basePath)))}}class Le{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 Fe="http://localhost:8080".replace(/\/+$/,"");class Ue{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fe,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Be extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const ze="https://example.com",Ve=function(e,t,n){if(null==n)throw new Be(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Ke=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 $e(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>$e(e,t,n))):Object.keys(t).forEach((r=>$e(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const He=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];$e(t,r),e.search=t.toString()},Ye=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||""},We=function(e){return e.pathname+e.search+e.hash},Ge=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 qe=function(e){const t=function(e){return{addAuthz:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("addAuthz","documentType",t),Ve("addAuthz","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/addAuthz".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},apiVersion:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/version",ze);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};He(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:We(n),options:o}},autoUpdateOwnershipType:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/document/updateOwnershipType",ze);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};He(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:We(n),options:o}},createDoDokuDokuRel:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("createDoDokuDokuRel","documentId",t),Ve("createDoDokuDokuRel","addEntityDto",n);const o="/document/{documentId}/createDoDokuDokuRel".replace("{documentId}",encodeURIComponent(String(t))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Ke(l,e),l["Content-Type"]="application/json",He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=Ye(n,s,e),{url:We(i),options:s}},createDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("createDocument","documentType",t);const o="/document/{documentType}".replace("{documentType}",encodeURIComponent(String(t))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Ke(l,e),l["Content-Type"]="application/json",He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=Ye(n,s,e),{url:We(i),options:s}},createNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("createNewVersion","documentType",t),Ve("createNewVersion","applicationNumber",n),Ve("createNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/new".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},deleteApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("deleteApplicationByNumber","documentType",t),Ve("deleteApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"DELETE",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},endProceedingCircleDocuments:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("endProceedingCircleDocuments","documentType",t),Ve("endProceedingCircleDocuments","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},getAccessRights:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getAccessRights","documentType",t),Ve("getAccessRights","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/rights".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},getApplicationById:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ve("getApplicationById","documentId",t);const r="/document/{documentId}".replace("{documentId}",encodeURIComponent(String(t))),o=new URL(r,ze);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await Ke(s,e),He(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:We(o),options:a}},getApplicationByNumber:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getApplicationByNumber","documentType",t),Ve("getApplicationByNumber","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},getApplicationByNumberOld:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getApplicationByNumberOld","ehrCode",t),Ve("getApplicationByNumberOld","applicationNumber",n);const o="/document/old/{ehrCode}/{applicationNumber}".replace("{ehrCode}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},getApplicationByNumberWithVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("getApplicationByNumberWithVersion","documentType",t),Ve("getApplicationByNumberWithVersion","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"GET",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},getApplicationStateFee:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("getApplicationStateFee","documentType",t),Ve("getApplicationStateFee","applicationNumber",n),Ve("getApplicationStateFee","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/stateFee".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},getApplicationStateFeeOfVersion:async function(t,n,r,o){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};Ve("getApplicationStateFeeOfVersion","documentType",t),Ve("getApplicationStateFeeOfVersion","applicationNumber",n),Ve("getApplicationStateFeeOfVersion","version",r),Ve("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,ze);let l;e&&(l=e.baseOptions);const c={method:"POST",...l,...i},u={};await Ke(u,e),u["Content-Type"]="application/json",He(s,{});let d=l&&l.headers?l.headers:{};return c.headers={...u,...d,...i.headers},c.data=Ye(o,c,e),{url:We(s),options:c}},getDocumentFileRels:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ve("getDocumentFileRels","docNr",t);const r=new URL("/document/fileRels",ze);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={},s={};await Ke(a,e),void 0!==t&&(s.docNr=t),He(r,s);let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},{url:We(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",ze);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...n},a={};void 0!==t&&(a.ehrCode=t),He(r,a);let s=o&&o.headers?o.headers:{};return i.headers={...s,...n.headers},{url:We(r),options:i}},getHealth:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/health",ze);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};He(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:We(n),options:o}},getLastStateHistory:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("getLastStateHistory","documentType",t),Ve("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,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},initializeAds:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("initializeAds","documentType",t),Ve("initializeAds","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/initAds".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},mergeInstitutions:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ve("mergeInstitutions","mergeInstitutionsDTO",t);const r=new URL("/document/merge",ze);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={"Content-Type":"application/json"};He(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=Ye(t,i,e),{url:We(r),options:i}},reSubmit:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("reSubmit","documentType",t),Ve("reSubmit","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},recalculatestate:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("recalculatestate","documentType",t),Ve("recalculatestate","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/recalculatedetailstate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}},revertCreateNewVersion:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("revertCreateNewVersion","documentType",t),Ve("revertCreateNewVersion","applicationNumber",n),Ve("revertCreateNewVersion","versionDto",r);const i="/document/{documentType}/{applicationNumber}/version/revert".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},saveAndValidate:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("saveAndValidate","documentType",t),Ve("saveAndValidate","applicationNumber",n),Ve("saveAndValidate","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/saveAndValidate".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},saveApplicationByNumber:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("saveApplicationByNumber","documentType",t),Ve("saveApplicationByNumber","applicationNumber",n),Ve("saveApplicationByNumber","applicationDto",r);const i="/document/{documentType}/{applicationNumber}".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},setWaterExtractionPointsTestDates:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("setWaterExtractionPointsTestDates","documentType",t),Ve("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,ze);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},setWaterExtractionPointsTestDatesForBuilding:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("setWaterExtractionPointsTestDatesForBuilding","documentType",t),Ve("setWaterExtractionPointsTestDatesForBuilding","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},submitStraightToRegistry:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("submitStraightToRegistry","documentType",t),Ve("submitStraightToRegistry","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToRegistry".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},submitToProcessing:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("submitToProcessing","documentType",t),Ve("submitToProcessing","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/submitToProcessing".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await Ke(l,e),He(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},{url:We(i),options:s}},submitToSigning:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("submitToSigning","documentType",t),Ve("submitToSigning","applicationNumber",n),Ve("submitToSigning","applicationDto",r);const i="/document/{documentType}/{applicationNumber}/submitToSigning".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),a=new URL(i,ze);let s;e&&(s=e.baseOptions);const l={method:"PUT",...s,...o},c={};await Ke(c,e),c["Content-Type"]="application/json",He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},l.data=Ye(r,l,e),{url:We(a),options:l}},submitToSupervisorProcessing:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Ve("submitToSupervisorProcessing","documentType",t),Ve("submitToSupervisorProcessing","applicationNumber",n),Ve("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,ze);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...o},c={};await Ke(c,e),He(a,{});let u=s&&s.headers?s.headers:{};return l.headers={...c,...u,...o.headers},{url:We(a),options:l}},validateSavedDocument:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ve("validateSavedDocument","documentType",t),Ve("validateSavedDocument","applicationNumber",n);const o="/document/{documentType}/{applicationNumber}/completeApplicationChecks".replace("{documentType}",encodeURIComponent(String(t))).replace("{applicationNumber}",encodeURIComponent(String(n))),i=new URL(o,ze);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};He(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:We(i),options:s}}}}(e);return{async addAuthz(n,r,o){const i=await t.addAuthz(n,r,o);return Ge(i,V(),Fe,e)},async apiVersion(n){const r=await t.apiVersion(n);return Ge(r,V(),Fe,e)},async autoUpdateOwnershipType(n){const r=await t.autoUpdateOwnershipType(n);return Ge(r,V(),Fe,e)},async createDoDokuDokuRel(n,r,o){const i=await t.createDoDokuDokuRel(n,r,o);return Ge(i,V(),Fe,e)},async createDocument(n,r,o){const i=await t.createDocument(n,r,o);return Ge(i,V(),Fe,e)},async createNewVersion(n,r,o,i){const a=await t.createNewVersion(n,r,o,i);return Ge(a,V(),Fe,e)},async deleteApplicationByNumber(n,r,o){const i=await t.deleteApplicationByNumber(n,r,o);return Ge(i,V(),Fe,e)},async endProceedingCircleDocuments(n,r,o,i){const a=await t.endProceedingCircleDocuments(n,r,o,i);return Ge(a,V(),Fe,e)},async getAccessRights(n,r,o){const i=await t.getAccessRights(n,r,o);return Ge(i,V(),Fe,e)},async getApplicationById(n,r){const o=await t.getApplicationById(n,r);return Ge(o,V(),Fe,e)},async getApplicationByNumber(n,r,o){const i=await t.getApplicationByNumber(n,r,o);return Ge(i,V(),Fe,e)},async getApplicationByNumberOld(n,r,o){const i=await t.getApplicationByNumberOld(n,r,o);return Ge(i,V(),Fe,e)},async getApplicationByNumberWithVersion(n,r,o,i){const a=await t.getApplicationByNumberWithVersion(n,r,o,i);return Ge(a,V(),Fe,e)},async getApplicationStateFee(n,r,o,i){const a=await t.getApplicationStateFee(n,r,o,i);return Ge(a,V(),Fe,e)},async getApplicationStateFeeOfVersion(n,r,o,i,a){const s=await t.getApplicationStateFeeOfVersion(n,r,o,i,a);return Ge(s,V(),Fe,e)},async getDocumentFileRels(n,r){const o=await t.getDocumentFileRels(n,r);return Ge(o,V(),Fe,e)},async getDotysBasedOnUserRights(n,r){const o=await t.getDotysBasedOnUserRights(n,r);return Ge(o,V(),Fe,e)},async getHealth(n){const r=await t.getHealth(n);return Ge(r,V(),Fe,e)},async getLastStateHistory(n,r,o){const i=await t.getLastStateHistory(n,r,o);return Ge(i,V(),Fe,e)},async initializeAds(n,r,o){const i=await t.initializeAds(n,r,o);return Ge(i,V(),Fe,e)},async mergeInstitutions(n,r){const o=await t.mergeInstitutions(n,r);return Ge(o,V(),Fe,e)},async reSubmit(n,r,o,i){const a=await t.reSubmit(n,r,o,i);return Ge(a,V(),Fe,e)},async recalculatestate(n,r,o){const i=await t.recalculatestate(n,r,o);return Ge(i,V(),Fe,e)},async revertCreateNewVersion(n,r,o,i){const a=await t.revertCreateNewVersion(n,r,o,i);return Ge(a,V(),Fe,e)},async saveAndValidate(n,r,o,i){const a=await t.saveAndValidate(n,r,o,i);return Ge(a,V(),Fe,e)},async saveApplicationByNumber(n,r,o,i){const a=await t.saveApplicationByNumber(n,r,o,i);return Ge(a,V(),Fe,e)},async setWaterExtractionPointsTestDates(n,r,o){const i=await t.setWaterExtractionPointsTestDates(n,r,o);return Ge(i,V(),Fe,e)},async setWaterExtractionPointsTestDatesForBuilding(n,r,o,i){const a=await t.setWaterExtractionPointsTestDatesForBuilding(n,r,o,i);return Ge(a,V(),Fe,e)},async submitStraightToRegistry(n,r,o){const i=await t.submitStraightToRegistry(n,r,o);return Ge(i,V(),Fe,e)},async submitToProcessing(n,r,o){const i=await t.submitToProcessing(n,r,o);return Ge(i,V(),Fe,e)},async submitToSigning(n,r,o,i){const a=await t.submitToSigning(n,r,o,i);return Ge(a,V(),Fe,e)},async submitToSupervisorProcessing(n,r,o,i){const a=await t.submitToSupervisorProcessing(n,r,o,i);return Ge(a,V(),Fe,e)},async validateSavedDocument(n,r,o){const i=await t.validateSavedDocument(n,r,o);return Ge(i,V(),Fe,e)}}};class Je extends Ue{addAuthz(e,t,n){return qe(this.configuration).addAuthz(e,t,n).then((e=>e(this.axios,this.basePath)))}apiVersion(e){return qe(this.configuration).apiVersion(e).then((e=>e(this.axios,this.basePath)))}autoUpdateOwnershipType(e){return qe(this.configuration).autoUpdateOwnershipType(e).then((e=>e(this.axios,this.basePath)))}createDoDokuDokuRel(e,t,n){return qe(this.configuration).createDoDokuDokuRel(e,t,n).then((e=>e(this.axios,this.basePath)))}createDocument(e,t,n){return qe(this.configuration).createDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}createNewVersion(e,t,n,r){return qe(this.configuration).createNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteApplicationByNumber(e,t,n){return qe(this.configuration).deleteApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}endProceedingCircleDocuments(e,t,n,r){return qe(this.configuration).endProceedingCircleDocuments(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getAccessRights(e,t,n){return qe(this.configuration).getAccessRights(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationById(e,t){return qe(this.configuration).getApplicationById(e,t).then((e=>e(this.axios,this.basePath)))}getApplicationByNumber(e,t,n){return qe(this.configuration).getApplicationByNumber(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberOld(e,t,n){return qe(this.configuration).getApplicationByNumberOld(e,t,n).then((e=>e(this.axios,this.basePath)))}getApplicationByNumberWithVersion(e,t,n,r){return qe(this.configuration).getApplicationByNumberWithVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFee(e,t,n,r){return qe(this.configuration).getApplicationStateFee(e,t,n,r).then((e=>e(this.axios,this.basePath)))}getApplicationStateFeeOfVersion(e,t,n,r,o){return qe(this.configuration).getApplicationStateFeeOfVersion(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}getDocumentFileRels(e,t){return qe(this.configuration).getDocumentFileRels(e,t).then((e=>e(this.axios,this.basePath)))}getDotysBasedOnUserRights(e,t){return qe(this.configuration).getDotysBasedOnUserRights(e,t).then((e=>e(this.axios,this.basePath)))}getHealth(e){return qe(this.configuration).getHealth(e).then((e=>e(this.axios,this.basePath)))}getLastStateHistory(e,t,n){return qe(this.configuration).getLastStateHistory(e,t,n).then((e=>e(this.axios,this.basePath)))}initializeAds(e,t,n){return qe(this.configuration).initializeAds(e,t,n).then((e=>e(this.axios,this.basePath)))}mergeInstitutions(e,t){return qe(this.configuration).mergeInstitutions(e,t).then((e=>e(this.axios,this.basePath)))}reSubmit(e,t,n,r){return qe(this.configuration).reSubmit(e,t,n,r).then((e=>e(this.axios,this.basePath)))}recalculatestate(e,t,n){return qe(this.configuration).recalculatestate(e,t,n).then((e=>e(this.axios,this.basePath)))}revertCreateNewVersion(e,t,n,r){return qe(this.configuration).revertCreateNewVersion(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveAndValidate(e,t,n,r){return qe(this.configuration).saveAndValidate(e,t,n,r).then((e=>e(this.axios,this.basePath)))}saveApplicationByNumber(e,t,n,r){return qe(this.configuration).saveApplicationByNumber(e,t,n,r).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDates(e,t,n){return qe(this.configuration).setWaterExtractionPointsTestDates(e,t,n).then((e=>e(this.axios,this.basePath)))}setWaterExtractionPointsTestDatesForBuilding(e,t,n,r){return qe(this.configuration).setWaterExtractionPointsTestDatesForBuilding(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitStraightToRegistry(e,t,n){return qe(this.configuration).submitStraightToRegistry(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToProcessing(e,t,n){return qe(this.configuration).submitToProcessing(e,t,n).then((e=>e(this.axios,this.basePath)))}submitToSigning(e,t,n,r){return qe(this.configuration).submitToSigning(e,t,n,r).then((e=>e(this.axios,this.basePath)))}submitToSupervisorProcessing(e,t,n,r){return qe(this.configuration).submitToSupervisorProcessing(e,t,n,r).then((e=>e(this.axios,this.basePath)))}validateSavedDocument(e,t,n){return qe(this.configuration).validateSavedDocument(e,t,n).then((e=>e(this.axios,this.basePath)))}}class Xe{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 Ze="https://devkluster.ehr.ee/api/file-upload-api/v1".replace(/\/+$/,"");class Qe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class et extends Error{constructor(e,t){super(t),this.name="RequiredError",this.field=e}}const tt="https://example.com",nt=function(e,t,n){if(null==n)throw new et(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},rt=async function(e,t){if(t&&t.accessToken){const n="function"==typeof t.accessToken?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+n}},ot=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()},it=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||""},at=function(e){return e.pathname+e.search+e.hash},st=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)}},lt=function(e){const t=function(e){return{cloneFilesAndCreateRels:async function(t,n,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};nt("cloneFilesAndCreateRels","fileIds",t);const i=new URL("/fileClone",tt);let a;e&&(a=e.baseOptions);const s={method:"POST",...a,...o},l={},c={};await rt(l,e),t&&(c.fileIds=t),void 0!==n&&(c.docNr=n),void 0!==r&&(c.relType=r),ot(i,c);let u=a&&a.headers?a.headers:{};return s.headers={...l,...u,...o.headers},{url:at(i),options:s}},deleteFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nt("deleteFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,tt);let i;e&&(i=e.baseOptions);const a={method:"DELETE",...i,...n},s={};await rt(s,e),ot(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:at(o),options:a}},downloadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nt("downloadFile","fileId",t);const r="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),o=new URL(r,tt);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n},s={};await rt(s,e),ot(o,{});let l=i&&i.headers?i.headers:{};return a.headers={...s,...l,...n.headers},{url:at(o),options:a}},updateFile:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};nt("updateFile","fileId",t);const o="/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),i=new URL(o,tt);let a;e&&(a=e.baseOptions);const s={method:"PUT",...a,...r},l={};await rt(l,e),l["Content-Type"]="application/json",ot(i,{});let c=a&&a.headers?a.headers:{};return s.headers={...l,...c,...r.headers},s.data=it(n,s,e),{url:at(i),options:s}},updateFileInfo:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nt("updateFileInfo","doFail",t);const r=new URL("/file/info",tt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};await rt(a,e),a["Content-Type"]="application/json",ot(r,{});let s=o&&o.headers?o.headers:{};return i.headers={...a,...s,...n.headers},i.data=it(t,i,e),{url:at(r),options:i}},uploadFile:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new URL("/file",tt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={},s=new(e&&e.formDataCtor||FormData);await rt(a,e),void 0!==t&&s.append("file",t),a["Content-Type"]="multipart/form-data",ot(r,{});let l=o&&o.headers?o.headers:{};return i.headers={...a,...l,...n.headers},i.data=s,{url:at(r),options:i}},uploadFileWithFileInfo:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=new URL("/fileWithInfo",tt);let i;e&&(i=e.baseOptions);const a={method:"POST",...i,...r},s={},l=new(e&&e.formDataCtor||FormData);await rt(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",ot(o,{});let c=i&&i.headers?i.headers:{};return a.headers={...s,...c,...r.headers},a.data=l,{url:at(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",tt);let s;e&&(s=e.baseOptions);const l={method:"POST",...s,...i},c={},u=new(e&&e.formDataCtor||FormData);await rt(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",ot(a,{});let d=s&&s.headers?s.headers:{};return l.headers={...c,...d,...i.headers},l.data=u,{url:at(a),options:l}}}}(e);return{async cloneFilesAndCreateRels(n,r,o,i){const a=await t.cloneFilesAndCreateRels(n,r,o,i);return st(a,V(),Ze,e)},async deleteFile(n,r){const o=await t.deleteFile(n,r);return st(o,V(),Ze,e)},async downloadFile(n,r){const o=await t.downloadFile(n,r);return st(o,V(),Ze,e)},async updateFile(n,r,o){const i=await t.updateFile(n,r,o);return st(i,V(),Ze,e)},async updateFileInfo(n,r){const o=await t.updateFileInfo(n,r);return st(o,V(),Ze,e)},async uploadFile(n,r){const o=await t.uploadFile(n,r);return st(o,V(),Ze,e)},async uploadFileWithFileInfo(n,r,o){const i=await t.uploadFileWithFileInfo(n,r,o);return st(i,V(),Ze,e)},async uploadFileWithFileInfoAndDocRel(n,r,o,i,a){const s=await t.uploadFileWithFileInfoAndDocRel(n,r,o,i,a);return st(s,V(),Ze,e)}}};class ct extends Qe{cloneFilesAndCreateRels(e,t,n,r){return lt(this.configuration).cloneFilesAndCreateRels(e,t,n,r).then((e=>e(this.axios,this.basePath)))}deleteFile(e,t){return lt(this.configuration).deleteFile(e,t).then((e=>e(this.axios,this.basePath)))}downloadFile(e,t){return lt(this.configuration).downloadFile(e,t).then((e=>e(this.axios,this.basePath)))}updateFile(e,t,n){return lt(this.configuration).updateFile(e,t,n).then((e=>e(this.axios,this.basePath)))}updateFileInfo(e,t){return lt(this.configuration).updateFileInfo(e,t).then((e=>e(this.axios,this.basePath)))}uploadFile(e,t){return lt(this.configuration).uploadFile(e,t).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfo(e,t,n){return lt(this.configuration).uploadFileWithFileInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}uploadFileWithFileInfoAndDocRel(e,t,n,r,o){return lt(this.configuration).uploadFileWithFileInfoAndDocRel(e,t,n,r,o).then((e=>e(this.axios,this.basePath)))}}class ut{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 dt="https://devkluster.ehr.ee/api/yld-esi/v1".replace(/\/+$/,"");class pt{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dt,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V();this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class ft extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const mt="https://example.com",ht=function(e,t,n){if(null==n)throw new ft(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function gt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";null!=t&&("object"==typeof t?Array.isArray(t)?t.forEach((t=>gt(e,t,n))):Object.keys(t).forEach((r=>gt(e,t[r],`${n}${""!==n?".":""}${r}`))):e.has(n)?e.append(n,t):e.set(n,t))}const vt=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];gt(t,r),e.search=t.toString()},bt=function(e){return e.pathname+e.search+e.hash},yt=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 xt=function(e){return{esileht:async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht("esileht","id",t),ht("esileht","language",n);const o="/public/page/{id}/{language}".replace("{id}",encodeURIComponent(String(t))).replace("{language}",encodeURIComponent(String(n))),i=new URL(o,mt);let a;e&&(a=e.baseOptions);const s={method:"GET",...a,...r};vt(i,{});let l=a&&a.headers?a.headers:{};return s.headers={...l,...r.headers},{url:bt(i),options:s}},lehed:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages",mt);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};vt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:bt(n),options:o}},lehedId:async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=new URL("/api/pages/dotyid",mt);let r;e&&(r=e.baseOptions);const o={method:"GET",...r,...t};vt(n,{});let i=r&&r.headers?r.headers:{};return o.headers={...i,...t.headers},{url:bt(n),options:o}},leht:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht("leht","id",t);const r="/api/pages/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(r,mt);let i;e&&(i=e.baseOptions);const a={method:"GET",...i,...n};vt(o,{});let s=i&&i.headers?i.headers:{};return a.headers={...s,...n.headers},{url:bt(o),options:a}},lehtdSave:async function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ht("lehtdSave","esileht",t);const r=new URL("/api/pages",mt);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...n},a={};a["Content-Type"]="application/json",vt(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:bt(r),options:i}}}},wt=function(e){const t=xt(e);return{async esileht(n,r,o){const i=await t.esileht(n,r,o);return yt(i,V(),dt,e)},async lehed(n){const r=await t.lehed(n);return yt(r,V(),dt,e)},async lehedId(n){const r=await t.lehedId(n);return yt(r,V(),dt,e)},async leht(n,r){const o=await t.leht(n,r);return yt(o,V(),dt,e)},async lehtdSave(n,r){const o=await t.lehtdSave(n,r);return yt(o,V(),dt,e)}}};class St extends pt{esileht(e,t,n){return wt(this.configuration).esileht(e,t,n).then((e=>e(this.axios,this.basePath)))}lehed(e){return wt(this.configuration).lehed(e).then((e=>e(this.axios,this.basePath)))}lehedId(e){return wt(this.configuration).lehedId(e).then((e=>e(this.axios,this.basePath)))}leht(e,t){return wt(this.configuration).leht(e,t).then((e=>e(this.axios,this.basePath)))}lehtdSave(e,t){return wt(this.configuration).lehtdSave(e,t).then((e=>e(this.axios,this.basePath)))}}class _t{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 Et={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},kt={proceedingApiService:new Ne(new Le({basePath:Et.myViewsApiEndpoint})),classifierApiService:new Z(new Q({basePath:Et.classifierApiEndpoint})),personApiService:new fe(new be({basePath:Et.userApiEndpoint})),userApiService:new ve(new be({basePath:Et.userApiEndpoint})),myDocumentBaseApiService:new Oe(new Le({basePath:Et.myViewsApiEndpoint})),documentApiService:new Je(new Xe({basePath:Et.documentApiEndpoint})),fileApiService:new ct(new ut({basePath:Et.fileUploadApiEndpoint})),frontPageApi:new St(new _t({basePath:Et.frontPageApiEndpoint})),institutionKovEndpointApi:new de(new be({basePath:Et.userApiEndpoint}))};let Ct=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 Tt=[Ct.DO_DOKUSEIS_KEHTETU,Ct.DO_DOKUSEIS_TUNNIST_KEHTETUKS,Ct.DO_DOKUSEIS_REG_KANTUD,Ct.DO_DOKUSEIS_TAGASTATUD,Ct.DO_DOKUSEIS_KEELDUTUD,Ct.DO_DOKUSEIS_TYHISTATUD,Ct.DO_DOKUSEIS_LOOBUTUD,Ct.DO_DOKUSEIS_ALLKIRJASTATUD,Ct.DO_DOKUSEIS_MENETLETUD,Ct.DO_DOKUSEIS_LUBATUD,Ct.DO_DOKUSEIS_LUB_TEAV,Ct.DO_DOKUSEIS_TEAVITATUD,Ct.DO_DOKUSEIS_ANTUD,Ct.DO_DOKUSEIS_KEHTIV],It=[Ct.DO_DOKUSEIS_ESITATUD,Ct.DO_DOKUSEIS_MENETLUSES],Mt=[Ct.DO_DOKUSEIS_ESITATUD,Ct.DO_DOKUSEIS_KOOSTAMISEL,Ct.DO_DOKUSEIS_EELNOU_AKTIIVNE,Ct.DO_DOKUSEIS_ALLKIRJASTAMISEL,Ct.DO_DOKUSEIS_MENETLUSES,Ct.DO_DOKUSEIS_TAIENDAMISEL,Ct.DO_DOKUSEIS_MUUTMISEL],Ot="SIGNING_DOCUMENTS",Dt="WORKING_DOCUMENTS",jt="FINISHED_DOCUMENTS",At="INCOMING_DOCUMENTS",Pt="MY_APPROVALS",Rt="MY_OPINIONS",Nt="MY_INVOLVEMENTS",Lt="MY_OPERATIONS",Ft="OPERATIONS_TO_COMMENT",Ut="OPERATION_INVITATIONS",Bt="PROCEEDINGS_TO_COMMENT",zt="BUILDINGS_SEARCH";let Vt=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}({}),Kt=function(e){return e.Default="default",e.Info="info",e.Success="success",e.Warning="warning",e.Danger="danger",e}({}),$t=function(e){return e.Danger="danger",e.Default="neutral",e.Info="brand",e.Success="success",e.Warning="warning",e}({});const Ht="BUILDING",Yt="PROCEEDING",Wt="DOCUMENT";let Gt=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 qt=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}({}),Jt=function(e){return e.Proceeding="PROCEEDING",e.Document="DOCUMENT",e.Operation="OPERATION",e}({}),Xt=function(e){return e.PlanningsProceedings="PlanningsProceedings",e.PlanningsInstitution="PlanningsInstitution",e.PlanningsOngoing="PlanningsOngoing",e.PlanningsCompleted="PlanningsCompleted",e}({});const Zt="12975",Qt="12976",en="11274",tn="11275",nn="12977",rn="12978",on="11261",an=["11272","12972",Zt,"12974",rn,tn],sn=["11273","12973",Qt,"12971",nn,en],ln=[Zt,Qt],cn={[Qt]:nn,[Zt]:rn},un={[Qt]:en,[Zt]:tn},dn=[...["12510","12511","12512","12513","12514","14102","14103","14104","14105"],...[on,"14101"]],pn=(0,e.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 kt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:dn,states:Mt})).data)&&void 0!==t?t:[]})),fn=(0,e.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 kt.proceedingApiService.findProceedings({userId:r,personId:o,dotys:dn,states:Mt});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),mn=(0,e.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 kt.myDocumentBaseApiService.findIncomingDocuments({userId:void 0,personId:r,dotys:dn,states:It});return null!==(t=null==o?void 0:o.data)&&void 0!==t?t:[]})),hn=(0,e.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 kt.myDocumentBaseApiService.findWorkingDocuments1({userId:r,personId:o,dotys:dn,states:Tt});return null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[]})),gn=(0,e.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(fn.pending,(e=>{e.planningProceedingsLoading=!0})),e.addCase(fn.fulfilled,((e,t)=>{var n;e.planningProceedingsLoading=!1,e.planningProceedings=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(fn.rejected,(e=>{e.planningProceedingsLoading=!1,e.planningProceedingsError=!0})),e.addCase(mn.pending,(e=>{e.incomingDocumentsLoading=!0})),e.addCase(mn.fulfilled,((e,t)=>{var n;e.incomingDocumentsLoading=!1,e.incomingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(mn.rejected,(e=>{e.incomingDocumentsLoading=!1,e.incomingDocumentsError=!0})),e.addCase(pn.pending,(e=>{e.ongoingDocumentsLoading=!0})),e.addCase(pn.fulfilled,((e,t)=>{var n;e.ongoingDocumentsLoading=!1,e.ongoingDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(pn.rejected,(e=>{e.ongoingDocumentsLoading=!1,e.ongoingDocumentsError=!0})),e.addCase(hn.pending,(e=>{e.finishedDocumentsLoading=!0})),e.addCase(hn.fulfilled,((e,t)=>{var n;e.finishedDocumentsLoading=!1,e.finishedDocuments=null!==(n=t.payload)&&void 0!==n?n:[]})),e.addCase(hn.rejected,(e=>{e.finishedDocumentsLoading=!1,e.finishedDocumentsError=!0}))}}),vn=(0,e.createSelector)((e=>({proceedings:e.myViewsPage.myPlannings.planningProceedings,isLoading:e.myViewsPage.myPlannings.planningProceedingsLoading,isError:e.myViewsPage.myPlannings.planningProceedingsError})),(e=>e)),bn=(0,e.createSelector)((e=>({documents:e.myViewsPage.myPlannings.incomingDocuments,isLoading:e.myViewsPage.myPlannings.incomingDocumentsLoading,isError:e.myViewsPage.myPlannings.incomingDocumentsError})),(e=>e)),yn=(0,e.createSelector)((e=>({documents:e.myViewsPage.myPlannings.ongoingDocuments,isLoading:e.myViewsPage.myPlannings.ongoingDocumentsLoading,isError:e.myViewsPage.myPlannings.ongoingDocumentsError})),(e=>e)),{}=((0,e.createSelector)((e=>({documents:e.myViewsPage.myPlannings.finishedDocuments,isLoading:e.myViewsPage.myPlannings.finishedDocumentsLoading,isError:e.myViewsPage.myPlannings.finishedDocumentsError})),(e=>e)),gn.actions),xn=gn.reducer,wn=(0,e.combineReducers)({filter:c,myDocuments:v,myProceedings:_,myOperations:I,detailSearch:A,notifications:B,myPlannings:xn});var Sn=o(953),_n=o.t(Sn,2),En=o.n(Sn);const kn=require("react-intl"),Cn=require("ehr-components");var Tn=o(848);const In=11272,Mn=e=>{var t;let{userInfo:n}=e;const r=(0,kn.useIntl)(),[o,i]=(0,Sn.useState)(!0),[a,s]=(0,Sn.useState)(""),[l,c]=(0,Sn.useState)(""),u=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===Gt.MKM;(0,Sn.useEffect)((()=>{u?d():p()}),[]);const d=async()=>{kt.frontPageApi.leht(In).then((e=>{const t=e.data;t[0].body&&(s(t[0].body),c(t[0].body))}))},p=async()=>{kt.frontPageApi.esileht(In,"ee").then((e=>{const t=e.data;t.body&&(s(t.body),c(t.body))}))};return(0,Tn.jsx)(Cn.Section,{collapsed:!1,title:"my_admin_proceedings.admin_proceedings_reminder",showSettings:!0,children:(0,Tn.jsxs)("div",{className:o?"d-flex justify-content-between":"",children:[(0,Tn.jsx)(Cn.RichTextEditor,{placeholder:o?"":r.formatMessage({id:"placeholder.writing"}),onChange:e=>c(e),value:l,readOnly:o,view:o}),u&&o&&(0,Tn.jsx)(Cn.Link,{onClick:()=>i(!1),type:"edit"}),!o&&(0,Tn.jsxs)("div",{className:"pt-2",children:[(0,Tn.jsx)(Cn.Button,{colourScheme:"light",squared:!0,onClick:()=>{c(a),i(!0)},children:r.formatMessage({id:"button.cancel"})}),(0,Tn.jsx)(Cn.Button,{className:"float-right",colourScheme:"success",squared:!0,onClick:()=>(async()=>{i(!o),s(l),kt.frontPageApi.lehtdSave({id:In,body:l,language:"ee"})})(),children:r.formatMessage({id:"button.save"})})]})]})})},On={default:"header-arrow-up-down-icon",des:"header-arrow-down-icon",asc:"header-arrow-up-icon"},Dn=e=>(0,Tn.jsx)(Cn.Tooltip,{content:(0,Tn.jsx)(Cn.Text,{raw:e.tooltipText}),placement:"bottom",theme:"dark",children:e.functionCall?(0,Tn.jsx)(Cn.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,Tn.jsx)(Cn.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),jn=e=>{let{proceedings:t,linkGen:n}=e;const r=(0,kn.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,Tn.jsx)(Dn,{linkName:t.proceedingNr,tooltipText:"detailsearch.tooltip.open_proceeding",functionCall:e=>{n(!0,e,void 0,`administrativeActProceeding/${t.proceedingNr}`)}}):(0,Tn.jsx)(Tn.Fragment,{children:"-"});var t}},{id:"doty",property:"document",size:160,getValue:e=>e.document&&null!==e.document?(0,Tn.jsx)(Dn,{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,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)(Dn,{linkName:t,tooltipText:"detailsearch.tooltip.open_building",functionCall:e=>{n(!0,e,"BUILDING",t)}}),r!==e.ehrCode.length-1?(0,Tn.jsx)("span",{children:", "}):""]}))):""},{id:"proceeding_state",property:"state",size:130,getValue:e=>e.state}];return(0,Tn.jsx)(Cn.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:On,expandableRow:!1,isFilter:!1}},data:t,handleEvent:()=>!0})},An=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const[n,r]=(0,Sn.useState)(!1),[o,i]=(0,Sn.useState)(void 0),[a,s]=(0,Sn.useState)([]);(0,Sn.useEffect)((()=>{i(void 0),l()}),[e,t]);const l=async()=>{var n;if((null===(n=e.activeRole)||void 0===n?void 0:n.businessType)===Gt.TJA){r(!0);try{var o;const n=t?{institutionId:e.activeRole.businessId}:{userId:e.userId},r=await kt.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}},Pn=e=>{let{userInfo:t,linkGen:n}=e;const r=(0,kn.useIntl)(),[o,i]=(0,Sn.useState)(!1),{loading:a,error:s,proceedings:l}=An(t,o);return(0,Tn.jsxs)(Cn.Section,{collapsed:!1,title:"my_admin_proceedings.my_proceedings",showSettings:!0,children:[s&&(0,Tn.jsx)(Cn.MessageBlock,{dismissible:!1,theme:"danger",children:r.formatMessage({id:s})}),a&&(0,Tn.jsxs)(Cn.Row,{className:"mb-4 justify-content-center",children:[(0,Tn.jsx)("br",{}),(0,Tn.jsx)(Cn.Loader,{}),(0,Tn.jsx)("br",{})]}),!a&&!(null==l||!l.length)&&!s&&(0,Tn.jsx)(jn,{proceedings:l,linkGen:n}),(0,Tn.jsx)("div",{className:"d-flex justify-content-start my-2",children:(0,Tn.jsx)(Cn.Checkbox,{name:"checkbox",onChange:e=>i(e),text:r.formatMessage({id:"my_proceedings.view_all_institution_admin_proceedings"}),checked:o})})]})},Rn=e=>{var t;let{userInfo:n,linkGen:r}=e;const o=(0,kn.useIntl)(),i=(null===(t=n.activeRole)||void 0===t?void 0:t.businessType)===Gt.TJA;return(0,Tn.jsxs)("div",{children:[(0,Tn.jsx)("h2",{children:o.formatMessage({id:"my_admin_proceedings.page_title"})}),i&&(0,Tn.jsx)("div",{className:"d-flex justify-content-end mt-2",children:(0,Tn.jsx)(Cn.Button,{withPlus:!0,type:"submit",onClick:()=>{r(!0,void 0,"","/administrativeActProceeding")},children:o.formatMessage({id:"my_admin_proceedings.new_proceeding"})})}),(0,Tn.jsx)(Mn,{userInfo:n}),i&&(0,Tn.jsx)(Pn,{userInfo:n,linkGen:r})]})};const Nn=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const Ln="object"==typeof global&&global&&global.Object===Object&&global;var Fn="object"==typeof self&&self&&self.Object===Object&&self;const Un=Ln||Fn||Function("return this")();const Bn=function(){return Un.Date.now()};var zn=/\s/;const Vn=function(e){for(var t=e.length;t--&&zn.test(e.charAt(t)););return t};var Kn=/^\s+/;const $n=function(e){return e?e.slice(0,Vn(e)+1).replace(Kn,""):e};const Hn=Un.Symbol;var Yn=Object.prototype,Wn=Yn.hasOwnProperty,Gn=Yn.toString,qn=Hn?Hn.toStringTag:void 0;const Jn=function(e){var t=Wn.call(e,qn),n=e[qn];try{e[qn]=void 0;var r=!0}catch(e){}var o=Gn.call(e);return r&&(t?e[qn]=n:delete e[qn]),o};var Xn=Object.prototype.toString;const Zn=function(e){return Xn.call(e)};var Qn=Hn?Hn.toStringTag:void 0;const er=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Qn&&Qn in Object(e)?Jn(e):Zn(e)};const tr=function(e){return null!=e&&"object"==typeof e};const nr=function(e){return"symbol"==typeof e||tr(e)&&"[object Symbol]"==er(e)};var rr=/^[-+]0x[0-9a-f]+$/i,or=/^0b[01]+$/i,ir=/^0o[0-7]+$/i,ar=parseInt;const sr=function(e){if("number"==typeof e)return e;if(nr(e))return NaN;if(Nn(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Nn(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$n(e);var n=or.test(e);return n||ir.test(e)?ar(e.slice(2),n?2:8):rr.test(e)?NaN:+e};var lr=Math.max,cr=Math.min;const ur=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=Bn();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?cr(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=Bn(),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=sr(t)||0,Nn(n)&&(u=!!n.leading,i=(d="maxWait"in n)?lr(sr(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(Bn())},v};const dr=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 pr=function(){this.__data__=[],this.size=0};const fr=function(e,t){return e===t||e!=e&&t!=t};const mr=function(e,t){for(var n=e.length;n--;)if(fr(e[n][0],t))return n;return-1};var hr=Array.prototype.splice;const gr=function(e){var t=this.__data__,n=mr(t,e);return!(n<0)&&(n==t.length-1?t.pop():hr.call(t,n,1),--this.size,!0)};const vr=function(e){var t=this.__data__,n=mr(t,e);return n<0?void 0:t[n][1]};const br=function(e){return mr(this.__data__,e)>-1};const yr=function(e,t){var n=this.__data__,r=mr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function xr(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])}}xr.prototype.clear=pr,xr.prototype.delete=gr,xr.prototype.get=vr,xr.prototype.has=br,xr.prototype.set=yr;const wr=xr;const Sr=function(){this.__data__=new wr,this.size=0};const _r=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Er=function(e){return this.__data__.get(e)};const kr=function(e){return this.__data__.has(e)};const Cr=function(e){if(!Nn(e))return!1;var t=er(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const Tr=Un["__core-js_shared__"];var Ir,Mr=(Ir=/[^.]+$/.exec(Tr&&Tr.keys&&Tr.keys.IE_PROTO||""))?"Symbol(src)_1."+Ir:"";const Or=function(e){return!!Mr&&Mr in e};var Dr=Function.prototype.toString;const jr=function(e){if(null!=e){try{return Dr.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ar=/^\[object .+?Constructor\]$/,Pr=Function.prototype,Rr=Object.prototype,Nr=Pr.toString,Lr=Rr.hasOwnProperty,Fr=RegExp("^"+Nr.call(Lr).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ur=function(e){return!(!Nn(e)||Or(e))&&(Cr(e)?Fr:Ar).test(jr(e))};const Br=function(e,t){return null==e?void 0:e[t]};const zr=function(e,t){var n=Br(e,t);return Ur(n)?n:void 0};const Vr=zr(Un,"Map");const Kr=zr(Object,"create");const $r=function(){this.__data__=Kr?Kr(null):{},this.size=0};const Hr=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Yr=Object.prototype.hasOwnProperty;const Wr=function(e){var t=this.__data__;if(Kr){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Yr.call(t,e)?t[e]:void 0};var Gr=Object.prototype.hasOwnProperty;const qr=function(e){var t=this.__data__;return Kr?void 0!==t[e]:Gr.call(t,e)};const Jr=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Kr&&void 0===t?"__lodash_hash_undefined__":t,this};function Xr(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])}}Xr.prototype.clear=$r,Xr.prototype.delete=Hr,Xr.prototype.get=Wr,Xr.prototype.has=qr,Xr.prototype.set=Jr;const Zr=Xr;const Qr=function(){this.size=0,this.__data__={hash:new Zr,map:new(Vr||wr),string:new Zr}};const eo=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const to=function(e,t){var n=e.__data__;return eo(t)?n["string"==typeof t?"string":"hash"]:n.map};const no=function(e){var t=to(this,e).delete(e);return this.size-=t?1:0,t};const ro=function(e){return to(this,e).get(e)};const oo=function(e){return to(this,e).has(e)};const io=function(e,t){var n=to(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function ao(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])}}ao.prototype.clear=Qr,ao.prototype.delete=no,ao.prototype.get=ro,ao.prototype.has=oo,ao.prototype.set=io;const so=ao;const lo=function(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!Vr||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new so(r)}return n.set(e,t),this.size=n.size,this};function co(e){var t=this.__data__=new wr(e);this.size=t.size}co.prototype.clear=Sr,co.prototype.delete=_r,co.prototype.get=Er,co.prototype.has=kr,co.prototype.set=lo;const uo=co;const po=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const fo=function(e){return this.__data__.has(e)};function mo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new so;++t<n;)this.add(e[t])}mo.prototype.add=mo.prototype.push=po,mo.prototype.has=fo;const ho=mo;const go=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 vo=function(e,t){return e.has(t)};const bo=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 ho: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(!go(t,(function(e,t){if(!vo(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 yo=Un.Uint8Array;const xo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};const wo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var So=Hn?Hn.prototype:void 0,_o=So?So.valueOf:void 0;const Eo=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 yo(e),new yo(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return fr(+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=xo;case"[object Set]":var l=1&r;if(s||(s=wo),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=bo(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(_o)return _o.call(e)==_o.call(t)}return!1};const ko=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};const Co=Array.isArray;const To=function(e,t,n){var r=t(e);return Co(e)?r:ko(r,n(e))};const Io=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 Mo=function(){return[]};var Oo=Object.prototype.propertyIsEnumerable,Do=Object.getOwnPropertySymbols;const jo=Do?function(e){return null==e?[]:(e=Object(e),Io(Do(e),(function(t){return Oo.call(e,t)})))}:Mo;const Ao=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};const Po=function(e){return tr(e)&&"[object Arguments]"==er(e)};var Ro=Object.prototype,No=Ro.hasOwnProperty,Lo=Ro.propertyIsEnumerable;const Fo=Po(function(){return arguments}())?Po:function(e){return tr(e)&&No.call(e,"callee")&&!Lo.call(e,"callee")};const Uo=function(){return!1};var Bo="object"==typeof exports&&exports&&!exports.nodeType&&exports,zo=Bo&&"object"==typeof module&&module&&!module.nodeType&&module,Vo=zo&&zo.exports===Bo?Un.Buffer:void 0;const Ko=(Vo?Vo.isBuffer:void 0)||Uo;var $o=/^(?:0|[1-9]\d*)$/;const Ho=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&$o.test(e))&&e>-1&&e%1==0&&e<t};const Yo=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Wo={};Wo["[object Float32Array]"]=Wo["[object Float64Array]"]=Wo["[object Int8Array]"]=Wo["[object Int16Array]"]=Wo["[object Int32Array]"]=Wo["[object Uint8Array]"]=Wo["[object Uint8ClampedArray]"]=Wo["[object Uint16Array]"]=Wo["[object Uint32Array]"]=!0,Wo["[object Arguments]"]=Wo["[object Array]"]=Wo["[object ArrayBuffer]"]=Wo["[object Boolean]"]=Wo["[object DataView]"]=Wo["[object Date]"]=Wo["[object Error]"]=Wo["[object Function]"]=Wo["[object Map]"]=Wo["[object Number]"]=Wo["[object Object]"]=Wo["[object RegExp]"]=Wo["[object Set]"]=Wo["[object String]"]=Wo["[object WeakMap]"]=!1;const Go=function(e){return tr(e)&&Yo(e.length)&&!!Wo[er(e)]};const qo=function(e){return function(t){return e(t)}};var Jo="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xo=Jo&&"object"==typeof module&&module&&!module.nodeType&&module,Zo=Xo&&Xo.exports===Jo&&Ln.process,Qo=function(){try{var e=Xo&&Xo.require&&Xo.require("util").types;return e||Zo&&Zo.binding&&Zo.binding("util")}catch(e){}}();var ei=Qo&&Qo.isTypedArray;const ti=ei?qo(ei):Go;var ni=Object.prototype.hasOwnProperty;const ri=function(e,t){var n=Co(e),r=!n&&Fo(e),o=!n&&!r&&Ko(e),i=!n&&!r&&!o&&ti(e),a=n||r||o||i,s=a?Ao(e.length,String):[],l=s.length;for(var c in e)!t&&!ni.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ho(c,l))||s.push(c);return s};var oi=Object.prototype;const ii=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||oi)};const ai=function(e,t){return function(n){return e(t(n))}};const si=ai(Object.keys,Object);var li=Object.prototype.hasOwnProperty;const ci=function(e){if(!ii(e))return si(e);var t=[];for(var n in Object(e))li.call(e,n)&&"constructor"!=n&&t.push(n);return t};const ui=function(e){return null!=e&&Yo(e.length)&&!Cr(e)};const di=function(e){return ui(e)?ri(e):ci(e)};const pi=function(e){return To(e,di,jo)};var fi=Object.prototype.hasOwnProperty;const mi=function(e,t,n,r,o,i){var a=1&n,s=pi(e),l=s.length;if(l!=pi(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:fi.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 hi=zr(Un,"DataView");const gi=zr(Un,"Promise");const vi=zr(Un,"Set");const bi=zr(Un,"WeakMap");var yi="[object Map]",xi="[object Promise]",wi="[object Set]",Si="[object WeakMap]",_i="[object DataView]",Ei=jr(hi),ki=jr(Vr),Ci=jr(gi),Ti=jr(vi),Ii=jr(bi),Mi=er;(hi&&Mi(new hi(new ArrayBuffer(1)))!=_i||Vr&&Mi(new Vr)!=yi||gi&&Mi(gi.resolve())!=xi||vi&&Mi(new vi)!=wi||bi&&Mi(new bi)!=Si)&&(Mi=function(e){var t=er(e),n="[object Object]"==t?e.constructor:void 0,r=n?jr(n):"";if(r)switch(r){case Ei:return _i;case ki:return yi;case Ci:return xi;case Ti:return wi;case Ii:return Si}return t});const Oi=Mi;var Di="[object Arguments]",ji="[object Array]",Ai="[object Object]",Pi=Object.prototype.hasOwnProperty;const Ri=function(e,t,n,r,o,i){var a=Co(e),s=Co(t),l=a?ji:Oi(e),c=s?ji:Oi(t),u=(l=l==Di?Ai:l)==Ai,d=(c=c==Di?Ai:c)==Ai,p=l==c;if(p&&Ko(e)){if(!Ko(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new uo),a||ti(e)?bo(e,t,n,r,o,i):Eo(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&Pi.call(e,"__wrapped__"),m=d&&Pi.call(t,"__wrapped__");if(f||m){var h=f?e.value():e,g=m?t.value():t;return i||(i=new uo),o(h,g,n,r,i)}}return!!p&&(i||(i=new uo),mi(e,t,n,r,o,i))};const Ni=function e(t,n,r,o,i){return t===n||(null==t||null==n||!tr(t)&&!tr(n)?t!=t&&n!=n:Ri(t,n,r,o,e,i))};const Li=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 uo;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?Ni(u,c,3,r,d):p))return!1}}return!0};const Fi=function(e){return e==e&&!Nn(e)};const Ui=function(e){for(var t=di(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Fi(o)]}return t};const Bi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}};const zi=function(e){var t=Ui(e);return 1==t.length&&t[0][2]?Bi(t[0][0],t[0][1]):function(n){return n===e||Li(n,e,t)}};var Vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ki=/^\w*$/;const $i=function(e,t){if(Co(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!nr(e))||(Ki.test(e)||!Vi.test(e)||null!=t&&e in Object(t))};function Hi(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(Hi.Cache||so),n}Hi.Cache=so;const Yi=Hi;var Wi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gi=/\\(\\)?/g;const qi=function(e){var t=Yi(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(Wi,(function(e,n,r,o){t.push(r?o.replace(Gi,"$1"):n||e)})),t}));var Ji=Hn?Hn.prototype:void 0,Xi=Ji?Ji.toString:void 0;const Zi=function e(t){if("string"==typeof t)return t;if(Co(t))return dr(t,e)+"";if(nr(t))return Xi?Xi.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n};const Qi=function(e){return null==e?"":Zi(e)};const ea=function(e,t){return Co(e)?e:$i(e,t)?[e]:qi(Qi(e))};const ta=function(e){if("string"==typeof e||nr(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};const na=function(e,t){for(var n=0,r=(t=ea(t,e)).length;null!=e&&n<r;)e=e[ta(t[n++])];return n&&n==r?e:void 0};const ra=function(e,t,n){var r=null==e?void 0:na(e,t);return void 0===r?n:r};const oa=function(e,t){return null!=e&&t in Object(e)};const ia=function(e,t,n){for(var r=-1,o=(t=ea(t,e)).length,i=!1;++r<o;){var a=ta(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Yo(o)&&Ho(a,o)&&(Co(e)||Fo(e))};const aa=function(e,t){return null!=e&&ia(e,t,oa)};const sa=function(e,t){return $i(e)&&Fi(t)?Bi(ta(e),t):function(n){var r=ra(n,e);return void 0===r&&r===t?aa(n,e):Ni(t,r,3)}};const la=function(e){return e};const ca=function(e){return function(t){return null==t?void 0:t[e]}};const ua=function(e){return function(t){return na(t,e)}};const da=function(e){return $i(e)?ca(ta(e)):ua(e)};const pa=function(e){return"function"==typeof e?e:null==e?la:"object"==typeof e?Co(e)?sa(e[0],e[1]):zi(e):da(e)};const fa=function(){try{var e=zr(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const ma=function(e,t,n){"__proto__"==t&&fa?fa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ha=Object.prototype.hasOwnProperty;const ga=function(e,t,n){var r=e[t];ha.call(e,t)&&fr(r,n)&&(void 0!==n||t in e)||ma(e,t,n)};const va=function(e,t,n,r){if(!Nn(e))return e;for(var o=-1,i=(t=ea(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=ta(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=Nn(u)?u:Ho(t[o+1])?[]:{})}ga(s,l,c),s=s[l]}return e};const ba=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=na(e,a);n(s,a)&&va(i,ea(a,e),s)}return i};const ya=ai(Object.getPrototypeOf,Object);const xa=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ko(t,jo(e)),e=ya(e);return t}:Mo;const wa=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var Sa=Object.prototype.hasOwnProperty;const _a=function(e){if(!Nn(e))return wa(e);var t=ii(e),n=[];for(var r in e)("constructor"!=r||!t&&Sa.call(e,r))&&n.push(r);return n};const Ea=function(e){return ui(e)?ri(e,!0):_a(e)};const ka=function(e){return To(e,Ea,xa)};const Ca=function(e,t){if(null==e)return{};var n=dr(ka(e),(function(e){return[e]}));return t=pa(t),ba(e,n,(function(e,n){return t(e,n[0])}))},Ta=require("react-dom");var Ia=o(942);const Ma=require("dayjs");var Oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Da(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ja(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 Aa={exports:{}};Aa.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()&&!D(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)),O(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},O=function(e){p.x!==e.screenX||p.y!==e.screenY?(d=!1,p.x=e.screenX,p.y=e.screenY):d=!0},D=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 Pa=Da(Aa.exports);function Ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var Na="object"==typeof global&&global&&global.Object===Object&&global,La="object"==typeof self&&self&&self.Object===Object&&self,Fa=Na||La||Function("return this")(),Ua=function(){return Fa.Date.now()},Ba=/\s/;var za=/^\s+/;function Va(e){return e&&e.slice(0,function(e){for(var t=e.length;t--&&Ba.test(e.charAt(t)););return t}(e)+1).replace(za,"")}var Ka=Fa.Symbol,$a=Object.prototype,Ha=$a.hasOwnProperty,Ya=$a.toString,Wa=Ka?Ka.toStringTag:void 0;var Ga=Object.prototype.toString;var qa=Ka?Ka.toStringTag:void 0;function Ja(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qa&&qa in Object(e)?function(e){var t=Ha.call(e,Wa),n=e[Wa];try{e[Wa]=void 0;var r=!0}catch{}var o=Ya.call(e);return r&&(t?e[Wa]=n:delete e[Wa]),o}(e):function(e){return Ga.call(e)}(e)}function Xa(e){return null!=e&&"object"==typeof e}function Za(e){return"symbol"==typeof e||Xa(e)&&"[object Symbol]"==Ja(e)}var Qa=/^[-+]0x[0-9a-f]+$/i,es=/^0b[01]+$/i,ts=/^0o[0-7]+$/i,ns=parseInt;function rs(e){if("number"==typeof e)return e;if(Za(e))return NaN;if(Ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Va(e);var n=es.test(e);return n||ts.test(e)?ns(e.slice(2),n?2:8):Qa.test(e)?NaN:+e}var os=Math.max,is=Math.min;function as(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=Ua();if(m(e))return g(e);s=setTimeout(h,function(e){var n=t-(e-l);return d?is(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=Ua(),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=rs(t)||0,Ra(n)&&(u=!!n.leading,i=(d="maxWait"in n)?os(rs(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(Ua())},v}const ss=["xs","sm","md","lg","xl","xxl"],ls=()=>{const[e,t]=(0,Sn.useState)(cs());return(0,Sn.useEffect)((()=>{const e=as((()=>{t(cs())}),20);return window.addEventListener("resize",e),()=>{e.cancel(),window.removeEventListener("resize",e)}}),[]),e},cs=()=>{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},us=()=>{const e=ls(),t=Sn.useMemo((()=>e?ss.slice(0,ss.indexOf(e)+1):[]),[e]);return{getCurrentBreakpointProps:Sn.useCallback(((e,n={})=>{const{sm:r,md:o,lg:i,xl:a,xxl:s,...l}=e,c=[...t.map((t=>Ca("xs"===t?l:e[t],(e=>void 0!==e))))].filter(Boolean);return Object.assign(n,...c)}),[t])}},ds=["xs","sm"],ps=["md"],fs=["lg","xl","xxl"],ms=e=>{const t=ls(),n=null==e?void 0:e.reduce(((e,t)=>{switch(t){case"desktop":return[...e,...fs];case"tablet":return[...e,...ps];case"mobile":return[...e,...ds];default:return[...e,t]}}),[]);return!!t&&n.includes(t)},hs={"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"},gs=e=>e?hs[e]:"",vs=e=>{const{getCurrentBreakpointProps:t}=us(),{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=Ia(r,null==c?void 0:c.map((e=>`text-${e}`)),{[`text-${s}`]:s});return(0,Tn.jsx)(i,{className:u,...l,tabIndex:o,children:n})},bs=e=>{const{children:t,element:n="h1",...r}=e;return(0,Tn.jsx)(vs,{element:n,...r,children:t})};function ys(){return ys=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},ys.apply(null,arguments)}const xs=Object.freeze(Object.defineProperty({__proto__:null,get default(){return ys}},Symbol.toStringTag,{value:"Module"}));var ws={exports:{}};var Ss=Object.getOwnPropertySymbols,_s=Object.prototype.hasOwnProperty,Es=Object.prototype.propertyIsEnumerable;var ks,Cs,Ts,Is,Ms=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]))_s.call(n,a)&&(o[a]=n[a]);if(Ss){r=Ss(n);for(var s=0;s<r.length;s++)Es.call(n,r[s])&&(o[r[s]]=n[r[s]])}}return o};function Os(){if(Cs)return ks;Cs=1;return ks="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}ws.exports=function(){if(Is)return Ts;Is=1;var e=Os();function t(){}function n(){}return n.resetWarningCache=t,Ts=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},Ts}()();const Ds=Da(ws.exports);function js(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 As=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"})),Ps="$$material";function Rs(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 Ns=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}(),Ls="-ms-",Fs="-moz-",Us="-webkit-",Bs="comm",zs="rule",Vs="decl",Ks="@keyframes",$s=Math.abs,Hs=String.fromCharCode,Ys=Object.assign;function Ws(e){return e.trim()}function Gs(e,t,n){return e.replace(t,n)}function qs(e,t){return e.indexOf(t)}function Js(e,t){return 0|e.charCodeAt(t)}function Xs(e,t,n){return e.slice(t,n)}function Zs(e){return e.length}function Qs(e){return e.length}function el(e,t){return t.push(e),e}var tl=1,nl=1,rl=0,ol=0,il=0,al="";function sl(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:tl,column:nl,length:a,return:""}}function ll(e,t){return Ys(sl("",null,null,"",null,null,0),e,{length:-e.length},t)}function cl(){return il=ol<rl?Js(al,ol++):0,nl++,10===il&&(nl=1,tl++),il}function ul(){return Js(al,ol)}function dl(){return ol}function pl(e,t){return Xs(al,e,t)}function fl(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 ml(e){return tl=nl=1,rl=Zs(al=e),ol=0,[]}function hl(e){return al="",e}function gl(e){return Ws(pl(ol-1,yl(91===e?e+2:40===e?e+1:e)))}function vl(e){for(;(il=ul())&&il<33;)cl();return fl(e)>2||fl(il)>3?"":" "}function bl(e,t){for(;--t&&cl()&&!(il<48||il>102||il>57&&il<65||il>70&&il<97););return pl(e,dl()+(t<6&&32==ul()&&32==cl()))}function yl(e){for(;cl();)switch(il){case e:return ol;case 34:case 39:34!==e&&39!==e&&yl(il);break;case 40:41===e&&yl(e);break;case 92:cl()}return ol}function xl(e,t){for(;cl()&&e+il!==57&&(e+il!==84||47!==ul()););return"/*"+pl(t,ol-1)+"*"+Hs(47===e?e:cl())}function wl(e){for(;!fl(ul());)cl();return pl(e,ol)}function Sl(e){return hl(_l("",null,null,null,[""],e=ml(e),0,[0],e))}function _l(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=cl()){case 40:if(108!=m&&58==Js(_,d-1)){-1!=qs(_+=Gs(gl(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=gl(b);break;case 9:case 10:case 13:case 32:_+=vl(m);break;case 92:_+=bl(dl()-1,7);continue;case 47:switch(ul()){case 42:case 47:el(kl(xl(cl(),dl()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=Zs(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=Gs(_,/\f/g,"")),f>0&&Zs(_)-d&&el(f>32?Cl(_+";",r,n,d-1):Cl(Gs(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(el(S=El(_,t,n,c,u,o,s,y,x=[],w=[],d),i),123===b)if(0===u)_l(_,t,S,S,x,i,d,s,w);else switch(99===p&&110===Js(_,3)?100:p){case 100:case 108:case 109:case 115:_l(e,S,S,r&&el(El(e,S,S,0,0,o,s,y,o,x=[],d),w),o,w,d,s,r?x:w);break;default:_l(_,S,S,S,[""],w,0,s,w)}}c=u=f=0,h=v=1,y=_="",d=a;break;case 58:d=1+Zs(_),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==(il=ol>0?Js(al,--ol):0,nl--,10===il&&(nl=1,tl--),il))continue;switch(_+=Hs(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Zs(_)-1)*v,v=1;break;case 64:45===ul()&&(_+=gl(cl())),p=ul(),u=d=Zs(y=_+=wl(dl())),b++;break;case 45:45===m&&2==Zs(_)&&(h=0)}}return i}function El(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Qs(p),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Xs(e,d+1,d=$s(h=a[m])),y=e;v<f;++v)(y=Ws(h>0?p[v]+" "+b:Gs(b,/&\f/g,p[v])))&&(l[g++]=y);return sl(e,t,n,0===o?zs:s,l,c,u)}function kl(e,t,n){return sl(e,t,n,Bs,Hs(il),Xs(e,2,-2),0)}function Cl(e,t,n,r){return sl(e,t,n,Vs,Xs(e,0,r),Xs(e,r+1,-1),r)}function Tl(e,t){for(var n="",r=Qs(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Il(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Vs:return e.return=e.return||e.value;case Bs:return"";case Ks:return e.return=e.value+"{"+Tl(e.children,r)+"}";case zs:e.value=e.props.join(",")}return Zs(n=Tl(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ml(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ol(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Dl=function(e,t,n){for(var r=0,o=0;r=o,o=ul(),38===r&&12===o&&(t[n]=1),!fl(o);)cl();return pl(e,ol)},jl=function(e,t){return hl(function(e,t){var n=-1,r=44;do{switch(fl(r)){case 0:38===r&&12===ul()&&(t[n]=1),e[n]+=Dl(ol-1,t,n);break;case 2:e[n]+=gl(r);break;case 4:if(44===r){e[++n]=58===ul()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Hs(r)}}while(r=cl());return e}(ml(e),t))},Al=new WeakMap,Pl=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)||Al.get(n))&&!r){Al.set(e,!0);for(var o=[],i=jl(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]}}},Rl=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Nl(e,t){switch(function(e,t){return 45^Js(e,0)?(((t<<2^Js(e,0))<<2^Js(e,1))<<2^Js(e,2))<<2^Js(e,3):0}(e,t)){case 5103:return Us+"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 Us+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Us+e+Fs+e+Ls+e+e;case 6828:case 4268:return Us+e+Ls+e+e;case 6165:return Us+e+Ls+"flex-"+e+e;case 5187:return Us+e+Gs(e,/(\w+).+(:[^]+)/,Us+"box-$1$2"+Ls+"flex-$1$2")+e;case 5443:return Us+e+Ls+"flex-item-"+Gs(e,/flex-|-self/,"")+e;case 4675:return Us+e+Ls+"flex-line-pack"+Gs(e,/align-content|flex-|-self/,"")+e;case 5548:return Us+e+Ls+Gs(e,"shrink","negative")+e;case 5292:return Us+e+Ls+Gs(e,"basis","preferred-size")+e;case 6060:return Us+"box-"+Gs(e,"-grow","")+Us+e+Ls+Gs(e,"grow","positive")+e;case 4554:return Us+Gs(e,/([^-])(transform)/g,"$1"+Us+"$2")+e;case 6187:return Gs(Gs(Gs(e,/(zoom-|grab)/,Us+"$1"),/(image-set)/,Us+"$1"),e,"")+e;case 5495:case 3959:return Gs(e,/(image-set\([^]*)/,Us+"$1$`$1");case 4968:return Gs(Gs(e,/(.+:)(flex-)?(.*)/,Us+"box-pack:$3"+Ls+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Us+e+e;case 4095:case 3583:case 4068:case 2532:return Gs(e,/(.+)-inline(.+)/,Us+"$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(Zs(e)-1-t>6)switch(Js(e,t+1)){case 109:if(45!==Js(e,t+4))break;case 102:return Gs(e,/(.+:)(.+)-([^]+)/,"$1"+Us+"$2-$3$1"+Fs+(108==Js(e,t+3)?"$3":"$2-$3"))+e;case 115:return~qs(e,"stretch")?Nl(Gs(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Js(e,t+1))break;case 6444:switch(Js(e,Zs(e)-3-(~qs(e,"!important")&&10))){case 107:return Gs(e,":",":"+Us)+e;case 101:return Gs(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Us+(45===Js(e,14)?"inline-":"")+"box$3$1"+Us+"$2$3$1"+Ls+"$2box$3")+e}break;case 5936:switch(Js(e,t+11)){case 114:return Us+e+Ls+Gs(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Us+e+Ls+Gs(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Us+e+Ls+Gs(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Us+e+Ls+e+e}return e}var Ll,Fl=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Vs:e.return=Nl(e.value,e.length);break;case Ks:return Tl([ll(e,{value:Gs(e.value,"@","@"+Us)})],r);case zs: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 Tl([ll(e,{props:[Gs(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Tl([ll(e,{props:[Gs(t,/:(plac\w+)/,":"+Us+"input-$1")]}),ll(e,{props:[Gs(t,/:(plac\w+)/,":-moz-$1")]}),ll(e,{props:[Gs(t,/:(plac\w+)/,Ls+"input-$1")]})],r)}return""}))}}],Ul=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||Fl,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=[Pl,Rl],u=[Il,Ml((function(e){l.insert(e)}))],d=function(e){var t=Qs(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(c.concat(o,u));s=function(e,t,n,r){l=n,function(e){Tl(Sl(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ns({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},Bl={exports:{}},zl={};Bl.exports=function(){if(Ll)return zl;Ll=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 zl.AsyncMode=l,zl.ConcurrentMode=c,zl.ContextConsumer=s,zl.ContextProvider=a,zl.Element=t,zl.ForwardRef=u,zl.Fragment=r,zl.Lazy=m,zl.Memo=f,zl.Portal=n,zl.Profiler=i,zl.StrictMode=o,zl.Suspense=d,zl.isAsyncMode=function(e){return x(e)||y(e)===l},zl.isConcurrentMode=x,zl.isContextConsumer=function(e){return y(e)===s},zl.isContextProvider=function(e){return y(e)===a},zl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zl.isForwardRef=function(e){return y(e)===u},zl.isFragment=function(e){return y(e)===r},zl.isLazy=function(e){return y(e)===m},zl.isMemo=function(e){return y(e)===f},zl.isPortal=function(e){return y(e)===n},zl.isProfiler=function(e){return y(e)===i},zl.isStrictMode=function(e){return y(e)===o},zl.isSuspense=function(e){return y(e)===d},zl.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)},zl.typeOf=y,zl}();var Vl=Bl.exports,Kl={};Kl[Vl.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Kl[Vl.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function $l(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Hl=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Yl=function(e,t,n){Hl(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 Wl={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},Gl=/[A-Z]|^ms/g,ql=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jl=function(e){return 45===e.charCodeAt(1)},Xl=function(e){return null!=e&&"boolean"!=typeof e},Zl=Ol((function(e){return Jl(e)?e:e.replace(Gl,"-$&").toLowerCase()})),Ql=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ql,(function(e,t,n){return tc={name:t,styles:n,next:tc},t}))}return 1===Wl[e]||Jl(e)||"number"!=typeof t||0===t?t:t+"px"};function ec(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 tc={name:o.name,styles:o.styles,next:tc},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)tc={name:a.name,styles:a.styles,next:tc},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+=ec(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]+"}":Xl(s)&&(r+=Zl(i)+":"+Ql(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=ec(e,t,a);switch(i){case"animation":case"animationName":r+=Zl(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Xl(a[c])&&(r+=Zl(i)+":"+Ql(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=tc,l=n(e);return tc=s,ec(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var tc,nc=/label:\s*([^\s;{]+)\s*(;|$)/g;function rc(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="";tc=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=ec(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)if(o+=ec(n,t,e[a]),r){o+=i[a]}nc.lastIndex=0;for(var s,l="";null!==(s=nc.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:tc}}var oc=!!Sn.useInsertionEffect&&Sn.useInsertionEffect,ic=oc||function(e){return e()},ac=oc||Sn.useLayoutEffect,sc=Sn.createContext(typeof HTMLElement<"u"?Ul({key:"css"}):null),lc=sc.Provider,cc=function(e){return(0,Sn.forwardRef)((function(t,n){var r=(0,Sn.useContext)(sc);return e(t,r,n)}))},uc=Sn.createContext({}),dc={}.hasOwnProperty,pc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",fc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Hl(t,n,r),ic((function(){return Yl(t,n,r)})),null},mc=cc((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[pc],i=[r],a="";"string"==typeof e.className?a=$l(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=rc(i,void 0,Sn.useContext(uc));a+=t.key+"-"+s.name;var l={};for(var c in e)dc.call(e,c)&&"css"!==c&&c!==pc&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),Sn.createElement(Sn.Fragment,null,Sn.createElement(fc,{cache:t,serialized:s,isStringTag:"string"==typeof o}),Sn.createElement(o,l))})),hc=mc,gc=function(e,t){var n=arguments;if(null==t||!dc.call(t,"css"))return Sn.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=hc,o[1]=function(e,t){var n={};for(var r in t)dc.call(t,r)&&(n[r]=t[r]);return n[pc]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return Sn.createElement.apply(null,o)};!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(gc||(gc={}));var vc=cc((function(e,t){var n=rc([e.styles],void 0,Sn.useContext(uc)),r=Sn.useRef();return ac((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]),ac((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Yl(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 bc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rc(t)}function yc(){var e=bc.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 xc=/^((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)-.*))$/,wc=Ol((function(e){return xc.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Sc=wc,_c=function(e){return"theme"!==e},Ec=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Sc:_c},kc=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},Cc=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Hl(t,n,r),ic((function(){return Yl(t,n,r)})),null},Tc=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=kc(t,n,i),l=s||Ec(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=cc((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=Sn.useContext(uc)}"string"==typeof e.className?i=$l(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=rc(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?Ec(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),Sn.createElement(Sn.Fragment,null,Sn.createElement(Cc,{cache:t,serialized:m,isStringTag:"string"==typeof r}),Sn.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,ys({},n,r,{shouldForwardProp:kc(h,r,!0)})).apply(void 0,d)},h}}.bind(null);let Ic;["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){Tc[e]=Tc(e)})),"object"==typeof document&&(Ic=Ul({key:"css",prepend:!0}));const Mc=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e;return(0,Tn.jsx)(vc,{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&&Ic?(0,Tn.jsx)(lc,{value:Ic,children:n}):n},ThemeContext:uc,css:bc,default:function(e,t){return Tc(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:yc},Symbol.toStringTag,{value:"Module"}));function Oc(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 Dc(e){if(Sn.isValidElement(e)||!Oc(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Dc(e[n])})),t}function jc(e,t,n={clone:!0}){const r=n.clone?ys({},e):e;return Oc(e)&&Oc(t)&&Object.keys(t).forEach((o=>{Sn.isValidElement(t[o])?r[o]=t[o]:Oc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Oc(e[o])?r[o]=jc(e[o],t[o],n):n.clone?r[o]=Oc(t[o])?Dc(t[o]):t[o]:r[o]=t[o]})),r}const Ac=Object.freeze(Object.defineProperty({__proto__:null,default:jc,isPlainObject:Oc},Symbol.toStringTag,{value:"Module"})),Pc=["values","unit","step"];function Rc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Rs(e,Pc),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)=>ys({},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 ys({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 Nc={borderRadius:4};function Lc(e,t){return t?jc(e,t,{clone:!1}):e}const Fc={xs:0,sm:600,md:900,lg:1200,xl:1536},Uc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fc[e]}px)`};function Bc(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Uc;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Uc;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Fc).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function zc({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 Vc(e){if("string"!=typeof e)throw new Error(js(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Kc=Object.freeze(Object.defineProperty({__proto__:null,default:Vc},Symbol.toStringTag,{value:"Module"}));function $c(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 Hc(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:$c(e,n)||r,t&&(o=t(o,r,e)),o}function Yc(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=$c(e.theme,r)||{};return Bc(e,i,(e=>{let r=Hc(a,o,e);return e===r&&"string"==typeof e&&(r=Hc(a,o,`${t}${"default"===e?"":Vc(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Wc={m:"margin",p:"padding"},Gc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Jc=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qc[e])return[e];e=qc[e]}const[t,n]=e.split(""),r=Wc[t],o=Gc[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Xc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Zc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Qc(e,t,n,r){var o;const i=null!=(o=$c(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 eu(e){return Qc(e,"spacing",8)}function tu(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 nu(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=tu(t,n),e)),{})}(Jc(n),r);return Bc(e,e[n],o)}function ru(e,t){const n=eu(e.theme);return Object.keys(e).map((r=>nu(e,t,r,n))).reduce(Lc,{})}function ou(e){return ru(e,Xc)}function iu(e){return ru(e,Zc)}function au(...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]?Lc(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function su(e){return"number"!=typeof e?e:`${e}px solid`}function lu(e,t){return Yc({prop:e,themeKey:"borders",transform:t})}ou.propTypes={},ou.filterProps=Xc,iu.propTypes={},iu.filterProps=Zc;const cu=lu("border",su),uu=lu("borderTop",su),du=lu("borderRight",su),pu=lu("borderBottom",su),fu=lu("borderLeft",su),mu=lu("borderColor"),hu=lu("borderTopColor"),gu=lu("borderRightColor"),vu=lu("borderBottomColor"),bu=lu("borderLeftColor"),yu=lu("outline",su),xu=lu("outlineColor"),wu=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Qc(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:tu(t,e)});return Bc(e,e.borderRadius,n)}return null};wu.propTypes={},wu.filterProps=["borderRadius"],au(cu,uu,du,pu,fu,mu,hu,gu,vu,bu,wu,yu,xu);const Su=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Qc(e.theme,"spacing",8),n=e=>({gap:tu(t,e)});return Bc(e,e.gap,n)}return null};Su.propTypes={},Su.filterProps=["gap"];const _u=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Qc(e.theme,"spacing",8),n=e=>({columnGap:tu(t,e)});return Bc(e,e.columnGap,n)}return null};_u.propTypes={},_u.filterProps=["columnGap"];const Eu=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Qc(e.theme,"spacing",8),n=e=>({rowGap:tu(t,e)});return Bc(e,e.rowGap,n)}return null};Eu.propTypes={},Eu.filterProps=["rowGap"];function ku(e,t){return"grey"===t?t:e}au(Su,_u,Eu,Yc({prop:"gridColumn"}),Yc({prop:"gridRow"}),Yc({prop:"gridAutoFlow"}),Yc({prop:"gridAutoColumns"}),Yc({prop:"gridAutoRows"}),Yc({prop:"gridTemplateColumns"}),Yc({prop:"gridTemplateRows"}),Yc({prop:"gridTemplateAreas"}),Yc({prop:"gridArea"}));function Cu(e){return e<=1&&0!==e?100*e+"%":e}au(Yc({prop:"color",themeKey:"palette",transform:ku}),Yc({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ku}),Yc({prop:"backgroundColor",themeKey:"palette",transform:ku}));const Tu=Yc({prop:"width",transform:Cu}),Iu=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])||Fc[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:Cu(t)}};return Bc(e,e.maxWidth,t)}return null};Iu.filterProps=["maxWidth"];const Mu=Yc({prop:"minWidth",transform:Cu}),Ou=Yc({prop:"height",transform:Cu}),Du=Yc({prop:"maxHeight",transform:Cu}),ju=Yc({prop:"minHeight",transform:Cu});Yc({prop:"size",cssProperty:"width",transform:Cu}),Yc({prop:"size",cssProperty:"height",transform:Cu});au(Tu,Iu,Mu,Ou,Du,ju,Yc({prop:"boxSizing"}));const Au={border:{themeKey:"borders",transform:su},borderTop:{themeKey:"borders",transform:su},borderRight:{themeKey:"borders",transform:su},borderBottom:{themeKey:"borders",transform:su},borderLeft:{themeKey:"borders",transform:su},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:su},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wu},color:{themeKey:"palette",transform:ku},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ku},backgroundColor:{themeKey:"palette",transform:ku},p:{style:iu},pt:{style:iu},pr:{style:iu},pb:{style:iu},pl:{style:iu},px:{style:iu},py:{style:iu},padding:{style:iu},paddingTop:{style:iu},paddingRight:{style:iu},paddingBottom:{style:iu},paddingLeft:{style:iu},paddingX:{style:iu},paddingY:{style:iu},paddingInline:{style:iu},paddingInlineStart:{style:iu},paddingInlineEnd:{style:iu},paddingBlock:{style:iu},paddingBlockStart:{style:iu},paddingBlockEnd:{style:iu},m:{style:ou},mt:{style:ou},mr:{style:ou},mb:{style:ou},ml:{style:ou},mx:{style:ou},my:{style:ou},margin:{style:ou},marginTop:{style:ou},marginRight:{style:ou},marginBottom:{style:ou},marginLeft:{style:ou},marginX:{style:ou},marginY:{style:ou},marginInline:{style:ou},marginInlineStart:{style:ou},marginInlineEnd:{style:ou},marginBlock:{style:ou},marginBlockStart:{style:ou},marginBlockEnd:{style:ou},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:Su},rowGap:{style:Eu},columnGap:{style:_u},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Cu},maxWidth:{style:Iu},minWidth:{transform:Cu},height:{transform:Cu},maxHeight:{transform:Cu},minHeight:{transform:Cu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Pu(){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=$c(n,s)||{};return c?c(o):Bc(o,t,(t=>{let n=Hc(u,l,t);return t===n&&"string"==typeof t&&(n=Hc(u,l,`${e}${"default"===t?"":Vc(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:Au;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=Lc(l,e(n,o,i,a));else{const e=Bc({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=Lc(l,e):l[n]=t({sx:o,theme:i})}else l=Lc(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 Ru=Pu();function Nu(e,t){const n=this;return n.vars&&"function"==typeof n.getColorSchemeSelector?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}Ru.filterProps=["sx"];const Lu=["breakpoints","palette","spacing","shape"];function Fu(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Rs(e,Lu),s=Rc(n),l=function(e=8){if(e.mui)return e;const t=eu({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=jc({breakpoints:s,direction:"ltr",components:{},palette:ys({mode:"light"},r),spacing:l,shape:ys({},Nc,i)},a);return c.applyStyles=Nu,c=t.reduce(((e,t)=>jc(e,t)),c),c.unstable_sxConfig=ys({},Au,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ru({sx:e,theme:this})},c}const Uu=Object.freeze(Object.defineProperty({__proto__:null,default:Fu,private_createBreakpoints:Rc,unstable_applyStyles:Nu},Symbol.toStringTag,{value:"Module"}));function Bu(e=null){const t=Sn.useContext(uc);return!t||function(e){return 0===Object.keys(e).length}(t)?e:t}const zu=Fu();function Vu(e=zu){return Bu(e)}const Ku=["sx"];function $u(e){const{sx:t}=e,n=Rs(e,Ku),{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:Au;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 Oc(n)?ys({},r,n):r}:ys({},r,t),ys({},o,{sx:i})}const Hu=Object.freeze(Object.defineProperty({__proto__:null,default:Ru,extendSxProp:$u,unstable_createStyleFunctionSx:Pu,unstable_defaultSxConfig:Au},Symbol.toStringTag,{value:"Module"})),Yu=e=>e,Wu=(()=>{let e=Yu;return{configure(t){e=t},generate:t=>e(t),reset(){e=Yu}}})();function Gu(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=Gu(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qu(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gu(e))&&(r&&(r+=" "),r+=t);return r}const Ju={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 Xu(e,t,n="Mui"){const r=Ju[t];return r?`${n}-${r}`:`${Wu.generate(e)}-${t}`}function Zu(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Xu(e,t,n)})),r}var Qu,ed={exports:{}},td={};ed.exports=function(){if(Qu)return td;Qu=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 td.ContextConsumer=i,td.ContextProvider=a,td.Element=e,td.ForwardRef=s,td.Fragment=n,td.Lazy=d,td.Memo=u,td.Portal=t,td.Profiler=o,td.StrictMode=r,td.Suspense=l,td.SuspenseList=c,td.isContextConsumer=function(e){return m(e)===i},td.isContextProvider=function(e){return m(e)===a},td.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},td.isForwardRef=function(e){return m(e)===s},td.isFragment=function(e){return m(e)===n},td.isLazy=function(e){return m(e)===d},td.isMemo=function(e){return m(e)===u},td.isPortal=function(e){return m(e)===t},td.isProfiler=function(e){return m(e)===o},td.isStrictMode=function(e){return m(e)===r},td.isSuspense=function(e){return m(e)===l},td.isSuspenseList=function(e){return m(e)===c},td.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)},td.typeOf=m,td}();var nd=ed.exports;const rd=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function od(e){const t=`${e}`.match(rd);return t&&t[1]||""}function id(e,t=""){return e.displayName||e.name||od(e)||t}function ad(e,t,n){const r=id(t);return e.displayName||(""!==r?`${n}(${r})`:n)}const sd=Object.freeze(Object.defineProperty({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return id(e,"Component");if("object"==typeof e)switch(e.$$typeof){case nd.ForwardRef:return ad(e,e.render,"ForwardRef");case nd.Memo:return ad(e,e.type,"memo");default:return}}},getFunctionName:od},Symbol.toStringTag,{value:"Module"}));function ld(e,t){const n=ys({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ys({},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]=ys({},i),Object.keys(o).forEach((e=>{n[r][e]=ld(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function cd(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?ld(t.components[n].defaultProps,r):r}const ud=typeof window<"u"?Sn.useLayoutEffect:Sn.useEffect;function dd(e,t,n,r,o){const[i,a]=Sn.useState((()=>o&&n?n(e).matches:r?r(e).matches:t));return ud((()=>{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 pd=Sn.useSyncExternalStore;function fd(e,t,n,r,o){const i=Sn.useCallback((()=>t),[t]),a=Sn.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]=Sn.useMemo((()=>{if(null===n)return[i,()=>()=>{}];const t=n(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]}),[i,n,e]);return pd(l,s,a)}function md(e,t={}){const n=Bu(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=(r?window.matchMedia:null),ssrMatchMedia:a=null,noSsr:s=!1}=cd({name:"MuiUseMediaQuery",props:t,theme:n});let l="function"==typeof e?e(n):e;l=l.replace(/^@media( ?)/m,"");return(void 0!==pd?fd:dd)(l,o,i,a,s)}function hd(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const gd=Object.freeze(Object.defineProperty({__proto__:null,default:hd},Symbol.toStringTag,{value:"Module"}));function vd(e){if(e.type)return e;if("#"===e.charAt(0))return vd(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(js(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(js(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function bd(e,t){return e=vd(e),t=function(e,t=0,n=1){return hd(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)}(Ds.element,()=>null).isRequired=(Ds.element.isRequired,()=>null);Ds.elementType;Ds.oneOfType([Ds.func,Ds.object]);function yd(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function xd(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function wd(e){return e&&e.ownerDocument||document}function Sd(e){return wd(e).defaultView||window}function _d(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ed=0;const kd=Sn.useId;function Cd(e){if(void 0!==kd){const t=kd();return e??t}return function(e){const[t,n]=Sn.useState(e),r=e||t;return Sn.useEffect((()=>{null==t&&(Ed+=1,n(`mui-${Ed}`))}),[t]),r}(e)}function Td({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=Sn.useRef(void 0!==e),[i,a]=Sn.useState(t);return[o?e:i,Sn.useCallback((e=>{o||a(e)}),[])]}function Id(e){const t=Sn.useRef(e);return ud((()=>{t.current=e})),Sn.useRef(((...e)=>(0,t.current)(...e))).current}function Md(...e){return Sn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{_d(e,t)}))}),e)}const Od={};const Dd=[];class jd{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new jd}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Ad(){const e=function(e,t){const n=Sn.useRef(Od);return n.current===Od&&(n.current=e(t)),n}(jd.create).current;return function(e){Sn.useEffect(e,Dd)}(e.disposeEffect),e}let Pd=!0,Rd=!1;const Nd=new jd,Ld={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 Fd(e){e.metaKey||e.altKey||e.ctrlKey||(Pd=!0)}function Ud(){Pd=!1}function Bd(){"hidden"===this.visibilityState&&Rd&&(Pd=!0)}function zd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Pd||function(e){const{type:t,tagName:n}=e;return!!("INPUT"===n&&Ld[t]&&!e.readOnly||"TEXTAREA"===n&&!e.readOnly||e.isContentEditable)}(t)}function Vd(){const e=Sn.useCallback((e=>{null!=e&&function(e){e.addEventListener("keydown",Fd,!0),e.addEventListener("mousedown",Ud,!0),e.addEventListener("pointerdown",Ud,!0),e.addEventListener("touchstart",Ud,!0),e.addEventListener("visibilitychange",Bd,!0)}(e.ownerDocument)}),[]),t=Sn.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!zd(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rd=!0,Nd.start(100,(()=>{Rd=!1})),t.current=!1,!0)},ref:e}}let Kd;function $d(){if(Kd)return Kd;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),Kd="reverse",e.scrollLeft>0?Kd="default":(e.scrollLeft=1,0===e.scrollLeft&&(Kd="negative")),document.body.removeChild(e),Kd}function Hd(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch($d()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}Number.isInteger;function Yd(){return null}Yd.isRequired=Yd;function Wd(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 Gd(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 qd(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 Jd=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Xd(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Rs(e,Jd),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=qu(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=ys({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=ys({},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=Gd(ys({},o,r)),s=qd(r),l=qd(o),c=t(a),u=qu(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=ys({},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=ys({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(ys({},a,{externalSlotProps:s}));return function(e,t,n){return void 0===e||function(e){return"string"==typeof e}(e)?t:ys({},t,{ownerState:ys({},t.ownerState,n)})}(n,ys({},l,{ref:Md(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function Zd(e){var t;return parseInt(Sn.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Qd=Sn.createContext(),ep=()=>Sn.useContext(Qd)??!1,tp=Sn.createContext(void 0);function np({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?ld(o.defaultProps,r):o.styleOverrides||o.variants?r:ld(o,r)}({props:e,name:t,theme:{components:Sn.useContext(tp)}})}function rp(e){return(rp="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})(e)}function op(e){var t=function(e,t){if("object"!=rp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=rp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rp(t)?t:t+""}function ip(e,t){return ys({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ap={},sp={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(sp);var lp=sp.exports;const cp=ja(As),up=ja(gd);var dp=lp;Object.defineProperty(ap,"__esModule",{value:!0});var pp=ap.alpha=kp;ap.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=xp(e),a=xp(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Sp({type:"rgb",values:s})},ap.colorChannel=void 0;var fp=ap.darken=Cp;ap.decomposeColor=xp,ap.emphasize=Ip;var mp=ap.getContrastRatio=function(e,t){const n=Ep(e),r=Ep(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};ap.getLuminance=Ep,ap.hexToRgb=yp,ap.hslToRgb=_p;var hp=ap.lighten=Tp;ap.private_safeAlpha=function(e,t,n){try{return kp(e,t)}catch{return e}},ap.private_safeColorChannel=void 0,ap.private_safeDarken=function(e,t,n){try{return Cp(e,t)}catch{return e}},ap.private_safeEmphasize=function(e,t,n){try{return Ip(e,t)}catch{return e}},ap.private_safeLighten=function(e,t,n){try{return Tp(e,t)}catch{return e}},ap.recomposeColor=Sp,ap.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=xp(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 gp=dp(cp),vp=dp(up);function bp(e,t=0,n=1){return(0,vp.default)(e,t,n)}function yp(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 xp(e){if(e.type)return e;if("#"===e.charAt(0))return xp(yp(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,gp.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,gp.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const wp=e=>{const t=xp(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};ap.colorChannel=wp;function Sp(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 _p(e){e=xp(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])),Sp({type:s,values:l})}function Ep(e){let t="hsl"===(e=xp(e)).type||"hsla"===e.type?xp(_p(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 kp(e,t){return e=xp(e),t=bp(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Sp(e)}function Cp(e,t){if(e=xp(e),t=bp(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 Sp(e)}function Tp(e,t){if(e=xp(e),t=bp(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 Sp(e)}function Ip(e,t=.15){return Ep(e)>.5?Cp(e,t):Tp(e,t)}ap.private_safeColorChannel=(e,t)=>{try{return wp(e)}catch{return e}};const Mp={black:"#000",white:"#fff"},Op={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"},Dp="#f3e5f5",jp="#ce93d8",Ap="#ba68c8",Pp="#ab47bc",Rp="#9c27b0",Np="#7b1fa2",Lp="#e57373",Fp="#ef5350",Up="#f44336",Bp="#d32f2f",zp="#c62828",Vp="#ffb74d",Kp="#ffa726",$p="#ff9800",Hp="#f57c00",Yp="#e65100",Wp="#e3f2fd",Gp="#90caf9",qp="#42a5f5",Jp="#1976d2",Xp="#1565c0",Zp="#4fc3f7",Qp="#29b6f6",ef="#03a9f4",tf="#0288d1",nf="#01579b",rf="#81c784",of="#66bb6a",af="#4caf50",sf="#388e3c",lf="#2e7d32",cf="#1b5e20",uf=["mode","contrastThreshold","tonalOffset"],df={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:Mp.white,default:Mp.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}},pf={text:{primary:Mp.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:Mp.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 ff(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=hp(e.main,o):"dark"===t&&(e.dark=fp(e.main,i)))}function mf(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rs(e,uf),i=e.primary||function(e="light"){return"dark"===e?{main:Gp,light:Wp,dark:qp}:{main:Jp,light:qp,dark:Xp}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:jp,light:Dp,dark:Pp}:{main:Rp,light:Ap,dark:Np}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Up,light:Lp,dark:Bp}:{main:Bp,light:Fp,dark:zp}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Qp,light:Zp,dark:tf}:{main:tf,light:ef,dark:nf}}(t),c=e.success||function(e="light"){return"dark"===e?{main:of,light:rf,dark:sf}:{main:lf,light:af,dark:cf}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Kp,light:Vp,dark:Hp}:{main:"#ed6c02",light:$p,dark:Yp}}(t);function d(e){return mp(e,pf.text.primary)>=n?pf.text.primary:df.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ys({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(js(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(js(12,t?` (${t})`:"",JSON.stringify(e.main)));return ff(e,"light",o,r),ff(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:pf,light:df};return jc(ys({common:ys({},Mp),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:Op,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const hf=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function gf(e){return Math.round(1e5*e)/1e5}const vf={textTransform:"uppercase"},bf='"Roboto", "Helvetica", "Arial", sans-serif';function yf(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=bf,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Rs(n,hf),f=o/14,m=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>ys({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===bf?{letterSpacing:`${gf(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,vf),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,vf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return jc(ys({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function xf(...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 wf=["none",xf(0,2,1,-1,0,1,1,0,0,1,3,0),xf(0,3,1,-2,0,2,2,0,0,1,5,0),xf(0,3,3,-2,0,3,4,0,0,1,8,0),xf(0,2,4,-1,0,4,5,0,0,1,10,0),xf(0,3,5,-1,0,5,8,0,0,1,14,0),xf(0,3,5,-1,0,6,10,0,0,1,18,0),xf(0,4,5,-2,0,7,10,1,0,2,16,1),xf(0,5,5,-3,0,8,10,1,0,3,14,2),xf(0,5,6,-3,0,9,12,1,0,3,16,2),xf(0,6,6,-3,0,10,14,1,0,4,18,3),xf(0,6,7,-4,0,11,15,1,0,4,20,3),xf(0,7,8,-4,0,12,17,2,0,5,22,4),xf(0,7,8,-4,0,13,19,2,0,5,24,4),xf(0,7,9,-4,0,14,21,2,0,5,26,4),xf(0,8,9,-5,0,15,22,2,0,6,28,5),xf(0,8,10,-5,0,16,24,2,0,6,30,5),xf(0,8,11,-5,0,17,26,2,0,6,32,5),xf(0,9,11,-5,0,18,28,2,0,7,34,6),xf(0,9,12,-6,0,19,29,2,0,7,36,6),xf(0,10,13,-6,0,20,31,3,0,8,38,7),xf(0,10,13,-6,0,21,33,3,0,8,40,7),xf(0,10,14,-6,0,22,35,3,0,8,42,7),xf(0,11,14,-7,0,23,36,3,0,9,44,8),xf(0,11,15,-7,0,24,38,3,0,9,46,8)],Sf=["duration","easing","delay"],_f={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)"},Ef={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kf(e){return`${Math.round(e)}ms`}function Cf(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Tf(e){const t=ys({},_f,e.easing),n=ys({},Ef,e.duration);return ys({getAutoHeightDuration:Cf,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;Rs(r,Sf);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:kf(o)} ${i} ${"string"==typeof a?a:kf(a)}`)).join(",")}},e,{easing:t,duration:n})}const If={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Mf=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const Of=function(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Rs(e,Mf);if(e.vars)throw new Error(js(18));const s=mf(r),l=Fu(e);let c=jc(l,{mixins:ip(l.breakpoints,n),palette:s,shadows:wf.slice(),typography:yf(s,i),transitions:Tf(o),zIndex:ys({},If)});return c=jc(c,a),c=t.reduce(((e,t)=>jc(e,t)),c),c.unstable_sxConfig=ys({},Au,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Ru({sx:e,theme:this})},c}();function Df(){const e=Vu(Of);return e[Ps]||e}function jf({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=Vu(n);return o=o[r]||o,cd({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Of,themeId:Ps})}var Af={};const Pf=ja(xs);var Rf,Nf={exports:{}};const Lf=ja(Mc),Ff=ja(Ac),Uf=ja(Kc),Bf=ja(sd),zf=ja(Uu),Vf=ja(Hu);var Kf=lp;Object.defineProperty(Af,"__esModule",{value:!0});var $f=Af.default=function(e={}){const{themeId:t,defaultTheme:n=nm,rootShouldForwardProp:r=tm,slotShouldForwardProp:o=tm}=e,i=e=>(0,Jf.default)((0,Hf.default)({},e,{theme:om((0,Hf.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Wf.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=im(rm(l))}=a,p=(0,Yf.default)(a,Qf),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=tm;"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,Wf.default)(e,(0,Hf.default)({shouldForwardProp:h,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Gf.isPlainObject)(e)?r=>am(e,(0,Hf.default)({},r,{theme:om({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=om((0,Hf.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]=am(n,(0,Hf.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=om((0,Hf.default)({},e,{defaultTheme:n,themeId:t}));return am({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,Hf.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}};Af.shouldForwardProp=tm,Af.systemDefaultTheme=void 0;var Hf=Kf(Pf),Yf=Kf((Rf||(Rf=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}(Nf)),Nf.exports)),Wf=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=em(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}(Lf),Gf=Ff,qf=(Kf(Uf),Kf(Bf),Kf(zf)),Jf=Kf(Vf);const Xf=["ownerState"],Zf=["variants"],Qf=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function em(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(em=function(e){return e?n:t})(e)}function tm(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nm=Af.systemDefaultTheme=(0,qf.default)(),rm=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function om({defaultTheme:e,theme:t,themeId:n}){return function(e){return 0===Object.keys(e).length}(t)?e:t[n]||t}function im(e){return e?(t,n)=>n[e]:null}function am(e,t){let{ownerState:n}=t,r=(0,Yf.default)(t,Xf);const o="function"==typeof e?e((0,Hf.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>am(e,(0,Hf.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Yf.default)(o,Zf);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,Hf.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,Hf.default)({ownerState:n},r,n)):e.style))})),t}return o}const sm=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,lm=$f({themeId:Ps,defaultTheme:Of,rootShouldForwardProp:sm}),cm=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)},um={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"},dm=um;(e=>{ys({},e)})(um);const pm=Sn.createContext(null);function fm(e){const t=jf({props:e,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:r,dateFormats:o,dateLibInstance:i,locale:a,adapterLocale:s,localeText:l}=t,c=Sn.useMemo((()=>new r({locale:s??a,formats:o,instance:i})),[r,a,s,o,i]),u=Sn.useMemo((()=>({minDate:c.date("1900-01-01T00:00:00.000"),maxDate:c.date("2099-12-31T00:00:00.000")})),[c]),d=Sn.useMemo((()=>({utils:c,defaultDates:u,localeText:ys({},dm,l??{})})),[u,c,l]);return(0,Tn.jsx)(pm.Provider,{value:d,children:n})}const mm={icon:"icon-8081be27","icon--block":"icon--block-4aa6379d","icon--inline":"icon--inline-5d045b85"},hm=(0,Sn.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=Ia("notranslate","material-symbols",mm.icon,mm[`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,Tn.jsx)("span",{"data-name":"icon",role:"img","aria-hidden":!i,...u,className:d,style:p,ref:t,"aria-label":i,children:r})}));hm.displayName="Icon";const gm={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"},vm=(0,Sn.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?Ia(gm["btn--no-style"],r,{[gm["btn--full-width"]]:g}):Ia(gm.btn,gm[`btn--${o}`],gm[`btn--${i}`],r,{[gm[`btn--${a}`]]:a},{[gm["btn--underline"]]:u},{[gm["btn--is-hovered"]]:d},{[gm["btn--is-active"]]:p},{[gm["btn--is-loading"]]:f},{[gm["btn--icon-only"]]:s},{[gm["btn--icon"]]:w},{[gm["btn--full-width"]]:g}),_=(e,t)=>{const n={size:16,className:Ia(gm.btn__icon,gm[`btn__icon--${e}`],{[gm.btn__spinner]:f})},r="string"==typeof t?{...n,name:t}:{...n,...t,className:Ia(n.className,null==t?void 0:t.className)};return f?(0,Tn.jsx)(s0,{className:r.className}):(0,Tn.jsx)(hm,{...r})};return(0,Tn.jsx)(CQ,{visibility:"hide",children:(0,Tn.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,Tn.jsxs)("span",{className:gm.btn__inner,children:[s&&_("centre",s),l&&_("left",l),(0,Tn.jsx)("span",{className:gm.btn__text,children:e}),f&&!w&&(0,Tn.jsx)(s0,{position:"absolute",className:gm.btn__spinner}),c&&_("right",c)]})})})}));vm.displayName="ButtonContent";const bm=vm,ym=(0,Sn.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,Tn.jsx)(bm,{"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})}));ym.displayName="Button";const xm=ym;function wm(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 Sm(e,t,n){0===t&&!n&&null!=e&&e.style&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}const _m={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 Em(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 km=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],Cm=Sn.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);km.forEach((e=>{delete v[e]}));const b=(0,Sn.useRef)(p),y=(0,Sn.useRef)(null),x=(0,Sn.useRef)(),w=(0,Sn.useRef)(),S=(0,Sn.useRef)(Object.assign(Object.assign({},_m),r)),_=(0,Sn.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"):wm(C)&&(C="0%"===p?0:p,T="hidden");const[I,M]=(0,Sn.useState)(C),[O,D]=(0,Sn.useState)(T),[j,A]=(0,Sn.useState)(!1),[P,R]=(0,Sn.useState)(Em(S.current,p));(0,Sn.useEffect)((()=>{Sm(y.current,I,c)}),[]),(0,Sn.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):wm(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=Em(S.current,r);M(n),D("hidden"),A(!a),R(s),clearTimeout(w.current),clearTimeout(x.current),a?(o=!0,w.current=setTimeout((()=>{M(r),D(i),A(o),null==m||m(r)}),50),x.current=setTimeout((()=>{A(!1),R(l),Sm(y.current,r,c),null==f||f(r)}),t)):(null==m||m(n),w.current=setTimeout((()=>{M(r),D(i),A(!1),R(l),"auto"!==p&&Sm(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:O||(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 Sn.createElement("div",Object.assign({},v,{"aria-hidden":F,className:`${P} ${a}`,style:N,ref:t}),Sn.createElement("div",{className:s,style:L,ref:e=>{y.current=e,g&&(g.current=e)}},i))})),Tm={collapse__title:"collapse__title-8b98d783",collapse__icon:"collapse__icon-6cfc1cff","collapse--is-open":"collapse--is-open-67cf3662",collapse__content:"collapse__content-c7ea2935"},Im=e=>{const{getLabel:t}=i0(),{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]=Sn.useState(u),g=jQ(),v=g||(void 0!==d?d:m),b=Ia(Tm.collapse,o,{[Tm["collapse--is-open"]]:v}),y=()=>{h((e=>!e)),null==p||p(!v)},x=(0,Tn.jsx)("div",{className:Tm.collapse__content,children:r});return(0,Tn.jsxs)("div",{"data-name":"collapse",...f,className:b,children:[(0,Tn.jsx)("button",{type:"button","data-name":"collapse-trigger",className:Tm.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,Tn.jsxs)(d0,{justifyContent:"between",alignItems:"center",wrap:"nowrap",...c,element:"span",children:[l&&(0,Tn.jsx)(p0,{children:l}),(0,Tn.jsx)(p0,{width:"auto",children:(0,Tn.jsxs)(d0,{element:"span",alignItems:"center",gutter:1,children:[(0,Tn.jsx)(CQ,{visibility:"hide",children:(0,Tn.jsx)(p0,{width:"auto",className:Ia({"visually-hidden":s}),children:(0,Tn.jsx)(vs,{element:"span",color:"primary",children:v?a:i})})}),(0,Tn.jsx)(p0,{width:"auto",children:(0,Tn.jsx)(hm,{className:Tm.collapse__icon,name:"expand_more"})})]})})]})}),g?x:(0,Tn.jsx)(Cm,{duration:300,id:n,height:v?"auto":0,"data-testid":"collapse-inner",children:x})]})},Mm=(0,Sn.forwardRef)(((e,t)=>{const{getLabel:n}=i0(),{visualType:r="link",as:o,children:i,...a}=e;return(0,Tn.jsxs)(bm,{"data-name":"anchor",...a,ref:t,as:o||"a",visualType:r,children:[i,"_blank"===a.target&&(0,Tn.jsxs)("span",{className:"sr-only",children:["(",n("anchor.new-tab"),")"]})]})}));Mm.displayName="Anchor";const Om=Sn.createContext({menuOpen:!1,toggleMenu:()=>null,headerType:"system",reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),context:{},y:null,headerElement:null,headerBottomElement:null,headerBottomSize:void 0}),Dm={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"},jm=Sn.createContext({}),Am=e=>{const t=null==e?void 0:e.replace(/(top-)|(left-)/s,"");return[null==e?void 0:e.replace(new RegExp(`(${t})|-`,"g"),""),t]},Pm=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`}},Rm=(0,Sn.forwardRef)(((e,t)=>{const{getCurrentBreakpointProps:n}=us(),{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]=Am(c),f=Ia(Dm.card,o,{[Dm[`card--border-${d}`]]:d,[Dm["card--borderless"]]:l,[Dm["card--no-border-radius-top"]]:!1===s||!1===(null==s?void 0:s.top),[Dm["card--no-border-radius-right"]]:!1===s||!1===(null==s?void 0:s.right),[Dm["card--no-border-radius-bottom"]]:!1===s||!1===(null==s?void 0:s.bottom),[Dm["card--no-border-radius-left"]]:!1===s||!1===(null==s?void 0:s.left)});return(0,Tn.jsx)(jm.Provider,{value:{padding:i,background:a},children:(0,Tn.jsx)("div",{"data-name":"card",...u,className:f,ref:t,style:p?{"--card-border-color":`var(--color-${p})`}:void 0,children:r})})}));Rm.displayName="Card";const Nm=e=>{const{variant:t,...n}=e,{getCurrentBreakpointProps:r}=us(),{padding:o}=Sn.useContext(jm),{children:i,className:a,background:s,padding:l,...c}=r(n,{background:t??"default",padding:o}),u=Ia(Dm.card__header,Dm[`card__header--${s}`],a);return(0,Tn.jsx)("div",{"data-name":"card-header",style:Pm(l),...c,className:u,children:i})};Nm.displayName="CardHeader";const Lm=e=>{const{padding:t,background:n}=Sn.useContext(jm),{getCurrentBreakpointProps:r}=us(),{children:o,className:i,padding:a,background:s,...l}=r(e,{padding:t,background:n}),c=Ia(Dm.card__content,{[gs(s)]:s},i);return(0,Tn.jsx)("div",{"data-name":"card-content","data-padding":"number"==typeof a?`${a}rem`:void 0,style:Pm(a),...l,className:c,children:o})};Lm.displayName="CardContent";const Fm="card__notification-content-4c89a40e",Um="card__notification-b07a1cfd",Bm=e=>{const{children:t,padding:n,className:r,...o}=e,i=Ia(Um,r);return(0,Tn.jsx)(Lm,{"data-name":"card-notification",padding:n,className:Fm,children:(0,Tn.jsx)(E0,{className:i,...o,children:t})})},zm=({children:e})=>(0,Tn.jsx)(Tn.Fragment,{children:e});function Vm(){return typeof window<"u"}function Km(e){return Ym(e)?(e.nodeName||"").toLowerCase():"#document"}function $m(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Hm(e){var t;return null==(t=(Ym(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ym(e){return!!Vm()&&(e instanceof Node||e instanceof $m(e).Node)}function Wm(e){return!!Vm()&&(e instanceof Element||e instanceof $m(e).Element)}function Gm(e){return!!Vm()&&(e instanceof HTMLElement||e instanceof $m(e).HTMLElement)}function qm(e){return!(!Vm()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof $m(e).ShadowRoot)}function Jm(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=nh(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Xm(e){return["table","td","th"].includes(Km(e))}function Zm(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function Qm(e){const t=eh(),n=Wm(e)?nh(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 eh(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function th(e){return["html","body","#document"].includes(Km(e))}function nh(e){return $m(e).getComputedStyle(e)}function rh(e){return Wm(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function oh(e){if("html"===Km(e))return e;const t=e.assignedSlot||e.parentNode||qm(e)&&e.host||Hm(e);return qm(t)?t.host:t}function ih(e){const t=oh(e);return th(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gm(t)&&Jm(t)?t:ih(t)}function ah(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ih(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=$m(o);if(i){const e=sh(a);return t.concat(a,a.visualViewport||[],Jm(o)?o:[],e&&n?ah(e):[])}return t.concat(o,ah(o,[],n))}function sh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function lh(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 ch(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&qm(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function uh(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function dh(){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 ph(e){return!(0!==e.mozInputSource||!e.isTrusted)||(hh()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function fh(e){return!dh().includes("jsdom/")&&(!hh()&&0===e.width&&0===e.height||hh()&&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 mh(){return/apple/i.test(navigator.vendor)}function hh(){const e=/android/i;return e.test(uh())||e.test(dh())}function gh(){return uh().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function vh(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function bh(e){return(null==e?void 0:e.ownerDocument)||document}function yh(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 xh(e){return"composedPath"in e?e.composedPath()[0]:e.target}zm.displayName="HeaderContent";function wh(e){return Gm(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Sh(e){e.preventDefault(),e.stopPropagation()}function _h(e){return!!e&&("combobox"===e.getAttribute("role")&&wh(e))}const Eh=Math.min,kh=Math.max,Ch=Math.round,Th=Math.floor,Ih=e=>({x:e,y:e}),Mh={left:"right",right:"left",bottom:"top",top:"bottom"},Oh={start:"end",end:"start"};function Dh(e,t,n){return kh(e,Eh(t,n))}function jh(e,t){return"function"==typeof e?e(t):e}function Ah(e){return e.split("-")[0]}function Ph(e){return e.split("-")[1]}function Rh(e){return"x"===e?"y":"x"}function Nh(e){return"y"===e?"height":"width"}function Lh(e){return["top","bottom"].includes(Ah(e))?"y":"x"}function Fh(e){return Rh(Lh(e))}function Uh(e){return e.replace(/start|end/g,(e=>Oh[e]))}function Bh(e){return e.replace(/left|right|bottom|top/g,(e=>Mh[e]))}function zh(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 Vh(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 Kh=["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(","),$h=typeof Element>"u",Hh=$h?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yh=!$h&&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},Wh=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)},Gh=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!Wh(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{Hh.call(a,Kh)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var c=a.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(a),u=!Wh(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},qh=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Jh=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))&&!qh(e)?0:e.tabIndex},Xh=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Zh=function(e){return"INPUT"===e.tagName},Qh=function(e){return function(e){return Zh(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Yh(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)},eg=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},tg=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=Hh.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Hh.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return eg(e)}else{if("function"==typeof r){for(var i=e;e;){var a=e.parentElement,s=Yh(e);if(a&&!a.shadowRoot&&!0===r(a))return eg(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&&Yh(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=Yh(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},ng=function(e,t){return!(t.disabled||Wh(t)||function(e){return Zh(e)&&"hidden"===e.type}(t)||tg(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!!Hh.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},rg=function(e,t){return!(Qh(t)||Jh(t)<0||!ng(e,t))},og=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ig=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=Jh(e);return n<0&&t&&!qh(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(Xh).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},ag=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Gh([e],t.includeContainer,{filter:rg.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:og}):function(e,t,n){if(Wh(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Kh));return t&&Hh.call(e,Kh)&&r.unshift(e),r.filter(n)}(e,t.includeContainer,rg.bind(null,t)),ig(n)};function sg(e,t,n){let{reference:r,floating:o}=e;const i=Lh(t),a=Fh(t),s=Nh(a),l=Ah(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(Ph(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function lg(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}=jh(t,e),m=zh(f),h=s[p?"floating"===d?"reference":"floating":d],g=Vh(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=Vh(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 cg(e){const t=nh(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Gm(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Ch(n)!==i||Ch(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ug(e){return Wm(e)?e:e.contextElement}function dg(e){const t=ug(e);if(!Gm(t))return Ih(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=cg(t);let a=(i?Ch(n.width):n.width)/r,s=(i?Ch(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const pg=Ih(0);function fg(e){const t=$m(e);return eh()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:pg}function mg(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=ug(e);let a=Ih(1);t&&(r?Wm(r)&&(a=dg(r)):a=dg(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==$m(e))&&t}(i,n,r)?fg(i):Ih(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=$m(i),t=r&&Wm(r)?$m(r):r;let n=e,o=sh(n);for(;o&&r&&t!==n;){const e=dg(o),t=o.getBoundingClientRect(),r=nh(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=$m(o),o=sh(n)}}return Vh({width:u,height:d,x:l,y:c})}function hg(e,t){const n=rh(e).scrollLeft;return t?t.left+n:mg(Hm(e)).left+n}function gg(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:hg(e,r)),y:r.top+t.scrollTop}}function vg(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=$m(e),r=Hm(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=eh();(!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=Hm(e),n=rh(e),r=e.ownerDocument.body,o=kh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=kh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+hg(e);const s=-n.scrollTop;return"rtl"===nh(r).direction&&(a+=kh(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Hm(e));else if(Wm(t))r=function(e,t){const n=mg(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Gm(e)?dg(e):Ih(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=fg(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Vh(r)}function bg(e,t){const n=oh(e);return!(n===t||!Wm(n)||th(n))&&("fixed"===nh(n).position||bg(n,t))}function yg(e,t){const n=t.get(e);if(n)return n;let r=ah(e,[],!1).filter((e=>Wm(e)&&"body"!==Km(e))),o=null;const i="fixed"===nh(e).position;let a=i?oh(e):e;for(;Wm(a)&&!th(a);){const t=nh(a),n=Qm(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Jm(a)&&!n&&bg(e,a))?r=r.filter((e=>e!==a)):o=t,a=oh(a)}return t.set(e,r),r}function xg(e,t,n){const r=Gm(t),o=Hm(t),i="fixed"===n,a=mg(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ih(0);if(r||!r&&!i)if(("body"!==Km(t)||Jm(o))&&(s=rh(t)),r){const e=mg(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=hg(o));const c=!o||r||i?Ih(0):gg(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 wg(e){return"static"===nh(e).position}function Sg(e,t){if(!Gm(e)||"fixed"===nh(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Hm(e)===n&&(n=n.ownerDocument.body),n}function _g(e,t){const n=$m(e);if(Zm(e))return n;if(!Gm(e)){let t=oh(e);for(;t&&!th(t);){if(Wm(t)&&!wg(t))return t;t=oh(t)}return n}let r=Sg(e,t);for(;r&&Xm(r)&&wg(r);)r=Sg(r,t);return r&&th(r)&&wg(r)&&!Qm(r)?n:r||function(e){let t=oh(e);for(;Gm(t)&&!th(t);){if(Qm(t))return t;if(Zm(t))return null;t=oh(t)}return null}(e)||n}const Eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Hm(r),s=!!t&&Zm(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Ih(1);const u=Ih(0),d=Gm(r);if((d||!d&&!i)&&(("body"!==Km(r)||Jm(a))&&(l=rh(r)),Gm(r))){const e=mg(r);c=dg(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||i?Ih(0):gg(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:Hm,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Zm(t)?[]:yg(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=vg(t,n,o);return e.top=kh(r.top,e.top),e.right=Eh(r.right,e.right),e.bottom=Eh(r.bottom,e.bottom),e.left=kh(r.left,e.left),e}),vg(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:_g,getElementRects:async function(e){const t=this.getOffsetParent||_g,n=this.getDimensions,r=await n(e.floating);return{reference:xg(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}=cg(e);return{width:t,height:n}},getScale:dg,isElement:Wm,isRTL:function(e){return"rtl"===nh(e).direction}};function kg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Cg(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=ug(e),u=o||i?[...c?ah(c):[],...ah(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=Hm(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:-Th(d)+"px "+-Th(o.clientWidth-(u+p))+"px "+-Th(o.clientHeight-(d+f))+"px "+-Th(u)+"px",threshold:kh(0,Eh(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&&!kg(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?mg(e):null;return l&&function t(){const r=mg(e);h&&!kg(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 Tg=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=Ah(n),s=Ph(n),l="y"===Lh(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=jh(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}}}}},Ig=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}=jh(e,t),c={x:n,y:r},u=await lg(t,l),d=Lh(Ah(o)),p=Rh(d);let f=c[p],m=c[d];if(i){const e="y"===p?"bottom":"right";f=Dh(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";m=Dh(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}}}}}},Mg=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}=jh(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Ah(o),b=Lh(s),y=Ah(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=p||(y||!h?[Bh(s)]:function(e){const t=Bh(e);return[Uh(e),t,Uh(t)]}(s)),S="none"!==m;!p&&S&&w.push(...function(e,t,n,r){const o=Ph(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[]}}(Ah(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Uh)))),i}(s,h,m,x));const _=[s,...w],E=await lg(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=Ph(e),o=Fh(e),i=Nh(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Bh(a)),[a,Bh(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=Lh(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{}}}},Og=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}=jh(e,t)||{};if(null==c)return{};const d=zh(u),p={x:n,y:r},f=Fh(o),m=Nh(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=Eh(d[v],k),T=Eh(d[b],k),I=C,M=_-h[m]-T,O=_/2-h[m]/2+E,D=Dh(I,O,M),j=!l.arrow&&null!=Ph(o)&&O!==D&&i.reference[m]/2-(O<I?C:T)-h[m]/2<0,A=j?O<I?O-I:O-M:0;return{[f]:p[f]+A,data:{[f]:D,centerOffset:O-D-A,...j&&{alignmentOffset:A}},reset:j}}}),Dg=(e,t,n)=>{const r=new Map,o={platform:Eg,...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}=sg(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}=sg(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:o,middlewareData:f}})(e,t,{...o,platform:i})};var jg=typeof document<"u"?Sn.useLayoutEffect:Sn.useEffect;function Ag(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(!Ag(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||Ag(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Pg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rg(e,t){const n=Pg(e);return Math.round(t*n)/n}function Ng(e){const t=Sn.useRef(e);return jg((()=>{t.current=e})),t}const Lg=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?Og({element:n.current,padding:r}).fn(t):{}:n?Og({element:n,padding:r}).fn(t):{}}}),Fg=(e,t)=>({...Tg(e),options:[e,t]}),Ug=(e,t)=>({...Ig(e),options:[e,t]}),Bg=(e,t)=>({...Mg(e),options:[e,t]}),zg=(e,t)=>({...Lg(e),options:[e,t]});function Vg(e){return Sn.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const Kg={..._n},$g=Kg.useInsertionEffect||(e=>e());function Hg(e){const t=Sn.useRef((()=>{0}));return $g((()=>{t.current=e})),Sn.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 Yg=typeof document<"u"?Sn.useLayoutEffect:Sn.useEffect;function Wg(){return Wg=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},Wg.apply(this,arguments)}let Gg=!1,qg=0;const Jg=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+qg++;const Xg=Kg.useId||function(){const[e,t]=Sn.useState((()=>Gg?Jg():void 0));return Yg((()=>{null==e&&t(Jg())}),[]),Sn.useEffect((()=>{Gg=!0}),[]),e};const Zg=Sn.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=Xg(),[v,b]=Sn.useState(!1);if(Yg((()=>{r&&"rtl"===nh(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 O=null!=(null==o?void 0:o.x)?S||o.x:"",D=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 Sn.createElement("svg",Wg({},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]:O,[I]:D,[y]:w||T?"100%":"calc(100% - "+_/2+"px)",transform:[A,f].filter((e=>!!e)).join(" "),...m}}),_>0&&Sn.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:_+(p?0:1),d:j}),Sn.createElement("path",{stroke:_&&!p?h.fill:"none",d:j}),Sn.createElement("clipPath",{id:g},Sn.createElement("rect",{x:-E,y:E*(T?-1:1),width:a+_,height:a})))}));const Qg=Sn.createContext(null),ev=Sn.createContext(null),tv=()=>{var e;return(null==(e=Sn.useContext(Qg))?void 0:e.id)||null},nv=()=>Sn.useContext(ev);function rv(e){return"data-floating-ui-"+e}function ov(e){const t=(0,Sn.useRef)(e);return Yg((()=>{t.current=e})),t}const iv=rv("safe-polygon");function av(e,t,n){return n&&!vh(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function sv(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=nv(),m=tv(),h=ov(c),g=ov(l),v=ov(n),b=Sn.useRef(),y=Sn.useRef(-1),x=Sn.useRef(),w=Sn.useRef(-1),S=Sn.useRef(!0),_=Sn.useRef(!1),E=Sn.useRef((()=>{})),k=Sn.useRef(!1),C=Sn.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]);Sn.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]),Sn.useEffect((()=>{if(!s||!h.current||!n)return;function e(e){C()&&r(!1,e,"hover")}const t=bh(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,n,r,s,h,C]);const T=Sn.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=av(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=Hg((()=>{E.current(),x.current=void 0})),M=Hg((()=>{if(_.current){const e=bh(a.floating).body;e.style.pointerEvents="",e.removeAttribute(iv),_.current=!1}})),O=Hg((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));Sn.useEffect((()=>{if(s&&Wm(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&&!vh(b.current)||d>0&&!av(g.current,"open"))return;const t=av(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(O())return;E.current();const t=bh(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(),O()||T(e,!0,"safe-polygon")}});const r=x.current;return t.addEventListener("mousemove",r),void(E.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==b.current||!ch(a.floating,e.relatedTarget))&&T(e)}function l(e){O()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:f,x:e.clientX,y:e.clientY,onClose(){M(),I(),O()||T(e)}})(e))}}),[a,s,e,u,d,p,T,I,M,r,n,v,f,g,h,o,O]),Yg((()=>{var e;if(s&&n&&null!=(e=h.current)&&e.__options.blockPointerEvents&&C()){_.current=!0;const e=a.floating;if(Wm(a.domReference)&&e){var t;const n=bh(a.floating).body;n.setAttribute(iv,"");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]),Yg((()=>{n||(b.current=void 0,k.current=!1,I(),M())}),[n,I,M]),Sn.useEffect((()=>()=>{I(),clearTimeout(y.current),clearTimeout(w.current),M()}),[s,a.domReference,I,M]);const D=Sn.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&&!vh(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=Sn.useMemo((()=>({onMouseEnter(){clearTimeout(y.current)},onMouseLeave(e){O()||T(e.nativeEvent,!1)}})),[T,O]);return Sn.useMemo((()=>s?{reference:D,floating:j}:{}),[s,D,j])}let lv=0;function cv(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(lv);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():lv=requestAnimationFrame(i)}function uv(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 dv=new WeakMap,pv=new WeakSet,fv={},mv=0;const hv=e=>e&&(e.host||hv(e.parentNode));function gv(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=hv(t);return e.contains(n)?n:null})).filter((e=>null!=e)))(t,e),s=new Set,l=new Set(a),c=[];fv[o]||(fv[o]=new WeakMap);const u=fv[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"!==Km(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(dv.get(t)||0)+1,a=(u.get(t)||0)+1;dv.set(t,r),u.set(t,a),c.push(t),1===r&&n&&pv.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),s.clear(),mv++,()=>{c.forEach((e=>{const t=(dv.get(e)||0)-1,n=(u.get(e)||0)-1;dv.set(e,t),u.set(e,n),t||(!pv.has(e)&&i&&e.removeAttribute(i),pv.delete(e)),n||e.removeAttribute(o)})),mv--,mv||(dv=new WeakMap,dv=new WeakMap,pv=new WeakSet,fv={})}}function vv(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=bh(e[0]).body;return gv(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const bv=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function yv(e,t){const n=ag(e,bv());"prev"===t&&n.reverse();const r=n.indexOf(lh(bh(e)));return n.slice(r+1)[0]}function xv(){return yv(document.body,"next")}function wv(){return yv(document.body,"prev")}function Sv(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ch(n,r)}function _v(e){ag(e,bv()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Ev(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 kv={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 Cv(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const Tv=Sn.forwardRef((function(e,t){const[n,r]=Sn.useState();Yg((()=>(mh()&&r("button"),document.addEventListener("keydown",Cv),()=>{document.removeEventListener("keydown",Cv)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[rv("focus-guard")]:"",style:kv};return Sn.createElement("span",Wg({},e,o))})),Iv=Sn.createContext(null),Mv=rv("portal");function Ov(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=Xg(),o=Dv(),[i,a]=Sn.useState(null),s=Sn.useRef(null);return Yg((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),Yg((()=>{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(Mv,""),e.appendChild(n),s.current=n,a(n)}),[t,r]),Yg((()=>{if(null===n||!r||s.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!Wm(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(Mv,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,n,r,o]),i}({id:n,root:r}),[a,s]=Sn.useState(null),l=Sn.useRef(null),c=Sn.useRef(null),u=Sn.useRef(null),d=Sn.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 Sn.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&&Sv(e)&&("focusin"===e.type?Ev:_v)(i)}}),[i,o,p]),Sn.useEffect((()=>{i&&(f||Ev(i))}),[f,i]),Sn.createElement(Iv.Provider,{value:Sn.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:u,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},m&&i&&Sn.createElement(Tv,{"data-type":"outside",ref:l,onFocus:e=>{if(Sv(e,i)){var t;null==(t=u.current)||t.focus()}else{const e=wv()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),m&&i&&Sn.createElement("span",{"aria-owns":i.id,style:kv}),i&&Ta.createPortal(t,i),m&&i&&Sn.createElement(Tv,{"data-type":"outside",ref:c,onFocus:e=>{if(Sv(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=xv()||(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 Dv=()=>Sn.useContext(Iv),jv="data-floating-ui-focusable";function Av(e){return e?e.hasAttribute(jv)?e:e.querySelector("["+jv+"]")||e:null}let Pv=[];function Rv(e){Pv=Pv.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Km(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Hh.call(e,Kh)&&rg(t,e)}(t,bv())){const e=ag(t,bv())[0];e&&(t=e)}Pv.push(t),Pv.length>20&&(Pv=Pv.slice(-20))}}function Nv(){return Pv.slice().reverse().find((e=>e.isConnected))}const Lv=Sn.forwardRef((function(e,t){return Sn.createElement("button",Wg({},e,{type:"button",ref:t,tabIndex:-1,style:kv}))}));function Fv(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=_h(y)&&w,_=!(typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype)||i,E=ov(o),k=ov(a),C=ov(s),T=nv(),I=Dv(),M=Sn.useRef(null),O=Sn.useRef(null),D=Sn.useRef(!1),j=Sn.useRef(!1),A=Sn.useRef(-1),P=null!=I,R=Av(x),N=Hg((function(e){return void 0===e&&(e=R),e?ag(e,bv()):[]})),L=Hg((e=>{const t=N(e);return E.current.map((e=>y&&"reference"===e?y:R&&"floating"===e?R:t)).filter(Boolean).flat()}));function F(e){return!r&&u&&c?Sn.createElement(Lv,{ref:"start"===e?M:O,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof u?u:"Dismiss"):null}Sn.useEffect((()=>{if(r||!c)return;function e(e){if("Tab"===e.key){ch(R,lh(bh(R)))&&0===N().length&&!S&&Sh(e);const t=L(),n=xh(e);"reference"===E.current[0]&&n===y&&(Sh(e),e.shiftKey?cv(t[t.length-1]):cv(t[1])),"floating"===E.current[1]&&n===R&&e.shiftKey&&(Sh(e),cv(t[0]))}}const t=bh(R);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,y,R,c,E,S,N,L]),Sn.useEffect((()=>{if(!r&&x)return x.addEventListener("focusin",e),()=>{x.removeEventListener("focusin",e)};function e(e){const t=xh(e),n=N().indexOf(t);-1!==n&&(A.current=n)}}),[r,x,N]),Sn.useEffect((()=>{if(!r&&d)return x&&Gm(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=!(ch(y,t)||ch(x,t)||ch(t,x)||ch(null==I?void 0:I.portalNode,t)||null!=t&&t.hasAttribute(rv("focus-guard"))||T&&(uv(T.nodesRef.current,m).find((e=>{var n,r;return ch(null==(n=e.context)?void 0:n.elements.floating,t)||ch(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&&lh(bh(R))===bh(R).body){Gm(R)&&R.focus();const e=A.current,t=N(),n=t[e]||t[t.length-1]||R;Gm(n)&&n.focus()}(S||!c)&&t&&n&&!j.current&&t!==Nv()&&(D.current=!0,h(!1,e,"focus-out"))}))}}),[r,y,x,R,c,m,T,I,h,d,l,N,S]),Sn.useEffect((()=>{var e;if(r)return;const t=Array.from((null==I||null==(e=I.portalNode)?void 0:e.querySelectorAll("["+rv("portal")+"]"))||[]);if(x){const e=[x,...t,M.current,O.current,E.current.includes("reference")||S?y:null].filter((e=>null!=e)),n=c||S?vv(e,_,!_):vv(e);return()=>{n()}}}),[r,y,x,c,E,I,S,_]),Yg((()=>{if(r||!Gm(R))return;const e=lh(bh(R));queueMicrotask((()=>{const t=L(R),n=k.current,r=("number"==typeof n?t[n]:n.current)||R,o=ch(R,e);!w&&!o&&p&&cv(r,{preventScroll:r===R})}))}),[r,p,R,w,L,k]),Yg((()=>{if(r||!R)return;let e=!1;const t=bh(R),n=lh(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&&Rv(f.domReference.current),"hover"===r&&"mouseleave"===i.type&&(D.current=!0),"outside-press"===r&&(a?(D.current=!1,e=!0):D.current=!(ph(i)||fh(i)))}Rv(n),g.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,kv),P&&y&&y.insertAdjacentElement("afterend",a),()=>{g.off("openchange",i);const n=lh(t),r=ch(x,n)||T&&uv(T.nodesRef.current,m).some((e=>{var t;return ch(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&f.domReference.current&&Rv(f.domReference.current);const s="boolean"==typeof C.current?Nv()||a:C.current.current||a;queueMicrotask((()=>{C.current&&!D.current&&Gm(s)&&(!(s!==n&&n!==t.body)||r)&&s.focus({preventScroll:e}),a.remove()}))}}),[r,x,R,C,v,f,g,T,m,P,y]),Sn.useEffect((()=>{queueMicrotask((()=>{D.current=!1}))}),[r]),Yg((()=>{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]),Yg((()=>{if(r||!R||"function"!=typeof MutationObserver||w)return;const e=()=>{const e=R.getAttribute("tabindex"),t=N(),n=lh(bh(x)),r=t.indexOf(n);-1!==r&&(A.current=r),E.current.includes("floating")||n!==f.domReference.current&&0===t.length?"0"!==e&&R.setAttribute("tabindex","0"):"-1"!==e&&R.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(R,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,x,R,f,E,N,w]);const U=!r&&_&&(!c||!S)&&(P||c);return Sn.createElement(Sn.Fragment,null,U&&Sn.createElement(Tv,{"data-type":"inside",ref:null==I?void 0:I.beforeInsideRef,onFocus:e=>{if(c){const e=L();cv("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(D.current=!1,Sv(e,I.portalNode)){const e=xv()||y;null==e||e.focus()}else{var t;null==(t=I.beforeOutsideRef.current)||t.focus()}}}),!S&&F("start"),n,F("end"),U&&Sn.createElement(Tv,{"data-type":"inside",ref:null==I?void 0:I.afterInsideRef,onFocus:e=>{if(c)cv(L()[0]);else if(null!=I&&I.preserveTabOrder&&I.portalNode)if(d&&(D.current=!0),Sv(e,I.portalNode)){const e=wv()||y;null==e||e.focus()}else{var t;null==(t=I.afterOutsideRef.current)||t.focus()}}}))}let Uv=0;let Bv=()=>{};const zv=Sn.forwardRef((function(e,t){const{lockScroll:n=!1,...r}=e;return Yg((()=>{if(n)return Uv++,1===Uv&&(Bv=function(){const e=/iP(hone|ad|od)|iOS/.test(uh()),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))}}()),()=>{Uv--,0===Uv&&Bv()}}),[n]),Sn.createElement("div",Wg({ref:t},r,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...r.style}}))}));function Vv(e){return Gm(e.target)&&"BUTTON"===e.target.tagName}function Kv(e){return wh(e)}function $v(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=Sn.useRef(),f=Sn.useRef(!1),m=Sn.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==s&&(vh(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:vh(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&&!Vv(e)&&(" "===e.key&&!Kv(i)&&(e.preventDefault(),f.current=!0),"Enter"===e.key&&r(!(n&&l),e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!u||Vv(e)||Kv(i)||" "===e.key&&f.current&&(f.current=!1,r(!(n&&l),e.nativeEvent,"click"))}})),[o,i,s,c,u,r,n,d,l]);return Sn.useMemo((()=>a?{reference:m}:{}),[a,m])}const Hv={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Yv={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Wv=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 Gv(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=nv(),g=Hg("function"==typeof l?l:()=>!1),v="function"==typeof l?g:l,b=Sn.useRef(!1),y=Sn.useRef(!1),{escapeKey:x,outsidePress:w}=Wv(f),{escapeKey:S,outsidePress:_}=Wv(m),E=Sn.useRef(!1),k=Hg((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?uv(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=Hg((e=>{var t;const n=()=>{var t;k(e),null==(t=xh(e))||t.removeEventListener("keydown",n)};null==(t=xh(e))||t.addEventListener("keydown",n)})),T=Hg((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=xh(e),l="["+rv("inert")+"]",u=bh(o.floating).querySelectorAll(l);let d=Wm(s)?s:null;for(;d&&!th(d);){const e=oh(d);if(th(e)||!Wm(e))break;d=e}if(u.length&&Wm(s)&&!function(e){return e.matches("html,body")}(s)&&!ch(s,o.floating)&&Array.from(u).every((e=>!ch(d,e))))return;if(Gm(s)&&O){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"===nh(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&&uv(h.nodesRef.current,p).some((t=>{var n;return yh(e,null==(n=t.context)?void 0:n.elements.floating)}));if(yh(e,o.floating)||yh(e,o.domReference)||f)return;const m=h?uv(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=Hg((e=>{var t;const n=()=>{var t;T(e),null==(t=xh(e))||t.removeEventListener(c,n)};null==(t=xh(e))||t.addEventListener(c,n)}));Sn.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}),eh()?5:0)}const d=bh(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&&(Wm(o.domReference)&&(f=ah(o.domReference)),Wm(o.floating)&&(f=f.concat(ah(o.floating))),!Wm(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(ah(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]),Sn.useEffect((()=>{b.current=!1}),[v,c]);const M=Sn.useMemo((()=>({onKeyDown:k,[Hv[d]]:e=>{u&&r(!1,e.nativeEvent,"reference-press")}})),[k,r,u,d]),O=Sn.useMemo((()=>({onKeyDown:k,onMouseDown(){y.current=!0},onMouseUp(){y.current=!0},[Yv[c]]:()=>{b.current=!0}})),[k,c]);return Sn.useMemo((()=>a?{reference:M,floating:O}:{}),[a,M,O])}function qv(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=Xg(),i=Sn.useRef({}),[a]=Sn.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!=tv();const[l,c]=Sn.useState(r.reference),u=Hg(((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=Sn.useMemo((()=>({setPositionReference:c})),[]),p=Sn.useMemo((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return Sn.useMemo((()=>({dataRef:i,open:t,onOpenChange:u,elements:p,events:a,floatingId:o,refs:d})),[t,u,p,a,o,d])}function Jv(e){void 0===e&&(e={});const{nodeId:t}=e,n=qv({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=Sn.useState(null),[s,l]=Sn.useState(null),c=(null==o?void 0:o.domReference)||i,u=Sn.useRef(null),d=nv();Yg((()=>{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]=Sn.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=Sn.useState(r);Ag(p,r)||f(r);const[m,h]=Sn.useState(null),[g,v]=Sn.useState(null),b=Sn.useCallback((e=>{e!==S.current&&(S.current=e,h(e))}),[]),y=Sn.useCallback((e=>{e!==_.current&&(_.current=e,v(e))}),[]),x=i||m,w=a||g,S=Sn.useRef(null),_=Sn.useRef(null),E=Sn.useRef(u),k=null!=l,C=Ng(l),T=Ng(o),I=Ng(c),M=Sn.useCallback((()=>{if(!S.current||!_.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),Dg(S.current,_.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};O.current&&!Ag(E.current,t)&&(E.current=t,Ta.flushSync((()=>{d(t)})))}))}),[p,t,n,T,I]);jg((()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const O=Sn.useRef(!1);jg((()=>(O.current=!0,()=>{O.current=!1})),[]),jg((()=>{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 D=Sn.useMemo((()=>({reference:S,floating:_,setReference:b,setFloating:y})),[b,y]),j=Sn.useMemo((()=>({reference:x,floating:w})),[x,w]),A=Sn.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=Rg(j.floating,u.x),r=Rg(j.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Pg(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,j.floating,u.x,u.y]);return Sn.useMemo((()=>({...u,update:M,refs:D,elements:j,floatingStyles:A})),[u,M,D,j,A])}({...e,elements:{...o,...s&&{reference:s}}}),f=Sn.useCallback((e=>{const t=Wm(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),m=Sn.useCallback((e=>{(Wm(e)||null===e)&&(u.current=e,a(e)),(Wm(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Wm(e))&&p.refs.setReference(e)}),[p.refs]),h=Sn.useMemo((()=>({...p.refs,setReference:m,setPositionReference:f,domReference:u})),[p.refs,m,f]),g=Sn.useMemo((()=>({...p.elements,domReference:c})),[p.elements,c]),v=Sn.useMemo((()=>({...p,...r,refs:h,elements:g,nodeId:t})),[p,h,g,t,r]);return Yg((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Sn.useMemo((()=>({...p,context:v,refs:h,elements:g})),[p,h,g,v])}function Xv(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=Sn.useRef(!1),u=Sn.useRef(),d=Sn.useRef(!0);Sn.useEffect((()=>{if(!s)return;const e=$m(a.domReference);function t(){!n&&Gm(a.domReference)&&a.domReference===lh(bh(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]),Sn.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]),Sn.useEffect((()=>()=>{clearTimeout(u.current)}),[]);const p=Sn.useMemo((()=>({onPointerDown(e){fh(e.nativeEvent)||(d.current=!1)},onMouseLeave(){c.current=!1},onFocus(e){if(c.current)return;const t=xh(e.nativeEvent);if(l&&Wm(t))try{if(mh()&&gh())throw Error();if(!t.matches(":focus-visible"))return}catch{if(!d.current&&!wh(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){c.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=Wm(t)&&t.hasAttribute(rv("focus-guard"))&&"outside"===t.getAttribute("data-type");u.current=window.setTimeout((()=>{var e;const s=lh(a.domReference?a.domReference.ownerDocument:document);!t&&s===a.domReference||ch(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||ch(a.domReference,s)||o||r(!1,n,"focus")}))}})),[i,a.domReference,r,l]);return Sn.useMemo((()=>s?{reference:p}:{}),[s,p])}const Zv="active",Qv="selected";function eb(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[Zv]:t,[Qv]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[jv]:""},...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||![Zv,Qv].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 tb(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=Sn.useCallback((t=>eb(t,e,"reference")),t),i=Sn.useCallback((t=>eb(t,e,"floating")),n),a=Sn.useCallback((t=>eb(t,e,"item")),r);return Sn.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}const nb=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function rb(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(n=nb.get(a))?n:a,l=Xg(),c=null!=tv(),u=Sn.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=Sn.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=Sn.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 Sn.useMemo((()=>i?{reference:u,floating:d,item:p}:{}),[i,u,d,p])}function ob(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 ib(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=xh(e),x="mouseleave"===e.type,w=ch(d.floating,y),S=ch(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,O=E.height>_.height,D=(M?_:E).left,j=(M?_:E).right,A=(O?_:E).top,P=(O?_:E).bottom;if(w&&(i=!0,!x))return;if(S&&(i=!1),S&&!x)return void(i=!0);if(x&&Wm(e.relatedTarget)&&ch(d.floating,e.relatedTarget)||m&&uv(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 R=[];switch(k){case"top":R=[[D,_.top+1],[D,E.bottom-1],[j,E.bottom-1],[j,_.top+1]];break;case"bottom":R=[[D,E.top+1],[D,_.bottom-1],[j,_.bottom-1],[j,E.top+1]];break;case"left":R=[[E.right-1,P],[E.right-1,A],[_.left+1,A],[_.left+1,P]];break;case"right":R=[[_.right-1,P],[_.right-1,A],[E.left+1,A],[E.left+1,P]]}if(!ob([g,v],R)){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()}ob([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,O?r+t/2:T?r+4*t:r-4*t],o=[n+t+1,O?r-t/2:T?r+4*t:r-4*t];return[[T||O?E.right-t:E.left,E.top],[T?O?E.right-t:E.left:E.right-t,E.bottom],e,o]}case"right":return[[n-t,O?r+t/2:T?r+4*t:r-4*t],[n-t,O?r-t/2:T?r+4*t:r-4*t],[T||O?E.left+t:E.right,E.top],[T?O?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 ab={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"},sb=10,lb=Sn.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:{}}),cb=e=>{const{getLabel:t}=i0(),n=AQ(),{children:r,placement:o="bottom",openWith:i=(n?"click":"hover"),defaultOpen:a=!1,open:s,onToggle:l,role:c="tooltip",offset:u=sb}=e,{order:d=["reference","content"],modal:p=!1,initialFocus:f=-1,...m}=e.focusManager??{},{visuallyHiddenDismiss:h=!!p&&t("close")}=m??{},[g,v]=Sn.useState(a),b=Sn.useRef(null),y=l&&typeof s<"u"?s:g,x=TQ(),{x:w,y:S,refs:_,strategy:E,context:k,middlewareData:C,placement:T}=Jv({placement:o,open:y,onOpenChange:e=>{typeof s>"u"&&v(e),null==l||l(e)},middleware:[Fg(u),Bg(),Ug({padding:8}),zg({element:b,padding:4})],whileElementsMounted:Cg}),{getReferenceProps:I,getFloatingProps:M}=tb([sv(k,{handleClose:ib(),enabled:"hover"===i}),$v(k),Xv(k,{enabled:"hover"===i}),rb(k,{role:c}),Gv(k,{outsidePressEvent:"click"===i?"mousedown":"pointerdown"})]);return(0,Tn.jsx)(lb.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})},ub=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}=Sn.useContext(lb),[h,g]=Am(null==r?void 0:r.border),v=()=>h&&g?`var(--color-${g})`:"none",b="none"!==v();return(0,Tn.jsx)(Ov,{"data-name":"tooltip",children:(()=>{const e=(0,Tn.jsx)(Fv,{...c,context:m,children:(0,Tn.jsxs)("div",{...p({ref:u,style:{position:l,left:a??0,top:s??0},className:Ia(ab.tooltip,o,{[ab[`tooltip--${n}`]]:n})}),"data-placement":f,children:[(0,Tn.jsx)(Zg,{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:Ia(ab.tooltip__arrow,{[ab["tooltip__arrow--stroke"]]:b}),height:7,width:14}),(0,Tn.jsx)(Rm,{padding:.5,borderless:!0,...r,children:(0,Tn.jsx)(Lm,{children:t})})]})});return i?e:null})()})},db=e=>{const{children:t}=e,{getLabel:n}=i0(),{getReferenceProps:r,reference:o,openWith:i}=Sn.useContext(lb),a=Vg([o,t.ref]);return Sn.cloneElement(t,r({ref:a,tabIndex:0,label:t.type===hm?n("tooltip.icon-trigger"):void 0,...t.props,className:Ia(ab.tooltip__trigger,{[ab["tooltip__trigger--click"]]:"click"===i},t.props.className)}))},pb="header__dropdown-cb8faff9",fb="header__dropdown--open-03680708",mb=e=>{const{children:t,triggerProps:n,defaultOpen:r,open:o,onToggle:i,shouldAnimate:a,tooltipProps:s}=e,[l,c]=Sn.useState(r),[u,d]=Sn.useState(sb),{headerElement:p}=Sn.useContext(Om),f=Sn.useRef(null);Sn.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,Tn.jsxs)(cb,{offset:u,openWith:"click",role:"dialog",onToggle:e=>{c(e),null==i||i(e)},open:m,children:[(0,Tn.jsx)(db,{children:(0,Tn.jsx)(xm,{...n,ref:f,className:Ia(pb,n.className,{[fb]:a&&m})})}),(0,Tn.jsx)(ub,{...s,cardProps:{...null==s?void 0:s.cardProps,border:"top-primary-active-subtle",borderless:!1,background:"bg-muted"},children:t})]})},hb={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"},gb=Sn.createContext({isOpen:!1,reference:()=>null,floating:()=>null,getReferenceProps:()=>({}),getFloatingProps:()=>({}),closeModal:()=>null,context:{},isDismissable:!0,escapeKey:!0,outsidePress:!0}),vb=e=>{const{children:t,defaultOpen:n=!1,onToggle:r,isDismissable:o=!0,escapeKey:i=!0,outsidePress:a=!0}=e,[s,l]=Sn.useState(n),c=r&&typeof e.open<"u"?e.open:s,{refs:u,context:d}=Jv({open:c,onOpenChange:e=>e?h():m()}),{getReferenceProps:p,getFloatingProps:f}=tb([$v(d),rb(d),Gv(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,Tn.jsx)(gb.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})},bb=e=>{const{children:t}=e,{closeModal:n}=Sn.useContext(gb);return Sn.cloneElement(t,{onClick:()=>{var e,r;null==(r=(e=t.props).onClick)||r.call(e),n()}})},yb=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}=i0(),p=e["aria-labelledby"],f=e["aria-describedby"],{isOpen:m,floating:h,getFloatingProps:g,context:v,isDismissable:b}=Sn.useContext(gb),y=Sn.useMemo((()=>{let e=!1;const n=e=>e.type.displayName;return o?t:Sn.Children.map(t,((t,r)=>e||!Sn.isValidElement(t)||"CardHeader"!==n(t)&&"CardContent"!==n(t)?t:(e=!0,Sn.cloneElement(t,{...t.props,children:(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)(bb,{children:(0,Tn.jsx)(x0,{size:"large",className:hb["close-button"]})}),t.props.children]})}))))}),[t,d,o]);return(0,Tn.jsx)(Ov,{"data-name":"modal",children:m&&(0,Tn.jsx)(zv,{lockScroll:a,className:Ia(hb.modal,hb[`modal--${n}`],hb[`modal--${i}`],{[hb["modal--no-overlay"]]:"none"===c}),children:(0,Tn.jsx)(Fv,{context:v,closeOnFocusOut:!s&&b,visuallyHiddenDismiss:u?d("modal.close"):void 0,returnFocus:l,modal:s,children:(0,Tn.jsx)("div",{...g({ref:h,className:hb.modal__inner,"aria-labelledby":p,"aria-describedby":f,"aria-modal":s}),children:(0,Tn.jsx)(Rm,{...r,className:Ia(hb.modal__card,null==r?void 0:r.className),children:y})})})})})},xb=e=>{const{children:t}=e,{getReferenceProps:n,reference:r}=Sn.useContext(gb);return Sn.cloneElement(t,n({ref:r,...t.props}))},wb="header-modal__close-824b7dc8",Sb=e=>{const{triggerProps:t,defaultOpen:n,open:r,onToggle:o,children:i,ariaLabelledby:a}=e,{getLabel:s}=i0();return(0,Tn.jsxs)(vb,{defaultOpen:n,open:r,onToggle:o,children:[(0,Tn.jsx)(xb,{children:(0,Tn.jsx)(xm,{...t})}),(0,Tn.jsx)(yb,{"aria-labelledby":a,hideCloseButton:!0,position:"right",children:(0,Tn.jsxs)(Lm,{padding:0,children:[(0,Tn.jsx)(Rm,{borderless:!0,background:"primary-highlight-subtle",padding:.5,borderRadius:!1,children:(0,Tn.jsx)(Lm,{children:(0,Tn.jsx)(vs,{element:"div",modifiers:"right",children:(0,Tn.jsx)(bb,{children:(0,Tn.jsx)(x0,{title:s("modal.close"),size:"large",className:wb})})})})}),(0,Tn.jsx)(Rm,{border:"top-border-default",borderRadius:!1,padding:0,children:(0,Tn.jsx)(Lm,{children:i})})]})})]})},_b=e=>{const{languages:t}=e,n=ms(["desktop","tablet"]),{getLabel:r}=i0(),[o,i]=Sn.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,Tn.jsx)(xm,{visualType:o?"link":e?"primary":"tertiary","aria-current":e,"aria-label":r,onClick:()=>(e=>{null==e||e({onToggle:i})})(t),children:n}),c=(0,Tn.jsxs)("div",{children:[(0,Tn.jsx)(vs,{color:"muted",modifiers:"small",children:r("header.select-lang")}),(0,Tn.jsx)(mb,{shouldAnimate:!0,open:o,onToggle:i,tooltipProps:{cardProps:{padding:1}},triggerProps:s,children:(0,Tn.jsx)(T0,{verticalSpacing:{size:.75},element:"ul",children:(null==t?void 0:t.map((e=>(0,Tn.jsx)(C0,{children:l(e)},e.label))))||[]})})]}),u=(0,Tn.jsx)(Sb,{ariaLabelledby:"header-language-modal-label",open:o,onToggle:i,triggerProps:s,children:(0,Tn.jsx)(Rm,{borderless:!0,children:(0,Tn.jsxs)(Lm,{children:[(0,Tn.jsx)(bs,{id:"header-language-modal-label",className:"sr-only",children:r("header.select-lang")}),(0,Tn.jsx)(d0,{alignItems:"center",element:"ul",children:null==t?void 0:t.map((e=>(0,Tn.jsx)(p0,{width:"auto",children:l(e,!1)},e.label)))})]})})});return n?c:u};_b.displayName="HeaderLanguage";const Eb={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"},kb=(0,Sn.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?A0:i?"abbr":"div",g=Ia(Eb.tag,o,{[Eb[`tag--${r}`]]:r},{[Eb[`tag--type-${l}`]]:l},{[Eb[`tag--color-${a}`]]:a},{[Eb[`tag--status-${s}`]]:s},{[Eb["tag--rounded"]]:c},{[Eb["tag--icon-only"]]:f},{[Eb["tag--disabled"]]:p},{[Eb["tag--with-arrow"]]:u&&!c});return(0,Tn.jsx)(h,{id:m,"data-name":"tag",className:g,title:i,ref:t,children:n})}));kb.displayName="Tag";const Cb="header-role-collapse-7664165f",Tb="header-role-wrapper-c65bcd63",Ib="header-role-children-3fdd2c2c",Mb=e=>{const{renderModal:t=!1,...n}=e,[r,o]=Sn.useState(!1);return t?(0,Tn.jsx)(Db,{...n,open:r,onToggle:o}):(0,Tn.jsx)(Ob,{...n,open:r,onToggle:o})};Mb.displayName="HeaderRole";const Ob=e=>{const{getLabel:t}=i0(),{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,Tn.jsx)(mb,{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,Tn.jsx)("div",{className:Tb,children:(0,Tn.jsx)(M0,{fadeSize:0,children:(0,Tn.jsx)("div",{className:Ib,children:l})})})});return(0,Tn.jsxs)("div",{children:[s===t("header.role-label")?(0,Tn.jsx)("div",{children:(0,Tn.jsx)(kb,{color:"primary",type:"secondary",children:s})}):(0,Tn.jsxs)(vs,{color:"muted",modifiers:["bold","small"],children:[s,!!a&&(0,Tn.jsxs)(Tn.Fragment,{children:[" ",(0,Tn.jsxs)(vs,{element:"span",modifiers:["small","normal"],children:[(0,Tn.jsx)("span",{style:{color:"var(--color-border-default)"},children:"|"})," ",a]})]})]}),l?c:i]})},Db=e=>{const{getLabel:t}=i0(),{children:n,open:r,onToggle:o,primaryInfo:i,secondaryInfo:a,label:s=t("header.role-label")}=e,l=(0,Tn.jsxs)(vs,{element:"span",color:"muted",modifiers:"bold",children:[s," ",i,a&&(0,Tn.jsx)(vs,{element:"span",modifiers:"normal",children:` | ${a}`})]}),c="function"==typeof n?n({onToggle:o}):n;return(0,Tn.jsx)(Rm,{background:"bg-muted",borderRadius:!1,borderless:!0,children:(0,Tn.jsx)(Lm,{padding:0,children:c?(0,Tn.jsx)(Im,{id:"role-collapse",open:r,onToggle:o,className:Cb,hideCollapseText:!0,title:l,children:(0,Tn.jsx)("div",{className:Tb,children:(0,Tn.jsx)(M0,{fadeSize:0,children:(0,Tn.jsx)("div",{className:Ib,children:c})})})}):(0,Tn.jsx)("div",{className:Ib,children:l})})})},jb=e=>{const{children:t,onActionClick:n,closeOnAction:r=!0,iconName:o}=e,[i,a]=Sn.useState(!1),s=ms(["desktop"]),l=ms(["mobile"]),{getLabel:c}=i0(),{headerType:u}=Sn.useContext(Om),d={children:c("header.settings"),visualType:"tertiary",icon:{name:o||"account_circle",color:"primary",size:36}};if("public"===u)return(0,Tn.jsx)(xm,{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,Tn.jsx)(xm,{icon:{name:"logout",color:"primary",size:24},visualType:"tertiary",onClick:n,children:c("header.logout")});const f=()=>(0,Tn.jsx)(xm,{onClick:()=>{n(),r&&a(!1)},iconLeft:"logout",visualType:"link",children:c("header.logout")}),m=(0,Tn.jsx)(mb,{open:i,onToggle:a,tooltipProps:{cardProps:{padding:1}},triggerProps:d,children:(0,Tn.jsxs)(g0,{size:1,children:[p,(0,Tn.jsx)(R0,{isStretched:!0}),(0,Tn.jsx)(f,{})]})}),h=(0,Tn.jsxs)(Sb,{open:i,onToggle:a,ariaLabelledby:"header-settings-modal-label",triggerProps:d,children:[(0,Tn.jsx)(bs,{id:"header-settings-modal-label",className:"sr-only",children:c("header.settings")}),p,(0,Tn.jsx)(R0,{isStretched:!0}),(0,Tn.jsx)(Rm,{borderless:!0,children:(0,Tn.jsx)(Lm,{children:(0,Tn.jsx)(f,{})})}),(0,Tn.jsx)(R0,{isStretched:!0})]});return s?m:h};jb.displayName="HeaderSettings";Sn.createContext({activeStep:0,allowStepLabelClick:!0,handleActiveStepChange:()=>null});function Ab(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=Ab(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Pb(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ab(e))&&(r&&(r+=" "),r+=t);return r}function Rb(e){return np(e)}function Nb(e){return Xu("MuiSvgIcon",e)}Zu("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Lb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Fb=lm("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Vc(n.color)}`],t[`fontSize${Vc(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]}})),Ub=Sn.forwardRef((function(e,t){const n=Rb({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=Rs(n,Lb),f=Sn.isValidElement(r)&&"svg"===r.type,m=ys({},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 Wd({root:["root","inherit"!==t&&`color${Vc(t)}`,`fontSize${Vc(n)}`]},Nb,r)})(m);return(0,Tn.jsxs)(Fb,ys({as:a,className:qu(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,Tn.jsx)("title",{children:u}):null]}))}));function Bb(e,t){function n(n,r){return(0,Tn.jsx)(Ub,ys({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ub.muiName,Sn.memo(Sn.forwardRef(n))}function zb(e,t){return(zb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zb(e,t)}function Kb(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}Ub.muiName="SvgIcon";const $b=!1;const Hb=Sn.createContext(null);var Yb=function(e){return e.scrollTop},Wb="unmounted",Gb="exited",qb="entering",Jb="entered",Xb="exiting",Zb=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=Gb,r.appearStatus=qb):o=Jb:o=t.unmountOnExit||t.mountOnEnter?Wb:Gb,r.state={status:o},r.nextCallback=null,r}Vb(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Wb?{status:Gb}: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!==qb&&n!==Jb&&(t=qb):(n===qb||n===Jb)&&(t=Xb)}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===qb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Ta.findDOMNode(this);n&&Yb(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Gb&&this.setState({status:Wb})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Ta.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||$b?this.safeSetState({status:Jb},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:qb},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Jb},(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:Ta.findDOMNode(this);t&&!$b?(this.props.onExit(r),this.safeSetState({status:Xb},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Gb},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Gb},(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:Ta.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===Wb)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=Rs(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Sn.createElement(Hb.Provider,{value:null},"function"==typeof n?n(e,r):Sn.cloneElement(Sn.Children.only(n),r))},t}(Sn.Component);function Qb(){}Zb.contextType=Hb,Zb.propTypes={},Zb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Qb,onEntering:Qb,onEntered:Qb,onExit:Qb,onExiting:Qb,onExited:Qb},Zb.UNMOUNTED=Wb,Zb.EXITED=Gb,Zb.ENTERING=qb,Zb.ENTERED=Jb,Zb.EXITING=Xb;var ey=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=Kb(e.className,t):e.setAttribute("class",Kb(e.className&&e.className.baseVal||"",t))}(e,t)}))},ty=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}Vb(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&&Yb(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&&ey(e,r),o&&ey(e,o),i&&ey(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Rs(e,["classNames"]);return Sn.createElement(Zb,ys({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Sn.Component);function ny(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ry(e,t){var n=Object.create(null);return e&&Sn.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,Sn.isValidElement)(e)?t(e):e}(e)})),n}function oy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function iy(e,t){return ry(e.children,(function(n){return(0,Sn.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:oy(n,"appear",e),enter:oy(n,"enter",e),exit:oy(n,"exit",e)})}))}function ay(e,t,n){var r=ry(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,Sn.isValidElement)(a)){var s=i in t,l=i in r,c=t[i],u=(0,Sn.isValidElement)(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&(0,Sn.isValidElement)(c)&&(o[i]=(0,Sn.cloneElement)(a,{onExited:n.bind(null,a),in:c.props.in,exit:oy(a,"exit",e),enter:oy(a,"enter",e)})):o[i]=(0,Sn.cloneElement)(a,{in:!1}):o[i]=(0,Sn.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:oy(a,"exit",e),enter:oy(a,"enter",e)})}})),o}ty.defaultProps={classNames:""},ty.propTypes={};var sy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ly=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(ny(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Vb(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?iy(e,r):ay(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=ry(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ys({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Rs(e,["component","childFactory"]),o=this.state.contextValue,i=sy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Sn.createElement(Hb.Provider,{value:o},i):Sn.createElement(Hb.Provider,{value:o},Sn.createElement(t,r,i))},t}(Sn.Component);ly.propTypes={},ly.defaultProps={component:"div",childFactory:function(e){return e}};const cy=e=>e.scrollTop;function uy(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 dy(e){return Xu("MuiPaper",e)}Zu("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 py=["className","component","elevation","square","variant"],fy=lm("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 ys({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&&ys({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${pp("#fff",cm(t.elevation))}, ${pp("#fff",cm(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),my=Sn.forwardRef((function(e,t){const n=Rb({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=Rs(n,py),c=ys({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Wd({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},dy,o)})(c);return(0,Tn.jsx)(fy,ys({as:o,ownerState:c,className:qu(u.root,r),ref:t},l))}));const hy=Zu("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),gy=["center","classes","className"];let vy,by,yy,xy,wy=e=>e;const Sy=yc(vy||(vy=wy`
|
|
3
3
|
0% {
|
|
4
4
|
transform: scale(0);
|
|
5
5
|
opacity: 0.1;
|