@sisense/sdk-ui 1.18.0 → 1.19.0

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.
Files changed (47) hide show
  1. package/dist/ai.cjs +1 -1
  2. package/dist/ai.js +32 -32
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +1 -1
  5. package/dist/app/settings/settings.d.ts +1 -1
  6. package/dist/chart-data/cartesian-data.d.ts +6 -0
  7. package/dist/chart-data-options/utils.d.ts +3 -0
  8. package/dist/chart-options-processor/apply-event-handlers.d.ts +2 -1
  9. package/dist/chart-options-processor/data-points.d.ts +10 -0
  10. package/dist/charts/map-charts/areamap/areamap-utils.d.ts +11 -0
  11. package/dist/charts/map-charts/scattermap/utils/location.d.ts +2 -2
  12. package/dist/common/components/loading-indicator.d.ts +1 -150
  13. package/dist/common-filters/selection-utils.d.ts +3 -3
  14. package/dist/dashboard/utils.d.ts +0 -1
  15. package/dist/dashboard-widget/translate-dashboard-filters.d.ts +446 -450
  16. package/dist/dashboard-widget/translate-widget-filters.d.ts +53 -53
  17. package/dist/dashboard-widget/translate-widget-style-options.d.ts +3 -3
  18. package/dist/dashboard-widget/types.d.ts +55 -5
  19. package/dist/dashboard-widget/utils.d.ts +3 -1
  20. package/dist/{get-widget-options-DJexR5_Z.js → get-widget-options-ClnEbAD8.js} +3700 -3685
  21. package/dist/{get-widget-options-CDWzHX-s.cjs → get-widget-options-CzFDw_pX.cjs} +76 -76
  22. package/dist/index.cjs +184 -172
  23. package/dist/index.d.ts +4 -1
  24. package/dist/index.js +12484 -11919
  25. package/dist/models/widget/widget-model.d.ts +18 -2
  26. package/dist/plugins-provider/custom-plugins-provider.d.ts +24 -0
  27. package/dist/plugins-provider/index.d.ts +2 -0
  28. package/dist/plugins-provider/plugins-context.d.ts +9 -0
  29. package/dist/plugins-provider/plugins-provider.d.ts +15 -0
  30. package/dist/plugins-provider/types.d.ts +8 -0
  31. package/dist/props.d.ts +10 -1
  32. package/dist/sisense-chart/types.d.ts +1 -2
  33. package/dist/theme-provider/fonts-loader/fonts-loader.d.ts +5 -0
  34. package/dist/theme-provider/fonts-loader/use-fonts-loader.d.ts +2 -0
  35. package/dist/themes/legacy-design-settings.d.ts +1 -1
  36. package/dist/themes/theme-loader.d.ts +1 -1
  37. package/dist/translation/resources/en.d.ts +2 -1
  38. package/dist/translation/resources/index.d.ts +4 -2
  39. package/dist/types.d.ts +145 -13
  40. package/dist/{useQuery-Bkuiz8XK.js → useQuery-CHAg2bkd.js} +10626 -10286
  41. package/dist/useQuery-CV4-tm99.cjs +440 -0
  42. package/dist/utils/filters.d.ts +1 -3
  43. package/dist/utils/utility-types.d.ts +4 -0
  44. package/dist/widgets/text-widget.d.ts +4 -0
  45. package/package.json +9 -7
  46. package/dist/dashboard/components/plugin-service.d.ts +0 -21
  47. package/dist/useQuery-CZAKQmD7.cjs +0 -433
@@ -0,0 +1,440 @@
1
+ "use strict";var u1=Object.defineProperty,c1=Object.defineProperties;var d1=Object.getOwnPropertyDescriptors;var Vo=Object.getOwnPropertySymbols;var Ih=Object.prototype.hasOwnProperty,$h=Object.prototype.propertyIsEnumerable;var qt=Math.pow,Jl=(e,t,r)=>t in e?u1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ee=(e,t)=>{for(var r in t||(t={}))Ih.call(t,r)&&Jl(e,r,t[r]);if(Vo)for(var r of Vo(t))$h.call(t,r)&&Jl(e,r,t[r]);return e},ue=(e,t)=>c1(e,d1(t));var hi=(e,t)=>{var r={};for(var n in e)Ih.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Vo)for(var n of Vo(e))t.indexOf(n)<0&&$h.call(e,n)&&(r[n]=e[n]);return r};var Tt=(e,t,r)=>(Jl(e,typeof t!="symbol"?t+"":t,r),r);var wr=(e,t,r)=>new Promise((n,a)=>{var o=c=>{try{u(r.next(c))}catch(d){a(d)}},s=c=>{try{u(r.throw(c))}catch(d){a(d)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,s);u((r=r.apply(e,t)).next())});const Q=require("react"),V=require("react/jsx-runtime"),O=require("./get-widget-options-CzFDw_pX.cjs"),Mi=require("react-dom");function Qv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Z=Qv(Q),f1=Qv(Mi);function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},re.apply(this,arguments)}const h1=Object.freeze(Object.defineProperty({__proto__:null,default:re},Symbol.toStringTag,{value:"Module"}));function p1(e){let{i18n:t,defaultNS:r,children:n}=e;const a=Q.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return Q.createElement(O.I18nContext.Provider,{value:a},n)}let Uo;const m1=new Uint8Array(16);function v1(){if(!Uo&&(Uo=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Uo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Uo(m1)}const St=[];for(let e=0;e<256;++e)St.push((e+256).toString(16).slice(1));function g1(e,t=0){return St[e[t+0]]+St[e[t+1]]+St[e[t+2]]+St[e[t+3]]+"-"+St[e[t+4]]+St[e[t+5]]+"-"+St[e[t+6]]+St[e[t+7]]+"-"+St[e[t+8]]+St[e[t+9]]+"-"+St[e[t+10]]+St[e[t+11]]+St[e[t+12]]+St[e[t+13]]+St[e[t+14]]+St[e[t+15]]}const y1=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),zh={randomUUID:y1};function Jv(e,t,r){if(zh.randomUUID&&!t&&!e)return zh.randomUUID();e=e||{};const n=e.random||(e.rng||v1)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,g1(n)}function bn(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}function eu(e){return"attribute"in e}function b1(e){return"measure"in e}const _1={title:"Grand Total",rows:!1,columns:!1},It={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function ed(e){return[O.customFormula(It.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),O.customFormula(It.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),O.customFormula(It.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function w1(e){return[...ed(e),O.customFormula(It.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),O.customFormula(It.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),O.customFormula(It.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function x1(e){return[...ed(e),O.customFormula(It.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),O.customFormula(It.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function C1(e){return[...ed(e),O.customFormula(It.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),O.customFormula(It.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),O.customFormula(It.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const T1=e=>{const t=O.cloneDeep(e),r=O.customFormula(It.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=O.customFormula(It.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=a=>{const o=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return a?o:{jaql:o}},t},S1=e=>{const t=O.cloneDeep(e),r=O.customFormula(It.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=O.customFormula(It.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=a=>{const o=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return a?o:{jaql:o}},t};function E1(e,t){const r=t==null?void 0:t.find(n=>eg(e)===n.attribute.id);return r&&!r.disabled&&(r.isScope&&(r.isScope=!1),e.jaql.in={selected:r.jaql()}),e}function M1(e,t){const r=[],n=[];return t.forEach(a=>{e.some(s=>eg(s)===a.attribute.id)?r.push(a):n.push(a)}),[r,n]}function eg(e){const{dim:t,level:r,dateTimeLevel:n,bucket:a}=e.jaql;let o=`${t}`;return(r||n)&&(o+=`_${r||n}`),a&&(o+=`_${a}`),o}var P1=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function R1(e,t,r){return{rowsCount:e.length,columnsCount:t.length,measuresCount:r.length}}function O1(e){switch(e){case"sortAsc":return"asc";case"sortDesc":return"desc";default:return"none"}}function k1(e,t,r){const n=O1(e.direction),a=t===r.rowsCount-1,o={dir:n,initialized:!0,field:e.by&&"valuesIndex"in e.by?r.rowsCount+r.columnsCount+e.by.valuesIndex:t};return a&&(o.sortingLastDimension=!0),e.by&&(o.measurePath=(e.by.columnsMembersPath||[]).reduce((s,u,c)=>Object.assign(Object.assign({},s),{[r.rowsCount+c]:u}),{})),{sort:n,sortDetails:o}}function N1(e,t){const r=e[t.rowsCount-1];if(r.jaql.sortDetails&&r.jaql.sortDetails.field!==t.rowsCount-1){const a=e[r.jaql.sortDetails.field],o=r.jaql,{sortDetails:s,sort:u}=o,c=P1(o,["sortDetails","sort"]);a.jaql.sortDetails=s,a.jaql.sort=u,r.jaql=c}}const os="ComposeSDK";function tg(e,t){const{attributes:r,measures:n,filters:a,filterRelations:o,highlights:s,dataSource:u,count:c,offset:d,ungroup:h}=e,m=h&&n.length===0,p=Object.assign({metadata:D1({attributes:r,measures:n,filters:a,filterRelations:o,highlights:s},t)},A1(u,c,d,m));return o?Object.assign(Object.assign({},p),{filterRelations:o}):p}function rg(e,t,r,n,a){const[o,s]=M1(e,n);e.forEach(d=>E1(d,o));const u=d=>{const h=d.jaql();return r?Array.isArray(h)?h.map(m=>Object.assign(Object.assign({},m),{instanceid:d.guid})):Object.assign(Object.assign({},h),{instanceid:d.guid}):h},c=(a?t.flatMap(d=>u(d)):[...t,...s].flatMap(d=>u(d))).filter(d=>Object.keys(d.jaql.filter||{}).length!==0);return a&&s.length>0&&console.warn(`The following highlight filters were not applied due to missing attributes: [${s.map(d=>d.attribute.name).join(", ")}].`),c}function D1(e,t){const{attributes:r,measures:n,filters:a,filterRelations:o,highlights:s}=e,u=r.map(h=>h.jaql()),c=n.map(h=>h.jaql()),d=rg(u,a,o,s,t);return[...u,...c,...d]}function A1(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:ng(e),by:os,queryGuid:Jv()},n?{ungroup:!0}:{}),t?{count:t}:{}),r?{offset:r}:{})}function L1(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,filterRelations:s,grandTotals:u,highlights:c,dataSource:d,count:h,offset:m}=e,p=Object.assign({metadata:$1({rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,highlights:c},t)},z1(d,u,h,m));return s?Object.assign(Object.assign({},p),{filterRelations:s}):p}function Fh(e,t,r,n){const a=t==="rows"&&eu(e)&&e.sort&&e.sort.direction!=="sortNone",o=Object.assign(Object.assign({},eu(e)?e.attribute.jaql(!0):e.jaql(!0)),a&&k1(e.sort,r,n));return Object.assign(Object.assign({jaql:o},eu(e)&&e.includeSubTotals?{format:{subtotal:!0}}:{}),{panel:t,field:{index:r,id:`${t}-${r}`}})}function I1(e,t,r){return Object.assign(Object.assign({},b1(e)?O.merge(e.measure.jaql(),{jaql:{subtotalAgg:e.totalsCalculation},format:{databars:e.dataBars||!1}}):e.jaql()),{panel:t,field:{index:r,id:`${t}-${r}`}})}function $1(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:a,filters:o,filterRelations:s,highlights:u}=e,c=R1(r,n,a);let d=0;const h=r.map((w,E)=>Fh(w,"rows",E+d,c));d=d+r.length;const m=n.map((w,E)=>Fh(w,"columns",E+d,c));d=d+n.length;const p=[...h,...m],g=a.map((w,E)=>I1(w,"measures",E+d)),_=rg(p,o,s,u,t),y=[...p,...g,..._];return N1(y,c),y}function z1(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:ng(e),by:os,queryGuid:Jv(),dashboard:os,widget:os,format:"pivot"},r?{count:r}:{}),n?{offset:n}:{}),{grandTotals:Object.assign(Object.assign({},_1),t)})}function ng(e){return O.isDataSourceInfo(e)?{title:e.title,live:e.type==="live"}:e}function F1(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]}function W1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var j1=function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(W1(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
2
+ `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var s=F1(a);try{s.insertRule(n,s.cssRules.length)}catch(u){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',u)}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ot="-ms-",gs="-moz-",ze="-webkit-",td="comm",rd="rule",nd="decl",B1="@import",ig="@keyframes",H1="@layer",V1=Math.abs,Is=String.fromCharCode,U1=Object.assign;function q1(e,t){return Mt(e,0)^45?(((t<<2^Mt(e,0))<<2^Mt(e,1))<<2^Mt(e,2))<<2^Mt(e,3):0}function ag(e){return e.trim()}function G1(e,t){return(e=t.exec(e))?e[0]:e}function Fe(e,t,r){return e.replace(t,r)}function Au(e,t){return e.indexOf(t)}function Mt(e,t){return e.charCodeAt(t)|0}function za(e,t,r){return e.slice(t,r)}function kr(e){return e.length}function id(e){return e.length}function qo(e,t){return t.push(e),e}function Y1(e,t){return e.map(t).join("")}var $s=1,Ni=1,og=0,Ht=0,gt=0,Hi="";function zs(e,t,r,n,a,o,s){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:$s,column:Ni,length:s,return:""}}function ga(e,t){return U1(zs("",null,null,"",null,null,0),e,{length:-e.length},t)}function X1(){return gt}function Z1(){return gt=Ht>0?Mt(Hi,--Ht):0,Ni--,gt===10&&(Ni=1,$s--),gt}function Yt(){return gt=Ht<og?Mt(Hi,Ht++):0,Ni++,gt===10&&(Ni=1,$s++),gt}function Ir(){return Mt(Hi,Ht)}function ss(){return Ht}function eo(e,t){return za(Hi,e,t)}function Fa(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 sg(e){return $s=Ni=1,og=kr(Hi=e),Ht=0,[]}function lg(e){return Hi="",e}function ls(e){return ag(eo(Ht-1,Lu(e===91?e+2:e===40?e+1:e)))}function K1(e){for(;(gt=Ir())&&gt<33;)Yt();return Fa(e)>2||Fa(gt)>3?"":" "}function Q1(e,t){for(;--t&&Yt()&&!(gt<48||gt>102||gt>57&&gt<65||gt>70&&gt<97););return eo(e,ss()+(t<6&&Ir()==32&&Yt()==32))}function Lu(e){for(;Yt();)switch(gt){case e:return Ht;case 34:case 39:e!==34&&e!==39&&Lu(gt);break;case 40:e===41&&Lu(e);break;case 92:Yt();break}return Ht}function J1(e,t){for(;Yt()&&e+gt!==57;)if(e+gt===84&&Ir()===47)break;return"/*"+eo(t,Ht-1)+"*"+Is(e===47?e:Yt())}function ex(e){for(;!Fa(Ir());)Yt();return eo(e,Ht)}function tx(e){return lg(us("",null,null,null,[""],e=sg(e),0,[0],e))}function us(e,t,r,n,a,o,s,u,c){for(var d=0,h=0,m=s,p=0,g=0,_=0,y=1,w=1,E=1,S=0,T="",C=a,x=o,P=n,R=T;w;)switch(_=S,S=Yt()){case 40:if(_!=108&&Mt(R,m-1)==58){Au(R+=Fe(ls(S),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:R+=ls(S);break;case 9:case 10:case 13:case 32:R+=K1(_);break;case 92:R+=Q1(ss()-1,7);continue;case 47:switch(Ir()){case 42:case 47:qo(rx(J1(Yt(),ss()),t,r),c);break;default:R+="/"}break;case 123*y:u[d++]=kr(R)*E;case 125*y:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+h:E==-1&&(R=Fe(R,/\f/g,"")),g>0&&kr(R)-m&&qo(g>32?jh(R+";",n,r,m-1):jh(Fe(R," ","")+";",n,r,m-2),c);break;case 59:R+=";";default:if(qo(P=Wh(R,t,r,d,h,a,u,T,C=[],x=[],m),o),S===123)if(h===0)us(R,t,P,P,C,o,m,u,x);else switch(p===99&&Mt(R,3)===110?100:p){case 100:case 108:case 109:case 115:us(e,P,P,n&&qo(Wh(e,P,P,0,0,a,u,T,a,C=[],m),x),a,x,m,u,n?C:x);break;default:us(R,P,P,P,[""],x,0,u,x)}}d=h=g=0,y=E=1,T=R="",m=s;break;case 58:m=1+kr(R),g=_;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&Z1()==125)continue}switch(R+=Is(S),S*y){case 38:E=h>0?1:(R+="\f",-1);break;case 44:u[d++]=(kr(R)-1)*E,E=1;break;case 64:Ir()===45&&(R+=ls(Yt())),p=Ir(),h=m=kr(T=R+=ex(ss())),S++;break;case 45:_===45&&kr(R)==2&&(y=0)}}return o}function Wh(e,t,r,n,a,o,s,u,c,d,h){for(var m=a-1,p=a===0?o:[""],g=id(p),_=0,y=0,w=0;_<n;++_)for(var E=0,S=za(e,m+1,m=V1(y=s[_])),T=e;E<g;++E)(T=ag(y>0?p[E]+" "+S:Fe(S,/&\f/g,p[E])))&&(c[w++]=T);return zs(e,t,r,a===0?rd:u,c,d,h)}function rx(e,t,r){return zs(e,t,r,td,Is(X1()),za(e,2,-2),0)}function jh(e,t,r,n){return zs(e,t,r,nd,za(e,0,n),za(e,n+1,-1),n)}function Oi(e,t){for(var r="",n=id(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function nx(e,t,r,n){switch(e.type){case H1:if(e.children.length)break;case B1:case nd:return e.return=e.return||e.value;case td:return"";case ig:return e.return=e.value+"{"+Oi(e.children,n)+"}";case rd:e.value=e.props.join(",")}return kr(r=Oi(e.children,n))?e.return=e.value+"{"+r+"}":""}function ix(e){var t=id(e);return function(r,n,a,o){for(var s="",u=0;u<t;u++)s+=e[u](r,n,a,o)||"";return s}}function ax(e){return function(t){t.root||(t=t.return)&&e(t)}}function ug(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var ox=function(t,r,n){for(var a=0,o=0;a=o,o=Ir(),a===38&&o===12&&(r[n]=1),!Fa(o);)Yt();return eo(t,Ht)},sx=function(t,r){var n=-1,a=44;do switch(Fa(a)){case 0:a===38&&Ir()===12&&(r[n]=1),t[n]+=ox(Ht-1,r,n);break;case 2:t[n]+=ls(a);break;case 4:if(a===44){t[++n]=Ir()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Is(a)}while(a=Yt());return t},lx=function(t,r){return lg(sx(sg(t),r))},Bh=new WeakMap,ux=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Bh.get(n))&&!a){Bh.set(t,!0);for(var o=[],s=lx(r,o),u=n.props,c=0,d=0;c<s.length;c++)for(var h=0;h<u.length;h++,d++)t.props[d]=o[c]?s[c].replace(/&\f/g,u[h]):u[h]+" "+s[c]}}},cx=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},dx="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",fx=function(t){return t.type==="comm"&&t.children.indexOf(dx)>-1},hx=function(t){return function(r,n,a){if(!(r.type!=="rule"||t.compat)){var o=r.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var s=!!r.parent,u=s?r.parent.children:a,c=u.length-1;c>=0;c--){var d=u[c];if(d.line<r.line)break;if(d.column<r.column){if(fx(d))return;break}}o.forEach(function(h){console.error('The pseudo class "'+h+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+h.split("-child")[0]+'-of-type".')})}}}},cg=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},px=function(t,r){for(var n=t-1;n>=0;n--)if(!cg(r[n]))return!0;return!1},Hh=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},mx=function(t,r,n){cg(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Hh(t)):px(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Hh(t)))};function dg(e,t){switch(q1(e,t)){case 5103:return ze+"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 ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ze+e+gs+e+Ot+e+e;case 6828:case 4268:return ze+e+Ot+e+e;case 6165:return ze+e+Ot+"flex-"+e+e;case 5187:return ze+e+Fe(e,/(\w+).+(:[^]+)/,ze+"box-$1$2"+Ot+"flex-$1$2")+e;case 5443:return ze+e+Ot+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return ze+e+Ot+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return ze+e+Ot+Fe(e,"shrink","negative")+e;case 5292:return ze+e+Ot+Fe(e,"basis","preferred-size")+e;case 6060:return ze+"box-"+Fe(e,"-grow","")+ze+e+Ot+Fe(e,"grow","positive")+e;case 4554:return ze+Fe(e,/([^-])(transform)/g,"$1"+ze+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,ze+"$1"),/(image-set)/,ze+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,ze+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,ze+"box-pack:$3"+Ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ze+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,ze+"$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(kr(e)-1-t>6)switch(Mt(e,t+1)){case 109:if(Mt(e,t+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+gs+(Mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Au(e,"stretch")?dg(Fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Mt(e,t+1)!==115)break;case 6444:switch(Mt(e,kr(e)-3-(~Au(e,"!important")&&10))){case 107:return Fe(e,":",":"+ze)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ze+(Mt(e,14)===45?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Ot+"$2box$3")+e}break;case 5936:switch(Mt(e,t+11)){case 114:return ze+e+Ot+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Ot+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Ot+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ze+e+Ot+e+e}return e}var vx=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case nd:t.return=dg(t.value,t.length);break;case ig:return Oi([ga(t,{value:Fe(t.value,"@","@"+ze)})],a);case rd:if(t.length)return Y1(t.props,function(o){switch(G1(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Oi([ga(t,{props:[Fe(o,/:(read-\w+)/,":"+gs+"$1")]})],a);case"::placeholder":return Oi([ga(t,{props:[Fe(o,/:(plac\w+)/,":"+ze+"input-$1")]}),ga(t,{props:[Fe(o,/:(plac\w+)/,":"+gs+"$1")]}),ga(t,{props:[Fe(o,/:(plac\w+)/,Ot+"input-$1")]})],a)}return""})}},gx=[vx],fg=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
3
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var a=t.stylisPlugins||gx;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var o={},s,u=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),E=1;E<w.length;E++)o[w[E]]=!0;u.push(y)});var c,d=[ux,cx];process.env.NODE_ENV!=="production"&&d.push(hx({get compat(){return _.compat}}),mx);{var h,m=[nx,process.env.NODE_ENV!=="production"?function(y){y.root||(y.return?h.insert(y.return):y.value&&y.type!==td&&h.insert(y.value+"{}"))}:ax(function(y){h.insert(y)})],p=ix(d.concat(a,m)),g=function(w){return Oi(tx(w),p)};c=function(w,E,S,T){h=S,process.env.NODE_ENV!=="production"&&E.map!==void 0&&(h={insert:function(x){S.insert(x+E.map)}}),g(w?w+"{"+E.styles+"}":E.styles),T&&(_.inserted[E.name]=!0)}}var _={key:r,sheet:new j1({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:c};return _.sheet.hydrate(u),_},yx=!0;function ad(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):n+=a+" "}),n}var Fs=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||yx===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},Ws=function(t,r,n){Fs(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function bx(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var _x={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Vh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
4
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
5
+ You can read more about this here:
6
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,wx="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",xx=/[A-Z]|^ms/g,hg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,od=function(t){return t.charCodeAt(1)===45},Uh=function(t){return t!=null&&typeof t!="boolean"},tu=ug(function(e){return od(e)?e:e.replace(xx,"-$&").toLowerCase()}),ys=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(hg,function(n,a,o){return xr={name:a,styles:o,next:xr},a})}return _x[t]!==1&&!od(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var Cx=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Tx=["normal","none","initial","inherit","unset"],Sx=ys,Ex=/^-ms-/,Mx=/-(.)/g,qh={};ys=function(t,r){if(t==="content"&&(typeof r!="string"||Tx.indexOf(r)===-1&&!Cx.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=Sx(t,r);return n!==""&&!od(t)&&t.indexOf("-")!==-1&&qh[t]===void 0&&(qh[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Ex,"ms-").replace(Mx,function(a,o){return o.toUpperCase()})+"?")),n}}var pg="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Wa(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(pg);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return xr={name:r.name,styles:r.styles,next:xr},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)xr={name:n.name,styles:n.styles,next:xr},n=n.next;var a=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(a+=r.map),a}return Px(e,t,r)}case"function":{if(e!==void 0){var o=xr,s=r(e);return xr=o,Wa(e,t,s)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var u=[],c=r.replace(hg,function(h,m,p){var g="animation"+u.length;return u.push("const "+g+" = keyframes`"+p.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join(`
7
+ `)+`
8
+
9
+ You should wrap it with \`css\` like this:
10
+
11
+ `+("css`"+c+"`"))}break}if(t==null)return r;var d=t[r];return d!==void 0?d:r}function Px(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=Wa(e,t,r[a])+";";else for(var o in r){var s=r[o];if(typeof s!="object")t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Uh(s)&&(n+=tu(o)+":"+ys(o,s)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(pg);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)Uh(s[u])&&(n+=tu(o)+":"+ys(o,s[u])+";");else{var c=Wa(e,t,s);switch(o){case"animation":case"animationName":{n+=tu(o)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(wx),n+=o+"{"+c+"}"}}}}return n}var Gh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,mg;process.env.NODE_ENV!=="production"&&(mg=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var xr,Di=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var a=!0,o="";xr=void 0;var s=t[0];s==null||s.raw===void 0?(a=!1,o+=Wa(n,r,s)):(process.env.NODE_ENV!=="production"&&s[0]===void 0&&console.error(Vh),o+=s[0]);for(var u=1;u<t.length;u++)o+=Wa(n,r,t[u]),a&&(process.env.NODE_ENV!=="production"&&s[u]===void 0&&console.error(Vh),o+=s[u]);var c;process.env.NODE_ENV!=="production"&&(o=o.replace(mg,function(p){return c=p,""})),Gh.lastIndex=0;for(var d="",h;(h=Gh.exec(o))!==null;)d+="-"+h[1];var m=bx(o)+d;return process.env.NODE_ENV!=="production"?{name:m,styles:o,map:c,next:xr,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:m,styles:o,next:xr}},Rx=function(t){return t()},vg=Z[`useInsertionEffect${Math.random()}`.slice(0,5)]?Z[`useInsertionEffect${Math.random()}`.slice(0,5)]:!1,sd=vg||Rx,Yh=vg||Z.useLayoutEffect,Ox={}.hasOwnProperty,ld=Z.createContext(typeof HTMLElement!="undefined"?fg({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ld.displayName="EmotionCacheContext");var gg=ld.Provider,js=function(t){return Q.forwardRef(function(r,n){var a=Q.useContext(ld);return t(r,a,n)})},Cn=Z.createContext({});process.env.NODE_ENV!=="production"&&(Cn.displayName="EmotionThemeContext");var Xh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Zh="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",kx=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Fs(r,n,a),sd(function(){return Ws(r,n,a)}),null},Nx=js(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[Xh],o=[n],s="";typeof e.className=="string"?s=ad(t.registered,o,e.className):e.className!=null&&(s=e.className+" ");var u=Di(o,void 0,Z.useContext(Cn));if(process.env.NODE_ENV!=="production"&&u.name.indexOf("-")===-1){var c=e[Zh];c&&(u=Di([u,"label:"+c+";"]))}s+=t.key+"-"+u.name;var d={};for(var h in e)Ox.call(e,h)&&h!=="css"&&h!==Xh&&(process.env.NODE_ENV==="production"||h!==Zh)&&(d[h]=e[h]);return d.ref=r,d.className=s,Z.createElement(Z.Fragment,null,Z.createElement(kx,{cache:t,serialized:u,isStringTag:typeof a=="string"}),Z.createElement(a,d))});process.env.NODE_ENV!=="production"&&(Nx.displayName="EmotionCssPropInternal");var Dx={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},Kh=!1,ud=js(function(e,t){process.env.NODE_ENV!=="production"&&!Kh&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Kh=!0);var r=e.styles,n=Di([r],void 0,Z.useContext(Cn)),a=Z.useRef();return Yh(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",o),s.hydrate([c])),a.current=[s,u],function(){s.flush()}},[t]),Yh(function(){var o=a.current,s=o[0],u=o[1];if(u){o[1]=!1;return}if(n.next!==void 0&&Ws(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});process.env.NODE_ENV!=="production"&&(ud.displayName="EmotionGlobal");function cd(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Di(t)}var to=function(){var t=cd.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Ax=function e(t){for(var r=t.length,n=0,a="";n<r;n++){var o=t[n];if(o!=null){var s=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))s=e(o);else{process.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),s="";for(var u in o)o[u]&&u&&(s&&(s+=" "),s+=u)}break}default:s=o}s&&(a&&(a+=" "),a+=s)}}return a};function Lx(e,t,r){var n=[],a=ad(e,n,r);return n.length<2?r:a+t(n)}var Ix=function(t){var r=t.cache,n=t.serializedArr;return sd(function(){for(var a=0;a<n.length;a++)Ws(r,n[a],!1)}),null},$x=js(function(e,t){var r=!1,n=[],a=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var d=arguments.length,h=new Array(d),m=0;m<d;m++)h[m]=arguments[m];var p=Di(h,t.registered);return n.push(p),Fs(t,p,!1),t.key+"-"+p.name},o=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var d=arguments.length,h=new Array(d),m=0;m<d;m++)h[m]=arguments[m];return Lx(t.registered,a,Ax(h))},s={css:a,cx:o,theme:Z.useContext(Cn)},u=e.children(s);return r=!0,Z.createElement(Z.Fragment,null,Z.createElement(Ix,{cache:t,serializedArr:n}),u)});process.env.NODE_ENV!=="production"&&($x.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var Qh=!0,zx=typeof jest!="undefined"||typeof vi!="undefined";if(Qh&&!zx){var Jh=typeof globalThis!="undefined"?globalThis:Qh?window:global,ep="__EMOTION_REACT_"+Dx.version.split(".")[0]+"__";Jh[ep]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Jh[ep]=!0}}var Fx=/^((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|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)-.*))$/,Wx=ug(function(e){return Fx.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),jx=Wx,Bx=function(t){return t!=="theme"},tp=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?jx:Bx},rp=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},np=`You have illegal escape sequence in your template literal, most likely inside content's property value.
12
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
13
+ You can read more about this here:
14
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Hx=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Fs(r,n,a),sd(function(){return Ws(r,n,a)}),null},Vx=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
15
+ You may have forgotten to import it.`);var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,s;r!==void 0&&(o=r.label,s=r.target);var u=rp(t,r,n),c=u||tp(a),d=!c("as");return function(){var h=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&m.push("label:"+o+";"),h[0]==null||h[0].raw===void 0)m.push.apply(m,h);else{process.env.NODE_ENV!=="production"&&h[0][0]===void 0&&console.error(np),m.push(h[0][0]);for(var p=h.length,g=1;g<p;g++)process.env.NODE_ENV!=="production"&&h[0][g]===void 0&&console.error(np),m.push(h[g],h[0][g])}var _=js(function(y,w,E){var S=d&&y.as||a,T="",C=[],x=y;if(y.theme==null){x={};for(var P in y)x[P]=y[P];x.theme=Z.useContext(Cn)}typeof y.className=="string"?T=ad(w.registered,C,y.className):y.className!=null&&(T=y.className+" ");var R=Di(m.concat(C),w.registered,x);T+=w.key+"-"+R.name,s!==void 0&&(T+=" "+s);var D=d&&u===void 0?tp(S):c,A={};for(var I in y)d&&I==="as"||D(I)&&(A[I]=y[I]);return A.className=T,A.ref=E,Z.createElement(Z.Fragment,null,Z.createElement(Hx,{cache:w,serialized:R,isStringTag:typeof S=="string"}),Z.createElement(S,A))});return _.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=a,_.__emotion_styles=m,_.__emotion_forwardProp=u,Object.defineProperty(_,"toString",{value:function(){return s===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+s}}),_.withComponent=function(y,w){return e(y,re({},r,w,{shouldForwardProp:rp(_,w,!0)})).apply(void 0,m)},_}},Ux=["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"],Tr=Vx.bind();Ux.forEach(function(e){Tr[e]=Tr(e)});function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function ro(e){O.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ai(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function qx(e,t){O.requiredArgs(2,arguments);var r=ro(e),n=O.toInteger(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),o=new Date(r.getTime());o.setMonth(r.getMonth()+n+1,0);var s=o.getDate();return a>=s?o:(r.setFullYear(o.getFullYear(),o.getMonth(),a),r)}var Gx={};function Yx(){return Gx}function ip(e,t){var r,n,a,o,s,u,c,d;O.requiredArgs(1,arguments);var h=Yx(),m=O.toInteger((r=(n=(a=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&n!==void 0?n:(c=h.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=ro(e),g=p.getUTCDay(),_=(g<m?7:0)+g-m;return p.setUTCDate(p.getUTCDate()-_),p.setUTCHours(0,0,0,0),p}var Xx={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Zx=function(t,r,n){var a,o=Xx[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};function Ae(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var Kx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},eC={date:Ae({formats:Kx,defaultWidth:"full"}),time:Ae({formats:Qx,defaultWidth:"full"}),dateTime:Ae({formats:Jx,defaultWidth:"full"})},tC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},rC=function(t,r,n,a){return tC[t]};function ye(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=r!=null&&r.width?String(r.width):o;a=e.formattingValues[s]||e.formattingValues[o]}else{var u=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[c]||e.values[u]}var d=e.argumentCallback?e.argumentCallback(t):t;return a[d]}}var nC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},iC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},aC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},oC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},sC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},lC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},uC=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},cC={ordinalNumber:uC,era:ye({values:nC,defaultWidth:"wide"}),quarter:ye({values:iC,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:aC,defaultWidth:"wide"}),day:ye({values:oC,defaultWidth:"wide"}),dayPeriod:ye({values:sC,defaultWidth:"wide",formattingValues:lC,defaultFormattingWidth:"wide"})};function be(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;var s=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?fC(u,function(m){return m.test(s)}):dC(u,function(m){return m.test(s)}),d;d=e.valueCallback?e.valueCallback(c):c,d=r.valueCallback?r.valueCallback(d):d;var h=t.slice(s.length);return{value:d,rest:h}}}function dC(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function fC(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function dr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=r.valueCallback?r.valueCallback(s):s;var u=t.slice(a.length);return{value:s,rest:u}}}var hC=/^(\d+)(th|st|nd|rd)?/i,pC=/\d+/i,mC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vC={any:[/^b/i,/^(a|c)/i]},gC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yC={any:[/1/i,/2/i,/3/i,/4/i]},bC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},_C={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},CC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},TC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},SC={ordinalNumber:dr({matchPattern:hC,parsePattern:pC,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:mC,defaultMatchWidth:"wide",parsePatterns:vC,defaultParseWidth:"any"}),quarter:be({matchPatterns:gC,defaultMatchWidth:"wide",parsePatterns:yC,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:bC,defaultMatchWidth:"wide",parsePatterns:_C,defaultParseWidth:"any"}),day:be({matchPatterns:wC,defaultMatchWidth:"wide",parsePatterns:xC,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:CC,defaultMatchWidth:"any",parsePatterns:TC,defaultParseWidth:"any"})},EC={code:"en-US",formatDistance:Zx,formatLong:eC,formatRelative:rC,localize:cC,match:SC,options:{weekStartsOn:0,firstWeekContainsDate:1}};function yg(e,t){O.requiredArgs(2,arguments);var r=O.toInteger(t);return qx(e,r*12)}function bg(e,t){O.requiredArgs(2,arguments);var r=O.toInteger(t);return yg(e,-r)}function MC(e){O.requiredArgs(1,arguments);var t=ro(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function PC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iu(e,t){return Iu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Iu(e,t)}function RC(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OC(e){var t=RC(e,"string");return Ai(t)=="symbol"?t:t+""}function kC(e,t,r){return t=OC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NC(e,t){O.requiredArgs(2,arguments);var r=ro(e),n=O.toInteger(t),a=r.getFullYear(),o=r.getDate(),s=new Date(0);s.setFullYear(a,n,15),s.setHours(0,0,0,0);var u=MC(s);return r.setMonth(n,Math.min(o,u)),r}function DC(e,t){O.requiredArgs(2,arguments);var r=ro(e),n=O.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function ja(e,t,r){O.requiredArgs(2,arguments);var n=ip(e,r),a=ip(t,r);return n.getTime()===a.getTime()}var ap={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},AC=function(t,r,n){var a,o=n!=null&&n.addSuffix?ap[t].withPreposition:ap[t].standalone;return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:"vor "+a:a},LC={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},IC={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$C={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},zC={date:Ae({formats:LC,defaultWidth:"full"}),time:Ae({formats:IC,defaultWidth:"full"}),dateTime:Ae({formats:$C,defaultWidth:"full"})},FC={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},WC=function(t,r,n,a){return FC[t]},jC={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},BC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},$u={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},HC={narrow:$u.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:$u.wide},VC={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},UC={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},qC={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},GC=function(t){var r=Number(t);return r+"."},YC={ordinalNumber:GC,era:ye({values:jC,defaultWidth:"wide"}),quarter:ye({values:BC,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:$u,formattingValues:HC,defaultWidth:"wide"}),day:ye({values:VC,defaultWidth:"wide"}),dayPeriod:ye({values:UC,defaultWidth:"wide",formattingValues:qC,defaultFormattingWidth:"wide"})},XC=/^(\d+)(\.)?/i,ZC=/\d+/i,KC={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},QC={any:[/^v/i,/^n/i]},JC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},eT={any:[/1/i,/2/i,/3/i,/4/i]},tT={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},rT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nT={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},iT={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},aT={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},oT={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},sT={ordinalNumber:dr({matchPattern:XC,parsePattern:ZC,valueCallback:function(t){return parseInt(t)}}),era:be({matchPatterns:KC,defaultMatchWidth:"wide",parsePatterns:QC,defaultParseWidth:"any"}),quarter:be({matchPatterns:JC,defaultMatchWidth:"wide",parsePatterns:eT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:tT,defaultMatchWidth:"wide",parsePatterns:rT,defaultParseWidth:"any"}),day:be({matchPatterns:nT,defaultMatchWidth:"wide",parsePatterns:iT,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:aT,defaultMatchWidth:"wide",parsePatterns:oT,defaultParseWidth:"any"})},lT={code:"de",formatDistance:AC,formatLong:zC,formatRelative:WC,localize:YC,match:sT,options:{weekStartsOn:1,firstWeekContainsDate:4}},uT={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},cT=function(t,r,n){var a,o=uT[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+a:"hace "+a:a},dT={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},fT={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},hT={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pT={date:Ae({formats:dT,defaultWidth:"full"}),time:Ae({formats:fT,defaultWidth:"full"}),dateTime:Ae({formats:hT,defaultWidth:"full"})},mT={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},vT={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},gT=function(t,r,n,a){return r.getUTCHours()!==1?vT[t]:mT[t]},yT={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},bT={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},_T={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},wT={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},xT={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},CT={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},TT=function(t,r){var n=Number(t);return n+"º"},ST={ordinalNumber:TT,era:ye({values:yT,defaultWidth:"wide"}),quarter:ye({values:bT,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:_T,defaultWidth:"wide"}),day:ye({values:wT,defaultWidth:"wide"}),dayPeriod:ye({values:xT,defaultWidth:"wide",formattingValues:CT,defaultFormattingWidth:"wide"})},ET=/^(\d+)(º)?/i,MT=/\d+/i,PT={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},RT={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},OT={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},kT={any:[/1/i,/2/i,/3/i,/4/i]},NT={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},DT={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},AT={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},LT={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},IT={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},$T={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},zT={ordinalNumber:dr({matchPattern:ET,parsePattern:MT,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:PT,defaultMatchWidth:"wide",parsePatterns:RT,defaultParseWidth:"any"}),quarter:be({matchPatterns:OT,defaultMatchWidth:"wide",parsePatterns:kT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:NT,defaultMatchWidth:"wide",parsePatterns:DT,defaultParseWidth:"any"}),day:be({matchPatterns:AT,defaultMatchWidth:"wide",parsePatterns:LT,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:IT,defaultMatchWidth:"any",parsePatterns:$T,defaultParseWidth:"any"})},FT={code:"es",formatDistance:cT,formatLong:pT,formatRelative:gT,localize:ST,match:zT,options:{weekStartsOn:1,firstWeekContainsDate:1}},WT={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},jT=function(t,r,n){var a,o=WT[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+a:"il y a "+a:a},BT={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},HT={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},VT={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},UT={date:Ae({formats:BT,defaultWidth:"full"}),time:Ae({formats:HT,defaultWidth:"full"}),dateTime:Ae({formats:VT,defaultWidth:"full"})},qT={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},GT=function(t,r,n,a){return qT[t]},YT={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},XT={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},ZT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},KT={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},QT={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},JT=function(t,r){var n=Number(t),a=r==null?void 0:r.unit;if(n===0)return"0";var o=["year","week","hour","minute","second"],s;return n===1?s=a&&o.includes(a)?"ère":"er":s="ème",n+s},eS={ordinalNumber:JT,era:ye({values:YT,defaultWidth:"wide"}),quarter:ye({values:XT,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:ZT,defaultWidth:"wide"}),day:ye({values:KT,defaultWidth:"wide"}),dayPeriod:ye({values:QT,defaultWidth:"wide"})},tS=/^(\d+)(ième|ère|ème|er|e)?/i,rS=/\d+/i,nS={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},iS={any:[/^av/i,/^ap/i]},aS={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},oS={any:[/1/i,/2/i,/3/i,/4/i]},sS={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},lS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},uS={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},cS={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},dS={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},fS={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},hS={ordinalNumber:dr({matchPattern:tS,parsePattern:rS,valueCallback:function(t){return parseInt(t)}}),era:be({matchPatterns:nS,defaultMatchWidth:"wide",parsePatterns:iS,defaultParseWidth:"any"}),quarter:be({matchPatterns:aS,defaultMatchWidth:"wide",parsePatterns:oS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:sS,defaultMatchWidth:"wide",parsePatterns:lS,defaultParseWidth:"any"}),day:be({matchPatterns:uS,defaultMatchWidth:"wide",parsePatterns:cS,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:dS,defaultMatchWidth:"any",parsePatterns:fS,defaultParseWidth:"any"})},pS={code:"fr",formatDistance:jT,formatLong:UT,formatRelative:GT,localize:eS,match:hS,options:{weekStartsOn:1,firstWeekContainsDate:4}},mS={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},vS=function(t,r,n){var a,o=mS[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+a:a+" fa":a},gS={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},yS={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},bS={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},_S={date:Ae({formats:gS,defaultWidth:"full"}),time:Ae({formats:yS,defaultWidth:"full"}),dateTime:Ae({formats:bS,defaultWidth:"full"})},dd=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function wS(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+dd[e]+" scorso alle' p"}}function op(e){return"'"+dd[e]+" alle' p"}function xS(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+dd[e]+" prossimo alle' p"}}var CS={lastWeek:function(t,r,n){var a=t.getUTCDay();return ja(t,r,n)?op(a):wS(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var a=t.getUTCDay();return ja(t,r,n)?op(a):xS(a)},other:"P"},TS=function(t,r,n,a){var o=CS[t];return typeof o=="function"?o(r,n,a):o},SS={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},ES={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},MS={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},PS={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},RS={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},OS={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},kS=function(t,r){var n=Number(t);return String(n)},NS={ordinalNumber:kS,era:ye({values:SS,defaultWidth:"wide"}),quarter:ye({values:ES,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:MS,defaultWidth:"wide"}),day:ye({values:PS,defaultWidth:"wide"}),dayPeriod:ye({values:RS,defaultWidth:"wide",formattingValues:OS,defaultFormattingWidth:"wide"})},DS=/^(\d+)(º)?/i,AS=/\d+/i,LS={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},IS={any:[/^a/i,/^(d|e)/i]},$S={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},zS={any:[/1/i,/2/i,/3/i,/4/i]},FS={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},WS={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},jS={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},BS={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},HS={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},VS={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},US={ordinalNumber:dr({matchPattern:DS,parsePattern:AS,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:LS,defaultMatchWidth:"wide",parsePatterns:IS,defaultParseWidth:"any"}),quarter:be({matchPatterns:$S,defaultMatchWidth:"wide",parsePatterns:zS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:FS,defaultMatchWidth:"wide",parsePatterns:WS,defaultParseWidth:"any"}),day:be({matchPatterns:jS,defaultMatchWidth:"wide",parsePatterns:BS,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:HS,defaultMatchWidth:"any",parsePatterns:VS,defaultParseWidth:"any"})},qS={code:"it",formatDistance:vS,formatLong:_S,formatRelative:TS,localize:NS,match:US,options:{weekStartsOn:1,firstWeekContainsDate:4}},GS={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},YS=function(t,r,n){n=n||{};var a,o=GS[t];return typeof o=="string"?a=o:r===1?n.addSuffix&&o.oneWithSuffix?a=o.oneWithSuffix:a=o.one:n.addSuffix&&o.otherWithSuffix?a=o.otherWithSuffix.replace("{{count}}",String(r)):a=o.other.replace("{{count}}",String(r)),n.addSuffix?n.comparison&&n.comparison>0?a+"後":a+"前":a},XS={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},ZS={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},KS={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},QS={date:Ae({formats:XS,defaultWidth:"full"}),time:Ae({formats:ZS,defaultWidth:"full"}),dateTime:Ae({formats:KS,defaultWidth:"full"})},JS={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},eE=function(t,r,n,a){return JS[t]},tE={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},rE={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},nE={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},iE={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},aE={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},oE={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},sE=function(t,r){var n=Number(t),a=String(r==null?void 0:r.unit);switch(a){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},lE={ordinalNumber:sE,era:ye({values:tE,defaultWidth:"wide"}),quarter:ye({values:rE,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:nE,defaultWidth:"wide"}),day:ye({values:iE,defaultWidth:"wide"}),dayPeriod:ye({values:aE,defaultWidth:"wide",formattingValues:oE,defaultFormattingWidth:"wide"})},uE=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,cE=/\d+/i,dE={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},fE={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},hE={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},pE={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},mE={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},vE={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},gE={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},yE={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},bE={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},_E={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},wE={ordinalNumber:dr({matchPattern:uE,parsePattern:cE,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:dE,defaultMatchWidth:"wide",parsePatterns:fE,defaultParseWidth:"any"}),quarter:be({matchPatterns:hE,defaultMatchWidth:"wide",parsePatterns:pE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:mE,defaultMatchWidth:"wide",parsePatterns:vE,defaultParseWidth:"any"}),day:be({matchPatterns:gE,defaultMatchWidth:"wide",parsePatterns:yE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:bE,defaultMatchWidth:"any",parsePatterns:_E,defaultParseWidth:"any"})},xE={code:"ja",formatDistance:YS,formatLong:QS,formatRelative:eE,localize:lE,match:wE,options:{weekStartsOn:0,firstWeekContainsDate:1}},CE={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},TE=function(t,r,n){var a,o=CE[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?a+" 후":a+" 전":a},SE={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},EE={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},ME={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},PE={date:Ae({formats:SE,defaultWidth:"full"}),time:Ae({formats:EE,defaultWidth:"full"}),dateTime:Ae({formats:ME,defaultWidth:"full"})},RE={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},OE=function(t,r,n,a){return RE[t]},kE={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},NE={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},DE={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},AE={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},LE={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},IE={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},$E=function(t,r){var n=Number(t),a=String(r==null?void 0:r.unit);switch(a){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},zE={ordinalNumber:$E,era:ye({values:kE,defaultWidth:"wide"}),quarter:ye({values:NE,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:DE,defaultWidth:"wide"}),day:ye({values:AE,defaultWidth:"wide"}),dayPeriod:ye({values:LE,defaultWidth:"wide",formattingValues:IE,defaultFormattingWidth:"wide"})},FE=/^(\d+)(일|번째)?/i,WE=/\d+/i,jE={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},BE={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},HE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},VE={any:[/1/i,/2/i,/3/i,/4/i]},UE={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},qE={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},GE={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},YE={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},XE={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},ZE={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},KE={ordinalNumber:dr({matchPattern:FE,parsePattern:WE,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:jE,defaultMatchWidth:"wide",parsePatterns:BE,defaultParseWidth:"any"}),quarter:be({matchPatterns:HE,defaultMatchWidth:"wide",parsePatterns:VE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:UE,defaultMatchWidth:"wide",parsePatterns:qE,defaultParseWidth:"any"}),day:be({matchPatterns:GE,defaultMatchWidth:"wide",parsePatterns:YE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:XE,defaultMatchWidth:"any",parsePatterns:ZE,defaultParseWidth:"any"})},QE={code:"ko",formatDistance:TE,formatLong:PE,formatRelative:OE,localize:zE,match:KE,options:{weekStartsOn:0,firstWeekContainsDate:1}},JE={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},eM=function(t,r,n){var a,o=JE[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+a:a+" geleden":a},tM={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},rM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},nM={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iM={date:Ae({formats:tM,defaultWidth:"full"}),time:Ae({formats:rM,defaultWidth:"full"}),dateTime:Ae({formats:nM,defaultWidth:"full"})},aM={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},oM=function(t,r,n,a){return aM[t]},sM={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},lM={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},uM={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},cM={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},dM={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},fM=function(t,r){var n=Number(t);return n+"e"},hM={ordinalNumber:fM,era:ye({values:sM,defaultWidth:"wide"}),quarter:ye({values:lM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:uM,defaultWidth:"wide"}),day:ye({values:cM,defaultWidth:"wide"}),dayPeriod:ye({values:dM,defaultWidth:"wide"})},pM=/^(\d+)e?/i,mM=/\d+/i,vM={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},gM={any:[/^v/,/^n/]},yM={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},bM={any:[/1/i,/2/i,/3/i,/4/i]},_M={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},wM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},xM={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},CM={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},TM={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},SM={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},EM={ordinalNumber:dr({matchPattern:pM,parsePattern:mM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:vM,defaultMatchWidth:"wide",parsePatterns:gM,defaultParseWidth:"any"}),quarter:be({matchPatterns:yM,defaultMatchWidth:"wide",parsePatterns:bM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:_M,defaultMatchWidth:"wide",parsePatterns:wM,defaultParseWidth:"any"}),day:be({matchPatterns:xM,defaultMatchWidth:"wide",parsePatterns:CM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:TM,defaultMatchWidth:"any",parsePatterns:SM,defaultParseWidth:"any"})},MM={code:"nl",formatDistance:eM,formatLong:iM,formatRelative:oM,localize:hM,match:EM,options:{weekStartsOn:1,firstWeekContainsDate:4}},PM={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},RM=function(t,r,n){var a,o=PM[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+a:"há "+a:a},OM={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},kM={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},NM={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DM={date:Ae({formats:OM,defaultWidth:"full"}),time:Ae({formats:kM,defaultWidth:"full"}),dateTime:Ae({formats:NM,defaultWidth:"full"})},AM={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},LM=function(t,r,n,a){var o=AM[t];return typeof o=="function"?o(r):o},IM={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},$M={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},zM={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},FM={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},WM={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},jM={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},BM=function(t,r){var n=Number(t);return n+"º"},HM={ordinalNumber:BM,era:ye({values:IM,defaultWidth:"wide"}),quarter:ye({values:$M,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:zM,defaultWidth:"wide"}),day:ye({values:FM,defaultWidth:"wide"}),dayPeriod:ye({values:WM,defaultWidth:"wide",formattingValues:jM,defaultFormattingWidth:"wide"})},VM=/^(\d+)(º|ª)?/i,UM=/\d+/i,qM={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},GM={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},YM={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},XM={any:[/1/i,/2/i,/3/i,/4/i]},ZM={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},KM={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},QM={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},JM={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},eP={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},tP={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},rP={ordinalNumber:dr({matchPattern:VM,parsePattern:UM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:qM,defaultMatchWidth:"wide",parsePatterns:GM,defaultParseWidth:"any"}),quarter:be({matchPatterns:YM,defaultMatchWidth:"wide",parsePatterns:XM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:ZM,defaultMatchWidth:"wide",parsePatterns:KM,defaultParseWidth:"any"}),day:be({matchPatterns:QM,defaultMatchWidth:"wide",parsePatterns:JM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:eP,defaultMatchWidth:"any",parsePatterns:tP,defaultParseWidth:"any"})},nP={code:"pt",formatDistance:RM,formatLong:DM,formatRelative:LM,localize:HM,match:rP,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ya(e,t){if(e.one!==void 0&&t===1)return e.one;var r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function At(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?ya(e.future,t):"через "+ya(e.regular,t):e.past?ya(e.past,t):ya(e.regular,t)+" назад":ya(e.regular,t)}}var iP={lessThanXSeconds:At({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:At({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:At({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:At({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:At({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:At({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:At({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:At({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:At({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:At({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:At({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:At({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:At({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:At({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:At({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},aP=function(t,r,n){return iP[t](r,n)},oP={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},sP={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},lP={any:"{{date}}, {{time}}"},uP={date:Ae({formats:oP,defaultWidth:"full"}),time:Ae({formats:sP,defaultWidth:"full"}),dateTime:Ae({formats:lP,defaultWidth:"any"})},fd=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function cP(e){var t=fd[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function sp(e){var t=fd[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function dP(e){var t=fd[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var fP={lastWeek:function(t,r,n){var a=t.getUTCDay();return ja(t,r,n)?sp(a):cP(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var a=t.getUTCDay();return ja(t,r,n)?sp(a):dP(a)},other:"P"},hP=function(t,r,n,a){var o=fP[t];return typeof o=="function"?o(r,n,a):o},pP={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},mP={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},vP={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},gP={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},yP={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},bP={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},_P={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},wP=function(t,r){var n=Number(t),a=r==null?void 0:r.unit,o;return a==="date"?o="-е":a==="week"||a==="minute"||a==="second"?o="-я":o="-й",n+o},xP={ordinalNumber:wP,era:ye({values:pP,defaultWidth:"wide"}),quarter:ye({values:mP,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:vP,defaultWidth:"wide",formattingValues:gP,defaultFormattingWidth:"wide"}),day:ye({values:yP,defaultWidth:"wide"}),dayPeriod:ye({values:bP,defaultWidth:"any",formattingValues:_P,defaultFormattingWidth:"wide"})},CP=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,TP=/\d+/i,SP={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},EP={any:[/^д/i,/^н/i]},MP={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},PP={any:[/1/i,/2/i,/3/i,/4/i]},RP={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},OP={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},kP={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},NP={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},DP={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},AP={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},LP={ordinalNumber:dr({matchPattern:CP,parsePattern:TP,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:SP,defaultMatchWidth:"wide",parsePatterns:EP,defaultParseWidth:"any"}),quarter:be({matchPatterns:MP,defaultMatchWidth:"wide",parsePatterns:PP,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:RP,defaultMatchWidth:"wide",parsePatterns:OP,defaultParseWidth:"any"}),day:be({matchPatterns:kP,defaultMatchWidth:"wide",parsePatterns:NP,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:DP,defaultMatchWidth:"wide",parsePatterns:AP,defaultParseWidth:"any"})},IP={code:"ru",formatDistance:aP,formatLong:uP,formatRelative:hP,localize:xP,match:LP,options:{weekStartsOn:1,firstWeekContainsDate:1}},$P={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},zP=function(t,r,n){var a,o=$P[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?a+" sonra":a+" önce":a},FP={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},WP={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},jP={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BP={date:Ae({formats:FP,defaultWidth:"full"}),time:Ae({formats:WP,defaultWidth:"full"}),dateTime:Ae({formats:jP,defaultWidth:"full"})},HP={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},VP=function(t,r,n,a){return HP[t]},UP={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},qP={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},GP={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},YP={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},XP={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},ZP={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},KP=function(t,r){var n=Number(t);return n+"."},QP={ordinalNumber:KP,era:ye({values:UP,defaultWidth:"wide"}),quarter:ye({values:qP,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:GP,defaultWidth:"wide"}),day:ye({values:YP,defaultWidth:"wide"}),dayPeriod:ye({values:XP,defaultWidth:"wide",formattingValues:ZP,defaultFormattingWidth:"wide"})},JP=/^(\d+)(\.)?/i,e2=/\d+/i,t2={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},r2={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},n2={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},i2={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},a2={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},o2={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},s2={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},l2={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},u2={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},c2={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},d2={ordinalNumber:dr({matchPattern:JP,parsePattern:e2,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:t2,defaultMatchWidth:"wide",parsePatterns:r2,defaultParseWidth:"any"}),quarter:be({matchPatterns:n2,defaultMatchWidth:"wide",parsePatterns:i2,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:a2,defaultMatchWidth:"wide",parsePatterns:o2,defaultParseWidth:"any"}),day:be({matchPatterns:s2,defaultMatchWidth:"wide",parsePatterns:l2,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:u2,defaultMatchWidth:"any",parsePatterns:c2,defaultParseWidth:"any"})},f2={code:"tr",formatDistance:zP,formatLong:BP,formatRelative:VP,localize:QP,match:d2,options:{weekStartsOn:1,firstWeekContainsDate:1}},h2={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},p2=function(t,r,n){var a,o=h2[t];return typeof o=="string"?a=o:r===1?a=o.one:a=o.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?a+"内":a+"前":a},m2={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},v2={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},g2={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},y2={date:Ae({formats:m2,defaultWidth:"full"}),time:Ae({formats:v2,defaultWidth:"full"}),dateTime:Ae({formats:g2,defaultWidth:"full"})};function lp(e,t,r){var n="eeee p";return ja(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var b2={lastWeek:lp,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:lp,other:"PP p"},_2=function(t,r,n,a){var o=b2[t];return typeof o=="function"?o(r,n,a):o},w2={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},x2={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},C2={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},T2={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},S2={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},E2={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},M2=function(t,r){var n=Number(t);switch(r==null?void 0:r.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},P2={ordinalNumber:M2,era:ye({values:w2,defaultWidth:"wide"}),quarter:ye({values:x2,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:C2,defaultWidth:"wide"}),day:ye({values:T2,defaultWidth:"wide"}),dayPeriod:ye({values:S2,defaultWidth:"wide",formattingValues:E2,defaultFormattingWidth:"wide"})},R2=/^(第\s*)?\d+(日|时|分|秒)?/i,O2=/\d+/i,k2={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},N2={any:[/^(前)/i,/^(公元)/i]},D2={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},A2={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},L2={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},I2={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},$2={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},z2={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},F2={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},W2={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},j2={ordinalNumber:dr({matchPattern:R2,parsePattern:O2,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:k2,defaultMatchWidth:"wide",parsePatterns:N2,defaultParseWidth:"any"}),quarter:be({matchPatterns:D2,defaultMatchWidth:"wide",parsePatterns:A2,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:L2,defaultMatchWidth:"wide",parsePatterns:I2,defaultParseWidth:"any"}),day:be({matchPatterns:$2,defaultMatchWidth:"wide",parsePatterns:z2,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:F2,defaultMatchWidth:"any",parsePatterns:W2,defaultParseWidth:"any"})},B2={code:"zh-CN",formatDistance:p2,formatLong:y2,formatRelative:_2,localize:P2,match:j2,options:{weekStartsOn:1,firstWeekContainsDate:4}},H2=Math.ceil,V2=Math.max;function U2(e,t,r,n){for(var a=-1,o=V2(H2((t-e)/(r||1)),0),s=Array(o);o--;)s[++a]=e,e+=r;return s}function _g(e,t,r){if(!O.isObject(r))return!1;var n=typeof t;return(n=="number"?O.isArrayLike(r)&&O.isIndex(t,r.length):n=="string"&&t in r)?O.eq(r[t],e):!1}function q2(e){return function(t,r,n){return n&&typeof n!="number"&&_g(t,r,n)&&(r=n=void 0),t=O.toFinite(t),r===void 0?(r=t,t=0):r=O.toFinite(r),n=n===void 0?t<r?1:-1:O.toFinite(n),U2(t,r,n)}}var Go=q2();const hd=e=>{var t;switch((t=e==null?void 0:e.language)==null?void 0:t.split("-")[0]){case"de":return lT;case"fr":return pS;case"es":return FT;case"it":return qS;case"ja":return xE;case"ko":return QE;case"nl":return MM;case"pt":return nP;case"ru":return IP;case"tr":return f2;case"zh":return B2;default:return EC}};Go(4),Go(12),Go(7),Go(24);var zu={exports:{}},wg={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wg);var Ze=wg.exports,Fu={exports:{}},Wu={exports:{}},xg={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xg);var Cg=xg.exports,ju={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(a.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+a.length+" present")}e.exports=t.default})(ju,ju.exports);var Ft=ju.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Cg),a=r(Ft);function o(s){return(0,a.default)(1,arguments),s instanceof Date||(0,n.default)(s)==="object"&&Object.prototype.toString.call(s)==="[object Date]"}e.exports=t.default})(Wu,Wu.exports);var G2=Wu.exports,Bu={exports:{}};(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(Cg),a=r(Ft);function o(s){(0,a.default)(1,arguments);var u=Object.prototype.toString.call(s);return s instanceof Date||(0,n.default)(s)==="object"&&u==="[object Date]"?new Date(s.getTime()):typeof s=="number"||u==="[object Number]"?new Date(s):((typeof s=="string"||u==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Bu,Bu.exports);var jr=Bu.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(G2),a=r(jr),o=r(Ft);function s(u){if((0,o.default)(1,arguments),!(0,n.default)(u)&&typeof u!="number")return!1;var c=(0,a.default)(u);return!isNaN(Number(c))}e.exports=t.default})(Fu,Fu.exports);var Y2=Fu.exports,Hu={exports:{}},Vu={exports:{}},Uu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var a=Number(n);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(Uu,Uu.exports);var Xn=Uu.exports;const X2=O.getDefaultExportFromCjs(Xn);(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Xn),a=r(jr),o=r(Ft);function s(u,c){(0,o.default)(2,arguments);var d=(0,a.default)(u).getTime(),h=(0,n.default)(c);return new Date(d+h)}e.exports=t.default})(Vu,Vu.exports);var Z2=Vu.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Z2),a=r(Ft),o=r(Xn);function s(u,c){(0,a.default)(2,arguments);var d=(0,o.default)(c);return(0,n.default)(u,-d)}e.exports=t.default})(Hu,Hu.exports);var K2=Hu.exports,qu={exports:{}},Gu={exports:{}};(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(jr),a=r(Ft),o=864e5;function s(u){(0,a.default)(1,arguments);var c=(0,n.default)(u),d=c.getTime();c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0);var h=c.getTime(),m=d-h;return Math.floor(m/o)+1}e.exports=t.default})(Gu,Gu.exports);var Q2=Gu.exports,Yu={exports:{}},Xu={exports:{}};(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(jr),a=r(Ft);function o(s){(0,a.default)(1,arguments);var u=1,c=(0,n.default)(s),d=c.getUTCDay(),h=(d<u?7:0)+d-u;return c.setUTCDate(c.getUTCDate()-h),c.setUTCHours(0,0,0,0),c}e.exports=t.default})(Xu,Xu.exports);var pd=Xu.exports,Zu={exports:{}},Ku={exports:{}};(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(jr),a=r(Ft),o=r(pd);function s(u){(0,a.default)(1,arguments);var c=(0,n.default)(u),d=c.getUTCFullYear(),h=new Date(0);h.setUTCFullYear(d+1,0,4),h.setUTCHours(0,0,0,0);var m=(0,o.default)(h),p=new Date(0);p.setUTCFullYear(d,0,4),p.setUTCHours(0,0,0,0);var g=(0,o.default)(p);return c.getTime()>=m.getTime()?d+1:c.getTime()>=g.getTime()?d:d-1}e.exports=t.default})(Ku,Ku.exports);var Tg=Ku.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var n=r(Tg),a=r(pd),o=r(Ft);function s(u){(0,o.default)(1,arguments);var c=(0,n.default)(u),d=new Date(0);d.setUTCFullYear(c,0,4),d.setUTCHours(0,0,0,0);var h=(0,a.default)(d);return h}e.exports=t.default})(Zu,Zu.exports);var J2=Zu.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(jr),a=r(pd),o=r(J2),s=r(Ft),u=6048e5;function c(d){(0,s.default)(1,arguments);var h=(0,n.default)(d),m=(0,a.default)(h).getTime()-(0,o.default)(h).getTime();return Math.round(m/u)+1}e.exports=t.default})(Yu,Yu.exports);var eR=Yu.exports,Qu={exports:{}},Ju={exports:{}},Zn={};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.getDefaultOptions=tR;Zn.setDefaultOptions=rR;var Sg={};function tR(){return Sg}function rR(e){Sg=e}(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(jr),a=r(Ft),o=r(Xn),s=Zn;function u(c,d){var h,m,p,g,_,y,w,E;(0,a.default)(1,arguments);var S=(0,s.getDefaultOptions)(),T=(0,o.default)((h=(m=(p=(g=d==null?void 0:d.weekStartsOn)!==null&&g!==void 0?g:d==null||(_=d.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&p!==void 0?p:S.weekStartsOn)!==null&&m!==void 0?m:(w=S.locale)===null||w===void 0||(E=w.options)===null||E===void 0?void 0:E.weekStartsOn)!==null&&h!==void 0?h:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=(0,n.default)(c),x=C.getUTCDay(),P=(x<T?7:0)+x-T;return C.setUTCDate(C.getUTCDate()-P),C.setUTCHours(0,0,0,0),C}e.exports=t.default})(Ju,Ju.exports);var md=Ju.exports,ec={exports:{}},tc={exports:{}};(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(jr),a=r(Ft),o=r(md),s=r(Xn),u=Zn;function c(d,h){var m,p,g,_,y,w,E,S;(0,a.default)(1,arguments);var T=(0,n.default)(d),C=T.getUTCFullYear(),x=(0,u.getDefaultOptions)(),P=(0,s.default)((m=(p=(g=(_=h==null?void 0:h.firstWeekContainsDate)!==null&&_!==void 0?_:h==null||(y=h.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:x.firstWeekContainsDate)!==null&&p!==void 0?p:(E=x.locale)===null||E===void 0||(S=E.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&m!==void 0?m:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=new Date(0);R.setUTCFullYear(C+1,0,P),R.setUTCHours(0,0,0,0);var D=(0,o.default)(R,h),A=new Date(0);A.setUTCFullYear(C,0,P),A.setUTCHours(0,0,0,0);var I=(0,o.default)(A,h);return T.getTime()>=D.getTime()?C+1:T.getTime()>=I.getTime()?C:C-1}e.exports=t.default})(tc,tc.exports);var Eg=tc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(Eg),a=r(Ft),o=r(md),s=r(Xn),u=Zn;function c(d,h){var m,p,g,_,y,w,E,S;(0,a.default)(1,arguments);var T=(0,u.getDefaultOptions)(),C=(0,s.default)((m=(p=(g=(_=h==null?void 0:h.firstWeekContainsDate)!==null&&_!==void 0?_:h==null||(y=h.locale)===null||y===void 0||(w=y.options)===null||w===void 0?void 0:w.firstWeekContainsDate)!==null&&g!==void 0?g:T.firstWeekContainsDate)!==null&&p!==void 0?p:(E=T.locale)===null||E===void 0||(S=E.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&m!==void 0?m:1),x=(0,n.default)(d,h),P=new Date(0);P.setUTCFullYear(x,0,C),P.setUTCHours(0,0,0,0);var R=(0,o.default)(P,h);return R}e.exports=t.default})(ec,ec.exports);var nR=ec.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(jr),a=r(md),o=r(nR),s=r(Ft),u=6048e5;function c(d,h){(0,s.default)(1,arguments);var m=(0,n.default)(d),p=(0,a.default)(m,h).getTime()-(0,o.default)(m,h).getTime();return Math.round(p/u)+1}e.exports=t.default})(Qu,Qu.exports);var iR=Qu.exports,rc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){for(var o=n<0?"-":"",s=Math.abs(n).toString();s.length<a;)s="0"+s;return o+s}e.exports=t.default})(rc,rc.exports);var Mg=rc.exports,nc={exports:{}};(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(Mg),a={y:function(u,c){var d=u.getUTCFullYear(),h=d>0?d:1-d;return(0,n.default)(c==="yy"?h%100:h,c.length)},M:function(u,c){var d=u.getUTCMonth();return c==="M"?String(d+1):(0,n.default)(d+1,2)},d:function(u,c){return(0,n.default)(u.getUTCDate(),c.length)},a:function(u,c){var d=u.getUTCHours()/12>=1?"pm":"am";switch(c){case"a":case"aa":return d.toUpperCase();case"aaa":return d;case"aaaaa":return d[0];case"aaaa":default:return d==="am"?"a.m.":"p.m."}},h:function(u,c){return(0,n.default)(u.getUTCHours()%12||12,c.length)},H:function(u,c){return(0,n.default)(u.getUTCHours(),c.length)},m:function(u,c){return(0,n.default)(u.getUTCMinutes(),c.length)},s:function(u,c){return(0,n.default)(u.getUTCSeconds(),c.length)},S:function(u,c){var d=c.length,h=u.getUTCMilliseconds(),m=Math.floor(h*Math.pow(10,d-3));return(0,n.default)(m,c.length)}},o=a;t.default=o,e.exports=t.default})(nc,nc.exports);var aR=nc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(Q2),a=r(eR),o=r(Tg),s=r(iR),u=r(Eg),c=r(Mg),d=r(aR),h={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(E,S,T){var C=E.getUTCFullYear()>0?1:0;switch(S){case"G":case"GG":case"GGG":return T.era(C,{width:"abbreviated"});case"GGGGG":return T.era(C,{width:"narrow"});case"GGGG":default:return T.era(C,{width:"wide"})}},y:function(E,S,T){if(S==="yo"){var C=E.getUTCFullYear(),x=C>0?C:1-C;return T.ordinalNumber(x,{unit:"year"})}return d.default.y(E,S)},Y:function(E,S,T,C){var x=(0,u.default)(E,C),P=x>0?x:1-x;if(S==="YY"){var R=P%100;return(0,c.default)(R,2)}return S==="Yo"?T.ordinalNumber(P,{unit:"year"}):(0,c.default)(P,S.length)},R:function(E,S){var T=(0,o.default)(E);return(0,c.default)(T,S.length)},u:function(E,S){var T=E.getUTCFullYear();return(0,c.default)(T,S.length)},Q:function(E,S,T){var C=Math.ceil((E.getUTCMonth()+1)/3);switch(S){case"Q":return String(C);case"QQ":return(0,c.default)(C,2);case"Qo":return T.ordinalNumber(C,{unit:"quarter"});case"QQQ":return T.quarter(C,{width:"abbreviated",context:"formatting"});case"QQQQQ":return T.quarter(C,{width:"narrow",context:"formatting"});case"QQQQ":default:return T.quarter(C,{width:"wide",context:"formatting"})}},q:function(E,S,T){var C=Math.ceil((E.getUTCMonth()+1)/3);switch(S){case"q":return String(C);case"qq":return(0,c.default)(C,2);case"qo":return T.ordinalNumber(C,{unit:"quarter"});case"qqq":return T.quarter(C,{width:"abbreviated",context:"standalone"});case"qqqqq":return T.quarter(C,{width:"narrow",context:"standalone"});case"qqqq":default:return T.quarter(C,{width:"wide",context:"standalone"})}},M:function(E,S,T){var C=E.getUTCMonth();switch(S){case"M":case"MM":return d.default.M(E,S);case"Mo":return T.ordinalNumber(C+1,{unit:"month"});case"MMM":return T.month(C,{width:"abbreviated",context:"formatting"});case"MMMMM":return T.month(C,{width:"narrow",context:"formatting"});case"MMMM":default:return T.month(C,{width:"wide",context:"formatting"})}},L:function(E,S,T){var C=E.getUTCMonth();switch(S){case"L":return String(C+1);case"LL":return(0,c.default)(C+1,2);case"Lo":return T.ordinalNumber(C+1,{unit:"month"});case"LLL":return T.month(C,{width:"abbreviated",context:"standalone"});case"LLLLL":return T.month(C,{width:"narrow",context:"standalone"});case"LLLL":default:return T.month(C,{width:"wide",context:"standalone"})}},w:function(E,S,T,C){var x=(0,s.default)(E,C);return S==="wo"?T.ordinalNumber(x,{unit:"week"}):(0,c.default)(x,S.length)},I:function(E,S,T){var C=(0,a.default)(E);return S==="Io"?T.ordinalNumber(C,{unit:"week"}):(0,c.default)(C,S.length)},d:function(E,S,T){return S==="do"?T.ordinalNumber(E.getUTCDate(),{unit:"date"}):d.default.d(E,S)},D:function(E,S,T){var C=(0,n.default)(E);return S==="Do"?T.ordinalNumber(C,{unit:"dayOfYear"}):(0,c.default)(C,S.length)},E:function(E,S,T){var C=E.getUTCDay();switch(S){case"E":case"EE":case"EEE":return T.day(C,{width:"abbreviated",context:"formatting"});case"EEEEE":return T.day(C,{width:"narrow",context:"formatting"});case"EEEEEE":return T.day(C,{width:"short",context:"formatting"});case"EEEE":default:return T.day(C,{width:"wide",context:"formatting"})}},e:function(E,S,T,C){var x=E.getUTCDay(),P=(x-C.weekStartsOn+8)%7||7;switch(S){case"e":return String(P);case"ee":return(0,c.default)(P,2);case"eo":return T.ordinalNumber(P,{unit:"day"});case"eee":return T.day(x,{width:"abbreviated",context:"formatting"});case"eeeee":return T.day(x,{width:"narrow",context:"formatting"});case"eeeeee":return T.day(x,{width:"short",context:"formatting"});case"eeee":default:return T.day(x,{width:"wide",context:"formatting"})}},c:function(E,S,T,C){var x=E.getUTCDay(),P=(x-C.weekStartsOn+8)%7||7;switch(S){case"c":return String(P);case"cc":return(0,c.default)(P,S.length);case"co":return T.ordinalNumber(P,{unit:"day"});case"ccc":return T.day(x,{width:"abbreviated",context:"standalone"});case"ccccc":return T.day(x,{width:"narrow",context:"standalone"});case"cccccc":return T.day(x,{width:"short",context:"standalone"});case"cccc":default:return T.day(x,{width:"wide",context:"standalone"})}},i:function(E,S,T){var C=E.getUTCDay(),x=C===0?7:C;switch(S){case"i":return String(x);case"ii":return(0,c.default)(x,S.length);case"io":return T.ordinalNumber(x,{unit:"day"});case"iii":return T.day(C,{width:"abbreviated",context:"formatting"});case"iiiii":return T.day(C,{width:"narrow",context:"formatting"});case"iiiiii":return T.day(C,{width:"short",context:"formatting"});case"iiii":default:return T.day(C,{width:"wide",context:"formatting"})}},a:function(E,S,T){var C=E.getUTCHours(),x=C/12>=1?"pm":"am";switch(S){case"a":case"aa":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"aaa":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return T.dayPeriod(x,{width:"narrow",context:"formatting"});case"aaaa":default:return T.dayPeriod(x,{width:"wide",context:"formatting"})}},b:function(E,S,T){var C=E.getUTCHours(),x;switch(C===12?x=h.noon:C===0?x=h.midnight:x=C/12>=1?"pm":"am",S){case"b":case"bb":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"bbb":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return T.dayPeriod(x,{width:"narrow",context:"formatting"});case"bbbb":default:return T.dayPeriod(x,{width:"wide",context:"formatting"})}},B:function(E,S,T){var C=E.getUTCHours(),x;switch(C>=17?x=h.evening:C>=12?x=h.afternoon:C>=4?x=h.morning:x=h.night,S){case"B":case"BB":case"BBB":return T.dayPeriod(x,{width:"abbreviated",context:"formatting"});case"BBBBB":return T.dayPeriod(x,{width:"narrow",context:"formatting"});case"BBBB":default:return T.dayPeriod(x,{width:"wide",context:"formatting"})}},h:function(E,S,T){if(S==="ho"){var C=E.getUTCHours()%12;return C===0&&(C=12),T.ordinalNumber(C,{unit:"hour"})}return d.default.h(E,S)},H:function(E,S,T){return S==="Ho"?T.ordinalNumber(E.getUTCHours(),{unit:"hour"}):d.default.H(E,S)},K:function(E,S,T){var C=E.getUTCHours()%12;return S==="Ko"?T.ordinalNumber(C,{unit:"hour"}):(0,c.default)(C,S.length)},k:function(E,S,T){var C=E.getUTCHours();return C===0&&(C=24),S==="ko"?T.ordinalNumber(C,{unit:"hour"}):(0,c.default)(C,S.length)},m:function(E,S,T){return S==="mo"?T.ordinalNumber(E.getUTCMinutes(),{unit:"minute"}):d.default.m(E,S)},s:function(E,S,T){return S==="so"?T.ordinalNumber(E.getUTCSeconds(),{unit:"second"}):d.default.s(E,S)},S:function(E,S){return d.default.S(E,S)},X:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();if(P===0)return"Z";switch(S){case"X":return g(P);case"XXXX":case"XX":return _(P);case"XXXXX":case"XXX":default:return _(P,":")}},x:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();switch(S){case"x":return g(P);case"xxxx":case"xx":return _(P);case"xxxxx":case"xxx":default:return _(P,":")}},O:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();switch(S){case"O":case"OO":case"OOO":return"GMT"+p(P,":");case"OOOO":default:return"GMT"+_(P,":")}},z:function(E,S,T,C){var x=C._originalDate||E,P=x.getTimezoneOffset();switch(S){case"z":case"zz":case"zzz":return"GMT"+p(P,":");case"zzzz":default:return"GMT"+_(P,":")}},t:function(E,S,T,C){var x=C._originalDate||E,P=Math.floor(x.getTime()/1e3);return(0,c.default)(P,S.length)},T:function(E,S,T,C){var x=C._originalDate||E,P=x.getTime();return(0,c.default)(P,S.length)}};function p(w,E){var S=w>0?"-":"+",T=Math.abs(w),C=Math.floor(T/60),x=T%60;if(x===0)return S+String(C);var P=E;return S+String(C)+P+(0,c.default)(x,2)}function g(w,E){if(w%60===0){var S=w>0?"-":"+";return S+(0,c.default)(Math.abs(w)/60,2)}return _(w,E)}function _(w,E){var S=E||"",T=w>0?"-":"+",C=Math.abs(w),x=(0,c.default)(Math.floor(C/60),2),P=(0,c.default)(C%60,2);return T+x+S+P}var y=m;t.default=y,e.exports=t.default})(qu,qu.exports);var oR=qu.exports,ic={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(c,d){switch(c){case"P":return d.date({width:"short"});case"PP":return d.date({width:"medium"});case"PPP":return d.date({width:"long"});case"PPPP":default:return d.date({width:"full"})}},n=function(c,d){switch(c){case"p":return d.time({width:"short"});case"pp":return d.time({width:"medium"});case"ppp":return d.time({width:"long"});case"pppp":default:return d.time({width:"full"})}},a=function(c,d){var h=c.match(/(P+)(p+)?/)||[],m=h[1],p=h[2];if(!p)return r(c,d);var g;switch(m){case"P":g=d.dateTime({width:"short"});break;case"PP":g=d.dateTime({width:"medium"});break;case"PPP":g=d.dateTime({width:"long"});break;case"PPPP":default:g=d.dateTime({width:"full"});break}return g.replace("{{date}}",r(m,d)).replace("{{time}}",n(p,d))},o={p:n,P:a},s=o;t.default=s,e.exports=t.default})(ic,ic.exports);var sR=ic.exports,ac={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var a=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return a.setUTCFullYear(n.getFullYear()),n.getTime()-a.getTime()}e.exports=t.default})(ac,ac.exports);var Pg=ac.exports;const up=O.getDefaultExportFromCjs(Pg);var no={};Object.defineProperty(no,"__esModule",{value:!0});no.isProtectedDayOfYearToken=cR;no.isProtectedWeekYearToken=dR;no.throwProtectedError=fR;var lR=["D","DD"],uR=["YY","YYYY"];function cR(e){return lR.indexOf(e)!==-1}function dR(e){return uR.indexOf(e)!==-1}function fR(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var oc={exports:{}},sc={exports:{}},lc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(s,u,c){var d,h=r[s];return typeof h=="string"?d=h:u===1?d=h.one:d=h.other.replace("{{count}}",u.toString()),c!=null&&c.addSuffix?c.comparison&&c.comparison>0?"in "+d:d+" ago":d},a=n;t.default=a,e.exports=t.default})(lc,lc.exports);var hR=lc.exports,uc={exports:{}},cc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=a.width?String(a.width):n.defaultWidth,s=n.formats[o]||n.formats[n.defaultWidth];return s}}e.exports=t.default})(cc,cc.exports);var pR=cc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(pR),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},o={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,n.default)({formats:a,defaultWidth:"full"}),time:(0,n.default)({formats:o,defaultWidth:"full"}),dateTime:(0,n.default)({formats:s,defaultWidth:"full"})},c=u;t.default=c,e.exports=t.default})(uc,uc.exports);var mR=uc.exports,dc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(s,u,c,d){return r[s]},a=n;t.default=a,e.exports=t.default})(dc,dc.exports);var vR=dc.exports,fc={exports:{}},hc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(a,o){var s=o!=null&&o.context?String(o.context):"standalone",u;if(s==="formatting"&&n.formattingValues){var c=n.defaultFormattingWidth||n.defaultWidth,d=o!=null&&o.width?String(o.width):c;u=n.formattingValues[d]||n.formattingValues[c]}else{var h=n.defaultWidth,m=o!=null&&o.width?String(o.width):n.defaultWidth;u=n.values[m]||n.values[h]}var p=n.argumentCallback?n.argumentCallback(a):a;return u[p]}}e.exports=t.default})(hc,hc.exports);var gR=hc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(gR),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},o={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},d={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},h=function(_,y){var w=Number(_),E=w%100;if(E>20||E<10)switch(E%10){case 1:return w+"st";case 2:return w+"nd";case 3:return w+"rd"}return w+"th"},m={ordinalNumber:h,era:(0,n.default)({values:a,defaultWidth:"wide"}),quarter:(0,n.default)({values:o,defaultWidth:"wide",argumentCallback:function(_){return _-1}}),month:(0,n.default)({values:s,defaultWidth:"wide"}),day:(0,n.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:c,defaultWidth:"wide",formattingValues:d,defaultFormattingWidth:"wide"})},p=m;t.default=p,e.exports=t.default})(fc,fc.exports);var yR=fc.exports,pc={exports:{}},mc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(o){return function(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=u.width,d=c&&o.matchPatterns[c]||o.matchPatterns[o.defaultMatchWidth],h=s.match(d);if(!h)return null;var m=h[0],p=c&&o.parsePatterns[c]||o.parsePatterns[o.defaultParseWidth],g=Array.isArray(p)?a(p,function(w){return w.test(m)}):n(p,function(w){return w.test(m)}),_;_=o.valueCallback?o.valueCallback(g):g,_=u.valueCallback?u.valueCallback(_):_;var y=s.slice(m.length);return{value:_,rest:y}}}function n(o,s){for(var u in o)if(o.hasOwnProperty(u)&&s(o[u]))return u}function a(o,s){for(var u=0;u<o.length;u++)if(s(o[u]))return u}e.exports=t.default})(mc,mc.exports);var bR=mc.exports,vc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=a.match(n.matchPattern);if(!s)return null;var u=s[0],c=a.match(n.parsePattern);if(!c)return null;var d=n.valueCallback?n.valueCallback(c[0]):c[0];d=o.valueCallback?o.valueCallback(d):d;var h=a.slice(u.length);return{value:d,rest:h}}}e.exports=t.default})(vc,vc.exports);var _R=vc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(bR),a=r(_R),o=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},d={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},m={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},w={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},E={ordinalNumber:(0,a.default)({matchPattern:o,parsePattern:s,valueCallback:function(C){return parseInt(C,10)}}),era:(0,n.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(C){return C+1}}),month:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:_,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:w,defaultParseWidth:"any"})},S=E;t.default=S,e.exports=t.default})(pc,pc.exports);var wR=pc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(hR),a=r(mR),o=r(vR),s=r(yR),u=r(wR),c={code:"en-US",formatDistance:n.default,formatLong:a.default,formatRelative:o.default,localize:s.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},d=c;t.default=d,e.exports=t.default})(sc,sc.exports);var xR=sc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(xR),a=n.default;t.default=a,e.exports=t.default})(oc,oc.exports);var CR=oc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=T;var n=r(Y2),a=r(K2),o=r(jr),s=r(oR),u=r(sR),c=r(Pg),d=no,h=r(Xn),m=r(Ft),p=Zn,g=r(CR),_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,w=/^'([^]*?)'?$/,E=/''/g,S=/[a-zA-Z]/;function T(x,P,R){var D,A,I,N,k,W,j,$,B,G,q,U,z,H,te,X,K,J;(0,m.default)(2,arguments);var ie=String(P),le=(0,p.getDefaultOptions)(),se=(D=(A=R==null?void 0:R.locale)!==null&&A!==void 0?A:le.locale)!==null&&D!==void 0?D:g.default,ce=(0,h.default)((I=(N=(k=(W=R==null?void 0:R.firstWeekContainsDate)!==null&&W!==void 0?W:R==null||(j=R.locale)===null||j===void 0||($=j.options)===null||$===void 0?void 0:$.firstWeekContainsDate)!==null&&k!==void 0?k:le.firstWeekContainsDate)!==null&&N!==void 0?N:(B=le.locale)===null||B===void 0||(G=B.options)===null||G===void 0?void 0:G.firstWeekContainsDate)!==null&&I!==void 0?I:1);if(!(ce>=1&&ce<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var he=(0,h.default)((q=(U=(z=(H=R==null?void 0:R.weekStartsOn)!==null&&H!==void 0?H:R==null||(te=R.locale)===null||te===void 0||(X=te.options)===null||X===void 0?void 0:X.weekStartsOn)!==null&&z!==void 0?z:le.weekStartsOn)!==null&&U!==void 0?U:(K=le.locale)===null||K===void 0||(J=K.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&q!==void 0?q:0);if(!(he>=0&&he<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!se.localize)throw new RangeError("locale must contain localize property");if(!se.formatLong)throw new RangeError("locale must contain formatLong property");var pe=(0,o.default)(x);if(!(0,n.default)(pe))throw new RangeError("Invalid time value");var oe=(0,c.default)(pe),ve=(0,a.default)(pe,oe),fe={firstWeekContainsDate:ce,weekStartsOn:he,locale:se,_originalDate:pe},_e=ie.match(y).map(function(we){var Se=we[0];if(Se==="p"||Se==="P"){var Ce=u.default[Se];return Ce(we,se.formatLong)}return we}).join("").match(_).map(function(we){if(we==="''")return"'";var Se=we[0];if(Se==="'")return C(we);var Ce=s.default[Se];if(Ce)return!(R!=null&&R.useAdditionalWeekYearTokens)&&(0,d.isProtectedWeekYearToken)(we)&&(0,d.throwProtectedError)(we,P,String(x)),!(R!=null&&R.useAdditionalDayOfYearTokens)&&(0,d.isProtectedDayOfYearToken)(we)&&(0,d.throwProtectedError)(we,P,String(x)),Ce(ve,we,se.localize,fe);if(Se.match(S))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Se+"`");return we}).join("");return _e}function C(x){var P=x.match(w);return P?P[1].replace(E,"'"):x}e.exports=t.default})(zu,zu.exports);var TR=zu.exports;const SR=O.getDefaultExportFromCjs(TR);function cp(e,t,r){var n=PR(e,r.timeZone,r.locale);return n.formatToParts?ER(n,t):MR(n,t)}function ER(e,t){for(var r=e.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function MR(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function PR(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function RR(e,t){var r=DR(t);return r.formatToParts?kR(r,e):NR(r,e)}var OR={year:0,month:1,day:2,hour:3,minute:4,second:5};function kR(e,t){try{for(var r=e.formatToParts(t),n=[],a=0;a<r.length;a++){var o=OR[r[a].type];o>=0&&(n[o]=parseInt(r[a].value,10))}return n}catch(s){if(s instanceof RangeError)return[NaN];throw s}}function NR(e,t){var r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var ru={};function DR(e){if(!ru[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";ru[e]=r?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return ru[e]}function Rg(e,t,r,n,a,o,s){var u=new Date(0);return u.setUTCFullYear(e,t,r),u.setUTCHours(n,a,o,s),u}var dp=36e5,AR=6e4,nu={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function vd(e,t,r){var n,a;if(!e||(n=nu.timezoneZ.exec(e),n))return 0;var o;if(n=nu.timezoneHH.exec(e),n)return o=parseInt(n[1],10),fp(o)?-(o*dp):NaN;if(n=nu.timezoneHHMM.exec(e),n){o=parseInt(n[2],10);var s=parseInt(n[3],10);return fp(o,s)?(a=Math.abs(o)*dp+s*AR,n[1]==="+"?-a:a):NaN}if($R(e)){t=new Date(t||Date.now());var u=r?t:LR(t),c=gc(u,e),d=r?c:IR(t,c,e);return-d}return NaN}function LR(e){return Rg(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function gc(e,t){var r=RR(e,t),n=Rg(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),a=e.getTime(),o=a%1e3;return a-=o>=0?o:1e3+o,n-a}function IR(e,t,r){var n=e.getTime(),a=n-t,o=gc(new Date(a),r);if(t===o)return t;a-=o-t;var s=gc(new Date(a),r);return o===s?o:Math.max(o,s)}function fp(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var hp={};function $R(e){if(hp[e])return!0;try{return hp[e]=!0,!0}catch(t){return!1}}var zR=60*1e3,FR={X:function(e,t,r,n){var a=iu(n.timeZone,e);if(a===0)return"Z";switch(t){case"X":return pp(a);case"XXXX":case"XX":return xi(a);case"XXXXX":case"XXX":default:return xi(a,":")}},x:function(e,t,r,n){var a=iu(n.timeZone,e);switch(t){case"x":return pp(a);case"xxxx":case"xx":return xi(a);case"xxxxx":case"xxx":default:return xi(a,":")}},O:function(e,t,r,n){var a=iu(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+WR(a,":");case"OOOO":default:return"GMT"+xi(a,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return cp("short",e,n);case"zzzz":default:return cp("long",e,n)}}};function iu(e,t){var r=e?vd(e,t,!0)/zR:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function bs(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function xi(e,t){var r=t||"",n=e>0?"-":"+",a=Math.abs(e),o=bs(Math.floor(a/60),2),s=bs(Math.floor(a%60),2);return n+o+r+s}function pp(e,t){if(e%60===0){var r=e>0?"-":"+";return r+bs(Math.abs(e)/60,2)}return xi(e,t)}function WR(e,t){var r=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),o=n%60;if(o===0)return r+String(a);var s=t;return r+String(a)+s+bs(o,2)}var jR=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,au=36e5,mp=6e4,BR=2,Lt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:jR};function Og(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?BR:X2(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=HR(e),o=VR(a.date,n),s=o.year,u=o.restDateString,c=UR(u,s);if(isNaN(c))return new Date(NaN);if(c){var d=c.getTime(),h=0,m;if(a.time&&(h=qR(a.time),isNaN(h)))return new Date(NaN);if(a.timeZone||r.timeZone){if(m=vd(a.timeZone||r.timeZone,new Date(d+h)),isNaN(m))return new Date(NaN)}else m=up(new Date(d+h)),m=up(new Date(d+h+m));return new Date(d+h+m)}else return new Date(NaN)}function HR(e){var t={},r=Lt.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Lt.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var a=Lt.timeZone.exec(n);a?(t.time=n.replace(a[1],""),t.timeZone=a[1].trim()):t.time=n}return t}function VR(e,t){var r=Lt.YYY[t],n=Lt.YYYYY[t],a;if(a=Lt.YYYY.exec(e)||n.exec(e),a){var o=a[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(a=Lt.YY.exec(e)||r.exec(e),a){var s=a[1];return{year:parseInt(s,10)*100,restDateString:e.slice(s.length)}}return{year:null}}function UR(e,t){if(t===null)return null;var r,n,a,o;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Lt.MM.exec(e),r)return n=new Date(0),a=parseInt(r[1],10)-1,gp(t,a)?(n.setUTCFullYear(t,a),n):new Date(NaN);if(r=Lt.DDD.exec(e),r){n=new Date(0);var s=parseInt(r[1],10);return XR(t,s)?(n.setUTCFullYear(t,0,s),n):new Date(NaN)}if(r=Lt.MMDD.exec(e),r){n=new Date(0),a=parseInt(r[1],10)-1;var u=parseInt(r[2],10);return gp(t,a,u)?(n.setUTCFullYear(t,a,u),n):new Date(NaN)}if(r=Lt.Www.exec(e),r)return o=parseInt(r[1],10)-1,yp(t,o)?vp(t,o):new Date(NaN);if(r=Lt.WwwD.exec(e),r){o=parseInt(r[1],10)-1;var c=parseInt(r[2],10)-1;return yp(t,o,c)?vp(t,o,c):new Date(NaN)}return null}function qR(e){var t,r,n;if(t=Lt.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),ou(r)?r%24*au:NaN;if(t=Lt.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),ou(r,n)?r%24*au+n*mp:NaN;if(t=Lt.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return ou(r,n,a)?r%24*au+n*mp+a*1e3:NaN}return null}function vp(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,o=t*7+r+1-a;return n.setUTCDate(n.getUTCDate()+o),n}var GR=[31,28,31,30,31,30,31,31,30,31,30,31],YR=[31,29,31,30,31,30,31,31,30,31,30,31];function kg(e){return e%400===0||e%4===0&&e%100!==0}function gp(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=kg(e);if(n&&r>YR[t]||!n&&r>GR[t])return!1}return!0}function XR(e,t){if(t<1)return!1;var r=kg(e);return!(r&&t>366||!r&&t>365)}function yp(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function ou(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var ZR=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Ng(e,t,r){var n=String(t),a=r||{},o=n.match(ZR);if(o){var s=Og(a.originalDate||e,a);n=o.reduce(function(u,c){if(c[0]==="'")return u;var d=u.indexOf(c),h=u[d-1]==="'",m=u.replace(c,"'"+FR[c[0]](s,c,null,a)+"'");return h?m.substring(0,d-1)+m.substring(d+1):m},n)}return SR(e,n,a)}function _n(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(o,s){return s?r(o):o})}const KR=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],QR=Object.freeze({fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"}),bp=Object.freeze({"en-US":QR});function JR(e,t){var a;if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e,n=bp[(a=t.code)!=null?a:""];return n||(n=bp["en-US"]),KR.forEach(o=>{const s=n[o];r=_n(r,o,function(){return s})}),r}var yc={exports:{}},bc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,a){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o]);return n}e.exports=t.default})(bc,bc.exports);var eO=bc.exports;(function(e,t){var r=Ze.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(eO);function a(o){return(0,n.default)({},o)}e.exports=t.default})(yc,yc.exports);var tO=yc.exports;const rO=O.getDefaultExportFromCjs(tO);function nO(e,t,r){var n=Og(e,r),a=vd(t,n,!0),o=new Date(n.getTime()-a),s=new Date(0);return s.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),s.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),s}function Ba(e,t,r,n){var a=rO(n);return a.timeZone=t,a.originalDate=e,Ng(nO(e,t),r,a)}function iO(e){return e.includes("sss")?_n(e,"sss",function(){return"SSS"}):e}function aO(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=_n(e,"a",function(){return`\0${Ba(t,r,"a").toLowerCase()}\0`});return n=_n(n,"A",function(){return`\0${Ba(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}function oO(e,t,r,n){return e.includes("Z")?_n(e,"Z",function(){return Ba(t,r,"xx",{locale:n})}):e}function sO(e,t,r){return Dg(e,t,r)?bg(e,1):e}function lO(e,t){return t<=e.getMonth()}function Dg(e,t,r){const n=![hO,gd].includes(t);return r>Lg&&n&&lO(e,r)}function uO(e,t,r,n){return!n&&Dg(e,t,r)?yg(e,1):e}function cO(e,t){if(t>0){const r=(e.getMonth()+t)%12;return NC(e,r)}return e}function dO(e,t,r,n,a,o){if(!e.includes("y"))return e;const s=uO(t,n,o,a);let u=e;if(["yyyy","yy","y","yp","yyyp"].includes(e)&&(r="Etc/GMT-14"),e.includes("yp")){const d=bg(s,1);u=_n(e,"yp|yyyp",function(m){const p="y".repeat(m.length);return Ba(d,r,p)})}return _n(u,"yyyy|yy|y",function(h){return Ba(s,r,h)})}function fO(e,t,r,n){if(!e.includes("Q"))return e;let a=t.getMonth();n&&[gd,pO,mO,Ag].includes(r)&&(a-=n>a?n-12:n);const o=parseInt(String(a/3))+1;return _n(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${o}`})}const hO="years",gd="quarters",pO="months",mO="weeks",Ag="days",Lg=0,vO=1,yd=Object.freeze({weekFirstDay:vO,isFiscalOn:!1,fiscalMonth:Lg,selectedDateLevel:Ag,timeZone:"UTC"});function bd(e,t,r=hd(),n=yd){return e.getFullYear()<100&&(e=DC(e,1900+e.getFullYear())),n.isFiscalOn||(e=sO(e,n.selectedDateLevel,n.fiscalMonth)),t=JR(t,r),t=iO(t),t=aO(t,e,n.timeZone),t=oO(t,e,n.timeZone,r),t=dO(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===gd&&(e=cO(e,n.fiscalMonth)),t=fO(t,e,n.selectedDateLevel,n.fiscalMonth),Ng(e,t,{locale:r,weekStartsOn:n.weekFirstDay})}const _d="#F2F2F2",wd=4,gO={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",panelBackgroundColor:"#F6F6F6",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900"},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#9EA2AB",header:{titleTextColor:"#5B6372",titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:wd,dividerLineColor:_d},filter:{panel:{titleColor:"#5B6372",backgroundColor:"#F6F6F6"}},aiChat:{backgroundColor:"rgba(244, 244, 248, 1)",primaryTextColor:"rgba(38, 46, 61, 0.8)",secondaryTextColor:"rgba(38, 46, 61, 0.55)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},systemMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},input:{backgroundColor:"rgba(255, 255, 255, 1)",focus:{outlineColor:"rgba(38, 46, 61, 0.5)"}},header:{textColor:"rgba(38, 46, 61, 0.8)",backgroundColor:"rgba(255, 255, 255, 1)"},dropup:{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",borderRadius:"4px",headers:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}},items:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}}},border:"1px solid #c6c9ce",borderRadius:"30px",suggestions:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"},loadingGradient:["rgba(194, 196, 203, 1)","rgba(236, 236, 239, 1)"],gap:"8px"},clickableMessages:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"}},dataTopics:{backgroundColor:"rgba(255, 255, 255, 1)",items:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)"}},icons:{color:"rgba(38, 46, 61, 0.67)",feedbackIcons:{hoverColor:"rgba(12, 14, 18, 0.07)"}},tooltips:{backgroundColor:"rgba(255, 255, 255, 1)",textColor:"rgba(38, 46, 61, 0.8)",boxShadow:"0px 4px 12px 0px rgba(9, 9, 10, 0.20), 0px 1px 4px 0px rgba(9, 9, 10, 0.10)"}}},yO={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",panelBackgroundColor:"#313138",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900"},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#C5C8CF",header:{titleTextColor:"#FFFFFF",titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:wd,dividerLineColor:_d},filter:{panel:{titleColor:"#FFFFFF",backgroundColor:"#313138"}},aiChat:{backgroundColor:"rgba(23, 28, 38, 1)",primaryTextColor:"rgba(242, 247, 255, 0.9)",secondaryTextColor:"rgba(242, 247, 255, 0.4)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(31, 92, 153, 1)"},systemMessages:{backgroundColor:"rgba(46, 55, 77, 1)"},input:{backgroundColor:"rgba(242, 247, 255, 0.1)",focus:{outlineColor:"rgba(242, 247, 255, 0.5)"}},header:{backgroundColor:"#313138",textColor:"rgba(242, 247, 255, 0.9)"},dropup:{backgroundColor:"rgba(38, 46, 64, 1)",boxShadow:"0px 1px 4px 0px #020203, 0px 2px 12px 2px rgba(2, 2, 3, 0.25)",borderRadius:"8px",headers:{textColor:"rgba(242, 247, 255, 0.6)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}},items:{textColor:"rgba(242, 247, 255, 0.9)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}}},border:!1,borderRadius:"30px",suggestions:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"},loadingGradient:["rgba(242, 247, 255, 0.1)","rgba(242, 247, 255, 0.3)"],gap:"8px"},clickableMessages:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"}},dataTopics:{backgroundColor:"rgba(23, 28, 38, 1)",items:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)"}},icons:{color:"rgba(242, 247, 255, 0.5)",feedbackIcons:{hoverColor:"rgba(242, 247, 255, 0.1)"}},tooltips:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)",boxShadow:"0px 1px 8px 0px #020203, 0px 4px 24px 4px rgba(2, 2, 3, 0.25)"}}},Bs=(e=!1)=>e?O.cloneDeep(yO):O.cloneDeep(gO),Ma={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function Ig(e,t,r){const n={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.widgetBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor,fontsLoader:{fonts:bO(e.typography.fontFamily,r,e.typography.customFontSelected)}},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor},widget:{spaceAround:Ma[e.dashboards.widgetSpacing],cornerRadius:Ma[e.dashboards.widgetCornerRadius],shadow:Ma[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:Ma[e.dashboards.widgetTitleAlignment],dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:wd,dividerLineColor:_d},filter:{panel:{titleColor:e.dashboards.panelTitleTextColor,backgroundColor:e.dashboards.panelBackgroundColor}}};return O.merge.withOptions({mergeArrays:!1},Bs(),n)}function $g(e){return e.dashboards.colorPaletteName}function bO(e,t,r){const o=r?"fonts/":"resources/base/fonts/";return[{fontFamily:e,fontWeight:"normal",fontStyle:"normal",src:[{url:`${t}${o}${e}-Regular.eot`},{local:`${e}-Regular`},{url:`${t}${o}${e}-Regular.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${o}${e}-Regular.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:600,fontStyle:"normal",src:[{url:`${t}${o}${e}-SemiBold.eot`},{local:`${e}-SemiBold`},{url:`${t}${o}${e}-SemiBold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${o}${e}-SemiBold.ttf`,format:"truetype"}]},{fontFamily:e,fontWeight:"bold",fontStyle:"normal",src:[{url:`${t}${o}${e}-Bold.eot`},{local:`${e}-Bold`},{url:`${t}${o}${e}-Bold.eot?#iefix`,format:"embedded-opentype"},{url:`${t}${o}${e}-Bold.ttf`,format:"truetype"}]}]}function zg(e,t){return wr(this,null,function*(){const r=yield _O(e,t);if(!r)throw new O.TranslatableError("errors.themeNotFound",{themeOid:e});const n=$g(r),a=yield Fg(n,t);return Ig(r,a,t.url)})}function _O(e,t){return wr(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new O.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function Fg(e,t){return wr(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new O.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}function wO(e){return"value"in e}function xO(e){return"valuePromise"in e}const CO=(e,t)=>{const r=new Map;return{withCache:o=>(...s)=>wr(exports,null,function*(){const u=e(...s);if(r.has(u)){const c=r.get(u);if(wO(c))return c.value;if(xO(c))return c.valuePromise;throw new Error("Unexpected cache value")}else{const c=o(...s);return r.set(u,{valuePromise:c,createdAt:new Date}),c.then(d=>(r.set(u,{value:d,createdAt:new Date}),t!=null&&t.cacheMaxSize&&r.size>t.cacheMaxSize&&TO(r),d))}}),clearCache:o=>{if(o){r.delete(o);return}r.clear()}}};function TO(e){const t=Array.from(e.keys()),r=t.reduce((n,a)=>{const o=e.get(a),s=e.get(n);return o.createdAt<s.createdAt?a:n},t[0]);e.delete(r)}const xd=(e,t)=>{const{dataSource:r,dimensions:n=[],measures:a=[],filters:o=[],filterRelations:s,highlights:u=[],count:c,offset:d,ungroup:h}=e;o&&o.forEach(p=>p.isScope=!0),u&&u.forEach(p=>p.isScope=!0);const m=r||t;if(!m)throw new O.TranslatableError("errors.executeQueryNoDataSource");return{dataSource:m,attributes:n,measures:a,filters:o,filterRelations:s,highlights:u,count:c,offset:d,ungroup:h}};function io(e,t,r){const n=xd(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeQuery(n,r).resultPromise.catch(a=>{throw a.message.includes("SecondsLevelIsNotSupportedException")?new O.TranslatableError("errors.secondsDateTimeLevelSupportedOnlyForLive"):a})}const SO=(e,t,r)=>{const n=xd(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeCsvQuery(n,r).resultPromise},EO=(e,t,r)=>{const{dataSource:n,rows:a=[],columns:o=[],values:s=[],grandTotals:u={},filters:c=[],filterRelations:d,highlights:h=[],count:m,offset:p}=e;c&&c.forEach(_=>_.isScope=!0),h&&h.forEach(_=>_.isScope=!0);const g=n||(t==null?void 0:t.defaultDataSource);if(!g)throw new O.TranslatableError("errors.executeQueryNoDataSource");return t.queryClient.executePivotQuery({dataSource:g,rowsAttributes:a,columnsAttributes:o,measures:s,grandTotals:u,filters:c,filterRelations:d,highlights:h,count:m,offset:p},r).resultPromise},MO=e=>JSON.stringify(ue(ee({},tg(e,!1)),{queryGuid:""})),Wg=(e,t)=>{const r=xd(e,t==null?void 0:t.defaultDataSource);return MO(r)},PO=250,{withCache:RO,clearCache:OO}=CO(Wg,{cacheMaxSize:PO}),Cd=RO(io),kO=OO;function Td(){}function wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}wn.prototype=O.baseCreate(Td.prototype);wn.prototype.constructor=wn;var _p=O.WeakMap&&new O.WeakMap;function jg(){}var Bg=_p?function(e){return _p.get(e)}:jg,wp={},NO=Object.prototype,DO=NO.hasOwnProperty;function cs(e){for(var t=e.name+"",r=wp[t],n=DO.call(wp,t)?r.length:0;n--;){var a=r[n],o=a.func;if(o==null||o==e)return a.name}return t}var AO=4294967295;function Li(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=AO,this.__views__=[]}Li.prototype=O.baseCreate(Td.prototype);Li.prototype.constructor=Li;function LO(e){if(e instanceof Li)return e.clone();var t=new wn(e.__wrapped__,e.__chain__);return t.__actions__=O.copyArray(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var IO=Object.prototype,$O=IO.hasOwnProperty;function _s(e){if(O.isObjectLike(e)&&!O.isArray(e)&&!(e instanceof Li)){if(e instanceof wn)return e;if($O.call(e,"__wrapped__"))return LO(e)}return new wn(e)}_s.prototype=Td.prototype;_s.prototype.constructor=_s;function xp(e){var t=cs(e),r=_s[t];if(typeof r!="function"||!(t in Li.prototype))return!1;if(e===r)return!0;var n=Bg(r);return!!n&&e===n[0]}var zO="Expected a function",FO=8,WO=32,jO=128,BO=256;function HO(e){return O.flatRest(function(t){for(var r=t.length,n=r,a=wn.prototype.thru;n--;){var o=t[n];if(typeof o!="function")throw new TypeError(zO);if(a&&!s&&cs(o)=="wrapper")var s=new wn([],!0)}for(n=s?n:r;++n<r;){o=t[n];var u=cs(o),c=u=="wrapper"?Bg(o):void 0;c&&xp(c[0])&&c[1]==(jO|FO|WO|BO)&&!c[4].length&&c[9]==1?s=s[cs(c[0])].apply(s,c[3]):s=o.length==1&&xp(o)?s[u]():s.thru(o)}return function(){var d=arguments,h=d[0];if(s&&d.length==1&&O.isArray(h))return s.plant(h).value();for(var m=0,p=r?t[m].apply(this,d):h;++m<r;)p=t[m].call(this,p);return p}})}var Hg=HO();const Sd=Q.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"}}),bt=()=>Q.useContext(Sd),Cp="composesdk",Vg=(e,t,r,n=!1)=>{const a=Object.assign({action:e,cat:Cp,eventType:"product",direct:!0},t);return n?(console.debug("DEBUG: event payload to send",a),Promise.resolve()):r.post("api/activities/",[a],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(o=>{console.error(`unable to log action=${e}, category=${Cp}`,o)})},VO={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},Tp=(e,t,r,n,a)=>{const o=VO[`${e}`];return o.internal&&Vg(e,t,r,a),o.external&&n&&n(ee({action:e},t)),Promise.resolve()},Ed=()=>{const{tracking:e,app:t}=bt(),r=Q.useCallback((a,o={},s=!1)=>t?Tp(a,o,t.httpClient,e.onTrackingEvent,s):Promise.resolve(),[e,t]),n=Q.useCallback((a,o=!1)=>{if(!t)return Promise.resolve();const{packageName:s,packageVersion:u,component:c,error:d}=a;let h="";return typeof d=="string"?h=d:d instanceof Error&&(h=d.message||d.toString()),Tp("sdkError",{packageName:s,packageVersion:u,component:c,error:h},t.httpClient,e.onTrackingEvent,o)},[e,t]);return{trackEvent:r,trackError:n}},UO="sdkComponentInit",Ug=Q.createContext(!1),qO=({skipNested:e=!0,children:t})=>V.jsx(Ug.Provider,{value:e,children:t}),GO=(e,t)=>{const{tracking:r}=bt(),{trackEvent:n}=Ed(),a=Q.useContext(Ug),o=Q.useRef(!1);Q.useEffect(()=>{if(!r)return;if(!o.current&&!a){const u={packageName:r.packageName,packageVersion:"1.19.0",componentName:e,attributesUsed:Object.entries(t).filter(([,c])=>!!c).map(([c])=>c).join(", ")};n(UO,u,!r.enabled).finally(()=>o.current=!0)}},[e,t,r,a,n])};var YO="[object Boolean]";function qg(e){return e===!0||e===!1||O.isObjectLike(e)&&O.baseGetTag(e)==YO}class Gg extends Q.Component{constructor(r){super(r);Tt(this,"componentName");Tt(this,"context");Tt(this,"handler");Tt(this,"httpClient");Tt(this,"postponedErrors",[]);this.handler=r.handler,this.componentName=r.componentName}componentDidMount(){var r;this.context.isInitialized&&(this.httpClient=(r=this.context.app)==null?void 0:r.httpClient)}componentDidCatch(r){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(r):this.postponedErrors.push(r)),r}sendErrorTracking(r){try{this.handler({packageName:"sdk-ui",packageVersion:"1.19.0",component:this.componentName,error:r})}catch(n){console.log("Failed to send tracking error event: ",n)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(r=>this.sendErrorTracking(r)),this.postponedErrors=[],this.props.children}}Tt(Gg,"contextType",Sd);const XO=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return a=>function(s){const{trackError:u}=Ed();return qg(r)&&r||O.isFunction(r)&&r(s)?V.jsx(a,ee({},s)):(GO(e,s),V.jsx(qO,{skipNested:!n,children:V.jsx(Gg,{componentName:e,handler:u,children:V.jsx(a,ee({},s))})}))}},ZO="_container_1wquj_1",KO="_card_1wquj_11",QO="_text_1wquj_19",su={container:ZO,card:KO,text:QO};function Yg({color:e="#FFCB05"}){return V.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:V.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:V.jsxs("g",{children:[V.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),V.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Md=Q.createContext({themeSettings:Bs()}),kt=()=>Q.useContext(Md),Xg=({error:e=new O.TranslatableError("errors.componentRenderError")})=>{var p,g,_,y,w,E;const{themeSettings:t}=kt(),{app:r}=bt(),{t:n}=O.useTranslation(),[a,o]=Q.useState(!1),s=()=>{o(!0)},u=()=>{o(!1)},c=V.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:V.jsx(Yg,{color:(p=t==null?void 0:t.general)==null?void 0:p.brandColor})}),d=e instanceof O.AbstractTranslatableError?n(e.key,ee({},e.interpolationOptions)):n(e instanceof Error?e.message:e),h=n("errorBoxText",{errorMessage:d,interpolation:{escapeValue:!1}}),m=(_=(g=r==null?void 0:r.settings)==null?void 0:g.errorBoundaryConfig)==null?void 0:_.alwaysShowErrorText;return V.jsx("div",{onMouseEnter:m?void 0:s,onMouseLeave:m?void 0:u,className:su.container,"aria-label":"error-box",children:V.jsxs("div",{className:su.card,style:{backgroundColor:((y=t==null?void 0:t.general)==null?void 0:y.backgroundColor)||"rgba(255,255,255,0.5)"},children:[c,(m||a)&&V.jsx("div",{className:su.text,style:{color:((w=t==null?void 0:t.typography)==null?void 0:w.primaryTextColor)||"#5b6372",fontFamily:((E=t==null?void 0:t.typography)==null?void 0:E.fontFamily)||"inherit"},children:h})]})})};class Zg extends Q.Component{constructor(r){var n;super(r);Tt(this,"showErrorBox",!0);Tt(this,"context");this.showErrorBox=(n=r.showErrorBox)!=null?n:!0,this.state={error:null}}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r){this.setState({error:r})}componentDidUpdate(r,n){n.error!==null&&JO(r.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const r=this.state.error||this.props.error;return r&&this.showErrorBox?V.jsx(Xg,{error:r}):this.props.children}}function JO(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const ek=()=>e=>function(r){return V.jsx(Zg,{resetKeys:Object.values(r),children:V.jsx(e,ee({},r))})},Kg=({color:e})=>{const t={backgroundColor:e||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},r=ue(ee({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=ue(ee({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),a=ue(ee({},t),{marginRight:"unset"}),o={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return V.jsxs("div",{children:[V.jsx("style",{children:`
16
+ @keyframes loading-dots-animation {
17
+ ${Object.entries(o).map(([s,u])=>`${s} { ${Object.entries(u).map(([c,d])=>`${c}: ${d};`).join("")} }`).join("")}
18
+ }
19
+ `}),V.jsx("div",{style:r}),V.jsx("div",{style:n}),V.jsx("div",{style:a})]})},Hs=({themeSettings:e,onCancel:t})=>{const r=e!=null&&e.chart.backgroundColor?{backgroundColor:e.chart.backgroundColor}:void 0;return V.jsx("div",{style:r,className:"csdk-h-full csdk-bg-white csdk-p-[20px]","aria-label":"csdk-loading-indicator",children:V.jsxs("div",{style:r,className:"csdk-h-full csdk-bg-background-priority csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center",children:[V.jsx(Kg,{color:e==null?void 0:e.chart.textColor}),t&&V.jsx("div",{className:"csdk-text-ai-sm csdk-text-text-link csdk-cursor-pointer",onClick:t,children:"Cancel"})]})})},tk=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(a){if(rk(e,a))return V.jsx(r,ee({},a));const{app:o,isInitialized:s}=bt();if(!s){const u=t||"errors.noSisenseContext";throw new O.TranslatableError(u)}return o?V.jsx(r,ee({},a)):V.jsx(Hs,{})};function rk(e,t){return qg(e)&&e||O.isFunction(e)&&e(t)}function nk(){const[e,t]=Q.useState(null);return Q.useEffect(()=>{O.initializeI18n().initPromise.then(r=>t(r))},[]),e}const Qg=({children:e,userLanguage:t})=>{const r=nk();return Q.useEffect(()=>{t&&(r==null?void 0:r.language)!==t&&(r==null||r.changeLanguage(t))},[r,t]),r&&V.jsx(p1,{i18n:r,children:e})},ik=()=>e=>function(r){const{isInitialized:n}=bt();return n?V.jsx(e,ee({},r)):V.jsx(Qg,{children:V.jsx(e,ee({},r))})},ak=e=>t=>(t.displayName=e,t),Kn=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:a}=e;return o=>Hg(ak(t),tk({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:a}),XO({componentName:t,config:n}),ek(),ik())(o)},ok=(e,t)=>{const r=ue(ee({},e),{x:e.breakBy,breakBy:[]});let n=O.cartesianData(r,t);if(e.breakBy.some(o=>O.isNumber(o.type)&&(o==null?void 0:o.numberFormatConfig))){const o=n.xValues.map(s=>{const u=[];return e.breakBy.forEach((c,d)=>{const h=O.getCompleteNumberFormatConfig(c==null?void 0:c.numberFormatConfig),m=s.xValues[d];O.isNumber(c.type)?u.push(O.applyFormatPlainText(h,parseFloat(m))):u.push(s.xValues[d])}),ue(ee({},s),{xValues:u})});n=ue(ee({},n),{xValues:o})}return ue(ee({},n),{type:"categorical"})},Yo=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=O.getColumnByName(e,t[0].name);return r?[O.getValue(e.rows[0],r),t[0].name]:[void 0,void 0]},sk=(e,t)=>{const r={type:"indicator"};if(!e.value||t.rows.length===0)return r;const[n]=Yo(t,e.value);if(n===void 0)return r;const[a]=Yo(t,e.secondary),[o]=Yo(t,e.min),[s]=Yo(t,e.max);return{type:"indicator",value:n,secondary:a,min:o,max:s}},lk=(e,t)=>{const r=e.category&&O.getColumnByName(t,e.category.name);r&&(r.direction=O.sortDirection(e.category.sortType));const n=O.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?O.rownumColumnName:void 0),a=O.getIndexedRows(t.rows,r?[r]:[]),o=O.getColumnByName(t,e.boxMin.name),s=O.getColumnByName(t,e.boxMedian.name),u=O.getColumnByName(t,e.boxMax.name),c=O.getColumnByName(t,e.whiskerMin.name),d=O.getColumnByName(t,e.whiskerMax.name),h=e.outliers&&O.getColumnByName(t,e.outliers.name),m=[],p=[];n.forEach((_,y)=>{const w=a[_.key],E=w?w[0]:[],S=r&&!!O.isBlurred(E,r);m.push({q1:o?O.getValue(E,o):0,median:s?O.getValue(E,s):0,q3:u?O.getValue(E,u):0,low:c?O.getValue(E,c):0,high:d?O.getValue(E,d):0,blur:S});const T=h?E[h.index].rawValue.split(",").map(C=>parseFloat(C)):[];p.push(...T.map(C=>({x:y,y:C,blur:S})))});const g=[{name:e.valueTitle,title:e.valueTitle,data:m}];return p.length>0&&g.push({name:e.valueTitle,title:e.valueTitle,data:p}),{type:"boxplot",xValues:n,series:g}},uk=(e,t)=>{let r={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const s=parseFloat(`${e.minvalue}`),u=parseFloat(`${e.midvalue}`),c=parseFloat(`${e.maxvalue}`);r=ee(ee(ee(ee({},r),s&&{minValue:s}),u&&{midValue:u}),c&&{maxValue:c})}const n=O.getPaletteColor(t,0),a=O.scaleBrightness(n,.2),o=O.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return ue(ee({},r),{minColor:O.toGray(n),maxColor:o});case"both":return ue(ee({},r),{minColor:e.min||a,maxColor:e.max||o});case"min":return ue(ee({},r),{minColor:e.min||a,maxColor:O.DEFAULT_COLOR});case"max":return ue(ee({},r),{minColor:O.DEFAULT_COLOR,maxColor:e.max||o})}},Jg=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return{type:"uniform",color:e.color||O.getPaletteColor(t,e.colorIndex||0)};case"range":return uk(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(r=>typeof r.expression=="string"),defaultColor:O.getPaletteColor(t,0)};default:return O.getUniformColorOptionsFromString(O.getPaletteColor(t,0))}},ey=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),ck=e=>e.reduce((t,r)=>{var n,a;return(n=r.format)!=null&&n.members&&(t[O.normalizeName(r.jaql.title)]=ey((a=r.format)==null?void 0:a.members)),t},{}),dk=O.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>ue(ee({},e),{color:t})}),fk=Jg({type:"range",steps:5,rangeMode:"auto"}),hk=(e,t)=>{var s,u,c;const r=O.getColumnByName(t,e.geo.name),n=O.getColumnByName(t,(u=(s=e.color)==null?void 0:s.name)!=null?u:e.geo.name);if(!r||!n)throw new Error("Missing required column");const a=t.rows.map(d=>{var g;const h=O.getValue(d,n),m=O.getCompleteNumberFormatConfig((g=e.color)==null?void 0:g.numberFormatConfig),p=O.applyFormatPlainText(m,h);return{geoName:O.getValue(d,r),originalValue:h,formattedOriginalValue:p}});let o;return e.color&&(o=dk(a,((c=e.color)==null?void 0:c.color)||fk)),{type:"areamap",geoData:o||a}};function pk(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o}function ty(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:pk(e,t,r)}function mk(e,t,r,n){for(var a=e.length,o=r+-1;++o<a;)if(t(e[o],o,e))return o;return-1}function vk(e){return e!==e}function gk(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}function Pd(e,t,r){return t===t?gk(e,t,r):mk(e,vk,r)}function yk(e,t){for(var r=e.length;r--&&Pd(t,e[r],0)>-1;);return r}function bk(e,t){for(var r=-1,n=e.length;++r<n&&Pd(t,e[r],0)>-1;);return r}function _k(e){return e.split("")}var wk="\\ud800-\\udfff",xk="\\u0300-\\u036f",Ck="\\ufe20-\\ufe2f",Tk="\\u20d0-\\u20ff",Sk=xk+Ck+Tk,Ek="\\ufe0e\\ufe0f",Mk="\\u200d",Pk=RegExp("["+Mk+wk+Sk+Ek+"]");function ry(e){return Pk.test(e)}var ny="\\ud800-\\udfff",Rk="\\u0300-\\u036f",Ok="\\ufe20-\\ufe2f",kk="\\u20d0-\\u20ff",Nk=Rk+Ok+kk,Dk="\\ufe0e\\ufe0f",Ak="["+ny+"]",_c="["+Nk+"]",wc="\\ud83c[\\udffb-\\udfff]",Lk="(?:"+_c+"|"+wc+")",iy="[^"+ny+"]",ay="(?:\\ud83c[\\udde6-\\uddff]){2}",oy="[\\ud800-\\udbff][\\udc00-\\udfff]",Ik="\\u200d",sy=Lk+"?",ly="["+Dk+"]?",$k="(?:"+Ik+"(?:"+[iy,ay,oy].join("|")+")"+ly+sy+")*",zk=ly+sy+$k,Fk="(?:"+[iy+_c+"?",_c,ay,oy,Ak].join("|")+")",Wk=RegExp(wc+"(?="+wc+")|"+Fk+zk,"g");function jk(e){return e.match(Wk)||[]}function xc(e){return ry(e)?jk(e):_k(e)}function Bk(e,t,r){if(e=O.toString(e),e&&(r||t===void 0))return O.baseTrim(e);if(!e||!(t=O.baseToString(t)))return e;var n=xc(e),a=xc(t),o=bk(n,a),s=yk(n,a)+1;return ty(n,o,s).join("")}function Ve(e,t){return ee(ee({id:e,dataOption:O.translateCategoryOrValueToColumn(t)},O.MetadataTypes.isAttribute(t)&&{attribute:O.translateCategoryToAttribute(t)}),O.MetadataTypes.isMeasure(t)&&{measure:O.translateValueToMeasure(t)})}const Vs=e=>{var t,r,n,a,o,s,u,c;return{value:(t=e.custom)==null?void 0:t.rawValue,categoryValue:(n=(r=e.custom)==null?void 0:r.xValue)==null?void 0:n[0],seriesValue:(u=(s=(o=(a=e.series)==null?void 0:a.options)==null?void 0:o.custom)==null?void 0:s.rawValue)==null?void 0:u[0],categoryDisplayValue:(c=e.name)!=null?c:e.category}},Hk=(e,t)=>{const r=t.x.map((u,c)=>{var d,h;return ue(ee({},Ve(`category.${c}`,u)),{value:(h=(d=e.custom)==null?void 0:d.xValue)==null?void 0:h[c]})}),n=t.y.length>=2,a=t.y.filter((u,c)=>!n||e.series.index===c).flatMap(u=>{var c;return ue(ee({},Ve(`value.${e.series.index}`,u)),{value:(c=e.custom)==null?void 0:c.rawValue})}),o=t.breakBy.map((u,c)=>{var d,h,m;return ue(ee({},Ve(`breakBy.${c}`,u)),{value:(m=(h=(d=e.series)==null?void 0:d.options.custom)==null?void 0:h.rawValue)==null?void 0:m[0]})}),s={category:r,value:a,breakBy:o};return ue(ee({},Vs(e)),{entries:s})},Vk=(e,t)=>{const r=t.x.map((u,c)=>{var d,h;return ue(ee({},Ve(`category.${c}`,u)),{value:(h=(d=e.custom)==null?void 0:d.xValue)==null?void 0:h[c]})}),n=t.rangeValues.length>=2,a=t.rangeValues.filter((u,c)=>!n||e.series.index===c).flatMap(u=>u.map((c,d)=>{var g,_;const h=d===0,m=`value.${e.series.index}.${h?"lowerBound":"upperBound"}`,p=h?(g=e.options)==null?void 0:g.low:(_=e.options)==null?void 0:_.high;return ue(ee({},Ve(m,c)),{value:p})})),o=t.breakBy.map((u,c)=>{var d,h,m;return ue(ee({},Ve(`breakBy.${c}`,u)),{value:(m=(h=(d=e.series)==null?void 0:d.options.custom)==null?void 0:h.rawValue)==null?void 0:m[0]})}),s={category:r,value:a,breakBy:o};return ue(ee({},Vs(e)),{entries:s})},Uk=(e,t)=>{var n,a,o,s;const r={};return t.x&&(r.x=ue(ee({},Ve("x",t.x)),{value:e.custom.maskedX})),t.y&&(r.y=ue(ee({},Ve("y",t.y)),{value:e.custom.maskedY})),t.breakByPoint&&(r.breakByPoint=ue(ee({},Ve("breakByPoint",t.breakByPoint)),{value:(n=e.custom)==null?void 0:n.maskedBreakByPoint})),t.breakByColor&&(r.breakByColor=ue(ee({},Ve("breakByColor",t.breakByColor)),{value:(a=e.custom)==null?void 0:a.maskedBreakByColor})),t.size&&(r.size=ue(ee({},Ve("size",t.size)),{value:e.custom.maskedSize})),{x:e.x,y:e.y,size:e.z,breakByPoint:(o=e.custom)==null?void 0:o.maskedBreakByPoint,breakByColor:(s=e.custom)==null?void 0:s.maskedBreakByColor,entries:r}},qk=(e,t)=>{const r=t.breakBy.map((o,s)=>{var u,c;return ue(ee({},Ve(`category.${s}`,o)),{value:(c=(u=e.custom)==null?void 0:u.xValue)==null?void 0:c[s]})}),n=t.y.map((o,s)=>{var u;return ue(ee({},Ve(`value.${s}`,o)),{value:(u=e.custom)==null?void 0:u.rawValue})}),a={category:r,value:n};return{value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name,entries:a}},Gk=(e,t)=>{const r=t.breakBy.map((s,u)=>{var c,d;return ue(ee({},Ve(`category.${u}`,s)),{value:(d=(c=e.custom)==null?void 0:c.xValue)==null?void 0:d[u]})}),n=t.y.length>=2,a=t.y.filter((s,u)=>!n||e.series.index===u).map((s,u)=>{var c;return ue(ee({},Ve(`value.${u}`,s)),{value:(c=e.custom)==null?void 0:c.rawValue})}),o={category:r,value:a};return ue(ee({},Vs(e)),{entries:o})},Yk=(e,t)=>{const r=e.options.custom.level,n=r!==e.options.custom.levelsCount,a=t.breakBy.slice(0,r).map((c,d)=>{var h,m,p,g;return ue(ee({},Ve(`category.${d}`,c)),{value:n?(m=(h=e.custom)==null?void 0:h.rawValues)==null?void 0:m[d]:(g=(p=e.custom)==null?void 0:p.xValue)==null?void 0:g[d]})}),o=t.y.length>=2,s=t.y.filter((c,d)=>!o||e.series.index===d).map((c,d)=>{var m;const h=n?e.value:(m=e.custom)==null?void 0:m.rawValue;return ue(ee({},Ve(`value.${d}`,c)),{value:h})}),u={category:a,value:s};return ue(ee({},Vs(e)),{entries:u})},Xk=(e,t)=>{var a;const r=e.series.type==="scatter",n={};return r?n.value=[ue(ee({},Ve("value.0.outlier",t.outliers)),{value:e.options.y})]:n.value=[ue(ee({},Ve("value.0.boxMin",t.boxMin)),{value:e.options.q1}),ue(ee({},Ve("value.0.boxMedian",t.boxMedian)),{value:e.options.median}),ue(ee({},Ve("value.0.boxMax",t.boxMax)),{value:e.options.q3}),ue(ee({},Ve("value.0.whiskerMin",t.whiskerMin)),{value:e.options.low}),ue(ee({},Ve("value.0.whiskerMax",t.whiskerMax)),{value:e.options.high})],t.category&&(n.category=[ue(ee({},Ve("category.0",t.category)),{value:(a=e.custom.xValue)==null?void 0:a[0]})]),{boxMin:e.options.q1,boxMedian:e.options.median,boxMax:e.options.q3,whiskerMin:e.options.low,whiskerMax:e.options.high,outlier:e.options.y,categoryValue:e.category,categoryDisplayValue:e.category,entries:n}};function lu(e,t){switch(e.series.chart.options.chart.type){case"bubble":case"scatter":return Uk(e,t);case"funnel":return qk(e,t);case"pie":return Gk(e,t);case"treemap":case"sunburst":return Yk(e,t);case"boxplot":return Xk(e,t);case"arearange":return Vk(e,t);default:return Hk(e,t)}}const uy=",";function Zk(e){return e.join(`${uy} `)}function Kk(e){return e.split(uy).map(Bk)}function Qk(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function Jk(e,t){const{name:r,rawName:n,coordinates:a,value:o,colorValue:s,details:u}=e,d={geo:t.locations.map((h,m)=>ue(ee({},Ve(`geo.${m}`,h)),{value:n[m]}))};if(t.size&&(d.size=ue(ee({},Ve("size",t.size)),{value:o})),t.colorBy&&(d.colorBy=ue(ee({},Ve("colorBy",t.colorBy)),{value:s})),t.details){const h=Ve("details",t.details);h.measure&&(d.details=ue(ee({},h),{value:u}))}return{categories:n,displayName:r,coordinates:{lat:a.lat,lng:a.lng},value:o,entries:d}}const eN="N\\A",tN=1,rN=(e,t)=>{const r=nN(e),n=e.locations&&O.getColumnsByName(t,e.locations.map(({name:c})=>c)),a=e.size&&O.getColumnByName(t,e.size.name),o=e.colorBy&&O.getColumnByName(t,e.colorBy.name),s=e.details&&O.getColumnByName(t,e.details.name);return{type:"scattermap",locations:t.rows.filter(c=>n.some(d=>O.getValue(c,d)!==eN)).map(c=>{const d=n.map(g=>O.getValue(c,g)),h=Zk(d);let m;r&&(m={lat:O.getValue(c,n[0]),lng:O.getValue(c,n[1])});const p=n[0]&&!!O.isBlurred(c,n[0]);return ee(ue(ee(ee({name:h,rawName:d,value:a?O.getValue(c,a):tN},o&&{colorValue:O.getValue(c,o)}),s&&{details:O.getValue(c,s)}),{blur:p}),m?{coordinates:m}:null)})}};function nN(e){return e.locations.length===2&&e.locations.filter(t=>O.isNumber(t.type)).length===2}const iN=(e,t,r)=>{if(O.isCartesian(e))return O.isForecastChart(t)?O.advancedAnalyticsData(t,r):O.cartesianData(t,r);if(O.isCategorical(e))return ok(t,r);if(O.isScatter(e))return O.scatterData(t,r);if(O.isScattermap(e))return rN(t,r);if(O.isIndicator(e))return sk(t,r);if(O.isBoxplot(e))return lk(t,r);if(O.isAreamap(e))return hk(t,r);if(O.isRange(e))return O.rangeData(t,r);throw new Error(`Unexpected chart type: ${e}`)};function Us(e,t){return O.setToString(O.overRest(e,t,O.identity),e+"")}function aN(e,t){var r=e==null?0:e.length;return!!r&&Pd(e,t,0)>-1}var oN=1/0,sN=O.Set&&1/O.setToArray(new O.Set([,-0]))[1]==oN?function(e){return new O.Set(e)}:jg,lN=200;function Rd(e,t,r){var n=-1,a=aN,o=e.length,s=!0,u=[],c=u;if(o>=lN){var d=t?null:sN(e);if(d)return O.setToArray(d);s=!1,a=O.cacheHas,c=new O.SetCache}else c=t?[]:u;e:for(;++n<o;){var h=e[n],m=t?t(h):h;if(h=h!==0?h:0,s&&m===m){for(var p=c.length;p--;)if(c[p]===m)continue e;t&&c.push(m),u.push(h)}else a(c,m,r)||(c!==u&&c.push(m),u.push(h))}return u}function cy(e){return O.isObjectLike(e)&&O.isArrayLike(e)}var uN=Us(function(e){return Rd(O.baseFlatten(e,1,cy,!0))});const dy=(e,t,r,n={})=>{if(O.emptyTable(e))return{rows:[],columns:[]};const a=uN(O.getColumnsByName(e,t.map(h=>h.name))),o=e,u=[...r.map(h=>{var m,p;return{column:(m=n[h.name])!=null?m:h.name,title:h.name,agg:(p=h.aggregation)!=null?p:"sum"}}),{column:O.rownumColumnName,title:O.rownumColumnName,agg:"min"}],c=O.groupBy(o,a,u),d=O.getColumnByName(c,O.rownumColumnName);if(!d)throw new Error("Unexpected data has no row num column");return O.orderBy(c,[d])};class ao{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,a){t.font=a;let o=this.getStringWidth(t,r);const s="…",u=this.getStringWidth(t,s);if(o<=n)return{string:r,width:o};if(u>=n)return{string:s,width:u};do r=r.slice(0,r.length-1),o=this.getStringWidth(t,r);while(o+u>n);return{string:r+s,width:o+u}}getStringWidth(t,r){return Math.ceil(t.measureText(r).width)}floor(t,r){r=typeof r=="number"?r:0;const n=Math.pow(10,r);return Math.round(t*n)/n}setCanvasSizes(t,r,n,a){const o=window.devicePixelRatio||1;t.width=n*o,t.height=a*o,t.style.width=n+"px",t.style.height=a+"px",r.scale(o,o)}}const Ci=new ao,Wn=function(e,t){return Ci.floor(e*t.value,t.decimals)};function cN(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function dN(e,t,r){const{showTitle:n,showSecondary:a,skin:o,maxHeight:s,maxWidth:u,borderWidth:c}=r;for(let d=0;d<t.length;d++){const h=t[d],m=h.value,p=Wn(m,e.valueSectionMarginBottom),_=Wn(m,e.indicatorVerticalMargin)*2;let y=m+p+_;if(n&&o==="vertical"){const w=Wn(m,e.titleSectionHeight);y+=w}if(a){const w=Wn(m,e.secSectionHeight),E=Wn(m,e.secSectionMarginTop);y+=w+E+(c||0)}if(y<=s){const w=Wn(m,e.numericMinWidth),S=Wn(m,e.indicatorHorizontalMargin)*2;if(w+S<=u)return ue(ee({},h),{maxWidth:u-S,maxHeight:s-_})}}return null}class fN{getBaseMeasure(t,r,n){const a=r,o="sizes"in a?a.sizes:[],s=a.relativeSizes,u=a.measureKeys.concat(),c=Math.floor(n.clientWidth),d=Math.floor(n.clientHeight),h=cN(u,s);return dN(h,o,{maxWidth:c,maxHeight:d,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in a?a.borderWidth:0})}render(t,r,n,a){const o=t.getContext("2d");let s;n.height=a.value,n.maxWidth=a.maxWidth,n.maxHeight=a.maxHeight,s=n.height,n.fitValueMeasure=this.getFitValueMeasure(o,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(o,r,n),s+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(o,r,n),s+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const u=this.getCanvasWidth(r,n);n.width=u,n.height=s,Ci.setCanvasSizes(t,o,u,s),this.draw(o,r,n)}getFitTitleMeasure(t,r,n){const a=r.skin==="horizontal",o=n.maxWidth-(a?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(a&&o+n.titleSectionMinWidth<=0)return;const s=Ci.getFitStringMeasure(t,r.title.text,o,n.titleFont);return s.width+=a?n.valueSectionMarginRight:0,s.key="title",s}getFitValueMeasure(t,r,n){const a=Ci.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return a.key="value",a}getFitSecondaryMeasure(t,r,n){const a=n.secDividerWidth,o=n.maxWidth-a,s=o-n.secTitleMinWidth,u=Ci.getFitStringMeasure(t,r.secondary.text,s,n.secondaryValueFont),c=o-u.width,d=Ci.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:d.width+u.width+a,titleString:d.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n;const a=r.fitTitleMeasure,o=r.fitValueMeasure,s=r.fitSecondaryMeasure;if(r.fitMeasures.some(c=>{const d=r[c.key],h=t[c.dataKey];return!!(d&&h&&d[c.prop]!==h.text)}))return r.maxWidth;if(t.skin==="vertical"){let d=a&&a.width>o.width?a:o;d=s&&s.width>d.width?s:d,n=d.width}else n=o.width,a&&(n+=a.width),s&&s.width>n&&(n=s.width);return n}draw(t,r,n){this.clearCanvas(t,n),this.drawValue(t,r,n),r.showTitle&&this.drawTitle(t,r,n),r.showSecondary&&this.drawSecondary(t,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r,n){!n.fitTitleMeasure||r.skin==="horizontal"&&n.fitValueMeasure.string!==r[n.fitValueMeasure.key].text||(t.font=n.titleFont,t.fillStyle=n.titleColor,r.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitTitleMeasure.string,n.width/2,n.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(n.fitTitleMeasure.string,n.fitValueMeasure.width+n.valueSectionMarginRight,n.titleSectionMarginTop)))}drawValue(t,r,n){const a=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=a?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,a?n.width/2:0,(r.showTitle&&a?n.titleSectionHeight:0)+n.valueSectionHeight/2)}drawSecondary(t,r){let n=r.height-r.secSectionHeight/2;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(r.fitSecondaryMeasure.titleString,0,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.fillText(r.fitSecondaryMeasure.valueString,r.width,n),t.strokeStyle=r.borderColor,t.beginPath(),n=r.height-r.secSectionHeight-r.secSectionMarginTop-r.borderWidth,t.moveTo(0,n),t.lineTo(r.width,n),t.stroke()}}const Ti=new ao,Xo=function(e,t){return Ti.floor(e*t.value,t.decimals)};function hN(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function pN(e,t,r){const{showTitle:n,showSecondary:a,maxHeight:o,maxWidth:s,bracketThickness:u}=r;for(let c=0;c<t.length;c++){const d=t[c],h=d.value,m=Xo(h,e.indicatorMargin);let p=h+m;if(n){const g=Xo(h,e.titleSectionHeight);p+=g}if(a){const g=Xo(h,e.secSectionHeight);p+=g}if(p<=o){const g=Xo(h,e.numericMinWidth),_=m*2;if(g+u*2+_<=s)return ue(ee({},d),{maxWidth:s-_,maxHeight:o-m})}}return null}class mN{getBaseMeasure(t,r,n){const a=r,o="sizes"in a?a.sizes:[],s=a.relativeSizes,u=a.measureKeys.concat(),c=Math.floor(n.clientWidth),d=Math.floor(n.clientHeight),h=hN(u,s);return pN(h,o,{maxWidth:c,maxHeight:d,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:a.bracketThickness})}render(t,r,n,a){const o=t.getContext("2d");let s;n.height=a.value,n.maxWidth=a.maxWidth,n.maxHeight=a.maxHeight,n.offsetY=0,s=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(o,r,n),s+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(o,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(o,r,n),s+=n.secSectionHeight);const u=this.getCanvasWidth(r,n);n.width=u,n.height=s,Ti.setCanvasSizes(t,o,u,s),this.draw(o,r,n)}getFitTitleMeasure(t,r,n){const a=n.bracketWidth*2+n.titleHorizontalMargin*2,o=n.maxWidth-a,s=Ti.getFitStringMeasure(t,r.title.text,o,n.titleFont);return s.width+=a,s.key="title",s}getFitValueMeasure(t,r,n){const a=n.bracketThickness*2,o=n.maxWidth-a,s=Ti.getFitStringMeasure(t,r.value.text,o,n.valueFont);return s.width+=a,s.key="value",s}getFitSecondaryMeasure(t,r,n){const a=n.bracketWidth*2+n.secDividerWidth,o=n.maxWidth-a,s=o-n.secTitleMinWidth,u=Ti.getFitStringMeasure(t,r.secondary.text,s,n.secondaryValueFont),c=o-u.width,d=Ti.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:d.width+u.width+a,titleString:d.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const a=r.fitTitleMeasure,o=r.fitValueMeasure;let u=a&&a.width>o.width?a:o;const c=r.fitSecondaryMeasure,d=c&&c.width>u.width;let h;return u=d?c:u,d?h=u.titleString!==t.secondaryTitle.text||u.valueString!==t.secondary.text:h=u.string!==t[u.key].text,h?n=r.maxWidth:u.width>n&&(n=u.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),(r.showTitle||r.showSecondary)&&this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2),r.offsetY+=r.titleSectionHeight}drawValue(t,r,n){const a=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,a,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,a+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){t.strokeStyle=n.bracketColor,t.beginPath(),r.showTitle?(t.moveTo(n.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),r.showTitle?(t.moveTo(n.width-(n.bracketWidth+.5),.5),t.lineTo(n.width-.5,.5)):t.moveTo(n.width-.5,.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}}const et=new ao,pi=function(e,t){return et.floor(e*t.value,t.decimals)};function vN(e,t){const r={};return e.forEach(n=>{t.some(function(a){return a.key===n?(r[n]=a,!0):!1})}),r}function gN(e,t,r){const{maxWidth:n,maxHeight:a,showTitle:o,showSecondary:s}=r;for(let u=0;u<t.length;u++){const c=t[u],d=c.value,h=pi(d,e.valueSectionHeight),m=pi(d,e.indicatorMargin),p=Math.ceil(m*1.5);let g=d+h+p;if(o){const _=pi(d,e.titleSectionHeight);g+=_}if(s){const _=pi(d,e.secSectionHeight);g+=_}if(g<=a){const _=pi(d,e.gaugeWidth),y=pi(d,e.bracketWidth),w=m*2;if(_+y*2+w<=n)return ue(ee({},c),{maxWidth:n-w,maxHeight:a-p})}}return null}class yN{getBaseMeasure(t,r,n){const a=r,o="gaugeHeights"in a?a.gaugeHeights:void 0;if(!o)return null;const s=a.relativeSizes,u=a.measureKeys.concat(),c=Math.floor(n.clientWidth),d=Math.floor(n.clientHeight),h=vN(u,s);return gN(h,o,{maxWidth:c,maxHeight:d,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,a){const o=t.getContext("2d");let s=0,u;n.gaugeHeight=a.value,n.size=a.size,n.maxWidth=a.maxWidth,n.maxHeight=a.maxHeight,n.offsetY=0,u=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(o,r,n),u+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(o,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(o,r,n),u+=n.secSectionHeight),s=this.getCanvasWidth(r,n),n.width=s,n.height=u,et.setCanvasSizes(t,o,s,u),this.draw(o,r,n)}getFitTitleMeasure(t,r,n){const a=n.bracketWidth*2+n.titleHorizontalMargin*2,o=n.maxWidth-a,s=et.getFitStringMeasure(t,r.title.text,o,n.titleFont);return s.width+=a,s.key="title",s}getFitValueMeasure(t,r,n){const a=n.bracketThickness*2,o=n.maxWidth-a,s=et.getFitStringMeasure(t,r.value.text,o,n.valueFont);return s.width+=a,s.key="value",s}getFitSecondaryMeasure(t,r,n){const a=n.bracketWidth*2+n.secDividerWidth,o=n.maxWidth-a,s=o-n.secTitleMinWidth,u=et.getFitStringMeasure(t,r.secondary.text,s,n.secondaryValueFont),c=o-u.width,d=et.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:d.width+u.width+a,titleString:d.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const a=r.fitTitleMeasure,o=r.fitValueMeasure;let u=a&&a.width>o.width?a:o;const c=r.fitSecondaryMeasure,d=c&&c.width>u.width;let h;return u=d?c:u,d?h=u.titleString!==t.secondaryTitle.text||u.valueString!==t.secondary.text:h=u.string!==t[u.key].text,h?n=r.maxWidth:u.width>n&&(n=u.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawGauge(t,r,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,(r.titleSectionHeight-r.titleBottomMargin)/2),r.offsetY+=r.titleSectionHeight}drawGauge(t,r,n){n.gaugeCenterX=n.width/2,n.gaugeCenterY=n.offsetY+n.gaugeHeight-n.gaugeBottomMargin,n.needleAngle=this.getNeedleAngle(r,n),r.skin===2&&r.conditions&&r.conditions.length?this.drawConditionalDial(t,r,n):this.drawSimpleDial(t,r,n),r.showTicks&&n.size!=="micro"&&this.drawTicks(t,r,n),this.drawNeedle(t,n),r.showLabels&&n.size!=="micro"&&this.drawLabels(t,r,n),n.offsetY+=n.gaugeHeight}drawValue(t,r,n){t.fillStyle=n.valueColor,t.fillRect(1,n.offsetY,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,n.offsetY+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){const a=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,a+.5),t.lineTo(.5,a+.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),t.moveTo(n.width-(n.bracketWidth+.5),a+.5),t.lineTo(n.width-.5,a+.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,r){const n=+t.min.data,a=+t.max.data,o=+(t.value.data||0);return o<n?r.startAngle-r.overDegrees:o>a?r.endAngle+r.overDegrees:this.getAngle(r,o,n,a)}getAngle(t,r,n,a){const o=(t.endAngle-t.startAngle)/(a-n);return(r-n)*o+t.startAngle}drawConditionalDial(t,r,n){const a=r.conditions,o=+r.min.data,s=+r.max.data,u=et.degToRad(n.startAngle+180),c=et.degToRad(n.endAngle+180);let d;const h=m=>this.getAngle(n,m,o,s);for(this.drawArc(t,n,u,c,n.defaultDialColor),d=a.length-1;d>=0;d--){const m=a[d];let p=+m.data,g,_=NaN,y=NaN,w=NaN,E=NaN;const S=.25;switch(m.operator){case"<":if(p<=o)break;p=p>s?s:p,g=h(p),_=u,y=et.degToRad(g+180);break;case">":if(p>=s)break;p=p<o?o:p,g=h(p),_=et.degToRad(g+180),y=c;break;case"≤":if(p<o)break;p=p>s?s:p,g=h(p),_=u,y=et.degToRad(g+(g+S<=n.endAngle?S:0)+180);break;case"≥":if(p>s)break;p=p<o?o:p,g=h(p),_=et.degToRad(g-(g-S>=n.startAngle?S:0)+180),y=c;break;case"=":if(p<o||p>s)break;g=h(p),_=et.degToRad(g-(g-S>=n.startAngle?S:0)+180),y=et.degToRad(g+(g+S<=n.endAngle?S:0)+180);break;case"≠":if(p<o||p>s)_=u,y=c;else if(p===o||p===s){const T=p===o;_=et.degToRad(n.startAngle+(T?S:0)+180),y=et.degToRad(n.endAngle-(T?0:S)+180)}else g=h(p),_=u,y=et.degToRad(g-(g-S>=n.startAngle?S:0)+180),w=et.degToRad(g+(g+S<=n.endAngle?S:0)+180),E=c}!isNaN(_)&&!isNaN(y)&&this.drawArc(t,n,_,y,m.color),!isNaN(w)&&!isNaN(E)&&this.drawArc(t,n,w,E,m.color)}}drawSimpleDial(t,r,n){const a=et.degToRad(n.startAngle+180),o=et.degToRad(n.needleAngle+180),s=et.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,a,o,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,o,s,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,a,s,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,a,o){t.fillStyle=o,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,a),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,a,n,!0),t.fill()}drawTicks(t,r,n){const a=n.startAngle,o=n.endAngle,s=n.tickDegreesIncrement,u=n.needleAngle;let c;for(c=a;c<=o;c+=s){const d=et.degToRad(c),h=n.gaugeCenterX-n.lengthToTick*Math.cos(d),m=n.gaugeCenterY-n.lengthToTick*Math.sin(d),p=u<a,g=u>=c-s/2&&u<c+s/2,_=c===o&&u>=c;t.fillStyle=!p&&g||_?r.color:n.tickColor,t.beginPath(),t.arc(h,m,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=et.degToRad(r.needleAngle);t.fillStyle=r.needleColor,t.save(),t.translate(r.gaugeCenterX,r.gaugeCenterY),t.rotate(n),t.translate(-r.gaugeCenterX,-r.gaugeCenterY),t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.needleBaseRadius,.5*Math.PI,1.5*Math.PI,!0),t.lineTo(r.gaugeCenterX-r.needleLength,r.gaugeCenterY),t.fill(),t.restore()}drawLabels(t,r,n){t.font=n.labelFont,t.fillStyle=n.labelColor,t.textAlign="right",t.textBaseline="middle",t.fillText(r.min.text,n.gaugeCenterX-n.labelMargin,n.gaugeCenterY),t.textAlign="left",t.fillText(r.max.text,n.gaugeCenterX+n.labelMargin,n.gaugeCenterY)}}const Or=new ao;class bN{render(t,r,n,a){const o=t.getContext("2d"),s=Math.floor(a.clientWidth)-n.horizontalMargin*2,u=n.sectionMinWidth;let c=0,d=0,h=0,m=0,p=0,g=0,_=0,y=0,w;if(o.font=n.valueFont,w=Or.getStringWidth(o,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(o.font=n.titleFont,g=Or.getStringWidth(o,r.value.text),p=Or.getStringWidth(o,r.title.text),d=p<u?p:u,w+=d+n.textPadding),r.showSecondary&&(o.font=n.secondaryValueFont,y=Or.getStringWidth(o,r.secondary.text),m=y<u?y:u,w+=m,o.font=n.secondaryTitleFont||"",_=Or.getStringWidth(o,r.secondaryTitle.text),h=_<u?_:u,w+=h+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const S=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const C=g+p+_+y+n.textPadding*4+S,x=s-S-C;n.barWidth=Math.max(x,n.barWidth)}const T=n.barWidth+S;w+=T,n.showTickerBar=w<=s||!0,c+=n.showTickerBar?T:0}c+=r.showTitle?n.textPadding:0,c+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const E=s-c-d-h-m;if(n.fitValueMeasure=Or.getFitStringMeasure(o,r.value.text,E,n.valueFont),c+=n.fitValueMeasure.width,r.showSecondary){const S=s-c-d-h;let T;n.fitSecValueMeasure=Or.getFitStringMeasure(o,r.secondary.text,S,n.secondaryValueFont),c+=n.fitSecValueMeasure.width;const C=s-c,x=C/2;r.showTitle?p+_>C?p>x&&_>x?T=x:_>x&&p<=x?T=C-p:T=_:T=_:T=C,n.fitSecTitleMeasure=Or.getFitStringMeasure(o,r.secondaryTitle.text,T,n.secondaryTitleFont),c+=n.fitSecTitleMeasure.width}if(r.showTitle){const S=s-c;n.fitTitleMeasure=Or.getFitStringMeasure(o,r.title.text,S,n.titleFont),c+=n.fitTitleMeasure.width}n.width=c,Or.setCanvasSizes(t,o,c,n.height),this.draw(o,r,n)}draw(t,r,n){this.clearCanvas(t,n),r.type==="gauge"&&n.showTickerBar&&(this.drawTickerBar(t,r,n),this.drawDivider(t,n)),t.textBaseline="middle",r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&(this.drawDivider(t,n),this.drawSecondary(t,n))}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTickerBar(t,r,n){var d;const a=+r.min.data,o=+r.max.data,s=+(((d=r.value)==null?void 0:d.data)||0),u=Math.round((n.height-n.barHeight)/2);let c;if(t.fillStyle=n.valueColor,s<=a)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,u,n.barWidth,n.barHeight),c=0;else if(s>=o)t.fillRect(n.offsetX,u,n.barWidth,n.barHeight),c=n.barWidth-n.tickerBarWidth;else{const h=(s-Math.abs(a))/(o-a),m=n.barWidth*h;t.fillRect(n.offsetX,u,m,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+m,u,n.barWidth-m,n.barHeight),m>n.barWidth-n.tickerBarWidth?c=n.barWidth-n.tickerBarWidth:m<n.tickerBarWidth?c=0:c=m-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+c,Math.round((n.height-n.tickerBarHeight)/2),n.tickerBarWidth,n.tickerBarHeight),n.offsetX+=n.barWidth}drawDivider(t,r){t.fillStyle=r.dividerColor,t.fillRect(r.offsetX+r.horizontalPadding,Math.round((r.height-r.dividerHeight)/2),r.dividerWidth,r.dividerHeight),r.offsetX+=r.horizontalPadding*2+r.dividerWidth}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.fillText(r.fitTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitTitleMeasure.width+r.textPadding}drawValue(t,r,n){t.font=n.valueFont,t.fillStyle=n.valueColor||r.color,t.fillText(n.fitValueMeasure.string,n.offsetX,Math.floor(n.height/2)),n.offsetX+=n.fitValueMeasure.width}drawSecondary(t,r){t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.fillText(r.fitSecTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitSecTitleMeasure.width+r.textPadding,t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.fillText(r.fitSecValueMeasure.string,r.offsetX,Math.floor(r.height/2))}}const Sp={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(0,206,230)",fontSizes:{big:66,medium:46,small:32,micro:23}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(215, 215, 215)",borderWidth:1,relativeSizes:[{key:"titleSectionHeight",value:.5,decimals:0},{key:"titleSectionMarginTop",value:.13,decimals:0},{key:"titleSectionMinWidth",value:.29,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"valueSectionMarginRight",value:.14,decimals:0},{key:"valueSectionMarginBottom",value:.07,decimals:0},{key:"secSectionHeight",value:.34,decimals:0},{key:"secSectionMarginTop",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"indicatorHorizontalMargin",value:.31,decimals:0},{key:"indicatorVerticalMargin",value:.46,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","titleSectionHeight","secSectionHeight","valueSectionMarginBottom","secSectionMarginTop","indicatorHorizontalMargin","indicatorVerticalMargin"],sizes:[{size:"big",value:70},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}],fitMeasures:[{key:"fitTitleMeasure",prop:"string",dataKey:"title"},{key:"fitValueMeasure",prop:"string",dataKey:"value"},{key:"fitSecondaryMeasure",prop:"titleString",dataKey:"secondaryTitle"},{key:"fitSecondaryMeasure",prop:"valueString",dataKey:"secondary"}]},_N={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",bracketColor:"rgb(198, 198, 198)",bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:1,decimals:0},{key:"titleHorizontalMargin",value:.16,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"secSectionHeight",value:1,decimals:0},{key:"secBottomMargin",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"bracketWidth",value:.21,decimals:0},{key:"indicatorMargin",value:.64,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","bracketWidth","titleSectionHeight","secSectionHeight"],sizes:[{size:"big",value:70,maxWidth:1261,maxHeight:665},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}]},wN={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},label:{color:"rgb(68, 81, 102)",fontSizes:{big:18,medium:13,small:9,micro:9}},textKeys:["title","value","secondaryTitle","secondaryValue","label"],backgroundColor:"rgb(255, 255, 255)",tickColor:"rgb(0, 0, 0)",needleColor:"rgb(43, 51, 66)",bracketColor:"rgb(198, 198, 198)",defaultDialColor:"rgb(179, 179, 179)",gaugeOpacity:.5,startAngle:20,endAngle:160,overDegrees:5,tickDegreesIncrement:10,bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:.26,decimals:0},{key:"titleHorizontalMargin",value:.08,decimals:0},{key:"titleBottomMargin",value:.1,decimals:0},{key:"gaugeWidth",value:1.33,decimals:0},{key:"gaugeBottomMargin",value:.19,decimals:0},{key:"outerArcRadius",value:.63,decimals:0},{key:"innerArcRadius",dataKey:"skin",values:{1:.24,2:.51},decimals:0},{key:"lengthToTick",value:.7,decimals:0},{key:"tickRadius",value:.01,decimals:1},{key:"needleLength",dataKey:"skin",values:{1:.52,2:.58},decimals:0},{key:"needleBaseRadius",value:.04,decimals:0},{key:"labelMargin",value:.26,decimals:0},{key:"valueSectionHeight",value:.36,decimals:0},{key:"secSectionHeight",value:.36,decimals:0},{key:"secBottomMargin",value:.05,decimals:0},{key:"secDividerWidth",value:.05,decimals:0},{key:"secTitleMinWidth",value:.1,decimals:0},{key:"bracketWidth",value:.08,decimals:0},{key:"indicatorMargin",value:.14,decimals:0}],gaugeHeights:[{size:"big",value:192,maxWidth:1297,maxHeight:1075},{size:"medium",value:134},{size:"small",value:94},{size:"micro",value:66}],measureKeys:["indicatorMargin","gaugeWidth","bracketWidth","titleSectionHeight","valueSectionHeight","secSectionHeight"]},xN={fontFamily:"Open Sans",fontSize:15,title:{color:"rgb(68, 81, 102)"},value:{fontWeight:800},secondaryTitle:{color:"rgb(163, 163, 163)"},secondaryValue:{color:"rgb(163, 163, 163)"},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"transparent",dividerColor:"rgb(39, 42, 52)",barHandleColor:"rgb(43, 51, 66)",height:35,horizontalMargin:15,barWidth:100,barHeight:11,barOpacity:.5,tickerBarWidth:2,tickerBarHeight:13,horizontalPadding:9,textPadding:6,sectionMinWidth:20,dividerWidth:1,dividerHeight:13,forceTickerView:!1};function CN(e,t){const r=O.cloneDeep(xN);if(r.forceTickerView=t.forceTickerView,r.fontFamily=t.fontFamily,r.backgroundColor=t.backgroundColor,r.value.color=t.value.color,r.title.color=t.title.color,r.secondaryTitle.color=t.secondaryTitle.color,r.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const n=t.tickerBarHeight;r.barHeight=n,r.tickerBarHeight=n+2}return r.forceTickerView&&(r.height=e.offsetHeight),r}const TN=new ao,SN=new fN,EN=new mN,MN=new yN,PN=new bN;class RN{getService(t){switch(t){case"numericSimple":return SN;case"numericBar":return EN;case"gauge":return MN;case"ticker":return PN}}render(t,r,n,a){let o=this.getService(r.type);const s="getBaseMeasure"in o?o.getBaseMeasure(r,n,a):void 0;if(!s||n.forceTickerView){o=this.getService("ticker");const u=CN(t,n);this.setTextOptions(u),o.render(t,r,u,a);return}this.calculateRelativeSizes(r,n,s.value),this.setTextOptions(n,s.size),o.render(t,r,n,s)}calculateRelativeSizes(t,r,n){const{relativeSizes:a}=r;a.forEach(function(o){let s;if("dataKey"in o&&"values"in o&&o.dataKey in t)s=o.values[t[o.dataKey]];else if("value"in o)s=o.value;else throw new Error("Invalid relative size options");const u=s*n;r[o.key]=TN.floor(u,o.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const a=t[n],o=a.fontStyle?`${a.fontStyle} `:"",s=a.fontVariant?`${a.fontVariant} `:"",u=a.fontWeight?`${a.fontWeight} `:"",c=`${Number.parseFloat(a.fontSizes&&a.fontSizes[r]||a.fontSize||t.fontSize)}px `,d=a.fontFamily||t.fontFamily,{color:h}=a;t[`${n}Font`]=o+s+u+c+d,t[`${n}Color`]=h})}}function fy(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function ON(e,t,r){if(!kN(e))return r;const a=O.getColoringServiceByColorOptions(e).getColor(t);return a?ue(ee({},r),{value:ue(ee({},r.value),{color:a})}):r}function kN(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const NN=(e,t)=>{const r=fy(t);return r&&e.value?O.getColoringServiceByColorOptions(r).getColor(O.isNumber$1(e.value)?e.value:0):null},DN=(e,t,r)=>{var m,p,g,_,y,w,E,S,T,C,x,P;const n=O.isNumber$1(e.min)?e.min:0,a=O.isNumber$1(e.max)?e.max:100,o=Zo(r,"value"),s=Zo(r,"secondary"),u=Zo(r,"min"),c=Zo(r,"max"),d=NN(e,r),h=t.indicatorType==="gauge"?1:"vertical";return ue(ee(ee({},LN),d?{color:d}:null),{type:AN(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||h,title:{text:(g=(p=(m=t.indicatorComponents)==null?void 0:m.title)==null?void 0:p.text)!=null?g:""},min:{data:n,text:O.applyFormatPlainText(u,n)},max:{data:a,text:O.applyFormatPlainText(c,a)},value:{data:e.value,text:Ep(e.value,o)},secondary:{data:e.secondary,text:Ep(e.secondary,s)},secondaryTitle:{text:(w=(y=(_=t.indicatorComponents)==null?void 0:_.secondaryTitle)==null?void 0:y.text)!=null?w:""},showSecondary:e.secondary!==void 0,showTitle:!!((S=(E=t.indicatorComponents)==null?void 0:E.title)!=null&&S.shouldBeShown),showLabels:!!((C=(T=t.indicatorComponents)==null?void 0:T.labels)!=null&&C.shouldBeShown),showTicks:!!((P=(x=t.indicatorComponents)==null?void 0:x.ticks)!=null&&P.shouldBeShown)})};function AN(e,t){return e==="numeric"?t:e}function Zo(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return O.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const LN={color:"#00cee6",showSecondary:!1};function Ep(e,t){return e===void 0?"":isNaN(e)?"#N/A":O.applyFormatPlainText(t,e)}function IN(e,t,r){const n=O.cloneDeep(r);for(const a in t){const o=t[a],s=$N(e,o);s&&hy(n,a,s)}return n}function hy(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[a,...o]=n;if(!(a in e))return;const s=e[a];if(!py(s))return;hy(s,o.join("."),r)}}function $N(e,t){const r=t.split(".");let n=e;for(const a of r){if(!py(n)||!(a in n))return;n=n[a]}return n}function py(e){return typeof e=="object"&&e!==null}function zN(e,t,r){return IN(e,t,r)}const FN={fontFamily:"typography.fontFamily","title.color":"chart.textColor",backgroundColor:"chart.backgroundColor","label.color":"chart.textColor","secondaryTitle.color":"chart.secondaryTextColor","secondaryValue.color":"chart.secondaryTextColor","value.color":"palette.variantColors.0"},WN=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:a}=t,{type:o}=e;let s;switch(o){case"gauge":s=wN;break;case"numeric":e.numericSubtype==="numericBar"?s=_N:s=Sp;break;default:s=Sp}a&&(s=zN(a,FN,s));const u=fy(n);return u&&r.value&&O.isNumber$1(r.value)&&(s=ON(u,r.value,s)),ee(ue(ee({},s),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};function Ii(e,t){return O.baseIsEqual(e,t)}function my(e){return typeof e=="string"}function jN(e){var c;const t=kt().themeSettings,[r,n]=Q.useState(Bs()),[a,o]=Q.useState(null),s=(c=bt().app)==null?void 0:c.httpClient;return Q.useEffect(()=>{e&&(my(e)?s&&zg(e,s).then(n).catch(o):n(e))},[e,s]),a?[null,a]:Ii(t,r)?[t,null]:[O.merge.withOptions({mergeArrays:!1},t,r),null]}const BN=(e,t)=>{const r=Q.useRef(document.createElement("style")),[n,a]=Q.useState([]),o=Q.useMemo(()=>e.filter(s=>!t.includes(Mp(s))),[e,t]);return Q.useEffect(()=>{if(o.length){r.current=document.createElement("style");const s=o.map(HN);r.current.innerHTML=s.join(`
20
+ `),document.head.appendChild(r.current),a(o.map(Mp))}return()=>{var s;(s=r.current)==null||s.remove()}},[o]),n};function Mp(e){return`${e.fontFamily}|${e.fontWeight}|${e.fontStyle}`}function HN(e){return`@font-face {
21
+ font-family: "${e.fontFamily}";
22
+ font-weight: ${e.fontWeight};
23
+ font-style: ${e.fontStyle};
24
+ ${e.src.map(t=>`src: ${Object.entries(t).map(([r,n])=>`${r}('${n}')`).join(" ")};`).join(`
25
+ `)}
26
+ }`}const Pp=Q.createContext({loadedFonts:[]}),VN=({fonts:e,children:t})=>{var o;const{loadedFonts:r}=Q.useContext(Pp),{themeSettings:n}=kt(),a=BN(e||((o=n.typography.fontsLoader)==null?void 0:o.fonts)||[],r);return V.jsx(Pp.Provider,{value:{loadedFonts:[...r,...a]},children:t})},vy=Kn({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r}=e,[n,a]=jN(t);if(a)throw a;return V.jsx(V.Fragment,{children:n&&V.jsx(Md.Provider,{value:{themeSettings:n},children:V.jsx(VN,{children:r})})})}),UN=({chartData:e,dataOptions:t,designOptions:r})=>{var s;const n=Q.useRef(null),a=Q.useRef(null),{themeSettings:o}=kt();return Q.useEffect(()=>{if(!a.current||!n.current)return;const u=new RN,c=DN(e,r,t),d=WN({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:o});u.render(a.current,c,d,n.current)},[e,t,r,o]),V.jsx("div",{ref:n,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(s=o==null?void 0:o.chart)==null?void 0:s.backgroundColor},"aria-label":"indicator-root",children:V.jsx("canvas",{ref:a})})},qN=e=>e.type==="indicator",GN=e=>"min"in e,YN=e=>"indicatorComponents"in e,XN=e=>!!e.chartData&&qN(e.chartData)&&GN(e.dataOptions)&&YN(e.designOptions);var Cc={exports:{}};/* @preserve
27
+ * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
28
+ * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
29
+ */(function(e,t){(function(r,n){n(t)})(O.commonjsGlobal,function(r){var n="1.9.4";function a(i){var l,f,b,M;for(f=1,b=arguments.length;f<b;f++){M=arguments[f];for(l in M)i[l]=M[l]}return i}var o=Object.create||function(){function i(){}return function(l){return i.prototype=l,new i}}();function s(i,l){var f=Array.prototype.slice;if(i.bind)return i.bind.apply(i,f.call(arguments,1));var b=f.call(arguments,2);return function(){return i.apply(l,b.length?b.concat(f.call(arguments)):arguments)}}var u=0;function c(i){return"_leaflet_id"in i||(i._leaflet_id=++u),i._leaflet_id}function d(i,l,f){var b,M,F,Y;return Y=function(){b=!1,M&&(F.apply(f,M),M=!1)},F=function(){b?M=arguments:(i.apply(f,arguments),setTimeout(Y,l),b=!0)},F}function h(i,l,f){var b=l[1],M=l[0],F=b-M;return i===b&&f?i:((i-M)%F+F)%F+M}function m(){return!1}function p(i,l){if(l===!1)return i;var f=Math.pow(10,l===void 0?6:l);return Math.round(i*f)/f}function g(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function _(i){return g(i).split(/\s+/)}function y(i,l){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?o(i.options):{});for(var f in l)i.options[f]=l[f];return i.options}function w(i,l,f){var b=[];for(var M in i)b.push(encodeURIComponent(f?M.toUpperCase():M)+"="+encodeURIComponent(i[M]));return(!l||l.indexOf("?")===-1?"?":"&")+b.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function S(i,l){return i.replace(E,function(f,b){var M=l[b];if(M===void 0)throw new Error("No value provided for variable "+f);return typeof M=="function"&&(M=M(l)),M})}var T=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function C(i,l){for(var f=0;f<i.length;f++)if(i[f]===l)return f;return-1}var x="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function P(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var R=0;function D(i){var l=+new Date,f=Math.max(0,16-(l-R));return R=l+f,window.setTimeout(i,f)}var A=window.requestAnimationFrame||P("RequestAnimationFrame")||D,I=window.cancelAnimationFrame||P("CancelAnimationFrame")||P("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function N(i,l,f){if(f&&A===D)i.call(l);else return A.call(window,s(i,l))}function k(i){i&&I.call(window,i)}var W={__proto__:null,extend:a,create:o,bind:s,get lastId(){return u},stamp:c,throttle:d,wrapNum:h,falseFn:m,formatNum:p,trim:g,splitWords:_,setOptions:y,getParamString:w,template:S,isArray:T,indexOf:C,emptyImageUrl:x,requestFn:A,cancelFn:I,requestAnimFrame:N,cancelAnimFrame:k};function j(){}j.extend=function(i){var l=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=l.__super__=this.prototype,b=o(f);b.constructor=l,l.prototype=b;for(var M in this)Object.prototype.hasOwnProperty.call(this,M)&&M!=="prototype"&&M!=="__super__"&&(l[M]=this[M]);return i.statics&&a(l,i.statics),i.includes&&($(i.includes),a.apply(null,[b].concat(i.includes))),a(b,i),delete b.statics,delete b.includes,b.options&&(b.options=f.options?o(f.options):{},a(b.options,i.options)),b._initHooks=[],b.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var F=0,Y=b._initHooks.length;F<Y;F++)b._initHooks[F].call(this)}},l},j.include=function(i){var l=this.prototype.options;return a(this.prototype,i),i.options&&(this.prototype.options=l,this.mergeOptions(i.options)),this},j.mergeOptions=function(i){return a(this.prototype.options,i),this},j.addInitHook=function(i){var l=Array.prototype.slice.call(arguments,1),f=typeof i=="function"?i:function(){this[i].apply(this,l)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function $(i){if(!(typeof L=="undefined"||!L||!L.Mixin)){i=T(i)?i:[i];for(var l=0;l<i.length;l++)i[l]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var B={on:function(i,l,f){if(typeof i=="object")for(var b in i)this._on(b,i[b],l);else{i=_(i);for(var M=0,F=i.length;M<F;M++)this._on(i[M],l,f)}return this},off:function(i,l,f){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var b in i)this._off(b,i[b],l);else{i=_(i);for(var M=arguments.length===1,F=0,Y=i.length;F<Y;F++)M?this._off(i[F]):this._off(i[F],l,f)}return this},_on:function(i,l,f,b){if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}if(this._listens(i,l,f)===!1){f===this&&(f=void 0);var M={fn:l,ctx:f};b&&(M.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(M)}},_off:function(i,l,f){var b,M,F;if(this._events&&(b=this._events[i],!!b)){if(arguments.length===1){if(this._firingCount)for(M=0,F=b.length;M<F;M++)b[M].fn=m;delete this._events[i];return}if(typeof l!="function"){console.warn("wrong listener type: "+typeof l);return}var Y=this._listens(i,l,f);if(Y!==!1){var ne=b[Y];this._firingCount&&(ne.fn=m,this._events[i]=b=b.slice()),b.splice(Y,1)}}},fire:function(i,l,f){if(!this.listens(i,f))return this;var b=a({},l,{type:i,target:this,sourceTarget:l&&l.sourceTarget||this});if(this._events){var M=this._events[i];if(M){this._firingCount=this._firingCount+1||1;for(var F=0,Y=M.length;F<Y;F++){var ne=M[F],ae=ne.fn;ne.once&&this.off(i,ae,ne.ctx),ae.call(ne.ctx||this,b)}this._firingCount--}}return f&&this._propagateEvent(b),this},listens:function(i,l,f,b){typeof i!="string"&&console.warn('"string" type argument expected');var M=l;typeof l!="function"&&(b=!!l,M=void 0,f=void 0);var F=this._events&&this._events[i];if(F&&F.length&&this._listens(i,M,f)!==!1)return!0;if(b){for(var Y in this._eventParents)if(this._eventParents[Y].listens(i,l,f,b))return!0}return!1},_listens:function(i,l,f){if(!this._events)return!1;var b=this._events[i]||[];if(!l)return!!b.length;f===this&&(f=void 0);for(var M=0,F=b.length;M<F;M++)if(b[M].fn===l&&b[M].ctx===f)return M;return!1},once:function(i,l,f){if(typeof i=="object")for(var b in i)this._on(b,i[b],l,!0);else{i=_(i);for(var M=0,F=i.length;M<F;M++)this._on(i[M],l,f,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[c(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[c(i)],this},_propagateEvent:function(i){for(var l in this._eventParents)this._eventParents[l].fire(i.type,a({layer:i.target,propagatedFrom:i.target},i),!0)}};B.addEventListener=B.on,B.removeEventListener=B.clearAllEventListeners=B.off,B.addOneTimeEventListener=B.once,B.fireEvent=B.fire,B.hasEventListeners=B.listens;var G=j.extend(B);function q(i,l,f){this.x=f?Math.round(i):i,this.y=f?Math.round(l):l}var U=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(i){return this.clone()._add(z(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(z(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new q(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new q(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=U(this.x),this.y=U(this.y),this},distanceTo:function(i){i=z(i);var l=i.x-this.x,f=i.y-this.y;return Math.sqrt(l*l+f*f)},equals:function(i){return i=z(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=z(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function z(i,l,f){return i instanceof q?i:T(i)?new q(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new q(i.x,i.y):new q(i,l,f)}function H(i,l){if(i)for(var f=l?[i,l]:i,b=0,M=f.length;b<M;b++)this.extend(f[b])}H.prototype={extend:function(i){var l,f;if(!i)return this;if(i instanceof q||typeof i[0]=="number"||"x"in i)l=f=z(i);else if(i=te(i),l=i.min,f=i.max,!l||!f)return this;return!this.min&&!this.max?(this.min=l.clone(),this.max=f.clone()):(this.min.x=Math.min(l.x,this.min.x),this.max.x=Math.max(f.x,this.max.x),this.min.y=Math.min(l.y,this.min.y),this.max.y=Math.max(f.y,this.max.y)),this},getCenter:function(i){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var l,f;return typeof i[0]=="number"||i instanceof q?i=z(i):i=te(i),i instanceof H?(l=i.min,f=i.max):l=f=i,l.x>=this.min.x&&f.x<=this.max.x&&l.y>=this.min.y&&f.y<=this.max.y},intersects:function(i){i=te(i);var l=this.min,f=this.max,b=i.min,M=i.max,F=M.x>=l.x&&b.x<=f.x,Y=M.y>=l.y&&b.y<=f.y;return F&&Y},overlaps:function(i){i=te(i);var l=this.min,f=this.max,b=i.min,M=i.max,F=M.x>l.x&&b.x<f.x,Y=M.y>l.y&&b.y<f.y;return F&&Y},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var l=this.min,f=this.max,b=Math.abs(l.x-f.x)*i,M=Math.abs(l.y-f.y)*i;return te(z(l.x-b,l.y-M),z(f.x+b,f.y+M))},equals:function(i){return i?(i=te(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function te(i,l){return!i||i instanceof H?i:new H(i,l)}function X(i,l){if(i)for(var f=l?[i,l]:i,b=0,M=f.length;b<M;b++)this.extend(f[b])}X.prototype={extend:function(i){var l=this._southWest,f=this._northEast,b,M;if(i instanceof J)b=i,M=i;else if(i instanceof X){if(b=i._southWest,M=i._northEast,!b||!M)return this}else return i?this.extend(ie(i)||K(i)):this;return!l&&!f?(this._southWest=new J(b.lat,b.lng),this._northEast=new J(M.lat,M.lng)):(l.lat=Math.min(b.lat,l.lat),l.lng=Math.min(b.lng,l.lng),f.lat=Math.max(M.lat,f.lat),f.lng=Math.max(M.lng,f.lng)),this},pad:function(i){var l=this._southWest,f=this._northEast,b=Math.abs(l.lat-f.lat)*i,M=Math.abs(l.lng-f.lng)*i;return new X(new J(l.lat-b,l.lng-M),new J(f.lat+b,f.lng+M))},getCenter:function(){return new J((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new J(this.getNorth(),this.getWest())},getSouthEast:function(){return new J(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof J||"lat"in i?i=ie(i):i=K(i);var l=this._southWest,f=this._northEast,b,M;return i instanceof X?(b=i.getSouthWest(),M=i.getNorthEast()):b=M=i,b.lat>=l.lat&&M.lat<=f.lat&&b.lng>=l.lng&&M.lng<=f.lng},intersects:function(i){i=K(i);var l=this._southWest,f=this._northEast,b=i.getSouthWest(),M=i.getNorthEast(),F=M.lat>=l.lat&&b.lat<=f.lat,Y=M.lng>=l.lng&&b.lng<=f.lng;return F&&Y},overlaps:function(i){i=K(i);var l=this._southWest,f=this._northEast,b=i.getSouthWest(),M=i.getNorthEast(),F=M.lat>l.lat&&b.lat<f.lat,Y=M.lng>l.lng&&b.lng<f.lng;return F&&Y},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,l){return i?(i=K(i),this._southWest.equals(i.getSouthWest(),l)&&this._northEast.equals(i.getNorthEast(),l)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function K(i,l){return i instanceof X?i:new X(i,l)}function J(i,l,f){if(isNaN(i)||isNaN(l))throw new Error("Invalid LatLng object: ("+i+", "+l+")");this.lat=+i,this.lng=+l,f!==void 0&&(this.alt=+f)}J.prototype={equals:function(i,l){if(!i)return!1;i=ie(i);var f=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return f<=(l===void 0?1e-9:l)},toString:function(i){return"LatLng("+p(this.lat,i)+", "+p(this.lng,i)+")"},distanceTo:function(i){return se.distance(this,ie(i))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(i){var l=180*i/40075017,f=l/Math.cos(Math.PI/180*this.lat);return K([this.lat-l,this.lng-f],[this.lat+l,this.lng+f])},clone:function(){return new J(this.lat,this.lng,this.alt)}};function ie(i,l,f){return i instanceof J?i:T(i)&&typeof i[0]!="object"?i.length===3?new J(i[0],i[1],i[2]):i.length===2?new J(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new J(i.lat,"lng"in i?i.lng:i.lon,i.alt):l===void 0?null:new J(i,l,f)}var le={latLngToPoint:function(i,l){var f=this.projection.project(i),b=this.scale(l);return this.transformation._transform(f,b)},pointToLatLng:function(i,l){var f=this.scale(l),b=this.transformation.untransform(i,f);return this.projection.unproject(b)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var l=this.projection.bounds,f=this.scale(i),b=this.transformation.transform(l.min,f),M=this.transformation.transform(l.max,f);return new H(b,M)},infinite:!1,wrapLatLng:function(i){var l=this.wrapLng?h(i.lng,this.wrapLng,!0):i.lng,f=this.wrapLat?h(i.lat,this.wrapLat,!0):i.lat,b=i.alt;return new J(f,l,b)},wrapLatLngBounds:function(i){var l=i.getCenter(),f=this.wrapLatLng(l),b=l.lat-f.lat,M=l.lng-f.lng;if(b===0&&M===0)return i;var F=i.getSouthWest(),Y=i.getNorthEast(),ne=new J(F.lat-b,F.lng-M),ae=new J(Y.lat-b,Y.lng-M);return new X(ne,ae)}},se=a({},le,{wrapLng:[-180,180],R:6371e3,distance:function(i,l){var f=Math.PI/180,b=i.lat*f,M=l.lat*f,F=Math.sin((l.lat-i.lat)*f/2),Y=Math.sin((l.lng-i.lng)*f/2),ne=F*F+Math.cos(b)*Math.cos(M)*Y*Y,ae=2*Math.atan2(Math.sqrt(ne),Math.sqrt(1-ne));return this.R*ae}}),ce=6378137,he={R:ce,MAX_LATITUDE:85.0511287798,project:function(i){var l=Math.PI/180,f=this.MAX_LATITUDE,b=Math.max(Math.min(f,i.lat),-f),M=Math.sin(b*l);return new q(this.R*i.lng*l,this.R*Math.log((1+M)/(1-M))/2)},unproject:function(i){var l=180/Math.PI;return new J((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*l,i.x*l/this.R)},bounds:function(){var i=ce*Math.PI;return new H([-i,-i],[i,i])}()};function pe(i,l,f,b){if(T(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=l,this._c=f,this._d=b}pe.prototype={transform:function(i,l){return this._transform(i.clone(),l)},_transform:function(i,l){return l=l||1,i.x=l*(this._a*i.x+this._b),i.y=l*(this._c*i.y+this._d),i},untransform:function(i,l){return l=l||1,new q((i.x/l-this._b)/this._a,(i.y/l-this._d)/this._c)}};function oe(i,l,f,b){return new pe(i,l,f,b)}var ve=a({},se,{code:"EPSG:3857",projection:he,transformation:function(){var i=.5/(Math.PI*he.R);return oe(i,.5,-i,.5)}()}),fe=a({},ve,{code:"EPSG:900913"});function _e(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function we(i,l){var f="",b,M,F,Y,ne,ae;for(b=0,F=i.length;b<F;b++){for(ne=i[b],M=0,Y=ne.length;M<Y;M++)ae=ne[M],f+=(M?"L":"M")+ae.x+" "+ae.y;f+=l?ge.svg?"z":"x":""}return f||"M0 0"}var Se=document.documentElement.style,Ce="ActiveXObject"in window,ft=Ce&&!document.addEventListener,Ue="msLaunchUri"in navigator&&!("documentMode"in document),nt=yt("webkit"),ht=yt("android"),Ie=yt("android 2")||yt("android 3"),qe=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Pt=ht&&yt("Google")&&qe<537&&!("AudioNode"in window),pt=!!window.opera,Rt=!Ue&&yt("chrome"),pr=yt("gecko")&&!nt&&!pt&&!Ce,Te=!Rt&&yt("safari"),_t=yt("phantom"),Sr="OTransition"in Se,Kt=navigator.platform.indexOf("Win")===0,Er=Ce&&"transition"in Se,tn="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ie,mr="MozPerspective"in Se,Hr=!window.L_DISABLE_3D&&(Er||tn||mr)&&!Sr&&!_t,Ut=typeof orientation!="undefined"||yt("mobile"),On=Ut&&nt,Vr=Ut&&tn,rn=!window.PointerEvent&&window.MSPointerEvent,kn=!!(window.PointerEvent||rn),vr="ontouchstart"in window||!!window.TouchEvent,Nn=!window.L_NO_TOUCH&&(vr||kn),Dn=Ut&&pt,nn=Ut&&pr,ri=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ni=function(){var i=!1;try{var l=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",m,l),window.removeEventListener("testPassiveEventSupport",m,l)}catch(f){}return i}(),ia=function(){return!!document.createElement("canvas").getContext}(),Qt=!!(document.createElementNS&&_e("svg").createSVGRect),ii=!!Qt&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Ur=!Qt&&function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var l=i.firstChild;return l.style.behavior="url(#default#VML)",l&&typeof l.adj=="object"}catch(f){return!1}}(),an=navigator.platform.indexOf("Mac")===0,xt=navigator.platform.indexOf("Linux")===0;function yt(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var ge={ie:Ce,ielt9:ft,edge:Ue,webkit:nt,android:ht,android23:Ie,androidStock:Pt,opera:pt,chrome:Rt,gecko:pr,safari:Te,phantom:_t,opera12:Sr,win:Kt,ie3d:Er,webkit3d:tn,gecko3d:mr,any3d:Hr,mobile:Ut,mobileWebkit:On,mobileWebkit3d:Vr,msPointer:rn,pointer:kn,touch:Nn,touchNative:vr,mobileOpera:Dn,mobileGecko:nn,retina:ri,passiveEvents:ni,canvas:ia,svg:Qt,vml:Ur,inlineSvg:ii,mac:an,linux:xt},gr=ge.msPointer?"MSPointerDown":"pointerdown",on=ge.msPointer?"MSPointerMove":"pointermove",An=ge.msPointer?"MSPointerUp":"pointerup",sn=ge.msPointer?"MSPointerCancel":"pointercancel",ln={touchstart:gr,touchmove:on,touchend:An,touchcancel:sn},un={touchstart:uw,touchmove:Eo,touchend:Eo,touchcancel:Eo},yr={},cn=!1;function El(i,l,f){return l==="touchstart"&&lw(),un[l]?(f=un[l].bind(this,f),i.addEventListener(ln[l],f,!1),f):(console.warn("wrong event specified:",l),m)}function Ml(i,l,f){if(!ln[l]){console.warn("wrong event specified:",l);return}i.removeEventListener(ln[l],f,!1)}function Pe(i){yr[i.pointerId]=i}function Nt(i){yr[i.pointerId]&&(yr[i.pointerId]=i)}function Gf(i){delete yr[i.pointerId]}function lw(){cn||(document.addEventListener(gr,Pe,!0),document.addEventListener(on,Nt,!0),document.addEventListener(An,Gf,!0),document.addEventListener(sn,Gf,!0),cn=!0)}function Eo(i,l){if(l.pointerType!==(l.MSPOINTER_TYPE_MOUSE||"mouse")){l.touches=[];for(var f in yr)l.touches.push(yr[f]);l.changedTouches=[l],i(l)}}function uw(i,l){l.MSPOINTER_TYPE_TOUCH&&l.pointerType===l.MSPOINTER_TYPE_TOUCH&&Ct(l),Eo(i,l)}function cw(i){var l={},f,b;for(b in i)f=i[b],l[b]=f&&f.bind?f.bind(i):f;return i=l,l.type="dblclick",l.detail=2,l.isTrusted=!1,l._simulated=!0,l}var dw=200;function fw(i,l){i.addEventListener("dblclick",l);var f=0,b;function M(F){if(F.detail!==1){b=F.detail;return}if(!(F.pointerType==="mouse"||F.sourceCapabilities&&!F.sourceCapabilities.firesTouchEvents)){var Y=Qf(F);if(!(Y.some(function(ae){return ae instanceof HTMLLabelElement&&ae.attributes.for})&&!Y.some(function(ae){return ae instanceof HTMLInputElement||ae instanceof HTMLSelectElement}))){var ne=Date.now();ne-f<=dw?(b++,b===2&&l(cw(F))):b=1,f=ne}}}return i.addEventListener("click",M),{dblclick:l,simDblclick:M}}function hw(i,l){i.removeEventListener("dblclick",l.dblclick),i.removeEventListener("click",l.simDblclick)}var Pl=Ro(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aa=Ro(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Yf=aa==="webkitTransition"||aa==="OTransition"?aa+"End":"transitionend";function Xf(i){return typeof i=="string"?document.getElementById(i):i}function oa(i,l){var f=i.style[l]||i.currentStyle&&i.currentStyle[l];if((!f||f==="auto")&&document.defaultView){var b=document.defaultView.getComputedStyle(i,null);f=b?b[l]:null}return f==="auto"?null:f}function $e(i,l,f){var b=document.createElement(i);return b.className=l||"",f&&f.appendChild(b),b}function Je(i){var l=i.parentNode;l&&l.removeChild(i)}function Mo(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function ai(i){var l=i.parentNode;l&&l.lastChild!==i&&l.appendChild(i)}function oi(i){var l=i.parentNode;l&&l.firstChild!==i&&l.insertBefore(i,l.firstChild)}function Rl(i,l){if(i.classList!==void 0)return i.classList.contains(l);var f=Po(i);return f.length>0&&new RegExp("(^|\\s)"+l+"(\\s|$)").test(f)}function Re(i,l){if(i.classList!==void 0)for(var f=_(l),b=0,M=f.length;b<M;b++)i.classList.add(f[b]);else if(!Rl(i,l)){var F=Po(i);Ol(i,(F?F+" ":"")+l)}}function lt(i,l){i.classList!==void 0?i.classList.remove(l):Ol(i,g((" "+Po(i)+" ").replace(" "+l+" "," ")))}function Ol(i,l){i.className.baseVal===void 0?i.className=l:i.className.baseVal=l}function Po(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function Jt(i,l){"opacity"in i.style?i.style.opacity=l:"filter"in i.style&&pw(i,l)}function pw(i,l){var f=!1,b="DXImageTransform.Microsoft.Alpha";try{f=i.filters.item(b)}catch(M){if(l===1)return}l=Math.round(l*100),f?(f.Enabled=l!==100,f.Opacity=l):i.style.filter+=" progid:"+b+"(opacity="+l+")"}function Ro(i){for(var l=document.documentElement.style,f=0;f<i.length;f++)if(i[f]in l)return i[f];return!1}function Ln(i,l,f){var b=l||new q(0,0);i.style[Pl]=(ge.ie3d?"translate("+b.x+"px,"+b.y+"px)":"translate3d("+b.x+"px,"+b.y+"px,0)")+(f?" scale("+f+")":"")}function mt(i,l){i._leaflet_pos=l,ge.any3d?Ln(i,l):(i.style.left=l.x+"px",i.style.top=l.y+"px")}function In(i){return i._leaflet_pos||new q(0,0)}var sa,la,kl;if("onselectstart"in document)sa=function(){Me(window,"selectstart",Ct)},la=function(){Ge(window,"selectstart",Ct)};else{var ua=Ro(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);sa=function(){if(ua){var i=document.documentElement.style;kl=i[ua],i[ua]="none"}},la=function(){ua&&(document.documentElement.style[ua]=kl,kl=void 0)}}function Nl(){Me(window,"dragstart",Ct)}function Dl(){Ge(window,"dragstart",Ct)}var Oo,Al;function Ll(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(ko(),Oo=i,Al=i.style.outlineStyle,i.style.outlineStyle="none",Me(window,"keydown",ko))}function ko(){Oo&&(Oo.style.outlineStyle=Al,Oo=void 0,Al=void 0,Ge(window,"keydown",ko))}function Zf(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function Il(i){var l=i.getBoundingClientRect();return{x:l.width/i.offsetWidth||1,y:l.height/i.offsetHeight||1,boundingClientRect:l}}var mw={__proto__:null,TRANSFORM:Pl,TRANSITION:aa,TRANSITION_END:Yf,get:Xf,getStyle:oa,create:$e,remove:Je,empty:Mo,toFront:ai,toBack:oi,hasClass:Rl,addClass:Re,removeClass:lt,setClass:Ol,getClass:Po,setOpacity:Jt,testProp:Ro,setTransform:Ln,setPosition:mt,getPosition:In,get disableTextSelection(){return sa},get enableTextSelection(){return la},disableImageDrag:Nl,enableImageDrag:Dl,preventOutline:Ll,restoreOutline:ko,getSizedParentNode:Zf,getScale:Il};function Me(i,l,f,b){if(l&&typeof l=="object")for(var M in l)zl(i,M,l[M],f);else{l=_(l);for(var F=0,Y=l.length;F<Y;F++)zl(i,l[F],f,b)}return this}var Mr="_leaflet_events";function Ge(i,l,f,b){if(arguments.length===1)Kf(i),delete i[Mr];else if(l&&typeof l=="object")for(var M in l)Fl(i,M,l[M],f);else if(l=_(l),arguments.length===2)Kf(i,function(ne){return C(l,ne)!==-1});else for(var F=0,Y=l.length;F<Y;F++)Fl(i,l[F],f,b);return this}function Kf(i,l){for(var f in i[Mr]){var b=f.split(/\d/)[0];(!l||l(b))&&Fl(i,b,null,null,f)}}var $l={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function zl(i,l,f,b){var M=l+c(f)+(b?"_"+c(b):"");if(i[Mr]&&i[Mr][M])return this;var F=function(ne){return f.call(b||i,ne||window.event)},Y=F;!ge.touchNative&&ge.pointer&&l.indexOf("touch")===0?F=El(i,l,F):ge.touch&&l==="dblclick"?F=fw(i,F):"addEventListener"in i?l==="touchstart"||l==="touchmove"||l==="wheel"||l==="mousewheel"?i.addEventListener($l[l]||l,F,ge.passiveEvents?{passive:!1}:!1):l==="mouseenter"||l==="mouseleave"?(F=function(ne){ne=ne||window.event,jl(i,ne)&&Y(ne)},i.addEventListener($l[l],F,!1)):i.addEventListener(l,Y,!1):i.attachEvent("on"+l,F),i[Mr]=i[Mr]||{},i[Mr][M]=F}function Fl(i,l,f,b,M){M=M||l+c(f)+(b?"_"+c(b):"");var F=i[Mr]&&i[Mr][M];if(!F)return this;!ge.touchNative&&ge.pointer&&l.indexOf("touch")===0?Ml(i,l,F):ge.touch&&l==="dblclick"?hw(i,F):"removeEventListener"in i?i.removeEventListener($l[l]||l,F,!1):i.detachEvent("on"+l,F),i[Mr][M]=null}function $n(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function Wl(i){return zl(i,"wheel",$n),this}function ca(i){return Me(i,"mousedown touchstart dblclick contextmenu",$n),i._leaflet_disable_click=!0,this}function Ct(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function zn(i){return Ct(i),$n(i),this}function Qf(i){if(i.composedPath)return i.composedPath();for(var l=[],f=i.target;f;)l.push(f),f=f.parentNode;return l}function Jf(i,l){if(!l)return new q(i.clientX,i.clientY);var f=Il(l),b=f.boundingClientRect;return new q((i.clientX-b.left)/f.x-l.clientLeft,(i.clientY-b.top)/f.y-l.clientTop)}var vw=ge.linux&&ge.chrome?window.devicePixelRatio:ge.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function eh(i){return ge.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/vw:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function jl(i,l){var f=l.relatedTarget;if(!f)return!0;try{for(;f&&f!==i;)f=f.parentNode}catch(b){return!1}return f!==i}var gw={__proto__:null,on:Me,off:Ge,stopPropagation:$n,disableScrollPropagation:Wl,disableClickPropagation:ca,preventDefault:Ct,stop:zn,getPropagationPath:Qf,getMousePosition:Jf,getWheelDelta:eh,isExternalTarget:jl,addListener:Me,removeListener:Ge},th=G.extend({run:function(i,l,f,b){this.stop(),this._el=i,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(b||.5,.2),this._startPos=In(i),this._offset=l.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=N(this._animate,this),this._step()},_step:function(i){var l=+new Date-this._startTime,f=this._duration*1e3;l<f?this._runFrame(this._easeOut(l/f),i):(this._runFrame(1),this._complete())},_runFrame:function(i,l){var f=this._startPos.add(this._offset.multiplyBy(i));l&&f._round(),mt(this._el,f),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),Le=G.extend({options:{crs:ve,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,l){l=y(this,l),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),l.maxBounds&&this.setMaxBounds(l.maxBounds),l.zoom!==void 0&&(this._zoom=this._limitZoom(l.zoom)),l.center&&l.zoom!==void 0&&this.setView(ie(l.center),l.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=aa&&ge.any3d&&!ge.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Me(this._proxy,Yf,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(i,l,f){if(l=l===void 0?this._zoom:this._limitZoom(l),i=this._limitCenter(ie(i),l,this.options.maxBounds),f=f||{},this._stop(),this._loaded&&!f.reset&&f!==!0){f.animate!==void 0&&(f.zoom=a({animate:f.animate},f.zoom),f.pan=a({animate:f.animate,duration:f.duration},f.pan));var b=this._zoom!==l?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,l,f.zoom):this._tryAnimatedPan(i,f.pan);if(b)return clearTimeout(this._sizeTimer),this}return this._resetView(i,l,f.pan&&f.pan.noMoveStart),this},setZoom:function(i,l){return this._loaded?this.setView(this.getCenter(),i,{zoom:l}):(this._zoom=i,this)},zoomIn:function(i,l){return i=i||(ge.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,l)},zoomOut:function(i,l){return i=i||(ge.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,l)},setZoomAround:function(i,l,f){var b=this.getZoomScale(l),M=this.getSize().divideBy(2),F=i instanceof q?i:this.latLngToContainerPoint(i),Y=F.subtract(M).multiplyBy(1-1/b),ne=this.containerPointToLatLng(M.add(Y));return this.setView(ne,l,{zoom:f})},_getBoundsCenterZoom:function(i,l){l=l||{},i=i.getBounds?i.getBounds():K(i);var f=z(l.paddingTopLeft||l.padding||[0,0]),b=z(l.paddingBottomRight||l.padding||[0,0]),M=this.getBoundsZoom(i,!1,f.add(b));if(M=typeof l.maxZoom=="number"?Math.min(l.maxZoom,M):M,M===1/0)return{center:i.getCenter(),zoom:M};var F=b.subtract(f).divideBy(2),Y=this.project(i.getSouthWest(),M),ne=this.project(i.getNorthEast(),M),ae=this.unproject(Y.add(ne).divideBy(2).add(F),M);return{center:ae,zoom:M}},fitBounds:function(i,l){if(i=K(i),!i.isValid())throw new Error("Bounds are not valid.");var f=this._getBoundsCenterZoom(i,l);return this.setView(f.center,f.zoom,l)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,l){return this.setView(i,this._zoom,{pan:l})},panBy:function(i,l){if(i=z(i).round(),l=l||{},!i.x&&!i.y)return this.fire("moveend");if(l.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new th,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),l.noMoveStart||this.fire("movestart"),l.animate!==!1){Re(this._mapPane,"leaflet-pan-anim");var f=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,f,l.duration||.25,l.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,l,f){if(f=f||{},f.animate===!1||!ge.any3d)return this.setView(i,l,f);this._stop();var b=this.project(this.getCenter()),M=this.project(i),F=this.getSize(),Y=this._zoom;i=ie(i),l=l===void 0?Y:l;var ne=Math.max(F.x,F.y),ae=ne*this.getZoomScale(Y,l),de=M.distanceTo(b)||1,me=1.42,xe=me*me;function Ne(vt){var Ho=vt?-1:1,a1=vt?ae:ne,o1=ae*ae-ne*ne+Ho*xe*xe*de*de,s1=2*a1*xe*de,Ql=o1/s1,Lh=Math.sqrt(Ql*Ql+1)-Ql,l1=Lh<1e-9?-18:Math.log(Lh);return l1}function Dt(vt){return(Math.exp(vt)-Math.exp(-vt))/2}function wt(vt){return(Math.exp(vt)+Math.exp(-vt))/2}function tr(vt){return Dt(vt)/wt(vt)}var Wt=Ne(0);function fi(vt){return ne*(wt(Wt)/wt(Wt+me*vt))}function t1(vt){return ne*(wt(Wt)*tr(Wt+me*vt)-Dt(Wt))/xe}function r1(vt){return 1-Math.pow(1-vt,1.5)}var n1=Date.now(),Dh=(Ne(1)-Wt)/me,i1=f.duration?1e3*f.duration:1e3*Dh*.8;function Ah(){var vt=(Date.now()-n1)/i1,Ho=r1(vt)*Dh;vt<=1?(this._flyToFrame=N(Ah,this),this._move(this.unproject(b.add(M.subtract(b).multiplyBy(t1(Ho)/de)),Y),this.getScaleZoom(ne/fi(Ho),Y),{flyTo:!0})):this._move(i,l)._moveEnd(!0)}return this._moveStart(!0,f.noMoveStart),Ah.call(this),this},flyToBounds:function(i,l){var f=this._getBoundsCenterZoom(i,l);return this.flyTo(f.center,f.zoom,l)},setMaxBounds:function(i){return i=K(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var l=this.options.minZoom;return this.options.minZoom=i,this._loaded&&l!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var l=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&l!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,l){this._enforcingBounds=!0;var f=this.getCenter(),b=this._limitCenter(f,this._zoom,K(i));return f.equals(b)||this.panTo(b,l),this._enforcingBounds=!1,this},panInside:function(i,l){l=l||{};var f=z(l.paddingTopLeft||l.padding||[0,0]),b=z(l.paddingBottomRight||l.padding||[0,0]),M=this.project(this.getCenter()),F=this.project(i),Y=this.getPixelBounds(),ne=te([Y.min.add(f),Y.max.subtract(b)]),ae=ne.getSize();if(!ne.contains(F)){this._enforcingBounds=!0;var de=F.subtract(ne.getCenter()),me=ne.extend(F).getSize().subtract(ae);M.x+=de.x<0?-me.x:me.x,M.y+=de.y<0?-me.y:me.y,this.panTo(this.unproject(M),l),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=a({animate:!1,pan:!0},i===!0?{animate:!0}:i);var l=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var f=this.getSize(),b=l.divideBy(2).round(),M=f.divideBy(2).round(),F=b.subtract(M);return!F.x&&!F.y?this:(i.animate&&i.pan?this.panBy(F):(i.pan&&this._rawPanBy(F),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:l,newSize:f}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=a({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var l=s(this._handleGeolocationResponse,this),f=s(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(l,f,i):navigator.geolocation.getCurrentPosition(l,f,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var l=i.code,f=i.message||(l===1?"permission denied":l===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:l,message:"Geolocation error: "+f+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var l=i.coords.latitude,f=i.coords.longitude,b=new J(l,f),M=b.toBounds(i.coords.accuracy*2),F=this._locateOptions;if(F.setView){var Y=this.getBoundsZoom(M);this.setView(b,F.maxZoom?Math.min(Y,F.maxZoom):Y)}var ne={latlng:b,bounds:M,timestamp:i.timestamp};for(var ae in i.coords)typeof i.coords[ae]=="number"&&(ne[ae]=i.coords[ae]);this.fire("locationfound",ne)}},addHandler:function(i,l){if(!l)return this;var f=this[i]=new l(this);return this._handlers.push(f),this.options[i]&&f.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(l){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Je(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)Je(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,l){var f="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),b=$e("div",f,l||this._mapPane);return i&&(this._panes[i]=b),b},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),l=this.unproject(i.getBottomLeft()),f=this.unproject(i.getTopRight());return new X(l,f)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,l,f){i=K(i),f=z(f||[0,0]);var b=this.getZoom()||0,M=this.getMinZoom(),F=this.getMaxZoom(),Y=i.getNorthWest(),ne=i.getSouthEast(),ae=this.getSize().subtract(f),de=te(this.project(ne,b),this.project(Y,b)).getSize(),me=ge.any3d?this.options.zoomSnap:1,xe=ae.x/de.x,Ne=ae.y/de.y,Dt=l?Math.max(xe,Ne):Math.min(xe,Ne);return b=this.getScaleZoom(Dt,b),me&&(b=Math.round(b/(me/100))*(me/100),b=l?Math.ceil(b/me)*me:Math.floor(b/me)*me),Math.max(M,Math.min(F,b))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,l){var f=this._getTopLeftPoint(i,l);return new H(f,f.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,l){var f=this.options.crs;return l=l===void 0?this._zoom:l,f.scale(i)/f.scale(l)},getScaleZoom:function(i,l){var f=this.options.crs;l=l===void 0?this._zoom:l;var b=f.zoom(i*f.scale(l));return isNaN(b)?1/0:b},project:function(i,l){return l=l===void 0?this._zoom:l,this.options.crs.latLngToPoint(ie(i),l)},unproject:function(i,l){return l=l===void 0?this._zoom:l,this.options.crs.pointToLatLng(z(i),l)},layerPointToLatLng:function(i){var l=z(i).add(this.getPixelOrigin());return this.unproject(l)},latLngToLayerPoint:function(i){var l=this.project(ie(i))._round();return l._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(ie(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(K(i))},distance:function(i,l){return this.options.crs.distance(ie(i),ie(l))},containerPointToLayerPoint:function(i){return z(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return z(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var l=this.containerPointToLayerPoint(z(i));return this.layerPointToLatLng(l)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ie(i)))},mouseEventToContainerPoint:function(i){return Jf(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var l=this._container=Xf(i);if(l){if(l._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Me(l,"scroll",this._onScroll,this),this._containerId=c(l)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&ge.any3d,Re(i,"leaflet-container"+(ge.touch?" leaflet-touch":"")+(ge.retina?" leaflet-retina":"")+(ge.ielt9?" leaflet-oldie":"")+(ge.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var l=oa(i,"position");l!=="absolute"&&l!=="relative"&&l!=="fixed"&&l!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),mt(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Re(i.markerPane,"leaflet-zoom-hide"),Re(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,l,f){mt(this._mapPane,new q(0,0));var b=!this._loaded;this._loaded=!0,l=this._limitZoom(l),this.fire("viewprereset");var M=this._zoom!==l;this._moveStart(M,f)._move(i,l)._moveEnd(M),this.fire("viewreset"),b&&this.fire("load")},_moveStart:function(i,l){return i&&this.fire("zoomstart"),l||this.fire("movestart"),this},_move:function(i,l,f,b){l===void 0&&(l=this._zoom);var M=this._zoom!==l;return this._zoom=l,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),b?f&&f.pinch&&this.fire("zoom",f):((M||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){mt(this._mapPane,this._getMapPanePos().subtract(i))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(i){this._targets={},this._targets[c(this._container)]=this;var l=i?Ge:Me;l(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&l(window,"resize",this._onResize,this),ge.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=N(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,l){for(var f=[],b,M=l==="mouseout"||l==="mouseover",F=i.target||i.srcElement,Y=!1;F;){if(b=this._targets[c(F)],b&&(l==="click"||l==="preclick")&&this._draggableMoved(b)){Y=!0;break}if(b&&b.listens(l,!0)&&(M&&!jl(F,i)||(f.push(b),M))||F===this._container)break;F=F.parentNode}return!f.length&&!Y&&!M&&this.listens(l,!0)&&(f=[this]),f},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var l=i.target||i.srcElement;if(!(!this._loaded||l._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(l))){var f=i.type;f==="mousedown"&&Ll(l),this._fireDOMEvent(i,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,l,f){if(i.type==="click"){var b=a({},i);b.type="preclick",this._fireDOMEvent(b,b.type,f)}var M=this._findEventTargets(i,l);if(f){for(var F=[],Y=0;Y<f.length;Y++)f[Y].listens(l,!0)&&F.push(f[Y]);M=F.concat(M)}if(M.length){l==="contextmenu"&&Ct(i);var ne=M[0],ae={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var de=ne.getLatLng&&(!ne._radius||ne._radius<=10);ae.containerPoint=de?this.latLngToContainerPoint(ne.getLatLng()):this.mouseEventToContainerPoint(i),ae.layerPoint=this.containerPointToLayerPoint(ae.containerPoint),ae.latlng=de?ne.getLatLng():this.layerPointToLatLng(ae.layerPoint)}for(Y=0;Y<M.length;Y++)if(M[Y].fire(l,ae,!0),ae.originalEvent._stopped||M[Y].options.bubblingMouseEvents===!1&&C(this._mouseEvents,l)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,l=this._handlers.length;i<l;i++)this._handlers[i].disable()},whenReady:function(i,l){return this._loaded?i.call(l||this,{target:this}):this.on("load",i,l),this},_getMapPanePos:function(){return In(this._mapPane)||new q(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,l){var f=i&&l!==void 0?this._getNewPixelOrigin(i,l):this.getPixelOrigin();return f.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,l){var f=this.getSize()._divideBy(2);return this.project(i,l)._subtract(f)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,l,f){var b=this._getNewPixelOrigin(f,l);return this.project(i,l)._subtract(b)},_latLngBoundsToNewLayerBounds:function(i,l,f){var b=this._getNewPixelOrigin(f,l);return te([this.project(i.getSouthWest(),l)._subtract(b),this.project(i.getNorthWest(),l)._subtract(b),this.project(i.getSouthEast(),l)._subtract(b),this.project(i.getNorthEast(),l)._subtract(b)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,l,f){if(!f)return i;var b=this.project(i,l),M=this.getSize().divideBy(2),F=new H(b.subtract(M),b.add(M)),Y=this._getBoundsOffset(F,f,l);return Math.abs(Y.x)<=1&&Math.abs(Y.y)<=1?i:this.unproject(b.add(Y),l)},_limitOffset:function(i,l){if(!l)return i;var f=this.getPixelBounds(),b=new H(f.min.add(i),f.max.add(i));return i.add(this._getBoundsOffset(b,l))},_getBoundsOffset:function(i,l,f){var b=te(this.project(l.getNorthEast(),f),this.project(l.getSouthWest(),f)),M=b.min.subtract(i.min),F=b.max.subtract(i.max),Y=this._rebound(M.x,-F.x),ne=this._rebound(M.y,-F.y);return new q(Y,ne)},_rebound:function(i,l){return i+l>0?Math.round(i-l)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(l))},_limitZoom:function(i){var l=this.getMinZoom(),f=this.getMaxZoom(),b=ge.any3d?this.options.zoomSnap:1;return b&&(i=Math.round(i/b)*b),Math.max(l,Math.min(f,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){lt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,l){var f=this._getCenterOffset(i)._trunc();return(l&&l.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,l),!0)},_createAnimProxy:function(){var i=this._proxy=$e("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(l){var f=Pl,b=this._proxy.style[f];Ln(this._proxy,this.project(l.center,l.zoom),this.getZoomScale(l.zoom,1)),b===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Je(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),l=this.getZoom();Ln(this._proxy,this.project(i,l),this.getZoomScale(l,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,l,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.animate===!1||this._nothingToAnimate()||Math.abs(l-this._zoom)>this.options.zoomAnimationThreshold)return!1;var b=this.getZoomScale(l),M=this._getCenterOffset(i)._divideBy(1-1/b);return f.animate!==!0&&!this.getSize().contains(M)?!1:(N(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(i,l,!0)},this),!0)},_animateZoom:function(i,l,f,b){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=l,Re(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:l,noUpdate:b}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&lt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function yw(i,l){return new Le(i,l)}var br=j.extend({options:{position:"topright"},initialize:function(i){y(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var l=this._map;return l&&l.removeControl(this),this.options.position=i,l&&l.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var l=this._container=this.onAdd(i),f=this.getPosition(),b=i._controlCorners[f];return Re(l,"leaflet-control"),f.indexOf("bottom")!==-1?b.insertBefore(l,b.firstChild):b.appendChild(l),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Je(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),da=function(i){return new br(i)};Le.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},l="leaflet-",f=this._controlContainer=$e("div",l+"control-container",this._container);function b(M,F){var Y=l+M+" "+l+F;i[M+F]=$e("div",Y,f)}b("top","left"),b("top","right"),b("bottom","left"),b("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)Je(this._controlCorners[i]);Je(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var rh=br.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,l,f,b){return f<b?-1:b<f?1:0}},initialize:function(i,l,f){y(this,f),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var b in i)this._addLayer(i[b],b);for(b in l)this._addLayer(l[b],b,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return br.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,l){return this._addLayer(i,l),this._map?this._update():this},addOverlay:function(i,l){return this._addLayer(i,l,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var l=this._getLayer(c(i));return l&&this._layers.splice(this._layers.indexOf(l),1),this._map?this._update():this},expand:function(){Re(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(Re(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):lt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return lt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",l=this._container=$e("div",i),f=this.options.collapsed;l.setAttribute("aria-haspopup",!0),ca(l),Wl(l);var b=this._section=$e("section",i+"-list");f&&(this._map.on("click",this.collapse,this),Me(l,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var M=this._layersLink=$e("a",i+"-toggle",l);M.href="#",M.title="Layers",M.setAttribute("role","button"),Me(M,{keydown:function(F){F.keyCode===13&&this._expandSafely()},click:function(F){Ct(F),this._expandSafely()}},this),f||this.expand(),this._baseLayersList=$e("div",i+"-base",b),this._separator=$e("div",i+"-separator",b),this._overlaysList=$e("div",i+"-overlays",b),l.appendChild(b)},_getLayer:function(i){for(var l=0;l<this._layers.length;l++)if(this._layers[l]&&c(this._layers[l].layer)===i)return this._layers[l]},_addLayer:function(i,l,f){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:l,overlay:f}),this.options.sortLayers&&this._layers.sort(s(function(b,M){return this.options.sortFunction(b.layer,M.layer,b.name,M.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Mo(this._baseLayersList),Mo(this._overlaysList),this._layerControlInputs=[];var i,l,f,b,M=0;for(f=0;f<this._layers.length;f++)b=this._layers[f],this._addItem(b),l=l||b.overlay,i=i||!b.overlay,M+=b.overlay?0:1;return this.options.hideSingleBase&&(i=i&&M>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=l&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var l=this._getLayer(c(i.target)),f=l.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;f&&this._map.fire(f,l)},_createRadioElement:function(i,l){var f='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(l?' checked="checked"':"")+"/>",b=document.createElement("div");return b.innerHTML=f,b.firstChild},_addItem:function(i){var l=document.createElement("label"),f=this._map.hasLayer(i.layer),b;i.overlay?(b=document.createElement("input"),b.type="checkbox",b.className="leaflet-control-layers-selector",b.defaultChecked=f):b=this._createRadioElement("leaflet-base-layers_"+c(this),f),this._layerControlInputs.push(b),b.layerId=c(i.layer),Me(b,"click",this._onInputClick,this);var M=document.createElement("span");M.innerHTML=" "+i.name;var F=document.createElement("span");l.appendChild(F),F.appendChild(b),F.appendChild(M);var Y=i.overlay?this._overlaysList:this._baseLayersList;return Y.appendChild(l),this._checkDisabledLayers(),l},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,l,f,b=[],M=[];this._handlingClick=!0;for(var F=i.length-1;F>=0;F--)l=i[F],f=this._getLayer(l.layerId).layer,l.checked?b.push(f):l.checked||M.push(f);for(F=0;F<M.length;F++)this._map.hasLayer(M[F])&&this._map.removeLayer(M[F]);for(F=0;F<b.length;F++)this._map.hasLayer(b[F])||this._map.addLayer(b[F]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,l,f,b=this._map.getZoom(),M=i.length-1;M>=0;M--)l=i[M],f=this._getLayer(l.layerId).layer,l.disabled=f.options.minZoom!==void 0&&b<f.options.minZoom||f.options.maxZoom!==void 0&&b>f.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,Me(i,"click",Ct),this.expand();var l=this;setTimeout(function(){Ge(i,"click",Ct),l._preventClick=!1})}}),bw=function(i,l,f){return new rh(i,l,f)},Bl=br.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var l="leaflet-control-zoom",f=$e("div",l+" leaflet-bar"),b=this.options;return this._zoomInButton=this._createButton(b.zoomInText,b.zoomInTitle,l+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(b.zoomOutText,b.zoomOutTitle,l+"-out",f,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),f},onRemove:function(i){i.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,l,f,b,M){var F=$e("a",f,b);return F.innerHTML=i,F.href="#",F.title=l,F.setAttribute("role","button"),F.setAttribute("aria-label",l),ca(F),Me(F,"click",zn),Me(F,"click",M,this),Me(F,"click",this._refocusOnMap,this),F},_updateDisabled:function(){var i=this._map,l="leaflet-disabled";lt(this._zoomInButton,l),lt(this._zoomOutButton,l),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(Re(this._zoomOutButton,l),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(Re(this._zoomInButton,l),this._zoomInButton.setAttribute("aria-disabled","true"))}});Le.mergeOptions({zoomControl:!0}),Le.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Bl,this.addControl(this.zoomControl))});var _w=function(i){return new Bl(i)},nh=br.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var l="leaflet-control-scale",f=$e("div",l),b=this.options;return this._addScales(b,l+"-line",f),i.on(b.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),f},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,l,f){i.metric&&(this._mScale=$e("div",l,f)),i.imperial&&(this._iScale=$e("div",l,f))},_update:function(){var i=this._map,l=i.getSize().y/2,f=i.distance(i.containerPointToLatLng([0,l]),i.containerPointToLatLng([this.options.maxWidth,l]));this._updateScales(f)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var l=this._getRoundNum(i),f=l<1e3?l+" m":l/1e3+" km";this._updateScale(this._mScale,f,l/i)},_updateImperial:function(i){var l=i*3.2808399,f,b,M;l>5280?(f=l/5280,b=this._getRoundNum(f),this._updateScale(this._iScale,b+" mi",b/f)):(M=this._getRoundNum(l),this._updateScale(this._iScale,M+" ft",M/l))},_updateScale:function(i,l,f){i.style.width=Math.round(this.options.maxWidth*f)+"px",i.innerHTML=l},_getRoundNum:function(i){var l=Math.pow(10,(Math.floor(i)+"").length-1),f=i/l;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,l*f}}),ww=function(i){return new nh(i)},xw='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Hl=br.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ge.inlineSvg?xw+" ":"")+"Leaflet</a>"},initialize:function(i){y(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=$e("div","leaflet-control-attribution"),ca(this._container);for(var l in i._layers)i._layers[l].getAttribution&&this.addAttribution(i._layers[l].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var l in this._attributions)this._attributions[l]&&i.push(l);var f=[];this.options.prefix&&f.push(this.options.prefix),i.length&&f.push(i.join(", ")),this._container.innerHTML=f.join(' <span aria-hidden="true">|</span> ')}}});Le.mergeOptions({attributionControl:!0}),Le.addInitHook(function(){this.options.attributionControl&&new Hl().addTo(this)});var Cw=function(i){return new Hl(i)};br.Layers=rh,br.Zoom=Bl,br.Scale=nh,br.Attribution=Hl,da.layers=bw,da.zoom=_w,da.scale=ww,da.attribution=Cw;var Pr=j.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Pr.addTo=function(i,l){return i.addHandler(l,this),this};var Tw={Events:B},ih=ge.touch?"touchstart mousedown":"mousedown",dn=G.extend({options:{clickTolerance:3},initialize:function(i,l,f,b){y(this,b),this._element=i,this._dragStartTarget=l||i,this._preventOutline=f},enable:function(){this._enabled||(Me(this._dragStartTarget,ih,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(dn._dragging===this&&this.finishDrag(!0),Ge(this._dragStartTarget,ih,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!Rl(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){dn._dragging===this&&this.finishDrag();return}if(!(dn._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(dn._dragging=this,this._preventOutline&&Ll(this._element),Nl(),sa(),!this._moving)){this.fire("down");var l=i.touches?i.touches[0]:i,f=Zf(this._element);this._startPoint=new q(l.clientX,l.clientY),this._startPos=In(this._element),this._parentScale=Il(f);var b=i.type==="mousedown";Me(document,b?"mousemove":"touchmove",this._onMove,this),Me(document,b?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var l=i.touches&&i.touches.length===1?i.touches[0]:i,f=new q(l.clientX,l.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)<this.options.clickTolerance||(f.x/=this._parentScale.x,f.y/=this._parentScale.y,Ct(i),this._moved||(this.fire("dragstart"),this._moved=!0,Re(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Re(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(f),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),mt(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){lt(document.body,"leaflet-dragging"),this._lastTarget&&(lt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ge(document,"mousemove touchmove",this._onMove,this),Ge(document,"mouseup touchend touchcancel",this._onUp,this),Dl(),la();var l=this._moved&&this._moving;this._moving=!1,dn._dragging=!1,l&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function ah(i,l,f){var b,M=[1,4,2,8],F,Y,ne,ae,de,me,xe,Ne;for(F=0,me=i.length;F<me;F++)i[F]._code=Fn(i[F],l);for(ne=0;ne<4;ne++){for(xe=M[ne],b=[],F=0,me=i.length,Y=me-1;F<me;Y=F++)ae=i[F],de=i[Y],ae._code&xe?de._code&xe||(Ne=No(de,ae,xe,l,f),Ne._code=Fn(Ne,l),b.push(Ne)):(de._code&xe&&(Ne=No(de,ae,xe,l,f),Ne._code=Fn(Ne,l),b.push(Ne)),b.push(ae));i=b}return i}function oh(i,l){var f,b,M,F,Y,ne,ae,de,me;if(!i||i.length===0)throw new Error("latlngs not passed");er(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var xe=ie([0,0]),Ne=K(i),Dt=Ne.getNorthWest().distanceTo(Ne.getSouthWest())*Ne.getNorthEast().distanceTo(Ne.getNorthWest());Dt<1700&&(xe=Vl(i));var wt=i.length,tr=[];for(f=0;f<wt;f++){var Wt=ie(i[f]);tr.push(l.project(ie([Wt.lat-xe.lat,Wt.lng-xe.lng])))}for(ne=ae=de=0,f=0,b=wt-1;f<wt;b=f++)M=tr[f],F=tr[b],Y=M.y*F.x-F.y*M.x,ae+=(M.x+F.x)*Y,de+=(M.y+F.y)*Y,ne+=Y*3;ne===0?me=tr[0]:me=[ae/ne,de/ne];var fi=l.unproject(z(me));return ie([fi.lat+xe.lat,fi.lng+xe.lng])}function Vl(i){for(var l=0,f=0,b=0,M=0;M<i.length;M++){var F=ie(i[M]);l+=F.lat,f+=F.lng,b++}return ie([l/b,f/b])}var Sw={__proto__:null,clipPolygon:ah,polygonCenter:oh,centroid:Vl};function sh(i,l){if(!l||!i.length)return i.slice();var f=l*l;return i=Pw(i,f),i=Mw(i,f),i}function lh(i,l,f){return Math.sqrt(fa(i,l,f,!0))}function Ew(i,l,f){return fa(i,l,f)}function Mw(i,l){var f=i.length,b=typeof Uint8Array!="undefined"?Uint8Array:Array,M=new b(f);M[0]=M[f-1]=1,Ul(i,M,l,0,f-1);var F,Y=[];for(F=0;F<f;F++)M[F]&&Y.push(i[F]);return Y}function Ul(i,l,f,b,M){var F=0,Y,ne,ae;for(ne=b+1;ne<=M-1;ne++)ae=fa(i[ne],i[b],i[M],!0),ae>F&&(Y=ne,F=ae);F>f&&(l[Y]=1,Ul(i,l,f,b,Y),Ul(i,l,f,Y,M))}function Pw(i,l){for(var f=[i[0]],b=1,M=0,F=i.length;b<F;b++)Rw(i[b],i[M])>l&&(f.push(i[b]),M=b);return M<F-1&&f.push(i[F-1]),f}var uh;function ch(i,l,f,b,M){var F=b?uh:Fn(i,f),Y=Fn(l,f),ne,ae,de;for(uh=Y;;){if(!(F|Y))return[i,l];if(F&Y)return!1;ne=F||Y,ae=No(i,l,ne,f,M),de=Fn(ae,f),ne===F?(i=ae,F=de):(l=ae,Y=de)}}function No(i,l,f,b,M){var F=l.x-i.x,Y=l.y-i.y,ne=b.min,ae=b.max,de,me;return f&8?(de=i.x+F*(ae.y-i.y)/Y,me=ae.y):f&4?(de=i.x+F*(ne.y-i.y)/Y,me=ne.y):f&2?(de=ae.x,me=i.y+Y*(ae.x-i.x)/F):f&1&&(de=ne.x,me=i.y+Y*(ne.x-i.x)/F),new q(de,me,M)}function Fn(i,l){var f=0;return i.x<l.min.x?f|=1:i.x>l.max.x&&(f|=2),i.y<l.min.y?f|=4:i.y>l.max.y&&(f|=8),f}function Rw(i,l){var f=l.x-i.x,b=l.y-i.y;return f*f+b*b}function fa(i,l,f,b){var M=l.x,F=l.y,Y=f.x-M,ne=f.y-F,ae=Y*Y+ne*ne,de;return ae>0&&(de=((i.x-M)*Y+(i.y-F)*ne)/ae,de>1?(M=f.x,F=f.y):de>0&&(M+=Y*de,F+=ne*de)),Y=i.x-M,ne=i.y-F,b?Y*Y+ne*ne:new q(M,F)}function er(i){return!T(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]!="undefined"}function dh(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),er(i)}function fh(i,l){var f,b,M,F,Y,ne,ae,de;if(!i||i.length===0)throw new Error("latlngs not passed");er(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var me=ie([0,0]),xe=K(i),Ne=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Ne<1700&&(me=Vl(i));var Dt=i.length,wt=[];for(f=0;f<Dt;f++){var tr=ie(i[f]);wt.push(l.project(ie([tr.lat-me.lat,tr.lng-me.lng])))}for(f=0,b=0;f<Dt-1;f++)b+=wt[f].distanceTo(wt[f+1])/2;if(b===0)de=wt[0];else for(f=0,F=0;f<Dt-1;f++)if(Y=wt[f],ne=wt[f+1],M=Y.distanceTo(ne),F+=M,F>b){ae=(F-b)/M,de=[ne.x-ae*(ne.x-Y.x),ne.y-ae*(ne.y-Y.y)];break}var Wt=l.unproject(z(de));return ie([Wt.lat+me.lat,Wt.lng+me.lng])}var Ow={__proto__:null,simplify:sh,pointToSegmentDistance:lh,closestPointOnSegment:Ew,clipSegment:ch,_getEdgeIntersection:No,_getBitCode:Fn,_sqClosestPointOnSegment:fa,isFlat:er,_flat:dh,polylineCenter:fh},ql={project:function(i){return new q(i.lng,i.lat)},unproject:function(i){return new J(i.y,i.x)},bounds:new H([-180,-90],[180,90])},Gl={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var l=Math.PI/180,f=this.R,b=i.lat*l,M=this.R_MINOR/f,F=Math.sqrt(1-M*M),Y=F*Math.sin(b),ne=Math.tan(Math.PI/4-b/2)/Math.pow((1-Y)/(1+Y),F/2);return b=-f*Math.log(Math.max(ne,1e-10)),new q(i.lng*l*f,b)},unproject:function(i){for(var l=180/Math.PI,f=this.R,b=this.R_MINOR/f,M=Math.sqrt(1-b*b),F=Math.exp(-i.y/f),Y=Math.PI/2-2*Math.atan(F),ne=0,ae=.1,de;ne<15&&Math.abs(ae)>1e-7;ne++)de=M*Math.sin(Y),de=Math.pow((1-de)/(1+de),M/2),ae=Math.PI/2-2*Math.atan(F*de)-Y,Y+=ae;return new J(Y*l,i.x*l/f)}},kw={__proto__:null,LonLat:ql,Mercator:Gl,SphericalMercator:he},Nw=a({},se,{code:"EPSG:3395",projection:Gl,transformation:function(){var i=.5/(Math.PI*Gl.R);return oe(i,.5,-i,.5)}()}),hh=a({},se,{code:"EPSG:4326",projection:ql,transformation:oe(1/180,1,-1/180,.5)}),Dw=a({},le,{projection:ql,transformation:oe(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,l){var f=l.lng-i.lng,b=l.lat-i.lat;return Math.sqrt(f*f+b*b)},infinite:!0});le.Earth=se,le.EPSG3395=Nw,le.EPSG3857=ve,le.EPSG900913=fe,le.EPSG4326=hh,le.Simple=Dw;var _r=G.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[c(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[c(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var l=i.target;if(l.hasLayer(this)){if(this._map=l,this._zoomAnimated=l._zoomAnimated,this.getEvents){var f=this.getEvents();l.on(f,this),this.once("remove",function(){l.off(f,this)},this)}this.onAdd(l),this.fire("add"),l.fire("layeradd",{layer:this})}}});Le.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var l=c(i);return this._layers[l]?this:(this._layers[l]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var l=c(i);return this._layers[l]?(this._loaded&&i.onRemove(this),delete this._layers[l],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return c(i)in this._layers},eachLayer:function(i,l){for(var f in this._layers)i.call(l,this._layers[f]);return this},_addLayers:function(i){i=i?T(i)?i:[i]:[];for(var l=0,f=i.length;l<f;l++)this.addLayer(i[l])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[c(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var l=c(i);this._zoomBoundLayers[l]&&(delete this._zoomBoundLayers[l],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,l=-1/0,f=this._getZoomSpan();for(var b in this._zoomBoundLayers){var M=this._zoomBoundLayers[b].options;i=M.minZoom===void 0?i:Math.min(i,M.minZoom),l=M.maxZoom===void 0?l:Math.max(l,M.maxZoom)}this._layersMaxZoom=l===-1/0?void 0:l,this._layersMinZoom=i===1/0?void 0:i,f!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var si=_r.extend({initialize:function(i,l){y(this,l),this._layers={};var f,b;if(i)for(f=0,b=i.length;f<b;f++)this.addLayer(i[f])},addLayer:function(i){var l=this.getLayerId(i);return this._layers[l]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var l=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[l]&&this._map.removeLayer(this._layers[l]),delete this._layers[l],this},hasLayer:function(i){var l=typeof i=="number"?i:this.getLayerId(i);return l in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var l=Array.prototype.slice.call(arguments,1),f,b;for(f in this._layers)b=this._layers[f],b[i]&&b[i].apply(b,l);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,l){for(var f in this._layers)i.call(l,this._layers[f]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return c(i)}}),Aw=function(i,l){return new si(i,l)},qr=si.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),si.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),si.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new X;for(var l in this._layers){var f=this._layers[l];i.extend(f.getBounds?f.getBounds():f.getLatLng())}return i}}),Lw=function(i,l){return new qr(i,l)},li=j.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){y(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,l){var f=this._getIconUrl(i);if(!f){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var b=this._createImg(f,l&&l.tagName==="IMG"?l:null);return this._setIconStyles(b,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),b},_setIconStyles:function(i,l){var f=this.options,b=f[l+"Size"];typeof b=="number"&&(b=[b,b]);var M=z(b),F=z(l==="shadow"&&f.shadowAnchor||f.iconAnchor||M&&M.divideBy(2,!0));i.className="leaflet-marker-"+l+" "+(f.className||""),F&&(i.style.marginLeft=-F.x+"px",i.style.marginTop=-F.y+"px"),M&&(i.style.width=M.x+"px",i.style.height=M.y+"px")},_createImg:function(i,l){return l=l||document.createElement("img"),l.src=i,l},_getIconUrl:function(i){return ge.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function Iw(i){return new li(i)}var ha=li.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof ha.imagePath!="string"&&(ha.imagePath=this._detectIconPath()),(this.options.imagePath||ha.imagePath)+li.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var l=function(f,b,M){var F=b.exec(f);return F&&F[M]};return i=l(i,/^url\((['"])?(.+)\1\)$/,2),i&&l(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=$e("div","leaflet-default-icon-path",document.body),l=oa(i,"background-image")||oa(i,"backgroundImage");if(document.body.removeChild(i),l=this._stripUrl(l),l)return l;var f=document.querySelector('link[href$="leaflet.css"]');return f?f.href.substring(0,f.href.length-11-1):""}}),ph=Pr.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new dn(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Re(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&lt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var l=this._marker,f=l._map,b=this._marker.options.autoPanSpeed,M=this._marker.options.autoPanPadding,F=In(l._icon),Y=f.getPixelBounds(),ne=f.getPixelOrigin(),ae=te(Y.min._subtract(ne).add(M),Y.max._subtract(ne).subtract(M));if(!ae.contains(F)){var de=z((Math.max(ae.max.x,F.x)-ae.max.x)/(Y.max.x-ae.max.x)-(Math.min(ae.min.x,F.x)-ae.min.x)/(Y.min.x-ae.min.x),(Math.max(ae.max.y,F.y)-ae.max.y)/(Y.max.y-ae.max.y)-(Math.min(ae.min.y,F.y)-ae.min.y)/(Y.min.y-ae.min.y)).multiplyBy(b);f.panBy(de,{animate:!1}),this._draggable._newPos._add(de),this._draggable._startPos._add(de),mt(l._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=N(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=N(this._adjustPan.bind(this,i)))},_onDrag:function(i){var l=this._marker,f=l._shadow,b=In(l._icon),M=l._map.layerPointToLatLng(b);f&&mt(f,b),l._latlng=M,i.latlng=M,i.oldLatLng=this._oldLatLng,l.fire("move",i).fire("drag",i)},_onDragEnd:function(i){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),Do=_r.extend({options:{icon:new ha,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,l){y(this,l),this._latlng=ie(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var l=this._latlng;return this._latlng=ie(i),this.update(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,l="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),f=i.icon.createIcon(this._icon),b=!1;f!==this._icon&&(this._icon&&this._removeIcon(),b=!0,i.title&&(f.title=i.title),f.tagName==="IMG"&&(f.alt=i.alt||"")),Re(f,l),i.keyboard&&(f.tabIndex="0",f.setAttribute("role","button")),this._icon=f,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Me(f,"focus",this._panOnFocus,this);var M=i.icon.createShadow(this._shadow),F=!1;M!==this._shadow&&(this._removeShadow(),F=!0),M&&(Re(M,l),M.alt=""),this._shadow=M,i.opacity<1&&this._updateOpacity(),b&&this.getPane().appendChild(this._icon),this._initInteraction(),M&&F&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ge(this._icon,"focus",this._panOnFocus,this),Je(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Je(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&mt(this._icon,i),this._shadow&&mt(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var l=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(l)},_initInteraction:function(){if(this.options.interactive&&(Re(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ph)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ph(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&Jt(this._icon,i),this._shadow&&Jt(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var l=this.options.icon.options,f=l.iconSize?z(l.iconSize):z(0,0),b=l.iconAnchor?z(l.iconAnchor):z(0,0);i.panInside(this._latlng,{paddingTopLeft:b,paddingBottomRight:f.subtract(b)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function $w(i,l){return new Do(i,l)}var fn=_r.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return y(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Ao=fn.extend({options:{fill:!0,radius:10},initialize:function(i,l){y(this,l),this._latlng=ie(i),this._radius=this.options.radius},setLatLng:function(i){var l=this._latlng;return this._latlng=ie(i),this.redraw(),this.fire("move",{oldLatLng:l,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var l=i&&i.radius||this._radius;return fn.prototype.setStyle.call(this,i),this.setRadius(l),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,l=this._radiusY||i,f=this._clickTolerance(),b=[i+f,l+f];this._pxBounds=new H(this._point.subtract(b),this._point.add(b))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function zw(i,l){return new Ao(i,l)}var Yl=Ao.extend({initialize:function(i,l,f){if(typeof l=="number"&&(l=a({},f,{radius:l})),y(this,l),this._latlng=ie(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new X(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:fn.prototype.setStyle,_project:function(){var i=this._latlng.lng,l=this._latlng.lat,f=this._map,b=f.options.crs;if(b.distance===se.distance){var M=Math.PI/180,F=this._mRadius/se.R/M,Y=f.project([l+F,i]),ne=f.project([l-F,i]),ae=Y.add(ne).divideBy(2),de=f.unproject(ae).lat,me=Math.acos((Math.cos(F*M)-Math.sin(l*M)*Math.sin(de*M))/(Math.cos(l*M)*Math.cos(de*M)))/M;(isNaN(me)||me===0)&&(me=F/Math.cos(Math.PI/180*l)),this._point=ae.subtract(f.getPixelOrigin()),this._radius=isNaN(me)?0:ae.x-f.project([de,i-me]).x,this._radiusY=ae.y-Y.y}else{var xe=b.unproject(b.project(this._latlng).subtract([this._mRadius,0]));this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(xe).x}this._updateBounds()}});function Fw(i,l,f){return new Yl(i,l,f)}var Gr=fn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,l){y(this,l),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var l=1/0,f=null,b=fa,M,F,Y=0,ne=this._parts.length;Y<ne;Y++)for(var ae=this._parts[Y],de=1,me=ae.length;de<me;de++){M=ae[de-1],F=ae[de];var xe=b(i,M,F,!0);xe<l&&(l=xe,f=b(i,M,F))}return f&&(f.distance=Math.sqrt(l)),f},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return fh(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,l){return l=l||this._defaultShape(),i=ie(i),l.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new X,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return er(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var l=[],f=er(i),b=0,M=i.length;b<M;b++)f?(l[b]=ie(i[b]),this._bounds.extend(l[b])):l[b]=this._convertLatLngs(i[b]);return l},_project:function(){var i=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),l=new q(i,i);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(l),this._rawPxBounds.max.add(l)]))},_projectLatlngs:function(i,l,f){var b=i[0]instanceof J,M=i.length,F,Y;if(b){for(Y=[],F=0;F<M;F++)Y[F]=this._map.latLngToLayerPoint(i[F]),f.extend(Y[F]);l.push(Y)}else for(F=0;F<M;F++)this._projectLatlngs(i[F],l,f)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var l=this._parts,f,b,M,F,Y,ne,ae;for(f=0,M=0,F=this._rings.length;f<F;f++)for(ae=this._rings[f],b=0,Y=ae.length;b<Y-1;b++)ne=ch(ae[b],ae[b+1],i,b,!0),ne&&(l[M]=l[M]||[],l[M].push(ne[0]),(ne[1]!==ae[b+1]||b===Y-2)&&(l[M].push(ne[1]),M++))}},_simplifyPoints:function(){for(var i=this._parts,l=this.options.smoothFactor,f=0,b=i.length;f<b;f++)i[f]=sh(i[f],l)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,l){var f,b,M,F,Y,ne,ae=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(f=0,F=this._parts.length;f<F;f++)for(ne=this._parts[f],b=0,Y=ne.length,M=Y-1;b<Y;M=b++)if(!(!l&&b===0)&&lh(i,ne[M],ne[b])<=ae)return!0;return!1}});function Ww(i,l){return new Gr(i,l)}Gr._flat=dh;var ui=Gr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return oh(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var l=Gr.prototype._convertLatLngs.call(this,i),f=l.length;return f>=2&&l[0]instanceof J&&l[0].equals(l[f-1])&&l.pop(),l},_setLatLngs:function(i){Gr.prototype._setLatLngs.call(this,i),er(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return er(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,l=this.options.weight,f=new q(l,l);if(i=new H(i.min.subtract(f),i.max.add(f)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var b=0,M=this._rings.length,F;b<M;b++)F=ah(this._rings[b],i,!0),F.length&&this._parts.push(F)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var l=!1,f,b,M,F,Y,ne,ae,de;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(F=0,ae=this._parts.length;F<ae;F++)for(f=this._parts[F],Y=0,de=f.length,ne=de-1;Y<de;ne=Y++)b=f[Y],M=f[ne],b.y>i.y!=M.y>i.y&&i.x<(M.x-b.x)*(i.y-b.y)/(M.y-b.y)+b.x&&(l=!l);return l||Gr.prototype._containsPoint.call(this,i,!0)}});function jw(i,l){return new ui(i,l)}var Yr=qr.extend({initialize:function(i,l){y(this,l),this._layers={},i&&this.addData(i)},addData:function(i){var l=T(i)?i:i.features,f,b,M;if(l){for(f=0,b=l.length;f<b;f++)M=l[f],(M.geometries||M.geometry||M.features||M.coordinates)&&this.addData(M);return this}var F=this.options;if(F.filter&&!F.filter(i))return this;var Y=Lo(i,F);return Y?(Y.feature=zo(i),Y.defaultOptions=Y.options,this.resetStyle(Y),F.onEachFeature&&F.onEachFeature(i,Y),this.addLayer(Y)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=a({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(l){this._setLayerStyle(l,i)},this)},_setLayerStyle:function(i,l){i.setStyle&&(typeof l=="function"&&(l=l(i.feature)),i.setStyle(l))}});function Lo(i,l){var f=i.type==="Feature"?i.geometry:i,b=f?f.coordinates:null,M=[],F=l&&l.pointToLayer,Y=l&&l.coordsToLatLng||Xl,ne,ae,de,me;if(!b&&!f)return null;switch(f.type){case"Point":return ne=Y(b),mh(F,i,ne,l);case"MultiPoint":for(de=0,me=b.length;de<me;de++)ne=Y(b[de]),M.push(mh(F,i,ne,l));return new qr(M);case"LineString":case"MultiLineString":return ae=Io(b,f.type==="LineString"?0:1,Y),new Gr(ae,l);case"Polygon":case"MultiPolygon":return ae=Io(b,f.type==="Polygon"?1:2,Y),new ui(ae,l);case"GeometryCollection":for(de=0,me=f.geometries.length;de<me;de++){var xe=Lo({geometry:f.geometries[de],type:"Feature",properties:i.properties},l);xe&&M.push(xe)}return new qr(M);case"FeatureCollection":for(de=0,me=f.features.length;de<me;de++){var Ne=Lo(f.features[de],l);Ne&&M.push(Ne)}return new qr(M);default:throw new Error("Invalid GeoJSON object.")}}function mh(i,l,f,b){return i?i(l,f):new Do(f,b&&b.markersInheritOptions&&b)}function Xl(i){return new J(i[1],i[0],i[2])}function Io(i,l,f){for(var b=[],M=0,F=i.length,Y;M<F;M++)Y=l?Io(i[M],l-1,f):(f||Xl)(i[M]),b.push(Y);return b}function Zl(i,l){return i=ie(i),i.alt!==void 0?[p(i.lng,l),p(i.lat,l),p(i.alt,l)]:[p(i.lng,l),p(i.lat,l)]}function $o(i,l,f,b){for(var M=[],F=0,Y=i.length;F<Y;F++)M.push(l?$o(i[F],er(i[F])?0:l-1,f,b):Zl(i[F],b));return!l&&f&&M.length>0&&M.push(M[0].slice()),M}function ci(i,l){return i.feature?a({},i.feature,{geometry:l}):zo(l)}function zo(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var Kl={toGeoJSON:function(i){return ci(this,{type:"Point",coordinates:Zl(this.getLatLng(),i)})}};Do.include(Kl),Yl.include(Kl),Ao.include(Kl),Gr.include({toGeoJSON:function(i){var l=!er(this._latlngs),f=$o(this._latlngs,l?1:0,!1,i);return ci(this,{type:(l?"Multi":"")+"LineString",coordinates:f})}}),ui.include({toGeoJSON:function(i){var l=!er(this._latlngs),f=l&&!er(this._latlngs[0]),b=$o(this._latlngs,f?2:l?1:0,!0,i);return l||(b=[b]),ci(this,{type:(f?"Multi":"")+"Polygon",coordinates:b})}}),si.include({toMultiPoint:function(i){var l=[];return this.eachLayer(function(f){l.push(f.toGeoJSON(i).geometry.coordinates)}),ci(this,{type:"MultiPoint",coordinates:l})},toGeoJSON:function(i){var l=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(l==="MultiPoint")return this.toMultiPoint(i);var f=l==="GeometryCollection",b=[];return this.eachLayer(function(M){if(M.toGeoJSON){var F=M.toGeoJSON(i);if(f)b.push(F.geometry);else{var Y=zo(F);Y.type==="FeatureCollection"?b.push.apply(b,Y.features):b.push(Y)}}}),f?ci(this,{geometries:b,type:"GeometryCollection"}):{type:"FeatureCollection",features:b}}});function vh(i,l){return new Yr(i,l)}var Bw=vh,Fo=_r.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,l,f){this._url=i,this._bounds=K(l),y(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Re(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Je(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&ai(this._image),this},bringToBack:function(){return this._map&&oi(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=K(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",l=this._image=i?this._url:$e("img");if(Re(l,"leaflet-image-layer"),this._zoomAnimated&&Re(l,"leaflet-zoom-animated"),this.options.className&&Re(l,this.options.className),l.onselectstart=m,l.onmousemove=m,l.onload=s(this.fire,this,"load"),l.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(l.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=l.src;return}l.src=this._url,l.alt=this.options.alt},_animateZoom:function(i){var l=this._map.getZoomScale(i.zoom),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;Ln(this._image,f,l)},_reset:function(){var i=this._image,l=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=l.getSize();mt(i,l.min),i.style.width=f.x+"px",i.style.height=f.y+"px"},_updateOpacity:function(){Jt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),Hw=function(i,l,f){return new Fo(i,l,f)},gh=Fo.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",l=this._image=i?this._url:$e("video");if(Re(l,"leaflet-image-layer"),this._zoomAnimated&&Re(l,"leaflet-zoom-animated"),this.options.className&&Re(l,this.options.className),l.onselectstart=m,l.onmousemove=m,l.onloadeddata=s(this.fire,this,"load"),i){for(var f=l.getElementsByTagName("source"),b=[],M=0;M<f.length;M++)b.push(f[M].src);this._url=f.length>0?b:[l.src];return}T(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(l.style,"objectFit")&&(l.style.objectFit="fill"),l.autoplay=!!this.options.autoplay,l.loop=!!this.options.loop,l.muted=!!this.options.muted,l.playsInline=!!this.options.playsInline;for(var F=0;F<this._url.length;F++){var Y=$e("source");Y.src=this._url[F],l.appendChild(Y)}}});function Vw(i,l,f){return new gh(i,l,f)}var yh=Fo.extend({_initImage:function(){var i=this._image=this._url;Re(i,"leaflet-image-layer"),this._zoomAnimated&&Re(i,"leaflet-zoom-animated"),this.options.className&&Re(i,this.options.className),i.onselectstart=m,i.onmousemove=m}});function Uw(i,l,f){return new yh(i,l,f)}var Rr=_r.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,l){i&&(i instanceof J||T(i))?(this._latlng=ie(i),y(this,l)):(y(this,i),this._source=l),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&Jt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&Jt(this._container,1),this.bringToFront(),this.options.interactive&&(Re(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(Jt(this._container,0),this._removeTimeout=setTimeout(s(Je,void 0,this._container),200)):Je(this._container),this.options.interactive&&(lt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=ie(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ai(this._container),this},bringToBack:function(){return this._map&&oi(this._container),this},_prepareOpen:function(i){var l=this._source;if(!l._map)return!1;if(l instanceof qr){l=null;var f=this._source._layers;for(var b in f)if(f[b]._map){l=f[b];break}if(!l)return!1;this._source=l}if(!i)if(l.getCenter)i=l.getCenter();else if(l.getLatLng)i=l.getLatLng();else if(l.getBounds)i=l.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,l=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof l=="string")i.innerHTML=l;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(l)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),l=z(this.options.offset),f=this._getAnchor();this._zoomAnimated?mt(this._container,i.add(f)):l=l.add(i).add(f);var b=this._containerBottom=-l.y,M=this._containerLeft=-Math.round(this._containerWidth/2)+l.x;this._container.style.bottom=b+"px",this._container.style.left=M+"px"}},_getAnchor:function(){return[0,0]}});Le.include({_initOverlay:function(i,l,f,b){var M=l;return M instanceof i||(M=new i(b).setContent(l)),f&&M.setLatLng(f),M}}),_r.include({_initOverlay:function(i,l,f,b){var M=f;return M instanceof i?(y(M,b),M._source=this):(M=l&&!b?l:new i(b,this),M.setContent(f)),M}});var Wo=Rr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,Rr.prototype.openOn.call(this,i)},onAdd:function(i){Rr.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof fn||this._source.on("preclick",$n))},onRemove:function(i){Rr.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof fn||this._source.off("preclick",$n))},getEvents:function(){var i=Rr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",l=this._container=$e("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),f=this._wrapper=$e("div",i+"-content-wrapper",l);if(this._contentNode=$e("div",i+"-content",f),ca(l),Wl(this._contentNode),Me(l,"contextmenu",$n),this._tipContainer=$e("div",i+"-tip-container",l),this._tip=$e("div",i+"-tip",this._tipContainer),this.options.closeButton){var b=this._closeButton=$e("a",i+"-close-button",l);b.setAttribute("role","button"),b.setAttribute("aria-label","Close popup"),b.href="#close",b.innerHTML='<span aria-hidden="true">&#215;</span>',Me(b,"click",function(M){Ct(M),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,l=i.style;l.width="",l.whiteSpace="nowrap";var f=i.offsetWidth;f=Math.min(f,this.options.maxWidth),f=Math.max(f,this.options.minWidth),l.width=f+1+"px",l.whiteSpace="",l.height="";var b=i.offsetHeight,M=this.options.maxHeight,F="leaflet-popup-scrolled";M&&b>M?(l.height=M+"px",Re(i,F)):lt(i,F),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var l=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),f=this._getAnchor();mt(this._container,l.add(f))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,l=parseInt(oa(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+l,b=this._containerWidth,M=new q(this._containerLeft,-f-this._containerBottom);M._add(In(this._container));var F=i.layerPointToContainerPoint(M),Y=z(this.options.autoPanPadding),ne=z(this.options.autoPanPaddingTopLeft||Y),ae=z(this.options.autoPanPaddingBottomRight||Y),de=i.getSize(),me=0,xe=0;F.x+b+ae.x>de.x&&(me=F.x+b-de.x+ae.x),F.x-me-ne.x<0&&(me=F.x-ne.x),F.y+f+ae.y>de.y&&(xe=F.y+f-de.y+ae.y),F.y-xe-ne.y<0&&(xe=F.y-ne.y),(me||xe)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([me,xe]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),qw=function(i,l){return new Wo(i,l)};Le.mergeOptions({closePopupOnClick:!0}),Le.include({openPopup:function(i,l,f){return this._initOverlay(Wo,i,l,f).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),_r.include({bindPopup:function(i,l){return this._popup=this._initOverlay(Wo,this._popup,i,l),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(i){return this._popup&&(this instanceof qr||(this._popup._source=this),this._popup._prepareOpen(i||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){zn(i);var l=i.layer||i.target;if(this._popup._source===l&&!(l instanceof fn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=l,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var jo=Rr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){Rr.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){Rr.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=Rr.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",l=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=$e("div",l),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var l,f,b=this._map,M=this._container,F=b.latLngToContainerPoint(b.getCenter()),Y=b.layerPointToContainerPoint(i),ne=this.options.direction,ae=M.offsetWidth,de=M.offsetHeight,me=z(this.options.offset),xe=this._getAnchor();ne==="top"?(l=ae/2,f=de):ne==="bottom"?(l=ae/2,f=0):ne==="center"?(l=ae/2,f=de/2):ne==="right"?(l=0,f=de/2):ne==="left"?(l=ae,f=de/2):Y.x<F.x?(ne="right",l=0,f=de/2):(ne="left",l=ae+(me.x+xe.x)*2,f=de/2),i=i.subtract(z(l,f,!0)).add(me).add(xe),lt(M,"leaflet-tooltip-right"),lt(M,"leaflet-tooltip-left"),lt(M,"leaflet-tooltip-top"),lt(M,"leaflet-tooltip-bottom"),Re(M,"leaflet-tooltip-"+ne),mt(M,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&Jt(this._container,i)},_animateZoom:function(i){var l=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(l)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Gw=function(i,l){return new jo(i,l)};Le.include({openTooltip:function(i,l,f){return this._initOverlay(jo,i,l,f).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),_r.include({bindTooltip:function(i,l){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(jo,this._tooltip,i,l),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var l=i?"off":"on",f={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?f.add=this._openTooltip:(f.mouseover=this._openTooltip,f.mouseout=this.closeTooltip,f.click=this._openTooltip,this._map?this._addFocusListeners():f.add=this._addFocusListeners),this._tooltip.options.sticky&&(f.mousemove=this._moveTooltip),this[l](f),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof qr||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var l=typeof i.getElement=="function"&&i.getElement();l&&(Me(l,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),Me(l,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var l=typeof i.getElement=="function"&&i.getElement();l&&l.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var l=this;this._map.once("moveend",function(){l._openOnceFlag=!1,l._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var l=i.latlng,f,b;this._tooltip.options.sticky&&i.originalEvent&&(f=this._map.mouseEventToContainerPoint(i.originalEvent),b=this._map.containerPointToLayerPoint(f),l=this._map.layerPointToLatLng(b)),this._tooltip.setLatLng(l)}});var bh=li.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var l=i&&i.tagName==="DIV"?i:document.createElement("div"),f=this.options;if(f.html instanceof Element?(Mo(l),l.appendChild(f.html)):l.innerHTML=f.html!==!1?f.html:"",f.bgPos){var b=z(f.bgPos);l.style.backgroundPosition=-b.x+"px "+-b.y+"px"}return this._setIconStyles(l,"icon"),l},createShadow:function(){return null}});function Yw(i){return new bh(i)}li.Default=ha;var pa=_r.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ge.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){y(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),Je(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ai(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(oi(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof q?i:new q(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var l=this.getPane().children,f=-i(-1/0,1/0),b=0,M=l.length,F;b<M;b++)F=l[b].style.zIndex,l[b]!==this._container&&F&&(f=i(f,+F));isFinite(f)&&(this.options.zIndex=f+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ge.ielt9){Jt(this._container,this.options.opacity);var i=+new Date,l=!1,f=!1;for(var b in this._tiles){var M=this._tiles[b];if(!(!M.current||!M.loaded)){var F=Math.min(1,(i-M.loaded)/200);Jt(M.el,F),F<1?l=!0:(M.active?f=!0:this._onOpaqueTile(M),M.active=!0)}}f&&!this._noPrune&&this._pruneTiles(),l&&(k(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=$e("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,l=this.options.maxZoom;if(i!==void 0){for(var f in this._levels)f=Number(f),this._levels[f].el.children.length||f===i?(this._levels[f].el.style.zIndex=l-Math.abs(i-f),this._onUpdateLevel(f)):(Je(this._levels[f].el),this._removeTilesAtZoom(f),this._onRemoveLevel(f),delete this._levels[f]);var b=this._levels[i],M=this._map;return b||(b=this._levels[i]={},b.el=$e("div","leaflet-tile-container leaflet-zoom-animated",this._container),b.el.style.zIndex=l,b.origin=M.project(M.unproject(M.getPixelOrigin()),i).round(),b.zoom=i,this._setZoomTransform(b,M.getCenter(),M.getZoom()),this._onCreateLevel(b)),this._level=b,b}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var i,l,f=this._map.getZoom();if(f>this.options.maxZoom||f<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)l=this._tiles[i],l.retain=l.current;for(i in this._tiles)if(l=this._tiles[i],l.current&&!l.active){var b=l.coords;this._retainParent(b.x,b.y,b.z,b.z-5)||this._retainChildren(b.x,b.y,b.z,b.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var l in this._tiles)this._tiles[l].coords.z===i&&this._removeTile(l)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)Je(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,l,f,b){var M=Math.floor(i/2),F=Math.floor(l/2),Y=f-1,ne=new q(+M,+F);ne.z=+Y;var ae=this._tileCoordsToKey(ne),de=this._tiles[ae];return de&&de.active?(de.retain=!0,!0):(de&&de.loaded&&(de.retain=!0),Y>b?this._retainParent(M,F,Y,b):!1)},_retainChildren:function(i,l,f,b){for(var M=2*i;M<2*i+2;M++)for(var F=2*l;F<2*l+2;F++){var Y=new q(M,F);Y.z=f+1;var ne=this._tileCoordsToKey(Y),ae=this._tiles[ne];if(ae&&ae.active){ae.retain=!0;continue}else ae&&ae.loaded&&(ae.retain=!0);f+1<b&&this._retainChildren(M,F,f+1,b)}},_resetView:function(i){var l=i&&(i.pinch||i.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),l,l)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var l=this.options;return l.minNativeZoom!==void 0&&i<l.minNativeZoom?l.minNativeZoom:l.maxNativeZoom!==void 0&&l.maxNativeZoom<i?l.maxNativeZoom:i},_setView:function(i,l,f,b){var M=Math.round(l);this.options.maxZoom!==void 0&&M>this.options.maxZoom||this.options.minZoom!==void 0&&M<this.options.minZoom?M=void 0:M=this._clampZoom(M);var F=this.options.updateWhenZooming&&M!==this._tileZoom;(!b||F)&&(this._tileZoom=M,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),M!==void 0&&this._update(i),f||this._pruneTiles(),this._noPrune=!!f),this._setZoomTransforms(i,l)},_setZoomTransforms:function(i,l){for(var f in this._levels)this._setZoomTransform(this._levels[f],i,l)},_setZoomTransform:function(i,l,f){var b=this._map.getZoomScale(f,i.zoom),M=i.origin.multiplyBy(b).subtract(this._map._getNewPixelOrigin(l,f)).round();ge.any3d?Ln(i.el,M,b):mt(i.el,M)},_resetGrid:function(){var i=this._map,l=i.options.crs,f=this._tileSize=this.getTileSize(),b=this._tileZoom,M=this._map.getPixelWorldBounds(this._tileZoom);M&&(this._globalTileRange=this._pxBoundsToTileRange(M)),this._wrapX=l.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,l.wrapLng[0]],b).x/f.x),Math.ceil(i.project([0,l.wrapLng[1]],b).x/f.y)],this._wrapY=l.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([l.wrapLat[0],0],b).y/f.x),Math.ceil(i.project([l.wrapLat[1],0],b).y/f.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var l=this._map,f=l._animatingZoom?Math.max(l._animateToZoom,l.getZoom()):l.getZoom(),b=l.getZoomScale(f,this._tileZoom),M=l.project(i,this._tileZoom).floor(),F=l.getSize().divideBy(b*2);return new H(M.subtract(F),M.add(F))},_update:function(i){var l=this._map;if(l){var f=this._clampZoom(l.getZoom());if(i===void 0&&(i=l.getCenter()),this._tileZoom!==void 0){var b=this._getTiledPixelBounds(i),M=this._pxBoundsToTileRange(b),F=M.getCenter(),Y=[],ne=this.options.keepBuffer,ae=new H(M.getBottomLeft().subtract([ne,-ne]),M.getTopRight().add([ne,-ne]));if(!(isFinite(M.min.x)&&isFinite(M.min.y)&&isFinite(M.max.x)&&isFinite(M.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var de in this._tiles){var me=this._tiles[de].coords;(me.z!==this._tileZoom||!ae.contains(new q(me.x,me.y)))&&(this._tiles[de].current=!1)}if(Math.abs(f-this._tileZoom)>1){this._setView(i,f);return}for(var xe=M.min.y;xe<=M.max.y;xe++)for(var Ne=M.min.x;Ne<=M.max.x;Ne++){var Dt=new q(Ne,xe);if(Dt.z=this._tileZoom,!!this._isValidTile(Dt)){var wt=this._tiles[this._tileCoordsToKey(Dt)];wt?wt.current=!0:Y.push(Dt)}}if(Y.sort(function(Wt,fi){return Wt.distanceTo(F)-fi.distanceTo(F)}),Y.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var tr=document.createDocumentFragment();for(Ne=0;Ne<Y.length;Ne++)this._addTile(Y[Ne],tr);this._level.el.appendChild(tr)}}}},_isValidTile:function(i){var l=this._map.options.crs;if(!l.infinite){var f=this._globalTileRange;if(!l.wrapLng&&(i.x<f.min.x||i.x>f.max.x)||!l.wrapLat&&(i.y<f.min.y||i.y>f.max.y))return!1}if(!this.options.bounds)return!0;var b=this._tileCoordsToBounds(i);return K(this.options.bounds).overlaps(b)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var l=this._map,f=this.getTileSize(),b=i.scaleBy(f),M=b.add(f),F=l.unproject(b,i.z),Y=l.unproject(M,i.z);return[F,Y]},_tileCoordsToBounds:function(i){var l=this._tileCoordsToNwSe(i),f=new X(l[0],l[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var l=i.split(":"),f=new q(+l[0],+l[1]);return f.z=+l[2],f},_removeTile:function(i){var l=this._tiles[i];l&&(Je(l.el),delete this._tiles[i],this.fire("tileunload",{tile:l.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){Re(i,"leaflet-tile");var l=this.getTileSize();i.style.width=l.x+"px",i.style.height=l.y+"px",i.onselectstart=m,i.onmousemove=m,ge.ielt9&&this.options.opacity<1&&Jt(i,this.options.opacity)},_addTile:function(i,l){var f=this._getTilePos(i),b=this._tileCoordsToKey(i),M=this.createTile(this._wrapCoords(i),s(this._tileReady,this,i));this._initTile(M),this.createTile.length<2&&N(s(this._tileReady,this,i,null,M)),mt(M,f),this._tiles[b]={el:M,coords:i,current:!0},l.appendChild(M),this.fire("tileloadstart",{tile:M,coords:i})},_tileReady:function(i,l,f){l&&this.fire("tileerror",{error:l,tile:f,coords:i});var b=this._tileCoordsToKey(i);f=this._tiles[b],f&&(f.loaded=+new Date,this._map._fadeAnimated?(Jt(f.el,0),k(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),l||(Re(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ge.ielt9||!this._map._fadeAnimated?N(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var l=new q(this._wrapX?h(i.x,this._wrapX):i.x,this._wrapY?h(i.y,this._wrapY):i.y);return l.z=i.z,l},_pxBoundsToTileRange:function(i){var l=this.getTileSize();return new H(i.min.unscaleBy(l).floor(),i.max.unscaleBy(l).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function Xw(i){return new pa(i)}var di=pa.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,l){this._url=i,l=y(this,l),l.detectRetina&&ge.retina&&l.maxZoom>0?(l.tileSize=Math.floor(l.tileSize/2),l.zoomReverse?(l.zoomOffset--,l.minZoom=Math.min(l.maxZoom,l.minZoom+1)):(l.zoomOffset++,l.maxZoom=Math.max(l.minZoom,l.maxZoom-1)),l.minZoom=Math.max(0,l.minZoom)):l.zoomReverse?l.minZoom=Math.min(l.maxZoom,l.minZoom):l.maxZoom=Math.max(l.minZoom,l.maxZoom),typeof l.subdomains=="string"&&(l.subdomains=l.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,l){return this._url===i&&l===void 0&&(l=!0),this._url=i,l||this.redraw(),this},createTile:function(i,l){var f=document.createElement("img");return Me(f,"load",s(this._tileOnLoad,this,l,f)),Me(f,"error",s(this._tileOnError,this,l,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(i),f},getTileUrl:function(i){var l={r:ge.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-i.y;this.options.tms&&(l.y=f),l["-y"]=f}return S(this._url,a(l,this.options))},_tileOnLoad:function(i,l){ge.ielt9?setTimeout(s(i,this,null,l),0):i(null,l)},_tileOnError:function(i,l,f){var b=this.options.errorTileUrl;b&&l.getAttribute("src")!==b&&(l.src=b),i(f,l)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,l=this.options.maxZoom,f=this.options.zoomReverse,b=this.options.zoomOffset;return f&&(i=l-i),i+b},_getSubdomain:function(i){var l=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[l]},_abortLoading:function(){var i,l;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(l=this._tiles[i].el,l.onload=m,l.onerror=m,!l.complete)){l.src=x;var f=this._tiles[i].coords;Je(l),delete this._tiles[i],this.fire("tileabort",{tile:l,coords:f})}},_removeTile:function(i){var l=this._tiles[i];if(l)return l.el.setAttribute("src",x),pa.prototype._removeTile.call(this,i)},_tileReady:function(i,l,f){if(!(!this._map||f&&f.getAttribute("src")===x))return pa.prototype._tileReady.call(this,i,l,f)}});function _h(i,l){return new di(i,l)}var wh=di.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,l){this._url=i;var f=a({},this.defaultWmsParams);for(var b in l)b in this.options||(f[b]=l[b]);l=y(this,l);var M=l.detectRetina&&ge.retina?2:1,F=this.getTileSize();f.width=F.x*M,f.height=F.y*M,this.wmsParams=f},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var l=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[l]=this._crs.code,di.prototype.onAdd.call(this,i)},getTileUrl:function(i){var l=this._tileCoordsToNwSe(i),f=this._crs,b=te(f.project(l[0]),f.project(l[1])),M=b.min,F=b.max,Y=(this._wmsVersion>=1.3&&this._crs===hh?[M.y,M.x,F.y,F.x]:[M.x,M.y,F.x,F.y]).join(","),ne=di.prototype.getTileUrl.call(this,i);return ne+w(this.wmsParams,ne,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Y},setParams:function(i,l){return a(this.wmsParams,i),l||this.redraw(),this}});function Zw(i,l){return new wh(i,l)}di.WMS=wh,_h.wms=Zw;var Xr=_r.extend({options:{padding:.1},initialize:function(i){y(this,i),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Re(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,l){var f=this._map.getZoomScale(l,this._zoom),b=this._map.getSize().multiplyBy(.5+this.options.padding),M=this._map.project(this._center,l),F=b.multiplyBy(-f).add(M).subtract(this._map._getNewPixelOrigin(i,l));ge.any3d?Ln(this._container,F,f):mt(this._container,F)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,l=this._map.getSize(),f=this._map.containerPointToLayerPoint(l.multiplyBy(-i)).round();this._bounds=new H(f,f.add(l.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),xh=Xr.extend({options:{tolerance:0},getEvents:function(){var i=Xr.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Xr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");Me(i,"mousemove",this._onMouseMove,this),Me(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Me(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,Je(this._container),Ge(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var l in this._layers)i=this._layers[l],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Xr.prototype._update.call(this);var i=this._bounds,l=this._container,f=i.getSize(),b=ge.retina?2:1;mt(l,i.min),l.width=b*f.x,l.height=b*f.y,l.style.width=f.x+"px",l.style.height=f.y+"px",ge.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){Xr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[c(i)]=i;var l=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=l),this._drawLast=l,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var l=i._order,f=l.next,b=l.prev;f?f.prev=b:this._drawLast=b,b?b.next=f:this._drawFirst=f,delete i._order,delete this._layers[c(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var l=i.options.dashArray.split(/[, ]+/),f=[],b,M;for(M=0;M<l.length;M++){if(b=Number(l[M]),isNaN(b))return;f.push(b)}i.options._dashArray=f}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||N(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var l=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(i._pxBounds.min.subtract([l,l])),this._redrawBounds.extend(i._pxBounds.max.add([l,l]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var l=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,l.x,l.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var i,l=this._redrawBounds;if(this._ctx.save(),l){var f=l.getSize();this._ctx.beginPath(),this._ctx.rect(l.min.x,l.min.y,f.x,f.y),this._ctx.clip()}this._drawing=!0;for(var b=this._drawFirst;b;b=b.next)i=b.layer,(!l||i._pxBounds&&i._pxBounds.intersects(l))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,l){if(this._drawing){var f,b,M,F,Y=i._parts,ne=Y.length,ae=this._ctx;if(ne){for(ae.beginPath(),f=0;f<ne;f++){for(b=0,M=Y[f].length;b<M;b++)F=Y[f][b],ae[b?"lineTo":"moveTo"](F.x,F.y);l&&ae.closePath()}this._fillStroke(ae,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var l=i._point,f=this._ctx,b=Math.max(Math.round(i._radius),1),M=(Math.max(Math.round(i._radiusY),1)||b)/b;M!==1&&(f.save(),f.scale(1,M)),f.beginPath(),f.arc(l.x,l.y/M,b,0,Math.PI*2,!1),M!==1&&f.restore(),this._fillStroke(f,i)}},_fillStroke:function(i,l){var f=l.options;f.fill&&(i.globalAlpha=f.fillOpacity,i.fillStyle=f.fillColor||f.color,i.fill(f.fillRule||"evenodd")),f.stroke&&f.weight!==0&&(i.setLineDash&&i.setLineDash(l.options&&l.options._dashArray||[]),i.globalAlpha=f.opacity,i.lineWidth=f.weight,i.strokeStyle=f.color,i.lineCap=f.lineCap,i.lineJoin=f.lineJoin,i.stroke())},_onClick:function(i){for(var l=this._map.mouseEventToLayerPoint(i),f,b,M=this._drawFirst;M;M=M.next)f=M.layer,f.options.interactive&&f._containsPoint(l)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(f))&&(b=f);this._fireEvent(b?[b]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var l=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,l)}},_handleMouseOut:function(i){var l=this._hoveredLayer;l&&(lt(this._container,"leaflet-interactive"),this._fireEvent([l],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,l){if(!this._mouseHoverThrottled){for(var f,b,M=this._drawFirst;M;M=M.next)f=M.layer,f.options.interactive&&f._containsPoint(l)&&(b=f);b!==this._hoveredLayer&&(this._handleMouseOut(i),b&&(Re(this._container,"leaflet-interactive"),this._fireEvent([b],i,"mouseover"),this._hoveredLayer=b)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,l,f){this._map._fireDOMEvent(l,f||l.type,i)},_bringToFront:function(i){var l=i._order;if(l){var f=l.next,b=l.prev;if(f)f.prev=b;else return;b?b.next=f:f&&(this._drawFirst=f),l.prev=this._drawLast,this._drawLast.next=l,l.next=null,this._drawLast=l,this._requestRedraw(i)}},_bringToBack:function(i){var l=i._order;if(l){var f=l.next,b=l.prev;if(b)b.next=f;else return;f?f.prev=b:b&&(this._drawLast=b),l.prev=null,l.next=this._drawFirst,this._drawFirst.prev=l,this._drawFirst=l,this._requestRedraw(i)}}});function Ch(i){return ge.canvas?new xh(i):null}var ma=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch(i){}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Kw={_initContainer:function(){this._container=$e("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Xr.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var l=i._container=ma("shape");Re(l,"leaflet-vml-shape "+(this.options.className||"")),l.coordsize="1 1",i._path=ma("path"),l.appendChild(i._path),this._updateStyle(i),this._layers[c(i)]=i},_addPath:function(i){var l=i._container;this._container.appendChild(l),i.options.interactive&&i.addInteractiveTarget(l)},_removePath:function(i){var l=i._container;Je(l),i.removeInteractiveTarget(l),delete this._layers[c(i)]},_updateStyle:function(i){var l=i._stroke,f=i._fill,b=i.options,M=i._container;M.stroked=!!b.stroke,M.filled=!!b.fill,b.stroke?(l||(l=i._stroke=ma("stroke")),M.appendChild(l),l.weight=b.weight+"px",l.color=b.color,l.opacity=b.opacity,b.dashArray?l.dashStyle=T(b.dashArray)?b.dashArray.join(" "):b.dashArray.replace(/( *, *)/g," "):l.dashStyle="",l.endcap=b.lineCap.replace("butt","flat"),l.joinstyle=b.lineJoin):l&&(M.removeChild(l),i._stroke=null),b.fill?(f||(f=i._fill=ma("fill")),M.appendChild(f),f.color=b.fillColor||b.color,f.opacity=b.fillOpacity):f&&(M.removeChild(f),i._fill=null)},_updateCircle:function(i){var l=i._point.round(),f=Math.round(i._radius),b=Math.round(i._radiusY||f);this._setPath(i,i._empty()?"M0 0":"AL "+l.x+","+l.y+" "+f+","+b+" 0,"+65535*360)},_setPath:function(i,l){i._path.v=l},_bringToFront:function(i){ai(i._container)},_bringToBack:function(i){oi(i._container)}},Bo=ge.vml?ma:_e,va=Xr.extend({_initContainer:function(){this._container=Bo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Bo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Je(this._container),Ge(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Xr.prototype._update.call(this);var i=this._bounds,l=i.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(l))&&(this._svgSize=l,f.setAttribute("width",l.x),f.setAttribute("height",l.y)),mt(f,i.min),f.setAttribute("viewBox",[i.min.x,i.min.y,l.x,l.y].join(" ")),this.fire("update")}},_initPath:function(i){var l=i._path=Bo("path");i.options.className&&Re(l,i.options.className),i.options.interactive&&Re(l,"leaflet-interactive"),this._updateStyle(i),this._layers[c(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){Je(i._path),i.removeInteractiveTarget(i._path),delete this._layers[c(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var l=i._path,f=i.options;l&&(f.stroke?(l.setAttribute("stroke",f.color),l.setAttribute("stroke-opacity",f.opacity),l.setAttribute("stroke-width",f.weight),l.setAttribute("stroke-linecap",f.lineCap),l.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?l.setAttribute("stroke-dasharray",f.dashArray):l.removeAttribute("stroke-dasharray"),f.dashOffset?l.setAttribute("stroke-dashoffset",f.dashOffset):l.removeAttribute("stroke-dashoffset")):l.setAttribute("stroke","none"),f.fill?(l.setAttribute("fill",f.fillColor||f.color),l.setAttribute("fill-opacity",f.fillOpacity),l.setAttribute("fill-rule",f.fillRule||"evenodd")):l.setAttribute("fill","none"))},_updatePoly:function(i,l){this._setPath(i,we(i._parts,l))},_updateCircle:function(i){var l=i._point,f=Math.max(Math.round(i._radius),1),b=Math.max(Math.round(i._radiusY),1)||f,M="a"+f+","+b+" 0 1,0 ",F=i._empty()?"M0 0":"M"+(l.x-f)+","+l.y+M+f*2+",0 "+M+-f*2+",0 ";this._setPath(i,F)},_setPath:function(i,l){i._path.setAttribute("d",l)},_bringToFront:function(i){ai(i._path)},_bringToBack:function(i){oi(i._path)}});ge.vml&&va.include(Kw);function Th(i){return ge.svg||ge.vml?new va(i):null}Le.include({getRenderer:function(i){var l=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return l||(l=this._renderer=this._createRenderer()),this.hasLayer(l)||this.addLayer(l),l},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var l=this._paneRenderers[i];return l===void 0&&(l=this._createRenderer({pane:i}),this._paneRenderers[i]=l),l},_createRenderer:function(i){return this.options.preferCanvas&&Ch(i)||Th(i)}});var Sh=ui.extend({initialize:function(i,l){ui.prototype.initialize.call(this,this._boundsToLatLngs(i),l)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=K(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function Qw(i,l){return new Sh(i,l)}va.create=Bo,va.pointsToPath=we,Yr.geometryToLayer=Lo,Yr.coordsToLatLng=Xl,Yr.coordsToLatLngs=Io,Yr.latLngToCoords=Zl,Yr.latLngsToCoords=$o,Yr.getFeature=ci,Yr.asFeature=zo,Le.mergeOptions({boxZoom:!0});var Eh=Pr.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){Me(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ge(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Je(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),sa(),Nl(),this._startPoint=this._map.mouseEventToContainerPoint(i),Me(document,{contextmenu:zn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=$e("div","leaflet-zoom-box",this._container),Re(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var l=new H(this._point,this._startPoint),f=l.getSize();mt(this._box,l.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Je(this._box),lt(this._container,"leaflet-crosshair")),la(),Dl(),Ge(document,{contextmenu:zn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var l=new X(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(l).fire("boxzoomend",{boxZoomBounds:l})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Le.addInitHook("addHandler","boxZoom",Eh),Le.mergeOptions({doubleClickZoom:!0});var Mh=Pr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var l=this._map,f=l.getZoom(),b=l.options.zoomDelta,M=i.originalEvent.shiftKey?f-b:f+b;l.options.doubleClickZoom==="center"?l.setZoom(M):l.setZoomAround(i.containerPoint,M)}});Le.addInitHook("addHandler","doubleClickZoom",Mh),Le.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ph=Pr.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new dn(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}Re(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){lt(this._map._container,"leaflet-grab"),lt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var l=K(this._map.options.maxBounds);this._offsetLimit=te(this._map.latLngToContainerPoint(l.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(l.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var l=this._lastTime=+new Date,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),this._times.push(l),this._prunePositions(l)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),l=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=l.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,l){return i-(i-l)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),l=this._offsetLimit;i.x<l.min.x&&(i.x=this._viscousLimit(i.x,l.min.x)),i.y<l.min.y&&(i.y=this._viscousLimit(i.y,l.min.y)),i.x>l.max.x&&(i.x=this._viscousLimit(i.x,l.max.x)),i.y>l.max.y&&(i.y=this._viscousLimit(i.y,l.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,l=Math.round(i/2),f=this._initialWorldOffset,b=this._draggable._newPos.x,M=(b-l+f)%i+l-f,F=(b+l+f)%i-l-f,Y=Math.abs(M+f)<Math.abs(F+f)?M:F;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Y},_onDragEnd:function(i){var l=this._map,f=l.options,b=!f.inertia||i.noInertia||this._times.length<2;if(l.fire("dragend",i),b)l.fire("moveend");else{this._prunePositions(+new Date);var M=this._lastPos.subtract(this._positions[0]),F=(this._lastTime-this._times[0])/1e3,Y=f.easeLinearity,ne=M.multiplyBy(Y/F),ae=ne.distanceTo([0,0]),de=Math.min(f.inertiaMaxSpeed,ae),me=ne.multiplyBy(de/ae),xe=de/(f.inertiaDeceleration*Y),Ne=me.multiplyBy(-xe/2).round();!Ne.x&&!Ne.y?l.fire("moveend"):(Ne=l._limitOffset(Ne,l.options.maxBounds),N(function(){l.panBy(Ne,{duration:xe,easeLinearity:Y,noMoveStart:!0,animate:!0})}))}}});Le.addInitHook("addHandler","dragging",Ph),Le.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Rh=Pr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),Me(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ge(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,l=document.documentElement,f=i.scrollTop||l.scrollTop,b=i.scrollLeft||l.scrollLeft;this._map._container.focus(),window.scrollTo(b,f)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var l=this._panKeys={},f=this.keyCodes,b,M;for(b=0,M=f.left.length;b<M;b++)l[f.left[b]]=[-1*i,0];for(b=0,M=f.right.length;b<M;b++)l[f.right[b]]=[i,0];for(b=0,M=f.down.length;b<M;b++)l[f.down[b]]=[0,i];for(b=0,M=f.up.length;b<M;b++)l[f.up[b]]=[0,-1*i]},_setZoomDelta:function(i){var l=this._zoomKeys={},f=this.keyCodes,b,M;for(b=0,M=f.zoomIn.length;b<M;b++)l[f.zoomIn[b]]=i;for(b=0,M=f.zoomOut.length;b<M;b++)l[f.zoomOut[b]]=-i},_addHooks:function(){Me(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ge(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var l=i.keyCode,f=this._map,b;if(l in this._panKeys){if(!f._panAnim||!f._panAnim._inProgress)if(b=this._panKeys[l],i.shiftKey&&(b=z(b).multiplyBy(3)),f.options.maxBounds&&(b=f._limitOffset(z(b),f.options.maxBounds)),f.options.worldCopyJump){var M=f.wrapLatLng(f.unproject(f.project(f.getCenter()).add(b)));f.panTo(M)}else f.panBy(b)}else if(l in this._zoomKeys)f.setZoom(f.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[l]);else if(l===27&&f._popup&&f._popup.options.closeOnEscapeKey)f.closePopup();else return;zn(i)}}});Le.addInitHook("addHandler","keyboard",Rh),Le.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Oh=Pr.extend({addHooks:function(){Me(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ge(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var l=eh(i),f=this._map.options.wheelDebounceTime;this._delta+=l,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var b=Math.max(f-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),b),zn(i)},_performZoom:function(){var i=this._map,l=i.getZoom(),f=this._map.options.zoomSnap||0;i._stop();var b=this._delta/(this._map.options.wheelPxPerZoomLevel*4),M=4*Math.log(2/(1+Math.exp(-Math.abs(b))))/Math.LN2,F=f?Math.ceil(M/f)*f:M,Y=i._limitZoom(l+(this._delta>0?F:-F))-l;this._delta=0,this._startTime=null,Y&&(i.options.scrollWheelZoom==="center"?i.setZoom(l+Y):i.setZoomAround(this._lastMousePos,l+Y))}});Le.addInitHook("addHandler","scrollWheelZoom",Oh);var Jw=600;Le.mergeOptions({tapHold:ge.touchNative&&ge.safari&&ge.mobile,tapTolerance:15});var kh=Pr.extend({addHooks:function(){Me(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ge(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var l=i.touches[0];this._startPos=this._newPos=new q(l.clientX,l.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(Me(document,"touchend",Ct),Me(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",l))},this),Jw),Me(document,"touchend touchcancel contextmenu",this._cancel,this),Me(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){Ge(document,"touchend",Ct),Ge(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),Ge(document,"touchend touchcancel contextmenu",this._cancel,this),Ge(document,"touchmove",this._onMove,this)},_onMove:function(i){var l=i.touches[0];this._newPos=new q(l.clientX,l.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,l){var f=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:l.screenX,screenY:l.screenY,clientX:l.clientX,clientY:l.clientY});f._simulated=!0,l.target.dispatchEvent(f)}});Le.addInitHook("addHandler","tapHold",kh),Le.mergeOptions({touchZoom:ge.touch,bounceAtZoomLimits:!0});var Nh=Pr.extend({addHooks:function(){Re(this._map._container,"leaflet-touch-zoom"),Me(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){lt(this._map._container,"leaflet-touch-zoom"),Ge(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var l=this._map;if(!(!i.touches||i.touches.length!==2||l._animatingZoom||this._zooming)){var f=l.mouseEventToContainerPoint(i.touches[0]),b=l.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=l.getSize()._divideBy(2),this._startLatLng=l.containerPointToLatLng(this._centerPoint),l.options.touchZoom!=="center"&&(this._pinchStartLatLng=l.containerPointToLatLng(f.add(b)._divideBy(2))),this._startDist=f.distanceTo(b),this._startZoom=l.getZoom(),this._moved=!1,this._zooming=!0,l._stop(),Me(document,"touchmove",this._onTouchMove,this),Me(document,"touchend touchcancel",this._onTouchEnd,this),Ct(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var l=this._map,f=l.mouseEventToContainerPoint(i.touches[0]),b=l.mouseEventToContainerPoint(i.touches[1]),M=f.distanceTo(b)/this._startDist;if(this._zoom=l.getScaleZoom(M,this._startZoom),!l.options.bounceAtZoomLimits&&(this._zoom<l.getMinZoom()&&M<1||this._zoom>l.getMaxZoom()&&M>1)&&(this._zoom=l._limitZoom(this._zoom)),l.options.touchZoom==="center"){if(this._center=this._startLatLng,M===1)return}else{var F=f._add(b)._divideBy(2)._subtract(this._centerPoint);if(M===1&&F.x===0&&F.y===0)return;this._center=l.unproject(l.project(this._pinchStartLatLng,this._zoom).subtract(F),this._zoom)}this._moved||(l._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var Y=s(l._move,l,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=N(Y,this,!0),Ct(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,k(this._animRequest),Ge(document,"touchmove",this._onTouchMove,this),Ge(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Le.addInitHook("addHandler","touchZoom",Nh),Le.BoxZoom=Eh,Le.DoubleClickZoom=Mh,Le.Drag=Ph,Le.Keyboard=Rh,Le.ScrollWheelZoom=Oh,Le.TapHold=kh,Le.TouchZoom=Nh,r.Bounds=H,r.Browser=ge,r.CRS=le,r.Canvas=xh,r.Circle=Yl,r.CircleMarker=Ao,r.Class=j,r.Control=br,r.DivIcon=bh,r.DivOverlay=Rr,r.DomEvent=gw,r.DomUtil=mw,r.Draggable=dn,r.Evented=G,r.FeatureGroup=qr,r.GeoJSON=Yr,r.GridLayer=pa,r.Handler=Pr,r.Icon=li,r.ImageOverlay=Fo,r.LatLng=J,r.LatLngBounds=X,r.Layer=_r,r.LayerGroup=si,r.LineUtil=Ow,r.Map=Le,r.Marker=Do,r.Mixin=Tw,r.Path=fn,r.Point=q,r.PolyUtil=Sw,r.Polygon=ui,r.Polyline=Gr,r.Popup=Wo,r.PosAnimation=th,r.Projection=kw,r.Rectangle=Sh,r.Renderer=Xr,r.SVG=va,r.SVGOverlay=yh,r.TileLayer=di,r.Tooltip=jo,r.Transformation=pe,r.Util=W,r.VideoOverlay=gh,r.bind=s,r.bounds=te,r.canvas=Ch,r.circle=Fw,r.circleMarker=zw,r.control=da,r.divIcon=Yw,r.extend=a,r.featureGroup=Lw,r.geoJSON=vh,r.geoJson=Bw,r.gridLayer=Xw,r.icon=Iw,r.imageOverlay=Hw,r.latLng=ie,r.latLngBounds=K,r.layerGroup=Aw,r.map=yw,r.marker=$w,r.point=z,r.polygon=jw,r.polyline=Ww,r.popup=qw,r.rectangle=Qw,r.setOptions=y,r.stamp=c,r.svg=Th,r.svgOverlay=Uw,r.tileLayer=_h,r.tooltip=Gw,r.transformation=oe,r.version=n,r.videoOverlay=Vw;var e1=window.L;r.noConflict=function(){return window.L=e1,this},window.L=r})})(Cc,Cc.exports);var ZN=Cc.exports;const $r=O.getDefaultExportFromCjs(ZN),KN=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function QN(e,t){const r=KN[e.toLowerCase()];return r&&(t[r]=e),r||e}function JN(e,t){return t[e.toLowerCase()]||e}const eD=(e,t)=>{const{app:r}=bt(),[n,a]=Q.useState([]),o=Q.useRef(e),s=Q.useCallback(()=>wr(exports,null,function*(){if(!r||!e)return;const u={},c=Qk(t),d=yield r.httpClient.post("api/v1/geo/locations",ee({locations:e.map(_=>({name:QN(_.name,u)}))},c&&{geoLevel:c})),h=o.current!==e;if(!d||h)return;const m=d.reduce((_,y)=>{const w=ue(ee({},y),{name:JN(y.name,u)});return _[w.name]=w,_},{}),p=[],g=e.map(_=>(m[_.name]||p.push(_.name),ee(ee({},_),m[_.name]?{coordinates:m[_.name].latLng}:null)));p.length&&console.warn(`Locations "${p.join(", ")}" coordinates not found`),a(g)}),[r,a,e,t]);return Q.useEffect(()=>{e&&(o.current=e,e.some(c=>!!c.coordinates)?a(e):s())},[e,r,s,a]),n};function tD(e){let t=Number.MAX_VALUE,r=Number.MIN_VALUE;return e.forEach(n=>{isNaN(n)||(t=Math.min(t,n),r=Math.max(r,n))}),{min:t,max:r}}function rD(e,t=4,r=24){let n=0;const{min:a,max:o}=tD(e.map(({value:u})=>u)),s=r-t;return n=o-a,e.map(u=>n===0?t:(u.value-a)/n*s+t)}const nD=()=>{const{app:e}=bt(),[t,r]=Q.useState(null),n=Q.useCallback(()=>wr(exports,null,function*(){if(!e)return;const a=yield e.httpClient.get("api/v1/settings/system");a&&r(a.geo)}),[r,e]);return Q.useEffect(()=>{n()},[e,n]),t},iD="#00cee6",aD=O.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>ue(ee({},e),{color:t})});function oD(e,t){return t?aD(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>iD)}function gy(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function yy(e){const{color:t,size:r,fill:n,blur:a}=e,{isFilled:o}=gy(n),c=a?{filled:.1,"filled-light":.1,hollow:.2,"hollow-bold":.25}[n]:{filled:.5,"filled-light":.2,hollow:.35,"hollow-bold":.9}[n];return{radius:r,fillOpacity:c,opacity:c,fillColor:o?t:"transparent",color:o?"transparent":t,stroke:!o,weight:o?0:2,customStyle:e}}function sD({coordinates:e,style:t}){const r=new $r.CircleMarker({lat:e.lat,lng:e.lng},yy(t));return r.on("mouseover",lD),r.on("mouseout",uD),r}function lD(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:a}=gy(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:a?.5:.7,fillOpacity:a?.5:.7}:{weight:3,opacity:a?.6:1}),t}function uD(e){const t=e.target,r=t.options.customStyle;t.setStyle(yy(r))}function cD(e){e.forEach(t=>t.remove())}function dD(e,t){const r=`
30
+ © <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
31
+ © <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
32
+ <strong>
33
+ <a href='https://www.mapbox.com/map-feedback/' target='_blank'>
34
+ Improve this map
35
+ </a>
36
+ </strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",a=$r.control.attribution();return t.indexOf("mapbox")>-1?a.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&a.addAttribution(n).addTo(e),a}const fD=250;function by(e){const t=e.chart.animation.init.duration==="auto"?fD:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function hD(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),ee({maxZoom:4},r))}var pD="Expected a function";function mD(e,t,r){if(typeof e!="function")throw new TypeError(pD);return setTimeout(function(){e.apply(void 0,r)},t)}var vD=Us(function(e,t,r){return mD(e,O.toNumber(t)||0,r)}),ds=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(ds||{});const gD="#9EA2AB",Rp="N/A",uu=10,yD=`
37
+ <svg
38
+ xmlns="http://www.w3.org/2000/svg"
39
+ width="24"
40
+ height="24"
41
+ viewBox="0 0 24 24"
42
+ fill="green"
43
+ class="csdk-animate-spin"
44
+ >
45
+ <path
46
+ fillRule="evenodd"
47
+ clipRule="evenodd"
48
+ d="M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"
49
+ fill="transparent"
50
+ fillOpacity="0.3"
51
+ />
52
+ <path
53
+ fillRule="evenodd"
54
+ clipRule="evenodd"
55
+ d="M20 12C20 16.4183 16.4183 20 12 20C11.2844 20 10.5908 19.906 9.93078 19.7298C9.96227 19.5889 9.97888 19.4423 9.97888 19.2918C9.97888 18.1873 9.08345 17.2918 7.97888 17.2918C6.87431 17.2918 5.97888 18.1873 5.97888 19.2918C5.97888 20.3964 6.87431 21.2918 7.97888 21.2918C8.56576 21.2918 9.0936 21.0391 9.45946 20.6364C10.2652 20.8731 11.1178 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3V4C16.4183 4 20 7.58172 20 12Z"
56
+ fill="#22C3C3"
57
+ />
58
+ </svg>
59
+ `,bD=e=>{const t=`
60
+ <div>
61
+ <div>${O.spanSegment("...")}</div>
62
+ <div>${O.spanSegment(`Showing first ${uu} results`)}</div>
63
+ </div>
64
+ `;return`
65
+ <div>
66
+ ${e.slice(0,uu).map(r=>`<div>${O.spanSegment(r)}</div>`).join("")}
67
+ ${e.length>uu?t:""}
68
+ </div>
69
+ `},cu=e=>`
70
+ <span style="padding-right: 20px">
71
+ ${O.spanSegment(e,gD)}
72
+ </span>
73
+ `,_D=()=>`
74
+ <span style="verical-align: bottom">
75
+ ${O.spanSegment(yD)}
76
+ </span>
77
+ `,Ko=(e,t,r=1)=>{const n=O.formatTooltipValue(t.size,e.value,`${e.value}`),a=O.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),o=t.details&&O.isMeasureColumn(t.details)&&O.formatTooltipValue(t.details,e.details,`${e.details}`);return O.tooltipWrapper(`
78
+ <div style="text-align: left">
79
+ <div>${O.spanSegment(e.name)}</div>
80
+ <div class="csdk-scattermap-tooltip-row">
81
+ ${t.size?cu(O.getDataOptionTitle(t.size)):""}
82
+ ${t.size?O.spanSegment(n):""}
83
+ </div>
84
+ <div class="csdk-scattermap-tooltip-row">
85
+ ${t.colorBy?cu(O.getDataOptionTitle(t.colorBy)):""}
86
+ ${t.colorBy?O.spanSegment(a||Rp):""}
87
+ </div>
88
+ <div class="csdk-scattermap-tooltip-row">
89
+ ${(r===2||r===0)&&t.details?cu(O.getDataOptionTitle(t.details)):""}
90
+ ${r===2?_D():""}
91
+ ${r===0&&t.details&&O.isMeasureColumn(t.details)?O.spanSegment(o||Rp):""}
92
+ </div>
93
+ <div>
94
+ ${r===0&&t.details&&!O.isMeasureColumn(t.details)?bD(e.details):""}
95
+ </div>
96
+ </div>
97
+ `)},wD=600,xD=11,CD=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=bt(),a=Q.useCallback(s=>wr(exports,null,function*(){if(!n)return[];const u=e.locations.map((h,m)=>{const p=O.translateCategoryToAttribute(h),g=Kk(s)[m];return O.members(p,[g])}),c={dataSource:t,dimensions:[e.details],filters:O.mergeFilters(r,u),count:xD};return(yield io(c,n)).rows.map(([h])=>h.text)}),[n,e,t,r]);return Q.useCallback(s=>{if(!e.details||e.details&&!O.isMeasureColumn(e.details)&&!t)return{content:Ko(s,e)};if(O.isMeasureColumn(e.details))return{content:Ko(s,e,ds.YES)};const u=new Promise(d=>vD(d,wD)),c=Promise.all([a(s.name),u]).then(([d])=>Ko(ue(ee({},s),{details:d}),e,ds.YES));return{content:Ko(s,e,ds.LOADING),postponedContent:c}},[e,t,a])},TD=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:a,onDataPointClick:o})=>{const{locations:s}=e,u=nD(),{themeSettings:c}=kt(),d=eD(s,t.locationLevel),{filters:h}=O.getFilterListAndRelations(n),m=CD({dataOptions:t,dataSource:r,filters:h}),p=Q.useRef(null),g=Q.useRef(null),_=Q.useMemo(()=>rD(d,t.size?a.markers.size.minSize:a.markers.size.defaultSize,t.size?a.markers.size.maxSize:a.markers.size.defaultSize),[d,t,a]),y=Q.useMemo(()=>{var C;return oD(d,(C=t.colorBy)==null?void 0:C.color)},[d,t]),w=Q.useRef([]),E=Q.useRef($r.layerGroup([])),S=Q.useRef(null),T=Q.useRef(null);return Q.useEffect(()=>{p.current&&!g.current&&(g.current=$r.map(p.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),E.current.addTo(g.current),g.current.fitWorld())},[]),Q.useEffect(()=>{w.current&&(cD(w.current),w.current=[]),d&&(d.forEach((C,x)=>{if(!C.coordinates)return;const P=sD({coordinates:C.coordinates,style:{color:y[x],size:_[x],fill:a.markers.fill,blur:!!C.blur}});w.current.push(P),P.addTo(E.current),o&&P.on("click",R=>{o(Jk(C,t),R.originalEvent)}),P.bindTooltip(()=>{const{content:R,postponedContent:D}=m(C);return D==null||D.then(A=>P.setTooltipContent(A)),R})}),hD(g.current,w.current,by(c)))},[d,y,_,a,c,t,m,o]),Q.useEffect(()=>{var C;u&&(S.current&&S.current.remove(),S.current=$r.tileLayer(u.maps_api_provider,{zoomOffset:-1,tileSize:512}),g.current&&(S.current.addTo(g.current),(C=T.current)==null||C.remove(),T.current=dD(g.current,u.maps_api_provider)))},[u]),V.jsx("div",{className:"csdk-map-container",ref:p,style:{width:"100%",height:"100%"}})},SD=e=>e.type==="scattermap",ED=e=>"locations"in e,MD=e=>"markers"in e,PD=e=>!!e.chartData&&SD(e.chartData)&&ED(e.dataOptions)&&MD(e.designOptions),RD=(e,t,{onDataPointClick:r,onDataPointContextMenu:n,onDataPointsSelected:a}={})=>{var s;const o={chart:{events:{}},plotOptions:{series:{point:{events:{click:()=>{}}}}}};return a&&(o.chart.zoomType="x",["scatter","bubble"].includes((s=e.chart)==null?void 0:s.type)&&(o.chart.zoomType="xy"),o.chart.events.selection=u=>{u.preventDefault();const{xAxis:c,yAxis:d,originalEvent:h}=u,m=OD(c[0],d[0]);m.forEach(p=>{p.state=""}),a(m.map(p=>lu(p,t)),h)}),r&&(o.plotOptions.series.point.events.click=u=>{u.point.state="hover",r(lu(u.point,t),u)}),n&&(o.plotOptions.series.point.events.contextmenu=u=>{u.preventDefault(),n(lu(u.point,t),u)}),O.merge$1(e,o)},OD=(e,t)=>{const r=e.axis.series.flatMap(a=>a.points).filter(({x:a})=>a>=e.min&&a<=e.max);if(!t)return r;const n=t.axis.series.flatMap(a=>a.points).filter(({y:a})=>a>=t.min&&a<=t.max);return r.filter(a=>n.includes(a))},kD=(e,t)=>{var p;if(!t)return e;const r={backgroundColor:t.chart.backgroundColor},n={style:{fontFamily:t.typography.fontFamily}},a={itemStyle:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},s={series:{dataLabels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}}},u={activeDataLabelStyle:{color:t.chart.textColor},breadcrumbs:{buttonTheme:{fill:t.general.brandColor,stroke:t.general.brandColor,style:{color:t.general.primaryButtonTextColor},states:{hover:{fill:t.general.primaryButtonHoverColor,stroke:t.general.primaryButtonHoverColor}}}}},c={chart:r,tooltip:n,legend:a,plotOptions:s,drilldown:u},d={labels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},title:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},h={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},m=O.merge(e,c);return m.xAxis=(p=m.xAxis)==null?void 0:p.map(g=>{var _;return g.plotBands=(_=g.plotBands)==null?void 0:_.map(y=>O.merge(y,ue(ee({},h),{color:y.color||(t==null?void 0:t.chart.backgroundColor)}))),O.merge(g,d)}),m.yAxis&&(m.yAxis=m.yAxis.map(g=>{var _;return g.plotBands=(_=g.plotBands)==null?void 0:_.map(y=>O.merge(y,ue(ee({},h),{color:y.color||(t==null?void 0:t.chart.backgroundColor)}))),O.merge(g,d)})),m},ND=600,DD=300,AD=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?ND:t.chart.animation.init.duration},a={duration:t.chart.animation.redraw.duration==="auto"?DD:t.chart.animation.redraw.duration};return O.merge(e,{accessibility:{enabled:r},chart:{animation:a},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})},LD="_alert_box_10ttx_1",ID="_content_10ttx_8",$D="_alert_10ttx_1",du={alert_box:LD,content:ID,alert:$D},zD=({alerts:e=[]})=>V.jsx("div",{className:du.alert_box,children:V.jsx("div",{className:du.content,children:[...new Set(e)].map((t,r)=>V.jsx("div",{className:du.alert,children:t},`alert-${r}`))})});function _y(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?O.baseIsEqual(e,t,void 0,r):!!n}var wy={exports:{}};(function(e,t){(function(r,n){e.exports=n(Q)})(typeof self!="undefined"?self:O.commonjsGlobal,function(r){return function(n){function a(s){if(o[s])return o[s].exports;var u=o[s]={i:s,l:!1,exports:{}};return n[s].call(u.exports,u,u.exports,a),u.l=!0,u.exports}var o={};return a.m=n,a.c=o,a.d=function(s,u,c){a.o(s,u)||Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:c})},a.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(u,"a",u),u},a.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},a.p="",a(a.s=0)}([function(n,a,o){function s(){return s=Object.assign?Object.assign.bind():function(S){for(var T=1;T<arguments.length;T++){var C=arguments[T];for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(S[x]=C[x])}return S},s.apply(this,arguments)}function u(S){return m(S)||h(S)||d(S)||c()}function c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(S,T){if(S){if(typeof S=="string")return p(S,T);var C=Object.prototype.toString.call(S).slice(8,-1);return C==="Object"&&S.constructor&&(C=S.constructor.name),C==="Map"||C==="Set"?Array.from(S):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?p(S,T):void 0}}function h(S){if(typeof Symbol!="undefined"&&S[Symbol.iterator]!=null||S["@@iterator"]!=null)return Array.from(S)}function m(S){if(Array.isArray(S))return p(S)}function p(S,T){(T==null||T>S.length)&&(T=S.length);for(var C=0,x=new Array(T);C<T;C++)x[C]=S[C];return x}function g(S){"@babel/helpers - typeof";return(g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(S)}Object.defineProperty(a,"__esModule",{value:!0}),o.d(a,"HighchartsReact",function(){return E});var _=o(1),y=o.n(_),w=typeof window!="undefined"?_.useLayoutEffect:_.useEffect,E=Object(_.memo)(Object(_.forwardRef)(function(S,T){var C=Object(_.useRef)(),x=Object(_.useRef)(),P=Object(_.useRef)(S.constructorType),R=Object(_.useRef)(S.highcharts);return w(function(){function D(){var I=S.highcharts||(typeof window=="undefined"?"undefined":g(window))==="object"&&window.Highcharts,N=S.constructorType||"chart";I?I[N]?S.options?x.current=I[N](C.current,S.options,S.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(x.current){if(S.allowChartUpdate!==!1)if(S.constructorType!==P.current||S.highcharts!==R.current)P.current=S.constructorType,R.current=S.highcharts,D();else if(!S.immutable&&x.current){var A;(A=x.current).update.apply(A,[S.options].concat(u(S.updateArgs||[!0,!0])))}else D()}else D()},[S.options,S.allowChartUpdate,S.updateArgs,S.containerProps,S.highcharts,S.constructorType]),w(function(){return function(){x.current&&(x.current.destroy(),x.current=null)}},[]),Object(_.useImperativeHandle)(T,function(){return{get chart(){return x.current},container:C}},[]),y.a.createElement("div",s({},S.containerProps,{ref:C}))}));a.default=E},function(n,a){n.exports=r}])})})(wy);var FD=wy.exports;const WD=O.getDefaultExportFromCjs(FD);function Od(e){const t=Q.useRef(void 0);return Q.useEffect(()=>{t.current=e},[e]),t.current}const jD=Q.memo(function({options:t}){var h,m,p,g,_,y;const r=Od(t),n=Q.useCallback(w=>{var S,T,C,x,P,R,D,A;const E=t;!((x=(C=(T=(S=E==null?void 0:E.plotOptions)==null?void 0:S.series)==null?void 0:T.point)==null?void 0:C.events)!=null&&x.click)&&!((A=(D=(R=(P=E==null?void 0:E.plotOptions)==null?void 0:P.series)==null?void 0:R.point)==null?void 0:D.events)!=null&&A.contextmenu)&&(w.container.onclick=null)},[t]),a=w=>w==null?void 0:w.some(({data:E})=>E.some(S=>!!S.marker)),o=(r==null?void 0:r.xAxis)&&(t==null?void 0:t.xAxis)&&((h=r==null?void 0:r.xAxis[0])==null?void 0:h.type)!==((m=t==null?void 0:t.xAxis[0])==null?void 0:m.type),s=!!r&&((p=r==null?void 0:r.navigator)==null?void 0:p.enabled)!==((g=t==null?void 0:t.navigator)==null?void 0:g.enabled),u=a(r==null?void 0:r.series)&&!a(t==null?void 0:t.series),c=!!r&&((_=r==null?void 0:r.chart)==null?void 0:_.type)!==((y=t==null?void 0:t.chart)==null?void 0:y.type),d=o||s||c||u;return V.jsx(WD,{highcharts:O.Highcharts,options:O.cloneDeep(t),containerProps:{style:{height:"100%",width:"100%"}},immutable:d,callback:n})},(e,t)=>_y(e,t,(r,n)=>O.isFunction(r)&&O.isFunction(n)?r.toString()===n.toString():void 0)),BD=e=>e,HD=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:a,onDataPointContextMenu:o,onDataPointsSelected:s,onBeforeRender:u=BD})=>{const{app:c}=bt(),{t:d}=O.useTranslation(),h=[],m=Q.useCallback((_,y)=>bd(_,y,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[]),{themeSettings:p}=kt(),g=Q.useMemo(()=>{var C;const{options:_,alerts:y}=O.highchartsOptionsService(t,e,n,r,d,p,m);h.push(...y);const w=((C=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:C.enabled)||!1,E=AD(_,p,w),S=RD(E,r,{onDataPointClick:a,onDataPointContextMenu:o,onDataPointsSelected:s}),T=kD(S,p);return u(T)},[e,t,r,n,p,a,o,u,d]);return g&&V.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!h.length&&V.jsx(zD,{alerts:h}),V.jsx(jD,{options:g})]})},VD=[...O.CARTESIAN_CHART_TYPES,...O.CATEGORICAL_CHART_TYPES,...O.SCATTER_CHART_TYPES,...O.BOXPLOT_CHART_TYPES,...O.RANGE_CHART_TYPES],xy=e=>VD.includes(e),UD=e=>!!e.chartType&&xy(e.chartType)&&!!e.chartData,qD="_wrapper_g0ngm_1",GD="_title_g0ngm_7",YD="_image_g0ngm_18",fu={wrapper:qD,title:GD,image:YD},XD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='50.5'%20y='558.5'%20fill='%23E4E4E4'%20width='466'%20height='2'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M487.5,531.5h-410v-68.9l0.3-0.3l144-155.7l104.2,88.1l161.6-179.5V531.5z%20M79.5,529.5h406V220.4%20L326.1,397.5l-104.2-88.2l-142.4,154V529.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",ZD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='25.5'%20y='558.5'%20fill='%23E4E4E4'%20width='516'%20height='2'/%3e%3cpath%20fill='%23E4E4E4'%20d='M518.9,188.1c-18.1,0-32.8,14.7-32.8,32.8c0,10,4.5,19,11.7,25.1l-129,162.8c-5.5-4.1-12.2-6.5-19.6-6.5%20c-10.4,0-19.7,4.9-25.7,12.5l-96.4-71.5c3.7-5.3,5.9-11.8,5.9-18.7c0-18.1-14.7-32.8-32.8-32.8c-18.1,0-32.8,14.7-32.8,32.8%20c0,9.2,3.8,17.5,9.9,23.5L69.5,465.4c-5.8-5-13.2-8-21.4-8c-18.1,0-32.8,14.7-32.8,32.8S30,523,48.1,523s32.8-14.7,32.8-32.8%20c0-9.2-3.8-17.5-9.9-23.5l107.8-117.4c5.8,5,13.2,8,21.4,8c10.4,0,19.7-4.9,25.7-12.5l96.4,71.5c-3.7,5.3-5.9,11.8-5.9,18.7%20c0,18.1,14.7,32.8,32.8,32.8s32.8-14.7,32.8-32.8c0-10-4.5-19-11.7-25.1l129-162.8c5.5,4.1,12.2,6.5,19.6,6.5%20c18.1,0,32.8-14.7,32.8-32.8S537,188.1,518.9,188.1z%20M48.1,521c-17,0-30.8-13.8-30.8-30.8s13.8-30.8,30.8-30.8%20c7.7,0,14.7,2.8,20.1,7.5c0.5,0.4,1,0.9,1.5,1.4c5.7,5.6,9.3,13.4,9.3,22C78.9,507.2,65,521,48.1,521z%20M200.2,355.4%20c-7.7,0-14.7-2.8-20.1-7.5c-0.5-0.4-1-0.9-1.5-1.4c-5.7-5.6-9.3-13.4-9.3-22c0-17,13.8-30.8,30.8-30.8c17,0,30.8,13.8,30.8,30.8%20c0,6.5-2,12.5-5.5,17.5c-0.4,0.5-0.8,1.1-1.2,1.6C218.7,350.8,210,355.4,200.2,355.4z%20M349.3,465.9c-17,0-30.8-13.8-30.8-30.8%20c0-6.5,2-12.5,5.5-17.5c0.4-0.5,0.8-1.1,1.2-1.6c5.6-7.1,14.4-11.7,24.1-11.7c6.9,0,13.2,2.3,18.3,6.1c0.5,0.4,1.1,0.8,1.6,1.2%20c6.7,5.7,10.9,14.1,10.9,23.5C380.1,452,366.3,465.9,349.3,465.9z%20M518.9,251.7c-6.9,0-13.2-2.3-18.3-6.1c-0.5-0.4-1.1-0.8-1.6-1.2%20c-6.7-5.7-10.9-14.1-10.9-23.5c0-17,13.8-30.8,30.8-30.8s30.8,13.8,30.8,30.8S535.9,251.7,518.9,251.7z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",KD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='64.5'%20y='201.5'%20fill='%23E4E4E4'%20width='2'%20height='381'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M447.5,560.5h-357v-60h357V560.5z%20M92.5,558.5h353v-56h-353V558.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M292.5,468.5h-202v-60h202V468.5z%20M92.5,466.5h198v-56h-198V466.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M526.5,377.5h-436v-60h436V377.5z%20M92.5,375.5h432v-56h-432V375.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.5,285.5h-278v-59h278V285.5z%20M92.5,283.5h274v-55h-274V283.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",QD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='78'%20y='558.5'%20fill='%23E4E4E4'%20width='410'%20height='2'/%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M463,533.5h-61v-207h61V533.5z%20M404,531.5h57v-203h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M363,533.5h-61v-152h61V533.5z%20M304,531.5h57v-148h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M263,533.5h-61v-316h61V533.5z%20M204,531.5h57v-312h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M163,533.5h-62v-248h62V533.5z%20M103,531.5h58v-244h-58V531.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",JD="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M298.5,607.2c-12.6,0-25.3-1.1-37.6-3.2l-1-0.2l29.6-198l-27.1,61l-20.3-12.1l45.2-52.6L126.8,524.6%20l-0.6-0.8c-12.1-15.5-21.8-32.7-29-50.9l-0.4-0.9l0.9-0.4l181.4-70.1l-149.6,20.9v-47.1l158.4,22.1L97.5,323.8l0.4-0.9%20c7.3-18,17.1-34.9,29.3-50.4l0.6-0.8L282,389.2l-76.9-89.5l34.5-20.2l49.9,112.2l-29.6-198l1-0.2c12.4-2.1,25-3.2,37.6-3.2%20c8,0,16.1,0.4,23.9,1.3l1,0.1l-0.2,1l-29.7,198.8l83.2-187.1l0.9,0.3c19.5,7.5,37.7,17.7,54.3,30.3l0.8,0.6L301.2,389.2l132.5-101%20l28,44.9l-166,64.2L511.5,367l0.1,1c1.6,10.2,2.4,20.6,2.4,30.8c0,10.2-0.8,20.6-2.4,30.8l-0.1,1l-207.1-29l95.5,36.9l-18.5,28.9%20l-85.5-65.1l108.5,126.3l-45.5,23.8l-65.1-146.5l29.9,199.9l-1,0.1C314.4,606.8,306.4,607.2,298.5,607.2z%20M262.2,602.2%20c12,2,24.2,3,36.3,3c7.4,0,15.1-0.4,22.7-1.2l-29.7-198.5L262.2,602.2z%20M295.3,404.7l64.5,144.9l41.4-21.7L295.3,404.7l0.1,0.1%20L295.3,404.7z%20M99.4,473.1c7,17.4,16.3,33.8,27.8,48.7l158.3-120.6L99.4,473.1z%20M297.8,401.2l83.1,63.3l16-25L297.8,401.2z%20M245.2,454.3l16.3,9.7l26.4-59.4L245.2,454.3z%20M298.8,398.8l211,29.5c1.4-9.8,2.2-19.7,2.2-29.5c0-9.8-0.7-19.7-2.2-29.5%20L298.8,398.8z%20M131.5,377.6V420l152.2-21.2L131.5,377.6z%20M433.2,291.1L297.8,394.2l160.9-62.2L433.2,291.1z%20M100.1,322.6%20l185.2,71.6L128.2,274.5C116.6,289.3,107.2,305.5,100.1,322.6z%20M377.9,207.1L295.3,393l0,0l0,0L430,236.1%20C414,224.1,396.5,214.3,377.9,207.1z%20M287.9,393L287.9,393l-49.2-110.6l-30.5,17.8L287.9,393L287.9,393z%20M262.2,195.3L291.6,392%20l29.6-198.5c-7.5-0.8-15.1-1.2-22.7-1.2C286.4,192.3,274.2,193.4,262.2,195.3z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",eA="data:image/svg+xml,%3csvg%20width='616'%20height='559'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20fill='none'%20stroke='%23E4E4E4'%20id='svg_1'%20stroke-width='2'%20d='m97.44781,156.99998l419.1042,0l-24.42354,59.30477l-370.25707,0l-24.42359,-59.30477zm29.93028,72.6737l359.24347,0l-24.42354,59.30458l-310.39633,0l-24.42361,-59.30458zm54.35357,131.97891l-24.4232,-59.30521l299.38335,0l-24.42422,59.30521l-250.53593,0zm220.60617,72.6737l-190.67573,0l-24.42491,-59.30458l239.52554,0l-24.42491,59.30458zm-3.92305,72.6737l-182.82963,0l1.26325,-59.30458l180.30313,0l1.26325,59.30458z'/%3e%3c/g%3e%3c/svg%3e",tA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M480.4,506.2l-162.3-106L509.4,431l-0.2,1c-4.3,26.5-13.8,51.2-28.4,73.4L480.4,506.2z%20M327,403.7%20l152.7,99.8c13.9-21.5,23.1-45.3,27.3-70.8L327,403.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M275.3,586.8C170.9,586.8,86,502,86,397.7c0-50.6,19.6-98.1,55.1-133.8c35.6-35.7,83-55.5,133.5-55.5h1%20v188.7l158.3,103.1l-0.5,0.8C398.1,554.8,339.1,586.8,275.3,586.8z%20M273.5,210.7c-49.6,0.3-96.1,19.7-131.1,54.8%20C107.3,300.7,88,347.7,88,397.7c0,103.2,84,187.1,187.4,187.1c62.7,0,120.9-31.4,155.7-83.9L273.5,398.3V210.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M482.8,408.7l-1-0.2l-187.3-30V188.5h1c74.8,0,142.7,44.1,173.1,112.2c15.2,34.1,20.2,71.1,14.4,107%20L482.8,408.7z%20M296.5,376.9l184.6,29.5c5.5-35.2,0.5-71.4-14.4-104.9c-29.9-67.1-96.6-110.5-170.2-110.9V376.9z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",rA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cpolygon%20fill='%23E4E4E4'%20points='80,575%2080,233%2078,233%2078,575%2078,577%2080,577%20497,577%20497,575%20'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M374.7,480.1c-29.7,0-53.9-24.2-53.9-53.9c0-29.7,24.2-53.9,53.9-53.9s53.9,24.2,53.9,53.9%20C428.6,455.9,404.4,480.1,374.7,480.1z%20M374.7,374.3c-28.6,0-51.9,23.3-51.9,51.9s23.3,51.9,51.9,51.9s51.9-23.3,51.9-51.9%20S403.3,374.3,374.7,374.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M264.2,395.2c-22,0-40-17.9-40-40c0-22,17.9-40,40-40s40,17.9,40,40C304.2,377.3,286.2,395.2,264.2,395.2z%20M264.2,317.3c-20.9,0-38,17-38,38c0,20.9,17,38,38,38s38-17,38-38C302.2,334.3,285.1,317.3,264.2,317.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M413.7,351.2c-38.8,0-70.3-31.6-70.3-70.3c0-38.8,31.6-70.3,70.3-70.3s70.3,31.5,70.3,70.3%20C484,319.6,452.4,351.2,413.7,351.2z%20M413.7,212.5c-37.7,0-68.3,30.7-68.3,68.3c0,37.7,30.7,68.3,68.3,68.3%20c37.7,0,68.3-30.7,68.3-68.3C482,243.2,451.3,212.5,413.7,212.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M228.9,489C228.9,489,228.9,489,228.9,489c-15.8,0-29.7-10.1-34.5-25.2c-3-9.2-2.2-19,2.3-27.7%20c4.4-8.6,11.9-15,21.2-18c3.6-1.2,7.4-1.8,11.1-1.8c15.8,0,29.7,10.1,34.5,25.2c3,9.2,2.2,19.1-2.3,27.7c-4.4,8.6-11.9,15-21.2,18%20C236.4,488.4,232.6,489,228.9,489z%20M228.9,418.4c-3.6,0-7.1,0.6-10.5,1.7c-8.7,2.8-15.8,8.8-20,17c-4.2,8.1-4.9,17.4-2.1,26.1%20c4.6,14.2,17.7,23.8,32.6,23.8c3.6,0,7.1-0.6,10.5-1.7c8.7-2.8,15.8-8.8,20-17c4.2-8.1,4.9-17.4,2.1-26.2%20C256.9,428,243.8,418.4,228.9,418.4z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M147.5,548C147.5,548,147.5,548,147.5,548c-9.4,0-17.6-6-20.4-14.9c-3.6-11.3,2.6-23.4,13.9-27%20c2.1-0.7,4.4-1,6.6-1c9.3,0,17.6,6,20.4,14.9c3.6,11.3-2.6,23.3-13.9,27C152,547.7,149.7,548,147.5,548z%20M147.5,507.1%20c-2,0-4,0.3-6,0.9c-10.2,3.3-15.9,14.2-12.6,24.4c2.6,8.1,10,13.5,18.5,13.5c0,0,0,0,0,0c2,0,4-0.3,6-0.9%20c10.2-3.3,15.8-14.3,12.6-24.5C163.4,512.5,156,507.1,147.5,507.1z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M307.6,337.5h-28.6l-3.4,41.7h28.6L307.6,337.5z%20M278.4,376.7l3-36.7h23.5l-3,36.7H278.4z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M262.9,415.9h12l2.4-28.6h23.5l-2.4,28.6h12l2.4-28.6h18.6v-10.5h-17.5l3-36.7h17.7v-10.5h-16.8l2.4-28.6%20h-12l-2.4,28.6h-23.5l2.4-28.6h-12l-2.4,28.6h-18.5V340h17.5l-3,36.7h-17.7v10.5h16.8L262.9,415.9z%20M251.1,384.7v-5.5h17.5%20l3.4-41.7h-17.8V332h18.3l2.4-28.6h7l-2.4,28.6h28.6l2.4-28.6h7l-2.4,28.6h17v5.5h-17.5l-3.4,41.7H329v5.5h-18.4l-2.4,28.6h-7%20l2.4-28.6h-28.6l-2.4,28.6h-7l2.4-28.6H251.1z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M84,269.1v178.8h396.6V269.1H84z%20M478.2,445.4H86.5V271.6h391.6V445.4z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",iA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566.5%20700.5'%20enable-background='new%200%200%20566.5%20700.5'%20xml:space='preserve'%3e%3cg%20id='Layer_2'%3e%3crect%20x='-5057'%20y='-6963'%20fill='transparent'%20stroke='%23000000'%20stroke-miterlimit='10'%20width='16156.4'%20height='16115.1'/%3e%3c/g%3e%3cg%20id='Layer_1'%3e%3cpath%20fill='%23E4E4E4'%20d='M399,207h-2H284h-2H170h-2H53v35v4v31v2v31v2v30v2v31v2v30v2v31v2v31v2v34h115h2h112h2h113h2h116v-34v-2%20v-31v-2v-31v-2v-30v-2v-31v-2v-30v-2v-31v-2v-31v-4v-35H399z%20M397,211v31H284v-31H397z%20M282,279v31H170v-31H282z%20M170,277v-31h112%20v31H170z%20M282,312v30H170v-30H282z%20M282,344v31H170v-31H282z%20M282,377v30H170v-30H282z%20M282,409v31H170v-31H282z%20M282,442v31H170%20v-31H282z%20M284,442h113v31H284V442z%20M284,440v-31h113v31H284z%20M284,407v-30h113v30H284z%20M284,375v-31h113v31H284z%20M284,342v-30h113%20v30H284z%20M284,310v-31h113v31H284z%20M284,277v-31h113v31H284z%20M282,211v31H170v-31H282z%20M57,211h111v31H57V211z%20M57,246h111v31H57%20V246z%20M57,279h111v31H57V279z%20M57,312h111v30H57V312z%20M57,344h111v31H57V344z%20M57,377h111v30H57V377z%20M57,409h111v31H57V409z%20M57,442h111v31H57V442z%20M57,505v-30h111v30H57z%20M170,505v-30h112v30H170z%20M284,505v-30h113v30H284z%20M511,505H399v-30h112V505z%20M511,473H399v-31h112V473z%20M511,440H399v-31h112V440z%20M511,407H399v-30h112V407z%20M511,375H399v-31h112V375z%20M511,342H399v-30h112%20V342z%20M511,310H399v-31h112V310z%20M511,277H399v-31h112V277z%20M399,242v-31h112v31H399z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",aA="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3cpath%20fill='%23E4E4E4'%20d='M52,202.5v200v2v104h462v-306H52z%20M510,402.5H225v-196h285V402.5z%20M56,206.5h167v196H56V206.5z%20M56,404.5%20h298v100H56V404.5z%20M356,504.5v-100h154v100H356z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Op={area:XD,line:ZD,bar:KD,column:QD,polar:JD,funnel:eA,pie:tA,scatter:rA,indicator:nA,table:iA,treemap:aA};function oA(e){var r;return(r=Op[e])!=null?r:Op["bar"]}const kd=({iconType:e})=>{var u;const{themeSettings:t}=kt(),r=Q.useRef(null),[n,a]=Q.useState({width:null,height:null});Q.useEffect(()=>{r.current&&a({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const o=oA(e),{t:s}=O.useTranslation();return V.jsxs("div",{ref:r,className:fu.wrapper,children:[V.jsx("div",{className:fu.title,style:{fontFamily:(u=t.typography)==null?void 0:u.fontFamily,fontSize:sA(n.width,n.height)},children:s("chartNoData")}),o?V.jsx("img",{className:fu.image,src:o}):null]})};function sA(e,t){return!e||!t?"18px":e<300?`${Math.max(Math.sqrt(e*e+t*t)*.045,18)}px`:`${Math.min(Math.max(t*.09,18),60)}px`}const kp=(e,t,r)=>({width:(t==null?void 0:t.width)||(e==null?void 0:e.width)||r.width,height:(t==null?void 0:t.height)||(e==null?void 0:e.height)||r.height}),oo=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:a,onSizeChange:o})=>{const s=Q.useRef(null),[u,c]=Q.useState(),d=Q.useCallback(()=>{var S,T;const E={width:(S=s.current)==null?void 0:S.offsetWidth,height:(T=s.current)==null?void 0:T.offsetHeight};c(C=>{const x=(C==null?void 0:C.width)===0&&E.width===t.width,P=(C==null?void 0:C.height)===0&&E.height===t.height,R={width:x?C.width:E.width,height:P?C.height:E.height};return Ii(C,R)?C:(o==null||o(kp(R,r,t)),R)})},[s,r,t,o,c]);Q.useLayoutEffect(()=>{d()},[d]),Q.useEffect(()=>(window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)),[d]);const h={width:r!=null&&r.width&&!(a!=null&&a.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(a!=null&&a.height)?`${r.height}px`:"100%"},m=kp(u,r,t),p=(u==null?void 0:u.width)||(u==null?void 0:u.width)===void 0,g=(u==null?void 0:u.height)||(u==null?void 0:u.width)===void 0,_={width:p||a!=null&&a.width?"100%":`${m.width}px`,height:g||a!=null&&a.height?"100%":`${m.height}px`,position:"relative"},y=a!=null&&a.width||a!=null&&a.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},w=n?`${m==null?void 0:m.width}${m==null?void 0:m.height}`:"";return V.jsx("div",{style:h,ref:s,children:V.jsx("div",{style:_,children:V.jsx("div",{style:y,children:m&&(typeof e=="function"?e(m):e)})},w)})},Cy={width:400,height:500},Nd=e=>O.isTable(e)?{width:400,height:500}:O.isIndicator(e)?{width:200,height:200}:{width:400,height:400},lA=25,Dd=(e,{hasHeader:t}={})=>{const r=e==="pivot"?Cy:Nd(e);return t&&(r.height=r.height+lA),r},uA=[{officialName:"Afghanistan",allNames:["af","afġānistān","afghanistan","afg"],id:"AFG"},{id:"ALA",officialName:"Åland Islands",allNames:["ax","ala","åland islands","aland islands"]},{officialName:"Albania",allNames:["al","shqipëri","shqipëria","shqipnia","albania","alb"],id:"ALB"},{officialName:"Algeria",allNames:["dz","dzayer","algérie","algeria","dza"],id:"DZA"},{officialName:"American Samoa",allNames:["as","amerika sāmoa","amelika sāmoa","sāmoa amelika","american samoa","asm"],id:"ASM"},{id:"AND",officialName:"Andorra",allNames:["ad","and","andorra"]},{officialName:"Angola",allNames:["ao","república de angola","ʁɛpublika de an'ɡɔla","angola","ago"],id:"AGO"},{officialName:"Anguilla",allNames:["ai","anguilla","aia"],id:"AIA"},{id:"ATA",officialName:"Antarctica",allNames:["aq","ata","antarctica"]},{officialName:"Antigua and Barbuda",allNames:["ag","antigua and barbuda","atg"],id:"ATG"},{officialName:"Argentina",allNames:["ar","argentine republic","república argentina","argentina","arg"],id:"ARG"},{officialName:"Armenia",allNames:["am","hayastan","republic of armenia","հայաստանի հանրապետություն","armenia","arm"],id:"ARM"},{officialName:"Aruba",allNames:["aw","aruba","abw"],id:"ABW"},{officialName:"Australia",allNames:["au","australia","aus"],id:"AUS"},{officialName:"Austria",allNames:["at","österreich","osterreich","oesterreich","austria","aut"],id:"AUT"},{officialName:"Azerbaijan",allNames:["az","republic of azerbaijan","azərbaycan respublikası","azerbaijan","aze","azerbaijan republic"],id:"AZE"},{officialName:"Bahrain",allNames:["bh","kingdom of bahrain","mamlakat al-baḥrayn","bahrain","bhr"],id:"BHR"},{officialName:"Bangladesh",allNames:["bd","people's republic of bangladesh","gônôprôjatôntri bangladesh","bangladesh","bgd"],id:"BGD"},{officialName:"Barbados",allNames:["bb","barbados","brb"],id:"BRB"},{officialName:"Belarus",allNames:["by","bielaruś","republic of belarus","белоруссия","республика беларусь","belorussiya","respublika belarus’","belarus","blr"],id:"BLR"},{officialName:"Belgium",allNames:["be","belgië","belgie","belgien","belgique","kingdom of belgium","koninkrijk belgië","royaume de belgique","königreich belgien","belgium","bel"],id:"BEL"},{officialName:"Belize",allNames:["bz","belize","blz"],id:"BLZ"},{officialName:"Benin",allNames:["bj","republic of benin","république du bénin","benin","ben"],id:"BEN"},{officialName:"Bermuda",allNames:["bm","the islands ofbermuda","the bermudas","somers isles","bermuda","bmu"],id:"BMU"},{officialName:"Bhutan",allNames:["bt","kingdom of bhutan","bhutan","btn"],id:"BTN"},{officialName:"Bolivia",allNames:["bo","buliwya","wuliwya","plurinational state of bolivia","estado plurinacional de bolivia","buliwya mamallaqta","wuliwya suyu","tetã volívia","bolivia","bol","plurinational state of"],id:"BOL"},{id:"BES",officialName:"Bonaire",allNames:["bq","bes","bonaire","sint eustatius and saba","caribbean netherlands"]},{officialName:"Bosnia and Herzegovina",allNames:["ba","bosnia-herzegovina","босна и херцеговина","bosnia and herzegovina","bih"],id:"BIH"},{officialName:"Botswana",allNames:["bw","republic of botswana","lefatshe la botswana","botswana","bwa"],id:"BWA"},{id:"BVT",officialName:"Bouvet Island",allNames:["bv","bvt","bouvet island"]},{officialName:"Brazil",allNames:["br","brasil","federative republic of brazil","república federativa do brasil","brazil","bra"],id:"BRA"},{officialName:"British Indian Ocean Territory",allNames:["io","british indian ocean territory","iot"],id:"IOT"},{officialName:"Brunei",allNames:["bn","nation of brunei","the abode of peace","brunei","brn","brunei darussalam"],id:"BRN"},{officialName:"Bulgaria",allNames:["bg","republic of bulgaria","република българия","bulgaria","bgr"],id:"BGR"},{officialName:"Burkina Faso",allNames:["bf","burkina faso","bfa"],id:"BFA"},{officialName:"Burundi",allNames:["bi","republic of burundi","republika y'uburundi","république du burundi","burundi","bdi"],id:"BDI"},{officialName:"Cambodia",allNames:["kh","kingdom of cambodia","cambodia","khm"],id:"KHM"},{officialName:"Cameroon",allNames:["cm","republic of cameroon","république du cameroun","cameroon","cmr"],id:"CMR"},{officialName:"Canada",allNames:["ca","canada","can"],id:"CAN"},{officialName:"Cape Verde",allNames:["cv","republic of cabo verde","república de cabo verde","cape verde","cpv"],id:"CPV"},{officialName:"Cayman Islands",allNames:["ky","cayman islands","cym"],id:"CYM"},{officialName:"Central African Republic",allNames:["cf","central african republic","république centrafricaine","central african republic","caf"],id:"CAF"},{officialName:"Chad",allNames:["td","tchad","republic of chad","république du tchad","chad","tcd"],id:"TCD"},{officialName:"Chile",allNames:["cl","republic of chile","república de chile","chile","chl"],id:"CHL"},{officialName:"China",allNames:["cn","zhōngguó","zhongguo","zhonghua","people's republic of china","中华人民共和国","zhōnghuá rénmín gònghéguó","china","chn"],id:"CHN"},{officialName:"Christmas Island",allNames:["cx","territory of christmas island","christmas island","cxr"],id:"CXR"},{officialName:"Cocos (Keeling) Islands",allNames:["cc","territoryof the cocos (keeling) islands","keeling islands","cocos (keeling) islands","cck","cocos islands","cocos [keeling] islands"],id:"CCK"},{officialName:"Colombia",allNames:["co","republic of colombia","república de colombia","colombia","col"],id:"COL"},{officialName:"Comoros",allNames:["km","union of the comoros","union des comores","udzima wa komori","al-ittiḥād al-qumurī","comoros","com"],id:"COM"},{officialName:"Cook Islands",allNames:["ck","kūki 'āirani","cook islands","cok"],id:"COK"},{officialName:"Costa Rica",allNames:["cr","republic of costa rica","república de costa rica","costa rica","cri"],id:"CRI"},{officialName:"Croatia",allNames:["hr","hrvatska","republic of croatia","republika hrvatska","croatia","hrv","croatia, republic of","croatia democratic republic of the"],id:"HRV"},{officialName:"Cuba",allNames:["cu","republic of cuba","república de cuba","cuba","cub"],id:"CUB"},{id:"CUW",officialName:"Curaçao",allNames:["cw","cuw","curaçao","curacao"]},{officialName:"Cyprus",allNames:["cy","kýpros","kıbrıs","republic of cyprus","κυπριακή δημοκρατία","kıbrıs cumhuriyeti","cyprus","cyp"],id:"CYP"},{officialName:"Czech Republic",allNames:["cz","česká republika","česko","czech republic","cze"],id:"CZE"},{officialName:"Democratic Republic of the Congo",allNames:["cd","dr congo","congo-kinshasa","drc","democratic republic of the congo","cod","congo (kinshasa)","the democratic republic of the congo","congo, the democratic republic of the","congo [drc]","congo, dem. rep."],id:"COD"},{officialName:"Denmark",allNames:["dk","danmark","kingdom of denmark","kongeriget danmark","denmark","dnk"],id:"DNK"},{officialName:"Djibouti",allNames:["dj","jabuuti","gabuuti","republic of djibouti","république de djibouti","gabuutih ummuuno","jamhuuriyadda jabuuti","djibouti","dji"],id:"DJI"},{officialName:"Dominica",allNames:["dm","dominique","wai‘tu kubuli","commonwealth of dominica","dominica","dma"],id:"DMA"},{officialName:"Dominican Republic",allNames:["do","dominican republic","dom"],id:"DOM"},{officialName:"East Timor",allNames:["tl","east timor","democratic republic of timor-leste","república democrática de timor-leste","repúblika demokrátika timór-leste","east timor","tls","timor-leste"],id:"TLS"},{officialName:"Ecuador",allNames:["ec","republic of ecuador","república del ecuador","ecuador","ecu"],id:"ECU"},{officialName:"Egypt",allNames:["eg","arab republic of egypt","egypt","egy"],id:"EGY"},{officialName:"El Salvador",allNames:["sv","republic of el salvador","república de el salvador","el salvador","slv"],id:"SLV"},{officialName:"Equatorial Guinea",allNames:["gq","republic of equatorial guinea","república de guinea ecuatorial","république de guinée équatoriale","república da guiné equatorial","equatorial guinea","gnq"],id:"GNQ"},{officialName:"Eritrea",allNames:["er","state of eritrea","ሃገረ ኤርትራ","dawlatiritriyá","ʾertrā","iritriyā","eritrea","eri"],id:"ERI"},{officialName:"Estonia",allNames:["ee","eesti","republic of estonia","eesti vabariik","estonia","est"],id:"EST"},{officialName:"Ethiopia",allNames:["et","ʾītyōṗṗyā","federal democratic republic of ethiopia","የኢትዮጵያ ፌዴራላዊ ዲሞክራሲያዊ ሪፐብሊክ","ethiopia","eth"],id:"ETH"},{officialName:"Falkland Islands",allNames:["fk","islas malvinas","falkland islands","flk","falkland islands (malvinas)","falkland islands (islas malvinas)","falkland islands [malvinas]","falkland islands [islas malvinas]"],id:"FLK"},{officialName:"Faroe Islands",allNames:["fo","føroyar","færøerne","faroe islands","fro"],id:"FRO"},{officialName:"Federated States of Micronesia",allNames:["fm","federated states of micronesia","federated states of micronesia","fsm","micronesia","federated states of"],id:"FSM"},{officialName:"Fiji",allNames:["fj","viti","republic of fiji","matanitu ko viti","fijī gaṇarājya","fiji","fji"],id:"FJI"},{officialName:"Finland",allNames:["fi","suomi","republic of finland","suomen tasavalta","republiken finland","finland","fin"],id:"FIN"},{officialName:"France",allNames:["fr","french republic","république française","france","fra"],id:"FRA"},{officialName:"French Guiana",allNames:["gf","guiana","guyane","french guiana","guf"],id:"GUF"},{officialName:"French Polynesia",allNames:["pf","polynésie française","french polynesia","pōrīnetia farāni","french polynesia","pyf"],id:"PYF"},{officialName:"French Southern and Antarctic Lands",allNames:["tf","french southern andantarctic lands","atf","french southern territories"],id:"ATF"},{officialName:"Gabon",allNames:["ga","gabonese republic","république gabonaise","gabon","gab","gabon republic"],id:"GAB"},{officialName:"Georgia",allNames:["ge","sakartvelo","georgia","geo"],id:"GEO"},{officialName:"Germany",allNames:["de","federal republic of germany","bundesrepublik deutschland","germany","deu"],id:"DEU"},{officialName:"Ghana",allNames:["gh","ghana","gha"],id:"GHA"},{officialName:"Gibraltar",allNames:["gi","gibraltar","gib"],id:"GIB"},{officialName:"Greece",allNames:["gr","elláda","hellenic republic","ελληνική δημοκρατία","greece","grc"],id:"GRC"},{officialName:"Greenland",allNames:["gl","grønland","greenland","grl"],id:"GRL"},{officialName:"Grenada",allNames:["gd","grenada","grd"],id:"GRD"},{officialName:"Guadeloupe",allNames:["gp","gwadloup","guadeloupe","glp"],id:"GLP"},{officialName:"Guam",allNames:["gu","guåhån","guam","gum"],id:"GUM"},{officialName:"Guatemala",allNames:["gt","guatemala","gtm"],id:"GTM"},{officialName:"Guernsey",allNames:["gg","bailiwick of guernsey","bailliage de guernesey","guernsey","ggy"],id:"GGY"},{officialName:"Guinea",allNames:["gn","republic of guinea","république de guinée","guinea","gin"],id:"GIN"},{officialName:"Guinea-Bissau",allNames:["gw","republic of guinea-bissau","república da guiné-bissau","guinea-bissau","gnb"],id:"GNB"},{officialName:"Guyana",allNames:["gy","co-operative republic of guyana","guyana","guy"],id:"GUY"},{officialName:"Haiti",allNames:["ht","republic of haiti","république d'haïti","repiblik ayiti","haiti","hti"],id:"HTI"},{officialName:"Heard Island and McDonald Islands",allNames:["hm","heard island and mcdonald islands","hmd","heard and mcdonald islands"],id:"HMD"},{officialName:"Honduras",allNames:["hn","republic of honduras","república de honduras","honduras","hnd"],id:"HND"},{officialName:"Hong Kong",allNames:["hk","香港","hongkong","hkg","hong kong","hong kong, china"],id:"HKG"},{officialName:"Hungary",allNames:["hu","hungary","hun"],id:"HUN"},{officialName:"Iceland",allNames:["is","island","republic of iceland","lýðveldið ísland","iceland","isl"],id:"ISL"},{officialName:"India",allNames:["in","bhārat","republic of india","bharat ganrajya","india","ind"],id:"IND"},{officialName:"Indonesia",allNames:["id","republic of indonesia","republik indonesia","indonesia","idn"],id:"IDN"},{officialName:"Iran",allNames:["ir","islamic republic of iran","jomhuri-ye eslāmi-ye irān","iran","irn","islamic republic of"],id:"IRN"},{officialName:"Iraq",allNames:["iq","republic of iraq","jumhūriyyat al-‘irāq","iraq","irq"],id:"IRQ"},{officialName:"Ireland",allNames:["ie","éire","republic of ireland","poblacht na héireann","ireland","irl"],id:"IRL"},{officialName:"Isle of Man",allNames:["im","ellan vannin","mann","mannin","isle of man","imn"],id:"IMN"},{officialName:"Israel",allNames:["il","state of israel","medīnat yisrā'el","israel","isr"],id:"ISR"},{officialName:"Italy",allNames:["it","italian republic","repubblica italiana","italy","ita"],id:"ITA"},{officialName:"Ivory Coast",allNames:["ci","ivory coast","republic of côte d'ivoire","république de côte d'ivoire","ivory coast","civ","côte d'ivoire","cote d'ivoire","cote divoire","cã´te d'ivoire","cote d'lvoire"],id:"CIV"},{officialName:"Jamaica",allNames:["jm","jamaica","jam"],id:"JAM"},{officialName:"Japan",allNames:["jp","nippon","nihon","japan","jpn"],id:"JPN"},{officialName:"Jersey",allNames:["je","bailiwick of jersey","bailliage de jersey","bailliage dé jèrri","jersey","jey"],id:"JEY"},{officialName:"Jordan",allNames:["jo","hashemite kingdomof jordan","al-mamlakah al-urdunīyah al-hāshimīyah","jordan","jor"],id:"JOR"},{officialName:"Kazakhstan",allNames:["kz","qazaqstan","казахстан","republic of kazakhstan","қазақстан республикасы","qazaqstan respublïkası","республика казахстан","respublika kazakhstan","kazakhstan","kaz"],id:"KAZ"},{officialName:"Kenya",allNames:["ke","republic of kenya","jamhuri ya kenya","kenya","ken"],id:"KEN"},{officialName:"Kiribati",allNames:["ki","republic of kiribati","ribaberiki kiribati","kiribati","kir"],id:"KIR"},{officialName:"Kuwait",allNames:["kw","state of kuwait","dawlat al-kuwait","kuwait","kwt"],id:"KWT"},{officialName:"Kyrgyzstan",allNames:["kg","киргизия","kyrgyz republic","кыргыз республикасы","kyrgyz respublikasy","kyrgyzstan","kgz"],id:"KGZ"},{officialName:"Laos",allNames:["la","lao","lao people's democratic republic","sathalanalat paxathipatai paxaxon lao","laos","lao"],id:"LAO"},{officialName:"Latvia",allNames:["lv","republic of latvia","latvijas republika","latvia","lva"],id:"LVA"},{officialName:"Lebanon",allNames:["lb","lebanese republic","al-jumhūrīyah al-libnānīyah","lebanon","lbn"],id:"LBN"},{officialName:"Lesotho",allNames:["ls","kingdom of lesotho","muso oa lesotho","lesotho","lso"],id:"LSO"},{officialName:"Liberia",allNames:["lr","republic of liberia","liberia","lbr"],id:"LBR"},{officialName:"Libya",allNames:["ly","state of libya","dawlat libya","libya","lby"],id:"LBY"},{officialName:"Liechtenstein",allNames:["li","principality of liechtenstein","fürstentum liechtenstein","liechtenstein","lie"],id:"LIE"},{officialName:"Lithuania",allNames:["lt","republic of lithuania","lietuvos respublika","lithuania","ltu"],id:"LTU"},{officialName:"Luxembourg",allNames:["lu","grand duchy of luxembourg","grand-duché de luxembourg","großherzogtum luxemburg","groussherzogtum lëtzebuerg","luxembourg","lux"],id:"LUX"},{officialName:"Macau",allNames:["mo","澳门","macao special administrative region of the people's republic of china","中華人民共和國澳門特別行政區","região administrativa especial de macau da república popular da china","macau","mac","macao","macao, china","macau, china"],id:"MAC"},{officialName:"Madagascar",allNames:["mg","republic of madagascar","repoblikan'i madagasikara","république de madagascar","madagascar","mdg"],id:"MDG"},{officialName:"Malawi",allNames:["mw","republic of malawi","malawi","mwi"],id:"MWI"},{officialName:"Malaysia",allNames:["my","malaysia","mys"],id:"MYS"},{officialName:"Maldives",allNames:["mv","maldive islands","republic of the maldives","dhivehi raajjeyge jumhooriyya","maldives","mdv"],id:"MDV"},{officialName:"Mali",allNames:["ml","republic of mali","république du mali","mali","mli"],id:"MLI"},{officialName:"Malta",allNames:["mt","republic of malta","repubblika ta' malta","malta","mlt"],id:"MLT"},{officialName:"Marshall Islands",allNames:["mh","republic of the marshall islands","aolepān aorōkin m̧ajeļ","marshall islands","mhl"],id:"MHL"},{officialName:"Martinique",allNames:["mq","martinique","mtq"],id:"MTQ"},{officialName:"Mauritania",allNames:["mr","islamic republic of mauritania","al-jumhūriyyah al-ʾislāmiyyah al-mūrītāniyyah","mauritania","mrt"],id:"MRT"},{officialName:"Mauritius",allNames:["mu","republic of mauritius","république de maurice","mauritius","mus"],id:"MUS"},{officialName:"Mayotte",allNames:["yt","department of mayotte","département de mayotte","mayotte","myt"],id:"MYT"},{officialName:"Mexico",allNames:["mx","mexicanos","united mexican states","estados unidos mexicanos","mexico","mex"],id:"MEX"},{officialName:"Moldova",allNames:["md","republic of moldova","republica moldova","moldova","mda","republic of"],id:"MDA"},{officialName:"Monaco",allNames:["mc","principality of monaco","principauté de monaco","monaco","mco"],id:"MCO"},{officialName:"Mongolia",allNames:["mn","mongolia","mng"],id:"MNG"},{id:"MNE",officialName:"Montenegro",allNames:["me","mne","montenegro"]},{officialName:"Montserrat",allNames:["ms","montserrat","msr"],id:"MSR"},{officialName:"Morocco",allNames:["ma","kingdom of morocco","al-mamlakah al-maġribiyah","morocco","mar","morroco"],id:"MAR"},{officialName:"Mozambique",allNames:["mz","republic of mozambique","república de moçambique","mozambique","moz"],id:"MOZ"},{id:"MMR",officialName:"Myanmar",allNames:["mm","mmr","myanmar","myanmar (burma)","myanmar [burma]","burma"]},{officialName:"Namibia",allNames:["na","namibië","republic of namibia","namibia","nam"],id:"NAM"},{officialName:"Nauru",allNames:["nr","naoero","pleasant island","republic of nauru","ripublik naoero","nauru","nru"],id:"NRU"},{officialName:"Nepal",allNames:["np","federal democratic republic of nepal","loktāntrik ganatantra nepāl","nepal","npl"],id:"NPL"},{officialName:"Netherlands",allNames:["nl","holland","nederland","netherlands","nld","the netherlands"],id:"NLD"},{officialName:"New Caledonia",allNames:["nc","new caledonia","ncl"],id:"NCL"},{officialName:"New Zealand",allNames:["nz","aotearoa","new zealand","nzl"],id:"NZL"},{officialName:"Nicaragua",allNames:["ni","republic of nicaragua","república de nicaragua","nicaragua","nic"],id:"NIC"},{officialName:"Niger",allNames:["ne","nijar","republic of niger","république du niger","niger","ner"],id:"NER"},{officialName:"Nigeria",allNames:["ng","nijeriya","naíjíríà","federal republic of nigeria","nigeria","nga"],id:"NGA"},{officialName:"Niue",allNames:["nu","niue","niu"],id:"NIU"},{officialName:"Norfolk Island",allNames:["nf","territory of norfolk island","teratri of norf'k ailen","norfolk island","nfk"],id:"NFK"},{officialName:"North Korea",allNames:["kp","democratic people's republic of korea","조선민주주의인민공화국","chosŏn minjujuŭi inmin konghwaguk","north korea","prk","korea, democratic people's republic of","korea, north"],id:"PRK"},{officialName:"Northern Mariana Islands",allNames:["mp","commonwealth of the northern mariana islands","sankattan siha na islas mariånas","northern mariana islands","mnp"],id:"MNP"},{officialName:"Norway",allNames:["no","norge","noreg","kingdom of norway","kongeriket norge","kongeriket noreg","norway","nor"],id:"NOR"},{officialName:"Oman",allNames:["om","sultanate of oman","salṭanat ʻumān","oman","omn"],id:"OMN"},{officialName:"Pakistan",allNames:["pk","pākistān","islamic republic of pakistan","islāmī jumhūriya'eh pākistān","pakistan","pak"],id:"PAK"},{officialName:"Palau",allNames:["pw","republic of palau","beluuer a belau","palau","plw"],id:"PLW"},{id:"PSE",officialName:"Palestinian Authority",allNames:["ps","pse","palestinian authority","palestinian territory"]},{officialName:"Panama",allNames:["pa","republic of panama","república de panamá","panama","pan"],id:"PAN"},{officialName:"Papua New Guinea",allNames:["pg","independent state of papua new guinea","independen stet bilong papua niugini","papua new guinea","png"],id:"PNG"},{officialName:"Paraguay",allNames:["py","republic of paraguay","república del paraguay","tetã paraguái","paraguay","pry"],id:"PRY"},{officialName:"Peru",allNames:["pe","republic of peru","república del perú","peru","per"],id:"PER"},{officialName:"Philippines",allNames:["ph","republic of the philippines","repúblika ng pilipinas","philippines","phl"],id:"PHL"},{officialName:"Pitcairn Islands",allNames:["pn","pitcairn henderson ducie and oeno islands","pitcairn islands","pcn","pitcairn"],id:"PCN"},{officialName:"Poland",allNames:["pl","republic of poland","rzeczpospolita polska","poland","pol"],id:"POL"},{officialName:"Portugal",allNames:["pt","portuguesa","portuguese republic","república portuguesa","portugal","prt"],id:"PRT"},{officialName:"Puerto Rico",allNames:["pr","commonwealth of puerto rico","estado libre asociado de puerto rico","puerto rico","pri"],id:"PRI"},{officialName:"Qatar",allNames:["qa","state of qatar","dawlat qaṭar","qatar","qat"],id:"QAT"},{officialName:"Republic of Macedonia",allNames:["mk","republic of macedonia","република македонија","republic of macedonia","mkd","macedonia","macedonia (fyrom)","macedonia [fyrom]","the former yugoslav republic of","the former yugoslav republic of macedonia"],id:"MKD"},{officialName:"Republic of the Congo",allNames:["cg","congo-brazzaville","republic of the congo","cog","congo (brazzaville)","congo [republic]","congo","congo, rep."],id:"COG"},{officialName:"Réunion",allNames:["re","reunion","réunion","reu","rã©union"],id:"REU"},{officialName:"Romania",allNames:["ro","rumania","roumania","românia","romania","rou"],id:"ROU"},{officialName:"Russia",allNames:["ru","rossiya","russian federation","российская федерация","rossiyskaya federatsiya","russia","rus"],id:"RUS"},{officialName:"Rwanda",allNames:["rw","republic of rwanda","repubulika y'u rwanda","république du rwanda","rwanda","rwa"],id:"RWA"},{id:"BLM",officialName:"Saint Barthélemy",allNames:["bl","blm","saint barthélemy","saint barthelemy","st barthelemy"]},{officialName:"Saint Helena",allNames:["sh","saint helena","shn","st helena","ascension and tristan da cunha"],id:"SHN"},{officialName:"Saint Kitts and Nevis",allNames:["kn","federation of saint christopher and nevis","saint kitts and nevis","kna","st kitts and nevis","saint kitts-nevis","st kitts-nevis"],id:"KNA"},{officialName:"Saint Lucia",allNames:["lc","saint lucia","lca","st lucia"],id:"LCA"},{officialName:"Saint Pierre and Miquelon",allNames:["pm","collectivité territoriale de saint-pierre-et-miquelon","saint pierre andmiquelon","spm","st pierre and miquelon","saint pierre and miquelon","st. pierre and miquelon"],id:"SPM"},{officialName:"Saint Vincent and the Grenadines",allNames:["vc","saint vincent and the grenadines","vct","st vincent and the grenadines"],id:"VCT"},{officialName:"Samoa",allNames:["ws","independent state of samoa","malo saʻoloto tutoʻatasi o sāmoa","samoa","wsm","western samoa"],id:"WSM"},{officialName:"San Marino",allNames:["sm","republic of san marino","repubblica di san marino","san marino","smr"],id:"SMR"},{officialName:"São Tomé and Príncipe",allNames:["st","democratic republic of são tomé and príncipe","república democrática de são tomé e príncipe","são tomé and príncipe","stp","sao tome and principe","sã£o tomã© and prã­ncipe"],id:"STP"},{officialName:"Saudi Arabia",allNames:["sa","kingdom of saudi arabia","al-mamlakah al-‘arabiyyah as-su‘ūdiyyah","saudi arabia","sau"],id:"SAU"},{officialName:"Senegal",allNames:["sn","republic of senegal","république du sénégal","senegal","sen"],id:"SEN"},{id:"SRB",officialName:"Serbia",allNames:["rs","srb","serbia"]},{officialName:"Seychelles",allNames:["sc","republic of seychelles","repiblik sesel","république des seychelles","seychelles","syc"],id:"SYC"},{officialName:"Sierra Leone",allNames:["sl","republic of sierra leone","sierra leone","sle"],id:"SLE"},{officialName:"Singapore",allNames:["sg","singapura","republik singapura","新加坡共和国","singapore","sgp"],id:"SGP"},{officialName:"Slovakia",allNames:["sk","slovak republic","slovenská republika","slovakia","svk","slovakia (slovak republic)"],id:"SVK"},{officialName:"Slovenia",allNames:["si","republic of slovenia","republika slovenija","slovenia","svn"],id:"SVN"},{officialName:"Solomon Islands",allNames:["sb","solomon islands","slb"],id:"SLB"},{officialName:"Somalia",allNames:["so","aṣ-ṣūmāl","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jumhūriyyat aṣ-ṣūmāl al-fiderāliyya","somalia","som"],id:"SOM"},{officialName:"South Africa",allNames:["za","rsa","suid-afrika","republic of south africa","south africa","zaf"],id:"ZAF"},{officialName:"South Georgia",allNames:["gs","south georgia and the south sandwich islands","south georgia","sgs"],id:"SGS"},{officialName:"South Korea",allNames:["kr","republic of korea","south korea","kor","korea, republic of","korea, south"],id:"KOR"},{officialName:"South Sudan",allNames:["ss","south sudan","ssd"],id:"SSD"},{officialName:"Spain",allNames:["es","kingdom of spain","reino deespaña","spain","esp"],id:"ESP"},{officialName:"Sri Lanka",allNames:["lk","ilaṅkai","democraticsocialist republic of sri lanka","sri lanka","lka"],id:"LKA"},{id:"SXM",officialName:"St Maarten",allNames:["sx","sxm","st maarten","sint maarten","sint maarten (dutch part)","saint-martin (pays-bas)"]},{id:"MAF",officialName:"St Martin (French part)",allNames:["mf","maf","st martin (french part)","saint martin (french part)","saint-martin (france)"]},{officialName:"Sudan",allNames:["sd","republic of the sudan","jumhūrīyat as-sūdān","sudan","sdn"],id:"SDN"},{officialName:"Suriname",allNames:["sr","sarnam","sranangron","republic of suriname","republiek suriname","suriname","sur"],id:"SUR"},{officialName:"Svalbard and Jan Mayen",allNames:["sj","svalbard and jan mayen islands","svalbard and jan mayen","sjm"],id:"SJM"},{officialName:"Swaziland",allNames:["sz","weswatini","swatini","ngwane","kingdom of swaziland","umbuso waseswatini","swaziland","swz"],id:"SWZ"},{officialName:"Sweden",allNames:["se","kingdom of sweden","konungariket sverige","sweden","swe"],id:"SWE"},{officialName:"Switzerland",allNames:["ch","swiss confederation","schweiz","suisse","svizzera","svizra","switzerland","che"],id:"CHE"},{officialName:"Syria",allNames:["sy","syrian arab republic","al-jumhūrīyah al-ʻarabīyah as-sūrīyah","syria","syr"],id:"SYR"},{officialName:"Taiwan",allNames:["tw","táiwān","republic of china","中華民國","zhōnghuá mínguó","taiwan","twn","taiwan, province of china"],id:"TWN"},{officialName:"Tajikistan",allNames:["tj","toçikiston","republic of tajikistan","ҷумҳурии тоҷикистон","çumhuriyi toçikiston","tajikistan","tjk"],id:"TJK"},{officialName:"Tanzania",allNames:["tz","united republic of tanzania","jamhuri ya muungano wa tanzania","tanzania","tza","united republic of"],id:"TZA"},{officialName:"Thailand",allNames:["th","prathet","thai","kingdom of thailand","ราชอาณาจักรไทย","ratcha anachak thai","thailand","tha"],id:"THA"},{officialName:"The Bahamas",allNames:["bs","commonwealth of the bahamas","the bahamas","bhs","bahamas"],id:"BHS"},{officialName:"The Gambia",allNames:["gm","republic of the gambia","the gambia","gmb","gambia"],id:"GMB"},{officialName:"Togo",allNames:["tg","togolese","togolese republic","république togolaise","togo","tgo"],id:"TGO"},{officialName:"Tokelau",allNames:["tk","tokelau","tkl"],id:"TKL"},{officialName:"Tonga",allNames:["to","tonga","ton"],id:"TON"},{officialName:"Trinidad and Tobago",allNames:["tt","republic of trinidad and tobago","trinidad and tobago","tto"],id:"TTO"},{officialName:"Tunisia",allNames:["tn","republic of tunisia","al-jumhūriyyah at-tūnisiyyah","tunisia","tun"],id:"TUN"},{officialName:"Turkey",allNames:["tr","turkiye","republic of turkey","türkiye cumhuriyeti","turkey","tur"],id:"TUR"},{officialName:"Turkmenistan",allNames:["tm","turkmenistan","tkm"],id:"TKM"},{id:"TCA",officialName:"Turks and Caicos Islands",allNames:["tc","tca","turks and caicos islands"]},{officialName:"Tuvalu",allNames:["tv","tuvalu","tuv"],id:"TUV"},{officialName:"Uganda",allNames:["ug","republic of uganda","jamhuri ya uganda","uganda","uga"],id:"UGA"},{officialName:"Ukraine",allNames:["ua","ukrayina","ukraine","ukr"],id:"UKR"},{officialName:"United Arab Emirates",allNames:["ae","uae","united arab emirates","are"],id:"ARE"},{officialName:"United Kingdom",allNames:["gb","uk","great britain","united kingdom","gbr","britain","england"],id:"GBR"},{officialName:"United States",allNames:["us","usa","united states of america","united states","usa"],id:"USA"},{id:"UMI",officialName:"United States Minor Outlying Islands",allNames:["um","umi","united states minor outlying islands"]},{officialName:"Uruguay",allNames:["uy","oriental republic of uruguay","república oriental del uruguay","uruguay","ury"],id:"URY"},{officialName:"Uzbekistan",allNames:["uz","republic of uzbekistan","o‘zbekiston respublikasi","ўзбекистон республикаси","uzbekistan","uzb"],id:"UZB"},{officialName:"Vanuatu",allNames:["vu","republic of vanuatu","ripablik blong vanuatu","république de vanuatu","vanuatu","vut"],id:"VUT"},{id:"VAT",officialName:"Vatican",allNames:["va","vat","vatican","vatican city","vatican city state","holy see (vatican city state)","holy see [vatican city state]"]},{officialName:"Venezuela",allNames:["ve","bolivarian republic of venezuela","república bolivariana de venezuela","venezuela","ven","bolivarian republic of"],id:"VEN"},{officialName:"Vietnam",allNames:["vn","socialist republic of vietnam","cộng hòa xã hội chủ nghĩa việt nam","vietnam","vnm","viet nam"],id:"VNM"},{id:"VGB",officialName:"Virgin Islands",allNames:["vg","vgb","virgin islands","british","british virgin islands","virgin islands (british)"]},{id:"VIR",officialName:"Virgin Islands",allNames:["vi","vir","virgin islands","u.s.","us virgin islands","u.s. virgin islands","virgin islands (u.s.)"]},{officialName:"Wallis and Futuna",allNames:["wf","territory of the wallis and futuna islands","territoire des îles wallis et futuna","wallis and futuna","wlf","wallis and futuna islands"],id:"WLF"},{officialName:"Western Sahara",allNames:["eh","taneẓroft tutrimt","western sahara","esh"],id:"ESH"},{officialName:"Yemen",allNames:["ye","yemeni republic","al-jumhūriyyah al-yamaniyyah","yemen","yem"],id:"YEM"},{officialName:"Zambia",allNames:["zm","republic of zambia","zambia","zmb"],id:"ZMB"},{officialName:"Zimbabwe",allNames:["zw","republic of zimbabwe","zimbabwe","zwe"],id:"ZWE"}],cA="#d6d9dc",dA="#FBFAFA";function fA(e,t,r){return e.reduce((a,o)=>{const s=o.id;let u;if(r==="world"){const c=uA.find(d=>d.id===s);c?u=t.find(d=>c.allNames.includes(d.geoName.trim().toLowerCase())):u=t.find(d=>d.geoName.trim().toLowerCase()===o.properties.name.trim().toLowerCase())}else u=t.find(c=>c.geoName.trim().toLowerCase()===o.properties.name.trim().toLowerCase());return a[s]={geoDataElement:u,style:{color:cA,weight:1,opacity:1,fillColor:u&&u.color||dA,fillOpacity:1},displayName:(u==null?void 0:u.geoName)||o.properties.name},a},{})}const hA=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:a}=kt(),o=Q.useRef(null),s=Q.useRef(null),[u]=Q.useState($r.layerGroup()),c=Q.useMemo(()=>fA(e.features,t,n),[e,t,n]);return Q.useEffect(()=>{o.current&&!s.current&&(s.current=gA(o.current,n),u.addTo(s.current))},[u,n]),Q.useEffect(()=>{const d=$r.geoJSON(yA(e,c),{style:h=>c[h.id].style,onEachFeature:(h,m)=>{m.bindTooltip(vA(h,c,r.originalValueTitle),{sticky:!0}),m.on({mouseover:p=>{const g=p.target;pA(g,h.id,c)},mouseout:p=>{const g=p.target;mA(g,h.id,c)}}),r.onAreaClick&&m.on({click:p=>{const g=c[h.id].geoDataElement;g&&r.onAreaClick(g,p.originalEvent)}})}});s.current&&(u.clearLayers(),u.addLayer(d),s.current.fitBounds(d.getBounds(),by(a)))},[r,c,e,u,a]),V.jsx("div",{ref:o,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function pA(e,t,r){if(r[t]){const a=r[t].style.fillColor;e.setStyle({weight:2,color:O.scaleBrightness(a,-.2),fillColor:O.scaleBrightness(a,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function mA(e,t,r){e.setStyle(r[t].style)}function vA(e,t,r){const n=t[e.id],{formattedOriginalValue:a}=n.geoDataElement||{};return`
99
+ <div>
100
+ <span>${n.displayName}<span>
101
+ ${n.geoDataElement&&a!==void 0?`<br/>${r}: <span>${a}<span>`:""}
102
+ </div>`}function gA(e,t){return t==="world"?$r.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):$r.map(e,{crs:new $r.Proj.CRS("EPSG:5070","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",{resolutions:[16384,10240,8192,4096]}),center:[35.96852047262865,-96.96520768859223],zoom:.4,maxZoom:3,attributionControl:!1})}function yA(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return ue(ee({},e),{features:r})}}class Ty{constructor(t){Tt(this,"httpClient");Tt(this,"getDashboards",(t={})=>{const{fields:r,expand:n,searchByTitle:a}=t,o=new URLSearchParams(ee(ee(ee({},a&&{name:a}),(r==null?void 0:r.length)&&{fields:r==null?void 0:r.join(",")}),(n==null?void 0:n.length)&&{expand:n==null?void 0:n.join(",")})).toString();return this.httpClient.get(`api/v1/dashboards?${o}`)});Tt(this,"getDashboard",(t,r={})=>{const{fields:n}=r,a=new URLSearchParams(ee({},(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")})).toString();return this.httpClient.get(`api/v1/dashboards/${t}?${a}`).catch(()=>{throw new O.TranslatableError("errors.dashboardInvalidIdentifier")})});Tt(this,"getDashboardWidgets",t=>this.httpClient.get(`api/v1/dashboards/${t}/widgets`).catch(()=>{throw new O.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers")}));Tt(this,"getWidget",(t,r)=>this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}`).catch(()=>{throw new O.TranslatableError("errors.dashboardWidgetInvalidIdentifiers")}));Tt(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));Tt(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));Tt(this,"getPalettes",()=>this.httpClient.get("api/palettes"));if(!t)throw new Error("HttpClient not found.");this.httpClient=t}}const Sy=()=>{const{app:e}=bt();return Q.useMemo(()=>new Ty(e==null?void 0:e.httpClient),[e])},bA=e=>{const t=Sy(),[r,n]=Q.useState(),[a,o]=Q.useState(),s=CA();return Q.useEffect(()=>{if(!s)return;wr(exports,null,function*(){try{const c=TA(e,s),d=_A(c);if(d)n(d);else{SA(e);let h;switch(e){case"world":h=t.getCountriesGeoJson;break;case"usa":h=t.getUsaStatesGeoJson;break;default:throw new Error(`Unsupported map type: ${e}`)}const m=yield h();if(!m)throw new Error("Failed loading map");const p=e==="world"?xA(m):m;wA(p,c),n(p)}}catch(c){o(c)}})},[t,e,s]),{geoJson:r,error:a}};function _A(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function wA(e,t){localStorage.setItem(t,JSON.stringify(e))}function xA(e){const t=O.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function CA(){const{app:e}=bt();return e==null?void 0:e.settings.serverVersion}function TA(e,t){return`geoJson_${e}_${t}`}function SA(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}function EA(e,t){const r={};return t.geo&&(r.geo=[ue(ee({},Ve("geo.0",t.geo)),{value:e.geoName})]),t.color&&(r.color=[ue(ee({},Ve("color.0",t.color)),{value:e.originalValue})]),ue(ee({},e),{entries:r})}const MA=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{var c,d;const{themeSettings:a}=kt(),{geoJson:o}=bA(r.mapType),s=Q.useMemo(()=>t.color?e.geoData:e.geoData.map(h=>ue(ee({},h),{color:O.getPaletteColor(a.palette.variantColors,0)})),[e.geoData,t,a]),u=Q.useCallback((h,m)=>{if(!n)return;const p=EA(h,t);n(p,m)},[t,n]);return V.jsx(V.Fragment,{children:o&&V.jsx(hA,{geoJson:o,geoData:s,dataOptions:{originalValueTitle:((c=t.color)==null?void 0:c.title)||((d=t.color)==null?void 0:d.name)||"",onAreaClick:u},mapType:r.mapType})})},PA=e=>e.type==="areamap",RA=e=>"geo"in e,OA=e=>"mapType"in e,kA=e=>!!e.chartData&&PA(e.chartData)&&RA(e.dataOptions)&&OA(e.designOptions),Pa=({isVisible:e,themeSettings:t,children:r})=>V.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[e&&V.jsx("div",{className:"csdk-absolute csdk-h-full csdk-w-full csdk-z-[401] csdk-opacity-80","aria-label":"csdk-loading-overlay",children:V.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:V.jsx("div",{className:"csdk-h-full csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center csdk-bg-transparent",children:V.jsx("div",{style:{backgroundColor:t.general.backgroundColor},className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:V.jsx(Kg,{color:t==null?void 0:t.chart.textColor})})})})}),r]});function Tc(e,t,r=hd(),n=yd){const a=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(s){if(!O.isCategory(s)||!s.dateFormat)return;const u=e.columns.findIndex(function(d){return d.name===s.name&&O.isDatetime(s.type)&&O.isDatetime(d.type)});u!==-1&&a.set(u,s.dateFormat)}),a.size===0||(e.rows=e.rows.map(function(s){return s.map(function(c,d){const h=a.get(d);if(!h)return c;let m,p;if(O.isCell(c))m=ee({},c);else{const _=O.createCompareValue(`${c}`,"datetime");p=new Date(_.value),m={data:p.toISOString(),text:`${c}`}}if(!m.data)return c;let g=m.text;try{g=bd(O.parseISO(m.data),h,r,n)}catch(_){console.error(_)}return m.text=g,m})})),e}function NA(e,t){return AA(e,t)}const DA={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function AA(e,t){const r=DA[e];t.category.length>r.category&&console.warn(`Maximum 'category' length is limited to ${r.category} for '${e}' chart. Taken first ${r.category} categories`);const n=t.category.slice(0,r.category);let a=t.value;return(e!=="pie"||t.category.length>0)&&(t.value.length>r.value&&console.warn(`Maximum 'value' length is limited to ${r.value} for '${e}' chart. Taken first ${r.value} values`),a=t.value.slice(0,r.value)),ue(ee({},t),{category:n,value:a})}const Ey=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,a)=>{const o=n.name,u=`${r(a)}${o}`;n.name=u,t[u]=o}),t},LA=(e,t)=>{if(t==="funnel"){const r=O.merge(e);if(r.breakBy.length>0&&r.breakBy[0].sortType===void 0&&r.y.length>0&&r.y[0].sortType===void 0)return r.y[0].sortType="sortDesc",r}return e},My=(e,t,r,n,a,o)=>{if(t.length+r.length===0)throw new O.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(s=>{if(e.columns.findIndex(c=>c.name===s.name)===-1)throw new O.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:s.name})}),r.forEach(s=>{if(e.columns.findIndex(c=>c.name===s.name||c.name===n[s.name])===-1)throw new O.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[s.name]})}),a&&a.forEach(s=>{if(e.columns.findIndex(c=>c.name===s.attribute.name)===-1)throw new O.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:s.attribute.name})}),o&&o.forEach(s=>{if(e.columns.findIndex(c=>c.name===s.attribute.name)===-1)throw new O.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:s.attribute.name})}),!0};function IA(e,t){switch(e){case"pie":case"funnel":case"treemap":return NA(e,t);default:return t}}const Ad=()=>{const[e,t]=Q.useState();if(e)throw e;return t};function hu(e){return e===null}const $A=(e,t)=>{switch(t){case"iqr":return w1(e);case"extremums":return x1(e);case"standardDeviation":return C1(e)}},zA=(e,t)=>{switch(t){case"iqr":return T1(e);case"standardDeviation":return S1(e)}},FA=(e,t,r)=>{const{column:n,style:a}=O.splitColumn(e);let o=$A(n,t),s;return a&&(o=o.map(u=>ee({column:u},a))),r&&(s=zA(n,t),s&&a&&(s=ee({column:s},a))),{values:o,outliers:s}},WA=e=>e.value.length>1,Py=e=>{var m;const{category:t}=e;let r,n,a;if(WA(e))r=e.value,a=e.valueTitle,n=(m=e.outliers)==null?void 0:m[0];else{const{outliersEnabled:p,boxType:g,value:[_]}=e,{values:y,outliers:w}=FA(_,g,!!p);r=y,n=w,a=O.getDataOptionTitle(O.translateColumnToCategory(_))}const[o,s,u,c,d,h]=r;return{category:t[0]&&O.translateColumnToCategory(t[0]),boxMin:o&&O.translateColumnToValue(o),boxMedian:s&&O.translateColumnToValue(s),boxMax:u&&O.translateColumnToValue(u),whiskerMin:c&&O.translateColumnToValue(c),whiskerMax:d&&O.translateColumnToValue(d),outliersCount:h&&O.translateColumnToValue(h),outliers:n&&O.translateColumnToCategory(n),valueTitle:a}},jA=2e4;function ba(e,t){if(t){const r=t.name,n=e.findIndex(a=>a.name===r);return n===-1?null:n}return null}const Ry=(e,t,r)=>{let n=0,a=4,o=5,s=0,u=1;return r&&(n=ba(e.columns,r.category),a=ba(e.columns,r.whiskerMin),o=ba(e.columns,r.whiskerMax),s=ba(t.columns,r.category),u=ba(t.columns,r.outliers)),hu(u)?e:{columns:[...e.columns,t.columns[u]],rows:e.rows.map(d=>{const h=hu(n)?null:d[n].data,m=d[o].data,p=d[a].data,g=t.rows.filter(_=>{const y=hu(s)?null:_[s].data,w=_[u].data;return y===h&&(w<p||w>m)}).map(_=>_[u].data).join(",");return[...d,{data:g}]})}};function BA(e,t,r){const n=r&&Py(r);return Ry(e,t,n)}const HA=(c,d)=>wr(exports,[c,d],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:a,filters:o,highlights:s},u){var _;const h={dataSource:r,dimensions:t.category?[n[0]]:[],measures:a,filters:o,highlights:s},m=yield u(h,e);let p=m;const g=t.outliersCount?VA(m,t.outliersCount.name):0;if(t.outliers&&g<jA){const y={dataSource:r,dimensions:n,measures:[],filters:o,highlights:s};try{const w=yield u(y,e);p=Ry(m,w,t)}catch(w){if((_=w==null?void 0:w.message)!=null&&_.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw w}}return p}),VA=(e,t)=>{const r=e.columns.findIndex(({name:a})=>a===t);let n=0;return e.rows.forEach(a=>{n+=parseInt(a[r].data)}),n},UA=e=>e==="funnel"?e:O.deriveChartFamily(e),qA=(e,t,r,n,a,o,s,u,c,d)=>{var E;const h=Ad(),m=Q.useMemo(()=>UA(r),[r]),p=Q.useMemo(()=>[void 0,t],[t]),[g,_]=Q.useState({}),{app:y}=bt(),w=(E=y==null?void 0:y.settings.queryCacheConfig)!=null&&E.enabled?Cd:io;return Q.useEffect(()=>{let S=!1;const{filters:T,relations:C}=O.getFilterListAndRelations(s);if(bn(e)){if(!y)return;let x;r==="boxplot"?x=HA({app:y,chartDataOptions:t,dataSource:e,attributes:n,measures:a,filters:T,highlights:u},w):x=w({dataSource:e,dimensions:n,measures:a,filters:T,filterRelations:C,highlights:u,count:y.settings.queryLimit},y);const P=y==null?void 0:y.settings.loadingIndicatorConfig,R=setTimeout(()=>{P!=null&&P.enabled&&(d==null||d(!0))},P==null?void 0:P.delay);x.then(D=>{const A=Tc(D,t,y==null?void 0:y.settings.locale,y==null?void 0:y.settings.dateConfig);S||_({[m]:[A,t]})}).catch(D=>{h(D)}).finally(()=>{clearTimeout(R),P!=null&&P.enabled&&(d==null||d(!1))})}else{My(e,n,a,o,T,u);const x=Tc(e,t,y==null?void 0:y.settings.locale,y==null?void 0:y.settings.dateConfig);_({[m]:[x,t]})}return()=>{S=!0}},[r,t,e,s,u,y,c]),g[m]||p},Np={city:4,state:3,country:2,auto:1};function GA(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>Np[n]>Np[r]?n:r,"auto")}function YA(e){const{geo:t,size:r,colorBy:n,details:a}=e;return{locations:t&&t.map(O.translateColumnToCategory),size:r&&O.translateColumnToValue(r),colorBy:n&&O.translateColumnToValue(n),details:a&&O.translateColumnToCategoryOrValue(a),locationLevel:GA(t)}}function XA(e){var o;const t=e.value.map(s=>{if(s!=null&&s.chartType)return[O.translateColumnToValue(s)];const h=s,{lowerBound:u,upperBound:c}=h,d=hi(h,["lowerBound","upperBound"]);return[O.translateColumnToValue(ee({column:u},d)),O.translateColumnToValue(ee({column:c},d))]}),r=t.flat(),n=t.filter(s=>s.length===2),a=t.filter(s=>s.length===1).flat();return{x:e.category.map(O.translateColumnToCategory),breakBy:((o=e.breakBy)==null?void 0:o.map(O.translateColumnToCategory))||[],y:r,rangeValues:n,seriesValues:a,seriesToColorMap:e.seriesToColorMap}}function ZA(e,t){if(O.isCartesian(e))return KA(t);if(O.isCategorical(e))return QA(t);if(O.isIndicator(e))return JA(t);if(O.isScatter(e))return e3(t);if(O.isBoxplot(e))return Py(t);if(O.isAreamap(e))return t3(t);if(O.isScattermap(e))return YA(t);if(O.isRange(e))return XA(t);throw new Error(`Unexpected chart type: ${e}`)}const KA=e=>{var t;return{x:e.category.map(O.translateColumnToCategory),y:e.value.map(O.translateColumnToValue),breakBy:((t=e.breakBy)==null?void 0:t.map(O.translateColumnToCategory))||[],seriesToColorMap:e.seriesToColorMap}},QA=e=>({y:e.value.map(O.translateColumnToValue),breakBy:e.category.map(O.translateColumnToCategory),seriesToColorMap:e.seriesToColorMap}),JA=e=>{var t,r,n,a,o,s;return{value:(t=e.value)==null?void 0:t.map(O.translateColumnToValue),secondary:(r=e.secondary)==null?void 0:r.map(O.translateColumnToValue),min:(a=(n=e.min)==null?void 0:n.map(O.translateColumnToValue))==null?void 0:a.map(Dp("min")),max:(s=(o=e.max)==null?void 0:o.map(O.translateColumnToValue))==null?void 0:s.map(Dp("max"))}},Dp=e=>t=>{var r;return Object.assign(t,{aggregation:(r=t.aggregation)!=null?r:e})},e3=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:a,size:o,seriesToColorMap:s}=e;return{x:t&&O.translateColumnToCategoryOrValue(t),y:r&&O.translateColumnToCategoryOrValue(r),breakByPoint:n&&O.translateColumnToCategory(n),breakByColor:a&&O.translateColumnToCategoryOrValue(a),size:o&&O.translateColumnToValue(o),seriesToColorMap:s}},t3=e=>({geo:e.geo&&O.translateColumnToCategory(e.geo[0]),color:e.color&&O.translateColumnToValue(e.color[0])});function r3(e,t){let r=[];return O.isScatter(t)?r=["x","y","breakByPoint","breakByColor"].flatMap(n=>e[n]&&O.isCategory(e[n])?[e[n]]:[]):O.isCartesian(t)||O.isCategorical(t)||O.isRange(t)?r=["x","breakBy"].flatMap(n=>{var a;return(a=e[n])!=null?a:[]}):O.isBoxplot(t)?r=["category","outliers"].flatMap(n=>e[n]?[e[n]]:[]):O.isAreamap(t)?r=[e.geo]:O.isScattermap(t)&&(r=["locations"].flatMap(n=>{var a;return(a=e[n])!=null?a:[]})),r.map(O.translateCategoryToAttribute)}function n3(e,t){let r=[];if(O.isIndicator(t))r=i3(e);else if(O.isScatter(t))r=["x","y","breakByColor","size"].flatMap(n=>e[n]&&O.isValue(e[n])?[e[n]]:[]);else if(O.isCartesian(t)||O.isCategorical(t))r=e.y;else if(O.isBoxplot(t))r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"].flatMap(n=>e[n]?[e[n]]:[]);else if(O.isAreamap(t)){const n=e.color;r=n?[n]:[]}else O.isScattermap(t)?r=["size","colorBy","details"].flatMap(n=>e[n]&&O.isValue(e[n])?[e[n]]:[]):O.isRange(t)&&(r=e.y);return r.map(O.translateValueToMeasure)}function i3(e){var o,s,u,c;const t=(o=e.value)==null?void 0:o[0],r=(s=e.secondary)==null?void 0:s[0],n=(u=e.min)==null?void 0:u[0],a=(c=e.max)==null?void 0:c[0];return[t,r,n,a].filter(d=>!!d)}function Oy(e){return{columns:e.columns.map(O.translateColumnToCategoryOrValue)}}function a3(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(O.translateColumnToCategory),columns:(r=e.columns)==null?void 0:r.map(O.translateColumnToCategory),values:(n=e.values)==null?void 0:n.map(O.translateColumnToValue),grandTotals:e.grandTotals}}function ky(e,t){{const r=IA(t,e),n=ZA(t,r),a=LA(n,t),o=r3(a,t),s=n3(a,t);return{dataOptions:a,attributes:o,measures:s}}}const o3=(e,t)=>Q.useMemo(()=>{const{dataOptions:r,attributes:n,measures:a}=ky(e,t),o=Ey(a.map(O.translateMeasureToValue));return{dataOptions:r,attributes:n,measures:a,dataColumnNamesMapping:o}},[e,t]);function s3(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:a,designOptions:o,onBeforeRender:s,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,filters:h}=e;return!a||!o?null:{dataSource:bn(t)?t:null,chartType:r,chartData:n,dataOptions:a,designOptions:o,onBeforeRender:s,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:d,filters:h}}const l3=e=>e==="indicator",u3=(e,t)=>e==="scattermap"&&"scatterDataTable"in t&&t.scatterDataTable.length===0?!0:"series"in t&&t.series.length===0,Ny=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:a,highlights:o,styleOptions:s,refreshCounter:u,onDataPointClick:c,onDataPointContextMenu:d,onDataPointsSelected:h,onBeforeRender:m}=e,[p,g]=Q.useState(!1),_=Nd(t),{themeSettings:y}=kt(),{dataOptions:w,attributes:E,measures:S,dataColumnNamesMapping:T}=o3(n,t),[C,x]=qA(r,w,t,E,S,T,a,o,u,g),P=Q.useMemo(()=>n?O.prepareChartDesignOptions(t,x,s):null,[n,t,x,s]),R=Q.useMemo(()=>{if(!C||!n)return null;let A=O.createDataTableFromData(C);return bn(r)||(A=dy(A,E.map(O.translateAttributeToCategory),S.map(O.translateMeasureToValue),T)),iN(t,x,A)},[C,t]),D=s3({dataSet:r,chartType:t,chartData:R,internalDataOptions:x,designOptions:P,onBeforeRender:m,onDataPointClick:c,onDataPointContextMenu:d,onDataPointsSelected:h,filters:a});return D?V.jsx(oo,{defaultSize:_,size:{width:s==null?void 0:s.width,height:s==null?void 0:s.height},rerenderOnResize:l3(t),children:()=>R?u3(t,R)?V.jsx(kd,{iconType:t}):t==="scattermap"&&PD(D)?V.jsx(Pa,{themeSettings:y,isVisible:p,children:V.jsx(TD,ee({},D))}):t==="indicator"&&XN(D)?V.jsx(Pa,{themeSettings:y,isVisible:p,children:V.jsx(UN,ee({},D))}):t==="areamap"&&kA(D)?V.jsx(Pa,{themeSettings:y,isVisible:p,children:V.jsx(MA,ee({},D))}):xy(t)&&UD(D)?V.jsx(Pa,{themeSettings:y,isVisible:p,children:V.jsx(HD,ue(ee({},D),{designOptions:ee({},D.designOptions)}))}):null:V.jsx(Hs,{themeSettings:y})}):null};function Ee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Sc={exports:{}},Qo={exports:{}},We={};/** @license React v16.13.1
103
+ * react-is.production.min.js
104
+ *
105
+ * Copyright (c) Facebook, Inc. and its affiliates.
106
+ *
107
+ * This source code is licensed under the MIT license found in the
108
+ * LICENSE file in the root directory of this source tree.
109
+ */var Ap;function c3(){if(Ap)return We;Ap=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(x){if(typeof x=="object"&&x!==null){var P=x.$$typeof;switch(P){case t:switch(x=x.type,x){case c:case d:case n:case o:case a:case m:return x;default:switch(x=x&&x.$$typeof,x){case u:case h:case _:case g:case s:return x;default:return P}}case r:return P}}}function C(x){return T(x)===d}return We.AsyncMode=c,We.ConcurrentMode=d,We.ContextConsumer=u,We.ContextProvider=s,We.Element=t,We.ForwardRef=h,We.Fragment=n,We.Lazy=_,We.Memo=g,We.Portal=r,We.Profiler=o,We.StrictMode=a,We.Suspense=m,We.isAsyncMode=function(x){return C(x)||T(x)===c},We.isConcurrentMode=C,We.isContextConsumer=function(x){return T(x)===u},We.isContextProvider=function(x){return T(x)===s},We.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},We.isForwardRef=function(x){return T(x)===h},We.isFragment=function(x){return T(x)===n},We.isLazy=function(x){return T(x)===_},We.isMemo=function(x){return T(x)===g},We.isPortal=function(x){return T(x)===r},We.isProfiler=function(x){return T(x)===o},We.isStrictMode=function(x){return T(x)===a},We.isSuspense=function(x){return T(x)===m},We.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===d||x===o||x===a||x===m||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===_||x.$$typeof===g||x.$$typeof===s||x.$$typeof===u||x.$$typeof===h||x.$$typeof===w||x.$$typeof===E||x.$$typeof===S||x.$$typeof===y)},We.typeOf=T,We}var je={};/** @license React v16.13.1
110
+ * react-is.development.js
111
+ *
112
+ * Copyright (c) Facebook, Inc. and its affiliates.
113
+ *
114
+ * This source code is licensed under the MIT license found in the
115
+ * LICENSE file in the root directory of this source tree.
116
+ */var Lp;function d3(){return Lp||(Lp=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function T(oe){return typeof oe=="string"||typeof oe=="function"||oe===n||oe===d||oe===o||oe===a||oe===m||oe===p||typeof oe=="object"&&oe!==null&&(oe.$$typeof===_||oe.$$typeof===g||oe.$$typeof===s||oe.$$typeof===u||oe.$$typeof===h||oe.$$typeof===w||oe.$$typeof===E||oe.$$typeof===S||oe.$$typeof===y)}function C(oe){if(typeof oe=="object"&&oe!==null){var ve=oe.$$typeof;switch(ve){case t:var fe=oe.type;switch(fe){case c:case d:case n:case o:case a:case m:return fe;default:var _e=fe&&fe.$$typeof;switch(_e){case u:case h:case _:case g:case s:return _e;default:return ve}}case r:return ve}}}var x=c,P=d,R=u,D=s,A=t,I=h,N=n,k=_,W=g,j=r,$=o,B=a,G=m,q=!1;function U(oe){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(oe)||C(oe)===c}function z(oe){return C(oe)===d}function H(oe){return C(oe)===u}function te(oe){return C(oe)===s}function X(oe){return typeof oe=="object"&&oe!==null&&oe.$$typeof===t}function K(oe){return C(oe)===h}function J(oe){return C(oe)===n}function ie(oe){return C(oe)===_}function le(oe){return C(oe)===g}function se(oe){return C(oe)===r}function ce(oe){return C(oe)===o}function he(oe){return C(oe)===a}function pe(oe){return C(oe)===m}je.AsyncMode=x,je.ConcurrentMode=P,je.ContextConsumer=R,je.ContextProvider=D,je.Element=A,je.ForwardRef=I,je.Fragment=N,je.Lazy=k,je.Memo=W,je.Portal=j,je.Profiler=$,je.StrictMode=B,je.Suspense=G,je.isAsyncMode=U,je.isConcurrentMode=z,je.isContextConsumer=H,je.isContextProvider=te,je.isElement=X,je.isForwardRef=K,je.isFragment=J,je.isLazy=ie,je.isMemo=le,je.isPortal=se,je.isProfiler=ce,je.isStrictMode=he,je.isSuspense=pe,je.isValidElementType=T,je.typeOf=C}()),je}var Ip;function Dy(){return Ip||(Ip=1,process.env.NODE_ENV==="production"?Qo.exports=c3():Qo.exports=d3()),Qo.exports}/*
117
+ object-assign
118
+ (c) Sindre Sorhus
119
+ @license MIT
120
+ */var pu,$p;function f3(){if($p)return pu;$p=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(s).map(function(h){return s[h]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch(h){return!1}}return pu=a()?Object.assign:function(o,s){for(var u,c=n(o),d,h=1;h<arguments.length;h++){u=Object(arguments[h]);for(var m in u)t.call(u,m)&&(c[m]=u[m]);if(e){d=e(u);for(var p=0;p<d.length;p++)r.call(u,d[p])&&(c[d[p]]=u[d[p]])}}return c},pu}var mu,zp;function Ld(){if(zp)return mu;zp=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mu=e,mu}var vu,Fp;function Ay(){return Fp||(Fp=1,vu=Function.call.bind(Object.prototype.hasOwnProperty)),vu}var gu,Wp;function h3(){if(Wp)return gu;Wp=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ld(),r={},n=Ay();e=function(o){var s="Warning: "+o;typeof console!="undefined"&&console.error(s);try{throw new Error(s)}catch(u){}}}function a(o,s,u,c,d){if(process.env.NODE_ENV!=="production"){for(var h in o)if(n(o,h)){var m;try{if(typeof o[h]!="function"){var p=Error((c||"React class")+": "+u+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}m=o[h](s,h,c,u,null,t)}catch(_){m=_}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var g=d?d():"";e("Failed "+u+" type: "+m.message+(g!=null?g:""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},gu=a,gu}var yu,jp;function p3(){if(jp)return yu;jp=1;var e=Dy(),t=f3(),r=Ld(),n=Ay(),a=h3(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(u){var c="Warning: "+u;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(d){}});function s(){return null}return yu=function(u,c){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function m(z){var H=z&&(d&&z[d]||z[h]);if(typeof H=="function")return H}var p="<<anonymous>>",g={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:S(),arrayOf:T,element:C(),elementType:x(),instanceOf:P,node:I(),objectOf:D,oneOf:R,oneOfType:A,shape:k,exact:W};function _(z,H){return z===H?z!==0||1/z===1/H:z!==z&&H!==H}function y(z,H){this.message=z,this.data=H&&typeof H=="object"?H:{},this.stack=""}y.prototype=Error.prototype;function w(z){if(process.env.NODE_ENV!=="production")var H={},te=0;function X(J,ie,le,se,ce,he,pe){if(se=se||p,he=he||le,pe!==r){if(c){var oe=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 oe.name="Invariant Violation",oe}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ve=se+":"+le;!H[ve]&&te<3&&(o("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[ve]=!0,te++)}}return ie[le]==null?J?ie[le]===null?new y("The "+ce+" `"+he+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new y("The "+ce+" `"+he+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:z(ie,le,se,ce,he)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function E(z){function H(te,X,K,J,ie,le){var se=te[X],ce=B(se);if(ce!==z){var he=G(se);return new y("Invalid "+J+" `"+ie+"` of type "+("`"+he+"` supplied to `"+K+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return w(H)}function S(){return w(s)}function T(z){function H(te,X,K,J,ie){if(typeof z!="function")return new y("Property `"+ie+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var le=te[X];if(!Array.isArray(le)){var se=B(le);return new y("Invalid "+J+" `"+ie+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an array."))}for(var ce=0;ce<le.length;ce++){var he=z(le,ce,K,J,ie+"["+ce+"]",r);if(he instanceof Error)return he}return null}return w(H)}function C(){function z(H,te,X,K,J){var ie=H[te];if(!u(ie)){var le=B(ie);return new y("Invalid "+K+" `"+J+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return w(z)}function x(){function z(H,te,X,K,J){var ie=H[te];if(!e.isValidElementType(ie)){var le=B(ie);return new y("Invalid "+K+" `"+J+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return w(z)}function P(z){function H(te,X,K,J,ie){if(!(te[X]instanceof z)){var le=z.name||p,se=U(te[X]);return new y("Invalid "+J+" `"+ie+"` of type "+("`"+se+"` supplied to `"+K+"`, expected ")+("instance of `"+le+"`."))}return null}return w(H)}function R(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),s;function H(te,X,K,J,ie){for(var le=te[X],se=0;se<z.length;se++)if(_(le,z[se]))return null;var ce=JSON.stringify(z,function(pe,oe){var ve=G(oe);return ve==="symbol"?String(oe):oe});return new y("Invalid "+J+" `"+ie+"` of value `"+String(le)+"` "+("supplied to `"+K+"`, expected one of "+ce+"."))}return w(H)}function D(z){function H(te,X,K,J,ie){if(typeof z!="function")return new y("Property `"+ie+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var le=te[X],se=B(le);if(se!=="object")return new y("Invalid "+J+" `"+ie+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an object."));for(var ce in le)if(n(le,ce)){var he=z(le,ce,K,J,ie+"."+ce,r);if(he instanceof Error)return he}return null}return w(H)}function A(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var H=0;H<z.length;H++){var te=z[H];if(typeof te!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(te)+" at index "+H+"."),s}function X(K,J,ie,le,se){for(var ce=[],he=0;he<z.length;he++){var pe=z[he],oe=pe(K,J,ie,le,se,r);if(oe==null)return null;oe.data&&n(oe.data,"expectedType")&&ce.push(oe.data.expectedType)}var ve=ce.length>0?", expected one of type ["+ce.join(", ")+"]":"";return new y("Invalid "+le+" `"+se+"` supplied to "+("`"+ie+"`"+ve+"."))}return w(X)}function I(){function z(H,te,X,K,J){return j(H[te])?null:new y("Invalid "+K+" `"+J+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return w(z)}function N(z,H,te,X,K){return new y((z||"React class")+": "+H+" type `"+te+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function k(z){function H(te,X,K,J,ie){var le=te[X],se=B(le);if(se!=="object")return new y("Invalid "+J+" `"+ie+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));for(var ce in z){var he=z[ce];if(typeof he!="function")return N(K,J,ie,ce,G(he));var pe=he(le,ce,K,J,ie+"."+ce,r);if(pe)return pe}return null}return w(H)}function W(z){function H(te,X,K,J,ie){var le=te[X],se=B(le);if(se!=="object")return new y("Invalid "+J+" `"+ie+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));var ce=t({},te[X],z);for(var he in ce){var pe=z[he];if(n(z,he)&&typeof pe!="function")return N(K,J,ie,he,G(pe));if(!pe)return new y("Invalid "+J+" `"+ie+"` key `"+he+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(te[X],null," ")+`
121
+ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var oe=pe(le,he,K,J,ie+"."+he,r);if(oe)return oe}return null}return w(H)}function j(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(j);if(z===null||u(z))return!0;var H=m(z);if(H){var te=H.call(z),X;if(H!==z.entries){for(;!(X=te.next()).done;)if(!j(X.value))return!1}else for(;!(X=te.next()).done;){var K=X.value;if(K&&!j(K[1]))return!1}}else return!1;return!0;default:return!1}}function $(z,H){return z==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B(z){var H=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":$(H,z)?"symbol":H}function G(z){if(typeof z=="undefined"||z===null)return""+z;var H=B(z);if(H==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return H}function q(z){var H=G(z);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function U(z){return!z.constructor||!z.constructor.name?p:z.constructor.name}return g.checkPropTypes=a,g.resetWarningCache=a.resetWarningCache,g.PropTypes=g,g},yu}var bu,Bp;function m3(){if(Bp)return bu;Bp=1;var e=Ld();function t(){}function r(){}return r.resetWarningCache=t,bu=function(){function n(s,u,c,d,h,m){if(m!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},bu}if(process.env.NODE_ENV!=="production"){var v3=Dy(),g3=!0;Sc.exports=p3()(v3.isElement,g3)}else Sc.exports=m3()();var Vt=Sc.exports;const v=O.getDefaultExportFromCjs(Vt);function Ly(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Ly(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Oe(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Ly(e))&&(n&&(n+=" "),n+=t);return n}function st(e,t,r=void 0){const n={};return Object.keys(e).forEach(a=>{n[a]=e[a].reduce((o,s)=>{if(s){const u=t(s);u!==""&&o.push(u),r&&r[s]&&o.push(r[s])}return o},[]).join(" ")}),n}function y3(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function b3(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const _3=Number.isInteger||b3;function Iy(e,t,r,n){const a=e[t];if(a==null||!_3(a)){const o=y3(a);return new RangeError(`Invalid ${n} \`${t}\` of type \`${o}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function $y(e,t,...r){return e[t]===void 0?null:Iy(e,t,...r)}function Ec(){return null}$y.isRequired=Iy;Ec.isRequired=Ec;const Nr=process.env.NODE_ENV==="production"?Ec:$y;function Id(e,t){const r=re({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=re({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const a=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=a:!a||!Object.keys(a)?r[n]=o:(r[n]=re({},o),Object.keys(a).forEach(s=>{r[n][s]=Id(a[s],o[s])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function w3(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:Id(t.components[r].defaultProps,n)}function vn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zy(e){if(!vn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=zy(e[r])}),t}function zr(e,t,r={clone:!0}){const n=r.clone?re({},e):e;return vn(e)&&vn(t)&&Object.keys(t).forEach(a=>{a!=="__proto__"&&(vn(t[a])&&a in e&&vn(e[a])?n[a]=zr(e[a],t[a],r):r.clone?n[a]=vn(t[a])?zy(t[a]):t[a]:n[a]=t[a])}),n}const x3=Object.freeze(Object.defineProperty({__proto__:null,default:zr,isPlainObject:vn},Symbol.toStringTag,{value:"Module"})),C3=["values","unit","step"],T3=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>re({},r,{[n.key]:n.val}),{})};function Fy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,a=Ee(e,C3),o=T3(t),s=Object.keys(o);function u(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function d(p,g){const _=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(_!==-1&&typeof t[s[_]]=="number"?t[s[_]]:g)-n/100}${r})`}function h(p){return s.indexOf(p)+1<s.length?d(p,s[s.indexOf(p)+1]):u(p)}function m(p){const g=s.indexOf(p);return g===0?u(s[1]):g===s.length-1?c(s[g]):d(p,s[s.indexOf(p)+1]).replace("@media","@media not all and")}return re({keys:s,values:o,up:u,down:c,between:d,only:h,not:m,unit:r},a)}const S3={borderRadius:4},Tn=process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.string,v.object,v.array]):{};function Da(e,t){return t?zr(e,t,{clone:!1}):e}const $d={xs:0,sm:600,md:900,lg:1200,xl:1536},Hp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$d[e]}px)`};function Kr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||Hp;return t.reduce((s,u,c)=>(s[o.up(o.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const o=n.breakpoints||Hp;return Object.keys(t).reduce((s,u)=>{if(Object.keys(o.values||$d).indexOf(u)!==-1){const c=o.up(u);s[c]=r(t[u],u)}else{const c=u;s[c]=t[c]}return s},{})}return r(t)}function E3(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,a)=>{const o=e.up(a);return n[o]={},n},{}))||{}}function M3(e,t){return e.reduce((r,n)=>{const a=r[n];return(!a||Object.keys(a).length===0)&&delete r[n],r},t)}function Ha(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const P3=Object.freeze(Object.defineProperty({__proto__:null,default:Ha},Symbol.toStringTag,{value:"Module"}));function De(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ha(7));return e.charAt(0).toUpperCase()+e.slice(1)}const R3=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"}));function qs(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,a)=>n&&n[a]!=null?n[a]:null,e)}function ws(e,t,r,n=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||n:a=qs(e,r)||n,t&&(a=t(a,n,e)),a}function ct(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:a}=e,o=s=>{if(s[t]==null)return null;const u=s[t],c=s.theme,d=qs(c,n)||{};return Kr(s,u,m=>{let p=ws(d,a,m);return m===p&&typeof m=="string"&&(p=ws(d,a,`${t}${m==="default"?"":De(m)}`,m)),r===!1?p:{[r]:p}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Tn}:{},o.filterProps=[t],o}function O3(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const k3={m:"margin",p:"padding"},N3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},D3=O3(e=>{if(e.length>2)if(Vp[e])e=Vp[e];else return[e];const[t,r]=e.split(""),n=k3[t],a=N3[r]||"";return Array.isArray(a)?a.map(o=>n+o):[n+a]}),Gs=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],A3=[...Gs,...Ys];function so(e,t,r,n){var a;const o=(a=qs(e,t,!1))!=null?a:r;return typeof o=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`),o*s):Array.isArray(o)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
122
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
123
+ `))),o[s]):typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
124
+ `)),()=>{})}function Wy(e){return so(e,"spacing",8,"spacing")}function lo(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function L3(e,t){return r=>e.reduce((n,a)=>(n[a]=lo(t,r),n),{})}function I3(e,t,r,n){if(t.indexOf(r)===-1)return null;const a=D3(r),o=L3(a,n),s=e[r];return Kr(e,s,o)}function jy(e,t){const r=Wy(e.theme);return Object.keys(e).map(n=>I3(e,t,n,r)).reduce(Da,{})}function it(e){return jy(e,Gs)}it.propTypes=process.env.NODE_ENV!=="production"?Gs.reduce((e,t)=>(e[t]=Tn,e),{}):{};it.filterProps=Gs;function at(e){return jy(e,Ys)}at.propTypes=process.env.NODE_ENV!=="production"?Ys.reduce((e,t)=>(e[t]=Tn,e),{}):{};at.filterProps=Ys;process.env.NODE_ENV!=="production"&&A3.reduce((e,t)=>(e[t]=Tn,e),{});function $3(e=8){if(e.mui)return e;const t=Wy({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Xs(...e){const t=e.reduce((n,a)=>(a.filterProps.forEach(o=>{n[o]=a}),n),{}),r=n=>Object.keys(n).reduce((a,o)=>t[o]?Da(a,t[o](n)):a,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,a)=>Object.assign(n,a.propTypes),{}):{},r.filterProps=e.reduce((n,a)=>n.concat(a.filterProps),[]),r}function or(e){return typeof e!="number"?e:`${e}px solid`}function fr(e,t){return ct({prop:e,themeKey:"borders",transform:t})}const z3=fr("border",or),F3=fr("borderTop",or),W3=fr("borderRight",or),j3=fr("borderBottom",or),B3=fr("borderLeft",or),H3=fr("borderColor"),V3=fr("borderTopColor"),U3=fr("borderRightColor"),q3=fr("borderBottomColor"),G3=fr("borderLeftColor"),Y3=fr("outline",or),X3=fr("outlineColor"),Zs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=so(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:lo(t,n)});return Kr(e,e.borderRadius,r)}return null};Zs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Tn}:{};Zs.filterProps=["borderRadius"];Xs(z3,F3,W3,j3,B3,H3,V3,U3,q3,G3,Zs,Y3,X3);const Ks=e=>{if(e.gap!==void 0&&e.gap!==null){const t=so(e.theme,"spacing",8,"gap"),r=n=>({gap:lo(t,n)});return Kr(e,e.gap,r)}return null};Ks.propTypes=process.env.NODE_ENV!=="production"?{gap:Tn}:{};Ks.filterProps=["gap"];const Qs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=so(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:lo(t,n)});return Kr(e,e.columnGap,r)}return null};Qs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Tn}:{};Qs.filterProps=["columnGap"];const Js=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=so(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:lo(t,n)});return Kr(e,e.rowGap,r)}return null};Js.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Tn}:{};Js.filterProps=["rowGap"];const Z3=ct({prop:"gridColumn"}),K3=ct({prop:"gridRow"}),Q3=ct({prop:"gridAutoFlow"}),J3=ct({prop:"gridAutoColumns"}),eL=ct({prop:"gridAutoRows"}),tL=ct({prop:"gridTemplateColumns"}),rL=ct({prop:"gridTemplateRows"}),nL=ct({prop:"gridTemplateAreas"}),iL=ct({prop:"gridArea"});Xs(Ks,Qs,Js,Z3,K3,Q3,J3,eL,tL,rL,nL,iL);function ki(e,t){return t==="grey"?t:e}const aL=ct({prop:"color",themeKey:"palette",transform:ki}),oL=ct({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ki}),sL=ct({prop:"backgroundColor",themeKey:"palette",transform:ki});Xs(aL,oL,sL);function Gt(e){return e<=1&&e!==0?`${e*100}%`:e}const lL=ct({prop:"width",transform:Gt}),zd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,a;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||$d[r];return o?((a=e.theme)==null||(a=a.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Gt(r)}};return Kr(e,e.maxWidth,t)}return null};zd.filterProps=["maxWidth"];const uL=ct({prop:"minWidth",transform:Gt}),cL=ct({prop:"height",transform:Gt}),dL=ct({prop:"maxHeight",transform:Gt}),fL=ct({prop:"minHeight",transform:Gt});ct({prop:"size",cssProperty:"width",transform:Gt});ct({prop:"size",cssProperty:"height",transform:Gt});const hL=ct({prop:"boxSizing"});Xs(lL,zd,uL,cL,dL,fL,hL);const uo={border:{themeKey:"borders",transform:or},borderTop:{themeKey:"borders",transform:or},borderRight:{themeKey:"borders",transform:or},borderBottom:{themeKey:"borders",transform:or},borderLeft:{themeKey:"borders",transform:or},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:or},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zs},color:{themeKey:"palette",transform:ki},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ki},backgroundColor:{themeKey:"palette",transform:ki},p:{style:at},pt:{style:at},pr:{style:at},pb:{style:at},pl:{style:at},px:{style:at},py:{style:at},padding:{style:at},paddingTop:{style:at},paddingRight:{style:at},paddingBottom:{style:at},paddingLeft:{style:at},paddingX:{style:at},paddingY:{style:at},paddingInline:{style:at},paddingInlineStart:{style:at},paddingInlineEnd:{style:at},paddingBlock:{style:at},paddingBlockStart:{style:at},paddingBlockEnd:{style:at},m:{style:it},mt:{style:it},mr:{style:it},mb:{style:it},ml:{style:it},mx:{style:it},my:{style:it},margin:{style:it},marginTop:{style:it},marginRight:{style:it},marginBottom:{style:it},marginLeft:{style:it},marginX:{style:it},marginY:{style:it},marginInline:{style:it},marginInlineStart:{style:it},marginInlineEnd:{style:it},marginBlock:{style:it},marginBlockStart:{style:it},marginBlockEnd:{style:it},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:Ks},rowGap:{style:Js},columnGap:{style:Qs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Gt},maxWidth:{style:zd},minWidth:{transform:Gt},height:{transform:Gt},maxHeight:{transform:Gt},minHeight:{transform:Gt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function pL(...e){const t=e.reduce((n,a)=>n.concat(Object.keys(a)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function mL(e,t){return typeof e=="function"?e(t):e}function By(){function e(r,n,a,o){const s={[r]:n,theme:a},u=o[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:d,transform:h,style:m}=u;if(n==null)return null;if(d==="typography"&&n==="inherit")return{[r]:n};const p=qs(a,d)||{};return m?m(s):Kr(s,n,_=>{let y=ws(p,h,_);return _===y&&typeof _=="string"&&(y=ws(p,h,`${r}${_==="default"?"":De(_)}`,_)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:a,theme:o={}}=r||{};if(!a)return null;const s=(n=o.unstable_sxConfig)!=null?n:uo;function u(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const h=E3(o.breakpoints),m=Object.keys(h);let p=h;return Object.keys(d).forEach(g=>{const _=mL(d[g],o);if(_!=null)if(typeof _=="object")if(s[g])p=Da(p,e(g,_,o,s));else{const y=Kr({theme:o},_,w=>({[g]:w}));pL(y,_)?p[g]=t({sx:_,theme:o}):p=Da(p,y)}else p=Da(p,e(g,_,o,s))}),M3(m,p)}return Array.isArray(a)?a.map(u):u(a)}return t}const el=By();el.filterProps=["sx"];function Hy(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const vL=["breakpoints","palette","spacing","shape"];function Fd(e={},...t){const{breakpoints:r={},palette:n={},spacing:a,shape:o={}}=e,s=Ee(e,vL),u=Fy(r),c=$3(a);let d=zr({breakpoints:u,direction:"ltr",components:{},palette:re({mode:"light"},n),spacing:c,shape:re({},S3,o)},s);return d.applyStyles=Hy,d=t.reduce((h,m)=>zr(h,m),d),d.unstable_sxConfig=re({},uo,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(m){return el({sx:m,theme:this})},d}const gL=Object.freeze(Object.defineProperty({__proto__:null,default:Fd,private_createBreakpoints:Fy,unstable_applyStyles:Hy},Symbol.toStringTag,{value:"Module"}));let Mc;typeof document=="object"&&(Mc=fg({key:"css",prepend:!0}));function Vy(e){const{injectFirst:t,children:r}=e;return t&&Mc?V.jsx(gg,{value:Mc,children:r}):r}process.env.NODE_ENV!=="production"&&(Vy.propTypes={children:v.node,injectFirst:v.bool});function yL(e){return e==null||Object.keys(e).length===0}function Uy(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?a=>t(yL(a)?r:a):t;return V.jsx(ud,{styles:n})}process.env.NODE_ENV!=="production"&&(Uy.propTypes={defaultTheme:v.object,styles:v.oneOfType([v.array,v.string,v.object,v.func])});/**
125
+ * @mui/styled-engine v5.15.14
126
+ *
127
+ * @license MIT
128
+ * This source code is licensed under the MIT license found in the
129
+ * LICENSE file in the root directory of this source tree.
130
+ */function bL(e,t){const r=Tr(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const a=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
131
+ `)):n.some(o=>o===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...n)}:r}const _L=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},wL=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Uy,StyledEngineProvider:Vy,ThemeContext:Cn,css:cd,default:bL,internal_processStyles:_L,keyframes:to},Symbol.toStringTag,{value:"Module"}));function xL(e){return Object.keys(e).length===0}function CL(e=null){const t=Z.useContext(Cn);return!t||xL(t)?e:t}const TL=Fd();function qy(e=TL){return CL(e)}function SL({props:e,name:t,defaultTheme:r,themeId:n}){let a=qy(r);return n&&(a=a[n]||a),w3({theme:a,name:t,props:e})}const EL=["sx"],ML=e=>{var t,r;const n={systemProps:{},otherProps:{}},a=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:uo;return Object.keys(e).forEach(o=>{a[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function Gy(e){const{sx:t}=e,r=Ee(e,EL),{systemProps:n,otherProps:a}=ML(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...s)=>{const u=t(...s);return vn(u)?re({},n,u):n}:o=re({},n,t),re({},a,{sx:o})}const PL=Object.freeze(Object.defineProperty({__proto__:null,default:el,extendSxProp:Gy,unstable_createStyleFunctionSx:By,unstable_defaultSxConfig:uo},Symbol.toStringTag,{value:"Module"})),Up=e=>e,RL=()=>{let e=Up;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Up}}},OL=RL(),Yy={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 tt(e,t,r="Mui"){const n=Yy[t];return n?`${r}-${n}`:`${OL.generate(e)}-${t}`}function kL(e,t){return re({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var dt={};const NL=O.getAugmentedNamespace(P3);function DL(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const AL=Object.freeze(Object.defineProperty({__proto__:null,default:DL},Symbol.toStringTag,{value:"Module"})),LL=O.getAugmentedNamespace(AL);var Xy=Ze;Object.defineProperty(dt,"__esModule",{value:!0});var ot=dt.alpha=eb;dt.blend=UL;dt.colorChannel=void 0;var xs=dt.darken=jd;dt.decomposeColor=lr;var qp=dt.emphasize=tb,Gp=dt.getContrastRatio=WL;dt.getLuminance=Cs;dt.hexToRgb=Ky;dt.hslToRgb=Jy;var Zy=dt.lighten=Bd;dt.private_safeAlpha=jL;dt.private_safeColorChannel=void 0;dt.private_safeDarken=BL;dt.private_safeEmphasize=VL;dt.private_safeLighten=HL;dt.recomposeColor=Vi;dt.rgbToHex=FL;var Yp=Xy(NL),IL=Xy(LL);function Wd(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,IL.default)(e,t,r)}function Ky(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,a)=>a<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function $L(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function lr(e){if(e.type)return e;if(e.charAt(0)==="#")return lr(Ky(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
132
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,Yp.default)(9,e));let n=e.substring(t+1,e.length-1),a;if(r==="color"){if(n=n.split(" "),a=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
133
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,Yp.default)(10,a))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:a}}const Qy=e=>{const t=lr(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};dt.colorChannel=Qy;const zL=(e,t)=>{try{return Qy(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};dt.private_safeColorChannel=zL;function Vi(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((a,o)=>o<3?parseInt(a,10):a):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function FL(e){if(e.indexOf("#")===0)return e;const{values:t}=lr(e);return`#${t.map((r,n)=>$L(n===3?Math.round(255*r):r)).join("")}`}function Jy(e){e=lr(e);const{values:t}=e,r=t[0],n=t[1]/100,a=t[2]/100,o=n*Math.min(a,1-a),s=(d,h=(d+r/30)%12)=>a-o*Math.max(Math.min(h-3,9-h,1),-1);let u="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),Vi({type:u,values:c})}function Cs(e){e=lr(e);let t=e.type==="hsl"||e.type==="hsla"?lr(Jy(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:qt((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function WL(e,t){const r=Cs(e),n=Cs(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function eb(e,t){return e=lr(e),t=Wd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Vi(e)}function jL(e,t,r){try{return eb(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function jd(e,t){if(e=lr(e),t=Wd(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Vi(e)}function BL(e,t,r){try{return jd(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Bd(e,t){if(e=lr(e),t=Wd(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Vi(e)}function HL(e,t,r){try{return Bd(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function tb(e,t=.15){return Cs(e)>.5?jd(e,t):Bd(e,t)}function VL(e,t,r){try{return tb(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function UL(e,t,r,n=1){const a=(c,d)=>Math.round(qt(qt(c,1/n)*(1-r)+qt(d,1/n)*r,n)),o=lr(e),s=lr(t),u=[a(o.values[0],s.values[0]),a(o.values[1],s.values[1]),a(o.values[2],s.values[2])];return Vi({type:"rgb",values:u})}const Va={black:"#000",white:"#fff"},qL={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"},mi={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},gi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},_a={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},yi={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},bi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_i={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},GL=["mode","contrastThreshold","tonalOffset"],Xp={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:Va.white,default:Va.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}},_u={text:{primary:Va.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:Va.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 Zp(e,t,r,n){const a=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Zy(e.main,a):t==="dark"&&(e.dark=xs(e.main,o)))}function YL(e="light"){return e==="dark"?{main:yi[200],light:yi[50],dark:yi[400]}:{main:yi[700],light:yi[400],dark:yi[800]}}function XL(e="light"){return e==="dark"?{main:mi[200],light:mi[50],dark:mi[400]}:{main:mi[500],light:mi[300],dark:mi[700]}}function ZL(e="light"){return e==="dark"?{main:gi[500],light:gi[300],dark:gi[700]}:{main:gi[700],light:gi[400],dark:gi[800]}}function KL(e="light"){return e==="dark"?{main:bi[400],light:bi[300],dark:bi[700]}:{main:bi[700],light:bi[500],dark:bi[900]}}function QL(e="light"){return e==="dark"?{main:_i[400],light:_i[300],dark:_i[700]}:{main:_i[800],light:_i[500],dark:_i[900]}}function JL(e="light"){return e==="dark"?{main:_a[400],light:_a[300],dark:_a[700]}:{main:"#ed6c02",light:_a[500],dark:_a[900]}}function eI(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,a=Ee(e,GL),o=e.primary||YL(t),s=e.secondary||XL(t),u=e.error||ZL(t),c=e.info||KL(t),d=e.success||QL(t),h=e.warning||JL(t);function m(y){const w=Gp(y,_u.text.primary)>=r?_u.text.primary:Xp.text.primary;if(process.env.NODE_ENV!=="production"){const E=Gp(y,w);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${w} on ${y}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
134
+ `))}return w}const p=({color:y,name:w,mainShade:E=500,lightShade:S=300,darkShade:T=700})=>{if(y=re({},y),!y.main&&y[E]&&(y.main=y[E]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
135
+ The color object needs to have a \`main\` property or a \`${E}\` property.`:Ha(11,w?` (${w})`:"",E));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
136
+ \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
137
+
138
+ Did you intend to use one of the following approaches?
139
+
140
+ import { green } from "@mui/material/colors";
141
+
142
+ const theme1 = createTheme({ palette: {
143
+ primary: green,
144
+ } });
145
+
146
+ const theme2 = createTheme({ palette: {
147
+ primary: { main: green[500] },
148
+ } });`:Ha(12,w?` (${w})`:"",JSON.stringify(y.main)));return Zp(y,"light",S,n),Zp(y,"dark",T,n),y.contrastText||(y.contrastText=m(y.main)),y},g={dark:_u,light:Xp};return process.env.NODE_ENV!=="production"&&(g[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),zr(re({common:re({},Va),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:u,name:"error"}),warning:p({color:h,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:d,name:"success"}),grey:qL,contrastThreshold:r,getContrastText:m,augmentColor:p,tonalOffset:n},g[t]),a)}const tI=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function rI(e){return Math.round(e*1e5)/1e5}const Kp={textTransform:"uppercase"},Qp='"Roboto", "Helvetica", "Arial", sans-serif';function nI(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=Qp,fontSize:a=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:h,pxToRem:m}=r,p=Ee(r,tI);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const g=a/14,_=m||(E=>`${E/d*g}rem`),y=(E,S,T,C,x)=>re({fontFamily:n,fontWeight:E,fontSize:_(S),lineHeight:T},n===Qp?{letterSpacing:`${rI(C/S)}em`}:{},x,h),w={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(u,14,1.75,.4,Kp),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,Kp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zr(re({htmlFontSize:d,pxToRem:_,fontFamily:n,fontSize:a,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:u,fontWeightBold:c},w),p,{clone:!1})}const iI=.2,aI=.14,oI=.12;function Ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${iI})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${aI})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oI})`].join(",")}const sI=["none",Ke(0,2,1,-1,0,1,1,0,0,1,3,0),Ke(0,3,1,-2,0,2,2,0,0,1,5,0),Ke(0,3,3,-2,0,3,4,0,0,1,8,0),Ke(0,2,4,-1,0,4,5,0,0,1,10,0),Ke(0,3,5,-1,0,5,8,0,0,1,14,0),Ke(0,3,5,-1,0,6,10,0,0,1,18,0),Ke(0,4,5,-2,0,7,10,1,0,2,16,1),Ke(0,5,5,-3,0,8,10,1,0,3,14,2),Ke(0,5,6,-3,0,9,12,1,0,3,16,2),Ke(0,6,6,-3,0,10,14,1,0,4,18,3),Ke(0,6,7,-4,0,11,15,1,0,4,20,3),Ke(0,7,8,-4,0,12,17,2,0,5,22,4),Ke(0,7,8,-4,0,13,19,2,0,5,24,4),Ke(0,7,9,-4,0,14,21,2,0,5,26,4),Ke(0,8,9,-5,0,15,22,2,0,6,28,5),Ke(0,8,10,-5,0,16,24,2,0,6,30,5),Ke(0,8,11,-5,0,17,26,2,0,6,32,5),Ke(0,9,11,-5,0,18,28,2,0,7,34,6),Ke(0,9,12,-6,0,19,29,2,0,7,36,6),Ke(0,10,13,-6,0,20,31,3,0,8,38,7),Ke(0,10,13,-6,0,21,33,3,0,8,40,7),Ke(0,10,14,-6,0,22,35,3,0,8,42,7),Ke(0,11,14,-7,0,23,36,3,0,9,44,8),Ke(0,11,15,-7,0,24,38,3,0,9,46,8)],lI=["duration","easing","delay"],uI={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)"},cI={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Jp(e){return`${Math.round(e)}ms`}function dI(e){if(!e)return 0;const t=e/36;return Math.round((4+15*qt(t,.25)+t/5)*10)}function fI(e){const t=re({},uI,e.easing),r=re({},cI,e.duration);return re({getAutoHeightDuration:dI,create:(a=["all"],o={})=>{const{duration:s=r.standard,easing:u=t.easeInOut,delay:c=0}=o,d=Ee(o,lI);if(process.env.NODE_ENV!=="production"){const h=p=>typeof p=="string",m=p=>!isNaN(parseFloat(p));!h(a)&&!Array.isArray(a)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(s)&&!h(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),h(u)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!h(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
149
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(a)?a:[a]).map(h=>`${h} ${typeof s=="string"?s:Jp(s)} ${u} ${typeof c=="string"?c:Jp(c)}`).join(",")}},e,{easing:t,duration:r})}const hI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},pI=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mI(e={},...t){const{mixins:r={},palette:n={},transitions:a={},typography:o={}}=e,s=Ee(e,pI);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ha(18));const u=eI(n),c=Fd(e);let d=zr(c,{mixins:kL(c.breakpoints,r),palette:u,shadows:sI.slice(),typography:nI(u,o),transitions:fI(a),zIndex:re({},hI)});if(d=zr(d,s),d=t.reduce((h,m)=>zr(h,m),d),process.env.NODE_ENV!=="production"){const h=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(p,g)=>{let _;for(_ in p){const y=p[_];if(h.indexOf(_)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const w=tt("",_);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${w}' syntax:`,JSON.stringify({root:{[`&.${w}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
150
+ `))}p[_]={}}}};Object.keys(d.components).forEach(p=>{const g=d.components[p].styleOverrides;g&&p.indexOf("Mui")===0&&m(g,p)})}return d.unstable_sxConfig=re({},uo,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(m){return el({sx:m,theme:this})},d}const Hd=mI(),Vd="$$material";function rt({props:e,name:t}){return SL({props:e,name:t,defaultTheme:Hd,themeId:Vd})}function Qe(e,t,r="Mui"){const n={};return t.forEach(a=>{n[a]=tt(e,a,r)}),n}function vI(e){return tt("MuiPagination",e)}Qe("MuiPagination",["root","ul","outlined","text"]);function Ud({controlled:e,default:t,name:r,state:n="value"}){const{current:a}=Z.useRef(e!==void 0),[o,s]=Z.useState(t),u=a?e:o;if(process.env.NODE_ENV!=="production"){Z.useEffect(()=>{a!==(e!==void 0)&&console.error([`MUI: A component is changing the ${a?"":"un"}controlled ${n} state of ${r} to be ${a?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
151
+ `))},[n,r,e]);const{current:d}=Z.useRef(t);Z.useEffect(()=>{!a&&d!==t&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
152
+ `))},[JSON.stringify(t)])}const c=Z.useCallback(d=>{a||s(d)},[]);return[u,c]}const gI=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function yI(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:a=1,disabled:o=!1,hideNextButton:s=!1,hidePrevButton:u=!1,onChange:c,page:d,showFirstButton:h=!1,showLastButton:m=!1,siblingCount:p=1}=e,g=Ee(e,gI),[_,y]=Ud({controlled:d,default:a,name:r,state:"page"}),w=(A,I)=>{d||y(I),c&&c(A,I)},E=(A,I)=>{const N=I-A+1;return Array.from({length:N},(k,W)=>A+W)},S=E(1,Math.min(t,n)),T=E(Math.max(n-t+1,t+1),n),C=Math.max(Math.min(_-p,n-t-p*2-1),t+2),x=Math.min(Math.max(_+p,t+p*2+2),T.length>0?T[0]-2:n-1),P=[...h?["first"]:[],...u?[]:["previous"],...S,...C>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...E(C,x),...x<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...T,...s?[]:["next"],...m?["last"]:[]],R=A=>{switch(A){case"first":return 1;case"previous":return _-1;case"next":return _+1;case"last":return n;default:return null}},D=P.map(A=>typeof A=="number"?{onClick:I=>{w(I,A)},type:"page",page:A,selected:A===_,disabled:o,"aria-current":A===_?"true":void 0}:{onClick:I=>{w(I,R(A))},type:A,page:R(A),selected:!1,disabled:o||A.indexOf("ellipsis")===-1&&(A==="next"||A==="last"?_>=n:_<=1)});return re({items:D},g)}const bI=Z.createContext(),qd=()=>{const e=Z.useContext(bI);return e!=null?e:!1};function _I(e){return tt("MuiPaginationItem",e)}const rr=Qe("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),co=v.oneOfType([v.func,v.object]);function Sn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function wI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function xI(e,t,r,n,a){const o=e[t],s=a||t;if(o==null||typeof window=="undefined")return null;let u;return typeof o=="function"&&!wI(o)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const rb=Sn(v.elementType,xI);var fo={};const CI=O.getAugmentedNamespace(h1);var wu={exports:{}},em;function TI(){return em||(em=1,function(e){function t(r,n){if(r==null)return{};var a={};for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){if(n.indexOf(o)>=0)continue;a[o]=r[o]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wu)),wu.exports}const nb=O.getAugmentedNamespace(wL),SI=O.getAugmentedNamespace(x3),EI=O.getAugmentedNamespace(R3);var Pc={exports:{}},Be={};/**
153
+ * @license React
154
+ * react-is.production.min.js
155
+ *
156
+ * Copyright (c) Facebook, Inc. and its affiliates.
157
+ *
158
+ * This source code is licensed under the MIT license found in the
159
+ * LICENSE file in the root directory of this source tree.
160
+ */var tm;function MI(){if(tm)return Be;tm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function y(w){if(typeof w=="object"&&w!==null){var E=w.$$typeof;switch(E){case e:switch(w=w.type,w){case r:case a:case n:case d:case h:return w;default:switch(w=w&&w.$$typeof,w){case u:case s:case c:case p:case m:case o:return w;default:return E}}case t:return E}}}return Be.ContextConsumer=s,Be.ContextProvider=o,Be.Element=e,Be.ForwardRef=c,Be.Fragment=r,Be.Lazy=p,Be.Memo=m,Be.Portal=t,Be.Profiler=a,Be.StrictMode=n,Be.Suspense=d,Be.SuspenseList=h,Be.isAsyncMode=function(){return!1},Be.isConcurrentMode=function(){return!1},Be.isContextConsumer=function(w){return y(w)===s},Be.isContextProvider=function(w){return y(w)===o},Be.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},Be.isForwardRef=function(w){return y(w)===c},Be.isFragment=function(w){return y(w)===r},Be.isLazy=function(w){return y(w)===p},Be.isMemo=function(w){return y(w)===m},Be.isPortal=function(w){return y(w)===t},Be.isProfiler=function(w){return y(w)===a},Be.isStrictMode=function(w){return y(w)===n},Be.isSuspense=function(w){return y(w)===d},Be.isSuspenseList=function(w){return y(w)===h},Be.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===a||w===n||w===d||w===h||w===g||typeof w=="object"&&w!==null&&(w.$$typeof===p||w.$$typeof===m||w.$$typeof===o||w.$$typeof===s||w.$$typeof===c||w.$$typeof===_||w.getModuleId!==void 0)},Be.typeOf=y,Be}var He={};/**
161
+ * @license React
162
+ * react-is.development.js
163
+ *
164
+ * Copyright (c) Facebook, Inc. and its affiliates.
165
+ *
166
+ * This source code is licensed under the MIT license found in the
167
+ * LICENSE file in the root directory of this source tree.
168
+ */var rm;function PI(){return rm||(rm=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_=!1,y=!1,w=!1,E=!1,S=!1,T;T=Symbol.for("react.module.reference");function C(fe){return!!(typeof fe=="string"||typeof fe=="function"||fe===r||fe===a||S||fe===n||fe===d||fe===h||E||fe===g||_||y||w||typeof fe=="object"&&fe!==null&&(fe.$$typeof===p||fe.$$typeof===m||fe.$$typeof===o||fe.$$typeof===s||fe.$$typeof===c||fe.$$typeof===T||fe.getModuleId!==void 0))}function x(fe){if(typeof fe=="object"&&fe!==null){var _e=fe.$$typeof;switch(_e){case e:var we=fe.type;switch(we){case r:case a:case n:case d:case h:return we;default:var Se=we&&we.$$typeof;switch(Se){case u:case s:case c:case p:case m:case o:return Se;default:return _e}}case t:return _e}}}var P=s,R=o,D=e,A=c,I=r,N=p,k=m,W=t,j=a,$=n,B=d,G=h,q=!1,U=!1;function z(fe){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(fe){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function te(fe){return x(fe)===s}function X(fe){return x(fe)===o}function K(fe){return typeof fe=="object"&&fe!==null&&fe.$$typeof===e}function J(fe){return x(fe)===c}function ie(fe){return x(fe)===r}function le(fe){return x(fe)===p}function se(fe){return x(fe)===m}function ce(fe){return x(fe)===t}function he(fe){return x(fe)===a}function pe(fe){return x(fe)===n}function oe(fe){return x(fe)===d}function ve(fe){return x(fe)===h}He.ContextConsumer=P,He.ContextProvider=R,He.Element=D,He.ForwardRef=A,He.Fragment=I,He.Lazy=N,He.Memo=k,He.Portal=W,He.Profiler=j,He.StrictMode=$,He.Suspense=B,He.SuspenseList=G,He.isAsyncMode=z,He.isConcurrentMode=H,He.isContextConsumer=te,He.isContextProvider=X,He.isElement=K,He.isForwardRef=J,He.isFragment=ie,He.isLazy=le,He.isMemo=se,He.isPortal=ce,He.isProfiler=he,He.isStrictMode=pe,He.isSuspense=oe,He.isSuspenseList=ve,He.isValidElementType=C,He.typeOf=x}()),He}process.env.NODE_ENV==="production"?Pc.exports=MI():Pc.exports=PI();var Ua=Pc.exports;const RI=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ib(e){const t=`${e}`.match(RI);return t&&t[1]||""}function ab(e,t=""){return e.displayName||e.name||ib(e)||t}function nm(e,t,r){const n=ab(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function OI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ab(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ua.ForwardRef:return nm(e,e.render,"ForwardRef");case Ua.Memo:return nm(e,e.type,"memo");default:return}}}const kI=Object.freeze(Object.defineProperty({__proto__:null,default:OI,getFunctionName:ib},Symbol.toStringTag,{value:"Module"})),NI=O.getAugmentedNamespace(kI),DI=O.getAugmentedNamespace(gL),AI=O.getAugmentedNamespace(PL);var Ui=Ze;Object.defineProperty(fo,"__esModule",{value:!0});var LI=fo.default=XI;fo.shouldForwardProp=fs;fo.systemDefaultTheme=void 0;var nr=Ui(CI),Rc=Ui(TI()),im=VI(nb),II=SI,$I=Ui(EI),zI=Ui(NI),FI=Ui(DI),WI=Ui(AI);const jI=["ownerState"],BI=["variants"],HI=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ob(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ob=function(n){return n?r:t})(e)}function VI(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ob(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function UI(e){return Object.keys(e).length===0}function qI(e){return typeof e=="string"&&e.charCodeAt(0)>96}function fs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const GI=fo.systemDefaultTheme=(0,FI.default)(),am=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Jo({defaultTheme:e,theme:t,themeId:r}){return UI(t)?e:t[r]||t}function YI(e){return e?(t,r)=>r[e]:null}function hs(e,t){let{ownerState:r}=t,n=(0,Rc.default)(t,jI);const a=typeof e=="function"?e((0,nr.default)({ownerState:r},n)):e;if(Array.isArray(a))return a.flatMap(o=>hs(o,(0,nr.default)({ownerState:r},n)));if(a&&typeof a=="object"&&Array.isArray(a.variants)){const{variants:o=[]}=a;let u=(0,Rc.default)(a,BI);return o.forEach(c=>{let d=!0;typeof c.props=="function"?d=c.props((0,nr.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(h=>{(r==null?void 0:r[h])!==c.props[h]&&n[h]!==c.props[h]&&(d=!1)}),d&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,nr.default)({ownerState:r},n,r)):c.style))}),u}return a}function XI(e={}){const{themeId:t,defaultTheme:r=GI,rootShouldForwardProp:n=fs,slotShouldForwardProp:a=fs}=e,o=s=>(0,WI.default)((0,nr.default)({},s,{theme:Jo((0,nr.default)({},s,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(s,u={})=>{(0,im.internal_processStyles)(s,x=>x.filter(P=>!(P!=null&&P.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:h,skipSx:m,overridesResolver:p=YI(am(d))}=u,g=(0,Rc.default)(u,HI),_=h!==void 0?h:d&&d!=="Root"&&d!=="root"||!1,y=m||!1;let w;process.env.NODE_ENV!=="production"&&c&&(w=`${c}-${am(d||"Root")}`);let E=fs;d==="Root"||d==="root"?E=n:d?E=a:qI(s)&&(E=void 0);const S=(0,im.default)(s,(0,nr.default)({shouldForwardProp:E,label:w},g)),T=x=>typeof x=="function"&&x.__emotion_real!==x||(0,II.isPlainObject)(x)?P=>hs(x,(0,nr.default)({},P,{theme:Jo({theme:P.theme,defaultTheme:r,themeId:t})})):x,C=(x,...P)=>{let R=T(x);const D=P?P.map(T):[];c&&p&&D.push(N=>{const k=Jo((0,nr.default)({},N,{defaultTheme:r,themeId:t}));if(!k.components||!k.components[c]||!k.components[c].styleOverrides)return null;const W=k.components[c].styleOverrides,j={};return Object.entries(W).forEach(([$,B])=>{j[$]=hs(B,(0,nr.default)({},N,{theme:k}))}),p(N,j)}),c&&!_&&D.push(N=>{var k;const W=Jo((0,nr.default)({},N,{defaultTheme:r,themeId:t})),j=W==null||(k=W.components)==null||(k=k[c])==null?void 0:k.variants;return hs({variants:j},(0,nr.default)({},N,{theme:W}))}),y||D.push(o);const A=D.length-P.length;if(Array.isArray(x)&&A>0){const N=new Array(A).fill("");R=[...x,...N],R.raw=[...x.raw,...N]}const I=S(R,...D);if(process.env.NODE_ENV!=="production"){let N;c&&(N=`${c}${(0,$I.default)(d||"")}`),N===void 0&&(N=`Styled(${(0,zI.default)(s)})`),I.displayName=N}return s.muiName&&(I.muiName=s.muiName),I};return S.withConfig&&(C.withConfig=S.withConfig),C}}function ZI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ho=e=>ZI(e)&&e!=="classes",ke=LI({themeId:Vd,defaultTheme:Hd,rootShouldForwardProp:ho});function Oc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function zt(...e){return Z.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Oc(r,t)})},e)}const Gn=typeof window!="undefined"?Z.useLayoutEffect:Z.useEffect;function Zr(e){const t=Z.useRef(e);return Gn(()=>{t.current=e}),Z.useRef((...r)=>(0,t.current)(...r)).current}const om={};function KI(e,t){const r=Z.useRef(om);return r.current===om&&(r.current=e(t)),r}const QI=[];function JI(e){Z.useEffect(e,QI)}class po{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new po}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Pi(){const e=KI(po.create).current;return JI(e.disposeEffect),e}let tl=!0,kc=!1;const e$=new po,t$={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 r$(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&t$[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function n$(e){e.metaKey||e.altKey||e.ctrlKey||(tl=!0)}function xu(){tl=!1}function i$(){this.visibilityState==="hidden"&&kc&&(tl=!0)}function a$(e){e.addEventListener("keydown",n$,!0),e.addEventListener("mousedown",xu,!0),e.addEventListener("pointerdown",xu,!0),e.addEventListener("touchstart",xu,!0),e.addEventListener("visibilitychange",i$,!0)}function o$(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return tl||r$(t)}function sb(){const e=Z.useCallback(a=>{a!=null&&a$(a.ownerDocument)},[]),t=Z.useRef(!1);function r(){return t.current?(kc=!0,e$.start(100,()=>{kc=!1}),t.current=!1,!0):!1}function n(a){return o$(a)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function lb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Iu(e,t)}const sm={disabled:!1};var s$=process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.shape({enter:v.number,exit:v.number,appear:v.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&v.oneOfType([v.string,v.shape({enter:v.string,exit:v.string,active:v.string}),v.shape({enter:v.string,enterDone:v.string,enterActive:v.string,exit:v.string,exitDone:v.string,exitActive:v.string})]);const Ts=Q.createContext(null);var Ra="unmounted",jn="exited",Bn="entering",Si="entered",Nc="exiting",Br=function(e){lb(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var s=a,u=s&&!s.isMounting?n.enter:n.appear,c;return o.appearStatus=null,n.in?u?(c=jn,o.appearStatus=Bn):c=Si:n.unmountOnExit||n.mountOnEnter?c=Ra:c=jn,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===Ra?{status:jn}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==Bn&&s!==Si&&(o=Bn):(s===Bn||s===Si)&&(o=Nc)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,s,u;return o=s=u=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,u=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:u}},r.updateStatus=function(a,o){a===void 0&&(a=!1),o!==null?(this.cancelNextCallback(),o===Bn?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:Mi.findDOMNode(this)),this.performEnter(a)):this.performExit()):this.props.unmountOnExit&&this.state.status===jn&&this.setState({status:Ra})},r.performEnter=function(a){var o=this,s=this.props.enter,u=this.context?this.context.isMounting:a,c=this.props.nodeRef?[u]:[Mi.findDOMNode(this),u],d=c[0],h=c[1],m=this.getTimeouts(),p=u?m.appear:m.enter;if(!a&&!s||sm.disabled){this.safeSetState({status:Si},function(){o.props.onEntered(d)});return}this.props.onEnter(d,h),this.safeSetState({status:Bn},function(){o.props.onEntering(d,h),o.onTransitionEnd(p,function(){o.safeSetState({status:Si},function(){o.props.onEntered(d,h)})})})},r.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:Mi.findDOMNode(this);if(!o||sm.disabled){this.safeSetState({status:jn},function(){a.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Nc},function(){a.props.onExiting(u),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:jn},function(){a.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,o.nextCallback=null,a(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Mi.findDOMNode(this),u=a==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],h=c[1];this.props.addEndListener(d,h)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Ra)return null;var o=this.props,s=o.children,u=Ee(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Q.createElement(Ts.Provider,{value:null},typeof s=="function"?s(a,u):Q.cloneElement(Q.Children.only(s),u))},t}(Q.Component);Br.contextType=Ts;Br.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:v.shape({current:typeof Element=="undefined"?v.any:function(e,t,r,n,a,o){var s=e[t];return v.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,o)}}),children:v.oneOfType([v.func.isRequired,v.element.isRequired]).isRequired,in:v.bool,mountOnEnter:v.bool,unmountOnExit:v.bool,appear:v.bool,enter:v.bool,exit:v.bool,timeout:function(t){var r=s$;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return r.apply(void 0,[t].concat(a))},addEndListener:v.func,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}:{};function wi(){}Br.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wi,onEntering:wi,onEntered:wi,onExit:wi,onExiting:wi,onExited:wi};Br.UNMOUNTED=Ra;Br.EXITED=jn;Br.ENTERING=Bn;Br.ENTERED=Si;Br.EXITING=Nc;function Gd(e,t){var r=function(o){return t&&Q.isValidElement(o)?t(o):o},n=Object.create(null);return e&&Q.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function l$(e,t){e=e||{},t=t||{};function r(h){return h in t?t[h]:e[h]}var n=Object.create(null),a=[];for(var o in e)o in t?a.length&&(n[o]=a,a=[]):a.push(o);var s,u={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var d=n[c][s];u[n[c][s]]=r(d)}u[c]=r(c)}for(s=0;s<a.length;s++)u[a[s]]=r(a[s]);return u}function Vn(e,t,r){return r[t]!=null?r[t]:e.props[t]}function u$(e,t){return Gd(e.children,function(r){return Q.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Vn(r,"appear",e),enter:Vn(r,"enter",e),exit:Vn(r,"exit",e)})})}function c$(e,t,r){var n=Gd(e.children),a=l$(t,n);return Object.keys(a).forEach(function(o){var s=a[o];if(Q.isValidElement(s)){var u=o in t,c=o in n,d=t[o],h=Q.isValidElement(d)&&!d.props.in;c&&(!u||h)?a[o]=Q.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:Vn(s,"exit",e),enter:Vn(s,"enter",e)}):!c&&u&&!h?a[o]=Q.cloneElement(s,{in:!1}):c&&u&&Q.isValidElement(d)&&(a[o]=Q.cloneElement(s,{onExited:r.bind(null,s),in:d.props.in,exit:Vn(s,"exit",e),enter:Vn(s,"enter",e)}))}}),a}var d$=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},f$={component:"div",childFactory:function(t){return t}},Yd=function(e){lb(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var s=o.handleExited.bind(PC(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,o){var s=o.children,u=o.handleExited,c=o.firstRender;return{children:c?u$(a,u):c$(a,s,u),firstRender:!1}},r.handleExited=function(a,o){var s=Gd(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(o),this.mounted&&this.setState(function(u){var c=re({},u.children);return delete c[a.key],{children:c}}))},r.render=function(){var a=this.props,o=a.component,s=a.childFactory,u=Ee(a,["component","childFactory"]),c=this.state.contextValue,d=d$(this.state.children).map(s);return delete u.appear,delete u.enter,delete u.exit,o===null?Q.createElement(Ts.Provider,{value:c},d):Q.createElement(Ts.Provider,{value:c},Q.createElement(o,u,d))},t}(Q.Component);Yd.propTypes=process.env.NODE_ENV!=="production"?{component:v.any,children:v.node,appear:v.bool,enter:v.bool,exit:v.bool,childFactory:v.func}:{};Yd.defaultProps=f$;function h$(e){const{prototype:t={}}=e;return!!t.isReactComponent}function ub(e,t,r,n,a){const o=e[t],s=a||t;if(o==null||typeof window=="undefined")return null;let u;const c=o.type;return typeof c=="function"&&!h$(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Qn=Sn(v.element,ub);Qn.isRequired=Sn(v.element.isRequired,ub);const p$="exact-prop: ​";function Xd(e){return process.env.NODE_ENV==="production"?e:re({},e,{[p$]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function Qr(e,t,r,n,a){if(process.env.NODE_ENV==="production")return null;const o=e[t],s=a||t;return o==null?null:o&&o.nodeType!==1?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function lm(...e){return e.reduce((t,r)=>r==null?t:function(...a){t.apply(this,a),r.apply(this,a)},()=>{})}function m$(e,t=166){let r;function n(...a){const o=()=>{e.apply(this,a)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function $t(e){return e&&e.ownerDocument||document}function qa(e){return $t(e).defaultView||window}let um=0;function v$(e){const[t,r]=Z.useState(e),n=e||t;return Z.useEffect(()=>{t==null&&(um+=1,r(`mui-${um}`))},[t]),n}const cm=Z[`useId${Math.random()}`.slice(0,5)];function cb(e){if(cm!==void 0){const t=cm();return e!=null?e:t}return v$(e)}function db(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function fb(e){const{className:t,classes:r,pulsate:n=!1,rippleX:a,rippleY:o,rippleSize:s,in:u,onExited:c,timeout:d}=e,[h,m]=Z.useState(!1),p=Oe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},_=Oe(r.child,h&&r.childLeaving,n&&r.childPulsate);return!u&&!h&&m(!0),Z.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,u,d]),V.jsx("span",{className:p,style:g,children:V.jsx("span",{className:_})})}process.env.NODE_ENV!=="production"&&(fb.propTypes={classes:v.object.isRequired,className:v.string,in:v.bool,onExited:v.func,pulsate:v.bool,rippleSize:v.number,rippleX:v.number,rippleY:v.number,timeout:v.number.isRequired});const ar=Qe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),g$=["center","classes","className"];let rl=e=>e,dm,fm,hm,pm;const Dc=550,y$=80,b$=to(dm||(dm=rl`
169
+ 0% {
170
+ transform: scale(0);
171
+ opacity: 0.1;
172
+ }
173
+
174
+ 100% {
175
+ transform: scale(1);
176
+ opacity: 0.3;
177
+ }
178
+ `)),_$=to(fm||(fm=rl`
179
+ 0% {
180
+ opacity: 1;
181
+ }
182
+
183
+ 100% {
184
+ opacity: 0;
185
+ }
186
+ `)),w$=to(hm||(hm=rl`
187
+ 0% {
188
+ transform: scale(1);
189
+ }
190
+
191
+ 50% {
192
+ transform: scale(0.92);
193
+ }
194
+
195
+ 100% {
196
+ transform: scale(1);
197
+ }
198
+ `)),x$=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),C$=ke(fb,{name:"MuiTouchRipple",slot:"Ripple"})(pm||(pm=rl`
199
+ opacity: 0;
200
+ position: absolute;
201
+
202
+ &.${0} {
203
+ opacity: 0.3;
204
+ transform: scale(1);
205
+ animation-name: ${0};
206
+ animation-duration: ${0}ms;
207
+ animation-timing-function: ${0};
208
+ }
209
+
210
+ &.${0} {
211
+ animation-duration: ${0}ms;
212
+ }
213
+
214
+ & .${0} {
215
+ opacity: 1;
216
+ display: block;
217
+ width: 100%;
218
+ height: 100%;
219
+ border-radius: 50%;
220
+ background-color: currentColor;
221
+ }
222
+
223
+ & .${0} {
224
+ opacity: 0;
225
+ animation-name: ${0};
226
+ animation-duration: ${0}ms;
227
+ animation-timing-function: ${0};
228
+ }
229
+
230
+ & .${0} {
231
+ position: absolute;
232
+ /* @noflip */
233
+ left: 0px;
234
+ top: 0;
235
+ animation-name: ${0};
236
+ animation-duration: 2500ms;
237
+ animation-timing-function: ${0};
238
+ animation-iteration-count: infinite;
239
+ animation-delay: 200ms;
240
+ }
241
+ `),ar.rippleVisible,b$,Dc,({theme:e})=>e.transitions.easing.easeInOut,ar.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ar.child,ar.childLeaving,_$,Dc,({theme:e})=>e.transitions.easing.easeInOut,ar.childPulsate,w$,({theme:e})=>e.transitions.easing.easeInOut),hb=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s}=n,u=Ee(n,g$),[c,d]=Z.useState([]),h=Z.useRef(0),m=Z.useRef(null);Z.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const p=Z.useRef(!1),g=Pi(),_=Z.useRef(null),y=Z.useRef(null),w=Z.useCallback(C=>{const{pulsate:x,rippleX:P,rippleY:R,rippleSize:D,cb:A}=C;d(I=>[...I,V.jsx(C$,{classes:{ripple:Oe(o.ripple,ar.ripple),rippleVisible:Oe(o.rippleVisible,ar.rippleVisible),ripplePulsate:Oe(o.ripplePulsate,ar.ripplePulsate),child:Oe(o.child,ar.child),childLeaving:Oe(o.childLeaving,ar.childLeaving),childPulsate:Oe(o.childPulsate,ar.childPulsate)},timeout:Dc,pulsate:x,rippleX:P,rippleY:R,rippleSize:D},h.current)]),h.current+=1,m.current=A},[o]),E=Z.useCallback((C={},x={},P=()=>{})=>{const{pulsate:R=!1,center:D=a||x.pulsate,fakeElement:A=!1}=x;if((C==null?void 0:C.type)==="mousedown"&&p.current){p.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(p.current=!0);const I=A?null:y.current,N=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,W,j;if(D||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)k=Math.round(N.width/2),W=Math.round(N.height/2);else{const{clientX:$,clientY:B}=C.touches&&C.touches.length>0?C.touches[0]:C;k=Math.round($-N.left),W=Math.round(B-N.top)}if(D)j=Math.sqrt((2*qt(N.width,2)+qt(N.height,2))/3),j%2===0&&(j+=1);else{const $=Math.max(Math.abs((I?I.clientWidth:0)-k),k)*2+2,B=Math.max(Math.abs((I?I.clientHeight:0)-W),W)*2+2;j=Math.sqrt(qt($,2)+qt(B,2))}C!=null&&C.touches?_.current===null&&(_.current=()=>{w({pulsate:R,rippleX:k,rippleY:W,rippleSize:j,cb:P})},g.start(y$,()=>{_.current&&(_.current(),_.current=null)})):w({pulsate:R,rippleX:k,rippleY:W,rippleSize:j,cb:P})},[a,w,g]),S=Z.useCallback(()=>{E({},{pulsate:!0})},[E]),T=Z.useCallback((C,x)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&_.current){_.current(),_.current=null,g.start(0,()=>{T(C,x)});return}_.current=null,d(P=>P.length>0?P.slice(1):P),m.current=x},[g]);return Z.useImperativeHandle(r,()=>({pulsate:S,start:E,stop:T}),[S,E,T]),V.jsx(x$,re({className:Oe(ar.root,o.root,s),ref:y},u,{children:V.jsx(Yd,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(hb.propTypes={center:v.bool,classes:v.object,className:v.string});function T$(e){return tt("MuiButtonBase",e)}const S$=Qe("MuiButtonBase",["root","disabled","focusVisible"]),E$=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],M$=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:a}=e,s=st({root:["root",t&&"disabled",r&&"focusVisible"]},T$,a);return r&&n&&(s.root+=` ${n}`),s},P$=ke("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${S$.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Jn=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:u,component:c="button",disabled:d=!1,disableRipple:h=!1,disableTouchRipple:m=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:_,onClick:y,onContextMenu:w,onDragLeave:E,onFocus:S,onFocusVisible:T,onKeyDown:C,onKeyUp:x,onMouseDown:P,onMouseLeave:R,onMouseUp:D,onTouchEnd:A,onTouchMove:I,onTouchStart:N,tabIndex:k=0,TouchRippleProps:W,touchRippleRef:j,type:$}=n,B=Ee(n,E$),G=Z.useRef(null),q=Z.useRef(null),U=zt(q,j),{isFocusVisibleRef:z,onFocus:H,onBlur:te,ref:X}=sb(),[K,J]=Z.useState(!1);d&&K&&J(!1),Z.useImperativeHandle(a,()=>({focusVisible:()=>{J(!0),G.current.focus()}}),[]);const[ie,le]=Z.useState(!1);Z.useEffect(()=>{le(!0)},[]);const se=ie&&!h&&!d;Z.useEffect(()=>{K&&p&&!h&&ie&&q.current.pulsate()},[h,p,K,ie]);function ce(Te,_t,Sr=m){return Zr(Kt=>(_t&&_t(Kt),!Sr&&q.current&&q.current[Te](Kt),!0))}const he=ce("start",P),pe=ce("stop",w),oe=ce("stop",E),ve=ce("stop",D),fe=ce("stop",Te=>{K&&Te.preventDefault(),R&&R(Te)}),_e=ce("start",N),we=ce("stop",A),Se=ce("stop",I),Ce=ce("stop",Te=>{te(Te),z.current===!1&&J(!1),_&&_(Te)},!1),ft=Zr(Te=>{G.current||(G.current=Te.currentTarget),H(Te),z.current===!0&&(J(!0),T&&T(Te)),S&&S(Te)}),Ue=()=>{const Te=G.current;return c&&c!=="button"&&!(Te.tagName==="A"&&Te.href)},nt=Z.useRef(!1),ht=Zr(Te=>{p&&!nt.current&&K&&q.current&&Te.key===" "&&(nt.current=!0,q.current.stop(Te,()=>{q.current.start(Te)})),Te.target===Te.currentTarget&&Ue()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&Ue()&&Te.key==="Enter"&&!d&&(Te.preventDefault(),y&&y(Te))}),Ie=Zr(Te=>{p&&Te.key===" "&&q.current&&K&&!Te.defaultPrevented&&(nt.current=!1,q.current.stop(Te,()=>{q.current.pulsate(Te)})),x&&x(Te),y&&Te.target===Te.currentTarget&&Ue()&&Te.key===" "&&!Te.defaultPrevented&&y(Te)});let qe=c;qe==="button"&&(B.href||B.to)&&(qe=g);const Pt={};qe==="button"?(Pt.type=$===void 0?"button":$,Pt.disabled=d):(!B.href&&!B.to&&(Pt.role="button"),d&&(Pt["aria-disabled"]=d));const pt=zt(r,X,G);process.env.NODE_ENV!=="production"&&Z.useEffect(()=>{se&&!q.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
242
+ `))},[se]);const Rt=re({},n,{centerRipple:o,component:c,disabled:d,disableRipple:h,disableTouchRipple:m,focusRipple:p,tabIndex:k,focusVisible:K}),pr=M$(Rt);return V.jsxs(P$,re({as:qe,className:Oe(pr.root,u),ownerState:Rt,onBlur:Ce,onClick:y,onContextMenu:pe,onFocus:ft,onKeyDown:ht,onKeyUp:Ie,onMouseDown:he,onMouseLeave:fe,onMouseUp:ve,onDragLeave:oe,onTouchEnd:we,onTouchMove:Se,onTouchStart:_e,ref:pt,tabIndex:d?-1:k,type:$},Pt,B,{children:[s,se?V.jsx(hb,re({ref:U,center:o},W)):null]}))});process.env.NODE_ENV!=="production"&&(Jn.propTypes={action:co,centerRipple:v.bool,children:v.node,classes:v.object,className:v.string,component:rb,disabled:v.bool,disableRipple:v.bool,disableTouchRipple:v.bool,focusRipple:v.bool,focusVisibleClassName:v.string,href:v.any,LinkComponent:v.elementType,onBlur:v.func,onClick:v.func,onContextMenu:v.func,onDragLeave:v.func,onFocus:v.func,onFocusVisible:v.func,onKeyDown:v.func,onKeyUp:v.func,onMouseDown:v.func,onMouseLeave:v.func,onMouseUp:v.func,onTouchEnd:v.func,onTouchMove:v.func,onTouchStart:v.func,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),tabIndex:v.number,TouchRippleProps:v.object,touchRippleRef:v.oneOfType([v.func,v.shape({current:v.shape({pulsate:v.func.isRequired,start:v.func.isRequired,stop:v.func.isRequired})})]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string])});function R$(e){return tt("MuiSvgIcon",e)}Qe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const O$=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],k$=e=>{const{color:t,fontSize:r,classes:n}=e,a={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(r)}`]};return st(a,R$,n)},N$=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${De(r.color)}`],t[`fontSize${De(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,a,o,s,u,c,d,h,m,p,g,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(a=e.transitions)==null||(a=a.duration)==null?void 0:a.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((d=e.typography)==null||(h=d.pxToRem)==null?void 0:h.call(d,35))||"2.1875rem"}[t.fontSize],color:(m=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.disabled,inherit:void 0}[t.color]}}),Ss=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:u="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:h=!1,titleAccess:m,viewBox:p="0 0 24 24"}=n,g=Ee(n,O$),_=Z.isValidElement(a)&&a.type==="svg",y=re({},n,{color:s,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:p,hasSvgAsChild:_}),w={};h||(w.viewBox=p);const E=k$(y);return V.jsxs(N$,re({as:u,className:Oe(E.root,o),focusable:"false",color:d,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},w,g,_&&a.props,{ownerState:y,children:[_?a.props.children:a,m?V.jsx("title",{children:m}):null]}))});process.env.NODE_ENV!=="production"&&(Ss.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),v.string]),component:v.elementType,fontSize:v.oneOfType([v.oneOf(["inherit","large","medium","small"]),v.string]),htmlColor:v.string,inheritViewBox:v.bool,shapeRendering:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),titleAccess:v.string,viewBox:v.string});Ss.muiName="SvgIcon";function mo(e,t){function r(n,a){return V.jsx(Ss,re({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=Ss.muiName,Z.memo(Z.forwardRef(r))}const mm=mo(V.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),vm=mo(V.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),gm=mo(V.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),ym=mo(V.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),D$=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],pb=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${De(r.size)}`],r.variant==="text"&&t[`text${De(r.color)}`],r.variant==="outlined"&&t[`outlined${De(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},A$=e=>{const{classes:t,color:r,disabled:n,selected:a,size:o,shape:s,type:u,variant:c}=e,d={root:["root",`size${De(o)}`,c,s,r!=="standard"&&`color${De(r)}`,r!=="standard"&&`${c}${De(r)}`,n&&"disabled",a&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return st(d,_I,t)},L$=ke("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:pb})(({theme:e,ownerState:t})=>re({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),I$=ke(Jn,{name:"MuiPaginationItem",slot:"Root",overridesResolver:pb})(({theme:e,ownerState:t})=>re({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rr.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${rr.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>re({},t.variant==="text"&&{[`&.${rr.selected}`]:re({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${rr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${rr.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${rr.selected}`]:re({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:ot(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:ot(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${rr.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),$$=ke("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>re({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),mb=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaginationItem"}),{className:a,color:o="standard",component:s,components:u={},disabled:c=!1,page:d,selected:h=!1,shape:m="circular",size:p="medium",slots:g={},type:_="page",variant:y="text"}=n,w=Ee(n,D$),E=re({},n,{color:o,disabled:c,selected:h,shape:m,size:p,type:_,variant:y}),S=qd(),T=A$(E),x=(S?{previous:g.next||u.next||ym,next:g.previous||u.previous||gm,last:g.first||u.first||mm,first:g.last||u.last||vm}:{previous:g.previous||u.previous||gm,next:g.next||u.next||ym,first:g.first||u.first||mm,last:g.last||u.last||vm})[_];return _==="start-ellipsis"||_==="end-ellipsis"?V.jsx(L$,{ref:r,ownerState:E,className:Oe(T.root,a),children:"…"}):V.jsxs(I$,re({ref:r,ownerState:E,component:s,disabled:c,className:Oe(T.root,a)},w,{children:[_==="page"&&d,x?V.jsx($$,{as:x,ownerState:E,className:T.icon}):null]}))});process.env.NODE_ENV!=="production"&&(mb.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","standard"]),v.string]),component:v.elementType,components:v.shape({first:v.elementType,last:v.elementType,next:v.elementType,previous:v.elementType}),disabled:v.bool,page:v.node,selected:v.bool,shape:v.oneOf(["circular","rounded"]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),slots:v.shape({first:v.elementType,last:v.elementType,next:v.elementType,previous:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:v.oneOfType([v.oneOf(["outlined","text"]),v.string])});const z$=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],F$=e=>{const{classes:t,variant:r}=e;return st({root:["root",r],ul:["ul"]},vI,t)},W$=ke("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),j$=ke("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function B$(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const vb=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPagination"}),{boundaryCount:a=1,className:o,color:s="standard",count:u=1,defaultPage:c=1,disabled:d=!1,getItemAriaLabel:h=B$,hideNextButton:m=!1,hidePrevButton:p=!1,renderItem:g=D=>V.jsx(mb,re({},D)),shape:_="circular",showFirstButton:y=!1,showLastButton:w=!1,siblingCount:E=1,size:S="medium",variant:T="text"}=n,C=Ee(n,z$),{items:x}=yI(re({},n,{componentName:"Pagination"})),P=re({},n,{boundaryCount:a,color:s,count:u,defaultPage:c,disabled:d,getItemAriaLabel:h,hideNextButton:m,hidePrevButton:p,renderItem:g,shape:_,showFirstButton:y,showLastButton:w,siblingCount:E,size:S,variant:T}),R=F$(P);return V.jsx(W$,re({"aria-label":"pagination navigation",className:Oe(R.root,o),ownerState:P,ref:r},C,{children:V.jsx(j$,{className:R.ul,ownerState:P,children:x.map((D,A)=>V.jsx("li",{children:g(re({},D,{color:s,"aria-label":h(D.type,D.page,D.selected),shape:_,size:S,variant:T}))},A))})}))});process.env.NODE_ENV!=="production"&&(vb.propTypes={boundaryCount:Nr,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","standard"]),v.string]),count:Nr,defaultPage:Nr,disabled:v.bool,getItemAriaLabel:v.func,hideNextButton:v.bool,hidePrevButton:v.bool,onChange:v.func,page:Nr,renderItem:v.func,shape:v.oneOf(["circular","rounded"]),showFirstButton:v.bool,showLastButton:v.bool,siblingCount:Nr,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["outlined","text"]),v.string])});const gb=e=>{const t=[],r=[];for(const n of e.columns)O.isMeasureColumn(n)?r.push(n):t.push(n);return{attributes:t,measures:r}},H$=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:a,offset:o})=>{const s=Ad(),[u,c]=Q.useState(bn(e)?null:e),[d,h]=Q.useState(!1),m=Q.useRef(!0),{isInitialized:p,app:g}=bt(),[_,y]=Q.useState(t);return Q.useEffect(()=>{var T;let w=!1;if(!t)return;const{attributes:E,measures:S}=gb(t);if(bn(e)){if(!p){s(new O.TranslatableError("errors.chartNoSisenseContext"));return}if(!g||!m.current&&o>0)return;h(!0),((T=g.settings.queryCacheConfig)!=null&&T.enabled?Cd:io)({dataSource:e,dimensions:E,measures:S,filters:r,filterRelations:n,count:a+1,offset:o,ungroup:!0},g).then(x=>{if(w)return;m.current=x.rows.length>a;const P=m.current?x.rows.slice(0,a):x.rows;o>0?c(R=>{const D=R==null?void 0:R.rows.length,A=D?D>o?R.rows.slice(0,o):R.rows:null;return{columns:x.columns,rows:A?[...A,...P]:P}}):c({columns:x.columns,rows:P}),y(t)}).finally(()=>{h(!1)}).catch(x=>{w||s(x)})}else c(e),y(t);return()=>{w=!0}},[g,e,t,r,n,o,a,p,s]),[d?null:u,_]},V$=(e,t)=>{if(O.emptyTable(t))return{rows:[],columns:[]};const r=O.getColumnsByName(t,e);return O.selectColumns(t,r)},Ac=e=>{switch("getSort"in e?e.getSort():e.sortType){case"sortAsc":case O.Sort.Ascending:return 1;case"sortDesc":case O.Sort.Descending:return-1;default:return 0}},U$=(e,t)=>{const r=e.columns.find(n=>Ac(n)!==0);if(r){const n=O.getColumnByName(t,r.name);n&&(n.direction=Ac(r))}return t},q$=(e,t)=>({columns:e.columns.map(r=>{const n="getSort"in r,a=r.name===t.name,o=Ac(r);if(n){const s=o===1?O.Sort.Descending:O.Sort.Ascending;return O.translateColumnToCategoryOrValue(ue(ee({},r),{column:r.sort(a?s:O.Sort.None)}))}else{const s=o===1?"sortDesc":"sortAsc";return O.translateColumnToCategoryOrValue(ue(ee({},r),{sortType:a?s:"sortNone",column:r}))}})}),G$=(e,t)=>{const r=V$(e.columns.map(n=>n.name),t);return U$(e,r)},Y$=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:a}=bt();return Q.useMemo(()=>{if(!e||!t)return null;let o=O.createDataTableFromData(Tc(e,t,a==null?void 0:a.settings.locale,a==null?void 0:a.settings.dateConfig));const s=t.columns.filter(c=>O.isCategory(c)),u=t.columns.filter(c=>O.isValue(c));return My(o,s,u,r),n&&(o=dy(o,s,u,r)),G$(t,o)},[e,t,n,r,a])};var yb={},bb={};function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _m(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){kC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Et(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var wm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cu=function(){return Math.random().toString(36).substring(7).split("").join(".")},yn={INIT:"@@redux/INIT"+Cu(),REPLACE:"@@redux/REPLACE"+Cu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cu()}};function _b(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function X$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(Q$(e))return"date";if(K$(e))return"error";var r=Z$(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function Z$(e){return typeof e.constructor=="function"?e.constructor.name:null}function K$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Q$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function pn(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=X$(e)),t}function Zd(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Et(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Et(1):"Expected the enhancer to be a function. Instead, received: '"+pn(r)+"'");return r(Zd)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Et(2):"Expected the root reducer to be a function. Instead, received: '"+pn(e)+"'");var a=e,o=t,s=[],u=s,c=!1;function d(){u===s&&(u=s.slice())}function h(){if(c)throw new Error(process.env.NODE_ENV==="production"?Et(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function m(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?Et(4):"Expected the listener to be a function. Instead, received: '"+pn(y)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?Et(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var w=!0;return d(),u.push(y),function(){if(w){if(c)throw new Error(process.env.NODE_ENV==="production"?Et(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");w=!1,d();var S=u.indexOf(y);u.splice(S,1),s=null}}}function p(y){if(!_b(y))throw new Error(process.env.NODE_ENV==="production"?Et(7):"Actions must be plain objects. Instead, the actual type was: '"+pn(y)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof y.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?Et(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?Et(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,y)}finally{c=!1}for(var w=s=u,E=0;E<w.length;E++){var S=w[E];S()}return y}function g(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?Et(10):"Expected the nextReducer to be a function. Instead, received: '"+pn(y));a=y,p({type:yn.REPLACE})}function _(){var y,w=m;return y={subscribe:function(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?Et(11):"Expected the observer to be an object. Instead, received: '"+pn(S)+"'");function T(){S.next&&S.next(h())}T();var C=w(T);return{unsubscribe:C}}},y[wm]=function(){return this},y}return p({type:yn.INIT}),n={dispatch:p,subscribe:m,getState:h,replaceReducer:g},n[wm]=_,n}var J$=Zd;function xm(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function e5(e,t,r,n){var a=Object.keys(t),o=r&&r.type===yn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(a.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!_b(e))return"The "+o+' has unexpected type of "'+pn(e)+'". Expected argument to be an object with the following '+('keys: "'+a.join('", "')+'"');var s=Object.keys(e).filter(function(u){return!t.hasOwnProperty(u)&&!n[u]});if(s.forEach(function(u){n[u]=!0}),!(r&&r.type===yn.REPLACE)&&s.length>0)return"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+a.join('", "')+'". Unexpected keys will be ignored.')}function t5(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:yn.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?Et(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:yn.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Et(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+yn.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function r5(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];process.env.NODE_ENV!=="production"&&typeof e[a]=="undefined"&&xm('No reducer provided for key "'+a+'"'),typeof e[a]=="function"&&(r[a]=e[a])}var o=Object.keys(r),s;process.env.NODE_ENV!=="production"&&(s={});var u;try{t5(r)}catch(c){u=c}return function(d,h){if(d===void 0&&(d={}),u)throw u;if(process.env.NODE_ENV!=="production"){var m=e5(d,r,h,s);m&&xm(m)}for(var p=!1,g={},_=0;_<o.length;_++){var y=o[_],w=r[y],E=d[y],S=w(E,h);if(typeof S=="undefined"){var T=h&&h.type;throw new Error(process.env.NODE_ENV==="production"?Et(14):"When called with an action of type "+(T?'"'+String(T)+'"':"(unknown type)")+', the slice reducer for key "'+y+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}g[y]=S,p=p||S!==E}return p=p||o.length!==Object.keys(d).length,p?g:d}}function Cm(e,t){return function(){return t(e.apply(this,arguments))}}function n5(e,t){if(typeof e=="function")return Cm(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?Et(16):"bindActionCreators expected an object or a function, but instead received: '"+pn(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var a=e[n];typeof a=="function"&&(r[n]=Cm(a,t))}return r}function wb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function i5(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),o=function(){throw new Error(process.env.NODE_ENV==="production"?Et(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},s={getState:a.getState,dispatch:function(){return o.apply(void 0,arguments)}},u=t.map(function(c){return c(s)});return o=wb.apply(void 0,u)(a.dispatch),_m(_m({},a),{},{dispatch:o})}}}const a5=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:yn,applyMiddleware:i5,bindActionCreators:n5,combineReducers:r5,compose:wb,createStore:Zd,legacy_createStore:J$},Symbol.toStringTag,{value:"Module"})),xb=O.getAugmentedNamespace(a5);var qi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(a,o,s,u,c,d,h,m){if(process.env.NODE_ENV!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!a){var p;if(o===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[s,u,c,d,h,m],_=0;p=new Error("Invariant Violation: "+o.replace(/%s/g,function(){return g[_++]}))}throw p.framesToPop=1,p}},r=t;e.default=r})(qi);var o5=Array.isArray,Zt=o5,s5=typeof O.commonjsGlobal=="object"&&O.commonjsGlobal&&O.commonjsGlobal.Object===Object&&O.commonjsGlobal,Cb=s5,l5=Cb,u5=typeof self=="object"&&self&&self.Object===Object&&self,c5=l5||u5||Function("return this")(),en=c5,d5=en,f5=d5.Symbol,vo=f5,Tm=vo,Tb=Object.prototype,h5=Tb.hasOwnProperty,p5=Tb.toString,wa=Tm?Tm.toStringTag:void 0;function m5(e){var t=h5.call(e,wa),r=e[wa];try{e[wa]=void 0;var n=!0}catch(o){}var a=p5.call(e);return n&&(t?e[wa]=r:delete e[wa]),a}var v5=m5,g5=Object.prototype,y5=g5.toString;function b5(e){return y5.call(e)}var _5=b5,Sm=vo,w5=v5,x5=_5,C5="[object Null]",T5="[object Undefined]",Em=Sm?Sm.toStringTag:void 0;function S5(e){return e==null?e===void 0?T5:C5:Em&&Em in Object(e)?w5(e):x5(e)}var Gi=S5;function E5(e){return e!=null&&typeof e=="object"}var Yi=E5,M5=Gi,P5=Yi,R5="[object Symbol]";function O5(e){return typeof e=="symbol"||P5(e)&&M5(e)==R5}var nl=O5,k5=Zt,N5=nl,D5=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A5=/^\w*$/;function L5(e,t){if(k5(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||N5(e)?!0:A5.test(e)||!D5.test(e)||t!=null&&e in Object(t)}var Kd=L5;function I5(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var go=I5,$5=Gi,z5=go,F5="[object AsyncFunction]",W5="[object Function]",j5="[object GeneratorFunction]",B5="[object Proxy]";function H5(e){if(!z5(e))return!1;var t=$5(e);return t==W5||t==j5||t==F5||t==B5}var Sb=H5,V5=en,U5=V5["__core-js_shared__"],q5=U5,Tu=q5,Mm=function(){var e=/[^.]+$/.exec(Tu&&Tu.keys&&Tu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function G5(e){return!!Mm&&Mm in e}var Y5=G5,X5=Function.prototype,Z5=X5.toString;function K5(e){if(e!=null){try{return Z5.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var Eb=K5,Q5=Sb,J5=Y5,ez=go,tz=Eb,rz=/[\\^$.*+?()[\]{}|]/g,nz=/^\[object .+?Constructor\]$/,iz=Function.prototype,az=Object.prototype,oz=iz.toString,sz=az.hasOwnProperty,lz=RegExp("^"+oz.call(sz).replace(rz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uz(e){if(!ez(e)||J5(e))return!1;var t=Q5(e)?lz:nz;return t.test(tz(e))}var cz=uz;function dz(e,t){return e==null?void 0:e[t]}var fz=dz,hz=cz,pz=fz;function mz(e,t){var r=pz(e,t);return hz(r)?r:void 0}var ei=mz,vz=ei,gz=vz(Object,"create"),il=gz,Pm=il;function yz(){this.__data__=Pm?Pm(null):{},this.size=0}var bz=yz;function _z(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wz=_z,xz=il,Cz="__lodash_hash_undefined__",Tz=Object.prototype,Sz=Tz.hasOwnProperty;function Ez(e){var t=this.__data__;if(xz){var r=t[e];return r===Cz?void 0:r}return Sz.call(t,e)?t[e]:void 0}var Mz=Ez,Pz=il,Rz=Object.prototype,Oz=Rz.hasOwnProperty;function kz(e){var t=this.__data__;return Pz?t[e]!==void 0:Oz.call(t,e)}var Nz=kz,Dz=il,Az="__lodash_hash_undefined__";function Lz(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dz&&t===void 0?Az:t,this}var Iz=Lz,$z=bz,zz=wz,Fz=Mz,Wz=Nz,jz=Iz;function Xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Xi.prototype.clear=$z;Xi.prototype.delete=zz;Xi.prototype.get=Fz;Xi.prototype.has=Wz;Xi.prototype.set=jz;var Bz=Xi;function Hz(){this.__data__=[],this.size=0}var Vz=Hz;function Uz(e,t){return e===t||e!==e&&t!==t}var Qd=Uz,qz=Qd;function Gz(e,t){for(var r=e.length;r--;)if(qz(e[r][0],t))return r;return-1}var al=Gz,Yz=al,Xz=Array.prototype,Zz=Xz.splice;function Kz(e){var t=this.__data__,r=Yz(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Zz.call(t,r,1),--this.size,!0}var Qz=Kz,Jz=al;function eF(e){var t=this.__data__,r=Jz(t,e);return r<0?void 0:t[r][1]}var tF=eF,rF=al;function nF(e){return rF(this.__data__,e)>-1}var iF=nF,aF=al;function oF(e,t){var r=this.__data__,n=aF(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var sF=oF,lF=Vz,uF=Qz,cF=tF,dF=iF,fF=sF;function Zi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Zi.prototype.clear=lF;Zi.prototype.delete=uF;Zi.prototype.get=cF;Zi.prototype.has=dF;Zi.prototype.set=fF;var ol=Zi,hF=ei,pF=en,mF=hF(pF,"Map"),Jd=mF,Rm=Bz,vF=ol,gF=Jd;function yF(){this.size=0,this.__data__={hash:new Rm,map:new(gF||vF),string:new Rm}}var bF=yF;function _F(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wF=_F,xF=wF;function CF(e,t){var r=e.__data__;return xF(t)?r[typeof t=="string"?"string":"hash"]:r.map}var sl=CF,TF=sl;function SF(e){var t=TF(this,e).delete(e);return this.size-=t?1:0,t}var EF=SF,MF=sl;function PF(e){return MF(this,e).get(e)}var RF=PF,OF=sl;function kF(e){return OF(this,e).has(e)}var NF=kF,DF=sl;function AF(e,t){var r=DF(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var LF=AF,IF=bF,$F=EF,zF=RF,FF=NF,WF=LF;function Ki(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ki.prototype.clear=IF;Ki.prototype.delete=$F;Ki.prototype.get=zF;Ki.prototype.has=FF;Ki.prototype.set=WF;var ef=Ki,Mb=ef,jF="Expected a function";function tf(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jF);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var s=e.apply(this,n);return r.cache=o.set(a,s)||o,s};return r.cache=new(tf.Cache||Mb),r}tf.Cache=Mb;var BF=tf,HF=BF,VF=500;function UF(e){var t=HF(e,function(n){return r.size===VF&&r.clear(),n}),r=t.cache;return t}var qF=UF,GF=qF,YF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XF=/\\(\\)?/g,ZF=GF(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(YF,function(r,n,a,o){t.push(a?o.replace(XF,"$1"):n||r)}),t}),KF=ZF;function QF(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var Pb=QF,Om=vo,JF=Pb,eW=Zt,tW=nl,rW=1/0,km=Om?Om.prototype:void 0,Nm=km?km.toString:void 0;function Rb(e){if(typeof e=="string")return e;if(eW(e))return JF(e,Rb)+"";if(tW(e))return Nm?Nm.call(e):"";var t=e+"";return t=="0"&&1/e==-rW?"-0":t}var nW=Rb,iW=nW;function aW(e){return e==null?"":iW(e)}var oW=aW,sW=Zt,lW=Kd,uW=KF,cW=oW;function dW(e,t){return sW(e)?e:lW(e,t)?[e]:uW(cW(e))}var ll=dW,fW=nl,hW=1/0;function pW(e){if(typeof e=="string"||fW(e))return e;var t=e+"";return t=="0"&&1/e==-hW?"-0":t}var yo=pW,mW=ll,vW=yo;function gW(e,t){t=mW(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[vW(t[r++])];return r&&r==n?e:void 0}var rf=gW,yW=ei,bW=function(){try{var e=yW(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ob=bW,Dm=Ob;function _W(e,t,r){t=="__proto__"&&Dm?Dm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var wW=_W,xW=wW,CW=Qd,TW=Object.prototype,SW=TW.hasOwnProperty;function EW(e,t,r){var n=e[t];(!(SW.call(e,t)&&CW(n,r))||r===void 0&&!(t in e))&&xW(e,t,r)}var MW=EW,PW=9007199254740991,RW=/^(?:0|[1-9]\d*)$/;function OW(e,t){var r=typeof e;return t=t==null?PW:t,!!t&&(r=="number"||r!="symbol"&&RW.test(e))&&e>-1&&e%1==0&&e<t}var nf=OW,kW=MW,NW=ll,DW=nf,Am=go,AW=yo;function LW(e,t,r,n){if(!Am(e))return e;t=NW(t,e);for(var a=-1,o=t.length,s=o-1,u=e;u!=null&&++a<o;){var c=AW(t[a]),d=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(a!=s){var h=u[c];d=n?n(h,c,u):void 0,d===void 0&&(d=Am(h)?h:DW(t[a+1])?[]:{})}kW(u,c,d),u=u[c]}return e}var IW=LW,$W=rf,zW=IW,FW=ll;function WW(e,t,r){for(var n=-1,a=t.length,o={};++n<a;){var s=t[n],u=$W(e,s);r(u,s)&&zW(o,FW(s,e),u)}return o}var jW=WW;function BW(e,t){return e!=null&&t in Object(e)}var HW=BW,VW=Gi,UW=Yi,qW="[object Arguments]";function GW(e){return UW(e)&&VW(e)==qW}var YW=GW,Lm=YW,XW=Yi,kb=Object.prototype,ZW=kb.hasOwnProperty,KW=kb.propertyIsEnumerable,QW=Lm(function(){return arguments}())?Lm:function(e){return XW(e)&&ZW.call(e,"callee")&&!KW.call(e,"callee")},ul=QW,JW=9007199254740991;function e4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=JW}var af=e4,t4=ll,r4=ul,n4=Zt,i4=nf,a4=af,o4=yo;function s4(e,t,r){t=t4(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var s=o4(t[n]);if(!(o=e!=null&&r(e,s)))break;e=e[s]}return o||++n!=a?o:(a=e==null?0:e.length,!!a&&a4(a)&&i4(s,a)&&(n4(e)||r4(e)))}var l4=s4,u4=HW,c4=l4;function d4(e,t){return e!=null&&c4(e,t,u4)}var Nb=d4,f4=jW,h4=Nb;function p4(e,t){return f4(e,t,function(r,n){return h4(e,n)})}var m4=p4;function v4(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Db=v4,Im=vo,g4=ul,y4=Zt,$m=Im?Im.isConcatSpreadable:void 0;function b4(e){return y4(e)||g4(e)||!!($m&&e&&e[$m])}var _4=b4,w4=Db,x4=_4;function Ab(e,t,r,n,a){var o=-1,s=e.length;for(r||(r=x4),a||(a=[]);++o<s;){var u=e[o];t>0&&r(u)?t>1?Ab(u,t-1,r,n,a):w4(a,u):n||(a[a.length]=u)}return a}var C4=Ab,T4=C4;function S4(e){var t=e==null?0:e.length;return t?T4(e,1):[]}var E4=S4;function M4(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var P4=M4,R4=P4,zm=Math.max;function O4(e,t,r){return t=zm(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=zm(n.length-t,0),s=Array(o);++a<o;)s[a]=n[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=n[a];return u[t]=r(s),R4(e,this,u)}}var k4=O4;function N4(e){return function(){return e}}var D4=N4;function A4(e){return e}var of=A4,L4=D4,Fm=Ob,I4=of,$4=Fm?function(e,t){return Fm(e,"toString",{configurable:!0,enumerable:!1,value:L4(t),writable:!0})}:I4,z4=$4,F4=800,W4=16,j4=Date.now;function B4(e){var t=0,r=0;return function(){var n=j4(),a=W4-(n-r);if(r=n,a>0){if(++t>=F4)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var H4=B4,V4=z4,U4=H4,q4=U4(V4),G4=q4,Y4=E4,X4=k4,Z4=G4;function K4(e){return Z4(X4(e,void 0,Y4),e+"")}var Q4=K4,J4=m4,ej=Q4,tj=ej(function(e,t){return e==null?{}:J4(e,t)}),sf=tj,Xe={};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.SCROLL_TO_Y=Xe.SCROLL_TO_X=Xe.SCROLL_END=Xe.SCROLL_START=Xe.PROP_CHANGE=Xe.INITIALIZE=Xe.COLUMN_RESIZE=Xe.COLUMN_REORDER_MOVE=Xe.COLUMN_REORDER_END=Xe.COLUMN_REORDER_START=void 0;var rj="COLUMN_REORDER_START";Xe.COLUMN_REORDER_START=rj;var nj="COLUMN_REORDER_END";Xe.COLUMN_REORDER_END=nj;var ij="COLUMN_REORDER_MOVE";Xe.COLUMN_REORDER_MOVE=ij;var aj="COLUMN_RESIZE";Xe.COLUMN_RESIZE=aj;var oj="INITIALIZE";Xe.INITIALIZE=oj;var sj="PROP_CHANGE";Xe.PROP_CHANGE=sj;var lj="SCROLL_START";Xe.SCROLL_START=lj;var uj="SCROLL_END";Xe.SCROLL_END=uj;var cj="SCROLL_TO_X";Xe.SCROLL_TO_X=cj;var dj="SCROLL_TO_Y";Xe.SCROLL_TO_Y=dj;var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.resizeColumn=Dr.moveColumnReorder=Dr.stopColumnReorder=Dr.startColumnReorder=void 0;var cl=Xe,fj=function(t){return{type:cl.COLUMN_REORDER_START,reorderData:t}};Dr.startColumnReorder=fj;var hj=function(){return{type:cl.COLUMN_REORDER_END}};Dr.stopColumnReorder=hj;var pj=function(t){return{type:cl.COLUMN_REORDER_MOVE,deltaX:t}};Dr.moveColumnReorder=pj;var mj=function(t){return{type:cl.COLUMN_RESIZE,resizeData:t}};Dr.resizeColumn=mj;var Ar={};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.stopScroll=Ar.startScroll=Ar.scrollToY=Ar.scrollToX=void 0;var dl=Xe,vj=function(t){return{type:dl.SCROLL_TO_X,scrollX:t}};Ar.scrollToX=vj;var gj=function(t){return{type:dl.SCROLL_TO_Y,scrollY:t}};Ar.scrollToY=gj;var yj=function(){return{type:dl.SCROLL_START}};Ar.startScroll=yj;var bj=function(){return{type:dl.SCROLL_END}};Ar.stopScroll=bj;var Lb={},_j=Gi,wj=Yi,xj="[object Number]";function Cj(e){return typeof e=="number"||wj(e)&&_j(e)==xj}var Tj=Cj,Sj=Tj;function Ej(e){return Sj(e)&&e!=+e}var Mj=Ej,hr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(d){return typeof d}:t=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(u)}var r=/\//g,n={};function a(u){return n[u]||(n[u]=u.replace(r,"_")),n[u]}function o(u){var c;return t(u)=="object"?c=Object.keys(u).filter(function(d){return u[d]}):c=Array.prototype.slice.call(arguments),c.map(a).join(" ")}var s=o;e.default=s})(hr);var Ib={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,a,o,s,u){s=s||setTimeout,u=u||clearTimeout;var c;function d(){for(var h=arguments.length,m=new Array(h),p=0;p<h;p++)m[p]=arguments[p];d.reset();var g=function(){n.apply(o,m)};g.__SMmeta=n.__SMmeta,c=s(g,a)}return d.reset=function(){u(c)},d}var r=t;e.default=r})(Ib);var En={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n){n||(n="");var a,o=arguments.length;if(o>1)for(var s=1;s<o;s++)a=arguments[s],a&&(n=(n?n+" ":"")+a);return n}var r=t;e.default=r})(En);var bo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(a)}function r(a,o){if(a===o)return!0;if(t(a)!=="object"||a===null||t(o)!=="object"||o===null)return!1;var s=Object.keys(a),u=Object.keys(o);if(s.length!==u.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(o),d=0;d<s.length;d++)if(!c(s[d])||a[s[d]]!==o[s[d]])return!1;return!0}var n=r;e.default=n})(bo);var lf={},Mn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(a){return function(){return a}}function r(){}r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(a){return a};var n=r;e.default=n})(Mn);var $b={},zb={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!1,r,n,a,o,s,u,c,d,h,m,p,g,_,y,w;function E(){if(!t){t=!0;var C=navigator.userAgent,x=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(C),P=/(Mac OS X)|(Windows)|(Linux)/.exec(C);if(g=/\b(iPhone|iP[ao]d)/.exec(C),_=/\b(iP[ao]d)/.exec(C),m=/Android/i.exec(C),y=/FBAN\/\w+;/i.exec(C),w=/Mobile/i.exec(C),p=!!/Win64/.exec(C),x){r=x[1]?parseFloat(x[1]):x[5]?parseFloat(x[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var R=/(?:Trident\/(\d+.\d+))/.exec(C);u=R?parseFloat(R[1])+4:r,n=x[2]?parseFloat(x[2]):NaN,a=x[3]?parseFloat(x[3]):NaN,o=x[4]?parseFloat(x[4]):NaN,o?(x=/(?:Chrome\/(\d+\.\d+))/.exec(C),s=x&&x[1]?parseFloat(x[1]):NaN):s=NaN}else r=n=a=s=o=NaN;if(P){if(P[1]){var D=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(C);c=D?parseFloat(D[1].replace("_",".")):!0}else c=!1;d=!!P[2],h=!!P[3]}else c=d=h=!1}}var S={ie:function(){return E()||r},ieCompatibilityMode:function(){return E()||u>r},ie64:function(){return S.ie()&&p},firefox:function(){return E()||n},opera:function(){return E()||a},webkit:function(){return E()||o},safari:function(){return S.webkit()},chrome:function(){return E()||s},windows:function(){return E()||d},osx:function(){return E()||c},linux:function(){return E()||h},iphone:function(){return E()||g},mobile:function(){return E()||g||_||m||w},nativeApp:function(){return E()||y},android:function(){return E()||m},ipad:function(){return E()||_}},T=S;e.default=T})(zb);var Fb={},uf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t},n=r;e.default=n})(uf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(uf);function r(s){return s&&s.__esModule?s:{default:s}}var n;t.default.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
243
+ * Checks if an event is supported in the current execution environment.
244
+ *
245
+ * NOTE: This will not work correctly for non-generic events such as `change`,
246
+ * `reset`, `load`, `error`, and `select`.
247
+ *
248
+ * Borrows from Modernizr.
249
+ *
250
+ * @param {string} eventNameSuffix Event name, e.g. "click".
251
+ * @param {?boolean} capture Check if the capture phase is supported.
252
+ * @return {boolean} True if the event is supported.
253
+ * @internal
254
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
255
+ */function a(s,u){if(!t.default.canUseDOM||u&&!("addEventListener"in document))return!1;var c="on"+s,d=c in document;if(!d){var h=document.createElement("div");h.setAttribute(c,"return;"),d=typeof h[c]=="function"}return!d&&n&&s==="wheel"&&(d=document.implementation.hasFeature("Events.wheel","3.0")),d}var o=a;e.default=o})(Fb);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(zb),r=n(Fb);function n(d){return d&&d.__esModule?d:{default:d}}var a=10,o=40,s=800;function u(d){var h=0,m=0,p=0,g=0;return"detail"in d&&(m=d.detail),"wheelDelta"in d&&(m=-d.wheelDelta/120),"wheelDeltaY"in d&&(m=-d.wheelDeltaY/120),"wheelDeltaX"in d&&(h=-d.wheelDeltaX/120),"axis"in d&&d.axis===d.HORIZONTAL_AXIS&&(h=m,m=0),p=h*a,g=m*a,"deltaY"in d&&(g=d.deltaY),"deltaX"in d&&(p=d.deltaX),(p||g)&&d.deltaMode&&(d.deltaMode==1?(p*=o,g*=o):(p*=s,g*=s)),p&&!h&&(h=p<1?-1:1),g&&!m&&(m=g<1?-1:1),{spinX:h,spinY:m,pixelX:p,pixelY:g}}u.getEventType=function(){return t.default.firefox()?"DOMMouseScroll":(0,r.default)("wheel")?"wheel":"mousewheel"};var c=u;e.default=c})($b);var fl={},Wb={},Qi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof O.commonjsGlobal!="undefined"?O.commonjsGlobal:typeof self!="undefined"?self:{},r=t;e.default=r})(Qi);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Qi);function r(o){return o&&o.__esModule?o:{default:o}}var n=t.default.requestAnimationFrame||t.default.webkitRequestAnimationFrame||t.default.mozRequestAnimationFrame||t.default.oRequestAnimationFrame||t.default.msRequestAnimationFrame,a=n;e.default=a})(Wb);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Mn),r=a(Wb),n=a(Qi);function a(c){return c&&c.__esModule?c:{default:c}}var o=0,s=r.default||function(c){var d=Date.now(),h=Math.max(0,16-(d-o));return o=d+h,n.default.setTimeout(function(){c(Date.now())},h)};s(t.default);var u=s;e.default=u})(fl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Mn),r=a($b),n=a(fl);function a(h){return h&&h.__esModule?h:{default:h}}function o(h,m){if(!(h instanceof m))throw new TypeError("Cannot call a class as a function")}function s(h,m){for(var p=0;p<m.length;p++){var g=m[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function u(h,m,p){return m&&s(h.prototype,m),p&&s(h,p),h}var c=function(){function h(m,p,g,_,y,w){o(this,h),this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=this._didWheel.bind(this),this._rootRef=null,typeof p!="function"&&(p=p?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof g!="function"&&(g=g?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=p,this._handleScrollY=g,this._preventDefault=y,this._stopPropagation=w,this._onWheelCallback=m,this.onWheel=this.onWheel.bind(this),this._isRTL=_}return u(h,[{key:"onWheel",value:function(p){this._preventDefault&&p.preventDefault();var g=(0,r.default)(p);p.shiftKey&&h._allowInternalAxesSwap()?g=h._swapNormalizedWheelAxis(g):p.shiftKey||(g.pixelX*=this._isRTL?-1:1);var _=this._deltaX+g.pixelX,y=this._deltaY+g.pixelY,w=this._handleScrollX(_,y),E=this._handleScrollY(y,_);if(!(!w&&!E)&&!(this._rootRef&&!this._contains(p.target))){this._deltaX+=w?g.pixelX:0,this._deltaY+=E?g.pixelY:0,p.defaultPrevented||p.preventDefault();var S;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&p.stopPropagation(),S=!0),S===!0&&this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didWheel))}}},{key:"setRoot",value:function(p){this._rootRef=p}},{key:"_didWheel",value:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_contains",value:function(p){for(var g=p;g!=document.body;){if(g===this._rootRef)return!0;g=g.parentNode}return!1}}],[{key:"_swapNormalizedWheelAxis",value:function(p){return{spinX:p.spinY,spinY:p.spinX,pixelX:p.pixelY,pixelY:p.pixelX}}},{key:"_allowInternalAxesSwap",value:function(){return navigator.platform!=="MacIntel"}}]),h}(),d=c;e.default=d})(lf);var jb={},ti={},Es="NOT_FOUND";function Pj(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:Es},put:function(n,a){t={key:n,value:a}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function Rj(e,t){var r=[];function n(u){var c=r.findIndex(function(h){return t(u,h.key)});if(c>-1){var d=r[c];return c>0&&(r.splice(c,1),r.unshift(d)),d.value}return Es}function a(u,c){n(u)===Es&&(r.unshift({key:u,value:c}),r.length>e&&r.pop())}function o(){return r}function s(){r=[]}return{get:n,put:a,getEntries:o,clear:s}}var Bb=function(t,r){return t===r};function Oj(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var a=r.length,o=0;o<a;o++)if(!e(r[o],n[o]))return!1;return!0}}function Hb(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,a=n===void 0?Bb:n,o=r.maxSize,s=o===void 0?1:o,u=r.resultEqualityCheck,c=Oj(a),d=s===1?Pj(c):Rj(s,c);function h(){var m=d.get(arguments);if(m===Es){if(m=e.apply(null,arguments),u){var p=d.getEntries(),g=p.find(function(_){return u(_.value,m)});g&&(m=g.value)}d.put(arguments,m)}return m}return h.clearCache=function(){return d.clear()},h}function kj(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(n){return typeof n=="function"})){var r=t.map(function(n){return typeof n=="function"?"function "+(n.name||"unnamed")+"()":typeof n}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function Vb(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var d=0,h,m={memoizeOptions:void 0},p=u.pop();if(typeof p=="object"&&(m=p,p=u.pop()),typeof p!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof p+"]");var g=m,_=g.memoizeOptions,y=_===void 0?r:_,w=Array.isArray(y)?y:[y],E=kj(u),S=e.apply(void 0,[function(){return d++,p.apply(null,arguments)}].concat(w)),T=e(function(){for(var x=[],P=E.length,R=0;R<P;R++)x.push(E[R].apply(null,arguments));return h=S.apply(null,x),h});return Object.assign(T,{resultFunc:p,memoizedResultFunc:S,dependencies:E,lastResult:function(){return h},recomputations:function(){return d},resetRecomputations:function(){return d=0}}),T};return a}var Ub=Vb(Hb),Nj=function(t,r){if(r===void 0&&(r=Ub),typeof t!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof t));var n=Object.keys(t),a=r(n.map(function(o){return t[o]}),function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];return s.reduce(function(c,d,h){return c[n[h]]=d,c},{})});return a};const Dj=Object.freeze(Object.defineProperty({__proto__:null,createSelector:Ub,createSelectorCreator:Vb,createStructuredSelector:Nj,defaultEqualityCheck:Bb,defaultMemoize:Hb},Symbol.toStringTag,{value:"Module"})),Aj=O.getAugmentedNamespace(Dj);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Aj,r=n(bo);function n(o){return o&&o.__esModule?o:{default:o}}var a=(0,t.createSelectorCreator)(t.defaultMemoize,r.default);e.default=a})(ti);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ti);function r(o){return o&&o.__esModule?o:{default:o}}function n(o,s,u){var c=1,d=1,h=o+2,m=o+1,p=2;return s&&(d++,m++,h++,p++),u&&m++,{ariaGroupHeaderIndex:c,ariaHeaderIndex:d,ariaFooterIndex:h,ariaRowCount:m,ariaRowIndexOffset:p}}var a=(0,t.default)([function(o){return o.rowsCount},function(o){return o.groupHeaderHeight>0},function(o){return o.footerHeight>0}],n);e.default=a})(jb);var qb={};function Lj(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ij=Lj;function $j(e){return function(t,r,n){for(var a=-1,o=Object(t),s=n(t),u=s.length;u--;){var c=s[e?u:++a];if(r(o[c],c,o)===!1)break}return t}}var zj=$j,Fj=zj,Wj=Fj(),jj=Wj;function Bj(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Hj=Bj,Lc={exports:{}};function Vj(){return!1}var Uj=Vj;(function(e,t){var r=en,n=Uj,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s?r.Buffer:void 0,c=u?u.isBuffer:void 0,d=c||n;e.exports=d})(Lc,Lc.exports);var cf=Lc.exports,qj=Gi,Gj=af,Yj=Yi,Xj="[object Arguments]",Zj="[object Array]",Kj="[object Boolean]",Qj="[object Date]",Jj="[object Error]",eB="[object Function]",tB="[object Map]",rB="[object Number]",nB="[object Object]",iB="[object RegExp]",aB="[object Set]",oB="[object String]",sB="[object WeakMap]",lB="[object ArrayBuffer]",uB="[object DataView]",cB="[object Float32Array]",dB="[object Float64Array]",fB="[object Int8Array]",hB="[object Int16Array]",pB="[object Int32Array]",mB="[object Uint8Array]",vB="[object Uint8ClampedArray]",gB="[object Uint16Array]",yB="[object Uint32Array]",Ye={};Ye[cB]=Ye[dB]=Ye[fB]=Ye[hB]=Ye[pB]=Ye[mB]=Ye[vB]=Ye[gB]=Ye[yB]=!0;Ye[Xj]=Ye[Zj]=Ye[lB]=Ye[Kj]=Ye[uB]=Ye[Qj]=Ye[Jj]=Ye[eB]=Ye[tB]=Ye[rB]=Ye[nB]=Ye[iB]=Ye[aB]=Ye[oB]=Ye[sB]=!1;function bB(e){return Yj(e)&&Gj(e.length)&&!!Ye[qj(e)]}var _B=bB;function wB(e){return function(t){return e(t)}}var xB=wB,Ic={exports:{}};(function(e,t){var r=Cb,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,s=o&&r.process,u=function(){try{var c=a&&a.require&&a.require("util").types;return c||s&&s.binding&&s.binding("util")}catch(d){}}();e.exports=u})(Ic,Ic.exports);var CB=Ic.exports,TB=_B,SB=xB,Wm=CB,jm=Wm&&Wm.isTypedArray,EB=jm?SB(jm):TB,df=EB,MB=Hj,PB=ul,RB=Zt,OB=cf,kB=nf,NB=df,DB=Object.prototype,AB=DB.hasOwnProperty;function LB(e,t){var r=RB(e),n=!r&&PB(e),a=!r&&!n&&OB(e),o=!r&&!n&&!a&&NB(e),s=r||n||a||o,u=s?MB(e.length,String):[],c=u.length;for(var d in e)(t||AB.call(e,d))&&!(s&&(d=="length"||a&&(d=="offset"||d=="parent")||o&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||kB(d,c)))&&u.push(d);return u}var IB=LB,$B=Object.prototype;function zB(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||$B;return e===r}var Gb=zB;function FB(e,t){return function(r){return e(t(r))}}var WB=FB,jB=WB,BB=jB(Object.keys,Object),HB=BB,VB=Gb,UB=HB,qB=Object.prototype,GB=qB.hasOwnProperty;function YB(e){if(!VB(e))return UB(e);var t=[];for(var r in Object(e))GB.call(e,r)&&r!="constructor"&&t.push(r);return t}var Yb=YB,XB=Sb,ZB=af;function KB(e){return e!=null&&ZB(e.length)&&!XB(e)}var hl=KB,QB=IB,JB=Yb,eH=hl;function tH(e){return eH(e)?QB(e):JB(e)}var ff=tH,rH=jj,nH=ff;function iH(e,t){return e&&rH(e,t,nH)}var aH=iH,oH=hl;function sH(e,t){return function(r,n){if(r==null)return r;if(!oH(r))return e(r,n);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&n(s[o],o,s)!==!1;);return r}}var lH=sH,uH=aH,cH=lH,dH=cH(uH),hf=dH,fH=of;function hH(e){return typeof e=="function"?e:fH}var pH=hH,mH=Ij,vH=hf,gH=pH,yH=Zt;function bH(e,t){var r=yH(e)?mH:vH;return r(e,gH(t))}var pf=bH,mf={},_H=ol;function wH(){this.__data__=new _H,this.size=0}var xH=wH;function CH(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var TH=CH;function SH(e){return this.__data__.get(e)}var EH=SH;function MH(e){return this.__data__.has(e)}var PH=MH,RH=ol,OH=Jd,kH=ef,NH=200;function DH(e,t){var r=this.__data__;if(r instanceof RH){var n=r.__data__;if(!OH||n.length<NH-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new kH(n)}return r.set(e,t),this.size=r.size,this}var AH=DH,LH=ol,IH=xH,$H=TH,zH=EH,FH=PH,WH=AH;function Ji(e){var t=this.__data__=new LH(e);this.size=t.size}Ji.prototype.clear=IH;Ji.prototype.delete=$H;Ji.prototype.get=zH;Ji.prototype.has=FH;Ji.prototype.set=WH;var Xb=Ji,jH="__lodash_hash_undefined__";function BH(e){return this.__data__.set(e,jH),this}var HH=BH;function VH(e){return this.__data__.has(e)}var UH=VH,qH=ef,GH=HH,YH=UH;function Ms(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new qH;++t<r;)this.add(e[t])}Ms.prototype.add=Ms.prototype.push=GH;Ms.prototype.has=YH;var XH=Ms;function ZH(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var KH=ZH;function QH(e,t){return e.has(t)}var JH=QH,eV=XH,tV=KH,rV=JH,nV=1,iV=2;function aV(e,t,r,n,a,o){var s=r&nV,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var m=-1,p=!0,g=r&iV?new eV:void 0;for(o.set(e,t),o.set(t,e);++m<u;){var _=e[m],y=t[m];if(n)var w=s?n(y,_,m,t,e,o):n(_,y,m,e,t,o);if(w!==void 0){if(w)continue;p=!1;break}if(g){if(!tV(t,function(E,S){if(!rV(g,S)&&(_===E||a(_,E,r,n,o)))return g.push(S)})){p=!1;break}}else if(!(_===y||a(_,y,r,n,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var Zb=aV,oV=en,sV=oV.Uint8Array,lV=sV;function uV(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}var cV=uV;function dV(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var fV=dV,Bm=vo,Hm=lV,hV=Qd,pV=Zb,mV=cV,vV=fV,gV=1,yV=2,bV="[object Boolean]",_V="[object Date]",wV="[object Error]",xV="[object Map]",CV="[object Number]",TV="[object RegExp]",SV="[object Set]",EV="[object String]",MV="[object Symbol]",PV="[object ArrayBuffer]",RV="[object DataView]",Vm=Bm?Bm.prototype:void 0,Su=Vm?Vm.valueOf:void 0;function OV(e,t,r,n,a,o,s){switch(r){case RV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case PV:return!(e.byteLength!=t.byteLength||!o(new Hm(e),new Hm(t)));case bV:case _V:case CV:return hV(+e,+t);case wV:return e.name==t.name&&e.message==t.message;case TV:case EV:return e==t+"";case xV:var u=mV;case SV:var c=n&gV;if(u||(u=vV),e.size!=t.size&&!c)return!1;var d=s.get(e);if(d)return d==t;n|=yV,s.set(e,t);var h=pV(u(e),u(t),n,a,o,s);return s.delete(e),h;case MV:if(Su)return Su.call(e)==Su.call(t)}return!1}var kV=OV,NV=Db,DV=Zt;function AV(e,t,r){var n=t(e);return DV(e)?n:NV(n,r(e))}var LV=AV;function IV(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[a++]=s)}return o}var $V=IV;function zV(){return[]}var FV=zV,WV=$V,jV=FV,BV=Object.prototype,HV=BV.propertyIsEnumerable,Um=Object.getOwnPropertySymbols,VV=Um?function(e){return e==null?[]:(e=Object(e),WV(Um(e),function(t){return HV.call(e,t)}))}:jV,UV=VV,qV=LV,GV=UV,YV=ff;function XV(e){return qV(e,YV,GV)}var ZV=XV,qm=ZV,KV=1,QV=Object.prototype,JV=QV.hasOwnProperty;function e6(e,t,r,n,a,o){var s=r&KV,u=qm(e),c=u.length,d=qm(t),h=d.length;if(c!=h&&!s)return!1;for(var m=c;m--;){var p=u[m];if(!(s?p in t:JV.call(t,p)))return!1}var g=o.get(e),_=o.get(t);if(g&&_)return g==t&&_==e;var y=!0;o.set(e,t),o.set(t,e);for(var w=s;++m<c;){p=u[m];var E=e[p],S=t[p];if(n)var T=s?n(S,E,p,t,e,o):n(E,S,p,e,t,o);if(!(T===void 0?E===S||a(E,S,r,n,o):T)){y=!1;break}w||(w=p=="constructor")}if(y&&!w){var C=e.constructor,x=t.constructor;C!=x&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof x=="function"&&x instanceof x)&&(y=!1)}return o.delete(e),o.delete(t),y}var t6=e6,r6=ei,n6=en,i6=r6(n6,"DataView"),a6=i6,o6=ei,s6=en,l6=o6(s6,"Promise"),u6=l6,c6=ei,d6=en,f6=c6(d6,"Set"),h6=f6,p6=ei,m6=en,v6=p6(m6,"WeakMap"),g6=v6,$c=a6,zc=Jd,Fc=u6,Wc=h6,jc=g6,Kb=Gi,ea=Eb,Gm="[object Map]",y6="[object Object]",Ym="[object Promise]",Xm="[object Set]",Zm="[object WeakMap]",Km="[object DataView]",b6=ea($c),_6=ea(zc),w6=ea(Fc),x6=ea(Wc),C6=ea(jc),Hn=Kb;($c&&Hn(new $c(new ArrayBuffer(1)))!=Km||zc&&Hn(new zc)!=Gm||Fc&&Hn(Fc.resolve())!=Ym||Wc&&Hn(new Wc)!=Xm||jc&&Hn(new jc)!=Zm)&&(Hn=function(e){var t=Kb(e),r=t==y6?e.constructor:void 0,n=r?ea(r):"";if(n)switch(n){case b6:return Km;case _6:return Gm;case w6:return Ym;case x6:return Xm;case C6:return Zm}return t});var Qb=Hn,Eu=Xb,T6=Zb,S6=kV,E6=t6,Qm=Qb,Jm=Zt,ev=cf,M6=df,P6=1,tv="[object Arguments]",rv="[object Array]",es="[object Object]",R6=Object.prototype,nv=R6.hasOwnProperty;function O6(e,t,r,n,a,o){var s=Jm(e),u=Jm(t),c=s?rv:Qm(e),d=u?rv:Qm(t);c=c==tv?es:c,d=d==tv?es:d;var h=c==es,m=d==es,p=c==d;if(p&&ev(e)){if(!ev(t))return!1;s=!0,h=!1}if(p&&!h)return o||(o=new Eu),s||M6(e)?T6(e,t,r,n,a,o):S6(e,t,c,r,n,a,o);if(!(r&P6)){var g=h&&nv.call(e,"__wrapped__"),_=m&&nv.call(t,"__wrapped__");if(g||_){var y=g?e.value():e,w=_?t.value():t;return o||(o=new Eu),a(y,w,r,n,o)}}return p?(o||(o=new Eu),E6(e,t,r,n,a,o)):!1}var k6=O6,N6=k6,iv=Yi;function Jb(e,t,r,n,a){return e===t?!0:e==null||t==null||!iv(e)&&!iv(t)?e!==e&&t!==t:N6(e,t,r,n,Jb,a)}var e_=Jb,D6=Xb,A6=e_,L6=1,I6=2;function $6(e,t,r,n){var a=r.length,o=a,s=!n;if(e==null)return!o;for(e=Object(e);a--;){var u=r[a];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<o;){u=r[a];var c=u[0],d=e[c],h=u[1];if(s&&u[2]){if(d===void 0&&!(c in e))return!1}else{var m=new D6;if(n)var p=n(d,h,c,e,t,m);if(!(p===void 0?A6(h,d,L6|I6,n,m):p))return!1}}return!0}var z6=$6,F6=go;function W6(e){return e===e&&!F6(e)}var t_=W6,j6=t_,B6=ff;function H6(e){for(var t=B6(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,j6(a)]}return t}var V6=H6;function U6(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var r_=U6,q6=z6,G6=V6,Y6=r_;function X6(e){var t=G6(e);return t.length==1&&t[0][2]?Y6(t[0][0],t[0][1]):function(r){return r===e||q6(r,e,t)}}var Z6=X6,K6=rf;function Q6(e,t,r){var n=e==null?void 0:K6(e,t);return n===void 0?r:n}var J6=Q6,e8=e_,t8=J6,r8=Nb,n8=Kd,i8=t_,a8=r_,o8=yo,s8=1,l8=2;function u8(e,t){return n8(e)&&i8(t)?a8(o8(e),t):function(r){var n=t8(r,e);return n===void 0&&n===t?r8(r,e):e8(t,n,s8|l8)}}var c8=u8;function d8(e){return function(t){return t==null?void 0:t[e]}}var f8=d8,h8=rf;function p8(e){return function(t){return h8(t,e)}}var m8=p8,v8=f8,g8=m8,y8=Kd,b8=yo;function _8(e){return y8(e)?v8(b8(e)):g8(e)}var w8=_8,x8=Z6,C8=c8,T8=of,S8=Zt,E8=w8;function M8(e){return typeof e=="function"?e:e==null?T8:typeof e=="object"?S8(e)?C8(e[0],e[1]):x8(e):E8(e)}var n_=M8,P8=hf,R8=hl;function O8(e,t){var r=-1,n=R8(e)?Array(e.length):[];return P8(e,function(a,o,s){n[++r]=t(a,o,s)}),n}var k8=O8,N8=Pb,D8=n_,A8=k8,L8=Zt;function I8(e,t){var r=L8(e)?N8:A8;return r(e,D8(t))}var i_=I8,Pn={};function $8(e,t,r,n){var a=-1,o=e==null?0:e.length;for(n&&o&&(r=e[++a]);++a<o;)r=t(r,e[a],a,e);return r}var z8=$8;function F8(e,t,r,n,a){return a(e,function(o,s,u){r=n?(n=!1,o):t(r,o,s,u)}),r}var W8=F8,j8=z8,B8=hf,H8=n_,V8=W8,U8=Zt;function q8(e,t,r){var n=U8(e)?j8:V8,a=arguments.length<3;return n(e,H8(t),r,a,B8)}var G8=q8;Object.defineProperty(Pn,"__esModule",{value:!0});Pn.sumPropWidths=X8;Pn.getTotalWidth=Z8;Pn.getTotalFlexGrow=K8;var vf=Y8(G8);function Y8(e){return e&&e.__esModule?e:{default:e}}function X8(e){return(0,vf.default)(e,function(t,r){return t+r.props.width},0)}function Z8(e){return(0,vf.default)(e,function(t,r){return t+r.width},0)}function K8(e){return(0,vf.default)(e,function(t,r){return t+(r.flexGrow||0)},0)}var ta={},pl={},ml={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,a,o){return n<a?a:n>o?o:n}var r=t;e.default=r})(ml);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ScrollbarState=void 0;var t=a(ml),r=a(ti),n=Pn;function a(g){return g&&g.__esModule?g:{default:g}}var o=1,s=3,u=6,c={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};e.ScrollbarState=c;function d(g,_,y,w,E,S,T){var C=_.cellGroupWrapperHeight,x=_.footerHeight,P=_.headerHeight,R=_.groupHeaderHeight,D=C?0:2*o,A=x+P+R+D,I=E.height,N=E.maxHeight,k=E.useMaxHeight,W=E.width,j=Math.round(k?N:I),$=j-A,B=h(g,w,W,T),G=$,q=$;switch(B){case c.VISIBLE:{G-=S,q-=S;break}case c.JOINT_SCROLLBARS:{G-=S;break}}return{bufferRowCount:m(q,y),minAvailableHeight:Math.max(G,0),maxAvailableHeight:Math.max(q,0),reservedHeight:A,scrollStateX:B}}function h(g,_,y,w){var E=_.overflowX,S=_.showScrollbarX,T=(0,n.getTotalWidth)(g);return E==="hidden"||S===!1?c.HIDDEN:T>y?c.VISIBLE:T>y-w?c.JOINT_SCROLLBARS:c.HIDDEN}function m(g,_){var y=_.bufferRowCount,w=_.rowHeight,E=_.subRowHeight;if(y!==void 0)return console.log("buffer set: "+y),y;var S=w+E,T=Math.ceil(g/S)+1;return(0,t.default)(Math.floor(T/2),s,u)}var p=(0,r.default)([function(g){return g.columnProps},function(g){return g.elementHeights},function(g){return g.rowSettings},function(g){return g.scrollFlags},function(g){return g.tableSize},function(g){return g.scrollbarXHeight},function(g){return g.scrollbarYWidth}],d);e.default=p})(pl);(function(e){function t(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(m){return typeof m}:t=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(d)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(ti),n=o(pl);function a(d){if(typeof WeakMap!="function")return null;var h=new WeakMap,m=new WeakMap;return(a=function(g){return g?m:h})(d)}function o(d,h){if(d&&d.__esModule)return d;if(d===null||t(d)!=="object"&&typeof d!="function")return{default:d};var m=a(h);if(m&&m.has(d))return m.get(d);var p={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in d)if(_!=="default"&&Object.prototype.hasOwnProperty.call(d,_)){var y=g?Object.getOwnPropertyDescriptor(d,_):null;y&&(y.get||y.set)?Object.defineProperty(p,_,y):p[_]=d[_]}return p.default=d,m&&m.set(d,p),p}function s(d){return d&&d.__esModule?d:{default:d}}function u(d,h,m){var p=m.overflowY,g=m.showScrollbarY,_=p!=="hidden"&&g!==!1,y=d.minAvailableHeight,w=d.maxAvailableHeight,E=d.scrollStateX,S=!1,T=!1;E===n.ScrollbarState.VISIBLE&&(T=!0),_&&h>w&&(S=!0),S&&E===n.ScrollbarState.JOINT_SCROLLBARS&&(T=!0);var C=w;return T&&(C=y),{availableHeight:C,scrollEnabledX:T,scrollEnabledY:S}}var c=(0,r.default)([n.default,function(d){return d.scrollContentHeight},function(d){return d.scrollFlags}],u);e.default=c})(ta);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(pf),r=s(i_),n=s(ti),a=Pn,o=s(ta);function s(p){return p&&p.__esModule?p:{default:p}}function u(){return u=Object.assign||function(p){for(var g=1;g<arguments.length;g++){var _=arguments[g];for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&(p[y]=_[y])}return p},u.apply(this,arguments)}function c(p,g,_,y,w){var E=_?w:0,S=y-E,T=d(p,g,S),C=T.newColumnGroupProps,x=T.newColumnProps,P=h(x),R=P.fixedColumns,D=P.fixedRightColumns,A=P.scrollableColumns,I=S-(0,a.getTotalWidth)(R)-(0,a.getTotalWidth)(D),N=Math.max(0,(0,a.getTotalWidth)(x)-S);return{columnGroupProps:C,columnProps:x,availableScrollWidth:I,fixedColumns:R,fixedRightColumns:D,scrollableColumns:A,maxScrollX:N}}function d(p,g,_){var y=g,w=(0,a.getTotalFlexGrow)(g);if(w!==0){var E=(0,a.getTotalWidth)(g),S=Math.max(_-E,0);y=(0,r.default)(g,function(x){var P=x.flexGrow;if(!P)return x;var R=Math.floor(P*S/w),D=x.width+R;return w-=P,S-=R,u({},x,{width:D})})}var T=(0,r.default)(p,function(){return 0});(0,t.default)(y,function(x){x.groupIdx!==void 0&&(T[x.groupIdx]+=x.width)});var C=(0,r.default)(p,function(x,P){return T[P]===x.width?x:u({},x,{width:T[P]})});return{newColumnGroupProps:C,newColumnProps:y}}function h(p){var g=[],_=[],y=[];return(0,t.default)(p,function(w){var E=y;w.fixed?E=g:w.fixedRight&&(E=_),E.push(w)}),{fixedColumns:g,fixedRightColumns:_,scrollableColumns:y}}var m=(0,n.default)([function(p){return p.columnGroupProps},function(p){return p.columnProps},function(p){return(0,o.default)(p).scrollEnabledY},function(p){return p.tableSize.width},function(p){return p.scrollbarYWidth}],c);e.default=m})(mf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(pf),r=a(ti),n=a(mf);function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c){var d=u.columnGroupProps,h=u.columnProps,m=[],p=[],g=[];(0,t.default)(d,function(E,S){var T={props:E,template:c.groupHeader[S]};E.fixed?m.push(T):E.fixedRight?p.push(T):g.push(T)});var _={cell:[],header:[],footer:[]},y={cell:[],header:[],footer:[]},w={cell:[],header:[],footer:[]};return(0,t.default)(h,function(E,S){var T=w;E.fixed?T=_:E.fixedRight&&(T=y),T.cell.push({props:E,template:c.cell[S]}),T.header.push({props:E,template:c.header[S]}),T.footer.push({props:E,template:c.footer[S]})}),{fixedColumnGroups:m,fixedColumns:_,fixedRightColumnGroups:p,fixedRightColumns:y,scrollableColumnGroups:g,scrollableColumns:w}}var s=(0,r.default)([function(u){return(0,n.default)(u)},function(u){return u.elementTemplates}],o);e.default=s})(qb);var gf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(ti),r=a(pl),n=a(ta);function a(u){return u&&u.__esModule?u:{default:u}}function o(u,c,d,h,m,p,g){var _=m.availableHeight,y=m.scrollEnabledX,w=d;y&&(w+=g);var E=Math.min(_,h),S=p?E:_,T=S+w,C=S;c<T&&(C=c-w);var x=p?h:Math.max(h,_),P=x+w;c&&(P=Math.max(c,P));var R=u.footerHeight,D=u.groupHeaderHeight,A=u.headerHeight,I=D+A,N=I+C,k=N+R,W=Math.max(0,N-I);return{bodyHeight:E,bodyOffsetTop:I,componentHeight:T,contentHeight:P,footOffsetTop:N,scrollbarXOffsetTop:k,scrollbarYHeight:W,visibleRowsHeight:C}}var s=(0,t.default)([function(u){return u.elementHeights},function(u){return u.tableSize.ownerHeight},function(u){return(0,r.default)(u).reservedHeight},function(u){return u.scrollContentHeight},n.default,function(u){return u.tableSize.useMaxHeight},function(u){return u.scrollbarXHeight}],o);e.default=s})(gf);var a_={},vl={},o_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Mn);function r(o){return o&&o.__esModule?o:{default:o}}var n={listen:function(s,u,c){if(s.addEventListener)return s.addEventListener(u,c,!1),{remove:function(){s.removeEventListener(u,c,!1)}};if(s.attachEvent)return s.attachEvent("on"+u,c),{remove:function(){s.detachEvent("on"+u,c)}}},capture:function(s,u,c){return s.addEventListener?(s.addEventListener(u,c,!0),{remove:function(){s.removeEventListener(u,c,!0)}}):(process.env.NODE_ENV!=="production"&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:t.default})},registerDefault:function(){}},a=n;e.default=a})(o_);var s_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Qi);function r(o){return o&&o.__esModule?o:{default:o}}var n=t.default.cancelAnimationFrame||t.default.webkitCancelAnimationFrame||t.default.mozCancelAnimationFrame||t.default.oCancelAnimationFrame||t.default.msCancelAnimationFrame||t.default.clearTimeout,a=n;e.default=a})(s_);var gl={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(a){var o=0,s=0;if(!a.clientX||!a.clientY){if(a.touches&&a.touches.length>0){var u=a.touches[0];o=u.clientX,s=u.clientY}}else o=a.clientX,s=a.clientY;return{x:o,y:s}}var r={getCoordinatesFromEvent:t},n=r;e.default=n})(gl);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(o_),r=o(s_),n=o(fl),a=o(gl);function o(m){return m&&m.__esModule?m:{default:m}}function s(m,p){if(!(m instanceof p))throw new TypeError("Cannot call a class as a function")}function u(m,p){for(var g=0;g<p.length;g++){var _=p[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,p,g){return p&&u(m.prototype,p),m}var d=function(){function m(p,g,_,y){s(this,m),this._isDragging=!1,this._isTouchEnabled=y,this._animationFrameID=null,this._domNode=_,this._onMove=p,this._onMoveEnd=g,this._onMouseEnd=this._onMouseEnd.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._didMouseMove=this._didMouseMove.bind(this)}return c(m,[{key:"captureMouseMoves",value:function(g){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=t.default.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=t.default.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=t.default.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=t.default.listen(this._domNode,"touchstart",this._onMouseMove),this._eventTouchMoveToken=t.default.listen(this._domNode,"touchmove",this._onMouseMove),this._eventTouchEndToken=t.default.listen(this._domNode,"touchend",this._onMouseUp)),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var _=a.default.getCoordinatesFromEvent(g),y=_.x,w=_.y;this._x=y,this._y=w}g.preventDefault()}},{key:"releaseMouseMoves",value:function(){this._eventMoveToken&&this._eventUpToken&&this._eventLeaveToken&&(this._eventMoveToken.remove(),this._eventMoveToken=null,this._eventUpToken.remove(),this._eventUpToken=null,this._eventLeaveToken.remove(),this._eventLeaveToken=null),this._isTouchEnabled&&this._eventTouchStartToken&&this._eventTouchMoveToken&&this._eventTouchEndToken&&(this._eventTouchStartToken.remove(),this._eventTouchStartToken=null,this._eventTouchMoveToken.remove(),this._eventTouchMoveToken=null,this._eventTouchEndToken.remove(),this._eventTouchEndToken=null),this._animationFrameID!==null&&((0,r.default)(this._animationFrameID),this._animationFrameID=null),this._isDragging&&(this._isDragging=!1,this._x=null,this._y=null)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"_onMouseMove",value:function(g){var _=a.default.getCoordinatesFromEvent(g),y=_.x,w=_.y;this._deltaX+=y-this._x,this._deltaY+=w-this._y,this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didMouseMove)),this._x=y,this._y=w,g.preventDefault()}},{key:"_didMouseMove",value:function(){this._animationFrameID=null,this._onMove(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_onMouseUp",value:function(){this._animationFrameID&&this._didMouseMove(),this._onMoveEnd(!1)}},{key:"_onMouseEnd",value:function(){this._onMoveEnd(!0)}}]),m}(),h=d;e.default=h})(vl);(function(e){function t(x){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(x)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(Q),n=u(Vt),a=u(ml),o=u(hr),s=u(vl);function u(x){return x&&x.__esModule?x:{default:x}}function c(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}function d(x,P){for(var R=0;R<P.length;R++){var D=P[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}function h(x,P,R){return P&&d(x.prototype,P),x}function m(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(P&&P.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),P&&p(x,P)}function p(x,P){return p=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},p(x,P)}function g(x){var P=w();return function(){var D=E(x),A;if(P){var I=E(this).constructor;A=Reflect.construct(D,arguments,I)}else A=D.apply(this,arguments);return _(this,A)}}function _(x,P){return P&&(t(P)==="object"||typeof P=="function")?P:y(x)}function y(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function w(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(x){return!1}}function E(x){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},E(x)}function S(x,P,R){return P in x?Object.defineProperty(x,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):x[P]=R,x}var T=function(x){m(R,x);var P=g(R);function R(){var D;c(this,R);for(var A=arguments.length,I=new Array(A),N=0;N<A;N++)I[N]=arguments[N];return D=P.call.apply(P,[this].concat(I)),S(y(D),"state",{width:0,cursorDelta:0}),S(y(D),"_onMove",function(k){D.props.isRTL&&(k=-k);var W=D.state.cursorDelta+k,j=(0,a.default)(W,D.props.minWidth,D.props.maxWidth);D.setState({width:j,cursorDelta:W})}),S(y(D),"_onColumnResizeEnd",function(){D._mouseMoveTracker&&D._mouseMoveTracker.releaseMouseMoves(),D.props.onColumnResizeEnd(D.state.width,D.props.columnKey)}),D}return h(R,[{key:"componentDidUpdate",value:function(){this.props.initialEvent&&!this._mouseMoveTracker.isDragging()&&(this._mouseMoveTracker.captureMouseMoves(this.props.initialEvent),this.setState({width:this.props.initialWidth,cursorDelta:this.props.initialWidth}))}},{key:"componentDidMount",value:function(){this._mouseMoveTracker=new s.default(this._onMove,this._onColumnResizeEnd,document.body,this.props.touchEnabled)}},{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var A={width:this.state.width,height:this.props.height};return this.props.isRTL?A.right=this.props.leftOffset:A.left=this.props.leftOffset,r.default.createElement("div",{className:(0,o.default)({"fixedDataTableColumnResizerLineLayout/main":!0,"fixedDataTableColumnResizerLineLayout/hiddenElem":!this.props.visible,"public/fixedDataTableColumnResizerLine/main":!0}),style:A},r.default.createElement("div",{className:(0,o.default)("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}}))}}]),R}(r.default.PureComponent);S(T,"propTypes",{visible:n.default.bool.isRequired,height:n.default.number.isRequired,leftOffset:n.default.number.isRequired,knobHeight:n.default.number.isRequired,initialWidth:n.default.number,minWidth:n.default.number,maxWidth:n.default.number,initialEvent:n.default.object,onColumnResizeEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var C=T;e.default=C})(a_);var l_={};function Q8(e,t){return e==null||e!==e?t:e}var J8=Q8,e7=Math.max,t7=Math.min;function r7(e,t,r){return e>=t7(t,r)&&e<e7(t,r)}var n7=r7,i7=/\s/;function a7(e){for(var t=e.length;t--&&i7.test(e.charAt(t)););return t}var o7=a7,s7=o7,l7=/^\s+/;function u7(e){return e&&e.slice(0,s7(e)+1).replace(l7,"")}var c7=u7,d7=c7,av=go,f7=nl,ov=NaN,h7=/^[-+]0x[0-9a-f]+$/i,p7=/^0b[01]+$/i,m7=/^0o[0-7]+$/i,v7=parseInt;function g7(e){if(typeof e=="number")return e;if(f7(e))return ov;if(av(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=av(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=d7(e);var r=p7.test(e);return r||m7.test(e)?v7(e.slice(2),r?2:8):h7.test(e)?ov:+e}var yf=g7,y7=yf,sv=1/0,b7=17976931348623157e292;function _7(e){if(!e)return e===0?e:0;if(e=y7(e),e===sv||e===-sv){var t=e<0?-1:1;return t*b7}return e===e?e:0}var w7=_7,x7=n7,lv=w7,C7=yf;function T7(e,t,r){return t=lv(t),r===void 0?(r=t,t=0):r=lv(r),e=C7(e),x7(e,t,r)}var S7=T7;function E7(e){return e==null}var u_=E7,bf={},c_={},d_={},_f={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(N){return typeof N}:t=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(Q),n=s(Vt),a=s(hr),o=s(En);function s(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var I=1;I<arguments.length;I++){var N=arguments[I];for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&(A[k]=N[k])}return A},u.apply(this,arguments)}function c(A,I){var N=Object.keys(A);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(A);I&&(k=k.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),N.push.apply(N,k)}return N}function d(A){for(var I=1;I<arguments.length;I++){var N=arguments[I]!=null?arguments[I]:{};I%2?c(Object(N),!0).forEach(function(k){P(A,k,N[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(N)):c(Object(N)).forEach(function(k){Object.defineProperty(A,k,Object.getOwnPropertyDescriptor(N,k))})}return A}function h(A,I){if(A==null)return{};var N=m(A,I),k,W;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(W=0;W<j.length;W++)k=j[W],!(I.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(A,k)&&(N[k]=A[k])}return N}function m(A,I){if(A==null)return{};var N={},k=Object.keys(A),W,j;for(j=0;j<k.length;j++)W=k[j],!(I.indexOf(W)>=0)&&(N[W]=A[W]);return N}function p(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function g(A,I){for(var N=0;N<I.length;N++){var k=I[N];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(A,k.key,k)}}function _(A,I,N){return I&&g(A.prototype,I),A}function y(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),I&&w(A,I)}function w(A,I){return w=Object.setPrototypeOf||function(k,W){return k.__proto__=W,k},w(A,I)}function E(A){var I=C();return function(){var k=x(A),W;if(I){var j=x(this).constructor;W=Reflect.construct(k,arguments,j)}else W=k.apply(this,arguments);return S(this,W)}}function S(A,I){return I&&(t(I)==="object"||typeof I=="function")?I:T(A)}function T(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function C(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}function x(A){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},x(A)}function P(A,I,N){return I in A?Object.defineProperty(A,I,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[I]=N,A}var R=function(A){y(N,A);var I=E(N);function N(){return p(this,N),I.apply(this,arguments)}return _(N,[{key:"render",value:function(){var W=this.props,j=W.height,$=W.width,B=W.style,G=W.className,q=W.children,U=h(W,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),z=d({height:j,width:$},B);return r.default.createElement("div",u({},U,{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap1"),(0,a.default)("public/fixedDataTableCell/wrap1"),G),style:z}),r.default.createElement("div",{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap2"),(0,a.default)("public/fixedDataTableCell/wrap2"))},r.default.createElement("div",{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap3"),(0,a.default)("public/fixedDataTableCell/wrap3"))},r.default.createElement("div",{className:(0,a.default)("public/fixedDataTableCell/cellContent")},q))))}}]),N}(r.default.Component);P(R,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var D=R;e.default=D})(_f);var f_={};(function(e){function t(x){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(x)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(Q),n=u(Vt),a=u(hr),o=u(vl),s=u(gl);function u(x){return x&&x.__esModule?x:{default:x}}function c(x,P){if(!(x instanceof P))throw new TypeError("Cannot call a class as a function")}function d(x,P){for(var R=0;R<P.length;R++){var D=P[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}function h(x,P,R){return P&&d(x.prototype,P),x}function m(x,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(P&&P.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),P&&p(x,P)}function p(x,P){return p=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},p(x,P)}function g(x){var P=w();return function(){var D=E(x),A;if(P){var I=E(this).constructor;A=Reflect.construct(D,arguments,I)}else A=D.apply(this,arguments);return _(this,A)}}function _(x,P){return P&&(t(P)==="object"||typeof P=="function")?P:y(x)}function y(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function w(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(x){return!1}}function E(x){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},E(x)}function S(x,P,R){return P in x?Object.defineProperty(x,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):x[P]=R,x}var T=function(x){m(R,x);var P=g(R);function R(){var D;c(this,R);for(var A=arguments.length,I=new Array(A),N=0;N<A;N++)I[N]=arguments[N];return D=P.call.apply(P,[this].concat(I)),S(y(D),"state",{dragDistance:0}),S(y(D),"onMouseDown",function(k){var W=k.target.getBoundingClientRect(),j=s.default.getCoordinatesFromEvent(k),$=j.x-W.left,B=$+k.target.parentElement.offsetLeft;D._mouseMoveTracker=new o.default(D._onMove,D._onColumnReorderEnd,document.body,D.props.touchEnabled),D._mouseMoveTracker.captureMouseMoves(k),D.setState({dragDistance:0}),D.props.onMouseDown({columnKey:D.props.columnKey,mouseLocation:{dragDistance:0,inElement:$,inColumnGroup:B}}),D._distance=0,D._animating=!0,D.frameId=requestAnimationFrame(D._updateState),D.props.touchEnabled&&k.stopPropagation()}),S(y(D),"_onMove",function(k){D._distance=D.state.dragDistance+k*(D.props.isRTL?-1:1)}),S(y(D),"_onColumnReorderEnd",function(k){D._animating=!1,cancelAnimationFrame(D.frameId),D.frameId=null,D._mouseMoveTracker&&D._mouseMoveTracker.releaseMouseMoves(),D.props.columnReorderingData.cancelReorder=k,D.props.onColumnReorderEnd()}),S(y(D),"_updateState",function(){D._animating&&(D.frameId=requestAnimationFrame(D._updateState)),D.setState({dragDistance:D._distance}),D.props.onColumnReorderMove(D._distance)}),D}return h(R,[{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(cancelAnimationFrame(this.frameId),this.frameId=null,this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var A={height:this.props.height};return r.default.createElement("div",{className:(0,a.default)({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),onMouseDown:this.onMouseDown,onTouchStart:this.props.touchEnabled?this.onMouseDown:null,onTouchEnd:this.props.touchEnabled?function(I){return I.stopPropagation()}:null,onTouchMove:this.props.touchEnabled?function(I){return I.stopPropagation()}:null,style:A})}}]),R}(r.default.PureComponent);S(T,"propTypes",{onColumnReorderEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var C=T;e.default=C})(f_);function h_(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function p_(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function m_(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}h_.__suppressDeprecationWarning=!0;p_.__suppressDeprecationWarning=!0;m_.__suppressDeprecationWarning=!0;function M7(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,a=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?a="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(a="UNSAFE_componentWillUpdate"),r!==null||n!==null||a!==null){var o=e.displayName||e.name,s=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
256
+
257
+ `+o+" uses "+s+" but also contains the following legacy lifecycles:"+(r!==null?`
258
+ `+r:"")+(n!==null?`
259
+ `+n:"")+(a!==null?`
260
+ `+a:"")+`
261
+
262
+ The above lifecycles should be removed. Learn more about this warning here:
263
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=h_,t.componentWillReceiveProps=p_),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=m_;var u=t.componentDidUpdate;t.componentDidUpdate=function(d,h,m){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;u.call(this,d,h,p)}}return e}const P7=Object.freeze(Object.defineProperty({__proto__:null,polyfill:M7},Symbol.toStringTag,{value:"Module"})),v_=O.getAugmentedNamespace(P7);(function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(W){return typeof W}:t=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h(Q),n=h(Vt),a=h(hr),o=h(En),s=h(bo),u=h(_f),c=h(f_),d=v_;function h(N){return N&&N.__esModule?N:{default:N}}function m(){return m=Object.assign||function(N){for(var k=1;k<arguments.length;k++){var W=arguments[k];for(var j in W)Object.prototype.hasOwnProperty.call(W,j)&&(N[j]=W[j])}return N},m.apply(this,arguments)}function p(N,k){if(N==null)return{};var W=g(N,k),j,$;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(N);for($=0;$<B.length;$++)j=B[$],!(k.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(N,j)&&(W[j]=N[j])}return W}function g(N,k){if(N==null)return{};var W={},j=Object.keys(N),$,B;for(B=0;B<j.length;B++)$=j[B],!(k.indexOf($)>=0)&&(W[$]=N[$]);return W}function _(N,k){if(!(N instanceof k))throw new TypeError("Cannot call a class as a function")}function y(N,k){for(var W=0;W<k.length;W++){var j=k[W];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function w(N,k,W){return k&&y(N.prototype,k),W&&y(N,W),N}function E(N,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(k&&k.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),k&&S(N,k)}function S(N,k){return S=Object.setPrototypeOf||function(j,$){return j.__proto__=$,j},S(N,k)}function T(N){var k=P();return function(){var j=R(N),$;if(k){var B=R(this).constructor;$=Reflect.construct(j,arguments,B)}else $=j.apply(this,arguments);return C(this,$)}}function C(N,k){return k&&(t(k)==="object"||typeof k=="function")?k:x(N)}function x(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function P(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(N){return!1}}function R(N){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},R(N)}function D(N,k,W){return k in N?Object.defineProperty(N,k,{value:W,enumerable:!0,configurable:!0,writable:!0}):N[k]=W,N}var A=function(N){E(W,N);var k=T(W);function W(){var j;_(this,W);for(var $=arguments.length,B=new Array($),G=0;G<$;G++)B[G]=arguments[G];return j=k.call.apply(k,[this].concat(B)),D(x(j),"state",{isReorderingThisColumn:!1,displacement:0,reorderingDisplacement:0}),D(x(j),"_onColumnResizerMouseDown",function(q){j.props.onColumnResize(j.props.left,j.props.width,j.props.minWidth,j.props.maxWidth,j.props.columnKey,q),j.props.touchEnabled&&(q.preventDefault(),q.stopPropagation())}),D(x(j),"_onColumnReorderMouseDown",function(q){j.props.onColumnReorder(j.props.columnKey,j.props.width,j.props.left,q)}),D(x(j),"_suppressEvent",function(q){q.preventDefault(),q.stopPropagation()}),j}return w(W,[{key:"shouldComponentUpdate",value:function($){if($.isScrolling&&this.props.rowIndex===$.rowIndex&&this.props.isVisible===$.isVisible)return!1;if(!$.pureRendering)return!0;var B=this.props,G=B.cell,q=p(B,["cell"]),U=$.cell,z=p($,["cell"]);return!(0,s.default)(q,z)||!G||!U||G.type!==U.type||!(0,s.default)(G.props,U.props)}},{key:"render",value:function(){var $=this.props,B=$.height,G=$.width,q=$.isVisible,U=$.columnKey,z=$.isHeaderOrFooter,H=p($,["height","width","isVisible","columnKey","isHeaderOrFooter"]),te={height:B,width:G};if(this.props.isRTL?te.right=H.left:te.left=H.left,this.state.isReorderingThisColumn){var X=this.props.isRTL?-1:1;te.transform="translateX(".concat(this.state.displacement*X,"px) translateZ(0)"),te.zIndex=1}var K=(0,o.default)((0,a.default)({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":H.lastChild,"fixedDataTableCellLayout/alignRight":H.align==="right","fixedDataTableCellLayout/alignCenter":H.align==="center","public/fixedDataTableCell/alignRight":H.align==="right","public/fixedDataTableCell/highlighted":H.highlighted,"public/fixedDataTableCell/main":!0,"public/fixedDataTableCell/hasReorderHandle":!!H.onColumnReorder,"public/fixedDataTableCell/reordering":this.state.isReorderingThisColumn}),H.className),J;if(H.onColumnResize){var ie={height:B};J=r.default.createElement("div",{className:(0,a.default)("fixedDataTableCellLayout/columnResizerContainer"),style:ie,onMouseDown:this._onColumnResizerMouseDown,onTouchStart:this.props.touchEnabled?this._onColumnResizerMouseDown:null,onTouchEnd:this.props.touchEnabled?this._suppressEvent:null,onTouchMove:this.props.touchEnabled?this._suppressEvent:null},r.default.createElement("div",{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/columnResizerKnob"),(0,a.default)("public/fixedDataTableCell/columnResizerKnob")),style:ie}))}var le;H.onColumnReorder&&(le=r.default.createElement(c.default,m({columnKey:this.columnKey,touchEnabled:this.props.touchEnabled,onMouseDown:this._onColumnReorderMouseDown,onTouchStart:this._onColumnReorderMouseDown,height:B},this.props)));var se={columnKey:U,height:B,width:G,isVisible:q};H.rowIndex>=0&&(se.rowIndex=H.rowIndex);var ce;r.default.isValidElement(H.cell)?ce=r.default.cloneElement(H.cell,se):typeof H.cell=="function"?ce=H.cell(se):ce=r.default.createElement(u.default,se,H.cell);var he=z?"columnheader":"gridcell";return r.default.createElement("div",{className:K,style:te,role:he},J,le,ce)}}],[{key:"getDerivedStateFromProps",value:function($,B){var G=$.left+B.displacement,q={isReorderingThisColumn:!1};if(!$.isColumnReordering)return q.displacement=0,q;var U=$.columnReorderingData.originalLeft,z=U+$.columnReorderingData.dragDistance,H=$.columnGroupWidth-$.columnReorderingData.columnWidth;if(z=Math.max(z,0),z=Math.min(z,H),$.columnKey===$.columnReorderingData.columnKey)return q.displacement=z-$.left,q.isReorderingThisColumn=!0,q;var te=z+$.columnReorderingData.columnWidth,X=z+$.columnReorderingData.columnWidth/2,K=G+$.width/2,J=X>K,ie=U>$.left,le=!1;return J?z<K&&(le=!0,ie?q.displacement=$.columnReorderingData.columnWidth:q.displacement=0):te>K&&(le=!0,ie?q.displacement=0:q.displacement=$.columnReorderingData.columnWidth*-1),le?J?$.columnReorderingData.columnAfter||($.columnReorderingData.columnAfter=$.columnKey):$.columnReorderingData.columnBefore=$.columnKey:J?$.columnReorderingData.columnBefore=$.columnKey:$.columnReorderingData.columnAfter||($.columnReorderingData.columnAfter=$.columnKey),q}}]),W}(r.default.Component);D(A,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,align:n.default.oneOf(["left","center","right"]),className:n.default.string,highlighted:n.default.bool,width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,height:n.default.number.isRequired,cell:n.default.oneOfType([n.default.string,n.default.element,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number.isRequired,onColumnResize:n.default.func,onColumnReorder:n.default.func,left:n.default.number,pureRendering:n.default.bool,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired}),D(A,"defaultProps",{align:"left",highlighted:!1});var I=(0,d.polyfill)(A);e.default=I})(d_);var _o={},wf={},xf={},g_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/-(.)/g;function r(a){return a.replace(t,function(o,s){return s.toUpperCase()})}var n=r;e.default=n})(g_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(qi),r=a(uf),n=a(g_);function a(p){return p&&p.__esModule?p:{default:p}}var o={},s=["Webkit","ms","Moz","O"],u=new RegExp("^("+s.join("|")+")"),c=r.default.canUseDOM?document.createElement("div").style:{};function d(p){for(var g=0;g<s.length;g++){var _=s[g]+p;if(_ in c)return _}return null}function h(p){var g=(0,n.default)(p);if(o[g]===void 0){var _=g.charAt(0).toUpperCase()+g.slice(1);u.test(_)&&(0,t.default)(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",p),o[g]=g in c?g:d(_)}return o[g]}var m=h;e.default=m})(xf);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(xf);function r(o){return o&&o.__esModule?o:{default:o}}var n={hasCSSAnimations:function(){return!!(0,t.default)("animationName")},hasCSSTransforms:function(){return!!(0,t.default)("transform")},hasCSS3DTransforms:function(){return!!(0,t.default)("perspective")},hasCSSTransitions:function(){return!!(0,t.default)("transition")}},a=n;e.default=a})(wf);var y_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(wf),r=a(xf),n=a(Qi);function a(c){return c&&c.__esModule?c:{default:c}}var o=(0,r.default)("transform");(0,r.default)("backfaceVisibility");var s=function(){if(t.default.hasCSSTransforms()){var c=n.default.window?n.default.window.navigator.userAgent:"UNKNOWN",d=/Safari\//.test(c)&&!/Chrome\//.test(c);return!d&&t.default.hasCSS3DTransforms()?function(h,m,p){h[o]="translate3d("+m+"px,"+p+"px,0)"}:function(h,m,p){h[o]="translate("+m+"px,"+p+"px)"}}else return function(h,m,p){h.left=m+"px",h.top=p+"px"}}(),u=s;e.default=u})(y_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(wf),r=n(y_);function n(s){return s&&s.__esModule?s:{default:s}}function a(s,u,c){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;s.display!=="none"&&(d?(s.left=u+"px",s.top=c+"px"):(t.default.hasCSSTransforms()&&(u*=h?-1:1),(0,r.default)(s,u,c)),h&&(s.right=s.left,s.left="auto"))}var o=a;e.default=o})(_o);(function(e){function t(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(k){return typeof k}:t=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},t(I)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(Q),n=c(Vt),a=c(hr),o=Pn,s=c(d_),u=c(_o);function c(I){return I&&I.__esModule?I:{default:I}}function d(){return d=Object.assign||function(I){for(var N=1;N<arguments.length;N++){var k=arguments[N];for(var W in k)Object.prototype.hasOwnProperty.call(k,W)&&(I[W]=k[W])}return I},d.apply(this,arguments)}function h(I,N){if(I==null)return{};var k=m(I,N),W,j;if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(I);for(j=0;j<$.length;j++)W=$[j],!(N.indexOf(W)>=0)&&Object.prototype.propertyIsEnumerable.call(I,W)&&(k[W]=I[W])}return k}function m(I,N){if(I==null)return{};var k={},W=Object.keys(I),j,$;for($=0;$<W.length;$++)j=W[$],!(N.indexOf(j)>=0)&&(k[j]=I[j]);return k}function p(I,N){if(!(I instanceof N))throw new TypeError("Cannot call a class as a function")}function g(I,N){for(var k=0;k<N.length;k++){var W=N[k];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(I,W.key,W)}}function _(I,N,k){return N&&g(I.prototype,N),I}function y(I,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(N&&N.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),N&&w(I,N)}function w(I,N){return w=Object.setPrototypeOf||function(W,j){return W.__proto__=j,W},w(I,N)}function E(I){var N=C();return function(){var W=x(I),j;if(N){var $=x(this).constructor;j=Reflect.construct(W,arguments,$)}else j=W.apply(this,arguments);return S(this,j)}}function S(I,N){return N&&(t(N)==="object"||typeof N=="function")?N:T(I)}function T(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function C(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(I){return!1}}function x(I){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},x(I)}function P(I,N,k){return N in I?Object.defineProperty(I,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):I[N]=k,I}var R=function(I){y(k,I);var N=E(k);function k(W){var j;return p(this,k),j=N.call(this,W),P(T(j),"_renderCell",function($,B,G,q,U,z,H,te,X){var K=G.isResizable&&j.props.onColumnResize,J=K?j.props.onColumnResize:null,ie=G.isReorderable&&j.props.onColumnReorder&&$===-1&&H!==G.width,le=ie?j.props.onColumnReorder:null,se=G.cellClassName,ce=G.pureRendering||!1;return r.default.createElement(s.default,{isScrolling:j.props.isScrolling,isHeaderOrFooter:j.props.isHeaderOrFooter,align:G.align,className:se,height:B,key:z,maxWidth:G.maxWidth,minWidth:G.minWidth,touchEnabled:j.props.touchEnabled,onColumnResize:J,onColumnReorder:le,onColumnReorderMove:j.props.onColumnReorderMove,onColumnReorderEnd:j.props.onColumnReorderEnd,isColumnReordering:te,columnReorderingData:j.props.columnReorderingData,rowIndex:$,columnKey:G.columnKey,width:G.width,left:U,cell:q,columnGroupWidth:H,pureRendering:ce,isRTL:j.props.isRTL,isVisible:j.props.isVisible&&X})}),j._initialRender=!0,j}return _(k,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var j=this.props,$=j.columns,B=new Array($.length),G=(0,o.sumPropWidths)($),q=j.isColumnReordering&&$.reduce(function(se,ce){return se||j.columnReorderingData.columnKey===ce.props.columnKey},!1),U=0,z=0,H=$.length;z<H;z++){var te=$[z].props,X=$[z].template,K=te.allowCellsRecycling&&!q,J=U-j.left<=j.width&&U-j.left+te.width>=0;if(!K||J){var ie=te.columnKey||"cell_"+z;B[z]=this._renderCell(j.rowIndex,j.rowHeight,te,X,U,ie,G,q,J)}U+=te.width}var le={height:j.height,position:"absolute",width:G,zIndex:j.zIndex};return(0,u.default)(le,-1*j.left,0,this._initialRender,this.props.isRTL),r.default.createElement("div",{className:(0,a.default)("fixedDataTableCellGroupLayout/cellGroup"),style:le},B)}}]),k}(r.default.Component);P(R,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:n.default.array.isRequired,isScrolling:n.default.bool,left:n.default.number,onColumnResize:n.default.func,onColumnReorder:n.default.func,onColumnReorderMove:n.default.func,onColumnReorderEnd:n.default.func,height:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,rowHeight:n.default.number.isRequired,rowIndex:n.default.number.isRequired,width:n.default.number.isRequired,zIndex:n.default.number.isRequired,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired});var D=function(I){y(k,I);var N=E(k);function k(){var W;p(this,k);for(var j=arguments.length,$=new Array(j),B=0;B<j;B++)$[B]=arguments[B];return W=N.call.apply(N,[this].concat($)),P(T(W),"_onColumnResize",function(G,q,U,z,H,te){W.props.onColumnResize&&W.props.onColumnResize(W.props.offsetLeft,G-W.props.left+q,q,U,z,H,te)}),W}return _(k,[{key:"shouldComponentUpdate",value:function(j){return!(j.isScrolling&&this.props.rowIndex===j.rowIndex&&this.props.left===j.left&&this.props.offsetLeft===j.offsetLeft&&this.props.isVisible===j.isVisible)}},{key:"render",value:function(){var j=this.props,$=j.offsetLeft,B=h(j,["offsetLeft"]),G={height:B.cellGroupWrapperHeight||B.height,width:B.width};this.props.isRTL?G.right=$:G.left=$;var q=B.onColumnResize?this._onColumnResize:null;return r.default.createElement("div",{style:G,className:(0,a.default)("fixedDataTableCellGroupLayout/cellGroupWrapper")},r.default.createElement(R,d({},B,{onColumnResize:q})))}}]),k}(r.default.Component);P(D,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,height:n.default.number.isRequired,offsetLeft:n.default.number,left:n.default.number,zIndex:n.default.number.isRequired}),P(D,"defaultProps",{left:0,offsetLeft:0});var A=D;e.default=A})(c_);(function(e){function t(k){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(j){return typeof j}:t=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},t(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=d(Vt),n=d(Q),a=d(hr),o=d(En),s=Pn,u=d(c_),c=d(_o);function d(k){return k&&k.__esModule?k:{default:k}}function h(k,W){if(k==null)return{};var j=m(k,W),$,B;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(k);for(B=0;B<G.length;B++)$=G[B],!(W.indexOf($)>=0)&&Object.prototype.propertyIsEnumerable.call(k,$)&&(j[$]=k[$])}return j}function m(k,W){if(k==null)return{};var j={},$=Object.keys(k),B,G;for(G=0;G<$.length;G++)B=$[G],!(W.indexOf(B)>=0)&&(j[B]=k[B]);return j}function p(){return p=Object.assign||function(k){for(var W=1;W<arguments.length;W++){var j=arguments[W];for(var $ in j)Object.prototype.hasOwnProperty.call(j,$)&&(k[$]=j[$])}return k},p.apply(this,arguments)}function g(k,W){if(!(k instanceof W))throw new TypeError("Cannot call a class as a function")}function _(k,W){for(var j=0;j<W.length;j++){var $=W[j];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(k,$.key,$)}}function y(k,W,j){return W&&_(k.prototype,W),k}function w(k,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(W&&W.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),W&&E(k,W)}function E(k,W){return E=Object.setPrototypeOf||function($,B){return $.__proto__=B,$},E(k,W)}function S(k){var W=x();return function(){var $=P(k),B;if(W){var G=P(this).constructor;B=Reflect.construct($,arguments,G)}else B=$.apply(this,arguments);return T(this,B)}}function T(k,W){return W&&(t(W)==="object"||typeof W=="function")?W:C(k)}function C(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function x(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(k){return!1}}function P(k){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},P(k)}function R(k,W,j){return W in k?Object.defineProperty(k,W,{value:j,enumerable:!0,configurable:!0,writable:!0}):k[W]=j,k}var D=1,A=function(k){w(j,k);var W=S(j);function j(){var $;g(this,j);for(var B=arguments.length,G=new Array(B),q=0;q<B;q++)G[q]=arguments[q];return $=W.call.apply(W,[this].concat(G)),R(C($),"mouseLeaveIndex",null),R(C($),"_getRowExpanded",function(U){if($.props.rowExpanded){var z={rowIndex:$.props.index,height:U,width:$.props.width},H;return n.default.isValidElement($.props.rowExpanded)?H=n.default.cloneElement($.props.rowExpanded,z):typeof $.props.rowExpanded=="function"&&(H=$.props.rowExpanded(z)),H}}),R(C($),"_renderColumnsLeftShadow",function(U){var z=(0,a.default)({"fixedDataTableRowLayout/fixedColumnsDivider":U>0,"fixedDataTableRowLayout/columnsShadow":$.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":U>0,"public/fixedDataTableRow/columnsShadow":$.props.scrollLeft>0}),H=$.props.cellGroupWrapperHeight?$.props.cellGroupWrapperHeight-D:$.props.height,te={left:U,height:H};return $.props.isRTL&&(te.right=U,te.left="auto"),n.default.createElement("div",{className:z,style:te})}),R(C($),"_renderFixedRightColumnsShadow",function(U){var z=(0,a.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),H={height:$.props.height,left:U};return $.props.isRTL&&(H.right=U,H.left="auto"),n.default.createElement("div",{className:z,style:H})}),R(C($),"_renderColumnsRightShadow",function(U){if(Math.ceil($.props.scrollLeft+$.props.width)<Math.floor(U)){var z=(0,a.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),H={height:$.props.height};return n.default.createElement("div",{className:z,style:H})}}),R(C($),"_onClick",function(U){$.props.onClick(U,$.props.index)}),R(C($),"_onContextMenu",function(U){$.props.onContextMenu(U,$.props.index)}),R(C($),"_onDoubleClick",function(U){$.props.onDoubleClick(U,$.props.index)}),R(C($),"_onMouseUp",function(U){$.props.onMouseUp(U,$.props.index)}),R(C($),"_onMouseDown",function(U){$.props.onMouseDown(U,$.props.index)}),R(C($),"_onMouseEnter",function(U){$.mouseLeaveIndex=$.props.index,$.props.onMouseEnter&&$.props.onMouseEnter(U,$.props.index)}),R(C($),"_onMouseLeave",function(U){$.mouseLeaveIndex===null&&($.mouseLeaveIndex=$.props.index),$.props.onMouseLeave(U,$.mouseLeaveIndex),$.mouseLeaveIndex=null}),R(C($),"_onTouchStart",function(U){$.props.onTouchStart(U,$.props.index)}),R(C($),"_onTouchEnd",function(U){$.props.onTouchEnd(U,$.props.index)}),R(C($),"_onTouchMove",function(U){$.props.onTouchMove(U,$.props.index)}),$}return y(j,[{key:"shouldComponentUpdate",value:function(B){return B.isScrolling?B.visible?this.props.visible!==B.visible?!0:!(this.props.index===B.index&&this.props.scrollLeft===B.scrollLeft):!1:!0}},{key:"render",value:function(){var B=this.props.subRowHeight||0,G={width:this.props.width,height:this.props.height+B},q=(0,a.default)({"fixedDataTableRowLayout/main":!0,"public/fixedDataTableRow/main":!0,"public/fixedDataTableRow/highlighted":this.props.index%2===1,"public/fixedDataTableRow/odd":this.props.index%2===1,"public/fixedDataTableRow/even":this.props.index%2===0}),U=(0,s.sumPropWidths)(this.props.fixedColumns),z=n.default.createElement(u.default,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:U,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),H=this._renderColumnsLeftShadow(U),te=(0,s.sumPropWidths)(this.props.fixedRightColumns),X=this.props.showScrollbarY?this.props.scrollbarYWidth:0,K=n.default.createElement(u.default,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-te-X,width:te,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),J=te?this._renderFixedRightColumnsShadow(this.props.width-te-X-5):null,ie=n.default.createElement(u.default,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:U,width:this.props.width-U-te-X,zIndex:0,columns:this.props.scrollableColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),le=(0,s.sumPropWidths)(this.props.scrollableColumns),se=this._renderColumnsRightShadow(U+le),ce=this._getRowExpanded(B),he={height:B,top:this.props.height,width:this.props.width},pe=null;if(this.props.showScrollbarY){var oe={width:X,height:this.props.height,left:this.props.isRTL?2:this.props.width-X-2};pe=n.default.createElement("div",{style:oe,className:(0,a.default)("public/fixedDataTable/scrollbarSpacer")})}return n.default.createElement("div",p({className:(0,o.default)(q,this.props.className),role:"row","aria-rowindex":this.props.ariaRowIndex},this.props.attributes,{onClick:this.props.onClick?this._onClick:null,onContextMenu:this.props.onContextMenu?this._onContextMenu:null,onDoubleClick:this.props.onDoubleClick?this._onDoubleClick:null,onMouseDown:this.props.onMouseDown?this._onMouseDown:null,onMouseUp:this.props.onMouseUp?this._onMouseUp:null,onMouseEnter:this.props.onMouseEnter||this.props.onMouseLeave?this._onMouseEnter:null,onMouseLeave:this.props.onMouseLeave?this._onMouseLeave:null,onTouchStart:this.props.onTouchStart?this._onTouchStart:null,onTouchEnd:this.props.onTouchEnd?this._onTouchEnd:null,onTouchMove:this.props.onTouchMove?this._onTouchMove:null,style:G}),n.default.createElement("div",{className:(0,a.default)("fixedDataTableRowLayout/body")},z,ie,H,K,J,pe),ce&&n.default.createElement("div",{className:(0,a.default)("fixedDataTableRowLayout/rowExpanded"),style:he},ce),se)}}]),j}(n.default.Component);R(A,"propTypes",{isScrolling:r.default.bool,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,cellGroupWrapperHeight:r.default.number,subRowHeight:r.default.number,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),index:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,width:r.default.number.isRequired,onClick:r.default.func,onContextMenu:r.default.func,onDoubleClick:r.default.func,onColumnResize:r.default.func,isColumnReordering:r.default.bool,onColumnReorder:r.default.func,onColumnReorderMove:r.default.func,onColumnReorderEnd:r.default.func,touchEnabled:r.default.bool,isHeaderOrFooter:r.default.bool,ariaRowIndex:r.default.number,isRTL:r.default.bool,attributes:r.default.object});var I=function(k){w(j,k);var W=S(j);function j($){var B;return g(this,j),B=W.call(this,$),B._initialRender=!0,B}return y(j,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(B){return!B.isScrolling||this.props.visible!==B.visible?!0:B.visible?!(B.isScrolling&&this.props.index===B.index&&this.props.offsetTop===B.offsetTop&&this.props.scrollLeft===B.scrollLeft):!1}},{key:"render",value:function(){var B=this.props,G=B.offsetTop,q=B.zIndex,U=h(B,["offsetTop","zIndex"]),z={width:this.props.width,height:this.props.height,zIndex:q||0,visibility:U.visible?"visible":"hidden"};return(0,c.default)(z,0,G,this._initialRender,this.props.isRTL),n.default.createElement("div",{style:z,className:(0,a.default)("fixedDataTableRowLayout/rowWrapper")},n.default.createElement(A,U))}}]),j}(n.default.Component);R(I,"propTypes",{isScrolling:r.default.bool,height:r.default.number.isRequired,zIndex:r.default.number,offsetTop:r.default.number.isRequired,visible:r.default.bool.isRequired,width:r.default.number.isRequired});var N=I;e.default=N})(bf);(function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(W){return typeof W}:t=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=p(Vt),n=p(Q),a=p(J8),o=p(S7),s=p(u_),u=p(hr),c=p(Mn),d=p(En),h=p(bf),m=p(_o);function p(N){return N&&N.__esModule?N:{default:N}}function g(){return g=Object.assign||function(N){for(var k=1;k<arguments.length;k++){var W=arguments[k];for(var j in W)Object.prototype.hasOwnProperty.call(W,j)&&(N[j]=W[j])}return N},g.apply(this,arguments)}function _(N,k){if(!(N instanceof k))throw new TypeError("Cannot call a class as a function")}function y(N,k){for(var W=0;W<k.length;W++){var j=k[W];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function w(N,k,W){return k&&y(N.prototype,k),N}function E(N,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(k&&k.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),k&&S(N,k)}function S(N,k){return S=Object.setPrototypeOf||function(j,$){return j.__proto__=$,j},S(N,k)}function T(N){var k=P();return function(){var j=R(N),$;if(k){var B=R(this).constructor;$=Reflect.construct(j,arguments,B)}else $=j.apply(this,arguments);return C(this,$)}}function C(N,k){return k&&(t(k)==="object"||typeof k=="function")?k:x(N)}function x(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function P(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(N){return!1}}function R(N){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},R(N)}function D(N,k,W){return k in N?Object.defineProperty(N,k,{value:W,enumerable:!0,configurable:!0,writable:!0}):N[k]=W,N}var A=function(N){E(W,N);var k=T(W);function W(j){var $;return _(this,W),$=k.call(this,j),$._staticRowArray=[],$._initialRender=!0,$}return w(W,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillUnmount",value:function(){this._staticRowArray.length=0}},{key:"render",value:function(){var $=this.props,B=$.offsetTop,G=$.rowOffsets,q=$.scrollTop,U=$.isScrolling,z=$.rowsToRender;z=z||[],U?this._staticRowArray.length=Math.max(this._staticRowArray.length,z.length):this._staticRowArray.length=z.length;for(var H=1e6,te=B-q%H,X=0;X<this._staticRowArray.length;X++){var K,J=(0,a.default)(z[X],(K=this._staticRowArray[X])===null||K===void 0?void 0:K.props.index);if((0,s.default)(J)||!(0,o.default)(J,0,this.props.rowSettings.rowsCount)){this._staticRowArray[X]=null;continue}var ie=G[J]-Math.floor(q/H)*H;this._staticRowArray[X]=this.renderRow({rowIndex:J,key:X,rowOffsetTop:ie})}var le={};(0,m.default)(le,0,te,!1);var se=this._staticRowArray.slice().sort(this.rowSortComparator);return n.default.createElement("div",{style:le},se)}},{key:"renderRow",value:function($){var B=$.rowIndex,G=$.key,q=$.rowOffsetTop,U=this.props,z=U.rowClassNameGetter||c.default,H={};H.height=this.props.rowSettings.rowHeightGetter(B),H.subRowHeight=this.props.rowSettings.subRowHeightGetter(B),H.offsetTop=q,H.key=U.rowKeyGetter?U.rowKeyGetter(B):G,H.attributes=U.rowSettings.rowAttributesGetter&&U.rowSettings.rowAttributesGetter(B);var te=B===U.rowSettings.rowsCount-1&&U.showLastRowBorder;H.className=(0,d.default)(z(B),(0,u.default)("public/fixedDataTable/bodyRow"),(0,u.default)({"fixedDataTableLayout/hasBottomBorder":te,"public/fixedDataTable/hasBottomBorder":te}));var X=(0,o.default)(B,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return n.default.createElement(h.default,g({key:G,index:B,ariaRowIndex:B+U.ariaRowIndexOffset,isScrolling:U.isScrolling,width:U.width,rowExpanded:U.rowExpanded,scrollLeft:Math.round(U.scrollLeft),fixedColumns:U.fixedColumns,fixedRightColumns:U.fixedRightColumns,scrollableColumns:U.scrollableColumns,onClick:U.onRowClick,onContextMenu:U.onRowContextMenu,onDoubleClick:U.onRowDoubleClick,onMouseDown:U.onRowMouseDown,onMouseUp:U.onRowMouseUp,onMouseEnter:U.onRowMouseEnter,onMouseLeave:U.onRowMouseLeave,onTouchStart:U.onRowTouchStart,onTouchEnd:U.onRowTouchEnd,onTouchMove:U.onRowTouchMove,showScrollbarY:U.showScrollbarY,scrollbarYWidth:U.scrollbarYWidth,isRTL:U.isRTL,visible:X},H))}},{key:"rowSortComparator",value:function($,B){var G,q;return((G=$==null?void 0:$.props.ariaRowIndex)!==null&&G!==void 0?G:-1)-((q=B==null?void 0:B.props.ariaRowIndex)!==null&&q!==void 0?q:-1)}}]),W}(n.default.Component);D(A,"propTypes",{ariaRowIndexOffset:r.default.number,isScrolling:r.default.bool,firstViewportRowIndex:r.default.number.isRequired,endViewportRowIndex:r.default.number.isRequired,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,offsetTop:r.default.number.isRequired,onRowClick:r.default.func,onRowContextMenu:r.default.func,onRowDoubleClick:r.default.func,onRowMouseDown:r.default.func,onRowMouseUp:r.default.func,onRowMouseEnter:r.default.func,onRowMouseLeave:r.default.func,onRowTouchStart:r.default.func,onRowTouchEnd:r.default.func,onRowTouchMove:r.default.func,rowClassNameGetter:r.default.func,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),rowOffsets:r.default.object.isRequired,rowKeyGetter:r.default.func,rowSettings:r.default.shape({rowAttributesGetter:r.default.func,rowHeightGetter:r.default.func,rowsCount:r.default.number.isRequired,subRowHeightGetter:r.default.func}),rowsToRender:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,scrollTop:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,showLastRowBorder:r.default.bool,showScrollbarY:r.default.bool,width:r.default.number.isRequired,isRTL:r.default.bool});var I=A;e.default=I})(l_);var b_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Mn),r=n(fl);function n(g){return g&&g.__esModule?g:{default:g}}function a(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function o(g,_){for(var y=0;y<_.length;y++){var w=_[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function s(g,_,y){return _&&o(g.prototype,_),g}var u=1.6,c=1.6,d=325,h=100,m=function(){function g(_,y,w,E,S){a(this,g),this._dragAnimationId=null,this._trackerId=null,this._deltaX=0,this._deltaY=0,this._lastTouchX=0,this._lastTouchY=0,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),this._autoScrollTimestamp=Date.now(),typeof y!="function"&&(y=y?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof w!="function"&&(w=w?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=y,this._handleScrollY=w,this._preventDefault=E,this._stopPropagation=S,this._onTouchScrollCallback=_,this._didTouchMove=this._didTouchMove.bind(this),this._track=this._track.bind(this),this._autoScroll=this._autoScroll.bind(this),this._startAutoScroll=this._startAutoScroll.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this)}return s(g,[{key:"onTouchStart",value:function(y){this._lastTouchX=y.touches[0].pageX,this._lastTouchY=y.touches[0].pageY,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),clearInterval(this._trackerId),this._trackerId=setInterval(this._track,h),this._stopPropagation&&y.stopPropagation()}},{key:"onTouchEnd",value:function(y){clearInterval(this._trackerId),this._trackerId=null,(0,r.default)(this._startAutoScroll),this._stopPropagation&&y.stopPropagation()}},{key:"onTouchCancel",value:function(y){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&y.stopPropagation()}},{key:"onTouchMove",value:function(y){this._preventDefault&&y.preventDefault();var w=y.touches[0].pageX,E=y.touches[0].pageY;this._deltaX=u*(this._lastTouchX-w),this._deltaY=u*(this._lastTouchY-E);var S=this._handleScrollX(this._deltaX,this._deltaY),T=this._handleScrollY(this._deltaY,this._deltaX);if(!(!S&&!T)){S?this._lastTouchX=w:this._deltaX=0,T?this._lastTouchY=E:this._deltaY=0,y.defaultPrevented||y.preventDefault();var C=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&y.stopPropagation(),C=!0),C===!0&&this._dragAnimationId===null&&(this._dragAnimationId=(0,r.default)(this._didTouchMove))}}},{key:"_didTouchMove",value:function(){this._dragAnimationId=null,this._onTouchScrollCallback(this._deltaX,this._deltaY),this._accumulatedDeltaX+=this._deltaX,this._accumulatedDeltaY+=this._deltaY,this._deltaX=0,this._deltaY=0}},{key:"_track",value:function(){var y=Date.now(),w=y-this._lastFrameTimestamp,E=this._velocityX,S=this._velocityY,T=.8;w<h&&(T*=w/h),E===0&&S===0&&(T=1),this._velocityX=T*(h*this._accumulatedDeltaX/(1+w)),T<1&&(this._velocityX+=(1-T)*E),this._velocityY=T*(h*this._accumulatedDeltaY/(1+w)),T<1&&(this._velocityY+=(1-T)*S),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=y}},{key:"_startAutoScroll",value:function(){this._autoScrollTimestamp=Date.now(),(this._deltaX>0||this.deltaY>0)&&this._didTouchMove(),this._track(),this._autoScroll()}},{key:"_autoScroll",value:function(){var y=Date.now()-this._autoScrollTimestamp,w=c*Math.exp(-y/d),E=w*this._velocityX,S=w*this._velocityY;(Math.abs(E)<=5||!this._handleScrollX(E,S))&&(E=0),(Math.abs(S)<=5||!this._handleScrollY(S,E))&&(S=0),(E!==0||S!==0)&&(this._onTouchScrollCallback(E,S),(0,r.default)(this._autoScroll))}}]),g}(),p=m;e.default=p})(b_);(function(e){function t(U){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(H){return typeof H}:t=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},t(U)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=T(Q),n=T(Vt),a=T(Mj),o=T(hr),s=T(Ib),u=T(En),c=T(bo),d=T(lf),h=T(jb),m=T(qb),p=T(ta),g=T(gf),_=T(a_),y=T(l_),w=T(gl),E=T(bf),S=T(b_);function T(U){return U&&U.__esModule?U:{default:U}}function C(){return C=Object.assign||function(U){for(var z=1;z<arguments.length;z++){var H=arguments[z];for(var te in H)Object.prototype.hasOwnProperty.call(H,te)&&(U[te]=H[te])}return U},C.apply(this,arguments)}function x(U,z){if(!(U instanceof z))throw new TypeError("Cannot call a class as a function")}function P(U,z){for(var H=0;H<z.length;H++){var te=z[H];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(U,te.key,te)}}function R(U,z,H){return z&&P(U.prototype,z),U}function D(U,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(z&&z.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),z&&A(U,z)}function A(U,z){return A=Object.setPrototypeOf||function(te,X){return te.__proto__=X,te},A(U,z)}function I(U){var z=W();return function(){var te=j(U),X;if(z){var K=j(this).constructor;X=Reflect.construct(te,arguments,K)}else X=te.apply(this,arguments);return N(this,X)}}function N(U,z){return z&&(t(z)==="object"||typeof z=="function")?z:k(U)}function k(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function W(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(U){return!1}}function j(U){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},j(U)}function $(U,z,H){return z in U?Object.defineProperty(U,z,{value:H,enumerable:!0,configurable:!0,writable:!0}):U[z]=H,U}var B=25,G=function(U){D(H,U);var z=I(H);function H(te){var X;return x(this,H),X=z.call(this,te),$(k(X),"_shouldHandleTouchX",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelX(K)}),$(k(X),"_shouldHandleTouchY",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelY(K)}),$(k(X),"_shouldHandleWheelX",function(K){var J=X.props,ie=J.maxScrollX,le=J.scrollFlags,se=J.scrollX,ce=le.overflowX;return ce==="hidden"||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ie}),$(k(X),"_shouldHandleWheelY",function(K){var J=X.props,ie=J.maxScrollY,le=J.scrollFlags,se=J.scrollY,ce=le.overflowY;return ce==="hidden"||K===0||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ie}),$(k(X),"_reportContentHeight",function(){var K=(0,g.default)(X.props),J=K.contentHeight,ie=X.props.onContentHeightChange;J!==X._contentHeight&&ie&&ie(J),X._contentHeight=J}),$(k(X),"_renderRows",function(K,J,ie,le,se,ce){var he=(0,p.default)(X.props),pe=he.scrollEnabledY,oe=X.props;return r.default.createElement(y.default,{ariaRowIndexOffset:ce,isScrolling:oe.scrolling,fixedColumns:J,fixedRightColumns:ie,firstViewportRowIndex:oe.firstRowIndex,endViewportRowIndex:oe.endRowIndex,height:se,offsetTop:K,onRowClick:oe.onRowClick,onRowContextMenu:oe.onRowContextMenu,onRowDoubleClick:oe.onRowDoubleClick,onRowMouseUp:oe.onRowMouseUp,onRowMouseDown:oe.onRowMouseDown,onRowMouseEnter:oe.onRowMouseEnter,onRowMouseLeave:oe.onRowMouseLeave,onRowTouchStart:oe.touchScrollEnabled?oe.onRowTouchStart:null,onRowTouchEnd:oe.touchScrollEnabled?oe.onRowTouchEnd:null,onRowTouchMove:oe.touchScrollEnabled?oe.onRowTouchMove:null,rowClassNameGetter:oe.rowClassNameGetter,rowExpanded:oe.rowExpanded,rowKeyGetter:oe.rowKeyGetter,rowSettings:oe.rowSettings,scrollLeft:oe.scrollX,scrollTop:oe.scrollY,scrollableColumns:le,showLastRowBorder:!0,width:oe.tableSize.width,rowsToRender:oe.rows,rowOffsets:oe.rowOffsets,showScrollbarY:pe,scrollbarYWidth:oe.scrollbarYWidth,isRTL:oe.isRTL})}),$(k(X),"_onRef",function(K){X._divRef=K,X._wheelHandler&&(X.props.stopReactWheelPropagation?X._wheelHandler.setRoot(K):X._wheelHandler.setRoot(null))}),$(k(X),"_onColumnResize",function(K,J,ie,le,se,ce,he){var pe=w.default.getCoordinatesFromEvent(he),oe=pe.x,ve=pe.y;X.props.columnActions.resizeColumn({cellMinWidth:le,cellMaxWidth:se,cellWidth:ie,columnKey:ce,combinedWidth:K,clientX:oe,clientY:ve,leftOffset:J})}),$(k(X),"_onColumnReorder",function(K,J,ie,le){X.props.columnActions.startColumnReorder({scrollStart:X.props.scrollX,columnKey:K,width:J,left:ie})}),$(k(X),"_onColumnReorderMove",function(K){X.props.columnActions.moveColumnReorder(K)}),$(k(X),"_onColumnReorderEnd",function(K,J){var ie=X.props,le=ie.columnActions,se=ie.columnReorderingData,ce=se.cancelReorder,he=se.columnAfter,pe=se.columnBefore,oe=se.columnKey,ve=se.scrollStart,fe=ie.onColumnReorderEndCallback,_e=ie.onHorizontalScroll,we=ie.scrollX;le.stopColumnReorder(),!ce&&(fe({columnAfter:he,columnBefore:pe,reorderColumn:oe}),ve!==we&&_e&&_e(we))}),$(k(X),"_onScroll",function(K,J){var ie=X.props,le=ie.maxScrollX,se=ie.maxScrollY,ce=ie.onHorizontalScroll,he=ie.onVerticalScroll,pe=ie.scrollActions,oe=ie.scrollFlags,ve=ie.scrollX,fe=ie.scrollY,_e=oe.overflowX,we=oe.overflowY,Se=ve,Ce=fe;if(Math.abs(J)>Math.abs(K)&&we!=="hidden")Ce+=J,Ce=Ce<0?0:Ce,Ce=Ce>se?se:Ce,(!he||he(Ce))&&pe.scrollToY(Ce);else if(K&&_e!=="hidden"){Se+=K,Se=Se<0?0:Se,Se=Se>le?le:Se;var ft=Math.round(Se);(!ce||ce(ft))&&pe.scrollToX(ft)}}),$(k(X),"_scrollTo",function(K,J){X._scrollToX(K),X._scrollToY(J)}),$(k(X),"_scrollToX",function(K){var J=X.props,ie=J.onHorizontalScroll,le=J.scrollActions,se=J.scrollX;if(K!==se){var ce=Math.round(K);(!ie||ie(ce))&&le.scrollToX(ce)}}),$(k(X),"_scrollToY",function(K){var J=X.props,ie=J.onVerticalScroll,le=J.scrollActions,se=J.scrollY;K!==se&&(!ie||ie(K))&&le.scrollToY(K)}),$(k(X),"_didScroll",function(K){var J=X.props,ie=J.onScrollStart,le=J.scrollX,se=J.scrollY,ce=J.onHorizontalScroll,he=J.onVerticalScroll,pe=J.tableSize.ownerHeight,oe=J.scrolling,ve=K.endRowIndex,fe=K.firstRowIndex,_e=K.scrollX,we=K.scrollY,Se=K.tableSize.ownerHeight,Ce=K.scrolling,ft=pe!==Se&&!((0,a.default)(pe)&&(0,a.default)(Se)),Ue=le!==_e,nt=se!==we;!ft&&!Ue&&!nt||(!Ce&&oe&&ie&&ie(_e,we,fe,ve),Ue&&ce&&ce(le),nt&&he&&he(se),X._didScrollStop())}),$(k(X),"_didScrollStopSync",function(){var K=X.props,J=K.endRowIndex,ie=K.firstRowIndex,le=K.onScrollEnd,se=K.scrollActions,ce=K.scrollX,he=K.scrollY,pe=K.scrolling;pe&&(se.stopScroll(),le&&le(ce,he,ie,J))}),X._didScrollStop=(0,s.default)(X._didScrollStopSync,200,k(X)),X._onKeyDown=X._onKeyDown.bind(k(X)),X._setupHandlers(),X}return R(H,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new d.default(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new S.default(this._onScroll,this._shouldHandleTouchX,this._shouldHandleTouchY,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._divRef&&this._divRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this.props.touchScrollEnabled&&this._divRef&&this._divRef.addEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1})}},{key:"_cleanupHandlers",value:function(){this._wheelHandler&&(this._divRef&&this._divRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._wheelHandler=null),this._touchHandler&&(this._divRef&&this._divRef.removeEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1}),this._touchHandler=null)}},{key:"_onKeyDown",value:function(X){var K=(0,g.default)(this.props),J=K.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(X.key){case"PageDown":this._onScroll(0,J),X.preventDefault();break;case"PageUp":this._onScroll(0,J*-1),X.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(X.key){case"ArrowDown":this._onScroll(0,B),X.preventDefault();break;case"ArrowUp":this._onScroll(0,B*-1),X.preventDefault();break;case"ArrowRight":this._onScroll(B,0),X.preventDefault();break;case"ArrowLeft":this._onScroll(B*-1,0),X.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(X){return!(0,c.default)(this.props,X)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(X){this._didScroll(X),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var X=(0,g.default)(this.props),K=X.bodyOffsetTop,J=X.scrollbarXOffsetTop,ie=X.visibleRowsHeight,le=this.props,se=le.tableSize.width,ce=le.scrollContentHeight,he=le.scrollY,pe=le.scrollX,oe={viewportHeight:ie,contentHeight:ce,scrollbarYOffsetTop:K,scrollY:he,viewportWidth:se,contentWidth:se+this.props.maxScrollX,scrollbarXOffsetTop:J,scrollX:pe,scrollTo:this._scrollTo,scrollToX:this._scrollToX,scrollToY:this._scrollToY};(0,c.default)(this.previousScrollState,oe)||(this.props.onScrollBarsUpdate(oe),this.previousScrollState=oe)}},{key:"render",value:function(){var X=(0,h.default)(this.props),K=X.ariaGroupHeaderIndex,J=X.ariaHeaderIndex,ie=X.ariaFooterIndex,le=X.ariaRowCount,se=X.ariaRowIndexOffset,ce=(0,m.default)(this.props),he=ce.fixedColumnGroups,pe=ce.fixedColumns,oe=ce.fixedRightColumnGroups,ve=ce.fixedRightColumns,fe=ce.scrollableColumnGroups,_e=ce.scrollableColumns,we=(0,g.default)(this.props),Se=we.bodyHeight,Ce=we.bodyOffsetTop,ft=we.componentHeight,Ue=we.footOffsetTop,nt=we.scrollbarXOffsetTop,ht=we.visibleRowsHeight,Ie=this.props,qe=Ie.className,Pt=Ie.columnReorderingData,pt=Ie.columnResizingData,Rt=Ie.elementHeights,pr=Ie.isColumnReordering,Te=Ie.isColumnResizing,_t=Ie.gridAttributesGetter,Sr=Ie.maxScrollY,Kt=Ie.onColumnReorderEndCallback,Er=Ie.onColumnResizeEndCallback,tn=Ie.scrollContentHeight,mr=Ie.scrollX,Hr=Ie.scrollY,Ut=Ie.scrolling,On=Ie.tableSize,Vr=Ie.touchScrollEnabled,rn=Ie.scrollbarYWidth,kn=On.ownerHeight,vr=On.width,Nn=Rt.cellGroupWrapperHeight,Dn=Rt.footerHeight,nn=Rt.groupHeaderHeight,ri=Rt.headerHeight,ni=(0,p.default)(this.props),ia=ni.scrollEnabledX,Qt=ni.scrollEnabledY,ii=Kt?this._onColumnReorder:null,Ur=_t&&_t(),an;nn>0&&(an=r.default.createElement(E.default,{key:"group_header",ariaRowIndex:K,isHeaderOrFooter:!0,isScrolling:Ut,className:(0,u.default)((0,o.default)("fixedDataTableLayout/header"),(0,o.default)("public/fixedDataTable/header")),width:vr,height:nn,cellGroupWrapperHeight:Nn,index:0,zIndex:1,offsetTop:0,scrollLeft:mr,fixedColumns:he,fixedRightColumns:oe,scrollableColumns:fe,visible:!0,onColumnResize:this._onColumnResize,onColumnReorder:ii,onColumnReorderMove:this._onColumnReorderMove,showScrollbarY:Qt,scrollbarYWidth:rn,isRTL:this.props.isRTL}));var xt;Qt&&(xt=this.props.scrollbarY);var yt;ia&&(yt=this.props.scrollbarX);var ge=r.default.createElement(_.default,{height:ft,initialWidth:pt.width||0,minWidth:pt.minWidth||0,maxWidth:pt.maxWidth||Number.MAX_VALUE,visible:!!Te,leftOffset:pt.left||0,knobHeight:ri,initialEvent:pt.initialEvent,onColumnResizeEnd:Er,columnKey:pt.key,touchEnabled:Vr,isRTL:this.props.isRTL}),gr=null;Dn&&(gr=r.default.createElement(E.default,{key:"footer",ariaRowIndex:ie,isHeaderOrFooter:!0,isScrolling:Ut,className:(0,u.default)((0,o.default)("fixedDataTableLayout/footer"),(0,o.default)("public/fixedDataTable/footer")),width:vr,height:Dn,index:-1,zIndex:1,offsetTop:Ue,visible:!0,fixedColumns:pe.footer,fixedRightColumns:ve.footer,scrollableColumns:_e.footer,scrollLeft:mr,showScrollbarY:Qt,scrollbarYWidth:rn,isRTL:this.props.isRTL}));var on=this._renderRows(Ce,pe.cell,ve.cell,_e.cell,Se,se),An=r.default.createElement(E.default,{key:"header",ariaRowIndex:J,isHeaderOrFooter:!0,isScrolling:Ut,className:(0,u.default)((0,o.default)("fixedDataTableLayout/header"),(0,o.default)("public/fixedDataTable/header")),width:vr,height:ri,cellGroupWrapperHeight:Nn,index:-1,zIndex:1,offsetTop:nn,scrollLeft:mr,visible:!0,fixedColumns:pe.header,fixedRightColumns:ve.header,scrollableColumns:_e.header,touchEnabled:Vr,onColumnResize:this._onColumnResize,onColumnReorder:ii,onColumnReorderMove:this._onColumnReorderMove,onColumnReorderEnd:this._onColumnReorderEnd,isColumnReordering:!!pr,columnReorderingData:Pt,showScrollbarY:Qt,scrollbarYWidth:rn,isRTL:this.props.isRTL}),sn;Hr&&(sn=r.default.createElement("div",{className:(0,u.default)((0,o.default)("fixedDataTableLayout/topShadow"),(0,o.default)("public/fixedDataTable/topShadow")),style:{top:Ce}}));var ln=kn&&kn<ft&&tn>ht,un;(ln||Hr<Sr)&&(un=r.default.createElement("div",{className:(0,u.default)((0,o.default)("fixedDataTableLayout/bottomShadow"),(0,o.default)("public/fixedDataTable/bottomShadow")),style:{top:Ue}}));var yr=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(yr=0);var cn=qe;return this.props.isRTL&&(cn=(0,u.default)(cn,"fixedDataTable_isRTL")),r.default.createElement("div",C({className:(0,u.default)(cn,(0,o.default)("fixedDataTableLayout/main"),(0,o.default)("public/fixedDataTable/main")),role:"grid","aria-rowcount":le},Ur,{tabIndex:yr,onKeyDown:this._onKeyDown,onTouchStart:Vr?this._touchHandler.onTouchStart:null,onTouchEnd:Vr?this._touchHandler.onTouchEnd:null,onTouchCancel:Vr?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:ft,width:vr}}),r.default.createElement("div",{className:(0,o.default)("fixedDataTableLayout/rowsContainer"),style:{height:nt,width:vr}},ge,an,An,on,gr,sn,un),xt,yt)}}]),H}(r.default.Component);$(G,"propTypes",{width:n.default.number.isRequired,height:n.default.number,className:n.default.string,maxHeight:n.default.number,ownerHeight:n.default.number,overflowX:n.default.oneOf(["hidden","auto"]),overflowY:n.default.oneOf(["hidden","auto"]),touchScrollEnabled:n.default.bool,keyboardScrollEnabled:n.default.bool,keyboardPageEnabled:n.default.bool,scrollbarX:n.default.node,scrollbarXHeight:n.default.number,scrollbarY:n.default.node,scrollbarYWidth:n.default.number,onScrollBarsUpdate:n.default.func,defaultScrollbars:n.default.bool,showScrollbarX:n.default.bool,showScrollbarY:n.default.bool,onHorizontalScroll:n.default.func,onVerticalScroll:n.default.func,rowsCount:n.default.number.isRequired,rowHeight:n.default.number.isRequired,rowHeightGetter:n.default.func,subRowHeight:n.default.number,subRowHeightGetter:n.default.func,rowExpanded:n.default.oneOfType([n.default.element,n.default.func]),rowClassNameGetter:n.default.func,rowKeyGetter:n.default.func,groupHeaderHeight:n.default.number,headerHeight:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,scrollLeft:n.default.number,scrollToColumn:n.default.number,scrollTop:n.default.number,scrollToRow:n.default.number,onScrollStart:n.default.func,onScrollEnd:n.default.func,stopReactWheelPropagation:n.default.bool,stopScrollDefaultHandling:n.default.bool,stopScrollPropagation:n.default.bool,onContentHeightChange:n.default.func,onRowClick:n.default.func,onRowContextMenu:n.default.func,onRowDoubleClick:n.default.func,onRowMouseDown:n.default.func,onRowMouseUp:n.default.func,onRowMouseEnter:n.default.func,onRowMouseLeave:n.default.func,onRowTouchStart:n.default.func,onRowTouchEnd:n.default.func,onRowTouchMove:n.default.func,onColumnResizeEndCallback:n.default.func,onColumnReorderEndCallback:n.default.func,isColumnResizing:n.default.bool,isColumnReordering:n.default.bool,isRTL:n.default.bool,bufferRowCount:n.default.number,elementHeights:n.default.shape({cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,groupHeaderHeight:n.default.number,headerHeight:n.default.number}),gridAttributesGetter:n.default.func,rowAttributesGetter:n.default.func}),$(G,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var q=G;e.default=q})(Lb);var __={},w_={},x_={},C_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function r(u,c){for(var d=0;d<c.length;d++){var h=c[d];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(u,h.key,h)}}function n(u,c,d){return c&&r(u.prototype,c),u}function a(u,c){return u<c}var o=function(){function u(c,d){t(this,u),this._items=c||[],this._size=this._items.length,this._comparator=d||a,this._heapify()}return n(u,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var d=this._items[0],h=this._items.pop();return this._size--,this._size>0&&(this._items[0]=h,this._sinkDown(0)),d}}},{key:"push",value:function(d){this._items[this._size++]=d,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(this._size!==0)return this._items[0]}},{key:"_heapify",value:function(){for(var d=Math.floor((this._size+1)/2);d>=0;d--)this._sinkDown(d)}},{key:"_bubbleUp",value:function(d){for(var h=this._items[d];d>0;){var m=Math.floor((d+1)/2)-1,p=this._items[m];if(this._comparator(p,h))return;this._items[m]=h,this._items[d]=p,d=m}}},{key:"_sinkDown",value:function(d){for(var h=this._items[d];;){var m=2*(d+1)-1,p=2*(d+1),g=-1;if(m<this._size){var _=this._items[m];this._comparator(_,h)&&(g=m)}if(p<this._size){var y=this._items[p];this._comparator(y,h)&&(g===-1||this._comparator(y,this._items[g]))&&(g=p)}if(g===-1)return;this._items[d]=this._items[g],this._items[g]=h,d=g}}}]),u}(),s=o;e.default=s})(C_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(C_),r=n(qi);function n(d){return d&&d.__esModule?d:{default:d}}function a(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}function o(d,h){for(var m=0;m<h.length;m++){var p=h[m];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(d,p.key,p)}}function s(d,h,m){return h&&o(d.prototype,h),d}var u=function(){function d(){a(this,d),this._valueToPositionMap={},this._size=0,this._smallValues=new t.default([],this._smallerComparator),this._largeValues=new t.default([],this._greaterComparator),this.getNewPositionForValue=this.getNewPositionForValue.bind(this),this.getValuePosition=this.getValuePosition.bind(this),this.getSize=this.getSize.bind(this),this.replaceFurthestValuePosition=this.replaceFurthestValuePosition.bind(this)}return s(d,[{key:"getSize",value:function(){return this._size}},{key:"getValuePosition",value:function(m){return this._valueToPositionMap[m]===void 0?null:this._valueToPositionMap[m]}},{key:"getNewPositionForValue",value:function(m){(0,r.default)(this._valueToPositionMap[m]===void 0,"Shouldn't try to find new position for value already stored in BufferSet");var p=this._size;return this._size++,this._pushToHeaps(p,m),this._valueToPositionMap[m]=p,p}},{key:"replaceFurthestValuePosition",value:function(m,p,g){if((0,r.default)(this._valueToPositionMap[g]===void 0,"Shouldn't try to replace values with value already stored value in BufferSet"),this._cleanHeaps(),this._smallValues.empty()||this._largeValues.empty())return null;var _=this._smallValues.peek().value,y=this._largeValues.peek().value;if(_>=m&&y<=p)return null;var w;m-_>y-p?(w=_,this._smallValues.pop()):(w=y,this._largeValues.pop());var E=this._valueToPositionMap[w];return delete this._valueToPositionMap[w],this._valueToPositionMap[g]=E,this._pushToHeaps(E,g),E}},{key:"_pushToHeaps",value:function(m,p){var g={position:m,value:p};this._smallValues.push(g),this._largeValues.push(g)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var m=Math.min(this._smallValues.size(),this._largeValues.size()),p=Math.max(this._smallValues.size(),this._largeValues.size());p>10*m&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var m=this._smallValues.size()<this._largeValues.size()?this._smallValues:this._largeValues,p=new t.default([],this._smallerComparator),g=new t.default([],this._greaterComparator);!m.empty();){var _=m.pop();this._valueToPositionMap[_.value]!==void 0&&(p.push(_),g.push(_))}this._smallValues=p,this._largeValues=g}},{key:"_cleanHeap",value:function(m){for(;!m.empty()&&this._valueToPositionMap[m.peek().value]===void 0;)m.pop()}},{key:"_smallerComparator",value:function(m,p){return m.value<p.value}},{key:"_greaterComparator",value:function(m,p){return m.value>p.value}}]),d}(),c=u;e.default=c})(x_);var T_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(qi),r=n(Qi);function n(p){return p&&p.__esModule?p:{default:p}}function a(p,g){if(!(p instanceof g))throw new TypeError("Cannot call a class as a function")}function o(p,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function s(p,g,_){return g&&o(p.prototype,g),_&&o(p,_),p}var u=function(g){return Math.floor(g/2)},c=r.default.Int32Array||function(p){for(var g=[],_=p-1;_>=0;--_)g[_]=0;return g};function d(p){for(var g=1;g<p;)g*=2;return g}var h=function(){function p(g){a(this,p),this._size=g.length,this._half=d(this._size),this._heap=new c(2*this._half);var _;for(_=0;_<this._size;++_)this._heap[this._half+_]=g[_];for(_=this._half-1;_>0;--_)this._heap[_]=this._heap[2*_]+this._heap[2*_+1]}return s(p,[{key:"set",value:function(_,y){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var w=this._half+_;for(this._heap[w]=y,w=u(w);w!==0;w=u(w))this._heap[w]=this._heap[2*w]+this._heap[2*w+1]}},{key:"get",value:function(_){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var y=this._half+_;return this._heap[y]}},{key:"getSize",value:function(){return this._size}},{key:"sumUntil",value:function(_){if((0,t.default)(0<=_&&_<this._size+1,"Index out of range %s",_),_===0)return 0;for(var y=this._half+_-1,w=this._heap[y];y!==1;y=u(y))y%2===1&&(w+=this._heap[y-1]);return w}},{key:"sumTo",value:function(_){return(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_),this.sumUntil(_+1)}},{key:"sum",value:function(_,y){return(0,t.default)(_<=y,"Begin must precede end"),this.sumUntil(y)-this.sumUntil(_)}},{key:"greatestLowerBound",value:function(_){if(_<0)return-1;var y=1;if(this._heap[y]<=_)return this._size;for(;y<this._half;){var w=this._heap[2*y];_<w?y=2*y:(y=2*y+1,_-=w)}return y-this._half}},{key:"greatestStrictLowerBound",value:function(_){if(_<=0)return-1;var y=1;if(this._heap[y]<_)return this._size;for(;y<this._half;){var w=this._heap[2*y];_<=w?y=2*y:(y=2*y+1,_-=w)}return y-this._half}},{key:"leastUpperBound",value:function(_){return this.greatestStrictLowerBound(_)+1}},{key:"leastStrictUpperBound",value:function(_){return this.greatestLowerBound(_)+1}}],[{key:"uniform",value:function(_,y){for(var w=[],E=_-1;E>=0;--E)w[E]=y;return new p(w)}},{key:"empty",value:function(_){return p.uniform(_,0)}}]),p}(),m=h;e.default=m})(T_);var S_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(Q),r=s(pf),n=s(qi),a=s(i_),o=s(sf);function s(m){return m&&m.__esModule?m:{default:m}}function u(m){return(0,o.default)(m.props,["align","allowCellsRecycling","cellClassName","columnKey","flexGrow","fixed","fixedRight","maxWidth","minWidth","isReorderable","isResizable","pureRendering","width"])}function c(m,p){m.cell.push(p.props.cell),m.footer.push(p.props.footer),m.header.push(p.props.header)}function d(m){var p=[];t.default.Children.forEach(m,function(E,S){E!=null&&((0,n.default)(E.type.__TableColumnGroup__||E.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),p.push(E))});var g={cell:[],footer:[],groupHeader:[],header:[]},_=[],y=p.length&&p[0].type.__TableColumnGroup__;if(y){var w=(0,a.default)(p,u);return(0,r.default)(p,function(E,S){g.groupHeader.push(E.props.header),t.default.Children.forEach(E.props.children,function(T){var C=u(T);C.groupIdx=S,_.push(C),c(g,T)})}),{columnGroupProps:w,columnProps:_,elementTemplates:g,useGroupHeader:!0}}return(0,r.default)(p,function(E){_.push(u(E)),c(g,E)}),{columnGroupProps:[],columnProps:_,elementTemplates:g,useGroupHeader:!1}}var h=d;e.default=h})(S_);var yl={},Cf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,n){var a=r.storedHeights,o=r.rowOffsetIntervalTree,s=r.rowSettings,u=s.rowHeightGetter,c=s.subRowHeightGetter,d=u(n)+c(n),h=a[n];return d!==h&&(o.set(n,d),a[n]=d,r.scrollContentHeight+=d-h),a[n]}})(Cf);Object.defineProperty(yl,"__esModule",{value:!0});yl.getScrollAnchor=O7;yl.scrollTo=P_;var E_=Tf(ml),M_=Tf(ta),R7=Tf(Cf);function Tf(e){return e&&e.__esModule?e:{default:e}}function O7(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?k7(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?P_(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function P_(e,t){var r=(0,M_.default)(e),n=r.availableHeight,a=e.rowOffsetIntervalTree,o=e.rowSettings,s=e.scrollContentHeight,u=o.rowsCount;if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var c=0,d=0,h=void 0;if(!(t<=0))if(t>=s-n)c=void 0,h=u-1;else{var m=a.greatestLowerBound(t);c=(0,E_.default)(m,0,Math.max(u-1,0));var p=a.sumUntil(c);d=p-t}return{firstIndex:c,firstOffset:d,lastIndex:h,changed:!0}}function k7(e,t){var r=(0,M_.default)(e),n=r.availableHeight,a=e.rowOffsetIntervalTree,o=e.rowSettings,s=e.storedHeights,u=e.scrollY,c=o.rowsCount;if(c===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=(0,E_.default)(t,0,Math.max(c-1,0)),(0,R7.default)(e,t);var d=a.sumUntil(t),h=d+s[t],m=t,p=void 0;if(!(d<u))if(u+n<h)m=void 0,p=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:m,firstOffset:0,lastIndex:p,changed:!0}}var R_={};function N7(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var D7=N7,A7=D7,Mu=yf;function L7(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Mu(r),r=r===r?r:0),t!==void 0&&(t=Mu(t),t=t===t?t:0),A7(Mu(e),t,r)}var O_=L7;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(u_),r=o(O_),n=o(Mn),a=o(mf);function o(y){return y&&y.__esModule?y:{default:y}}function s(){return s=Object.assign||function(y){for(var w=1;w<arguments.length;w++){var E=arguments[w];for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&(y[S]=E[S])}return y},s.apply(this,arguments)}var u=15,c=100;function d(y,w,E){var S=w.scrollLeft,T=y.columnResizingData,C=y.isColumnResizing,x=y.scrollX;S!==void 0&&(!E||S!==E.scrollLeft)&&(x=S),x=h(y,w,E.scrollToColumn,x);var P=(0,a.default)(y),R=P.maxScrollX;return x=(0,r.default)(x,0,R),C=w.isColumnResizing!==void 0?w.isColumnResizing:C,T=C?T:{},s({},y,{columnResizingData:T,isColumnResizing:C,maxScrollX:R,scrollX:x})}function h(y,w,E,S){var T=w.scrollToColumn;if((0,t.default)(T))return S;var C=(0,a.default)(y),x=C.availableScrollWidth,P=C.fixedColumns,R=C.scrollableColumns,D=P.length,A=R.length,I=A===0,N=T===E,k=T<D,W=T>=D+A;if(N||k||W||I)return S;for(var j=Math.min(T-D,R.length-1),$=0,B=0;B<j;++B)$+=R[B].width;var G=R[j].width,q=$+G-x;return S<q?q:S>$?$:S}function m(y,w){var E=w.cellMinWidth,S=w.cellMaxWidth,T=w.cellWidth,C=w.columnKey,x=w.combinedWidth,P=w.clientX,R=w.clientY,D=w.leftOffset;return s({},y,{isColumnResizing:!0,columnResizingData:{left:D+x-T,width:T,minWidth:E,maxWidth:S,initialEvent:{clientX:P,clientY:R,preventDefault:n.default},key:C}})}function p(y,w){var E=w.columnKey,S=w.left,T=w.scrollStart,C=w.width,x=(0,a.default)(y),P=x.fixedColumns,R=P.some(function(D){return D.columnKey===E});return s({},y,{isColumnReordering:!0,columnReorderingData:{cancelReorder:!1,dragDistance:0,isFixed:R,scrollStart:T,columnKey:E,columnWidth:C,originalLeft:S,columnBefore:void 0,columnAfter:void 0}})}function g(y,w){var E=y.columnReorderingData,S=E.isFixed,T=E.originalLeft,C=E.scrollStart,x=y.maxScrollX,P=y.scrollX;if(!S){var R=T-C+w,D=(0,a.default)(y),A=D.availableScrollWidth;w+=P-C,R>A-c?P=Math.min(P+u,x):R<=c&&(P=Math.max(P-u,0))}var I=s({},y.columnReorderingData,{dragDistance:w,columnBefore:void 0,columnAfter:void 0});return s({},y,{scrollX:P,columnReorderingData:I})}var _={initialize:d,reorderColumn:p,reorderColumnMove:g,resizeColumn:m};e.default=_})(R_);var k_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var t=s(O_),r=s(pl),n=s(ta),a=s(gf),o=s(Cf);function s(p){return p&&p.__esModule?p:{default:p}}function u(){return u=Object.assign||function(p){for(var g=1;g<arguments.length;g++){var _=arguments[g];for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&(p[y]=_[y])}return p},u.apply(this,arguments)}function c(p,g){var _=u({},p),y=d(_,g),w=_.rowSettings,E=_.scrollContentHeight,S=w.rowsCount,T=(0,a.default)(_),C=T.bodyHeight,x=E-C,P;x===0?(y.firstViewportIdx>0&&(y=d(_,{firstOffset:0,lastIndex:S-1})),P=0):P=y.firstOffset;var R=y.firstViewportIdx,D=y.endViewportIdx;h(_,y,p.scrolling);var A=0;return S>0&&(A=_.rowOffsets[y.firstViewportIdx]-P),A=(0,t.default)(A,0,x),u(_,{firstRowIndex:R,firstRowOffset:P,endRowIndex:D,maxScrollY:x,scrollY:A})}function d(p,g){var _=(0,r.default)(p),y=_.bufferRowCount,w=_.maxAvailableHeight,E=p.rowSettings.rowsCount;if(E===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var S=g.firstIndex,T=g.firstOffset,C=g.lastIndex;(S>=E||C>=E)&&(C=E-1);var x=1,P=S,R=T;C!==void 0&&(x=-1,P=C,R=0);for(var D=P,A=D;D<E&&D>=0&&R<w;)R+=(0,o.default)(p,D),A=D,D+=x;var I=!1;if(R<w&&D===E&&C===void 0)for(I=!0,D=S-1;D>=0&&R<w;)R+=(0,o.default)(p,D),P=D,--D;var N=Math.min(P,A),k=Math.max(N-y,0);for(D=k;D<N;D++)(0,o.default)(p,D);var W=Math.max(P,A)+1,j=Math.min(W+y,E);for(D=W;D<j;D++)(0,o.default)(p,D);var $=(0,n.default)(p),B=$.availableHeight;if(C!==void 0||I){T=T+Math.min(B-R,0);var G=p.storedHeights;-1*T>=G[N]&&(N+=1,T+=G[N])}return{endBufferIdx:j,endViewportIdx:W,firstBufferIdx:k,firstOffset:T,firstViewportIdx:N}}function h(p,g,_){var y=p.rowBufferSet,w=p.rowOffsetIntervalTree,E=p.storedHeights,S=g.endBufferIdx,T=g.endViewportIdx,C=g.firstBufferIdx,x=g.firstViewportIdx,P=S-C;if(P===0){p.rowOffsets={},p.rows=[];return}for(var R=_?x:C,D=_?T:S,A=[],I={},N=w.sumUntil(R),k=R;k<D;k++){I[k]=N,N+=E[k];var W=m(k,y,R,D,P);A[W]=k}p.rows=A,p.rowOffsets=I}function m(p,g,_,y,w){var E=g.getValuePosition(p);return E===null&&g.getSize()>=w&&(E=g.replaceFurthestValuePosition(_,y-1,p)),E===null&&(E=g.getNewPositionForValue(p)),E}})(k_);var bl={},N_={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105};e.default=t})(N_);var Bc={"--scrollbar-face-active-color":"#7d7d7d","--scrollbar-face-color":"#c2c2c2","--scrollbar-face-margin":"4px","--scrollbar-face-radius":"6px","--scrollbar-size":"15px","--scrollbar-size-large":"17px","--scrollbar-track-color":"#fff","--border-color":"#d3d3d3","--fbui-white":"#fff","--fbui-desktop-background-light":"#f6f7f8"};function D_(e){if(Bc.hasOwnProperty(e))return Bc[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}D_.CSS_VARS=Bc;var I7=D_;(function(e){function t(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(q){return typeof q}:t=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},t(B)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=p(Q),n=p(Mi),a=p(Vt),o=p(hr),s=p(Mn),u=p(N_),c=p(lf),d=p(vl),h=p(I7),m=p(_o);function p(B){return B&&B.__esModule?B:{default:B}}function g(B,G){if(!(B instanceof G))throw new TypeError("Cannot call a class as a function")}function _(B,G){for(var q=0;q<G.length;q++){var U=G[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(B,U.key,U)}}function y(B,G,q){return G&&_(B.prototype,G),B}function w(B,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),G&&E(B,G)}function E(B,G){return E=Object.setPrototypeOf||function(U,z){return U.__proto__=z,U},E(B,G)}function S(B){var G=x();return function(){var U=P(B),z;if(G){var H=P(this).constructor;z=Reflect.construct(U,arguments,H)}else z=U.apply(this,arguments);return T(this,z)}}function T(B,G){return G&&(t(G)==="object"||typeof G=="function")?G:C(B)}function C(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function x(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(B){return!1}}function P(B){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},P(B)}function R(B,G,q){return G in B?Object.defineProperty(B,G,{value:q,enumerable:!0,configurable:!0,writable:!0}):B[G]=q,B}var D={position:0,scrollable:!1},A=parseInt((0,h.default)("--scrollbar-face-margin"),10),I=A*2,N=30,k=40,W=null,j=function(B){w(q,B);var G=S(q);function q(U){var z;return g(this,q),z=G.call(this,U),R(C(z),"_onRefFace",function(H){return z._faceRef=H}),R(C(z),"_onRefRoot",function(H){return z._rootRef=H}),R(C(z),"scrollBy",function(H){z._onWheel(H)}),R(C(z),"_shouldHandleX",function(H){return z.props.orientation==="horizontal"?z._shouldHandleChange(H):!1}),R(C(z),"_shouldHandleY",function(H){return z.props.orientation!=="horizontal"?z._shouldHandleChange(H):!1}),R(C(z),"_shouldHandleChange",function(H){var te=z._calculateState(z.state.position+H,z.props.size,z.props.contentSize,z.props.orientation);return te.position!==z.state.position}),R(C(z),"_calculateState",function(H,te,X,K){var J=Math.max(1,te);if(X<=J)return D;var ie="".concat(H,"_").concat(J,"_").concat(X,"_").concat(K);if(z._stateKey===ie)return z._stateForKey;var le=K==="horizontal",se=J/X,ce=J*se;ce<N&&(se=(J-N)/(X-J),ce=N);var he=!0,pe=X-J;H<0?H=0:H>pe&&(H=pe);var oe=z._mouseMoveTracker?z._mouseMoveTracker.isDragging():!1,ve={faceSize:ce,isDragging:oe,isHorizontal:le,position:H,scale:se,scrollable:he};return z._stateKey=ie,z._stateForKey=ve,ve}),R(C(z),"_onWheelY",function(H,te){z._onWheel(te)}),R(C(z),"_onWheelX",function(H,te){z._onWheel(H)}),R(C(z),"_onWheel",function(H){var te=z.props;z._setNextState(z._calculateState(z.state.position+H,te.size,te.contentSize,te.orientation))}),R(C(z),"_onMouseDown",function(H){var te;if(H.target!==z._faceRef){var X=H.nativeEvent,K=z.state.isHorizontal?X.offsetX||X.layerX||z.getTouchX(X):X.offsetY||X.layerY||z.getTouchY(X),J=z.props;K/=z.state.scale,te=z._calculateState(K-z.state.faceSize*.5/z.state.scale,J.size,J.contentSize,J.orientation)}else te={};te.focused=!0,z._setNextState(te),z._mouseMoveTracker.captureMouseMoves(H),z._rootRef.focus()}),R(C(z),"_onTouchCancel",function(H){H.stopPropagation()}),R(C(z),"_onTouchEnd",function(H){H.stopPropagation()}),R(C(z),"_onTouchMove",function(H){H.stopPropagation()}),R(C(z),"_onTouchStart",function(H){H.stopPropagation(),z._onMouseDown(H)}),R(C(z),"_onMouseMove",function(H,te){var X=z.props,K=z.state.isHorizontal?H*(z.props.isRTL?-1:1):te;K/=z.state.scale;var J=n.default.flushSync||function(ie){return ie()};J(function(){return z._setNextState(z._calculateState(z.state.position+K,X.size,X.contentSize,X.orientation))})}),R(C(z),"_onMouseMoveEnd",function(){z._nextState=null,z._mouseMoveTracker.releaseMouseMoves(),z.setState({isDragging:!1})}),R(C(z),"_onKeyDown",function(H){var te=H.keyCode;if(te!==u.default.TAB){var X=k,K=0;if(z.state.isHorizontal)switch(te){case u.default.HOME:K=-1,X=z.props.contentSize;break;case u.default.LEFT:K=-1;break;case u.default.RIGHT:K=1;break;default:return}if(!z.state.isHorizontal)switch(te){case u.default.SPACE:H.shiftKey?K=-1:K=1;break;case u.default.HOME:K=-1,X=z.props.contentSize;break;case u.default.UP:K=-1;break;case u.default.DOWN:K=1;break;case u.default.PAGE_UP:K=-1,X=z.props.size;break;case u.default.PAGE_DOWN:K=1,X=z.props.size;break;default:return}H.preventDefault();var J=z.props;z._setNextState(z._calculateState(z.state.position+X*K,J.size,J.contentSize,J.orientation))}}),R(C(z),"_onFocus",function(){z.setState({focused:!0})}),R(C(z),"_onBlur",function(){z.setState({focused:!1})}),R(C(z),"_blur",function(){var H=n.default.findDOMNode(C(z));if(H)try{z._onBlur(),H.blur()}catch(te){}}),R(C(z),"getTouchX",function(H){return Math.round(H.targetTouches[0].clientX-H.target.getBoundingClientRect().x)}),R(C(z),"getTouchY",function(H){return Math.round(H.targetTouches[0].clientY-H.target.getBoundingClientRect().y)}),R(C(z),"_setNextState",function(H,te){te=te||z.props;var X=te.position,K=z.state.position!==H.position;if(X===void 0){var J=K?z._didScroll:void 0;z.setState(H,J)}else if(X===H.position)z.setState(H);else{H.position!==void 0&&H.position!==z.state.position&&z.props.onScroll(H.position);return}K&&W!==C(z)&&(W&&W._blur(),W=C(z))}),R(C(z),"_didScroll",function(){z.props.onScroll(z.state.position)}),z.state=z._calculateState(U.position||U.defaultPosition||0,U.size,U.contentSize,U.orientation),z._initialRender=!0,z}return y(q,[{key:"componentDidUpdate",value:function(){var z=this.props.position;z===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(z,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var z=this.props.size,H,te,X=this.state.isHorizontal,K=!X,J=this.state.focused||this.state.isDragging,ie=this.state.faceSize,le=this.props.isOpaque,se=this.props.verticalTop||0,ce=(0,o.default)({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":K,"ScrollbarLayout/mainHorizontal":X,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":le,"public/Scrollbar/mainActive":J}),he=(0,o.default)({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":X,"ScrollbarLayout/faceVertical":K,"public/Scrollbar/faceActive":J,"public/Scrollbar/face":!0}),pe=this.state.position*this.state.scale+A;return X?(H={width:z},te={width:ie-I,top:0,bottom:0},(0,m.default)(te,pe,0,this._initialRender,this.props.isRTL)):(H={top:se,height:z},this.props.isRTL&&(H.left=H.right||0,H.right="auto"),te={height:ie-I},(0,m.default)(te,0,pe,this._initialRender,this.props.isRTL),te.left=0,te.right=0),H.touchAction="none",H.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&(H.backgroundColor=(0,h.default)("--fbui-desktop-background-light")),r.default.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:ce,style:H,ref:this._onRefRoot},r.default.createElement("div",{ref:this._onRefFace,className:he,style:te}))}},{key:"componentDidMount",value:function(){var z=this.props.orientation==="horizontal",H=z?this._onWheelX:this._onWheelY;this._wheelHandler=new c.default(H,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new d.default(this._onMouseMove,this._onMouseMoveEnd,document.documentElement,this.props.touchEnabled),this.props.position!==void 0&&this.state.position!==this.props.position&&this._didScroll(),this._initialRender=!1}},{key:"componentWillUnmount",value:function(){this._rootRef&&this._rootRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._nextState=null,this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null),W===this&&(W=null)}}]),q}(r.default.PureComponent);R(j,"propTypes",{contentSize:a.default.number.isRequired,defaultPosition:a.default.number,isOpaque:a.default.bool,orientation:a.default.oneOf(["vertical","horizontal"]),onScroll:a.default.func,position:a.default.number,size:a.default.number.isRequired,trackColor:a.default.oneOf(["gray"]),touchEnabled:a.default.bool,zIndex:a.default.number,verticalTop:a.default.number,isRTL:a.default.bool}),R(j,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:s.default,orientation:"vertical",zIndex:99}),j.KEYBOARD_SCROLL_AMOUNT=k,j.SIZE=parseInt((0,h.default)("--scrollbar-size"),10),j.OFFSET=1;var $=j;e.default=$})(bl);(function(e){function t(x){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(R){return typeof R}:t=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},t(x)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(sf),n=_(x_),a=_(T_),o=_(bo),s=_(S_),u=g(Xe),c=yl,d=_(R_),h=_(k_),m=_(bl);function p(x){if(typeof WeakMap!="function")return null;var P=new WeakMap,R=new WeakMap;return(p=function(A){return A?R:P})(x)}function g(x,P){if(x&&x.__esModule)return x;if(x===null||t(x)!=="object"&&typeof x!="function")return{default:x};var R=p(P);if(R&&R.has(x))return R.get(x);var D={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in x)if(I!=="default"&&Object.prototype.hasOwnProperty.call(x,I)){var N=A?Object.getOwnPropertyDescriptor(x,I):null;N&&(N.get||N.set)?Object.defineProperty(D,I,N):D[I]=x[I]}return D.default=x,R&&R.set(x,D),D}function _(x){return x&&x.__esModule?x:{default:x}}function y(){return y=Object.assign||function(x){for(var P=1;P<arguments.length;P++){var R=arguments[P];for(var D in R)Object.prototype.hasOwnProperty.call(R,D)&&(x[D]=R[D])}return x},y.apply(this,arguments)}function w(){return{columnProps:[],columnGroupProps:[],elementTemplates:{cell:[],footer:[],groupHeader:[],header:[]},elementHeights:{footerHeight:0,groupHeaderHeight:0,headerHeight:0},propsRevision:null,rowSettings:{bufferRowCount:void 0,rowAttributesGetter:void 0,rowHeight:0,rowHeightGetter:function(){return 0},rowsCount:0,subRowHeight:0,subRowHeightGetter:function(){return 0}},scrollFlags:{overflowX:"auto",overflowY:"auto",showScrollbarX:!0,showScrollbarY:!0},tableSize:{height:void 0,maxHeight:0,ownerHeight:void 0,useMaxHeight:!1,width:0},columnReorderingData:{},columnResizingData:{},firstRowIndex:0,firstRowOffset:0,isColumnReordering:!1,isColumnResizing:!1,maxScrollX:0,maxScrollY:0,rowOffsets:{},rows:[],scrollContentHeight:0,scrollX:0,scrollbarXHeight:m.default.SIZE,scrollY:0,scrollbarYWidth:m.default.SIZE,scrolling:!1,rowBufferSet:new n.default,storedHeights:[],rowOffsetIntervalTree:null}}function E(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w(),P=arguments.length>1?arguments[1]:void 0;switch(P.type){case u.INITIALIZE:{var R=P.props,D=T(x,R);D=S(D);var A=(0,c.getScrollAnchor)(D,R);return D=(0,h.default)(D,A),d.default.initialize(D,R,{})}case u.PROP_CHANGE:{var I=P.newProps,N=P.oldProps,k=T(x,I);(N.rowsCount!==I.rowsCount||N.rowHeight!==I.rowHeight||N.subRowHeight!==I.subRowHeight)&&(k=S(k)),N.rowsCount!==I.rowsCount&&(k.rowBufferSet=new n.default);var W=(0,c.getScrollAnchor)(k,I,N);return(!(0,o.default)(x,k)||W.changed)&&(k=(0,h.default)(k,W)),k=d.default.initialize(k,I,N),(k.scrollX!==x.scrollX||k.scrollY!==x.scrollY)&&(k.scrolling=k.scrolling||!0),k}case u.SCROLL_END:{var j=y({},x,{scrolling:!1}),$={firstIndex:x.firstRowIndex,firstOffset:x.firstRowOffset,lastIndex:x.lastIndex};return(0,h.default)(j,$)}case u.SCROLL_TO_Y:{var B=P.scrollY,G=y({},x,{scrolling:!0}),q=(0,c.scrollTo)(G,B);return(0,h.default)(G,q)}case u.COLUMN_RESIZE:{var U=P.resizeData;return d.default.resizeColumn(x,U)}case u.COLUMN_REORDER_START:{var z=P.reorderData;return d.default.reorderColumn(x,z)}case u.COLUMN_REORDER_END:return y({},x,{isColumnReordering:!1,columnReorderingData:{}});case u.COLUMN_REORDER_MOVE:{var H=P.deltaX;return d.default.reorderColumnMove(x,H)}case u.SCROLL_TO_X:{var te=P.scrollX;return y({},x,{scrolling:!0,scrollX:te})}default:return x}}function S(x){for(var P=x.rowSettings,R=P.rowHeight,D=P.rowsCount,A=P.subRowHeight,I=R+A,N=a.default.uniform(D,I),k=D*I,W=new Array(D),j=0;j<D;j++)W[j]=I;return y({},x,{rowOffsetIntervalTree:N,scrollContentHeight:k,storedHeights:W})}function T(x,P){var R=(0,s.default)(P.children),D=R.columnGroupProps,A=R.columnProps,I=R.elementTemplates,N=R.useGroupHeader,k=y({},x,{columnGroupProps:D,columnProps:A,elementTemplates:I,propsRevision:x.propsRevision+1});k.elementHeights=y({},k.elementHeights,(0,r.default)(P,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),N||(k.elementHeights.groupHeaderHeight=0),k.rowSettings=y({},k.rowSettings,(0,r.default)(P,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var W=k.rowSettings,j=W.rowHeight,$=W.subRowHeight;return k.rowSettings.rowHeightGetter=P.rowHeightGetter||function(){return j},k.rowSettings.subRowHeightGetter=P.subRowHeightGetter||function(){return $||0},k.rowSettings.rowAttributesGetter=P.rowAttributesGetter,k.scrollFlags=y({},k.scrollFlags,(0,r.default)(P,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),k.tableSize=y({},k.tableSize,(0,r.default)(P,["height","maxHeight","ownerHeight","width"])),k.tableSize.useMaxHeight=k.tableSize.height===void 0,k.scrollbarXHeight=P.scrollbarXHeight,k.scrollbarYWidth=P.scrollbarYWidth,k}var C=E;e.default=C})(w_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=xb,r=n(w_);function n(o){return o&&o.__esModule?o:{default:o}}var a={get:function(){return(0,t.createStore)(r.default)}};e.default=a})(__);var A_={},$7=Yb,z7=Qb,F7=ul,W7=Zt,j7=hl,B7=cf,H7=Gb,V7=df,U7="[object Map]",q7="[object Set]",G7=Object.prototype,Y7=G7.hasOwnProperty;function X7(e){if(e==null)return!0;if(j7(e)&&(W7(e)||typeof e=="string"||typeof e.splice=="function"||B7(e)||V7(e)||F7(e)))return!e.length;var t=z7(e);if(t==U7||t==q7)return!e.size;if(H7(e))return!$7(e).length;for(var r in e)if(Y7.call(e,r))return!1;return!0}var Z7=X7;(function(e){function t(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(I){return typeof I}:t=function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},t(D)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(Q),n=c(Vt),a=c(Z7),o=c(hr),s=c(En),u=c(bl);function c(D){return D&&D.__esModule?D:{default:D}}function d(){return d=Object.assign||function(D){for(var A=1;A<arguments.length;A++){var I=arguments[A];for(var N in I)Object.prototype.hasOwnProperty.call(I,N)&&(D[N]=I[N])}return D},d.apply(this,arguments)}function h(D,A){if(!(D instanceof A))throw new TypeError("Cannot call a class as a function")}function m(D,A){for(var I=0;I<A.length;I++){var N=A[I];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(D,N.key,N)}}function p(D,A,I){return A&&m(D.prototype,A),D}function g(D,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(A&&A.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),A&&_(D,A)}function _(D,A){return _=Object.setPrototypeOf||function(N,k){return N.__proto__=k,N},_(D,A)}function y(D){var A=S();return function(){var N=T(D),k;if(A){var W=T(this).constructor;k=Reflect.construct(N,arguments,W)}else k=N.apply(this,arguments);return w(this,k)}}function w(D,A){return A&&(t(A)==="object"||typeof A=="function")?A:E(D)}function E(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function S(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(D){return!1}}function T(D){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},T(D)}function C(D,A,I){return A in D?Object.defineProperty(D,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):D[A]=I,D}var x=function(D){g(I,D);var A=y(I);function I(){var N;h(this,I);for(var k=arguments.length,W=new Array(k),j=0;j<k;j++)W[j]=arguments[j];return N=A.call.apply(A,[this].concat(W)),C(E(N),"state",{}),C(E(N),"_onScrollBarsUpdate",function($){N.setState($)}),C(E(N),"_onVerticalScroll",function($){N.state.scrollToY!==void 0&&N.state.scrollToY($)}),C(E(N),"_onHorizontalScroll",function($){N.state.scrollToX!==void 0&&N.state.scrollToX($)}),N}return p(I,[{key:"render",value:function(){var k=!(0,a.default)(this.state)&&r.default.createElement(u.default,{size:this.state.viewportHeight,contentSize:this.state.contentHeight,onScroll:this._onVerticalScroll,verticalTop:this.state.scrollbarYOffsetTop,position:this.state.scrollY,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL}),W=!(0,a.default)(this.state)&&r.default.createElement(P,{contentSize:this.state.contentWidth,offset:this.state.scrollbarXOffsetTop,onScroll:this._onHorizontalScroll,position:this.state.scrollX,size:this.state.viewportWidth,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL});return r.default.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:W,scrollbarY:k})}}]),I}(r.default.Component),P=function(D){g(I,D);var A=y(I);function I(){return h(this,I),A.apply(this,arguments)}return p(I,[{key:"render",value:function(){var k=this.props,W=k.offset,j=k.size,$={height:u.default.SIZE,width:j},B={height:u.default.SIZE,overflow:"hidden",width:j,top:W};return r.default.createElement("div",{className:(0,s.default)((0,o.default)("public/fixedDataTable/horizontalScrollbar")),style:$},r.default.createElement("div",{style:B},r.default.createElement(u.default,d({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),I}(r.default.PureComponent);C(P,"propTypes",{contentSize:n.default.number.isRequired,offset:n.default.number.isRequired,onScroll:n.default.func.isRequired,position:n.default.number.isRequired,size:n.default.number.isRequired,isRTL:n.default.bool});var R=x;e.default=R})(A_);(function(e){function t($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(G){return typeof G}:t=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},t($)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=w(Q),n=xb,a=w(qi),o=w(sf),s=y(Xe),u=y(Dr),c=y(Ar),d=w(Lb),h=w(__),m=w(bl),p=w(A_),g=v_;function _($){if(typeof WeakMap!="function")return null;var B=new WeakMap,G=new WeakMap;return(_=function(U){return U?G:B})($)}function y($,B){if($&&$.__esModule)return $;if($===null||t($)!=="object"&&typeof $!="function")return{default:$};var G=_(B);if(G&&G.has($))return G.get($);var q={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in $)if(z!=="default"&&Object.prototype.hasOwnProperty.call($,z)){var H=U?Object.getOwnPropertyDescriptor($,z):null;H&&(H.get||H.set)?Object.defineProperty(q,z,H):q[z]=$[z]}return q.default=$,G&&G.set($,q),q}function w($){return $&&$.__esModule?$:{default:$}}function E(){return E=Object.assign||function($){for(var B=1;B<arguments.length;B++){var G=arguments[B];for(var q in G)Object.prototype.hasOwnProperty.call(G,q)&&($[q]=G[q])}return $},E.apply(this,arguments)}function S($,B){if(!($ instanceof B))throw new TypeError("Cannot call a class as a function")}function T($,B){for(var G=0;G<B.length;G++){var q=B[G];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty($,q.key,q)}}function C($,B,G){return B&&T($.prototype,B),G&&T($,G),$}function x($,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(B&&B.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),B&&P($,B)}function P($,B){return P=Object.setPrototypeOf||function(q,U){return q.__proto__=U,q},P($,B)}function R($){var B=I();return function(){var q=N($),U;if(B){var z=N(this).constructor;U=Reflect.construct(q,arguments,z)}else U=q.apply(this,arguments);return D(this,U)}}function D($,B){return B&&(t(B)==="object"||typeof B=="function")?B:A($)}function A($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function I(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch($){return!1}}function N($){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},N($)}function k($,B,G){return B in $?Object.defineProperty($,B,{value:G,enumerable:!0,configurable:!0,writable:!0}):$[B]=G,$}var W=function($){x(G,$);var B=R(G);function G(q){var U;return S(this,G),U=B.call(this,q),U.reduxStore=h.default.get(),U.scrollActions=(0,n.bindActionCreators)(c,U.reduxStore.dispatch),U.columnActions=(0,n.bindActionCreators)(u,U.reduxStore.dispatch),U.reduxStore.dispatch({type:s.INITIALIZE,props:q}),U.unsubscribe=U.reduxStore.subscribe(U.onStoreUpdate.bind(A(U))),U.state={boundState:G.getBoundState(U.reduxStore),reduxStore:U.reduxStore,props:q},U}return C(G,[{key:"componentWillUnmount",value:function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.reduxStore=null}},{key:"render",value:function(){var U=r.default.createElement(d.default,E({},this.props,this.state.boundState,{scrollActions:this.scrollActions,columnActions:this.columnActions}));return this.props.defaultScrollbars?r.default.createElement(p.default,this.props,U):U}},{key:"onStoreUpdate",value:function(){var U=G.getBoundState(this.reduxStore);this.state.boundState.propsRevision===U.propsRevision&&this.setState({boundState:U})}}],[{key:"getDerivedStateFromProps",value:function(U,z){return(0,a.default)(U.height!==void 0||U.maxHeight!==void 0,"You must set either a height or a maxHeight"),U===z.props?null:(z.reduxStore.dispatch({type:s.PROP_CHANGE,newProps:U,oldProps:z.props}),{boundState:G.getBoundState(z.reduxStore),props:U})}},{key:"getBoundState",value:function(U){var z=U.getState(),H=(0,o.default)(z,["columnGroupProps","columnProps","columnReorderingData","columnResizingData","elementHeights","elementTemplates","firstRowIndex","endRowIndex","isColumnReordering","isColumnResizing","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return H}}]),G}(r.default.Component);k(W,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:m.default.SIZE,scrollbarYWidth:m.default.SIZE});var j=(0,g.polyfill)(W);e.default=j})(bb);var L_={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(N){return typeof N}:t=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=s(Q),n=s(Vt),a=s(hr),o=s(En);function s(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var I=1;I<arguments.length;I++){var N=arguments[I];for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&(A[k]=N[k])}return A},u.apply(this,arguments)}function c(A,I){var N=Object.keys(A);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(A);I&&(k=k.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),N.push.apply(N,k)}return N}function d(A){for(var I=1;I<arguments.length;I++){var N=arguments[I]!=null?arguments[I]:{};I%2?c(Object(N),!0).forEach(function(k){P(A,k,N[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(N)):c(Object(N)).forEach(function(k){Object.defineProperty(A,k,Object.getOwnPropertyDescriptor(N,k))})}return A}function h(A,I){if(A==null)return{};var N=m(A,I),k,W;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(W=0;W<j.length;W++)k=j[W],!(I.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(A,k)&&(N[k]=A[k])}return N}function m(A,I){if(A==null)return{};var N={},k=Object.keys(A),W,j;for(j=0;j<k.length;j++)W=k[j],!(I.indexOf(W)>=0)&&(N[W]=A[W]);return N}function p(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function g(A,I){for(var N=0;N<I.length;N++){var k=I[N];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(A,k.key,k)}}function _(A,I,N){return I&&g(A.prototype,I),A}function y(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),I&&w(A,I)}function w(A,I){return w=Object.setPrototypeOf||function(k,W){return k.__proto__=W,k},w(A,I)}function E(A){var I=C();return function(){var k=x(A),W;if(I){var j=x(this).constructor;W=Reflect.construct(k,arguments,j)}else W=k.apply(this,arguments);return S(this,W)}}function S(A,I){return I&&(t(I)==="object"||typeof I=="function")?I:T(A)}function T(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function C(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(A){return!1}}function x(A){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},x(A)}function P(A,I,N){return I in A?Object.defineProperty(A,I,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[I]=N,A}var R=function(A){y(N,A);var I=E(N);function N(){return p(this,N),I.apply(this,arguments)}return _(N,[{key:"render",value:function(){var W=this.props,j=W.height,$=W.width,B=W.style,G=W.className,q=W.children,U=h(W,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),z=d({height:j,width:$},B);return r.default.createElement("div",u({},U,{className:(0,o.default)((0,a.default)("fixedDataTableCellLayout/wrap"),(0,a.default)("public/fixedDataTableCell/wrap"),(0,a.default)("public/fixedDataTableCell/cellContent"),G),style:z}),q)}}]),N}(r.default.Component);P(R,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var D=R;e.default=D})(L_);var I_={};(function(e){function t(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(C){return typeof C}:t=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},t(S)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(Q),n=a(Vt);function a(S){return S&&S.__esModule?S:{default:S}}function o(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function s(S,T){for(var C=0;C<T.length;C++){var x=T[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}function u(S,T,C){return T&&s(S.prototype,T),S}function c(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),T&&d(S,T)}function d(S,T){return d=Object.setPrototypeOf||function(x,P){return x.__proto__=P,x},d(S,T)}function h(S){var T=g();return function(){var x=_(S),P;if(T){var R=_(this).constructor;P=Reflect.construct(x,arguments,R)}else P=x.apply(this,arguments);return m(this,P)}}function m(S,T){return T&&(t(T)==="object"||typeof T=="function")?T:p(S)}function p(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function g(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(S){return!1}}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},_(S)}function y(S,T,C){return T in S?Object.defineProperty(S,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):S[T]=C,S}var w=function(S){c(C,S);var T=h(C);function C(){return o(this,C),T.apply(this,arguments)}return u(C,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),C}(r.default.Component);y(w,"__TableColumn__",!0),y(w,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,fixedRight:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func]),cell:n.default.oneOfType([n.default.node,n.default.func]),footer:n.default.oneOfType([n.default.node,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,flexGrow:n.default.number,isResizable:n.default.bool,isReorderable:n.default.bool,allowCellsRecycling:n.default.bool,pureRendering:n.default.bool,cellClassName:n.default.string}),y(w,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});var E=w;e.default=E})(I_);var $_={};(function(e){function t(S){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(C){return typeof C}:t=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},t(S)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=a(Q),n=a(Vt);function a(S){return S&&S.__esModule?S:{default:S}}function o(S,T){if(!(S instanceof T))throw new TypeError("Cannot call a class as a function")}function s(S,T){for(var C=0;C<T.length;C++){var x=T[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}function u(S,T,C){return T&&s(S.prototype,T),S}function c(S,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(T&&T.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),T&&d(S,T)}function d(S,T){return d=Object.setPrototypeOf||function(x,P){return x.__proto__=P,x},d(S,T)}function h(S){var T=g();return function(){var x=_(S),P;if(T){var R=_(this).constructor;P=Reflect.construct(x,arguments,R)}else P=x.apply(this,arguments);return m(this,P)}}function m(S,T){return T&&(t(T)==="object"||typeof T=="function")?T:p(S)}function p(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function g(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(S){return!1}}function _(S){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},_(S)}function y(S,T,C){return T in S?Object.defineProperty(S,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):S[T]=C,S}var w=function(S){c(C,S);var T=h(C);function C(){return o(this,C),T.apply(this,arguments)}return u(C,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),C}(r.default.Component);y(w,"__TableColumnGroup__",!0),y(w,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func])}),y(w,"defaultProps",{fixed:!1});var E=w;e.default=E})($_);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Cell",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DataCell",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Column",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"ColumnGroup",{enumerable:!0,get:function(){return o.default}}),e.version=void 0;var t=s(bb),r=s(_f),n=s(L_),a=s(I_),o=s($_);function s(c){return c&&c.__esModule?c:{default:c}}var u="1.2.22";e.version=u})(yb);var ts=yb;const K7="#f4f4f8",Q7="#edeef1",J7="#e3e5ea",eU="#f9f9fb",tU="#ffcb05",rU="#1faff3",nU="#e5e5e5",iU="#5b6372",aU="#3a4356",oU="#3c3c42",sU="#a3a3a3",lU="#d0d3db",uU="_tableWrapper_1ode4_16",cU="_table_1ode4_16",dU="_tableHeader_1ode4_78",fU="_tableCell_1ode4_88",hU="_tableCellContent_1ode4_99",pU="_headerColor_1ode4_105",mU="_rowColor_1ode4_109",Oa={athensGray:K7,athensGrayDark:Q7,athensGrayDark2:J7,athensGrayLight:eU,defaultBrandColor:tU,dodgerBlue:rU,mercury:nU,shuttleGrayDark:iU,oxfordBlue:aU,darkModeDefaultBackground:oU,indicatorGrey:sU,secondaryButtonHover:lU,tableWrapper:uU,table:cU,tableHeader:dU,tableCell:fU,tableCellContent:hU,headerColor:pU,rowColor:mU},vU="#f4f4f8",gU="#edeef1",yU="#e3e5ea",bU="#f9f9fb",_U="#ffcb05",wU="#1faff3",xU="#e5e5e5",CU="#5b6372",TU="#3a4356",SU="#3c3c42",EU="#a3a3a3",MU="#d0d3db",PU="_headerCell_2qf2w_16",RU="_noSort_2qf2w_29",OU="_standard_2qf2w_29",kU="_caret_2qf2w_33",NU="_headerLabel_2qf2w_38",DU="_icon_2qf2w_43",AU="_numberIcon_2qf2w_50",LU="_dateIcon_2qf2w_54",IU="_textIcon_2qf2w_58",$U="_booleanIcon_2qf2w_62",zU="_sortIcon_2qf2w_66",FU="_sortAscending_2qf2w_74",WU="_sortDescending_2qf2w_78",hn={athensGray:vU,athensGrayDark:gU,athensGrayDark2:yU,athensGrayLight:bU,defaultBrandColor:_U,dodgerBlue:wU,mercury:xU,shuttleGrayDark:CU,oxfordBlue:TU,darkModeDefaultBackground:SU,indicatorGrey:EU,secondaryButtonHover:MU,headerCell:PU,noSort:RU,standard:OU,caret:kU,headerLabel:NU,icon:DU,numberIcon:AU,dateIcon:LU,textIcon:IU,booleanIcon:$U,sortIcon:zU,sortAscending:FU,sortDescending:WU};var z_={exports:{}};/*!
264
+ Copyright (c) 2018 Jed Watson.
265
+ Licensed under the MIT License (MIT), see
266
+ http://jedwatson.github.io/classnames
267
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",s=0;s<arguments.length;s++){var u=arguments[s];u&&(o=a(o,n(u)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var u in o)t.call(o,u)&&o[u]&&(s=a(s,u));return s}function a(o,s){return s?o?o+" "+s:o+s:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(z_);var jU=z_.exports;const Ga=O.getDefaultExportFromCjs(jU),BU="_icon_t30x8_1",HU="_numberIcon_t30x8_11",VU="_dateIcon_t30x8_15",UU="_textIcon_t30x8_19",qU="_booleanIcon_t30x8_23",xa={icon:BU,numberIcon:HU,dateIcon:VU,textIcon:UU,booleanIcon:qU},GU=({columnType:e})=>V.jsx("div",{className:Ga(xa.icon,{[xa.numberIcon]:O.isNumber(e),[xa.dateIcon]:O.isDatetime(e),[xa.textIcon]:O.isText(e),[xa.booleanIcon]:O.isBoolean(e)})}),YU=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:a,sortIcon:o="standard"})=>V.jsxs("div",{className:hn.headerCell,onClick:()=>{t(e)},children:[a&&V.jsx(GU,{columnType:e.type}),V.jsx("div",{className:hn.headerLabel,children:n}),V.jsx("div",{className:Ga(hn.sortIcon,{[hn.caret]:o==="caret",[hn.standard]:o==="standard",[hn.noSort]:!r||e.direction===0,[hn.sortAscending]:r&&e.direction===1,[hn.sortDescending]:r&&e.direction===-1})})]}),XU=26,ZU=26,uv=20,F_=36,W_=29,j_=24,Hc=350,KU=126,QU=38,JU=55,e9=(e,t,r,n)=>{const o=document.createElement("canvas").getContext("2d");if(!o)return[];o.font=`13px ${n||"Open Sans"}`;const s=e.columns.map(m=>o.measureText(m.name).width+F_+(t?W_:0)),u=o.measureText("0").width,c=e.columns.map(m=>({type:O.simpleColumnType(m.type),index:m.index})),{rows:d}=e,h=c.map(m=>{const p=d.reduce((g,_)=>{var S;const y=_[m.index].displayValue,w=(S=r[m.index])!=null&&S.isHtml?t9(y):y,E=m.type==="number"?_[m.index].displayValue.length*u:o.measureText(w).width;return Math.max(g,E)},0);return j_+p});return s.map((m,p)=>{var g;return(g=r[p])!=null&&g.width?r[p].width:Math.ceil(Math.max(KU,Math.min(Hc,Math.max(m,h[p]))))})};function t9(e){const t=document.createElement("div");return t.innerHTML=e,B_(t)}function B_(e){let t,r,n,a;for(r="",t=0;t<e.childNodes.length;t++)a=e.childNodes[t],n=null,a.nodeType===1?n=B_(a):a.nodeType===3&&(n=a.nodeValue),n&&(r+=n);return r}const cv=e=>e%2===1,dv=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:a})=>{var d,h,m,p,g,_,y,w,E,S,T,C,x,P,R,D,A,I;let o=r.chart.textColor;const s=r.typography.fontFamily;let u=r.chart.backgroundColor;const c=O.getSlightlyDifferentColor(u);return a?(h=(d=n==null?void 0:n.header)==null?void 0:d.color)!=null&&h.enabled&&(u=((p=(m=n==null?void 0:n.header)==null?void 0:m.color)==null?void 0:p.backgroundColor)||c,o=((_=(g=n==null?void 0:n.header)==null?void 0:g.color)==null?void 0:_.textColor)||o):((w=(y=n==null?void 0:n.columns)==null?void 0:y.alternatingColor)!=null&&w.enabled&&cv(e)&&(u=((S=(E=n==null?void 0:n.columns)==null?void 0:E.alternatingColor)==null?void 0:S.backgroundColor)||c,o=((C=(T=n==null?void 0:n.columns)==null?void 0:T.alternatingColor)==null?void 0:C.textColor)||o),(P=(x=n==null?void 0:n.rows)==null?void 0:x.alternatingColor)!=null&&P.enabled&&cv(t)&&(u=((D=(R=n==null?void 0:n.rows)==null?void 0:R.alternatingColor)==null?void 0:D.backgroundColor)||c,o=((I=(A=n==null?void 0:n.rows)==null?void 0:A.alternatingColor)==null?void 0:I.textColor)||o)),{color:o,backgroundColor:u,fontFamily:s}};function H_(e){return typeof e=="string"}function ka(e,t,r){return e===void 0||H_(e)?t:re({},t,{ownerState:re({},t.ownerState,r)})}const r9={disableDefaultClasses:!1},V_=Z.createContext(r9);process.env.NODE_ENV!=="production"&&(V_.displayName="ClassNameConfiguratorContext");function n9(e){const{disableDefaultClasses:t}=Z.useContext(V_);return r=>t?"":e(r)}function U_(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function i9(e,t,r){return typeof e=="function"?e(t,r):e}function fv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function a9(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:a,className:o}=e;if(!t){const g=Oe(r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),_=re({},r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),y=re({},r,a,n);return g.length>0&&(y.className=g),Object.keys(_).length>0&&(y.style=_),{props:y,internalRef:void 0}}const s=U_(re({},a,n)),u=fv(n),c=fv(a),d=t(s),h=Oe(d==null?void 0:d.className,r==null?void 0:r.className,o,a==null?void 0:a.className,n==null?void 0:n.className),m=re({},d==null?void 0:d.style,r==null?void 0:r.style,a==null?void 0:a.style,n==null?void 0:n.style),p=re({},d,r,c,u);return h.length>0&&(p.className=h),Object.keys(m).length>0&&(p.style=m),{props:p,internalRef:d.ref}}const o9=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xn(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1}=e,s=Ee(e,o9),u=o?{}:i9(n,a),{props:c,internalRef:d}=a9(re({},s,{externalSlotProps:u})),h=zt(d,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return ka(r,re({},c,{ref:h}),a)}function wo(){const e=qy(Hd);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(e),e[Vd]||e}function Ps(e,t){var r,n;const{timeout:a,easing:o,style:s={}}=e;return{duration:(r=s.transitionDuration)!=null?r:typeof a=="number"?a:a[t.mode]||0,easing:(n=s.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}const s9=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Vc(e){return`scale(${e}, ${qt(e,2)})`}const l9={entering:{opacity:1,transform:Vc(1)},entered:{opacity:1,transform:"none"}},Pu=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ya=Z.forwardRef(function(t,r){const{addEndListener:n,appear:a=!0,children:o,easing:s,in:u,onEnter:c,onEntered:d,onEntering:h,onExit:m,onExited:p,onExiting:g,style:_,timeout:y="auto",TransitionComponent:w=Br}=t,E=Ee(t,s9),S=Pi(),T=Z.useRef(),C=wo(),x=Z.useRef(null),P=zt(x,o.ref,r),R=$=>B=>{if($){const G=x.current;B===void 0?$(G):$(G,B)}},D=R(h),A=R(($,B)=>{const{duration:G,delay:q,easing:U}=Ps({style:_,timeout:y,easing:s},{mode:"enter"});let z;y==="auto"?(z=C.transitions.getAutoHeightDuration($.clientHeight),T.current=z):z=G,$.style.transition=[C.transitions.create("opacity",{duration:z,delay:q}),C.transitions.create("transform",{duration:Pu?z:z*.666,delay:q,easing:U})].join(","),c&&c($,B)}),I=R(d),N=R(g),k=R($=>{const{duration:B,delay:G,easing:q}=Ps({style:_,timeout:y,easing:s},{mode:"exit"});let U;y==="auto"?(U=C.transitions.getAutoHeightDuration($.clientHeight),T.current=U):U=B,$.style.transition=[C.transitions.create("opacity",{duration:U,delay:G}),C.transitions.create("transform",{duration:Pu?U:U*.666,delay:Pu?G:G||U*.333,easing:q})].join(","),$.style.opacity=0,$.style.transform=Vc(.75),m&&m($)}),W=R(p),j=$=>{y==="auto"&&S.start(T.current||0,$),n&&n(x.current,$)};return V.jsx(w,re({appear:a,in:u,nodeRef:x,onEnter:A,onEntered:I,onEntering:D,onExit:k,onExited:W,onExiting:N,addEndListener:j,timeout:y==="auto"?null:y},E,{children:($,B)=>Z.cloneElement(o,re({style:re({opacity:0,transform:Vc(.75),visibility:$==="exited"&&!u?"hidden":void 0},l9[$],_,o.props.style),ref:P},B))}))});process.env.NODE_ENV!=="production"&&(Ya.propTypes={addEndListener:v.func,appear:v.bool,children:Qn.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});Ya.muiSupportAuto=!0;var jt="top",ur="bottom",cr="right",Bt="left",Sf="auto",xo=[jt,ur,cr,Bt],$i="start",Xa="end",u9="clippingParents",q_="viewport",Ca="popper",c9="reference",hv=xo.reduce(function(e,t){return e.concat([t+"-"+$i,t+"-"+Xa])},[]),G_=[].concat(xo,[Sf]).reduce(function(e,t){return e.concat([t,t+"-"+$i,t+"-"+Xa])},[]),d9="beforeRead",f9="read",h9="afterRead",p9="beforeMain",m9="main",v9="afterMain",g9="beforeWrite",y9="write",b9="afterWrite",_9=[d9,f9,h9,p9,m9,v9,g9,y9,b9];function Wr(e){return e?(e.nodeName||"").toLowerCase():null}function Xt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yn(e){var t=Xt(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Xt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ef(e){if(typeof ShadowRoot=="undefined")return!1;var t=Xt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function w9(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!sr(o)||!Wr(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var u=a[s];u===!1?o.removeAttribute(s):o.setAttribute(s,u===!0?"":u)}))})}function x9(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=s.reduce(function(c,d){return c[d]="",c},{});!sr(a)||!Wr(a)||(Object.assign(a.style,u),Object.keys(o).forEach(function(c){a.removeAttribute(c)}))})}}const C9={name:"applyStyles",enabled:!0,phase:"write",fn:w9,effect:x9,requires:["computeStyles"]};function Fr(e){return e.split("-")[0]}var qn=Math.max,Rs=Math.min,zi=Math.round;function Uc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Y_(){return!/^((?!chrome|android).)*safari/i.test(Uc())}function Fi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&sr(e)&&(a=e.offsetWidth>0&&zi(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&zi(n.height)/e.offsetHeight||1);var s=Yn(e)?Xt(e):window,u=s.visualViewport,c=!Y_()&&r,d=(n.left+(c&&u?u.offsetLeft:0))/a,h=(n.top+(c&&u?u.offsetTop:0))/o,m=n.width/a,p=n.height/o;return{width:m,height:p,top:h,right:d+m,bottom:h+p,left:d,x:d,y:h}}function Mf(e){var t=Fi(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function X_(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Ef(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Jr(e){return Xt(e).getComputedStyle(e)}function T9(e){return["table","td","th"].indexOf(Wr(e))>=0}function Rn(e){return((Yn(e)?e.ownerDocument:e.document)||window.document).documentElement}function _l(e){return Wr(e)==="html"?e:e.assignedSlot||e.parentNode||(Ef(e)?e.host:null)||Rn(e)}function pv(e){return!sr(e)||Jr(e).position==="fixed"?null:e.offsetParent}function S9(e){var t=/firefox/i.test(Uc()),r=/Trident/i.test(Uc());if(r&&sr(e)){var n=Jr(e);if(n.position==="fixed")return null}var a=_l(e);for(Ef(a)&&(a=a.host);sr(a)&&["html","body"].indexOf(Wr(a))<0;){var o=Jr(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Co(e){for(var t=Xt(e),r=pv(e);r&&T9(r)&&Jr(r).position==="static";)r=pv(r);return r&&(Wr(r)==="html"||Wr(r)==="body"&&Jr(r).position==="static")?t:r||S9(e)||t}function Pf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Aa(e,t,r){return qn(e,Rs(t,r))}function E9(e,t,r){var n=Aa(e,t,r);return n>r?r:n}function Z_(){return{top:0,right:0,bottom:0,left:0}}function K_(e){return Object.assign({},Z_(),e)}function Q_(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var M9=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,K_(typeof t!="number"?t:Q_(t,xo))};function P9(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,u=Fr(r.placement),c=Pf(u),d=[Bt,cr].indexOf(u)>=0,h=d?"height":"width";if(!(!o||!s)){var m=M9(a.padding,r),p=Mf(o),g=c==="y"?jt:Bt,_=c==="y"?ur:cr,y=r.rects.reference[h]+r.rects.reference[c]-s[c]-r.rects.popper[h],w=s[c]-r.rects.reference[c],E=Co(o),S=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,T=y/2-w/2,C=m[g],x=S-p[h]-m[_],P=S/2-p[h]/2+T,R=Aa(C,P,x),D=c;r.modifiersData[n]=(t={},t[D]=R,t.centerOffset=R-P,t)}}function R9(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||X_(t.elements.popper,a)&&(t.elements.arrow=a))}const O9={name:"arrow",enabled:!0,phase:"main",fn:P9,effect:R9,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Wi(e){return e.split("-")[1]}var k9={top:"auto",right:"auto",bottom:"auto",left:"auto"};function N9(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:zi(r*a)/a||0,y:zi(n*a)/a||0}}function mv(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,u=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,m=e.isFixed,p=s.x,g=p===void 0?0:p,_=s.y,y=_===void 0?0:_,w=typeof h=="function"?h({x:g,y}):{x:g,y};g=w.x,y=w.y;var E=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),T=Bt,C=jt,x=window;if(d){var P=Co(r),R="clientHeight",D="clientWidth";if(P===Xt(r)&&(P=Rn(r),Jr(P).position!=="static"&&u==="absolute"&&(R="scrollHeight",D="scrollWidth")),P=P,a===jt||(a===Bt||a===cr)&&o===Xa){C=ur;var A=m&&P===x&&x.visualViewport?x.visualViewport.height:P[R];y-=A-n.height,y*=c?1:-1}if(a===Bt||(a===jt||a===ur)&&o===Xa){T=cr;var I=m&&P===x&&x.visualViewport?x.visualViewport.width:P[D];g-=I-n.width,g*=c?1:-1}}var N=Object.assign({position:u},d&&k9),k=h===!0?N9({x:g,y},Xt(r)):{x:g,y};if(g=k.x,y=k.y,c){var W;return Object.assign({},N,(W={},W[C]=S?"0":"",W[T]=E?"0":"",W.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",W))}return Object.assign({},N,(t={},t[C]=S?y+"px":"",t[T]=E?g+"px":"",t.transform="",t))}function D9(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,u=r.roundOffsets,c=u===void 0?!0:u,d={placement:Fr(t.placement),variation:Wi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mv(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mv(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const A9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D9,data:{}};var rs={passive:!0};function L9(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,u=s===void 0?!0:s,c=Xt(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(h){h.addEventListener("scroll",r.update,rs)}),u&&c.addEventListener("resize",r.update,rs),function(){o&&d.forEach(function(h){h.removeEventListener("scroll",r.update,rs)}),u&&c.removeEventListener("resize",r.update,rs)}}const I9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:L9,data:{}};var $9={left:"right",right:"left",bottom:"top",top:"bottom"};function ps(e){return e.replace(/left|right|bottom|top/g,function(t){return $9[t]})}var z9={start:"end",end:"start"};function vv(e){return e.replace(/start|end/g,function(t){return z9[t]})}function Rf(e){var t=Xt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Of(e){return Fi(Rn(e)).left+Rf(e).scrollLeft}function F9(e,t){var r=Xt(e),n=Rn(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,u=0,c=0;if(a){o=a.width,s=a.height;var d=Y_();(d||!d&&t==="fixed")&&(u=a.offsetLeft,c=a.offsetTop)}return{width:o,height:s,x:u+Of(e),y:c}}function W9(e){var t,r=Rn(e),n=Rf(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=qn(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=qn(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),u=-n.scrollLeft+Of(e),c=-n.scrollTop;return Jr(a||r).direction==="rtl"&&(u+=qn(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:u,y:c}}function kf(e){var t=Jr(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function J_(e){return["html","body","#document"].indexOf(Wr(e))>=0?e.ownerDocument.body:sr(e)&&kf(e)?e:J_(_l(e))}function La(e,t){var r;t===void 0&&(t=[]);var n=J_(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=Xt(n),s=a?[o].concat(o.visualViewport||[],kf(n)?n:[]):n,u=t.concat(s);return a?u:u.concat(La(_l(s)))}function qc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function j9(e,t){var r=Fi(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function gv(e,t,r){return t===q_?qc(F9(e,r)):Yn(t)?j9(t,r):qc(W9(Rn(e)))}function B9(e){var t=La(_l(e)),r=["absolute","fixed"].indexOf(Jr(e).position)>=0,n=r&&sr(e)?Co(e):e;return Yn(n)?t.filter(function(a){return Yn(a)&&X_(a,n)&&Wr(a)!=="body"}):[]}function H9(e,t,r,n){var a=t==="clippingParents"?B9(e):[].concat(t),o=[].concat(a,[r]),s=o[0],u=o.reduce(function(c,d){var h=gv(e,d,n);return c.top=qn(h.top,c.top),c.right=Rs(h.right,c.right),c.bottom=Rs(h.bottom,c.bottom),c.left=qn(h.left,c.left),c},gv(e,s,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function e0(e){var t=e.reference,r=e.element,n=e.placement,a=n?Fr(n):null,o=n?Wi(n):null,s=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(a){case jt:c={x:s,y:t.y-r.height};break;case ur:c={x:s,y:t.y+t.height};break;case cr:c={x:t.x+t.width,y:u};break;case Bt:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var d=a?Pf(a):null;if(d!=null){var h=d==="y"?"height":"width";switch(o){case $i:c[d]=c[d]-(t[h]/2-r[h]/2);break;case Xa:c[d]=c[d]+(t[h]/2-r[h]/2);break}}return c}function Za(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,u=r.boundary,c=u===void 0?u9:u,d=r.rootBoundary,h=d===void 0?q_:d,m=r.elementContext,p=m===void 0?Ca:m,g=r.altBoundary,_=g===void 0?!1:g,y=r.padding,w=y===void 0?0:y,E=K_(typeof w!="number"?w:Q_(w,xo)),S=p===Ca?c9:Ca,T=e.rects.popper,C=e.elements[_?S:p],x=H9(Yn(C)?C:C.contextElement||Rn(e.elements.popper),c,h,s),P=Fi(e.elements.reference),R=e0({reference:P,element:T,strategy:"absolute",placement:a}),D=qc(Object.assign({},T,R)),A=p===Ca?D:P,I={top:x.top-A.top+E.top,bottom:A.bottom-x.bottom+E.bottom,left:x.left-A.left+E.left,right:A.right-x.right+E.right},N=e.modifiersData.offset;if(p===Ca&&N){var k=N[a];Object.keys(I).forEach(function(W){var j=[cr,ur].indexOf(W)>=0?1:-1,$=[jt,ur].indexOf(W)>=0?"y":"x";I[W]+=k[$]*j})}return I}function V9(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,d=c===void 0?G_:c,h=Wi(n),m=h?u?hv:hv.filter(function(_){return Wi(_)===h}):xo,p=m.filter(function(_){return d.indexOf(_)>=0});p.length===0&&(p=m);var g=p.reduce(function(_,y){return _[y]=Za(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[Fr(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function U9(e){if(Fr(e)===Sf)return[];var t=ps(e);return[vv(e),t,vv(t)]}function q9(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,u=s===void 0?!0:s,c=r.fallbackPlacements,d=r.padding,h=r.boundary,m=r.rootBoundary,p=r.altBoundary,g=r.flipVariations,_=g===void 0?!0:g,y=r.allowedAutoPlacements,w=t.options.placement,E=Fr(w),S=E===w,T=c||(S||!_?[ps(w)]:U9(w)),C=[w].concat(T).reduce(function(K,J){return K.concat(Fr(J)===Sf?V9(t,{placement:J,boundary:h,rootBoundary:m,padding:d,flipVariations:_,allowedAutoPlacements:y}):J)},[]),x=t.rects.reference,P=t.rects.popper,R=new Map,D=!0,A=C[0],I=0;I<C.length;I++){var N=C[I],k=Fr(N),W=Wi(N)===$i,j=[jt,ur].indexOf(k)>=0,$=j?"width":"height",B=Za(t,{placement:N,boundary:h,rootBoundary:m,altBoundary:p,padding:d}),G=j?W?cr:Bt:W?ur:jt;x[$]>P[$]&&(G=ps(G));var q=ps(G),U=[];if(o&&U.push(B[k]<=0),u&&U.push(B[G]<=0,B[q]<=0),U.every(function(K){return K})){A=N,D=!1;break}R.set(N,U)}if(D)for(var z=_?3:1,H=function(J){var ie=C.find(function(le){var se=R.get(le);if(se)return se.slice(0,J).every(function(ce){return ce})});if(ie)return A=ie,"break"},te=z;te>0;te--){var X=H(te);if(X==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const G9={name:"flip",enabled:!0,phase:"main",fn:q9,requiresIfExists:["offset"],data:{_skip:!1}};function yv(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function bv(e){return[jt,cr,ur,Bt].some(function(t){return e[t]>=0})}function Y9(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Za(t,{elementContext:"reference"}),u=Za(t,{altBoundary:!0}),c=yv(s,n),d=yv(u,a,o),h=bv(c),m=bv(d);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const X9={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y9};function Z9(e,t,r){var n=Fr(e),a=[Bt,jt].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],u=o[1];return s=s||0,u=(u||0)*a,[Bt,cr].indexOf(n)>=0?{x:u,y:s}:{x:s,y:u}}function K9(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=G_.reduce(function(h,m){return h[m]=Z9(m,t.rects,o),h},{}),u=s[t.placement],c=u.x,d=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s}const Q9={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K9};function J9(e){var t=e.state,r=e.name;t.modifiersData[r]=e0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const eq={name:"popperOffsets",enabled:!0,phase:"read",fn:J9,data:{}};function tq(e){return e==="x"?"y":"x"}function rq(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,u=s===void 0?!1:s,c=r.boundary,d=r.rootBoundary,h=r.altBoundary,m=r.padding,p=r.tether,g=p===void 0?!0:p,_=r.tetherOffset,y=_===void 0?0:_,w=Za(t,{boundary:c,rootBoundary:d,padding:m,altBoundary:h}),E=Fr(t.placement),S=Wi(t.placement),T=!S,C=Pf(E),x=tq(C),P=t.modifiersData.popperOffsets,R=t.rects.reference,D=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(P){if(o){var W,j=C==="y"?jt:Bt,$=C==="y"?ur:cr,B=C==="y"?"height":"width",G=P[C],q=G+w[j],U=G-w[$],z=g?-D[B]/2:0,H=S===$i?R[B]:D[B],te=S===$i?-D[B]:-R[B],X=t.elements.arrow,K=g&&X?Mf(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Z_(),ie=J[j],le=J[$],se=Aa(0,R[B],K[B]),ce=T?R[B]/2-z-se-ie-I.mainAxis:H-se-ie-I.mainAxis,he=T?-R[B]/2+z+se+le+I.mainAxis:te+se+le+I.mainAxis,pe=t.elements.arrow&&Co(t.elements.arrow),oe=pe?C==="y"?pe.clientTop||0:pe.clientLeft||0:0,ve=(W=N==null?void 0:N[C])!=null?W:0,fe=G+ce-ve-oe,_e=G+he-ve,we=Aa(g?Rs(q,fe):q,G,g?qn(U,_e):U);P[C]=we,k[C]=we-G}if(u){var Se,Ce=C==="x"?jt:Bt,ft=C==="x"?ur:cr,Ue=P[x],nt=x==="y"?"height":"width",ht=Ue+w[Ce],Ie=Ue-w[ft],qe=[jt,Bt].indexOf(E)!==-1,Pt=(Se=N==null?void 0:N[x])!=null?Se:0,pt=qe?ht:Ue-R[nt]-D[nt]-Pt+I.altAxis,Rt=qe?Ue+R[nt]+D[nt]-Pt-I.altAxis:Ie,pr=g&&qe?E9(pt,Ue,Rt):Aa(g?pt:ht,Ue,g?Rt:Ie);P[x]=pr,k[x]=pr-Ue}t.modifiersData[n]=k}}const nq={name:"preventOverflow",enabled:!0,phase:"main",fn:rq,requiresIfExists:["offset"]};function iq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aq(e){return e===Xt(e)||!sr(e)?Rf(e):iq(e)}function oq(e){var t=e.getBoundingClientRect(),r=zi(t.width)/e.offsetWidth||1,n=zi(t.height)/e.offsetHeight||1;return r!==1||n!==1}function sq(e,t,r){r===void 0&&(r=!1);var n=sr(t),a=sr(t)&&oq(t),o=Rn(t),s=Fi(e,a,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Wr(t)!=="body"||kf(o))&&(u=aq(t)),sr(t)?(c=Fi(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Of(o))),{x:s.left+u.scrollLeft-c.x,y:s.top+u.scrollTop-c.y,width:s.width,height:s.height}}function lq(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&a(c)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function uq(e){var t=lq(e);return _9.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function cq(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function dq(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var _v={placement:"bottom",modifiers:[],strategy:"absolute"};function wv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function fq(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?_v:a;return function(u,c,d){d===void 0&&(d=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},_v,o),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],p=!1,g={state:h,setOptions:function(E){var S=typeof E=="function"?E(h.options):E;y(),h.options=Object.assign({},o,h.options,S),h.scrollParents={reference:Yn(u)?La(u):u.contextElement?La(u.contextElement):[],popper:La(c)};var T=uq(dq([].concat(n,h.options.modifiers)));return h.orderedModifiers=T.filter(function(C){return C.enabled}),_(),g.update()},forceUpdate:function(){if(!p){var E=h.elements,S=E.reference,T=E.popper;if(wv(S,T)){h.rects={reference:sq(S,Co(T),h.options.strategy==="fixed"),popper:Mf(T)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(I){return h.modifiersData[I.name]=Object.assign({},I.data)});for(var C=0;C<h.orderedModifiers.length;C++){if(h.reset===!0){h.reset=!1,C=-1;continue}var x=h.orderedModifiers[C],P=x.fn,R=x.options,D=R===void 0?{}:R,A=x.name;typeof P=="function"&&(h=P({state:h,options:D,name:A,instance:g})||h)}}}},update:cq(function(){return new Promise(function(w){g.forceUpdate(),w(h)})}),destroy:function(){y(),p=!0}};if(!wv(u,c))return g;g.setOptions(d).then(function(w){!p&&d.onFirstUpdate&&d.onFirstUpdate(w)});function _(){h.orderedModifiers.forEach(function(w){var E=w.name,S=w.options,T=S===void 0?{}:S,C=w.effect;if(typeof C=="function"){var x=C({state:h,name:E,instance:g,options:T}),P=function(){};m.push(x||P)}})}function y(){m.forEach(function(w){return w()}),m=[]}return g}}var hq=[I9,eq,A9,C9,Q9,G9,nq,O9,X9],pq=fq({defaultModifiers:hq});function mq(e){return typeof e=="function"?e():e}const Ka=Z.forwardRef(function(t,r){const{children:n,container:a,disablePortal:o=!1}=t,[s,u]=Z.useState(null),c=zt(Z.isValidElement(n)?n.ref:null,r);if(Gn(()=>{o||u(mq(a)||document.body)},[a,o]),Gn(()=>{if(s&&!o)return Oc(r,s),()=>{Oc(r,null)}},[r,s,o]),o){if(Z.isValidElement(n)){const d={ref:c};return Z.cloneElement(n,d)}return V.jsx(Z.Fragment,{children:n})}return V.jsx(Z.Fragment,{children:s&&f1.createPortal(n,s)})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:v.node,container:v.oneOfType([Qr,v.func]),disablePortal:v.bool});process.env.NODE_ENV!=="production"&&(Ka.propTypes=Xd(Ka.propTypes));const t0="base";function vq(e){return`${t0}--${e}`}function gq(e,t){return`${t0}-${e}-${t}`}function r0(e,t){const r=Yy[t];return r?vq(r):gq(e,t)}function yq(e,t){const r={};return t.forEach(n=>{r[n]=r0(e,n)}),r}const n0="Popper";function bq(e){return r0(n0,e)}yq(n0,["root"]);const _q=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],wq=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function xq(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Os(e){return typeof e=="function"?e():e}function wl(e){return e.nodeType!==void 0}function Cq(e){return!wl(e)}const Tq=()=>st({root:["root"]},n9(bq)),Sq={},Eq=Z.forwardRef(function(t,r){var n;const{anchorEl:a,children:o,direction:s,disablePortal:u,modifiers:c,open:d,placement:h,popperOptions:m,popperRef:p,slotProps:g={},slots:_={},TransitionProps:y}=t,w=Ee(t,_q),E=Z.useRef(null),S=zt(E,r),T=Z.useRef(null),C=zt(T,p),x=Z.useRef(C);Gn(()=>{x.current=C},[C]),Z.useImperativeHandle(p,()=>T.current,[]);const P=xq(h,s),[R,D]=Z.useState(P),[A,I]=Z.useState(Os(a));Z.useEffect(()=>{T.current&&T.current.forceUpdate()}),Z.useEffect(()=>{a&&I(Os(a))},[a]),Gn(()=>{if(!A||!d)return;const $=q=>{D(q.placement)};if(process.env.NODE_ENV!=="production"&&A&&wl(A)&&A.nodeType===1){const q=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&q.top===0&&q.left===0&&q.right===0&&q.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
268
+ `))}let B=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{$(q)}}];c!=null&&(B=B.concat(c)),m&&m.modifiers!=null&&(B=B.concat(m.modifiers));const G=pq(A,E.current,re({placement:P},m,{modifiers:B}));return x.current(G),()=>{G.destroy(),x.current(null)}},[A,u,c,d,m,P]);const N={placement:R};y!==null&&(N.TransitionProps=y);const k=Tq(),W=(n=_.root)!=null?n:"div",j=xn({elementType:W,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:k.root});return V.jsx(W,re({},j,{children:typeof o=="function"?o(N):o}))}),i0=Z.forwardRef(function(t,r){const{anchorEl:n,children:a,container:o,direction:s="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:d,open:h,placement:m="bottom",popperOptions:p=Sq,popperRef:g,style:_,transition:y=!1,slotProps:w={},slots:E={}}=t,S=Ee(t,wq),[T,C]=Z.useState(!0),x=()=>{C(!1)},P=()=>{C(!0)};if(!c&&!h&&(!y||T))return null;let R;if(o)R=o;else if(n){const I=Os(n);R=I&&wl(I)?$t(I).body:$t(null).body}const D=!h&&c&&(!y||T)?"none":void 0,A=y?{in:h,onEnter:x,onExited:P}:void 0;return V.jsx(Ka,{disablePortal:u,container:R,children:V.jsx(Eq,re({anchorEl:n,direction:s,disablePortal:u,modifiers:d,ref:r,open:y?!T:h,placement:m,popperOptions:p,popperRef:g,slotProps:w,slots:E},S,{style:re({position:"fixed",top:0,left:0,display:D},_),TransitionProps:A,children:a}))})});process.env.NODE_ENV!=="production"&&(i0.propTypes={anchorEl:Sn(v.oneOfType([Qr,v.object,v.func]),e=>{if(e.open){const t=Os(e.anchorEl);if(t&&wl(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
269
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||Cq(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
270
+ `))}return null}),children:v.oneOfType([v.node,v.func]),container:v.oneOfType([Qr,v.func]),direction:v.oneOf(["ltr","rtl"]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:v.oneOf(["absolute","fixed"])}),popperRef:co,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),transition:v.bool});var Nf={};Object.defineProperty(Nf,"__esModule",{value:!0});var a0=Nf.default=void 0,Mq=Rq(Q),Pq=nb;function o0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(o0=function(n){return n?r:t})(e)}function Rq(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=o0(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}function Oq(e){return Object.keys(e).length===0}function kq(e=null){const t=Mq.useContext(Pq.ThemeContext);return!t||Oq(t)?e:t}a0=Nf.default=kq;const xv=e=>{let t;return e<1?t=5.11916*qt(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Nq=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Dq=ke(i0,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),To=Z.forwardRef(function(t,r){var n;const a=a0(),o=rt({props:t,name:"MuiPopper"}),{anchorEl:s,component:u,components:c,componentsProps:d,container:h,disablePortal:m,keepMounted:p,modifiers:g,open:_,placement:y,popperOptions:w,popperRef:E,transition:S,slots:T,slotProps:C}=o,x=Ee(o,Nq),P=(n=T==null?void 0:T.root)!=null?n:c==null?void 0:c.Root,R=re({anchorEl:s,container:h,disablePortal:m,keepMounted:p,modifiers:g,open:_,placement:y,popperOptions:w,popperRef:E,transition:S},x);return V.jsx(Dq,re({as:u,direction:a==null?void 0:a.direction,slots:{root:P},slotProps:C!=null?C:d},R,{ref:r}))});process.env.NODE_ENV!=="production"&&(To.propTypes={anchorEl:v.oneOfType([Qr,v.object,v.func]),children:v.oneOfType([v.node,v.func]),component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Qr,v.func]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:v.oneOf(["absolute","fixed"])}),popperRef:co,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transition:v.bool});function Aq(e){return tt("MuiTooltip",e)}const gn=Qe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Lq=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Iq(e){return Math.round(e*1e5)/1e5}const $q=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${De(o.split("-")[0])}`],arrow:["arrow"]};return st(s,Aq,t)},zq=ke(To,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>re({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${gn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${gn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${gn.arrow}`]:re({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${gn.arrow}`]:re({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Fq=ke("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${De(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>re({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ot(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Iq(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${gn.popper}[data-popper-placement*="left"] &`]:re({transformOrigin:"right center"},t.isRtl?re({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):re({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${gn.popper}[data-popper-placement*="right"] &`]:re({transformOrigin:"left center"},t.isRtl?re({marginRight:"14px"},t.touch&&{marginRight:"24px"}):re({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${gn.popper}[data-popper-placement*="top"] &`]:re({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${gn.popper}[data-popper-placement*="bottom"] &`]:re({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Wq=ke("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ot(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let ns=!1;const Cv=new po;let Ta={x:0,y:0};function is(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const xl=Z.forwardRef(function(t,r){var n,a,o,s,u,c,d,h,m,p,g,_,y,w,E,S,T,C,x;const P=rt({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:D,components:A={},componentsProps:I={},describeChild:N=!1,disableFocusListener:k=!1,disableHoverListener:W=!1,disableInteractive:j=!1,disableTouchListener:$=!1,enterDelay:B=100,enterNextDelay:G=0,enterTouchDelay:q=700,followCursor:U=!1,id:z,leaveDelay:H=0,leaveTouchDelay:te=1500,onClose:X,onOpen:K,open:J,placement:ie="bottom",PopperComponent:le,PopperProps:se={},slotProps:ce={},slots:he={},title:pe,TransitionComponent:oe=Ya,TransitionProps:ve}=P,fe=Ee(P,Lq),_e=Z.isValidElement(D)?D:V.jsx("span",{children:D}),we=wo(),Se=qd(),[Ce,ft]=Z.useState(),[Ue,nt]=Z.useState(null),ht=Z.useRef(!1),Ie=j||U,qe=Pi(),Pt=Pi(),pt=Pi(),Rt=Pi(),[pr,Te]=Ud({controlled:J,default:!1,name:"Tooltip",state:"open"});let _t=pr;if(process.env.NODE_ENV!=="production"){const{current:Pe}=Z.useRef(J!==void 0);Z.useEffect(()=>{Ce&&Ce.disabled&&!Pe&&pe!==""&&Ce.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
271
+ `))},[pe,Ce,Pe])}const Sr=cb(z),Kt=Z.useRef(),Er=Zr(()=>{Kt.current!==void 0&&(document.body.style.WebkitUserSelect=Kt.current,Kt.current=void 0),Rt.clear()});Z.useEffect(()=>Er,[Er]);const tn=Pe=>{Cv.clear(),ns=!0,Te(!0),K&&!_t&&K(Pe)},mr=Zr(Pe=>{Cv.start(800+H,()=>{ns=!1}),Te(!1),X&&_t&&X(Pe),qe.start(we.transitions.duration.shortest,()=>{ht.current=!1})}),Hr=Pe=>{ht.current&&Pe.type!=="touchstart"||(Ce&&Ce.removeAttribute("title"),Pt.clear(),pt.clear(),B||ns&&G?Pt.start(ns?G:B,()=>{tn(Pe)}):tn(Pe))},Ut=Pe=>{Pt.clear(),pt.start(H,()=>{mr(Pe)})},{isFocusVisibleRef:On,onBlur:Vr,onFocus:rn,ref:kn}=sb(),[,vr]=Z.useState(!1),Nn=Pe=>{Vr(Pe),On.current===!1&&(vr(!1),Ut(Pe))},Dn=Pe=>{Ce||ft(Pe.currentTarget),rn(Pe),On.current===!0&&(vr(!0),Hr(Pe))},nn=Pe=>{ht.current=!0;const Nt=_e.props;Nt.onTouchStart&&Nt.onTouchStart(Pe)},ri=Pe=>{nn(Pe),pt.clear(),qe.clear(),Er(),Kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Rt.start(q,()=>{document.body.style.WebkitUserSelect=Kt.current,Hr(Pe)})},ni=Pe=>{_e.props.onTouchEnd&&_e.props.onTouchEnd(Pe),Er(),pt.start(te,()=>{mr(Pe)})};Z.useEffect(()=>{if(!_t)return;function Pe(Nt){(Nt.key==="Escape"||Nt.key==="Esc")&&mr(Nt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[mr,_t]);const ia=zt(_e.ref,kn,ft,r);!pe&&pe!==0&&(_t=!1);const Qt=Z.useRef(),ii=Pe=>{const Nt=_e.props;Nt.onMouseMove&&Nt.onMouseMove(Pe),Ta={x:Pe.clientX,y:Pe.clientY},Qt.current&&Qt.current.update()},Ur={},an=typeof pe=="string";N?(Ur.title=!_t&&an&&!W?pe:null,Ur["aria-describedby"]=_t?Sr:null):(Ur["aria-label"]=an?pe:null,Ur["aria-labelledby"]=_t&&!an?Sr:null);const xt=re({},Ur,fe,_e.props,{className:Oe(fe.className,_e.props.className),onTouchStart:nn,ref:ia},U?{onMouseMove:ii}:{});process.env.NODE_ENV!=="production"&&(xt["data-mui-internal-clone-element"]=!0,Z.useEffect(()=>{Ce&&!Ce.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
272
+ `))},[Ce]));const yt={};$||(xt.onTouchStart=ri,xt.onTouchEnd=ni),W||(xt.onMouseOver=is(Hr,xt.onMouseOver),xt.onMouseLeave=is(Ut,xt.onMouseLeave),Ie||(yt.onMouseOver=Hr,yt.onMouseLeave=Ut)),k||(xt.onFocus=is(Dn,xt.onFocus),xt.onBlur=is(Nn,xt.onBlur),Ie||(yt.onFocus=Dn,yt.onBlur=Nn)),process.env.NODE_ENV!=="production"&&_e.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${_e.props.title}\` or the Tooltip component.`].join(`
273
+ `));const ge=Z.useMemo(()=>{var Pe;let Nt=[{name:"arrow",enabled:!!Ue,options:{element:Ue,padding:4}}];return(Pe=se.popperOptions)!=null&&Pe.modifiers&&(Nt=Nt.concat(se.popperOptions.modifiers)),re({},se.popperOptions,{modifiers:Nt})},[Ue,se]),gr=re({},P,{isRtl:Se,arrow:R,disableInteractive:Ie,placement:ie,PopperComponentProp:le,touch:ht.current}),on=$q(gr),An=(n=(a=he.popper)!=null?a:A.Popper)!=null?n:zq,sn=(o=(s=(u=he.transition)!=null?u:A.Transition)!=null?s:oe)!=null?o:Ya,ln=(c=(d=he.tooltip)!=null?d:A.Tooltip)!=null?c:Fq,un=(h=(m=he.arrow)!=null?m:A.Arrow)!=null?h:Wq,yr=ka(An,re({},se,(p=ce.popper)!=null?p:I.popper,{className:Oe(on.popper,se==null?void 0:se.className,(g=(_=ce.popper)!=null?_:I.popper)==null?void 0:g.className)}),gr),cn=ka(sn,re({},ve,(y=ce.transition)!=null?y:I.transition),gr),El=ka(ln,re({},(w=ce.tooltip)!=null?w:I.tooltip,{className:Oe(on.tooltip,(E=(S=ce.tooltip)!=null?S:I.tooltip)==null?void 0:E.className)}),gr),Ml=ka(un,re({},(T=ce.arrow)!=null?T:I.arrow,{className:Oe(on.arrow,(C=(x=ce.arrow)!=null?x:I.arrow)==null?void 0:C.className)}),gr);return V.jsxs(Z.Fragment,{children:[Z.cloneElement(_e,xt),V.jsx(An,re({as:le!=null?le:To,placement:ie,anchorEl:U?{getBoundingClientRect:()=>({top:Ta.y,left:Ta.x,right:Ta.x,bottom:Ta.y,width:0,height:0})}:Ce,popperRef:Qt,open:Ce?_t:!1,id:Sr,transition:!0},yt,yr,{popperOptions:ge,children:({TransitionProps:Pe})=>V.jsx(sn,re({timeout:we.transitions.duration.shorter},Pe,cn,{children:V.jsxs(ln,re({},El,{children:[pe,R?V.jsx(un,re({},Ml,{ref:nt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(xl.propTypes={arrow:v.bool,children:Qn.isRequired,classes:v.object,className:v.string,components:v.shape({Arrow:v.elementType,Popper:v.elementType,Tooltip:v.elementType,Transition:v.elementType}),componentsProps:v.shape({arrow:v.object,popper:v.object,tooltip:v.object,transition:v.object}),describeChild:v.bool,disableFocusListener:v.bool,disableHoverListener:v.bool,disableInteractive:v.bool,disableTouchListener:v.bool,enterDelay:v.number,enterNextDelay:v.number,enterTouchDelay:v.number,followCursor:v.bool,id:v.string,leaveDelay:v.number,leaveTouchDelay:v.number,onClose:v.func,onOpen:v.func,open:v.bool,placement:v.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:v.elementType,PopperProps:v.object,slotProps:v.shape({arrow:v.object,popper:v.object,tooltip:v.object,transition:v.object}),slots:v.shape({arrow:v.elementType,popper:v.elementType,tooltip:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),title:v.node,TransitionComponent:v.elementType,TransitionProps:v.object});const jq=e=>O.isNumber(e)?"right":"left",Tv=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:a})=>{const o=e.length>n;return V.jsx("div",{className:Oa.tableCellContent,style:{maxWidth:`${t-r}px`},children:a?V.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):o?V.jsx(xl,{title:e,children:V.jsx("div",{children:e})}):V.jsx("div",{children:e})})},Bq=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:a,themeSettings:o,onSortUpdate:s})=>{var S,T,C;const u=a&&a.showFieldTypeIcon!==void 0?a.showFieldTypeIcon:!0,c=F_+(u?W_:0),d=(a==null?void 0:a.paddingVertical)||uv,h=(a==null?void 0:a.paddingHorizontal)||uv,m=((S=a==null?void 0:a.columns)==null?void 0:S.width)==="auto"?(n-h*2-1)/t.columns.length:void 0,p=Q.useMemo(()=>t.columns.map(x=>({isHtml:!!x.isHtml,width:m})),[t.columns,m]),[g,_]=Q.useState(((T=document.fonts)==null?void 0:T.status)==="loaded"),y=(C=o.typography)==null?void 0:C.fontFamily,w=Q.useMemo(()=>e9(e,u,p,y),[e,u,p,y,g]);Q.useEffect(()=>{var x;(x=document.fonts)==null||x.ready.then(()=>{_(!0)}).catch(P=>{console.warn("Failed to observe font loading",P)})},[]);const E=Q.useMemo(()=>e.columns.map((x,P)=>{var I;const R=w[P],D=t.columns[P],A=dv({isHeaderCell:!0,themeSettings:o,customStyles:a});return R?V.jsx(ts.Column,{maxWidth:Hc,minWidth:Hc,allowCellsRecycling:!0,width:R,header:V.jsx(ts.Cell,{className:Ga(Oa.tableHeader),style:A,children:V.jsx(YU,{column:x,onClick:s,isSelected:!!Math.abs(x.direction),showFieldTypeIcon:u,sortIcon:(a==null?void 0:a.sortIcon)||"standard",children:Tv({displayValue:(I=D.title)!=null?I:D.name,width:R,padding:c,ellipsizedLength:QU})})}),cell:W=>{var j=W,{rowIndex:N}=j,k=hi(j,["rowIndex"]);var $;return V.jsx(ts.Cell,ue(ee({className:Ga(Oa.tableCell),style:dv({colIndex:P,rowIndex:N,themeSettings:o,customStyles:a})},k),{children:Tv({displayValue:e.rows[N][P].displayValue,width:R,padding:j_,ellipsizedLength:JU,isHtml:($=D.isHtml)!=null?$:!1})}))},align:jq(x.type)},`col${P}`):null}),[e,w,o,a,s,u,t,c]);return Q.useMemo(()=>V.jsx("div",{className:Oa.tableWrapper,style:{padding:`${d}px ${h}px`},children:V.jsx(ts.Table,{className:Oa.table,rowHeight:(a==null?void 0:a.rowHeight)||ZU,rowsCount:e.rows.length,width:n-h*2,height:r-d*2,headerHeight:(a==null?void 0:a.headerHeight)||XU,children:E})}),[E,a,e,r,h,d,n])},Hq="_component_1rw9b_1",Vq={component:Hq},Uq=(e,t)=>{if(!e.columns.some(s=>O.isNumber(s.type)))return e;const r=e.columns,a=e.rows.map(s=>s.map((u,c)=>{const d=r[c].type,h=O.getCompleteNumberFormatConfig(t.columns[c].numberFormatConfig);if(O.isNumber(d)){const m=O.createCompareValue(u.displayValue,d);return{displayValue:O.applyFormatPlainText(h,m.value),compareValue:m}}else return u}));return{columns:r,rows:a}},qq=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:a,width:o=400,height:s=500})=>{const u=Q.useRef(null),c=Q.useRef(e),d=Q.useMemo(()=>Uq(e,t),[e,t]);Q.useLayoutEffect(()=>{c.current=e},[e]);const h=Q.useMemo(()=>ee({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return V.jsx("div",{className:Vq.component,ref:u,children:V.jsx(Bq,{dataTable:d,dataOptions:t,onSortUpdate:n,height:s,width:o,customStyles:h,themeSettings:a})})},Gq=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var Yq=Object.prototype,Xq=Yq.hasOwnProperty;function Zq(e,t){return e!=null&&Xq.call(e,t)}function Kq(e,t){return e!=null&&O.hasPath(e,t,Zq)}function Qq(e,t){for(const r of t)Kq(e,r)&&console.warn(`Prop '${r}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const Jq=e=>(Qq(e,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:ee(ee({},e.headersColor?{color:{enabled:e.headersColor}}:null),e.header),rows:ee(ee({},e.alternatingRowsColor?{alternatingColor:{enabled:e.alternatingRowsColor}}:null),e.rows),columns:ee(ee({},e.alternatingColumnsColor?{alternatingColor:{enabled:e.alternatingColumnsColor}}:null),e.columns)}),eG=25,tG=10,s0=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n})=>{const{rowsPerPage:a=eG,width:o,height:s}=r,{themeSettings:u}=kt(),[c,d]=Q.useState(0),{filters:h,relations:m}=O.getFilterListAndRelations(n),[p,g]=Q.useState(1),_=Q.useRef(null),y=Q.useMemo(()=>Oy(t),[t]),w=Q.useMemo(()=>Ey(y.columns.filter(O.isValue)),[y]),E=Q.useMemo(()=>Jq(r),[r]),[S,T]=Q.useState(y),[C,x]=Q.useState(e),[P,R]=H$({dataSet:C,dataOptions:S,filters:h,filterRelations:m,count:a*tG,offset:c}),D=Y$({data:P,innerDataOptions:R,dataColumnNamesMapping:w,needToAggregate:!bn(C)});Q.useEffect(()=>{T(y),x(e),g(1),d(0)},[e,y]);const A=Q.useCallback(W=>{if(!P)return;Math.floor(P.rows.length/a)===W&&d(P.rows.length),g(W)},[P,a]),I=Q.useCallback(W=>{g(1),d(0),S&&T(q$(S,W))},[S]),N=Q.useMemo(()=>{if(!D||bn(C))return D;const W=D.columns.find(j=>j.direction!==0);return W?O.orderBy(D,[W]):D},[D,C]),k=Q.useMemo(()=>N?{columns:N.columns,rows:N.rows.slice((p-1)*a,p*a)}:void 0,[N,p,a]);return R?V.jsx(oo,{defaultSize:Nd("table"),size:{width:o,height:s},children:W=>{if(!D||!k)return V.jsx(Hs,{themeSettings:u});if(O.isDataTableEmpty(D))return V.jsx(kd,{iconType:"table"});const j=Math.ceil(D.rows.length/a),$=j>1?32:0;return V.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:u.chart.backgroundColor},"aria-label":"table-root",children:[V.jsx(qq,{dataTable:k,dataOptions:R,designOptions:E,themeSettings:u,width:W.width,height:W.height-$,onSortUpdate:I}),j>1&&V.jsx(vb,{ref:_,page:p,count:j,onChange:(B,G)=>A(G),sx:Gq(u)})]})}}):null},l0=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},rG=e=>{if(!bn(e.dataSet))throw"error, advanced charts only works against a data model";const t=O.cloneDeep(e.dataOptions),r=t.value.filter(a=>(a==null?void 0:a.trend)!==void 0).map(a=>O.trend(a.column,`${O.TREND_PREFIX}_${a.column.name}`,a.trend));t.value.push(...r);const n=t.value.filter(a=>(a==null?void 0:a.forecast)!==void 0).map(a=>O.forecast(a.column,`${O.FORECAST_PREFIX}_${a.column.name}`,a.forecast));return t.value.push(...n),V.jsx(Ny,ue(ee({},e),{dataOptions:t}))},u0=Kn({componentName:"Chart",shouldSkipSisenseContextWaiting:l0,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(nG(e))return V.jsx(s0,ee({},e));if(iG(e))return V.jsx(rG,ee({},e));if(c0(e))return V.jsx(Ny,ee({},e));throw new O.TranslatableError("errors.chartInvalidProps")});function nG(e){return e.chartType==="table"&&"columns"in e.dataOptions}function c0(e){return e.chartType!=="table"}function iG(e){return!c0(e)||!O.isCartesian(e.chartType)?!1:e.dataOptions.value.some(r=>(r==null?void 0:r.forecast)!==void 0||(r==null?void 0:r.trend)!==void 0)}function d0(e,t,r){const n=Od(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(o=>!Ii(n[o],e[o])):!Ii(n,e))?!0:r?r(e,n):!1}const f0="sdkHookInit",aG=(e,t,r,n)=>{if(!r)return;Vg(f0,{packageName:t,packageVersion:"1.19.0",hookName:e},r.httpClient).finally(n)};function oG(e){const{tracking:t}=bt(),{trackEvent:r}=Ed(),n=Q.useRef(!1);Q.useEffect(()=>{if(t&&!n.current){const a={packageName:t.packageName||"sdk-ui",packageVersion:"1.19.0",hookName:e};r(f0,a,!t.enabled).finally(()=>n.current=!0)}},[t,e,r])}const sG=e=>t=>(...r)=>(oG(e),t(...r));function lG(e){return O.flatRest(function(t){return t=O.arrayMap(t,O.baseUnary(O.baseIteratee)),Us(function(r){var n=this;return e(t,function(a){return O.apply(a,n,r)})})})}var h0=lG(O.arrayMap);function uG(e){return function(t){t=O.toString(t);var r=ry(t)?xc(t):void 0,n=r?r[0]:t.charAt(0),a=r?ty(r,1).join(""):t.slice(1);return n[e]()+a}}var cG=uG("toUpperCase");function dG(e){return cG(O.toString(e).toLowerCase())}function fG(e,t,r,n){for(var a=-1,o=e==null?0:e.length;++a<o;)r=t(r,e[a],a,e);return r}function hG(e){return function(t){return e==null?void 0:e[t]}}var pG={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},mG=hG(pG),vG=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gG="\\u0300-\\u036f",yG="\\ufe20-\\ufe2f",bG="\\u20d0-\\u20ff",_G=gG+yG+bG,wG="["+_G+"]",xG=RegExp(wG,"g");function CG(e){return e=O.toString(e),e&&e.replace(vG,mG).replace(xG,"")}var TG=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function SG(e){return e.match(TG)||[]}var EG=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function MG(e){return EG.test(e)}var p0="\\ud800-\\udfff",PG="\\u0300-\\u036f",RG="\\ufe20-\\ufe2f",OG="\\u20d0-\\u20ff",kG=PG+RG+OG,m0="\\u2700-\\u27bf",v0="a-z\\xdf-\\xf6\\xf8-\\xff",NG="\\xac\\xb1\\xd7\\xf7",DG="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",AG="\\u2000-\\u206f",LG=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",g0="A-Z\\xc0-\\xd6\\xd8-\\xde",IG="\\ufe0e\\ufe0f",y0=NG+DG+AG+LG,b0="['’]",Sv="["+y0+"]",$G="["+kG+"]",_0="\\d+",zG="["+m0+"]",w0="["+v0+"]",x0="[^"+p0+y0+_0+m0+v0+g0+"]",FG="\\ud83c[\\udffb-\\udfff]",WG="(?:"+$G+"|"+FG+")",jG="[^"+p0+"]",C0="(?:\\ud83c[\\udde6-\\uddff]){2}",T0="[\\ud800-\\udbff][\\udc00-\\udfff]",Ei="["+g0+"]",BG="\\u200d",Ev="(?:"+w0+"|"+x0+")",HG="(?:"+Ei+"|"+x0+")",Mv="(?:"+b0+"(?:d|ll|m|re|s|t|ve))?",Pv="(?:"+b0+"(?:D|LL|M|RE|S|T|VE))?",S0=WG+"?",E0="["+IG+"]?",VG="(?:"+BG+"(?:"+[jG,C0,T0].join("|")+")"+E0+S0+")*",UG="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qG="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",GG=E0+S0+VG,YG="(?:"+[zG,C0,T0].join("|")+")"+GG,XG=RegExp([Ei+"?"+w0+"+"+Mv+"(?="+[Sv,Ei,"$"].join("|")+")",HG+"+"+Pv+"(?="+[Sv,Ei+Ev,"$"].join("|")+")",Ei+"?"+Ev+"+"+Mv,Ei+"+"+Pv,qG,UG,_0,YG].join("|"),"g");function ZG(e){return e.match(XG)||[]}function KG(e,t,r){return e=O.toString(e),t=t,t===void 0?MG(e)?ZG(e):SG(e):e.match(t)||[]}var QG="['’]",JG=RegExp(QG,"g");function eY(e){return function(t){return fG(KG(CG(t).replace(JG,"")),e,"")}}var M0=eY(function(e,t,r){return t=t.toLowerCase(),e+(r?dG(t):t)});function tY(e){return rY(e.dataSet)}function rY(e){return!!e&&typeof e!="string"&&"rows"in e&&"columns"in e}const P0=Kn({componentName:"Table",shouldSkipSisenseContextWaiting:tY})(e=>V.jsx(s0,ee({},e))),nY=25,iY=10;var R0=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(R0||{}),Gc=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(Gc||{}),Yc=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(Yc||{}),O0=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(O0||{});const aY=(e,t)=>{const r=O.get(e,"shadow",t.widget.shadow),n=O.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in Gc&&n in Yc){const a=Gc[`${r}`];return`0px ${Yc[`${n}`]} rgba(9, 9, 10, ${a})`}return"none"};function oY(e){return tt("MuiDivider",e)}const Rv=Qe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),sY=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],lY=e=>{const{absolute:t,children:r,classes:n,flexItem:a,light:o,orientation:s,textAlign:u,variant:c}=e;return st({root:["root",t&&"absolute",c,o&&"light",s==="vertical"&&"vertical",a&&"flexItem",r&&"withChildren",r&&s==="vertical"&&"withChildrenVertical",u==="right"&&s!=="vertical"&&"textAlignRight",u==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},oY,n)},uY=ke("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>re({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ot(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>re({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>re({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>re({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>re({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),cY=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>re({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),ji=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiDivider"}),{absolute:a=!1,children:o,className:s,component:u=o?"div":"hr",flexItem:c=!1,light:d=!1,orientation:h="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=n,_=Ee(n,sY),y=re({},n,{absolute:a,component:u,flexItem:c,light:d,orientation:h,role:m,textAlign:p,variant:g}),w=lY(y);return V.jsx(uY,re({as:u,className:Oe(w.root,s),role:m,ref:r,ownerState:y},_,{children:o?V.jsx(cY,{className:w.wrapper,ownerState:y,children:o}):null}))});ji.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(ji.propTypes={absolute:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,flexItem:v.bool,light:v.bool,orientation:v.oneOf(["horizontal","vertical"]),role:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),textAlign:v.oneOf(["center","left","right"]),variant:v.oneOfType([v.oneOf(["fullWidth","inset","middle"]),v.string])});function dY(e){return tt("MuiPaper",e)}Qe("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 fY=["className","component","elevation","square","variant"],hY=e=>{const{square:t,elevation:r,variant:n,classes:a}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return st(o,dY,a)},pY=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return re({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},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&re({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ot("#fff",xv(t.elevation))}, ${ot("#fff",xv(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Cl=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiPaper"}),{className:a,component:o="div",elevation:s=1,square:u=!1,variant:c="elevation"}=n,d=Ee(n,fY),h=re({},n,{component:o,elevation:s,square:u,variant:c}),m=hY(h);return process.env.NODE_ENV!=="production"&&wo().shadows[s]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${s}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${s}]\` is defined.`].join(`
274
+ `)),V.jsx(pY,re({as:o,ownerState:h,className:Oe(m.root,a),ref:r},d))});process.env.NODE_ENV!=="production"&&(Cl.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,elevation:Sn(Nr,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["elevation","outlined"]),v.string])});function mY(e){return tt("MuiCard",e)}Qe("MuiCard",["root"]);const vY=["className","raised"],gY=e=>{const{classes:t}=e;return st({root:["root"]},mY,t)},yY=ke(Cl,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),k0=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCard"}),{className:a,raised:o=!1}=n,s=Ee(n,vY),u=re({},n,{raised:o}),c=gY(u);return V.jsx(yY,re({className:Oe(c.root,a),elevation:o?8:void 0,ref:r,ownerState:u},s))});process.env.NODE_ENV!=="production"&&(k0.propTypes={children:v.node,classes:v.object,className:v.string,raised:Sn(v.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function bY(e){return tt("MuiCardContent",e)}Qe("MuiCardContent",["root"]);const _Y=["className","component"],wY=e=>{const{classes:t}=e;return st({root:["root"]},bY,t)},xY=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),N0=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiCardContent"}),{className:a,component:o="div"}=n,s=Ee(n,_Y),u=re({},n,{component:o}),c=wY(u);return V.jsx(xY,re({as:o,className:Oe(c.root,a),ownerState:u,ref:r},s))});process.env.NODE_ENV!=="production"&&(N0.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function CY(e){return tt("MuiIconButton",e)}const TY=Qe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),SY=["edge","children","className","color","disabled","disableFocusRipple","size"],EY=e=>{const{classes:t,disabled:r,color:n,edge:a,size:o}=e,s={root:["root",r&&"disabled",n!=="default"&&`color${De(n)}`,a&&`edge${De(a)}`,`size${De(o)}`]};return st(s,CY,t)},MY=ke(Jn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${De(r.color)}`],r.edge&&t[`edge${De(r.edge)}`],t[`size${De(r.size)}`]]}})(({theme:e,ownerState:t})=>re({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return re({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&re({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":re({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${TY.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Bi=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:s,color:u="default",disabled:c=!1,disableFocusRipple:d=!1,size:h="medium"}=n,m=Ee(n,SY),p=re({},n,{edge:a,color:u,disabled:c,disableFocusRipple:d,size:h}),g=EY(p);return V.jsx(MY,re({className:Oe(g.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:r},m,{ownerState:p,children:o}))});process.env.NODE_ENV!=="production"&&(Bi.propTypes={children:Sn(v.node,e=>Z.Children.toArray(e.children).some(r=>Z.isValidElement(r)&&r.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
275
+ `)):null),classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),v.string]),disabled:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,edge:v.oneOf(["end","start",!1]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function PY(e){const t=$t(e);return t.body===e?qa(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ia(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ov(e){return parseInt(qa(e).getComputedStyle(e).paddingRight,10)||0}function RY(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function kv(e,t,r,n,a){const o=[t,r,...n];[].forEach.call(e.children,s=>{const u=o.indexOf(s)===-1,c=!RY(s);u&&c&&Ia(s,a)})}function Ru(e,t){let r=-1;return e.some((n,a)=>t(n)?(r=a,!0):!1),r}function OY(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(PY(n)){const s=db($t(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ov(n)+s}px`;const u=$t(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Ov(c)+s}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=$t(n).body;else{const s=n.parentElement,u=qa(n);o=(s==null?void 0:s.nodeName)==="HTML"&&u.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:s,property:u})=>{o?s.style.setProperty(u,o):s.style.removeProperty(u)})}}function kY(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class NY{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Ia(t.modalRef,!1);const a=kY(r);kv(r,t.mount,t.modalRef,a,!0);const o=Ru(this.containers,s=>s.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:a}),n)}mount(t,r){const n=Ru(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[n];a.restore||(a.restore=OY(a,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const a=Ru(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Ia(t.modalRef,r),kv(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Ia(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function DY(e){return typeof e=="function"?e():e}function AY(e){return e?e.props.hasOwnProperty("in"):!1}const LY=new NY;function IY(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:a=LY,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:u,children:c,onClose:d,open:h,rootRef:m}=e,p=Z.useRef({}),g=Z.useRef(null),_=Z.useRef(null),y=zt(_,m),[w,E]=Z.useState(!h),S=AY(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const C=()=>$t(g.current),x=()=>(p.current.modalRef=_.current,p.current.mount=g.current,p.current),P=()=>{a.mount(x(),{disableScrollLock:n}),_.current&&(_.current.scrollTop=0)},R=Zr(()=>{const B=DY(t)||C().body;a.add(x(),B),_.current&&P()}),D=Z.useCallback(()=>a.isTopModal(x()),[a]),A=Zr(B=>{g.current=B,B&&(h&&D()?P():_.current&&Ia(_.current,T))}),I=Z.useCallback(()=>{a.remove(x(),T)},[T,a]);Z.useEffect(()=>()=>{I()},[I]),Z.useEffect(()=>{h?R():(!S||!o)&&I()},[h,I,S,o,R]);const N=B=>G=>{var q;(q=B.onKeyDown)==null||q.call(B,G),!(G.key!=="Escape"||G.which===229||!D())&&(r||(G.stopPropagation(),d&&d(G,"escapeKeyDown")))},k=B=>G=>{var q;(q=B.onClick)==null||q.call(B,G),G.target===G.currentTarget&&d&&d(G,"backdropClick")};return{getRootProps:(B={})=>{const G=U_(e);delete G.onTransitionEnter,delete G.onTransitionExited;const q=re({},G,B);return re({role:"presentation"},q,{onKeyDown:N(q),ref:y})},getBackdropProps:(B={})=>{const G=B;return re({"aria-hidden":!0},G,{onClick:k(G),open:h})},getTransitionProps:()=>{const B=()=>{E(!1),s&&s()},G=()=>{E(!0),u&&u(),o&&I()};return{onEnter:lm(B,c==null?void 0:c.props.onEnter),onExited:lm(G,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:A,isTopModal:D,exited:w,hasTransition:S}}const $Y=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function zY(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function FY(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function WY(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||FY(e))}function jY(e){const t=[],r=[];return Array.from(e.querySelectorAll($Y)).forEach((n,a)=>{const o=zY(n);o===-1||!WY(n)||(o===0?t.push(n):r.push({documentOrder:a,tabIndex:o,node:n}))}),r.sort((n,a)=>n.tabIndex===a.tabIndex?n.documentOrder-a.documentOrder:n.tabIndex-a.tabIndex).map(n=>n.node).concat(t)}function BY(){return!0}function ks(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:a=!1,getTabbable:o=jY,isEnabled:s=BY,open:u}=e,c=Z.useRef(!1),d=Z.useRef(null),h=Z.useRef(null),m=Z.useRef(null),p=Z.useRef(null),g=Z.useRef(!1),_=Z.useRef(null),y=zt(t.ref,_),w=Z.useRef(null);Z.useEffect(()=>{!u||!_.current||(g.current=!r)},[r,u]),Z.useEffect(()=>{if(!u||!_.current)return;const T=$t(_.current);return _.current.contains(T.activeElement)||(_.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
276
+ `)),_.current.setAttribute("tabIndex","-1")),g.current&&_.current.focus()),()=>{a||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),Z.useEffect(()=>{if(!u||!_.current)return;const T=$t(_.current),C=R=>{w.current=R,!(n||!s()||R.key!=="Tab")&&T.activeElement===_.current&&R.shiftKey&&(c.current=!0,h.current&&h.current.focus())},x=()=>{const R=_.current;if(R===null)return;if(!T.hasFocus()||!s()||c.current){c.current=!1;return}if(R.contains(T.activeElement)||n&&T.activeElement!==d.current&&T.activeElement!==h.current)return;if(T.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let D=[];if((T.activeElement===d.current||T.activeElement===h.current)&&(D=o(_.current)),D.length>0){var A,I;const N=!!((A=w.current)!=null&&A.shiftKey&&((I=w.current)==null?void 0:I.key)==="Tab"),k=D[0],W=D[D.length-1];typeof k!="string"&&typeof W!="string"&&(N?W.focus():k.focus())}else R.focus()};T.addEventListener("focusin",x),T.addEventListener("keydown",C,!0);const P=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&x()},50);return()=>{clearInterval(P),T.removeEventListener("focusin",x),T.removeEventListener("keydown",C,!0)}},[r,n,a,s,u,o]);const E=T=>{m.current===null&&(m.current=T.relatedTarget),g.current=!0,p.current=T.target;const C=t.props.onFocus;C&&C(T)},S=T=>{m.current===null&&(m.current=T.relatedTarget),g.current=!0};return V.jsxs(Z.Fragment,{children:[V.jsx("div",{tabIndex:u?0:-1,onFocus:S,ref:d,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:y,onFocus:E}),V.jsx("div",{tabIndex:u?0:-1,onFocus:S,ref:h,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ks.propTypes={children:Qn,disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableRestoreFocus:v.bool,getTabbable:v.func,isEnabled:v.func,open:v.bool.isRequired});process.env.NODE_ENV!=="production"&&(ks.propTypes=Xd(ks.propTypes));const HY=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],VY={entering:{opacity:1},entered:{opacity:1}},Df=Z.forwardRef(function(t,r){const n=wo(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:u,easing:c,in:d,onEnter:h,onEntered:m,onEntering:p,onExit:g,onExited:_,onExiting:y,style:w,timeout:E=a,TransitionComponent:S=Br}=t,T=Ee(t,HY),C=Z.useRef(null),x=zt(C,u.ref,r),P=j=>$=>{if(j){const B=C.current;$===void 0?j(B):j(B,$)}},R=P(p),D=P((j,$)=>{const B=Ps({style:w,timeout:E,easing:c},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",B),j.style.transition=n.transitions.create("opacity",B),h&&h(j,$)}),A=P(m),I=P(y),N=P(j=>{const $=Ps({style:w,timeout:E,easing:c},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",$),j.style.transition=n.transitions.create("opacity",$),g&&g(j)}),k=P(_),W=j=>{o&&o(C.current,j)};return V.jsx(S,re({appear:s,in:d,nodeRef:C,onEnter:D,onEntered:A,onEntering:R,onExit:N,onExited:k,onExiting:I,addEndListener:W,timeout:E},T,{children:(j,$)=>Z.cloneElement(u,re({style:re({opacity:0,visibility:j==="exited"&&!d?"hidden":void 0},VY[j],w,u.props.style),ref:x},$))}))});process.env.NODE_ENV!=="production"&&(Df.propTypes={addEndListener:v.func,appear:v.bool,children:Qn.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function UY(e){return tt("MuiBackdrop",e)}Qe("MuiBackdrop",["root","invisible"]);const qY=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],GY=e=>{const{classes:t,invisible:r}=e;return st({root:["root",r&&"invisible"]},UY,t)},YY=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>re({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Af=Z.forwardRef(function(t,r){var n,a,o;const s=rt({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:d="div",components:h={},componentsProps:m={},invisible:p=!1,open:g,slotProps:_={},slots:y={},TransitionComponent:w=Df,transitionDuration:E}=s,S=Ee(s,qY),T=re({},s,{component:d,invisible:p}),C=GY(T),x=(n=_.root)!=null?n:m.root;return V.jsx(w,re({in:g,timeout:E},S,{children:V.jsx(YY,re({"aria-hidden":!0},x,{as:(a=(o=y.root)!=null?o:h.Root)!=null?a:d,className:Oe(C.root,c,x==null?void 0:x.className),ownerState:re({},T,x==null?void 0:x.ownerState),classes:C,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(Af.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.object}),invisible:v.bool,open:v.bool.isRequired,slotProps:v.shape({root:v.object}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function XY(e){return tt("MuiModal",e)}Qe("MuiModal",["root","hidden","backdrop"]);const ZY=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],KY=e=>{const{open:t,exited:r,classes:n}=e;return st({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},XY,n)},QY=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>re({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),JY=ke(Af,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Lf=Z.forwardRef(function(t,r){var n,a,o,s,u,c;const d=rt({name:"MuiModal",props:t}),{BackdropComponent:h=JY,BackdropProps:m,className:p,closeAfterTransition:g=!1,children:_,container:y,component:w,components:E={},componentsProps:S={},disableAutoFocus:T=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:x=!1,disablePortal:P=!1,disableRestoreFocus:R=!1,disableScrollLock:D=!1,hideBackdrop:A=!1,keepMounted:I=!1,onBackdropClick:N,open:k,slotProps:W,slots:j}=d,$=Ee(d,ZY),B=re({},d,{closeAfterTransition:g,disableAutoFocus:T,disableEnforceFocus:C,disableEscapeKeyDown:x,disablePortal:P,disableRestoreFocus:R,disableScrollLock:D,hideBackdrop:A,keepMounted:I}),{getRootProps:G,getBackdropProps:q,getTransitionProps:U,portalRef:z,isTopModal:H,exited:te,hasTransition:X}=IY(re({},B,{rootRef:r})),K=re({},B,{exited:te}),J=KY(K),ie={};if(_.props.tabIndex===void 0&&(ie.tabIndex="-1"),X){const{onEnter:ve,onExited:fe}=U();ie.onEnter=ve,ie.onExited=fe}const le=(n=(a=j==null?void 0:j.root)!=null?a:E.Root)!=null?n:QY,se=(o=(s=j==null?void 0:j.backdrop)!=null?s:E.Backdrop)!=null?o:h,ce=(u=W==null?void 0:W.root)!=null?u:S.root,he=(c=W==null?void 0:W.backdrop)!=null?c:S.backdrop,pe=xn({elementType:le,externalSlotProps:ce,externalForwardedProps:$,getSlotProps:G,additionalProps:{ref:r,as:w},ownerState:K,className:Oe(p,ce==null?void 0:ce.className,J==null?void 0:J.root,!K.open&&K.exited&&(J==null?void 0:J.hidden))}),oe=xn({elementType:se,externalSlotProps:he,additionalProps:m,getSlotProps:ve=>q(re({},ve,{onClick:fe=>{N&&N(fe),ve!=null&&ve.onClick&&ve.onClick(fe)}})),className:Oe(he==null?void 0:he.className,m==null?void 0:m.className,J==null?void 0:J.backdrop),ownerState:K});return!I&&!k&&(!X||te)?null:V.jsx(Ka,{ref:z,container:y,disablePortal:P,children:V.jsxs(le,re({},pe,{children:[!A&&h?V.jsx(se,re({},oe)):null,V.jsx(ks,{disableEnforceFocus:C,disableAutoFocus:T,disableRestoreFocus:R,isEnabled:H,open:k,children:Z.cloneElement(_,ie)})]}))})});process.env.NODE_ENV!=="production"&&(Lf.propTypes={BackdropComponent:v.elementType,BackdropProps:v.object,children:Qn.isRequired,classes:v.object,className:v.string,closeAfterTransition:v.bool,component:v.elementType,components:v.shape({Backdrop:v.elementType,Root:v.elementType}),componentsProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Qr,v.func]),disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableEscapeKeyDown:v.bool,disablePortal:v.bool,disableRestoreFocus:v.bool,disableScrollLock:v.bool,hideBackdrop:v.bool,keepMounted:v.bool,onBackdropClick:v.func,onClose:v.func,onTransitionEnter:v.func,onTransitionExited:v.func,open:v.bool.isRequired,slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function eX(e){return tt("MuiPopover",e)}Qe("MuiPopover",["root","paper"]);const tX=["onEntering"],rX=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],nX=["slotProps"];function Nv(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Dv(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Av(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ms(e){return typeof e=="function"?e():e}const iX=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},eX,t)},aX=ke(Lf,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),D0=ke(Cl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Tl=Z.forwardRef(function(t,r){var n,a,o;const s=rt({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:m="anchorEl",children:p,className:g,container:_,elevation:y=8,marginThreshold:w=16,open:E,PaperProps:S={},slots:T,slotProps:C,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:P=Ya,transitionDuration:R="auto",TransitionProps:{onEntering:D}={},disableScrollLock:A=!1}=s,I=Ee(s.TransitionProps,tX),N=Ee(s,rX),k=(n=C==null?void 0:C.paper)!=null?n:S,W=Z.useRef(),j=zt(W,k.ref),$=re({},s,{anchorOrigin:d,anchorReference:m,elevation:y,marginThreshold:w,externalPaperSlotProps:k,transformOrigin:x,TransitionComponent:P,transitionDuration:R,TransitionProps:I}),B=iX($),G=Z.useCallback(()=>{if(m==="anchorPosition")return process.env.NODE_ENV!=="production"&&(h||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),h;const ve=ms(c),fe=ve&&ve.nodeType===1?ve:$t(W.current).body,_e=fe.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const we=fe.getBoundingClientRect();process.env.NODE_ENV!=="test"&&we.top===0&&we.left===0&&we.right===0&&we.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
277
+ `))}return{top:_e.top+Nv(_e,d.vertical),left:_e.left+Dv(_e,d.horizontal)}},[c,d.horizontal,d.vertical,h,m]),q=Z.useCallback(ve=>({vertical:Nv(ve,x.vertical),horizontal:Dv(ve,x.horizontal)}),[x.horizontal,x.vertical]),U=Z.useCallback(ve=>{const fe={width:ve.offsetWidth,height:ve.offsetHeight},_e=q(fe);if(m==="none")return{top:null,left:null,transformOrigin:Av(_e)};const we=G();let Se=we.top-_e.vertical,Ce=we.left-_e.horizontal;const ft=Se+fe.height,Ue=Ce+fe.width,nt=qa(ms(c)),ht=nt.innerHeight-w,Ie=nt.innerWidth-w;if(w!==null&&Se<w){const qe=Se-w;Se-=qe,_e.vertical+=qe}else if(w!==null&&ft>ht){const qe=ft-ht;Se-=qe,_e.vertical+=qe}if(process.env.NODE_ENV!=="production"&&fe.height>ht&&fe.height&&ht&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${fe.height-ht}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
278
+ `)),w!==null&&Ce<w){const qe=Ce-w;Ce-=qe,_e.horizontal+=qe}else if(Ue>Ie){const qe=Ue-Ie;Ce-=qe,_e.horizontal+=qe}return{top:`${Math.round(Se)}px`,left:`${Math.round(Ce)}px`,transformOrigin:Av(_e)}},[c,m,G,q,w]),[z,H]=Z.useState(E),te=Z.useCallback(()=>{const ve=W.current;if(!ve)return;const fe=U(ve);fe.top!==null&&(ve.style.top=fe.top),fe.left!==null&&(ve.style.left=fe.left),ve.style.transformOrigin=fe.transformOrigin,H(!0)},[U]);Z.useEffect(()=>(A&&window.addEventListener("scroll",te),()=>window.removeEventListener("scroll",te)),[c,A,te]);const X=(ve,fe)=>{D&&D(ve,fe),te()},K=()=>{H(!1)};Z.useEffect(()=>{E&&te()}),Z.useImperativeHandle(u,()=>E?{updatePosition:()=>{te()}}:null,[E,te]),Z.useEffect(()=>{if(!E)return;const ve=m$(()=>{te()}),fe=qa(c);return fe.addEventListener("resize",ve),()=>{ve.clear(),fe.removeEventListener("resize",ve)}},[c,E,te]);let J=R;R==="auto"&&!P.muiSupportAuto&&(J=void 0);const ie=_||(c?$t(ms(c)).body:void 0),le=(a=T==null?void 0:T.root)!=null?a:aX,se=(o=T==null?void 0:T.paper)!=null?o:D0,ce=xn({elementType:se,externalSlotProps:re({},k,{style:z?k.style:re({},k.style,{opacity:0})}),additionalProps:{elevation:y,ref:j},ownerState:$,className:Oe(B.paper,k==null?void 0:k.className)}),he=xn({elementType:le,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:N,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ie,open:E},ownerState:$,className:Oe(B.root,g)}),{slotProps:pe}=he,oe=Ee(he,nX);return V.jsx(le,re({},oe,!H_(le)&&{slotProps:pe,disableScrollLock:A},{children:V.jsx(P,re({appear:!0,in:E,onEntering:X,onExited:K,timeout:J},I,{children:V.jsx(se,re({},ce,{children:p}))}))}))});process.env.NODE_ENV!=="production"&&(Tl.propTypes={action:co,anchorEl:Sn(v.oneOfType([Qr,v.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ms(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
279
+ `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
280
+ `))}return null}),anchorOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),anchorPosition:v.shape({left:v.number.isRequired,top:v.number.isRequired}),anchorReference:v.oneOf(["anchorEl","anchorPosition","none"]),children:v.node,classes:v.object,className:v.string,container:v.oneOfType([Qr,v.func]),disableScrollLock:v.bool,elevation:Nr,marginThreshold:v.number,onClose:v.func,open:v.bool.isRequired,PaperProps:v.shape({component:rb}),slotProps:v.shape({paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({paper:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transformOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object});function oX(e){return tt("MuiTypography",e)}Qe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sX=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],lX=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:a,variant:o,classes:s}=e,u={root:["root",o,e.align!=="inherit"&&`align${De(t)}`,r&&"gutterBottom",n&&"noWrap",a&&"paragraph"]};return st(u,oX,s)},uX=ke("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${De(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>re({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Lv={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cX={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dX=e=>cX[e]||e,Cr=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiTypography"}),a=dX(n.color),o=Gy(re({},n,{color:a})),{align:s="inherit",className:u,component:c,gutterBottom:d=!1,noWrap:h=!1,paragraph:m=!1,variant:p="body1",variantMapping:g=Lv}=o,_=Ee(o,sX),y=re({},o,{align:s,color:a,className:u,component:c,gutterBottom:d,noWrap:h,paragraph:m,variant:p,variantMapping:g}),w=c||(m?"p":g[p]||Lv[p])||"span",E=lX(y);return V.jsx(uX,re({as:w,ref:r,ownerState:y,className:Oe(E.root,u)},_))});process.env.NODE_ENV!=="production"&&(Cr.propTypes={align:v.oneOf(["center","inherit","justify","left","right"]),children:v.node,classes:v.object,className:v.string,component:v.elementType,gutterBottom:v.bool,noWrap:v.bool,paragraph:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),v.string]),variantMapping:v.object});function fX({title:e,description:t,styleOptions:r,onRefresh:n}){var d,h,m;const[a,o]=Q.useState(null),{themeSettings:s}=kt(),u=p=>{o(p.currentTarget)},c=()=>{o(null)};return V.jsxs(V.Fragment,{children:[V.jsx(xl,{title:"Click to view full details",style:{color:(d=s.chart)==null?void 0:d.textColor,fontFamily:(h=s.typography)==null?void 0:h.fontFamily},children:V.jsx(Bi,{onClick:u,sx:{p:0},children:V.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:V.jsx("path",{fill:(r==null?void 0:r.titleTextColor)||s.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),V.jsx(Tl,{open:!!a,anchorEl:a,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},slotProps:{root:{sx:{".MuiPaper-root":{boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.25)",borderRadius:0}}}},children:V.jsxs(k0,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[V.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:O.getSlightlyDifferentColor(s.general.backgroundColor)},children:[V.jsx(Cr,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily},children:"Widget Details"}),V.jsx(Bi,{onClick:n,sx:{p:0},children:V.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:V.jsx("path",{fill:(m=s.chart)==null?void 0:m.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),V.jsx(ji,{sx:{borderColor:s.typography.secondaryTextColor,opacity:.3}}),V.jsxs(N0,{style:{backgroundColor:s.general.backgroundColor,padding:12},children:[e&&V.jsx(Cr,{variant:"body2",style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily,fontSize:13},children:e}),!!t&&V.jsxs(V.Fragment,{children:[V.jsx(ji,{sx:{my:1,borderColor:s.typography.secondaryTextColor,opacity:.3}}),V.jsx(Cr,{variant:"body2",style:{color:s.typography.primaryTextColor,fontFamily:s.typography.fontFamily,fontSize:13},children:t})]})]})]})})]})}const hX=({title:e,description:t,dataSetName:r,styleOptions:n,onRefresh:a})=>{var u;const{themeSettings:o}=kt(),s=()=>{var d;const c=V.jsx(V.Fragment,{children:V.jsx(fX,{title:r,description:t,styleOptions:n,onRefresh:a})});return n!=null&&n.renderToolbar?(d=n==null?void 0:n.renderToolbar)==null?void 0:d.call(n,a,c):c};return V.jsxs(V.Fragment,{children:[V.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(n==null?void 0:n.backgroundColor)||o.widget.header.backgroundColor},children:[V.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:pX((n==null?void 0:n.titleAlignment)||o.widget.header.titleAlignment),color:(n==null?void 0:n.titleTextColor)||o.widget.header.titleTextColor,fontFamily:(u=o.typography)==null?void 0:u.fontFamily,fontSize:15},children:e||""}),V.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:s()})]}),O.get(n,"dividerLine",o.widget.header.dividerLine)&&V.jsx(ji,{style:{backgroundColor:(n==null?void 0:n.dividerLineColor)||o.widget.header.dividerLineColor||"#d5d5d5"}})]})};function pX(e){return e.toLowerCase()}const If=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:a,bottomSlot:o,children:s,onRefresh:u=()=>{}})=>{var d,h,m;const{themeSettings:c}=kt();return V.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden",children:V.jsx("div",{className:"csdk-h-full",style:{padding:O0[O.get(t,"spaceAround",c.widget.spaceAround)]||"0px"},children:V.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:O.get(t,"border",c.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||c.widget.borderColor,borderRadius:R0[(t==null?void 0:t.cornerRadius)||c.widget.cornerRadius]||0,boxShadow:aY(t,c),display:"flex",flexDirection:"column"},children:[!((d=t==null?void 0:t.header)!=null&&d.hidden)&&V.jsx(hX,{title:r,description:n,dataSetName:e,styleOptions:t==null?void 0:t.header,onRefresh:u}),a,V.jsx(vy,{theme:{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((h=c.chart)==null?void 0:h.backgroundColor)}},children:V.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((m=c.chart)==null?void 0:m.backgroundColor)},children:s})}),o]})})})};function mX(e){return tt("MuiListSubheader",e)}Qe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const vX=["className","color","component","disableGutters","disableSticky","inset"],gX=e=>{const{classes:t,color:r,disableGutters:n,inset:a,disableSticky:o}=e,s={root:["root",r!=="default"&&`color${De(r)}`,!n&&"gutters",a&&"inset",!o&&"sticky"]};return st(s,mX,t)},yX=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${De(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>re({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),$f=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiListSubheader"}),{className:a,color:o="default",component:s="li",disableGutters:u=!1,disableSticky:c=!1,inset:d=!1}=n,h=Ee(n,vX),m=re({},n,{color:o,component:s,disableGutters:u,disableSticky:c,inset:d}),p=gX(m);return V.jsx(yX,re({as:s,className:Oe(p.root,a),ref:r,ownerState:m},h))});$f.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&($f.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOf(["default","inherit","primary"]),component:v.elementType,disableGutters:v.bool,disableSticky:v.bool,inset:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const Ns=Z.createContext({});process.env.NODE_ENV!=="production"&&(Ns.displayName="ListContext");function bX(e){return tt("MuiList",e)}Qe("MuiList",["root","padding","dense","subheader"]);const _X=["children","className","component","dense","disablePadding","subheader"],wX=e=>{const{classes:t,disablePadding:r,dense:n,subheader:a}=e;return st({root:["root",!r&&"padding",n&&"dense",a&&"subheader"]},bX,t)},xX=ke("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>re({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),A0=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:u=!1,disablePadding:c=!1,subheader:d}=n,h=Ee(n,_X),m=Z.useMemo(()=>({dense:u}),[u]),p=re({},n,{component:s,dense:u,disablePadding:c}),g=wX(p);return V.jsx(Ns.Provider,{value:m,children:V.jsxs(xX,re({as:s,className:Oe(g.root,o),ref:r,ownerState:p},h,{children:[d,a]}))})});process.env.NODE_ENV!=="production"&&(A0.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disablePadding:v.bool,subheader:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const CX=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ou(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Iv(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function L0(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function Sa(e,t,r,n,a,o){let s=!1,u=a(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(s)return!1;s=!0}const c=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!L0(u,o)||c)u=a(e,u,r);else return u.focus(),!0}return!1}const zf=Z.forwardRef(function(t,r){const{actions:n,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:u,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:h,variant:m="selectedMenu"}=t,p=Ee(t,CX),g=Z.useRef(null),_=Z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Gn(()=>{a&&g.current.focus()},[a]),Z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const x=!g.current.style.width;if(T.clientHeight<g.current.clientHeight&&x){const P=`${db($t(T))}px`;g.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=P,g.current.style.width=`calc(100% + ${P})`}return g.current}}),[]);const y=T=>{const C=g.current,x=T.key,P=$t(C).activeElement;if(x==="ArrowDown")T.preventDefault(),Sa(C,P,d,c,Ou);else if(x==="ArrowUp")T.preventDefault(),Sa(C,P,d,c,Iv);else if(x==="Home")T.preventDefault(),Sa(C,null,d,c,Ou);else if(x==="End")T.preventDefault(),Sa(C,null,d,c,Iv);else if(x.length===1){const R=_.current,D=x.toLowerCase(),A=performance.now();R.keys.length>0&&(A-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&D!==R.keys[0]&&(R.repeating=!1)),R.lastTime=A,R.keys.push(D);const I=P&&!R.repeating&&L0(P,R);R.previousKeyMatched&&(I||Sa(C,P,!1,c,Ou,R))?T.preventDefault():R.previousKeyMatched=!1}h&&h(T)},w=zt(g,r);let E=-1;Z.Children.forEach(s,(T,C)=>{if(!Z.isValidElement(T)){E===C&&(E+=1,E>=s.length&&(E=-1));return}process.env.NODE_ENV!=="production"&&Ua.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
281
+ `)),T.props.disabled||(m==="selectedMenu"&&T.props.selected||E===-1)&&(E=C),E===C&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(E+=1,E>=s.length&&(E=-1))});const S=Z.Children.map(s,(T,C)=>{if(C===E){const x={};return o&&(x.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&(x.tabIndex=0),Z.cloneElement(T,x)}return T});return V.jsx(A0,re({role:"menu",ref:w,className:u,onKeyDown:y,tabIndex:a?0:-1},p,{children:S}))});process.env.NODE_ENV!=="production"&&(zf.propTypes={autoFocus:v.bool,autoFocusItem:v.bool,children:v.node,className:v.string,disabledItemsFocusable:v.bool,disableListWrap:v.bool,onKeyDown:v.func,variant:v.oneOf(["menu","selectedMenu"])});function TX(e){return tt("MuiMenu",e)}Qe("MuiMenu",["root","paper","list"]);const SX=["onEntering"],EX=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],MX={vertical:"top",horizontal:"right"},PX={vertical:"top",horizontal:"left"},RX=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},TX,t)},OX=ke(Tl,{shouldForwardProp:e=>ho(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kX=ke(D0,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),NX=ke(zf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ff=Z.forwardRef(function(t,r){var n,a;const o=rt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:u,className:c,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:m,open:p,PaperProps:g={},PopoverClasses:_,transitionDuration:y="auto",TransitionProps:{onEntering:w}={},variant:E="selectedMenu",slots:S={},slotProps:T={}}=o,C=Ee(o.TransitionProps,SX),x=Ee(o,EX),P=qd(),R=re({},o,{autoFocus:s,disableAutoFocusItem:d,MenuListProps:h,onEntering:w,PaperProps:g,transitionDuration:y,TransitionProps:C,variant:E}),D=RX(R),A=s&&!d&&p,I=Z.useRef(null),N=(q,U)=>{I.current&&I.current.adjustStyleForScrollbar(q,{direction:P?"rtl":"ltr"}),w&&w(q,U)},k=q=>{q.key==="Tab"&&(q.preventDefault(),m&&m(q,"tabKeyDown"))};let W=-1;Z.Children.map(u,(q,U)=>{Z.isValidElement(q)&&(process.env.NODE_ENV!=="production"&&Ua.isFragment(q)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
282
+ `)),q.props.disabled||(E==="selectedMenu"&&q.props.selected||W===-1)&&(W=U))});const j=(n=S.paper)!=null?n:kX,$=(a=T.paper)!=null?a:g,B=xn({elementType:S.root,externalSlotProps:T.root,ownerState:R,className:[D.root,c]}),G=xn({elementType:j,externalSlotProps:$,ownerState:R,className:D.paper});return V.jsx(OX,re({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?MX:PX,slots:{paper:j,root:S.root},slotProps:{root:B,paper:G},open:p,ref:r,transitionDuration:y,TransitionProps:re({onEntering:N},C),ownerState:R},x,{classes:_,children:V.jsx(NX,re({onKeyDown:k,actions:I,autoFocus:s&&(W===-1||d),autoFocusItem:A,variant:E},h,{className:Oe(D.list,h.className),children:u}))}))});process.env.NODE_ENV!=="production"&&(Ff.propTypes={anchorEl:v.oneOfType([Qr,v.func]),autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,disableAutoFocusItem:v.bool,MenuListProps:v.object,onClose:v.func,open:v.bool.isRequired,PaperProps:v.object,PopoverClasses:v.object,slotProps:v.shape({paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({paper:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object,variant:v.oneOf(["menu","selectedMenu"])});const $v=Qe("MuiListItemIcon",["root","alignItemsFlexStart"]),zv=Qe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function DX(e){return tt("MuiMenuItem",e)}const Ea=Qe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),AX=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],LX=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},IX=e=>{const{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:s}=e,c=st({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},DX,s);return re({},s,c)},$X=ke(Jn,{shouldForwardProp:e=>ho(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:LX})(({theme:e,ownerState:t})=>re({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ea.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ea.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ea.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ot(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ot(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ea.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ea.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rv.inset}`]:{marginLeft:52},[`& .${zv.root}`]:{marginTop:0,marginBottom:0},[`& .${zv.inset}`]:{paddingLeft:36},[`& .${$v.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&re({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$v.root} svg`]:{fontSize:"1.25rem"}}))),Wf=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:s=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:d,role:h="menuitem",tabIndex:m,className:p}=n,g=Ee(n,AX),_=Z.useContext(Ns),y=Z.useMemo(()=>({dense:s||_.dense||!1,disableGutters:c}),[_.dense,s,c]),w=Z.useRef(null);Gn(()=>{a&&(w.current?w.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[a]);const E=re({},n,{dense:y.dense,divider:u,disableGutters:c}),S=IX(n),T=zt(w,r);let C;return n.disabled||(C=m!==void 0?m:-1),V.jsx(Ns.Provider,{value:y,children:V.jsx($X,re({ref:T,role:h,tabIndex:C,component:o,focusVisibleClassName:Oe(S.focusVisible,d),className:Oe(S.root,p)},g,{ownerState:E,classes:S}))})});process.env.NODE_ENV!=="production"&&(Wf.propTypes={autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disabled:v.bool,disableGutters:v.bool,divider:v.bool,focusVisibleClassName:v.string,role:v.string,selected:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),tabIndex:v.number});const I0=({position:e,closeContextMenu:t,itemSections:r,children:n})=>{const a=!!e;return V.jsxs(Ff,{MenuListProps:{dense:!0},anchorReference:"anchorPosition",anchorPosition:e!=null?e:{left:0,top:0},open:a,onClose:t,children:[r==null?void 0:r.map(({sectionTitle:o,items:s})=>{var c;const u=[];return o&&(u.push(V.jsx($f,{children:o},`subheader_${o}`)),u.push(V.jsx(ji,{},`divider_${o}`))),[...u,...(c=s==null?void 0:s.map(d=>{var h;return V.jsx(Wf,{onClick:()=>{var m;t(),(m=d.onClick)==null||m.call(d)},children:d.caption},(h=d.key)!=null?h:d.caption)}))!=null?c:[]]}),n]})},zX=mo(V.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),FX=["slots","slotProps"],WX=ke(Jn)(({theme:e})=>re({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":re({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":re({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:qp(e.palette.grey[200],.12)}:{backgroundColor:qp(e.palette.grey[600],.12)})})),jX=ke(zX)({width:24,height:16});function $0(e){const{slots:t={},slotProps:r={}}=e,n=Ee(e,FX),a=e;return V.jsx("li",{children:V.jsx(WX,re({focusRipple:!0},n,{ownerState:a,children:V.jsx(jX,re({as:t.CollapsedIcon,ownerState:a},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&($0.propTypes={slotProps:v.shape({collapsedIcon:v.oneOfType([v.func,v.object])}),slots:v.shape({CollapsedIcon:v.elementType}),sx:v.object});function BX(e){return tt("MuiBreadcrumbs",e)}const HX=Qe("MuiBreadcrumbs",["root","ol","li","separator"]),VX=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],UX=e=>{const{classes:t}=e;return st({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},BX,t)},qX=ke(Cr,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${HX.li}`]:t.li},t.root]})({}),GX=ke("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),YX=ke("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function XX(e,t,r,n){return e.reduce((a,o,s)=>(s<e.length-1?a=a.concat(o,V.jsx(YX,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${s}`)):a.push(o),a),[])}const z0=Z.forwardRef(function(t,r){const n=rt({props:t,name:"MuiBreadcrumbs"}),{children:a,className:o,component:s="nav",slots:u={},slotProps:c={},expandText:d="Show path",itemsAfterCollapse:h=1,itemsBeforeCollapse:m=1,maxItems:p=8,separator:g="/"}=n,_=Ee(n,VX),[y,w]=Z.useState(!1),E=re({},n,{component:s,expanded:y,expandText:d,itemsAfterCollapse:h,itemsBeforeCollapse:m,maxItems:p,separator:g}),S=UX(E),T=xn({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:E}),C=Z.useRef(null),x=R=>{const D=()=>{w(!0);const A=C.current.querySelector("a[href],button,[tabindex]");A&&A.focus()};return m+h>=R.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${h}} + itemsBeforeCollapse={${m}} >= maxItems={${p}}`].join(`
283
+ `)),R):[...R.slice(0,m),V.jsx($0,{"aria-label":d,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:D},"ellipsis"),...R.slice(R.length-h,R.length)]},P=Z.Children.toArray(a).filter(R=>(process.env.NODE_ENV!=="production"&&Ua.isFragment(R)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
284
+ `)),Z.isValidElement(R))).map((R,D)=>V.jsx("li",{className:S.li,children:R},`child-${D}`));return V.jsx(qX,re({ref:r,component:s,color:"text.secondary",className:Oe(S.root,o),ownerState:E},_,{children:V.jsx(GX,{className:S.ol,ref:C,ownerState:E,children:XX(y||p&&P.length<=p?P:x(P),S.separator,g,E)})}))});process.env.NODE_ENV!=="production"&&(z0.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,expandText:v.string,itemsAfterCollapse:Nr,itemsBeforeCollapse:Nr,maxItems:Nr,separator:v.node,slotProps:v.shape({collapsedIcon:v.oneOfType([v.func,v.object])}),slots:v.shape({CollapsedIcon:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function ZX(e){return tt("MuiButton",e)}const as=Qe("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),F0=Z.createContext({});process.env.NODE_ENV!=="production"&&(F0.displayName="ButtonGroupContext");const W0=Z.createContext(void 0);process.env.NODE_ENV!=="production"&&(W0.displayName="ButtonGroupButtonContext");const KX=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],QX=e=>{const{color:t,disableElevation:r,fullWidth:n,size:a,variant:o,classes:s}=e,u={root:["root",o,`${o}${De(t)}`,`size${De(a)}`,`${o}Size${De(a)}`,`color${De(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${De(a)}`],endIcon:["icon","endIcon",`iconSize${De(a)}`]},c=st(u,ZX,s);return re({},s,c)},j0=e=>re({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),JX=ke(Jn,{shouldForwardProp:e=>ho(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${De(r.color)}`],t[`size${De(r.size)}`],t[`${r.variant}Size${De(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const a=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return re({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":re({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ot(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":re({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${as.focusVisible}`]:re({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${as.disabled}`]:re({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ot(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:a,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${as.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${as.disabled}`]:{boxShadow:"none"}}),eZ=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${De(r.size)}`]]}})(({ownerState:e})=>re({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},j0(e))),tZ=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${De(r.size)}`]]}})(({ownerState:e})=>re({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},j0(e))),Qa=Z.forwardRef(function(t,r){const n=Z.useContext(F0),a=Z.useContext(W0),o=Id(n,t),s=rt({props:o,name:"MuiButton"}),{children:u,color:c="primary",component:d="button",className:h,disabled:m=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:_,focusVisibleClassName:y,fullWidth:w=!1,size:E="medium",startIcon:S,type:T,variant:C="text"}=s,x=Ee(s,KX),P=re({},s,{color:c,component:d,disabled:m,disableElevation:p,disableFocusRipple:g,fullWidth:w,size:E,type:T,variant:C}),R=QX(P),D=S&&V.jsx(eZ,{className:R.startIcon,ownerState:P,children:S}),A=_&&V.jsx(tZ,{className:R.endIcon,ownerState:P,children:_}),I=a||"";return V.jsxs(JX,re({ownerState:P,className:Oe(n.className,R.root,h,I),component:d,disabled:m,focusRipple:!g,focusVisibleClassName:Oe(R.focusVisible,y),ref:r,type:T},x,{classes:R,children:[D,u,A]}))});process.env.NODE_ENV!=="production"&&(Qa.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","primary","secondary","success","error","info","warning"]),v.string]),component:v.elementType,disabled:v.bool,disableElevation:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,endIcon:v.node,focusVisibleClassName:v.string,fullWidth:v.bool,href:v.string,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),startIcon:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string]),variant:v.oneOfType([v.oneOf(["contained","outlined","text"]),v.string])});const rZ=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{var h,m;const a=((m=(h=t.expression.match(/\[(.*?)]/))==null?void 0:h[1])==null?void 0:m.split(".")[1])||"",o=Tr(Qa)`
285
+ && {
286
+ background-color: ${n.activeDrillBackgroundColor};
287
+ color: ${n.primaryButtonTextColor};
288
+ border-radius: 100%;
289
+ border: 2px solid white;
290
+ min-width: 39px;
291
+ width: 39px;
292
+ height: 39px;
293
+ z-index: 10;
294
+ padding: 7px;
295
+ cursor: pointer;
296
+ text-transform: none;
297
+ margin-right: -5px;
298
+
299
+ &:hover {
300
+ background-color: ${n.activeDrillHoverBackgroundColor};
301
+ color: ${n.primaryTextColor};
302
+ }
303
+ }
304
+ `,s=Tr.svg`
305
+ width: 22px;
306
+ height: 22px;
307
+ fill: #9ea2ab;
308
+ `,u=()=>V.jsx(o,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:V.jsx(s,{width:22,height:22,viewBox:"0 0 24 24",children:V.jsx("path",{fill:"#9EA2AB",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})})}),c=Tr(Qa)`
309
+ && {
310
+ position: relative;
311
+ font-family: ${p=>p.theme.fontFamily};
312
+ border-radius: 0;
313
+ border: 1px solid ${Lr};
314
+ background-color: ${p=>p.theme.chartBackgroundColor};
315
+ border-right: none;
316
+ border-left: none;
317
+ color: ${p=>p.theme.secondaryTextColor};
318
+ padding-right: 1.25rem;
319
+ padding-left: 1.875rem;
320
+ height: 1.64rem;
321
+ font-size: 13px;
322
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
323
+ text-transform: none;
324
+ cursor: auto;
325
+ pointer-events: none;
326
+ white-space: nowrap;
327
+
328
+ &:hover {
329
+ background-color: ${p=>p.theme.chartBackgroundColor};
330
+ border: 1px solid ${Lr};
331
+ border-right: none;
332
+ border-left: none;
333
+ }
334
+ }
335
+ `;return{CancelButton:u,CurrentDrillButton:()=>V.jsxs(c,{theme:n,children:[a," (All)",V.jsx("span",{className:"flex items-center justify-between",children:V.jsx("span",{className:"csdk-absolute csdk-right-[0px] csdk-top-[3px] csdk-h-[18px] csdk-w-[18px] csdk-transform csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:"transparent",borderTop:`1px solid ${Lr}`,borderRight:`1px solid ${Lr}`}})})]})}},nZ={modifiers:[{name:"offset",options:{offset:[0,12]}}]},iZ=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>V.jsxs("div",{className:"csdk-w-50 csdk-px-[12px] csdk-shadow-md csdk-shadow-gray-500 csdk-rounded-md csdk-bg-white",style:{backgroundColor:e.chartBackgroundColor,color:e.primaryTextColor},children:[V.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[V.jsx(Cr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Members"}),V.jsx(Cr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),V.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[V.jsx(Cr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Table"}),V.jsx(Cr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),V.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[V.jsx(Cr,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Column"}),V.jsx(Cr,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]}),aZ=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[a,o]=n?n[1].split("."):["",""],s=!!e;return V.jsx(To,{open:s,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:nZ,children:e&&V.jsx(iZ,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:a,currentColumn:o})})},oZ=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:a,primaryButtonTextColor:o},chart:{backgroundColor:s}}}=kt(),u=xs(s,.02),c=xs(u,.05);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:a,primaryButtonTextColor:o,chartBackgroundColor:s,activeDrillBackgroundColor:u,activeDrillHoverBackgroundColor:c}},sZ=Tr(Bi)`
336
+ && {
337
+ position: absolute;
338
+ left: 0;
339
+ right: auto;
340
+ margin: auto;
341
+ bottom: 0;
342
+ top: 0;
343
+ z-index: 10;
344
+ background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
345
+ display: inline-flex;
346
+
347
+ span[aria-label='prev-item'] {
348
+ width: 0;
349
+ height: 0;
350
+ border-top: 6px solid transparent;
351
+ border-bottom: 6px solid transparent;
352
+ border-right: 5px solid #000;
353
+ color: transparent;
354
+ opacity: 0.3;
355
+
356
+ &:hover {
357
+ opacity: 0.8;
358
+ }
359
+ }
360
+ }
361
+ `,lZ=Tr(Bi)`
362
+ && {
363
+ position: absolute;
364
+ left: auto;
365
+ right: 0;
366
+ margin: auto;
367
+ bottom: 0;
368
+ top: 0;
369
+ z-index: 10;
370
+ background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
371
+ display: inline-flex;
372
+
373
+ span[aria-label='next-item'] {
374
+ width: 0;
375
+ height: 0;
376
+ border-top: 6px solid transparent;
377
+ border-bottom: 6px solid transparent;
378
+ border-left: 5px solid #000;
379
+ color: transparent;
380
+ opacity: 0.3;
381
+
382
+ &:hover {
383
+ opacity: 0.8;
384
+ }
385
+ }
386
+ }
387
+ `,uZ=({currentDimension:e,children:t})=>{const r=Q.useRef(null),[n,a]=Q.useState(0),[o,s]=Q.useState(0),[u,c]=Q.useState(0),d=()=>{var g;return(g=r.current)==null?void 0:g.querySelector("ol")};Q.useEffect(()=>{const g=d();if(g){const _=g.clientWidth,y=g.scrollWidth,w=g.scrollLeft;a(_),s(y),c(w)}},[e]),Q.useEffect(()=>{const g=d();function _(){if(g){const E=g.clientWidth;a(E)}}function y(){if(g){const E=g.scrollLeft;c(E)}}const w=new ResizeObserver(_);return g?(w.observe(g),g.addEventListener("scroll",y),()=>{w.disconnect(),g.removeEventListener("scroll",y)}):()=>{}},[]);const h=g=>{const y="smooth",w=d();w&&w.scrollBy({left:g==="right"?200:-200,behavior:y})},m=u!=0,p=Math.floor(o-u)>n;return V.jsxs("div",{style:{position:"relative"},children:[m&&V.jsx(sZ,{onClick:()=>h("left"),children:V.jsx("span",{"aria-label":"prev-item",children:"Prev"})}),p&&V.jsx(lZ,{onClick:()=>h("right"),children:V.jsx("span",{"aria-label":"next-item",children:"Next"})}),V.jsx("div",{ref:r,children:t})]})},Lr="#F2F2F2",cZ=Tr(Qa)`
388
+ && {
389
+ font-family: ${({theme:e})=>e.fontFamily};
390
+ position: relative;
391
+ border-radius: 0;
392
+ border: 1px solid ${Lr};
393
+ border-right: none;
394
+ color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
395
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
396
+ padding-right: 1.25rem;
397
+ padding-left: 1.875rem;
398
+ height: 1.64rem;
399
+ font-size: 13px;
400
+ text-transform: none;
401
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
402
+ white-space: nowrap;
403
+ cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
404
+ margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
405
+
406
+ &:hover {
407
+ background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
408
+ border: 1px solid ${Lr};
409
+ border-right: none;
410
+ }
411
+
412
+ .MuiTouchRipple-root {
413
+ display: none;
414
+ }
415
+ }
416
+ `,dZ=Tr(z0)`
417
+ .MuiBreadcrumbs-ol {
418
+ flex-wrap: nowrap;
419
+ overflow: hidden;
420
+ }
421
+ .MuiBreadcrumbs-separator {
422
+ display: none;
423
+ }
424
+ `,fZ=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:a,themeProps:o,popperParams:s,index:u})=>V.jsx(cZ,{theme:o,active:e.toString(),index:u,onMouseEnter:r,onMouseLeave:n,onClick:a,children:V.jsxs("span",{className:"flex items-center justify-between",children:[V.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?V.jsx("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:t===(s==null?void 0:s.filterDisplayValues)?o.activeDrillHoverBackgroundColor:o.activeDrillBackgroundColor,borderTop:`1px solid ${Lr}`,borderRight:`1px solid ${Lr}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,V.jsx("span",{className:`csdk-absolute ${e?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:o.chartBackgroundColor,borderTop:`1px solid ${Lr}`,borderRight:`1px solid ${Lr}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),B0=({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[a,o]=Q.useState(null),[s,u]=Q.useState(!1),c=oZ(),{CancelButton:d,CurrentDrillButton:h}=rZ({clearDrilldownSelections:r,currentDimension:t,isHovered:s,setIsHovered:u,themeProps:c}),m=y=>w=>{u(!0),o({filterDisplayValues:y,anchorEl:w.currentTarget})},p=()=>{u(!1),o(null)},g=y=>y<e.length-1,_=y=>y===e.length-2;return e.length?V.jsx(uZ,{currentDimension:t,children:V.jsxs(dZ,{separator:null,sx:{backgroundColor:c.chartBackgroundColor,padding:"4px"},children:[V.jsx(d,{}),e.map((y,w)=>{const E=g(w),S=_(w);return V.jsx("div",{children:V.jsx(fZ,{isActive:E,isLastActive:S,filterDisplayValue:y,handleMouseEnter:m(y),handleMouseLeave:p,handleClick:()=>n(w+1),themeProps:c,popperParams:a,index:w})},w)}),V.jsx(h,{}),V.jsx(aZ,{popperParams:a,currentDimension:t,themeProps:c})]})}):null},hZ=e=>{const{drilldownDimensions:t,initialDimension:r,drilldownSelections:n=[]}=e;if(!r)throw new Error("Initial dimension has to be specified to use drilldown with custom components");const[a,o]=Q.useState(n),s=d0(e,["drilldownSelections"]);Q.useEffect(()=>{s&&o(n)},[n,o,s]);const u=Q.useMemo(()=>t.filter(({expression:p})=>a.every(({nextDimension:g})=>g.expression!==p)),[t,a]),c=Q.useCallback((p,g)=>{o(_=>[..._,{points:p,nextDimension:g}])},[o]),d=Q.useCallback(p=>{o(g=>g.slice(0,p))},[o]),h=Q.useCallback(()=>{o([])},[o]),m=Q.useMemo(()=>H0(a,r),[a,r]);return ee({selectDrilldown:c,sliceDrilldownSelections:d,clearDrilldownSelections:h,drilldownSelections:a,availableDrilldowns:u},m)},H0=(e,t)=>{var o;let r=(o=t.column)!=null?o:t;const n=[],a=[];return e.forEach(({points:s,nextDimension:u})=>{n.push(O.members(r,s.map(mZ))),a.push(s.map(pZ)),r=u}),{drilldownFilters:n,drilldownFiltersDisplayValues:a,drilldownDimension:r}};function pZ(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function mZ(e){return"categoryValue"in e?`${e.categoryValue}`:""}const V0=Kn({componentName:"DrilldownWidget",trackingConfig:{transparent:!0}})(e=>{var A,I;const{drilldownDimensions:t,initialDimension:r,drilldownSelections:n,config:a,children:o}=e,[s,u]=Q.useState([]),[c,d]=Q.useState(null),h=(A=a==null?void 0:a.contextMenuComponent)!=null?A:I0,m=(I=a==null?void 0:a.breadcrumbsComponent)!=null?I:B0,{selectDrilldown:p,sliceDrilldownSelections:g,clearDrilldownSelections:_,availableDrilldowns:y,drilldownFilters:w,drilldownFiltersDisplayValues:E,drilldownDimension:S}=hZ({drilldownDimensions:t,initialDimension:r,drilldownSelections:n}),T=Q.useMemo(()=>S&&V.jsx(m,{filtersDisplayValues:E,currentDimension:S,clearDrilldownSelections:_,sliceDrilldownSelections:g}),[m,_,S,E,g]),C=N=>{d(N)},x=Q.useCallback(()=>{u([]),d(null)},[u]),P=Q.useCallback(N=>{p(s,N)},[p,s]),R=Q.useCallback(N=>{u(N)},[u]),D=Q.useMemo(()=>[...S?[{sectionTitle:S==null?void 0:S.name}]:[],{sectionTitle:"Drill",items:y.map(N=>({caption:N.name,onClick:()=>P(N)}))}],[S,y,P]);return V.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[V.jsx(h,{position:c,itemSections:D,closeContextMenu:x}),S&&!(a!=null&&a.isBreadcrumbsDetached)&&T,V.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0},children:o({drilldownFilters:w,drilldownDimension:S,onDataPointsSelected:R,onContextMenu:C,breadcrumbsComponent:a!=null&&a.isBreadcrumbsDetached?T:void 0})})]})});function vZ({chartType:e,dataOptions:t,enabled:r}){const[n,a]=Q.useState([]),o=Q.useMemo(()=>{var p;const m=O.isCartesian(e)&&((p=t.category)==null?void 0:p.length)===1||O.isScatter(e);return r&&m},[r,e,t]),s=Q.useMemo(()=>{if(n.length===0)return m=>ue(ee({},m),{series:m.series.map(p=>ue(ee({},p),{data:p.data.map(g=>ue(ee({},g),{selected:!1}))}))});if(O.isScatter(e))return m=>ue(ee({},m),{series:m.series.map(p=>ue(ee({},p),{data:p.data.map(g=>ue(ee({},g),{selected:!n.some(_=>{var y,w;return _.x===g.x&&_.y===g.y&&_.size===g.z&&_.breakByPoint===((y=g.custom)==null?void 0:y.maskedBreakByPoint)&&_.breakByColor===((w=g.custom)==null?void 0:w.maskedBreakByColor)})}))}))});{const m=n.reduce((p,{categoryValue:g})=>(g&&(p[`${g}`]=!0),p),{});return p=>ue(ee({},p),{series:p.series.map(g=>ue(ee({},g),{data:g.data.map(_=>{var y,w;return m[(w=(y=_.custom)==null?void 0:y.xValue)==null?void 0:w[0]]?_:ue(ee({},_),{selected:!0})})}))})}},[n,e]),u=Q.useMemo(()=>m=>{var p;return ue(ee({},m),{chart:ue(ee({},m.chart),{events:ue(ee({},(p=m.chart)==null?void 0:p.events),{click:()=>{a([])}})})})},[]),c=Q.useCallback(m=>(o&&(m=s(m),m=u(m)),m),[s,u,o]),d=Q.useCallback(m=>{o&&a(m)},[o]),h=Q.useCallback(m=>{o&&a([m])},[o]);return{onBeforeRender:c,onDataPointsSelected:d,onDataPointClick:h}}function $a(e,t=!1){const r=e.filter(n=>O.isFunction(n));return t?Hg(r):h0(r)}function gZ(e){return e&&e.length?Rd(e):[]}function yZ(e,t,r,n){for(var a=-1,o=e==null?0:e.length;++a<o;){var s=e[a];t(n,s,r(s),e)}return n}function bZ(e,t){return function(r,n){if(r==null)return r;if(!O.isArrayLike(r))return e(r,n);for(var a=r.length,o=-1,s=Object(r);++o<a&&n(s[o],o,s)!==!1;);return r}}var _Z=bZ(O.baseForOwn);function wZ(e,t,r,n){return _Z(e,function(a,o,s){t(n,a,r(a),s)}),n}function U0(e,t){return function(r,n){var a=O.isArray(r)?yZ:wZ,o=t?t():{};return a(r,e,O.baseIteratee(n),o)}}var xZ=Object.prototype,CZ=xZ.hasOwnProperty,TZ=U0(function(e,t,r){CZ.call(e,r)?e[r].push(t):O.baseAssignValue(e,r,[t])});const SZ=e=>{const t=EZ(e);return t.disabled=!e.disabled,t},EZ=e=>{const t=O.cloneDeep(e);return Object.setPrototypeOf(t,e),t};function MZ(e,t,r){return O.members(e,[],!1,r,void 0,t)}function q0(e){if(!O.isMembersFilter(e))throw new Error("Filter is not a MembersFilter");const{attribute:t,guid:r,backgroundFilter:n}=e;return MZ(t,n,r)}function PZ(e){return"members"in e&&e.members.length===0}function jf(e,t){return Bf(e.attribute,t.attribute)}function Bf(e,t){return e.expression===(t==null?void 0:t.expression)&&e.granularity===t.granularity}function RZ(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.guid))})}function G0(e,t){return e.find(r=>Bf(r.attribute,t))}function OZ(e,t,r){const n=G0(r,e);return O.members(e,t.map(a=>`${a}`),!1,n==null?void 0:n.guid,void 0,n==null?void 0:n.backgroundFilter)}function Y0(e,t){return jf(e,t)&&"members"in e&&"members"in t&&Ii(e.members,t.members)}function ra(e,t){const r=e.flatMap(({entries:a={}})=>t.flatMap(o=>{const s=a[o];return s?(Array.isArray(s)?s:[s]).filter(({attribute:c})=>!!c):[]})),n=TZ(r,({id:a})=>a);return Object.values(n).map(a=>({attribute:a[0].attribute,values:gZ(a.map(({value:o})=>o))}))}function kZ(e){return ra(e,["category"])}function NZ(e){return ra(e,["category"])}function DZ(e,t){const r=ra(e,["category"]),n=r.length-1;return t.category.map((a,o)=>n===o?r[o]:{attribute:O.translateColumnToAttribure(a),values:[]})}function AZ(e){return ra(e,["x","y","breakByColor","breakByPoint"])}function LZ(e){return ra(e,["geo"])}function IZ(e){return ra(e,["geo"])}function $Z(e,t,r){return e==="plugin"?[]:e==="pivot"?[]:e==="treemap"||e==="sunburst"?DZ(r,t):O.isCartesian(e)||e==="pie"||e==="funnel"?kZ(r):O.isBoxplot(e)?NZ(r):O.isScatter(e)?AZ(r):O.isScattermap(e)?LZ(r):O.isAreamap(e)?IZ(r):[]}function Hf(e,t){let r=[];return e==="plugin"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:O.isCartesian(e)||O.isCategorical(e)||O.isBoxplot(e)||O.isRange(e)?r=[...t.category]:O.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!O.isMeasureColumn(n))):(O.isScattermap(e)||O.isAreamap(e))&&(r=[...t.geo]),r.map(O.translateColumnToAttribure)}function zZ(e,t){const r=e.map(({attribute:s,values:u})=>OZ(s,u,t)),n=FZ(t,r),a=t.filter(s=>!s.disabled);return n.every(s=>{const u=G0(a,s.attribute);return u&&Y0(s,u)})?n.map(q0):n}function FZ(e,t){const r=e.filter(n=>n.locked);return r.length?t.filter(n=>!r.some(a=>jf(a,n))):t}function WZ(e,t){return Hf(e,t)[0]}function jZ(e){return[...O.CARTESIAN_CHART_TYPES,...O.CATEGORICAL_CHART_TYPES,...O.SCATTER_CHART_TYPES,...O.BOXPLOT_CHART_TYPES,...O.RANGE_CHART_TYPES].includes(e)}function BZ(e,t){return Hf(e,t).length===1}function HZ(e,t,r){if(O.isCartesian(e)||O.isCategorical(e)||O.isBoxplot(e)||O.isRange(e))return ue(ee({},t),{category:[r]});if(O.isScatter(e)){const n=t,a=["x","y","breakByPoint","breakByColor"];for(const o of a)if(n[o]&&!O.isMeasureColumn(n[o]))return ue(ee({},n),{[o]:r})}return t}function Fv(e,t,r){return e.map(n=>{const a=["x","y","breakByPoint","breakByColor"],o=[...a,"size"].some(u=>u in n),s=a.find(u=>r[u]&&!O.isMeasureColumn(r[u]));if(o){const u=t,c=u.type==="mouseup";c&&console.warn("No drilldown support for multi-selection in scatter chart");const d=c?n[s]:u.point.options.custom[M0(`{masked ${s}`)];return{categoryValue:d,categoryDisplayValue:d}}return n})}function VZ(e){const{drilldownDimension:t,drilldownFilters:r,onDataPointsSelected:n,onContextMenu:a}=e;return function(s){const{chartType:u,dataOptions:c}=s,d=(m,p)=>{const g=Fv(m,p,s.dataOptions);n(g,p),a({left:p.clientX,top:p.clientY})},h=(m,p)=>{const g=Fv([m],p,c);n(g,p),a({left:p.clientX,top:p.clientY})};return ue(ee({},s),{dataOptions:HZ(u,c,t),filters:O.mergeFilters(s.filters,r),onDataPointsSelected:$a([d,s.onDataPointsSelected]),onDataPointContextMenu:$a([h,s.onDataPointContextMenu])})}}const UZ=Kn({componentName:"ChartWidget"})(e=>{var R,D;const{app:t}=bt(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:a,styleOptions:o,drilldownOptions:s,highlightSelectionDisabled:u=!1,highlights:c,description:d}=e,P=o||{},{width:h,height:m}=P,p=hi(P,["width","height"]),g=Dd(r,{hasHeader:!((R=o==null?void 0:o.header)!=null&&R.hidden)}),[_,y]=Q.useState(0),w=Q.useMemo(()=>{var I,N;return(((I=s==null?void 0:s.drilldownSelections)==null?void 0:I.length)||((N=s==null?void 0:s.drilldownDimensions)==null?void 0:N.length))&&jZ(r)&&BZ(r,a)},[s,r,a]),E=vZ({chartType:r,dataOptions:a,enabled:!u&&!w&&!(c!=null&&c.length)}),S=(D=t==null?void 0:t.settings.accessibilityConfig)==null?void 0:D.enabled,T=Q.useCallback(A=>{var I;return S?ue(ee({},A),{accessibility:ue(ee({},A.accessibility),{description:d!=null?d:(I=A.accessibility)==null?void 0:I.description})}):A},[d,S]);if(!r||!a)return null;const C=ue(ee({},e),{dataSet:n,styleOptions:p,refreshCounter:_,onDataPointClick:$a([E.onDataPointClick,e.onDataPointClick]),onDataPointsSelected:$a([E.onDataPointsSelected,e.onDataPointsSelected]),onBeforeRender:$a([T,E.onBeforeRender,e.onBeforeRender],!0)}),x=(A,I)=>V.jsx(If,ue(ee({},e),{topSlot:V.jsxs(V.Fragment,{children:[e.topSlot,I]}),dataSetName:n&&O.getDataSourceName(n),onRefresh:()=>y(_+1),children:V.jsx(u0,ee({},A))}));return V.jsx(oo,{defaultSize:g,size:{width:h,height:m},children:w?V.jsx(V0,{drilldownDimensions:(s==null?void 0:s.drilldownDimensions)||[],initialDimension:WZ(r,a),drilldownSelections:(s==null?void 0:s.drilldownSelections)||[],config:{isBreadcrumbsDetached:!0},children:A=>{const{breadcrumbsComponent:I}=A,N=VZ(A);return x(N(C),I)}}):x(C)})}),qZ=Kn({componentName:"TableWidget"})(e=>{var m;const[t,r]=Q.useState(0),{app:n}=bt(),{styleOptions:a,dataSource:o=n==null?void 0:n.defaultDataSource,dataOptions:s}=e,u=Dd("table",{hasHeader:!((m=a==null?void 0:a.header)!=null&&m.hidden)}),p=e.styleOptions||{},{width:c,height:d}=p,h=hi(p,["width","height"]);return s?V.jsx(oo,{defaultSize:u,size:{width:c,height:d},children:V.jsx(If,ue(ee({},e),{dataSetName:o&&O.getDataSourceName(o),onRefresh:()=>r(t+1),children:V.jsx(P0,{dataSet:e.dataSource,dataOptions:e.dataOptions,styleOptions:h,filters:e.filters,refreshCounter:t})}))}):null});var ku=function(){return O.root.Date.now()},GZ="Expected a function",YZ=Math.max,XZ=Math.min;function ZZ(e,t,r){var n,a,o,s,u,c,d=0,h=!1,m=!1,p=!0;if(typeof e!="function")throw new TypeError(GZ);t=O.toNumber(t)||0,O.isObject(r)&&(h=!!r.leading,m="maxWait"in r,o=m?YZ(O.toNumber(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function g(P){var R=n,D=a;return n=a=void 0,d=P,s=e.apply(D,R),s}function _(P){return d=P,u=setTimeout(E,t),h?g(P):s}function y(P){var R=P-c,D=P-d,A=t-R;return m?XZ(A,o-D):A}function w(P){var R=P-c,D=P-d;return c===void 0||R>=t||R<0||m&&D>=o}function E(){var P=ku();if(w(P))return S(P);u=setTimeout(E,y(P))}function S(P){return u=void 0,p&&n?g(P):(n=a=void 0,s)}function T(){u!==void 0&&clearTimeout(u),d=0,n=c=a=u=void 0}function C(){return u===void 0?s:S(ku())}function x(){var P=ku(),R=w(P);if(n=arguments,a=this,c=P,R){if(u===void 0)return _(c);if(m)return clearTimeout(u),u=setTimeout(E,t),g(c)}return u===void 0&&(u=setTimeout(E,t)),s}return x.cancel=T,x.flush=C,x}class na{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Ja=typeof window=="undefined"||"Deno"in window;function ir(){}function KZ(e,t){return typeof e=="function"?e(t):e}function Xc(e){return typeof e=="number"&&e>=0&&e!==1/0}function X0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Na(e,t,r){return So(e)?typeof t=="function"?ue(ee({},r),{queryKey:e,queryFn:t}):ue(ee({},t),{queryKey:e}):e}function QZ(e,t,r){return So(e)?ue(ee({},t),{mutationKey:e}):typeof e=="function"?ue(ee({},t),{mutationFn:e}):ee({},e)}function mn(e,t,r){return So(e)?[ue(ee({},t),{queryKey:e}),r]:[e||{},t]}function Wv(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:o,queryKey:s,stale:u}=e;if(So(s)){if(n){if(t.queryHash!==Vf(s,t.options))return!1}else if(!Ri(t.queryKey,s))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof a!="undefined"&&a!==t.state.fetchStatus||o&&!o(t))}function jv(e,t){const{exact:r,fetching:n,predicate:a,mutationKey:o}=e;if(So(o)){if(!t.options.mutationKey)return!1;if(r){if(Un(t.options.mutationKey)!==Un(o))return!1}else if(!Ri(t.options.mutationKey,o))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||a&&!a(t))}function Vf(e,t){return((t==null?void 0:t.queryKeyHashFn)||Un)(e)}function Un(e){return JSON.stringify(e,(t,r)=>Zc(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function Ri(e,t){return Z0(e,t)}function Z0(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Z0(e[r],t[r])):!1}function K0(e,t){if(e===t)return e;const r=Bv(e)&&Bv(t);if(r||Zc(e)&&Zc(t)){const n=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let u=0;for(let c=0;c<o;c++){const d=r?c:a[c];s[d]=K0(e[d],t[d]),s[d]===e[d]&&u++}return n===o&&u===n?e:s}return t}function Ds(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Bv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zc(e){if(!Hv(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!Hv(r)||!r.hasOwnProperty("isPrototypeOf"))}function Hv(e){return Object.prototype.toString.call(e)==="[object Object]"}function So(e){return Array.isArray(e)}function Q0(e){return new Promise(t=>{setTimeout(t,e)})}function Vv(e){Q0(0).then(e)}function JZ(){if(typeof AbortController=="function")return new AbortController}function Kc(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?K0(e,t):t}class eK extends na{constructor(){super(),this.setup=t=>{if(!Ja&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const As=new eK,Uv=["online","offline"];class tK extends na{constructor(){super(),this.setup=t=>{if(!Ja&&window.addEventListener){const r=()=>t();return Uv.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{Uv.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const Ls=new tK;function rK(e){return Math.min(1e3*qt(2,e),3e4)}function Sl(e){return(e!=null?e:"online")==="online"?Ls.isOnline():!0}class J0{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function vs(e){return e instanceof J0}function ew(e){let t=!1,r=0,n=!1,a,o,s;const u=new Promise((w,E)=>{o=w,s=E}),c=w=>{n||(g(new J0(w)),e.abort==null||e.abort())},d=()=>{t=!0},h=()=>{t=!1},m=()=>!As.isFocused()||e.networkMode!=="always"&&!Ls.isOnline(),p=w=>{n||(n=!0,e.onSuccess==null||e.onSuccess(w),a==null||a(),o(w))},g=w=>{n||(n=!0,e.onError==null||e.onError(w),a==null||a(),s(w))},_=()=>new Promise(w=>{a=E=>{const S=n||!m();return S&&w(E),S},e.onPause==null||e.onPause()}).then(()=>{a=void 0,n||e.onContinue==null||e.onContinue()}),y=()=>{if(n)return;let w;try{w=e.fn()}catch(E){w=Promise.reject(E)}Promise.resolve(w).then(p).catch(E=>{var S,T;if(n)return;const C=(S=e.retry)!=null?S:3,x=(T=e.retryDelay)!=null?T:rK,P=typeof x=="function"?x(r,E):x,R=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,E);if(t||!R){g(E);return}r++,e.onFail==null||e.onFail(r,E),Q0(P).then(()=>{if(m())return _()}).then(()=>{t?g(E):y()})})};return Sl(e.networkMode)?y():_().then(y),{promise:u,cancel:c,continue:()=>(a==null?void 0:a())?u:Promise.resolve(),cancelRetry:d,continueRetry:h}}const Uf=console;function nK(){let e=[],t=0,r=h=>{h()},n=h=>{h()};const a=h=>{let m;t++;try{m=h()}finally{t--,t||u()}return m},o=h=>{t?e.push(h):Vv(()=>{r(h)})},s=h=>(...m)=>{o(()=>{h(...m)})},u=()=>{const h=e;e=[],h.length&&Vv(()=>{n(()=>{h.forEach(m=>{r(m)})})})};return{batch:a,batchCalls:s,schedule:o,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{n=h}}}const ut=nK();class tw{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xc(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:Ja?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class iK extends tw{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Uf,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||aK(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=ee(ee({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=Kc(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(ir).catch(ir):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!X0(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(_=>_.options.queryFn);g&&this.setOptions(g.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const s=JZ(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};c(u);const d=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),h={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:d};if(c(h),(n=this.options.behavior)==null||n.onFetch(h),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=h.fetchOptions)==null?void 0:a.meta)){var m;this.dispatch({type:"fetch",meta:(m=h.fetchOptions)==null?void 0:m.meta})}const p=g=>{if(vs(g)&&g.silent||this.dispatch({type:"error",error:g}),!vs(g)){var _,y,w,E;(_=(y=this.cache.config).onError)==null||_.call(y,g,this),(w=(E=this.cache.config).onSettled)==null||w.call(E,this.state.data,g,this),process.env.NODE_ENV!=="production"&&this.logger.error(g)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=ew({fn:h.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:g=>{var _,y,w,E;if(typeof g=="undefined"){process.env.NODE_ENV!=="production"&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),p(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(_=(y=this.cache.config).onSuccess)==null||_.call(y,g,this),(w=(E=this.cache.config).onSettled)==null||w.call(E,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(g,_)=>{this.dispatch({type:"failed",failureCount:g,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var a,o;switch(t.type){case"failed":return ue(ee({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return ue(ee({},n),{fetchStatus:"paused"});case"continue":return ue(ee({},n),{fetchStatus:"fetching"});case"fetch":return ee(ue(ee({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=t.meta)!=null?a:null,fetchStatus:Sl(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return ee(ue(ee({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const s=t.error;return vs(s)&&s.revert&&this.revertState?ue(ee({},this.revertState),{fetchStatus:"idle"}):ue(ee({},n),{error:s,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"});case"invalidate":return ue(ee({},n),{isInvalidated:!0});case"setState":return ee(ee({},n),t.state)}};this.state=r(this.state),ut.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function aK(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t!="undefined",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n!=null?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class oK extends na{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var a;const o=r.queryKey,s=(a=r.queryHash)!=null?a:Vf(o,r);let u=this.get(s);return u||(u=new iK({cache:this,logger:t.getLogger(),queryKey:o,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(o)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ut.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=mn(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(a=>Wv(n,a))}findAll(t,r){const[n]=mn(t,r);return Object.keys(n).length>0?this.queries.filter(a=>Wv(n,a)):this.queries}notify(t){ut.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){ut.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ut.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class sK extends tw{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Uf,this.observers=[],this.state=t.state||rw(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=ee(ee({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}execute(){return wr(this,null,function*(){const t=()=>{var R;return this.retryer=ew({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(D,A)=>{this.dispatch({type:"failed",failureCount:D,error:A})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(R=this.options.retry)!=null?R:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,a,o,s,u,c,d,h;if(!r){var m,p,g,_;this.dispatch({type:"loading",variables:this.options.variables}),yield(m=(p=this.mutationCache.config).onMutate)==null?void 0:m.call(p,this.state.variables,this);const D=yield(g=(_=this.options).onMutate)==null?void 0:g.call(_,this.state.variables);D!==this.state.context&&this.dispatch({type:"loading",context:D,variables:this.state.variables})}const R=yield t();return yield(n=(a=this.mutationCache.config).onSuccess)==null?void 0:n.call(a,R,this.state.variables,this.state.context,this),yield(o=(s=this.options).onSuccess)==null?void 0:o.call(s,R,this.state.variables,this.state.context),yield(u=(c=this.mutationCache.config).onSettled)==null?void 0:u.call(c,R,null,this.state.variables,this.state.context,this),yield(d=(h=this.options).onSettled)==null?void 0:d.call(h,R,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:R}),R}catch(R){try{var y,w,E,S,T,C,x,P;throw yield(y=(w=this.mutationCache.config).onError)==null?void 0:y.call(w,R,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(R),yield(E=(S=this.options).onError)==null?void 0:E.call(S,R,this.state.variables,this.state.context),yield(T=(C=this.mutationCache.config).onSettled)==null?void 0:T.call(C,void 0,R,this.state.variables,this.state.context,this),yield(x=(P=this.options).onSettled)==null?void 0:x.call(P,void 0,R,this.state.variables,this.state.context),R}finally{this.dispatch({type:"error",error:R})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return ue(ee({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return ue(ee({},n),{isPaused:!0});case"continue":return ue(ee({},n),{isPaused:!1});case"loading":return ue(ee({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Sl(this.options.networkMode),status:"loading",variables:t.variables});case"success":return ue(ee({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return ue(ee({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return ee(ee({},n),t.state)}};this.state=r(this.state),ut.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function rw(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class lK extends na{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const a=new sK({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(a),a}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){ut.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact=="undefined"&&(t.exact=!0),this.mutations.find(r=>jv(t,r))}findAll(t){return this.mutations.filter(r=>jv(t,r))}notify(t){ut.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return ut.batch(()=>r.reduce((n,a)=>n.then(()=>a.continue().catch(ir)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function uK(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,a,o,s;const u=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,c=(n=e.fetchOptions)==null||(a=n.meta)==null?void 0:a.fetchMore,d=c==null?void 0:c.pageParam,h=(c==null?void 0:c.direction)==="forward",m=(c==null?void 0:c.direction)==="backward",p=((o=e.state.data)==null?void 0:o.pages)||[],g=((s=e.state.data)==null?void 0:s.pageParams)||[];let _=g,y=!1;const w=P=>{Object.defineProperty(P,"signal",{enumerable:!0,get:()=>{var R;if((R=e.signal)!=null&&R.aborted)y=!0;else{var D;(D=e.signal)==null||D.addEventListener("abort",()=>{y=!0})}return e.signal}})},E=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),S=(P,R,D,A)=>(_=A?[R,..._]:[..._,R],A?[D,...P]:[...P,D]),T=(P,R,D,A)=>{if(y)return Promise.reject("Cancelled");if(typeof D=="undefined"&&!R&&P.length)return Promise.resolve(P);const I={queryKey:e.queryKey,pageParam:D,meta:e.options.meta};w(I);const N=E(I);return Promise.resolve(N).then(W=>S(P,D,W,A))};let C;if(!p.length)C=T([]);else if(h){const P=typeof d!="undefined",R=P?d:qv(e.options,p);C=T(p,P,R)}else if(m){const P=typeof d!="undefined",R=P?d:cK(e.options,p);C=T(p,P,R,!0)}else{_=[];const P=typeof e.options.getNextPageParam=="undefined";C=(u&&p[0]?u(p[0],0,p):!0)?T([],P,g[0]):Promise.resolve(S([],g[0],p[0]));for(let D=1;D<p.length;D++)C=C.then(A=>{if(u&&p[D]?u(p[D],D,p):!0){const N=P?g[D]:qv(e.options,A);return T(A,P,N)}return Promise.resolve(S(A,g[D],p[D]))})}return C.then(P=>({pages:P,pageParams:_}))}}}}function qv(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function cK(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class dK{constructor(t={}){this.queryCache=t.queryCache||new oK,this.mutationCache=t.mutationCache||new lK,this.logger=t.logger||Uf,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,process.env.NODE_ENV!=="production"&&t.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=As.subscribe(()=>{As.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Ls.subscribe(()=>{Ls.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=mn(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(ue(ee({},t),{fetching:!0})).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const a=Na(t,r,n),o=this.getQueryData(a.queryKey);return o?Promise.resolve(o):this.fetchQuery(a)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(t,r,n){const a=this.queryCache.find(t),o=a==null?void 0:a.state.data,s=KZ(r,o);if(typeof s=="undefined")return;const u=Na(t),c=this.defaultQueryOptions(u);return this.queryCache.build(this,c).setData(s,ue(ee({},n),{manual:!0}))}setQueriesData(t,r,n){return ut.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=mn(t,r),a=this.queryCache;ut.batch(()=>{a.findAll(n).forEach(o=>{a.remove(o)})})}resetQueries(t,r,n){const[a,o]=mn(t,r,n),s=this.queryCache,u=ee({type:"active"},a);return ut.batch(()=>(s.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries(u,o)))}cancelQueries(t,r,n){const[a,o={}]=mn(t,r,n);typeof o.revert=="undefined"&&(o.revert=!0);const s=ut.batch(()=>this.queryCache.findAll(a).map(u=>u.cancel(o)));return Promise.all(s).then(ir).catch(ir)}invalidateQueries(t,r,n){const[a,o]=mn(t,r,n);return ut.batch(()=>{var s,u;if(this.queryCache.findAll(a).forEach(d=>{d.invalidate()}),a.refetchType==="none")return Promise.resolve();const c=ue(ee({},a),{type:(s=(u=a.refetchType)!=null?u:a.type)!=null?s:"active"});return this.refetchQueries(c,o)})}refetchQueries(t,r,n){const[a,o]=mn(t,r,n),s=ut.batch(()=>this.queryCache.findAll(a).filter(c=>!c.isDisabled()).map(c=>{var d;return c.fetch(void 0,ue(ee({},o),{cancelRefetch:(d=o==null?void 0:o.cancelRefetch)!=null?d:!0,meta:{refetchPage:a.refetchPage}}))}));let u=Promise.all(s).then(ir);return o!=null&&o.throwOnError||(u=u.catch(ir)),u}fetchQuery(t,r,n){const a=Na(t,r,n),o=this.defaultQueryOptions(a);typeof o.retry=="undefined"&&(o.retry=!1);const s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(ir).catch(ir)}fetchInfiniteQuery(t,r,n){const a=Na(t,r,n);return a.behavior=uK(),this.fetchQuery(a)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(ir).catch(ir)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(a=>Un(t)===Un(a.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>Ri(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(a=>Ri(t,a.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(t)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(a=>Un(t)===Un(a.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>Ri(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(a=>Ri(t,a.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(t)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r=ue(ee(ee(ee({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Vf(r.queryKey,r)),typeof r.refetchOnReconnect=="undefined"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary=="undefined"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:ue(ee(ee(ee({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class fK extends na{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),Gv(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qc(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qc(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),process.env.NODE_ENV!=="production"&&typeof(t==null?void 0:t.isDataEqual)!="undefined"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),Ds(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&Yv(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(r),o&&(this.currentQuery!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const s=this.computeRefetchInterval();o&&(this.currentQuery!==a||this.options.enabled!==n.enabled||s!==this.currentRefetchInterval)&&this.updateRefetchInterval(s)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return pK(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(n={}){var a=n,{refetchPage:t}=a,r=hi(a,["refetchPage"]);return this.fetch(ue(ee({},r),{meta:{refetchPage:t}}))}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch(ue(ee({},t),{cancelRefetch:(r=t.cancelRefetch)!=null?r:!0})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(ir)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),Ja||this.currentResult.isStale||!Xc(this.options.staleTime))return;const r=X0(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Ja||this.options.enabled===!1||!Xc(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||As.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,a=this.options,o=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,c=t!==n,d=c?t.state:this.currentQueryInitialState,h=c?this.currentResult:this.previousQueryResult,{state:m}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:_,fetchStatus:y,status:w}=m,E=!1,S=!1,T;if(r._optimisticResults){const D=this.hasListeners(),A=!D&&Gv(t,r),I=D&&Yv(t,n,r,a);(A||I)&&(y=Sl(t.options.networkMode)?"fetching":"paused",p||(w="loading")),r._optimisticResults==="isRestoring"&&(y="idle")}if(r.keepPreviousData&&!m.dataUpdatedAt&&h!=null&&h.isSuccess&&w!=="error")T=h.data,p=h.dataUpdatedAt,w=h.status,E=!0;else if(r.select&&typeof m.data!="undefined")if(o&&m.data===(s==null?void 0:s.data)&&r.select===this.selectFn)T=this.selectResult;else try{this.selectFn=r.select,T=r.select(m.data),T=Kc(o==null?void 0:o.data,T,r),this.selectResult=T,this.selectError=null}catch(D){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(D),this.selectError=D}else T=m.data;if(typeof r.placeholderData!="undefined"&&typeof T=="undefined"&&w==="loading"){let D;if(o!=null&&o.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData))D=o.data;else if(D=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof D!="undefined")try{D=r.select(D),this.selectError=null}catch(A){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(A),this.selectError=A}typeof D!="undefined"&&(w="success",T=Kc(o==null?void 0:o.data,D,r),S=!0)}this.selectError&&(g=this.selectError,T=this.selectResult,_=Date.now(),w="error");const C=y==="fetching",x=w==="loading",P=w==="error";return{status:w,fetchStatus:y,isLoading:x,isSuccess:w==="success",isError:P,isInitialLoading:x&&C,data:T,dataUpdatedAt:p,error:g,errorUpdatedAt:_,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:C,isRefetching:C&&!x,isLoadingError:P&&m.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:S,isPreviousData:E,isRefetchError:P&&m.dataUpdatedAt!==0,isStale:qf(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Ds(n,r))return;this.currentResult=n;const a={cache:!0},o=()=>{if(!r)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!this.trackedProps.size)return!0;const c=new Set(u!=null?u:this.trackedProps);return this.options.useErrorBoundary&&c.add("error"),Object.keys(this.currentResult).some(d=>{const h=d;return this.currentResult[h]!==r[h]&&c.has(h)})};(t==null?void 0:t.listeners)!==!1&&o()&&(a.listeners=!0),this.notify(ee(ee({},a),t))}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!vs(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){ut.batch(()=>{if(t.onSuccess){var r,n,a,o;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(a=(o=this.options).onSettled)==null||a.call(o,this.currentResult.data,null)}else if(t.onError){var s,u,c,d;(s=(u=this.options).onError)==null||s.call(u,this.currentResult.error),(c=(d=this.options).onSettled)==null||c.call(d,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:h})=>{h(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function hK(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Gv(e,t){return hK(e,t)||e.state.dataUpdatedAt>0&&Qc(e,t,t.refetchOnMount)}function Qc(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&qf(e,t)}return!1}function Yv(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&qf(e,r)}function qf(e,t){return e.isStaleByTime(t.staleTime)}function pK(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!Ds(e.getCurrentResult(),t)}var Jc={exports:{}},Nu={};/**
425
+ * @license React
426
+ * use-sync-external-store-shim.production.min.js
427
+ *
428
+ * Copyright (c) Facebook, Inc. and its affiliates.
429
+ *
430
+ * This source code is licensed under the MIT license found in the
431
+ * LICENSE file in the root directory of this source tree.
432
+ */var Xv;function mK(){if(Xv)return Nu;Xv=1;var e=Q;function t(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function u(m,p){var g=p(),_=n({inst:{value:g,getSnapshot:p}}),y=_[0].inst,w=_[1];return o(function(){y.value=g,y.getSnapshot=p,c(y)&&w({inst:y})},[m,g,p]),a(function(){return c(y)&&w({inst:y}),m(function(){c(y)&&w({inst:y})})},[m]),s(g),g}function c(m){var p=m.getSnapshot;m=m.value;try{var g=p();return!r(m,g)}catch(_){return!0}}function d(m,p){return p()}var h=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?d:u;return Nu.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,Nu}var Du={};/**
433
+ * @license React
434
+ * use-sync-external-store-shim.development.js
435
+ *
436
+ * Copyright (c) Facebook, Inc. and its affiliates.
437
+ *
438
+ * This source code is licensed under the MIT license found in the
439
+ * LICENSE file in the root directory of this source tree.
440
+ */var Zv;function vK(){return Zv||(Zv=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Q,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(T){{for(var C=arguments.length,x=new Array(C>1?C-1:0),P=1;P<C;P++)x[P-1]=arguments[P];n("error",T,x)}}function n(T,C,x){{var P=t.ReactDebugCurrentFrame,R=P.getStackAddendum();R!==""&&(C+="%s",x=x.concat([R]));var D=x.map(function(A){return String(A)});D.unshift("Warning: "+C),Function.prototype.apply.call(console[T],console,D)}}function a(T,C){return T===C&&(T!==0||1/T===1/C)||T!==T&&C!==C}var o=typeof Object.is=="function"?Object.is:a,s=e.useState,u=e.useEffect,c=e.useLayoutEffect,d=e.useDebugValue,h=!1,m=!1;function p(T,C,x){h||e.startTransition!==void 0&&(h=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var P=C();if(!m){var R=C();o(P,R)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}var D=s({inst:{value:P,getSnapshot:C}}),A=D[0].inst,I=D[1];return c(function(){A.value=P,A.getSnapshot=C,g(A)&&I({inst:A})},[T,P,C]),u(function(){g(A)&&I({inst:A});var N=function(){g(A)&&I({inst:A})};return T(N)},[T]),d(P),P}function g(T){var C=T.getSnapshot,x=T.value;try{var P=C();return!o(x,P)}catch(R){return!0}}function _(T,C,x){return C()}var y=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",w=!y,E=w?_:p,S=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:E;Du.useSyncExternalStore=S,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Du}process.env.NODE_ENV==="production"?Jc.exports=mK():Jc.exports=vK();var gK=Jc.exports;const nw=gK.useSyncExternalStore,Kv=Z.createContext(void 0),iw=Z.createContext(!1);function aw(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Kv),window.ReactQueryClientContext):Kv)}const ow=({context:e}={})=>{const t=Z.useContext(aw(e,Z.useContext(iw)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},yK=({client:e,children:t,context:r,contextSharing:n=!1})=>{Z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),process.env.NODE_ENV!=="production"&&n&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const a=aw(r,n);return Z.createElement(iw.Provider,{value:!r&&n},Z.createElement(a.Provider,{value:e},t))},bK=Z.createContext(!1),_K=()=>Z.useContext(bK);function wK(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const xK=Z.createContext(wK()),CK=()=>Z.useContext(xK);function sw(e,t){return typeof e=="function"?e(...t):!!e}const TK=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},SK=e=>{Z.useEffect(()=>{e.clearReset()},[e])},EK=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&sw(r,[e.error,n]),MK=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},PK=(e,t)=>e.isLoading&&e.isFetching&&!t,RK=(e,t,r)=>(e==null?void 0:e.suspense)&&PK(t,r),OK=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function kK(e,t){const r=ow({context:e.context}),n=_K(),a=CK(),o=r.defaultQueryOptions(e);o._optimisticResults=n?"isRestoring":"optimistic",o.onError&&(o.onError=ut.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=ut.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=ut.batchCalls(o.onSettled)),MK(o),TK(o,a),SK(a);const[s]=Z.useState(()=>new t(r,o)),u=s.getOptimisticResult(o);if(nw(Z.useCallback(c=>{const d=n?()=>{}:s.subscribe(ut.batchCalls(c));return s.updateResult(),d},[s,n]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),Z.useEffect(()=>{s.setOptions(o,{listeners:!1})},[o,s]),RK(o,u,n))throw OK(o,s,a);if(EK({result:u,errorResetBoundary:a,useErrorBoundary:o.useErrorBoundary,query:s.getCurrentQuery()}))throw u.error;return o.notifyOnChangeProps?u:s.trackResult(u)}function NK(e,t,r){const n=Na(e,t,r);return kK(n,fK)}exports.Backdrop=Af;exports.Button=Qa;exports.ButtonBase=Jn;exports.CacheProvider=gg;exports.Chart=u0;exports.ChartWidget=UZ;exports.ContextMenu=I0;exports.DEFAULT_PIVOT_TABLE_SIZE=Cy;exports.DEFAULT_TABLE_ROWS_PER_PAGE=nY;exports.DrilldownBreadcrumbs=B0;exports.DrilldownWidget=V0;exports.DynamicSizeContainer=oo;exports.ErrorBoundary=Zg;exports.ErrorBoundaryBox=Xg;exports.ExclamationMarkIcon=Yg;exports.Fade=Df;exports.Global=ud;exports.I18nProvider=Qg;exports.IconButton=Bi;exports.LEGACY_DESIGN_TYPES=Ma;exports.LoadingIndicator=Hs;exports.LoadingOverlay=Pa;exports.Menu=Ff;exports.MenuItem=Wf;exports.MenuList=zf;exports.Modal=Lf;exports.NoResultsOverlay=kd;exports.PAGES_BATCH_SIZE=iY;exports.Paper=Cl;exports.Popover=Tl;exports.Popper=To;exports.PropTypes=v;exports.QueryClient=dK;exports.QueryClientProvider=yK;exports.RestApi=Ty;exports.SisenseContext=Sd;exports.Subscribable=na;exports.Table=P0;exports.TableWidget=qZ;exports.ThemeContext=Cn;exports.ThemeContext$1=Md;exports.ThemeProvider=vy;exports.Tooltip=xl;exports.WidgetContainer=If;exports._extends=re;exports._objectWithoutPropertiesLoose=Ee;exports.alpha_1=ot;exports.applyDateFormat=bd;exports.asSisenseComponent=Kn;exports.baseRest=Us;exports.baseUniq=Rd;exports.boxWhiskerProcessResult=BA;exports.camelCase=M0;exports.capitalize=De;exports.classNames=Ga;exports.clearExecuteQueryCache=kO;exports.clearMembersFilter=q0;exports.cloneFilterAndToggleDisabled=SZ;exports.clsx=Oe;exports.composeClasses=st;exports.convertToThemeSettings=Ig;exports.createAggregator=U0;exports.createCommonFiltersOverSelections=zZ;exports.createExecuteQueryCacheKey=Wg;exports.createValueColorOptions=Jg;exports.createValueToColorMap=ey;exports.createValueToColorMultiColumnsMap=ck;exports.css=cd;exports.darken_1=xs;exports.debounce=ZZ;exports.defaultDateConfig=yd;exports.elementAcceptingRef=Qn;exports.exactProp=Xd;exports.executeCsvQuery=SO;exports.executePivotQuery=EO;exports.executeQuery=io;exports.executeQueryWithCache=Cd;exports.generateUtilityClass=tt;exports.generateUtilityClasses=Qe;exports.getAllowedFilters=RZ;exports.getBaseDateFnsLocale=hd;exports.getDefaultState=rw;exports.getDefaultThemeSettings=Bs;exports.getJaqlQueryPayload=tg;exports.getLegacyPalette=Fg;exports.getPaletteName=$g;exports.getPivotJaqlQueryPayload=L1;exports.getSelectableWidgetAttributes=Hf;exports.getTableAttributesAndMeasures=gb;exports.getThemeSettingsByOid=zg;exports.getTranslatedDataOptions=ky;exports.getWidgetDefaultSize=Dd;exports.getWidgetSelections=$Z;exports.haveSameAttribute=jf;exports.isArrayLikeObject=cy;exports.isEqual=Ii;exports.isEqualMembersFilters=Y0;exports.isEqualWith=_y;exports.isIncludeAllFilter=PZ;exports.isIterateeCall=_g;exports.isSameAttribute=Bf;exports.isThemeOid=my;exports.keyframes=to;exports.lighten_1=Zy;exports.newStyled=Tr;exports.notifyManager=ut;exports.over=h0;exports.ownerDocument=$t;exports.parseMutationArgs=QZ;exports.processDrilldownSelections=H0;exports.refType=co;exports.rootShouldForwardProp=ho;exports.shallowEqualObjects=Ds;exports.shouldSkipSisenseContextWaiting=l0;exports.shouldThrowError=sw;exports.styled=ke;exports.trackHook=aG;exports.translatePivotTableDataOptions=a3;exports.translateTableDataOptions=Oy;exports.useControlled=Ud;exports.useEventCallback=Zr;exports.useForkRef=zt;exports.useGetApi=Sy;exports.useHasChanged=d0;exports.useId=cb;exports.usePrevious=Od;exports.useQuery=NK;exports.useQueryClient=ow;exports.useSetError=Ad;exports.useSisenseContext=bt;exports.useSyncExternalStore=nw;exports.useTheme=wo;exports.useThemeContext=kt;exports.useThemeProps=rt;exports.withTracking=sG;